{"version":3,"sources":["../../src/client/page-loader.ts"],"names":["PageLoader","getPageList","process","env","NODE_ENV","getClientBuildManifest","then","manifest","sortedPages","window","__DEV_PAGES_MANIFEST","pages","promisedDevPagesManifest","fetch","assetPrefix","DEV_CLIENT_PAGES_MANIFEST","res","json","catch","err","console","log","Error","getMiddleware","middlewareMatchers","__NEXT_MIDDLEWARE_MATCHERS","__MIDDLEWARE_MATCHERS","undefined","__DEV_MIDDLEWARE_MATCHERS","promisedMiddlewareMatchers","buildId","DEV_MIDDLEWARE_MANIFEST","matchers","getDataHref","params","asPath","href","locale","pathname","hrefPathname","query","search","parseRelativeUrl","asPathname","route","removeTrailingSlash","getHrefForSlug","path","dataRoute","getAssetPathFromRoute","addLocale","addBasePath","skipInterpolation","isDynamicRoute","interpolateAs","result","_isSsg","promisedSsgManifest","has","loadPage","routeLoader","loadRoute","page","component","mod","exports","styleSheets","styles","map","o","text","content","error","prefetch","constructor","createRouteLoader","Promise","resolve","__SSG_MANIFEST","__SSG_MANIFEST_CB"],"mappings":";;;;;;;eAgCqBA;;;;6BA7BO;+BACE;gFACI;2BACR;2BACK;kCACE;qCACG;6BACsB;2BAInD;AAkBQ,MAAMA;IA0BnBC,cAAc;QACZ,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,cAAc;YACzC,OAAOC,IAAAA,mCAAsB,IAAGC,IAAI,CAAC,CAACC,WAAaA,SAASC,WAAW;QACzE,OAAO;YACL,IAAIC,OAAOC,oBAAoB,EAAE;gBAC/B,OAAOD,OAAOC,oBAAoB,CAACC,KAAK;YAC1C,OAAO;gBACL,IAAI,CAACC,6BAAL,IAAI,CAACA,2BAA6BC,MAChC,AAAG,IAAI,CAACC,WAAW,GAAC,+BAA4BC,oCAAyB,EAExET,IAAI,CAAC,CAACU,MAAQA,IAAIC,IAAI,IACtBX,IAAI,CAAC,CAACC;oBACLE,OAAOC,oBAAoB,GAAGH;oBAC9B,OAAOA,SAASI,KAAK;gBACvB,GACCO,KAAK,CAAC,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