/home/techb158/balavpn.abdallabala.com/node_modules/next/dist/pages
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/next/dist/pages/_document.js.map (61786B)
{"version":3,"sources":["../../src/pages/_document.tsx"],"sourcesContent":["///
\n\nimport React, { type JSX } from 'react'\nimport { NEXT_BUILTIN_DOCUMENT } from '../shared/lib/constants'\nimport type {\n DocumentContext,\n DocumentInitialProps,\n DocumentProps,\n DocumentType,\n NEXT_DATA,\n} from '../shared/lib/utils'\nimport type { ScriptProps } from '../client/script'\nimport type { NextFontManifest } from '../build/webpack/plugins/next-font-manifest-plugin'\n\nimport { getPageFiles } from '../server/get-page-files'\nimport type { BuildManifest } from '../server/get-page-files'\nimport { htmlEscapeJsonString } from '../shared/lib/htmlescape'\nimport isError from '../lib/is-error'\n\nimport {\n HtmlContext,\n useHtmlContext,\n} from '../shared/lib/html-context.shared-runtime'\nimport type { HtmlProps } from '../shared/lib/html-context.shared-runtime'\nimport { encodeURIPath } from '../shared/lib/encode-uri-path'\nimport type { DeepReadonly } from '../shared/lib/deep-readonly'\nimport { getTracer } from '../server/lib/trace/tracer'\nimport { getTracedMetadata } from '../server/lib/trace/utils'\n\nexport type { DocumentContext, DocumentInitialProps, DocumentProps }\n\nexport type OriginProps = {\n nonce?: string\n crossOrigin?: 'anonymous' | 'use-credentials' | '' | undefined\n children?: React.ReactNode\n}\n\ntype DocumentFiles = {\n sharedFiles: readonly string[]\n pageFiles: readonly string[]\n allFiles: readonly string[]\n}\n\ntype HeadHTMLProps = React.DetailedHTMLProps<\n React.HTMLAttributes
,\n HTMLHeadElement\n>\n\ntype HeadProps = OriginProps & HeadHTMLProps\n\n/** Set of pages that have triggered a large data warning on production mode. */\nconst largePageDataWarnings = new Set()\n\nfunction getDocumentFiles(\n buildManifest: BuildManifest,\n pathname: string,\n inAmpMode: boolean\n): DocumentFiles {\n const sharedFiles: readonly string[] = getPageFiles(buildManifest, '/_app')\n const pageFiles: readonly string[] =\n process.env.NEXT_RUNTIME !== 'edge' && inAmpMode\n ? []\n : getPageFiles(buildManifest, pathname)\n\n return {\n sharedFiles,\n pageFiles,\n allFiles: [...new Set([...sharedFiles, ...pageFiles])],\n }\n}\n\nfunction getPolyfillScripts(context: HtmlProps, props: OriginProps) {\n // polyfills.js has to be rendered as nomodule without async\n // It also has to be the first script to load\n const {\n assetPrefix,\n buildManifest,\n assetQueryString,\n disableOptimizedLoading,\n crossOrigin,\n } = context\n\n return buildManifest.polyfillFiles\n .filter(\n (polyfill) => polyfill.endsWith('.js') && !polyfill.endsWith('.module.js')\n )\n .map((polyfill) => (\n \n ))\n}\n\nfunction hasComponentProps(child: any): child is React.ReactElement {\n return !!child && !!child.props\n}\n\nfunction AmpStyles({\n styles,\n}: {\n styles?: React.ReactElement[] | Iterable\n}) {\n if (!styles) return null\n\n // try to parse styles from fragment for backwards compat\n const curStyles: React.ReactElement[] = Array.isArray(styles)\n ? (styles as React.ReactElement[])\n : []\n if (\n // @ts-ignore Property 'props' does not exist on type ReactElement\n styles.props &&\n // @ts-ignore Property 'props' does not exist on type ReactElement\n Array.isArray(styles.props.children)\n ) {\n const hasStyles = (el: React.ReactElement) =>\n el?.props?.dangerouslySetInnerHTML?.__html\n // @ts-ignore Property 'props' does not exist on type ReactElement\n styles.props.children.forEach((child: React.ReactElement) => {\n if (Array.isArray(child)) {\n child.forEach((el) => hasStyles(el) && curStyles.push(el))\n } else if (hasStyles(child)) {\n curStyles.push(child)\n }\n })\n }\n\n /* Add custom styles before AMP styles to prevent accidental overrides */\n return (\n