qalita 2.5.4__py3-none-any.whl → 2.6.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. qalita/_frontend/.next/static/_0oyfpC7N2IGDMa04TT9R/_clientMiddlewareManifest.json +6 -0
  2. qalita/_frontend/.next/static/chunks/236f7e5abd6f09ff.js +4 -0
  3. qalita/_frontend/.next/static/chunks/30ea11065999f7ac.js +1 -0
  4. qalita/_frontend/.next/static/chunks/4dd28bc3f722184a.js +2 -0
  5. qalita/_frontend/.next/static/chunks/711d597b816a80c1.js +1 -0
  6. qalita/_frontend/.next/static/chunks/7340adf74ff47ec0.js +1 -0
  7. qalita/_frontend/.next/static/chunks/a6dad97d9634a72d.js.map +1 -0
  8. qalita/_frontend/.next/static/chunks/{e393fec0d8ba175d.js → ecf559101be0ae12.js} +3 -3
  9. qalita/_frontend/.next/static/chunks/turbopack-25186fc8e1264445.js +4 -0
  10. qalita/_frontend/node_modules/@img/sharp-libvips-linux-x64/versions.json +30 -0
  11. qalita/_frontend/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
  12. qalita/_frontend/node_modules/@next/env/package.json +4 -4
  13. qalita/_frontend/node_modules/next/dist/build/analyze/index.js +242 -0
  14. qalita/_frontend/node_modules/next/dist/build/define-env.js +22 -13
  15. qalita/_frontend/node_modules/next/dist/build/entries.js +5 -5
  16. qalita/_frontend/node_modules/next/dist/build/generate-routes-manifest.js +91 -0
  17. qalita/_frontend/node_modules/next/dist/build/index.js +172 -223
  18. qalita/_frontend/node_modules/next/dist/build/output/log.js +4 -7
  19. qalita/_frontend/node_modules/next/dist/build/segment-config/app/app-segments.js +23 -99
  20. qalita/_frontend/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +3 -3
  21. qalita/_frontend/node_modules/next/dist/build/spinner.js +3 -3
  22. qalita/_frontend/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +137 -0
  23. qalita/_frontend/node_modules/next/dist/build/static-paths/app.js +69 -210
  24. qalita/_frontend/node_modules/next/dist/build/static-paths/utils.js +83 -11
  25. qalita/_frontend/node_modules/next/dist/build/swc/index.js +10 -6
  26. qalita/_frontend/node_modules/next/dist/build/templates/app-page.js +21 -14
  27. qalita/_frontend/node_modules/next/dist/build/templates/app-route.js +8 -10
  28. qalita/_frontend/node_modules/next/dist/build/templates/edge-app-route.js +7 -10
  29. qalita/_frontend/node_modules/next/dist/build/templates/edge-ssr-app.js +16 -20
  30. qalita/_frontend/node_modules/next/dist/build/templates/edge-ssr.js +20 -14
  31. qalita/_frontend/node_modules/next/dist/build/templates/edge-wrapper.js +24 -0
  32. qalita/_frontend/node_modules/next/dist/build/templates/middleware.js +7 -6
  33. qalita/_frontend/node_modules/next/dist/build/templates/pages-edge-api.js +3 -2
  34. qalita/_frontend/node_modules/next/dist/build/turbopack-analyze/index.js +116 -0
  35. qalita/_frontend/node_modules/next/dist/build/turbopack-build/impl.js +2 -1
  36. qalita/_frontend/node_modules/next/dist/build/type-check.js +7 -8
  37. qalita/_frontend/node_modules/next/dist/build/utils.js +45 -4
  38. qalita/_frontend/node_modules/next/dist/build/validate-app-paths.js +242 -0
  39. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js +20 -2
  40. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js +2 -5
  41. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js +4 -11
  42. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-root-params-loader.js +1 -1
  43. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +1 -1
  44. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +3 -0
  45. qalita/_frontend/node_modules/next/dist/build/webpack-build/impl.js +1 -0
  46. qalita/_frontend/node_modules/next/dist/build/webpack-config.js +35 -3
  47. qalita/_frontend/node_modules/next/dist/cli/next-test.js +3 -5
  48. qalita/_frontend/node_modules/next/dist/client/components/app-router-headers.js +5 -0
  49. qalita/_frontend/node_modules/next/dist/client/components/app-router-instance.js +3 -11
  50. qalita/_frontend/node_modules/next/dist/client/components/app-router.js +8 -28
  51. qalita/_frontend/node_modules/next/dist/client/components/navigation-devtools.js +5 -7
  52. qalita/_frontend/node_modules/next/dist/client/components/navigation.js +4 -3
  53. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +3 -22
  54. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +6 -18
  55. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +844 -590
  56. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +4 -76
  57. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +21 -18
  58. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +48 -85
  59. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +25 -10
  60. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +126 -113
  61. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +30 -39
  62. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +0 -1
  63. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/router-reducer.js +2 -2
  64. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/cache-map.js +13 -18
  65. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/cache.js +27 -14
  66. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/lru.js +3 -1
  67. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/navigation.js +176 -133
  68. qalita/_frontend/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +12 -12
  69. qalita/_frontend/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +12 -12
  70. qalita/_frontend/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +3 -3
  71. qalita/_frontend/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
  72. qalita/_frontend/node_modules/next/dist/compiled/react-is/package.json +1 -1
  73. qalita/_frontend/node_modules/next/dist/lib/build-custom-route.js +4 -4
  74. qalita/_frontend/node_modules/next/dist/lib/constants.js +0 -5
  75. qalita/_frontend/node_modules/next/dist/lib/default-transpiled-packages.json +1 -0
  76. qalita/_frontend/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +0 -1
  77. qalita/_frontend/node_modules/next/dist/lib/helpers/get-npx-command.js +3 -3
  78. qalita/_frontend/node_modules/next/dist/lib/inline-static-env.js +1 -1
  79. qalita/_frontend/node_modules/next/dist/lib/known-edge-safe-packages.json +1 -0
  80. qalita/_frontend/node_modules/next/dist/lib/metadata/metadata.js +17 -11
  81. qalita/_frontend/node_modules/next/dist/lib/needs-experimental-react.js +2 -2
  82. qalita/_frontend/node_modules/next/dist/lib/resolve-build-paths.js +44 -76
  83. qalita/_frontend/node_modules/next/dist/lib/server-external-packages.jsonc +103 -0
  84. qalita/_frontend/node_modules/next/dist/lib/static-env.js +6 -6
  85. qalita/_frontend/node_modules/next/dist/lib/turbopack-warning.js +3 -5
  86. qalita/_frontend/node_modules/next/dist/lib/typescript/runTypeCheck.js +61 -5
  87. qalita/_frontend/node_modules/next/dist/lib/typescript/type-paths.js +56 -0
  88. qalita/_frontend/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +6 -17
  89. qalita/_frontend/node_modules/next/dist/lib/verify-typescript-setup.js +10 -2
  90. qalita/_frontend/node_modules/next/dist/lib/worker.js +17 -9
  91. qalita/_frontend/node_modules/next/dist/server/app-render/action-handler.js +113 -77
  92. qalita/_frontend/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +36 -15
  93. qalita/_frontend/node_modules/next/dist/server/app-render/app-render-render-utils.js +36 -15
  94. qalita/_frontend/node_modules/next/dist/server/app-render/app-render-scheduling.js +188 -0
  95. qalita/_frontend/node_modules/next/dist/server/app-render/app-render.js +804 -748
  96. qalita/_frontend/node_modules/next/dist/server/app-render/collect-segment-data.js +8 -2
  97. qalita/_frontend/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +1 -1
  98. qalita/_frontend/node_modules/next/dist/server/app-render/create-error-handler.js +42 -75
  99. qalita/_frontend/node_modules/next/dist/server/app-render/dynamic-rendering.js +127 -14
  100. qalita/_frontend/node_modules/next/dist/server/app-render/encryption-utils.js +3 -108
  101. qalita/_frontend/node_modules/next/dist/server/app-render/encryption.js +4 -3
  102. qalita/_frontend/node_modules/next/dist/server/app-render/flight-render-result.js +3 -2
  103. qalita/_frontend/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +9 -8
  104. qalita/_frontend/node_modules/next/dist/server/app-render/get-layer-assets.js +1 -1
  105. qalita/_frontend/node_modules/next/dist/server/app-render/manifests-singleton.js +257 -0
  106. qalita/_frontend/node_modules/next/dist/server/app-render/prospective-render-utils.js +25 -8
  107. qalita/_frontend/node_modules/next/dist/server/app-render/staged-rendering.js +161 -15
  108. qalita/_frontend/node_modules/next/dist/server/app-render/use-flight-response.js +67 -20
  109. qalita/_frontend/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +2 -2
  110. qalita/_frontend/node_modules/next/dist/server/async-storage/work-store.js +2 -1
  111. qalita/_frontend/node_modules/next/dist/server/base-server.js +32 -23
  112. qalita/_frontend/node_modules/next/dist/server/capsize-font-metrics.json +181516 -0
  113. qalita/_frontend/node_modules/next/dist/server/config-schema.js +8 -1
  114. qalita/_frontend/node_modules/next/dist/server/config-shared.js +83 -2
  115. qalita/_frontend/node_modules/next/dist/server/config.js +24 -17
  116. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-rspack.js +171 -0
  117. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +37 -25
  118. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-types.js +1 -0
  119. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-webpack.js +62 -57
  120. qalita/_frontend/node_modules/next/dist/server/dev/log-requests.js +11 -3
  121. qalita/_frontend/node_modules/next/dist/server/dev/messages.js +10 -0
  122. qalita/_frontend/node_modules/next/dist/server/dev/serialized-errors.js +67 -0
  123. qalita/_frontend/node_modules/next/dist/server/dev/static-paths-worker.js +10 -0
  124. qalita/_frontend/node_modules/next/dist/server/lib/app-info-log.js +1 -1
  125. qalita/_frontend/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +2 -2
  126. qalita/_frontend/node_modules/next/dist/server/lib/dev-bundler-service.js +6 -10
  127. qalita/_frontend/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +4 -4
  128. qalita/_frontend/node_modules/next/dist/server/lib/lazy-result.js +1 -1
  129. qalita/_frontend/node_modules/next/dist/server/lib/patch-fetch.js +9 -9
  130. qalita/_frontend/node_modules/next/dist/server/lib/router-server.js +43 -29
  131. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.js +0 -21
  132. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/filesystem.js +2 -7
  133. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +8 -4
  134. qalita/_frontend/node_modules/next/dist/server/lib/start-server.js +3 -3
  135. qalita/_frontend/node_modules/next/dist/server/lib/trace/tracer.js +4 -0
  136. qalita/_frontend/node_modules/next/dist/server/load-components.js +3 -9
  137. qalita/_frontend/node_modules/next/dist/server/next-server.js +19 -18
  138. qalita/_frontend/node_modules/next/dist/server/next.js +1 -1
  139. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +570 -0
  140. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/utils.js +60 -3
  141. qalita/_frontend/node_modules/next/dist/server/node-environment.js +1 -0
  142. qalita/_frontend/node_modules/next/dist/server/patch-error-inspect.js +7 -4
  143. qalita/_frontend/node_modules/next/dist/server/request/fallback-params.js +23 -66
  144. qalita/_frontend/node_modules/next/dist/server/route-modules/app-route/module.js +2 -2
  145. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/pages-handler.js +6 -3
  146. qalita/_frontend/node_modules/next/dist/server/route-modules/route-module.js +79 -18
  147. qalita/_frontend/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +28 -4
  148. qalita/_frontend/node_modules/next/dist/server/typescript/rules/config.js +50 -6
  149. qalita/_frontend/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +68 -23
  150. qalita/_frontend/node_modules/next/dist/server/web/edge-route-module-wrapper.js +7 -5
  151. qalita/_frontend/node_modules/next/dist/server/web/sandbox/context.js +8 -9
  152. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +2 -1
  153. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/revalidate.js +7 -3
  154. qalita/_frontend/node_modules/next/dist/shared/lib/action-revalidation-kind.js +31 -0
  155. qalita/_frontend/node_modules/next/dist/shared/lib/constants.js +6 -1
  156. qalita/_frontend/node_modules/next/dist/shared/lib/deployment-id.js +36 -0
  157. qalita/_frontend/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
  158. qalita/_frontend/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +5 -0
  159. qalita/_frontend/node_modules/next/dist/shared/lib/router/routes/app.js +122 -0
  160. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +20 -49
  161. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +6 -6
  162. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +33 -0
  163. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +116 -0
  164. qalita/_frontend/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +3 -24
  165. qalita/_frontend/node_modules/next/dist/shared/lib/segment.js +5 -0
  166. qalita/_frontend/node_modules/next/dist/shared/lib/turbopack/utils.js +6 -5
  167. qalita/_frontend/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
  168. qalita/_frontend/node_modules/next/dist/telemetry/events/build.js +11 -0
  169. qalita/_frontend/node_modules/next/dist/telemetry/events/version.js +2 -2
  170. qalita/_frontend/node_modules/next/package.json +20 -18
  171. qalita/_frontend/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
  172. qalita/_frontend/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
  173. qalita/_frontend/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
  174. qalita/_frontend/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
  175. qalita/_frontend/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
  176. qalita/_frontend/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
  177. qalita/_frontend/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
  178. qalita/_frontend/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
  179. qalita/_frontend/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
  180. qalita/_frontend/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
  181. qalita/_frontend/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
  182. qalita/_frontend/node_modules/typescript/lib/typesMap.json +497 -0
  183. qalita/_frontend/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
  184. qalita/_frontend/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
  185. qalita/_frontend/package.json +3 -3
  186. qalita/_frontend/server.js +1 -1
  187. qalita/commands/pack.py +3 -3
  188. qalita/commands/source.py +1 -1
  189. qalita/internal/utils.py +11 -7
  190. qalita/web/app.py +20 -4
  191. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/METADATA +1 -1
  192. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/RECORD +197 -168
  193. qalita/_frontend/.next/static/chunks/023d923a37d494fc.js +0 -1
  194. qalita/_frontend/.next/static/chunks/247eb132b7f7b574.js +0 -1
  195. qalita/_frontend/.next/static/chunks/bba035711c7e37a2.js +0 -4
  196. qalita/_frontend/.next/static/chunks/c903f9580a4b6572.js +0 -2
  197. qalita/_frontend/.next/static/chunks/cbd55ab9639e1e66.js +0 -1
  198. qalita/_frontend/.next/static/chunks/turbopack-1ad58da399056f41.js +0 -3
  199. qalita/_frontend/node_modules/next/dist/build/deployment-id.js +0 -18
  200. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/apply-flight-data.js +0 -53
  201. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.js +0 -105
  202. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fill-cache-with-new-subtree-data.js +0 -110
  203. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fill-lazy-items-till-leaf-with-head.js +0 -131
  204. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/handle-segment-mismatch.js +0 -25
  205. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js +0 -32
  206. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/refetch-inactive-parallel-segments.js +0 -104
  207. qalita/_frontend/node_modules/next/dist/server/app-render/action-utils.js +0 -90
  208. qalita/_frontend/node_modules/next/dist/server/normalizers/request/prefetch-rsc.js +0 -31
  209. /qalita/_frontend/.next/static/{X4_AlYMbCyee-ZVLjCYMg → _0oyfpC7N2IGDMa04TT9R}/_buildManifest.js +0 -0
  210. /qalita/_frontend/.next/static/{X4_AlYMbCyee-ZVLjCYMg → _0oyfpC7N2IGDMa04TT9R}/_ssgManifest.js +0 -0
  211. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/WHEEL +0 -0
  212. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/entry_points.txt +0 -0
  213. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,3 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["static/chunks/cbd55ab9639e1e66.js","static/chunks/bba035711c7e37a2.js","static/chunks/023d923a37d494fc.js","static/chunks/c903f9580a4b6572.js"],runtimeModuleIds:[94553]}]),(()=>{let e;if(!Array.isArray(globalThis.TURBOPACK))return;let t="/_next/",r=new WeakMap;function n(e,t){this.m=e,this.e=t}let o=n.prototype,l=Object.prototype.hasOwnProperty,i="undefined"!=typeof Symbol&&Symbol.toStringTag;function s(e,t,r){l.call(e,t)||Object.defineProperty(e,t,r)}function u(e,t){let r=e[t];return r||(r=a(t),e[t]=r),r}function a(e){return{exports:{},error:void 0,id:e,namespaceObject:void 0}}function c(e,t){s(e,"__esModule",{value:!0}),i&&s(e,i,{value:"Module"});let r=0;for(;r<t.length;){let n=t[r++],o=t[r++];if("number"==typeof o)if(0===o)s(e,n,{value:t[r++],enumerable:!0,writable:!1});else throw Error(`unexpected tag: ${o}`);else"function"==typeof t[r]?s(e,n,{get:o,set:t[r++],enumerable:!0}):s(e,n,{get:o,enumerable:!0})}Object.seal(e)}o.s=function(e,t){let r,n;null!=t?n=(r=u(this.c,t)).exports:(r=this.m,n=this.e),r.namespaceObject=n,c(n,e)},o.j=function(e,t){var n,o;let i,s,a;null!=t?s=(i=u(this.c,t)).exports:(i=this.m,s=this.e);let c=(n=i,o=s,(a=r.get(n))||(r.set(n,a=[]),n.exports=n.namespaceObject=new Proxy(o,{get(e,t){if(l.call(e,t)||"default"===t||"__esModule"===t)return Reflect.get(e,t);for(let e of a){let r=Reflect.get(e,t);if(void 0!==r)return r}},ownKeys(e){let t=Reflect.ownKeys(e);for(let e of a)for(let r of Reflect.ownKeys(e))"default"===r||t.includes(r)||t.push(r);return t}})),a);"object"==typeof e&&null!==e&&c.push(e)},o.v=function(e,t){(null!=t?u(this.c,t):this.m).exports=e},o.n=function(e,t){let r;(r=null!=t?u(this.c,t):this.m).exports=r.namespaceObject=e};let f=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,p=[null,f({}),f([]),f(f)];function h(e,t,r){let n=[],o=-1;for(let t=e;("object"==typeof t||"function"==typeof t)&&!p.includes(t);t=f(t))for(let r of Object.getOwnPropertyNames(t))n.push(r,function(e,t){return()=>e[t]}(e,r)),-1===o&&"default"===r&&(o=n.length-1);return r&&o>=0||(o>=0?n.splice(o,1,0,e):n.push("default",0,e)),c(t,n),t}function d(e){let t=N(e,this.m);if(t.namespaceObject)return t.namespaceObject;let r=t.exports;return t.namespaceObject=h(r,"function"==typeof r?function(...e){return r.apply(this,e)}:Object.create(null),r&&r.__esModule)}function m(){let e,t;return{promise:new Promise((r,n)=>{t=n,e=r}),resolve:e,reject:t}}o.i=d,o.A=function(e){return this.r(e)(d.bind(this))},o.t="function"==typeof require?require:function(){throw Error("Unexpected use of runtime require")},o.r=function(e){return N(e,this.m).exports},o.f=function(e){function t(t){if(l.call(e,t))return e[t].module();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r}return t.keys=()=>Object.keys(e),t.resolve=t=>{if(l.call(e,t))return e[t].id();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r},t.import=async e=>await t(e),t};let b=Symbol("turbopack queues"),y=Symbol("turbopack exports"),O=Symbol("turbopack error");function g(e){e&&1!==e.status&&(e.status=1,e.forEach(e=>e.queueCount--),e.forEach(e=>e.queueCount--?e.queueCount++:e()))}o.a=function(e,t){let r=this.m,n=t?Object.assign([],{status:-1}):void 0,o=new Set,{resolve:l,reject:i,promise:s}=m(),u=Object.assign(s,{[y]:r.exports,[b]:e=>{n&&e(n),o.forEach(e),u.catch(()=>{})}}),a={get:()=>u,set(e){e!==u&&(u[y]=e)}};Object.defineProperty(r,"exports",a),Object.defineProperty(r,"namespaceObject",a),e(function(e){let t=e.map(e=>{if(null!==e&&"object"==typeof e){if(b in e)return e;if(null!=e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then){let t=Object.assign([],{status:0}),r={[y]:{},[b]:e=>e(t)};return e.then(e=>{r[y]=e,g(t)},e=>{r[O]=e,g(t)}),r}}return{[y]:e,[b]:()=>{}}}),r=()=>t.map(e=>{if(e[O])throw e[O];return e[y]}),{promise:l,resolve:i}=m(),s=Object.assign(()=>i(r),{queueCount:0});function u(e){e!==n&&!o.has(e)&&(o.add(e),e&&0===e.status&&(s.queueCount++,e.push(s)))}return t.map(e=>e[b](u)),s.queueCount?l:r()},function(e){e?i(u[O]=e):l(u[y]),g(n)}),n&&-1===n.status&&(n.status=0)};let w=function(e){let t=new URL(e,"x:/"),r={};for(let e in t)r[e]=t[e];for(let t in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=(...t)=>e,r)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,value:r[t]})};function j(e,t){throw Error(`Invariant: ${t(e)}`)}w.prototype=URL.prototype,o.U=w,o.z=function(e){throw Error("dynamic usage of require is not supported")},o.g=globalThis;let R=n.prototype;var C,U=((C=U||{})[C.Runtime=0]="Runtime",C[C.Parent=1]="Parent",C[C.Update=2]="Update",C);let k=new Map;o.M=k;let v=new Map,_=new Map;async function P(e,t,r){let n;if("string"==typeof r)return A(e,t,S(r));let o=r.included||[],l=o.map(e=>!!k.has(e)||v.get(e));if(l.length>0&&l.every(e=>e))return void await Promise.all(l);let i=r.moduleChunks||[],s=i.map(e=>_.get(e)).filter(e=>e);if(s.length>0){if(s.length===i.length)return void await Promise.all(s);let r=new Set;for(let e of i)_.has(e)||r.add(e);for(let n of r){let r=A(e,t,S(n));_.set(n,r),s.push(r)}n=Promise.all(s)}else{for(let o of(n=A(e,t,S(r.path)),i))_.has(o)||_.set(o,n)}for(let e of o)v.has(e)||v.set(e,n);await n}R.l=function(e){return P(1,this.m.id,e)};let $=Promise.resolve(void 0),T=new WeakMap;function A(t,r,n){let o=e.loadChunkCached(t,n),l=T.get(o);if(void 0===l){let e=T.set.bind(T,o,$);l=o.then(e).catch(e=>{let o;switch(t){case 0:o=`as a runtime dependency of chunk ${r}`;break;case 1:o=`from module ${r}`;break;case 2:o="from an HMR update";break;default:j(t,e=>`Unknown source type: ${e}`)}throw Error(`Failed to load chunk ${n} ${o}${e?`: ${e}`:""}`,e?{cause:e}:void 0)}),T.set(o,l)}return l}function S(e){return`${t}${e.split("/").map(e=>encodeURIComponent(e)).join("/")}`}R.L=function(e){return A(1,this.m.id,e)},R.R=function(e){let t=this.r(e);return t?.default??t},R.P=function(e){return`/ROOT/${e??""}`},R.b=function(e){let t=new Blob([`self.TURBOPACK_WORKER_LOCATION = ${JSON.stringify(location.origin)};
2
- self.TURBOPACK_NEXT_CHUNK_URLS = ${JSON.stringify(e.reverse().map(S),null,2)};
3
- importScripts(...self.TURBOPACK_NEXT_CHUNK_URLS.map(c => self.TURBOPACK_WORKER_LOCATION + c).reverse());`],{type:"text/javascript"});return URL.createObjectURL(t)};let E=/\.js(?:\?[^#]*)?(?:#.*)?$/,K=/\.css(?:\?[^#]*)?(?:#.*)?$/;function x(e){return K.test(e)}o.w=function(t,r,n){return e.loadWebAssembly(1,this.m.id,t,r,n)},o.u=function(t,r){return e.loadWebAssemblyModule(1,this.m.id,t,r)};let M={};o.c=M;let N=(e,t)=>{let r=M[e];if(r){if(r.error)throw r.error;return r}return L(e,U.Parent,t.id)};function L(e,t,r){let o=k.get(e);if("function"!=typeof o)throw Error(function(e,t,r){let n;switch(t){case 0:n=`as a runtime entry of chunk ${r}`;break;case 1:n=`because it was required from module ${r}`;break;case 2:n="because of an HMR update";break;default:j(t,e=>`Unknown source type: ${e}`)}return`Module ${e} was instantiated ${n}, but the module factory is not available.`}(e,t,r));let l=a(e),i=l.exports;M[e]=l;let s=new n(l,i);try{o(s,l,i)}catch(e){throw l.error=e,e}return l.namespaceObject&&l.exports!==l.namespaceObject&&h(l.exports,l.namespaceObject),l}function q(r){let n,o=function(e){if("string"==typeof e)return e;let r=decodeURIComponent(("undefined"!=typeof TURBOPACK_NEXT_CHUNK_URLS?TURBOPACK_NEXT_CHUNK_URLS.pop():e.getAttribute("src")).replace(/[?#].*$/,""));return r.startsWith(t)?r.slice(t.length):r}(r[0]);return 2===r.length?n=r[1]:(n=void 0,!function(e,t,r,n){let o=1;for(;o<e.length;){let t=e[o],n=o+1;for(;n<e.length&&"function"!=typeof e[n];)n++;if(n===e.length)throw Error("malformed chunk format, expected a factory function");if(!r.has(t)){let l=e[n];for(Object.defineProperty(l,"name",{value:"module evaluation"});o<n;o++)t=e[o],r.set(t,l)}o=n+1}}(r,0,k)),e.registerChunk(o,n)}let B=new Map;function W(e){let t=B.get(e);if(!t){let r,n;t={resolved:!1,loadingStarted:!1,promise:new Promise((e,t)=>{r=e,n=t}),resolve:()=>{t.resolved=!0,r()},reject:n},B.set(e,t)}return t}e={async registerChunk(e,t){if(W(S(e)).resolve(),null!=t){for(let e of t.otherChunks)W(S("string"==typeof e?e:e.path));if(await Promise.all(t.otherChunks.map(t=>P(0,e,t))),t.runtimeModuleIds.length>0)for(let r of t.runtimeModuleIds)!function(e,t){let r=M[t];if(r){if(r.error)throw r.error;return}L(t,U.Runtime,e)}(e,r)}},loadChunkCached:(e,t)=>(function(e,t){let r=W(t);if(r.loadingStarted)return r.promise;if(e===U.Runtime)return r.loadingStarted=!0,x(t)&&r.resolve(),r.promise;if("function"==typeof importScripts)if(x(t));else if(E.test(t))self.TURBOPACK_NEXT_CHUNK_URLS.push(t),importScripts(TURBOPACK_WORKER_LOCATION+t);else throw Error(`can't infer type of chunk from URL ${t} in worker`);else{let e=decodeURI(t);if(x(t))if(document.querySelectorAll(`link[rel=stylesheet][href="${t}"],link[rel=stylesheet][href^="${t}?"],link[rel=stylesheet][href="${e}"],link[rel=stylesheet][href^="${e}?"]`).length>0)r.resolve();else{let e=document.createElement("link");e.rel="stylesheet",e.href=t,e.onerror=()=>{r.reject()},e.onload=()=>{r.resolve()},document.head.appendChild(e)}else if(E.test(t)){let n=document.querySelectorAll(`script[src="${t}"],script[src^="${t}?"],script[src="${e}"],script[src^="${e}?"]`);if(n.length>0)for(let e of Array.from(n))e.addEventListener("error",()=>{r.reject()});else{let e=document.createElement("script");e.src=t,e.onerror=()=>{r.reject()},document.head.appendChild(e)}}else throw Error(`can't infer type of chunk from URL ${t}`)}return r.loadingStarted=!0,r.promise})(e,t),async loadWebAssembly(e,t,r,n,o){let l=fetch(S(r)),{instance:i}=await WebAssembly.instantiateStreaming(l,o);return i.exports},async loadWebAssemblyModule(e,t,r,n){let o=fetch(S(r));return await WebAssembly.compileStreaming(o)}};let I=globalThis.TURBOPACK;globalThis.TURBOPACK={push:q},I.forEach(q)})();
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "getDeploymentIdQueryOrEmptyString", {
6
- enumerable: true,
7
- get: function() {
8
- return getDeploymentIdQueryOrEmptyString;
9
- }
10
- });
11
- function getDeploymentIdQueryOrEmptyString() {
12
- if (process.env.NEXT_DEPLOYMENT_ID) {
13
- return `?dpl=${process.env.NEXT_DEPLOYMENT_ID}`;
14
- }
15
- return '';
16
- }
17
-
18
- //# sourceMappingURL=deployment-id.js.map
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "applyFlightData", {
6
- enumerable: true,
7
- get: function() {
8
- return applyFlightData;
9
- }
10
- });
11
- const _filllazyitemstillleafwithhead = require("./fill-lazy-items-till-leaf-with-head");
12
- const _fillcachewithnewsubtreedata = require("./fill-cache-with-new-subtree-data");
13
- function applyFlightData(navigatedAt, existingCache, cache, flightData) {
14
- // The one before last item is the router state tree patch
15
- const { tree: treePatch, seedData, head, isRootRender } = flightData;
16
- // Handles case where prefetch only returns the router tree patch without rendered components.
17
- if (seedData === null) {
18
- return false;
19
- }
20
- if (isRootRender) {
21
- const rsc = seedData[0];
22
- const loading = seedData[2];
23
- cache.loading = loading;
24
- cache.rsc = rsc;
25
- // This is a PPR-only field. When PPR is enabled, we shouldn't hit
26
- // this path during a navigation, but until PPR is fully implemented
27
- // yet it's possible the existing node does have a non-null
28
- // `prefetchRsc`. As an incremental step, we'll just de-opt to the
29
- // old behavior — no PPR value.
30
- cache.prefetchRsc = null;
31
- (0, _filllazyitemstillleafwithhead.fillLazyItemsTillLeafWithHead)(navigatedAt, cache, existingCache, treePatch, seedData, head);
32
- } else {
33
- // Copy rsc for the root node of the cache.
34
- cache.rsc = existingCache.rsc;
35
- // This is a PPR-only field. Unlike the previous branch, since we're
36
- // just cloning the existing cache node, we might as well keep the
37
- // PPR value, if it exists.
38
- cache.prefetchRsc = existingCache.prefetchRsc;
39
- cache.parallelRoutes = new Map(existingCache.parallelRoutes);
40
- cache.loading = existingCache.loading;
41
- // Create a copy of the existing cache with the rsc applied.
42
- (0, _fillcachewithnewsubtreedata.fillCacheWithNewSubTreeData)(navigatedAt, cache, existingCache, flightData);
43
- }
44
- return true;
45
- }
46
-
47
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
48
- Object.defineProperty(exports.default, '__esModule', { value: true });
49
- Object.assign(exports.default, exports);
50
- module.exports = exports.default;
51
- }
52
-
53
- //# sourceMappingURL=apply-flight-data.js.map
@@ -1,105 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "applyRouterStatePatchToTree", {
6
- enumerable: true,
7
- get: function() {
8
- return applyRouterStatePatchToTree;
9
- }
10
- });
11
- const _segment = require("../../../shared/lib/segment");
12
- const _flightdatahelpers = require("../../flight-data-helpers");
13
- const _matchsegments = require("../match-segments");
14
- const _refetchinactiveparallelsegments = require("./refetch-inactive-parallel-segments");
15
- /**
16
- * Deep merge of the two router states. Parallel route keys are preserved if the patch doesn't have them.
17
- */ function applyPatch(initialTree, patchTree) {
18
- const [initialSegment, initialParallelRoutes] = initialTree;
19
- const [patchSegment, patchParallelRoutes] = patchTree;
20
- // if the applied patch segment is __DEFAULT__ then it can be ignored in favor of the initial tree
21
- // this is because the __DEFAULT__ segment is used as a placeholder on navigation
22
- if (patchSegment === _segment.DEFAULT_SEGMENT_KEY && initialSegment !== _segment.DEFAULT_SEGMENT_KEY) {
23
- return initialTree;
24
- }
25
- if ((0, _matchsegments.matchSegment)(initialSegment, patchSegment)) {
26
- const newParallelRoutes = {};
27
- for(const key in initialParallelRoutes){
28
- const isInPatchTreeParallelRoutes = typeof patchParallelRoutes[key] !== 'undefined';
29
- if (isInPatchTreeParallelRoutes) {
30
- newParallelRoutes[key] = applyPatch(initialParallelRoutes[key], patchParallelRoutes[key]);
31
- } else {
32
- newParallelRoutes[key] = initialParallelRoutes[key];
33
- }
34
- }
35
- for(const key in patchParallelRoutes){
36
- if (newParallelRoutes[key]) {
37
- continue;
38
- }
39
- newParallelRoutes[key] = patchParallelRoutes[key];
40
- }
41
- const tree = [
42
- initialSegment,
43
- newParallelRoutes
44
- ];
45
- // Copy over the existing tree
46
- if (initialTree[2]) {
47
- tree[2] = initialTree[2];
48
- }
49
- if (initialTree[3]) {
50
- tree[3] = initialTree[3];
51
- }
52
- if (initialTree[4]) {
53
- tree[4] = initialTree[4];
54
- }
55
- return tree;
56
- }
57
- return patchTree;
58
- }
59
- function applyRouterStatePatchToTree(flightSegmentPath, flightRouterState, treePatch, path) {
60
- const [segment, parallelRoutes, url, refetch, isRootLayout] = flightRouterState;
61
- // Root refresh
62
- if (flightSegmentPath.length === 1) {
63
- const tree = applyPatch(flightRouterState, treePatch);
64
- (0, _refetchinactiveparallelsegments.addRefreshMarkerToActiveParallelSegments)(tree, path);
65
- return tree;
66
- }
67
- const [currentSegment, parallelRouteKey] = flightSegmentPath;
68
- // Tree path returned from the server should always match up with the current tree in the browser
69
- if (!(0, _matchsegments.matchSegment)(currentSegment, segment)) {
70
- return null;
71
- }
72
- const lastSegment = flightSegmentPath.length === 2;
73
- let parallelRoutePatch;
74
- if (lastSegment) {
75
- parallelRoutePatch = applyPatch(parallelRoutes[parallelRouteKey], treePatch);
76
- } else {
77
- parallelRoutePatch = applyRouterStatePatchToTree((0, _flightdatahelpers.getNextFlightSegmentPath)(flightSegmentPath), parallelRoutes[parallelRouteKey], treePatch, path);
78
- if (parallelRoutePatch === null) {
79
- return null;
80
- }
81
- }
82
- const tree = [
83
- flightSegmentPath[0],
84
- {
85
- ...parallelRoutes,
86
- [parallelRouteKey]: parallelRoutePatch
87
- },
88
- url,
89
- refetch
90
- ];
91
- // Current segment is the root layout
92
- if (isRootLayout) {
93
- tree[4] = true;
94
- }
95
- (0, _refetchinactiveparallelsegments.addRefreshMarkerToActiveParallelSegments)(tree, path);
96
- return tree;
97
- }
98
-
99
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
100
- Object.defineProperty(exports.default, '__esModule', { value: true });
101
- Object.assign(exports.default, exports);
102
- module.exports = exports.default;
103
- }
104
-
105
- //# sourceMappingURL=apply-router-state-patch-to-tree.js.map
@@ -1,110 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- 0 && (module.exports = {
6
- fillCacheWithNewSubTreeData: null,
7
- fillCacheWithNewSubTreeDataButOnlyLoading: null
8
- });
9
- function _export(target, all) {
10
- for(var name in all)Object.defineProperty(target, name, {
11
- enumerable: true,
12
- get: all[name]
13
- });
14
- }
15
- _export(exports, {
16
- fillCacheWithNewSubTreeData: function() {
17
- return fillCacheWithNewSubTreeData;
18
- },
19
- fillCacheWithNewSubTreeDataButOnlyLoading: function() {
20
- return fillCacheWithNewSubTreeDataButOnlyLoading;
21
- }
22
- });
23
- const _invalidatecachebyrouterstate = require("./invalidate-cache-by-router-state");
24
- const _filllazyitemstillleafwithhead = require("./fill-lazy-items-till-leaf-with-head");
25
- const _createroutercachekey = require("./create-router-cache-key");
26
- const _segment = require("../../../shared/lib/segment");
27
- /**
28
- * Common logic for filling cache with new sub tree data.
29
- */ function fillCacheHelper(navigatedAt, newCache, existingCache, flightData, fillLazyItems) {
30
- const { segmentPath, seedData: cacheNodeSeedData, tree: treePatch, head } = flightData;
31
- let newCacheNode = newCache;
32
- let existingCacheNode = existingCache;
33
- for(let i = 0; i < segmentPath.length; i += 2){
34
- const parallelRouteKey = segmentPath[i];
35
- const segment = segmentPath[i + 1];
36
- // segmentPath is a repeating tuple of parallelRouteKey and segment
37
- // we know we've hit the last entry we've reached our final pair
38
- const isLastEntry = i === segmentPath.length - 2;
39
- const cacheKey = (0, _createroutercachekey.createRouterCacheKey)(segment);
40
- const existingChildSegmentMap = existingCacheNode.parallelRoutes.get(parallelRouteKey);
41
- if (!existingChildSegmentMap) {
42
- continue;
43
- }
44
- let childSegmentMap = newCacheNode.parallelRoutes.get(parallelRouteKey);
45
- if (!childSegmentMap || childSegmentMap === existingChildSegmentMap) {
46
- childSegmentMap = new Map(existingChildSegmentMap);
47
- newCacheNode.parallelRoutes.set(parallelRouteKey, childSegmentMap);
48
- }
49
- const existingChildCacheNode = existingChildSegmentMap.get(cacheKey);
50
- let childCacheNode = childSegmentMap.get(cacheKey);
51
- if (isLastEntry) {
52
- if (cacheNodeSeedData && (!childCacheNode || !childCacheNode.lazyData || childCacheNode === existingChildCacheNode)) {
53
- const rsc = cacheNodeSeedData[0];
54
- const loading = cacheNodeSeedData[2];
55
- childCacheNode = {
56
- lazyData: null,
57
- // When `fillLazyItems` is false, we only want to fill the RSC data for the layout,
58
- // not the page segment.
59
- rsc: fillLazyItems || segment !== _segment.PAGE_SEGMENT_KEY ? rsc : null,
60
- prefetchRsc: null,
61
- head: null,
62
- prefetchHead: null,
63
- loading,
64
- parallelRoutes: fillLazyItems && existingChildCacheNode ? new Map(existingChildCacheNode.parallelRoutes) : new Map(),
65
- navigatedAt
66
- };
67
- if (existingChildCacheNode && fillLazyItems) {
68
- (0, _invalidatecachebyrouterstate.invalidateCacheByRouterState)(childCacheNode, existingChildCacheNode, treePatch);
69
- }
70
- if (fillLazyItems) {
71
- (0, _filllazyitemstillleafwithhead.fillLazyItemsTillLeafWithHead)(navigatedAt, childCacheNode, existingChildCacheNode, treePatch, cacheNodeSeedData, head);
72
- }
73
- childSegmentMap.set(cacheKey, childCacheNode);
74
- }
75
- continue;
76
- }
77
- if (!childCacheNode || !existingChildCacheNode) {
78
- continue;
79
- }
80
- if (childCacheNode === existingChildCacheNode) {
81
- childCacheNode = {
82
- lazyData: childCacheNode.lazyData,
83
- rsc: childCacheNode.rsc,
84
- prefetchRsc: childCacheNode.prefetchRsc,
85
- head: childCacheNode.head,
86
- prefetchHead: childCacheNode.prefetchHead,
87
- parallelRoutes: new Map(childCacheNode.parallelRoutes),
88
- loading: childCacheNode.loading
89
- };
90
- childSegmentMap.set(cacheKey, childCacheNode);
91
- }
92
- // Move deeper into the cache nodes
93
- newCacheNode = childCacheNode;
94
- existingCacheNode = existingChildCacheNode;
95
- }
96
- }
97
- function fillCacheWithNewSubTreeData(navigatedAt, newCache, existingCache, flightData) {
98
- fillCacheHelper(navigatedAt, newCache, existingCache, flightData, true);
99
- }
100
- function fillCacheWithNewSubTreeDataButOnlyLoading(navigatedAt, newCache, existingCache, flightData) {
101
- fillCacheHelper(navigatedAt, newCache, existingCache, flightData, false);
102
- }
103
-
104
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
105
- Object.defineProperty(exports.default, '__esModule', { value: true });
106
- Object.assign(exports.default, exports);
107
- module.exports = exports.default;
108
- }
109
-
110
- //# sourceMappingURL=fill-cache-with-new-subtree-data.js.map
@@ -1,131 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "fillLazyItemsTillLeafWithHead", {
6
- enumerable: true,
7
- get: function() {
8
- return fillLazyItemsTillLeafWithHead;
9
- }
10
- });
11
- const _createroutercachekey = require("./create-router-cache-key");
12
- function fillLazyItemsTillLeafWithHead(navigatedAt, newCache, existingCache, routerState, cacheNodeSeedData, head) {
13
- const isLastSegment = Object.keys(routerState[1]).length === 0;
14
- if (isLastSegment) {
15
- newCache.head = head;
16
- return;
17
- }
18
- // Remove segment that we got data for so that it is filled in during rendering of rsc.
19
- for(const key in routerState[1]){
20
- const parallelRouteState = routerState[1][key];
21
- const segmentForParallelRoute = parallelRouteState[0];
22
- const cacheKey = (0, _createroutercachekey.createRouterCacheKey)(segmentForParallelRoute);
23
- // TODO: We should traverse the cacheNodeSeedData tree instead of the router
24
- // state tree. Ideally, they would always be the same shape, but because of
25
- // the loading.js pattern, cacheNodeSeedData sometimes only represents a
26
- // partial tree. That's why this node is sometimes null. Once PPR lands,
27
- // loading.js will no longer have special behavior and we can traverse the
28
- // data tree instead.
29
- //
30
- // We should also consider merging the router state tree and the data tree
31
- // in the response format, so that we don't have to send the keys twice.
32
- // Then the client can convert them into separate representations.
33
- const parallelSeedData = cacheNodeSeedData !== null && cacheNodeSeedData[1][key] !== undefined ? cacheNodeSeedData[1][key] : null;
34
- if (existingCache) {
35
- const existingParallelRoutesCacheNode = existingCache.parallelRoutes.get(key);
36
- if (existingParallelRoutesCacheNode) {
37
- let parallelRouteCacheNode = new Map(existingParallelRoutesCacheNode);
38
- const existingCacheNode = parallelRouteCacheNode.get(cacheKey);
39
- let newCacheNode;
40
- if (parallelSeedData !== null) {
41
- // New data was sent from the server.
42
- const seedNode = parallelSeedData[0];
43
- const loading = parallelSeedData[2];
44
- newCacheNode = {
45
- lazyData: null,
46
- rsc: seedNode,
47
- // This is a PPR-only field. When PPR is enabled, we shouldn't hit
48
- // this path during a navigation, but until PPR is fully implemented
49
- // yet it's possible the existing node does have a non-null
50
- // `prefetchRsc`. As an incremental step, we'll just de-opt to the
51
- // old behavior — no PPR value.
52
- prefetchRsc: null,
53
- head: null,
54
- prefetchHead: null,
55
- loading,
56
- parallelRoutes: new Map(existingCacheNode?.parallelRoutes),
57
- navigatedAt
58
- };
59
- } else {
60
- // No data available for this node. This will trigger a lazy fetch
61
- // during render.
62
- newCacheNode = {
63
- lazyData: null,
64
- rsc: null,
65
- prefetchRsc: null,
66
- head: null,
67
- prefetchHead: null,
68
- parallelRoutes: new Map(existingCacheNode?.parallelRoutes),
69
- loading: null,
70
- navigatedAt
71
- };
72
- }
73
- // Overrides the cache key with the new cache node.
74
- parallelRouteCacheNode.set(cacheKey, newCacheNode);
75
- // Traverse deeper to apply the head / fill lazy items till the head.
76
- fillLazyItemsTillLeafWithHead(navigatedAt, newCacheNode, existingCacheNode, parallelRouteState, parallelSeedData ? parallelSeedData : null, head);
77
- newCache.parallelRoutes.set(key, parallelRouteCacheNode);
78
- continue;
79
- }
80
- }
81
- let newCacheNode;
82
- if (parallelSeedData !== null) {
83
- // New data was sent from the server.
84
- const seedNode = parallelSeedData[0];
85
- const loading = parallelSeedData[2];
86
- newCacheNode = {
87
- lazyData: null,
88
- rsc: seedNode,
89
- prefetchRsc: null,
90
- head: null,
91
- prefetchHead: null,
92
- parallelRoutes: new Map(),
93
- loading,
94
- navigatedAt
95
- };
96
- } else {
97
- // No data available for this node. This will trigger a lazy fetch
98
- // during render.
99
- newCacheNode = {
100
- lazyData: null,
101
- rsc: null,
102
- prefetchRsc: null,
103
- head: null,
104
- prefetchHead: null,
105
- parallelRoutes: new Map(),
106
- loading: null,
107
- navigatedAt
108
- };
109
- }
110
- const existingParallelRoutes = newCache.parallelRoutes.get(key);
111
- if (existingParallelRoutes) {
112
- existingParallelRoutes.set(cacheKey, newCacheNode);
113
- } else {
114
- newCache.parallelRoutes.set(key, new Map([
115
- [
116
- cacheKey,
117
- newCacheNode
118
- ]
119
- ]));
120
- }
121
- fillLazyItemsTillLeafWithHead(navigatedAt, newCacheNode, undefined, parallelRouteState, parallelSeedData, head);
122
- }
123
- }
124
-
125
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
126
- Object.defineProperty(exports.default, '__esModule', { value: true });
127
- Object.assign(exports.default, exports);
128
- module.exports = exports.default;
129
- }
130
-
131
- //# sourceMappingURL=fill-lazy-items-till-leaf-with-head.js.map
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "handleSegmentMismatch", {
6
- enumerable: true,
7
- get: function() {
8
- return handleSegmentMismatch;
9
- }
10
- });
11
- const _navigatereducer = require("./reducers/navigate-reducer");
12
- function handleSegmentMismatch(state, action, treePatch) {
13
- if (process.env.NODE_ENV === 'development') {
14
- console.warn('Performing hard navigation because your application experienced an unrecoverable error. If this keeps occurring, please file a Next.js issue.\n\n' + 'Reason: Segment mismatch\n' + `Last Action: ${action.type}\n\n` + `Current Tree: ${JSON.stringify(state.tree)}\n\n` + `Tree Patch Payload: ${JSON.stringify(treePatch)}`);
15
- }
16
- return (0, _navigatereducer.handleExternalUrl)(state, {}, state.canonicalUrl, true);
17
- }
18
-
19
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
20
- Object.defineProperty(exports.default, '__esModule', { value: true });
21
- Object.assign(exports.default, exports);
22
- module.exports = exports.default;
23
- }
24
-
25
- //# sourceMappingURL=handle-segment-mismatch.js.map
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "invalidateCacheByRouterState", {
6
- enumerable: true,
7
- get: function() {
8
- return invalidateCacheByRouterState;
9
- }
10
- });
11
- const _createroutercachekey = require("./create-router-cache-key");
12
- function invalidateCacheByRouterState(newCache, existingCache, routerState) {
13
- // Remove segment that we got data for so that it is filled in during rendering of rsc.
14
- for(const key in routerState[1]){
15
- const segmentForParallelRoute = routerState[1][key][0];
16
- const cacheKey = (0, _createroutercachekey.createRouterCacheKey)(segmentForParallelRoute);
17
- const existingParallelRoutesCacheNode = existingCache.parallelRoutes.get(key);
18
- if (existingParallelRoutesCacheNode) {
19
- let parallelRouteCacheNode = new Map(existingParallelRoutesCacheNode);
20
- parallelRouteCacheNode.delete(cacheKey);
21
- newCache.parallelRoutes.set(key, parallelRouteCacheNode);
22
- }
23
- }
24
- }
25
-
26
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
27
- Object.defineProperty(exports.default, '__esModule', { value: true });
28
- Object.assign(exports.default, exports);
29
- module.exports = exports.default;
30
- }
31
-
32
- //# sourceMappingURL=invalidate-cache-by-router-state.js.map
@@ -1,104 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- 0 && (module.exports = {
6
- addRefreshMarkerToActiveParallelSegments: null,
7
- refreshInactiveParallelSegments: null
8
- });
9
- function _export(target, all) {
10
- for(var name in all)Object.defineProperty(target, name, {
11
- enumerable: true,
12
- get: all[name]
13
- });
14
- }
15
- _export(exports, {
16
- addRefreshMarkerToActiveParallelSegments: function() {
17
- return addRefreshMarkerToActiveParallelSegments;
18
- },
19
- refreshInactiveParallelSegments: function() {
20
- return refreshInactiveParallelSegments;
21
- }
22
- });
23
- const _applyflightdata = require("./apply-flight-data");
24
- const _fetchserverresponse = require("./fetch-server-response");
25
- const _segment = require("../../../shared/lib/segment");
26
- async function refreshInactiveParallelSegments(options) {
27
- const fetchedSegments = new Set();
28
- await refreshInactiveParallelSegmentsImpl({
29
- ...options,
30
- rootTree: options.updatedTree,
31
- fetchedSegments
32
- });
33
- }
34
- async function refreshInactiveParallelSegmentsImpl({ navigatedAt, state, updatedTree, updatedCache, includeNextUrl, fetchedSegments, rootTree = updatedTree, canonicalUrl }) {
35
- const [, parallelRoutes, refetchPath, refetchMarker] = updatedTree;
36
- const fetchPromises = [];
37
- if (refetchPath && refetchPath !== canonicalUrl && refetchMarker === 'refresh' && // it's possible for the tree to contain multiple segments that contain data at the same URL
38
- // we keep track of them so we can dedupe the requests
39
- !fetchedSegments.has(refetchPath)) {
40
- fetchedSegments.add(refetchPath) // Mark this URL as fetched
41
- ;
42
- // Eagerly kick off the fetch for the refetch path & the parallel routes. This should be fine to do as they each operate
43
- // independently on their own cache nodes, and `applyFlightData` will copy anything it doesn't care about from the existing cache.
44
- const fetchPromise = (0, _fetchserverresponse.fetchServerResponse)(new URL(refetchPath, location.origin), {
45
- // refetch from the root of the updated tree, otherwise it will be scoped to the current segment
46
- // and might not contain the data we need to patch in interception route data (such as dynamic params from a previous segment)
47
- flightRouterState: [
48
- rootTree[0],
49
- rootTree[1],
50
- rootTree[2],
51
- 'refetch'
52
- ],
53
- nextUrl: includeNextUrl ? state.nextUrl : null
54
- }).then((result)=>{
55
- if (typeof result !== 'string') {
56
- const { flightData } = result;
57
- for (const flightDataPath of flightData){
58
- // we only pass the new cache as this function is called after clearing the router cache
59
- // and filling in the new page data from the server. Meaning the existing cache is actually the cache that's
60
- // just been created & has been written to, but hasn't been "committed" yet.
61
- (0, _applyflightdata.applyFlightData)(navigatedAt, updatedCache, updatedCache, flightDataPath);
62
- }
63
- } else {
64
- // When result is a string, it suggests that the server response should have triggered an MPA navigation
65
- // I'm not 100% sure of this decision, but it seems unlikely that we'd want to introduce a redirect side effect
66
- // when refreshing on-screen data, so handling this has been ommitted.
67
- }
68
- });
69
- fetchPromises.push(fetchPromise);
70
- }
71
- for(const key in parallelRoutes){
72
- const parallelFetchPromise = refreshInactiveParallelSegmentsImpl({
73
- navigatedAt,
74
- state,
75
- updatedTree: parallelRoutes[key],
76
- updatedCache,
77
- includeNextUrl,
78
- fetchedSegments,
79
- rootTree,
80
- canonicalUrl
81
- });
82
- fetchPromises.push(parallelFetchPromise);
83
- }
84
- await Promise.all(fetchPromises);
85
- }
86
- function addRefreshMarkerToActiveParallelSegments(tree, path) {
87
- const [segment, parallelRoutes, , refetchMarker] = tree;
88
- // a page segment might also contain concatenated search params, so we do a partial match on the key
89
- if (segment.includes(_segment.PAGE_SEGMENT_KEY) && refetchMarker !== 'refresh') {
90
- tree[2] = path;
91
- tree[3] = 'refresh';
92
- }
93
- for(const key in parallelRoutes){
94
- addRefreshMarkerToActiveParallelSegments(parallelRoutes[key], path);
95
- }
96
- }
97
-
98
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
99
- Object.defineProperty(exports.default, '__esModule', { value: true });
100
- Object.assign(exports.default, exports);
101
- module.exports = exports.default;
102
- }
103
-
104
- //# sourceMappingURL=refetch-inactive-parallel-segments.js.map