@betterinternship/components 2.4.0 → 2.4.1

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 (492) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/_commonjsHelpers.js.map +1 -0
  3. package/dist/_virtual/_interop_require_default.js +4 -0
  4. package/dist/_virtual/_interop_require_default.js.map +1 -0
  5. package/dist/_virtual/_interop_require_wildcard.js +4 -0
  6. package/dist/_virtual/_interop_require_wildcard.js.map +1 -0
  7. package/dist/_virtual/action-async-storage-instance.js +4 -0
  8. package/dist/_virtual/action-async-storage-instance.js.map +1 -0
  9. package/dist/_virtual/action-async-storage.external.js +4 -0
  10. package/dist/_virtual/action-async-storage.external.js.map +1 -0
  11. package/dist/_virtual/action-revalidation-kind.js +4 -0
  12. package/dist/_virtual/action-revalidation-kind.js.map +1 -0
  13. package/dist/_virtual/add-base-path.js +4 -0
  14. package/dist/_virtual/add-base-path.js.map +1 -0
  15. package/dist/_virtual/add-locale.js +4 -0
  16. package/dist/_virtual/add-locale.js.map +1 -0
  17. package/dist/_virtual/add-locale2.js +4 -0
  18. package/dist/_virtual/add-locale2.js.map +1 -0
  19. package/dist/_virtual/add-path-prefix.js +4 -0
  20. package/dist/_virtual/add-path-prefix.js.map +1 -0
  21. package/dist/_virtual/app-paths.js +4 -0
  22. package/dist/_virtual/app-paths.js.map +1 -0
  23. package/dist/_virtual/app-router-context.shared-runtime.js +4 -0
  24. package/dist/_virtual/app-router-context.shared-runtime.js.map +1 -0
  25. package/dist/_virtual/app.js +4 -0
  26. package/dist/_virtual/app.js.map +1 -0
  27. package/dist/_virtual/async-local-storage.js +4 -0
  28. package/dist/_virtual/async-local-storage.js.map +1 -0
  29. package/dist/_virtual/bailout-to-csr.js +4 -0
  30. package/dist/_virtual/bailout-to-csr.js.map +1 -0
  31. package/dist/_virtual/blocking-route-messages.js +4 -0
  32. package/dist/_virtual/blocking-route-messages.js.map +1 -0
  33. package/dist/_virtual/boundary-constants.js +4 -0
  34. package/dist/_virtual/boundary-constants.js.map +1 -0
  35. package/dist/_virtual/boundary-constants2.js +4 -0
  36. package/dist/_virtual/boundary-constants2.js.map +1 -0
  37. package/dist/_virtual/boundary-tracking.js +4 -0
  38. package/dist/_virtual/boundary-tracking.js.map +1 -0
  39. package/dist/_virtual/constants.js +4 -0
  40. package/dist/_virtual/constants.js.map +1 -0
  41. package/dist/_virtual/cookies.js +4 -0
  42. package/dist/_virtual/cookies.js.map +1 -0
  43. package/dist/_virtual/deployment-id.js +4 -0
  44. package/dist/_virtual/deployment-id.js.map +1 -0
  45. package/dist/_virtual/detect-domain-locale.js +4 -0
  46. package/dist/_virtual/detect-domain-locale.js.map +1 -0
  47. package/dist/_virtual/detect-domain-locale2.js +4 -0
  48. package/dist/_virtual/detect-domain-locale2.js.map +1 -0
  49. package/dist/_virtual/dynamic-rendering-utils.js +4 -0
  50. package/dist/_virtual/dynamic-rendering-utils.js.map +1 -0
  51. package/dist/_virtual/dynamic-rendering.js +4 -0
  52. package/dist/_virtual/dynamic-rendering.js.map +1 -0
  53. package/dist/_virtual/ensure-leading-slash.js +4 -0
  54. package/dist/_virtual/ensure-leading-slash.js.map +1 -0
  55. package/dist/_virtual/error-once.js +4 -0
  56. package/dist/_virtual/error-once.js.map +1 -0
  57. package/dist/_virtual/escape-regexp.js +4 -0
  58. package/dist/_virtual/escape-regexp.js.map +1 -0
  59. package/dist/_virtual/find-closest-quality.js +4 -0
  60. package/dist/_virtual/find-closest-quality.js.map +1 -0
  61. package/dist/_virtual/forbidden.js +4 -0
  62. package/dist/_virtual/forbidden.js.map +1 -0
  63. package/dist/_virtual/format-url.js +4 -0
  64. package/dist/_virtual/format-url.js.map +1 -0
  65. package/dist/_virtual/get-domain-locale.js +4 -0
  66. package/dist/_virtual/get-domain-locale.js.map +1 -0
  67. package/dist/_virtual/get-dynamic-param.js +4 -0
  68. package/dist/_virtual/get-dynamic-param.js.map +1 -0
  69. package/dist/_virtual/get-img-props.js +4 -0
  70. package/dist/_virtual/get-img-props.js.map +1 -0
  71. package/dist/_virtual/get-segment-param.js +4 -0
  72. package/dist/_virtual/get-segment-param.js.map +1 -0
  73. package/dist/_virtual/has-base-path.js +4 -0
  74. package/dist/_virtual/has-base-path.js.map +1 -0
  75. package/dist/_virtual/head-manager-context.shared-runtime.js +4 -0
  76. package/dist/_virtual/head-manager-context.shared-runtime.js.map +1 -0
  77. package/dist/_virtual/head.js +4 -0
  78. package/dist/_virtual/head.js.map +1 -0
  79. package/dist/_virtual/headers.js +4 -0
  80. package/dist/_virtual/headers.js.map +1 -0
  81. package/dist/_virtual/hooks-client-context.shared-runtime.js +4 -0
  82. package/dist/_virtual/hooks-client-context.shared-runtime.js.map +1 -0
  83. package/dist/_virtual/hooks-server-context.js +4 -0
  84. package/dist/_virtual/hooks-server-context.js.map +1 -0
  85. package/dist/_virtual/http-access-fallback.js +4 -0
  86. package/dist/_virtual/http-access-fallback.js.map +1 -0
  87. package/dist/_virtual/image-blur-svg.js +4 -0
  88. package/dist/_virtual/image-blur-svg.js.map +1 -0
  89. package/dist/_virtual/image-component.js +4 -0
  90. package/dist/_virtual/image-component.js.map +1 -0
  91. package/dist/_virtual/image-config-context.shared-runtime.js +4 -0
  92. package/dist/_virtual/image-config-context.shared-runtime.js.map +1 -0
  93. package/dist/_virtual/image-config.js +4 -0
  94. package/dist/_virtual/image-config.js.map +1 -0
  95. package/dist/_virtual/image-external.js +4 -0
  96. package/dist/_virtual/image-external.js.map +1 -0
  97. package/dist/_virtual/image-loader.js +4 -0
  98. package/dist/_virtual/image-loader.js.map +1 -0
  99. package/dist/_virtual/image.js +8 -0
  100. package/dist/_virtual/image.js.map +1 -0
  101. package/dist/_virtual/index.js +4 -0
  102. package/dist/_virtual/index.js.map +1 -0
  103. package/dist/_virtual/index2.js +4 -0
  104. package/dist/_virtual/index2.js.map +1 -0
  105. package/dist/_virtual/index3.js +4 -0
  106. package/dist/_virtual/index3.js.map +1 -0
  107. package/dist/_virtual/instant-messages.js +4 -0
  108. package/dist/_virtual/instant-messages.js.map +1 -0
  109. package/dist/_virtual/instant-samples.js +4 -0
  110. package/dist/_virtual/instant-samples.js.map +1 -0
  111. package/dist/_virtual/instant-samples2.js +4 -0
  112. package/dist/_virtual/instant-samples2.js.map +1 -0
  113. package/dist/_virtual/instant-validation-error.js +4 -0
  114. package/dist/_virtual/instant-validation-error.js.map +1 -0
  115. package/dist/_virtual/interception-prefix-from-param-type.js +4 -0
  116. package/dist/_virtual/interception-prefix-from-param-type.js.map +1 -0
  117. package/dist/_virtual/interception-routes.js +4 -0
  118. package/dist/_virtual/interception-routes.js.map +1 -0
  119. package/dist/_virtual/interpolate-as.js +4 -0
  120. package/dist/_virtual/interpolate-as.js.map +1 -0
  121. package/dist/_virtual/invariant-error.js +4 -0
  122. package/dist/_virtual/invariant-error.js.map +1 -0
  123. package/dist/_virtual/is-dynamic.js +4 -0
  124. package/dist/_virtual/is-dynamic.js.map +1 -0
  125. package/dist/_virtual/is-local-url.js +4 -0
  126. package/dist/_virtual/is-local-url.js.map +1 -0
  127. package/dist/_virtual/is-next-router-error.js +4 -0
  128. package/dist/_virtual/is-next-router-error.js.map +1 -0
  129. package/dist/_virtual/is-postpone.js +4 -0
  130. package/dist/_virtual/is-postpone.js.map +1 -0
  131. package/dist/_virtual/link.js +8 -0
  132. package/dist/_virtual/link.js.map +1 -0
  133. package/dist/_virtual/link2.js +4 -0
  134. package/dist/_virtual/link2.js.map +1 -0
  135. package/dist/_virtual/match-local-pattern.js +4 -0
  136. package/dist/_virtual/match-local-pattern.js.map +1 -0
  137. package/dist/_virtual/match-remote-pattern.js +4 -0
  138. package/dist/_virtual/match-remote-pattern.js.map +1 -0
  139. package/dist/_virtual/navigation-dynamic-rendering.js +4 -0
  140. package/dist/_virtual/navigation-dynamic-rendering.js.map +1 -0
  141. package/dist/_virtual/navigation.js +6 -0
  142. package/dist/_virtual/navigation.js.map +1 -0
  143. package/dist/_virtual/navigation.react-server.js +4 -0
  144. package/dist/_virtual/navigation.react-server.js.map +1 -0
  145. package/dist/_virtual/navigation2.js +4 -0
  146. package/dist/_virtual/navigation2.js.map +1 -0
  147. package/dist/_virtual/normalize-locale-path.js +4 -0
  148. package/dist/_virtual/normalize-locale-path.js.map +1 -0
  149. package/dist/_virtual/normalize-locale-path2.js +4 -0
  150. package/dist/_virtual/normalize-locale-path2.js.map +1 -0
  151. package/dist/_virtual/normalize-trailing-slash.js +4 -0
  152. package/dist/_virtual/normalize-trailing-slash.js.map +1 -0
  153. package/dist/_virtual/not-found.js +4 -0
  154. package/dist/_virtual/not-found.js.map +1 -0
  155. package/dist/_virtual/omit.js +4 -0
  156. package/dist/_virtual/omit.js.map +1 -0
  157. package/dist/_virtual/parse-loader-tree.js +4 -0
  158. package/dist/_virtual/parse-loader-tree.js.map +1 -0
  159. package/dist/_virtual/parse-path.js +4 -0
  160. package/dist/_virtual/parse-path.js.map +1 -0
  161. package/dist/_virtual/parse-relative-url.js +4 -0
  162. package/dist/_virtual/parse-relative-url.js.map +1 -0
  163. package/dist/_virtual/path-has-prefix.js +4 -0
  164. package/dist/_virtual/path-has-prefix.js.map +1 -0
  165. package/dist/_virtual/promise-with-resolvers.js +4 -0
  166. package/dist/_virtual/promise-with-resolvers.js.map +1 -0
  167. package/dist/_virtual/querystring.js +4 -0
  168. package/dist/_virtual/querystring.js.map +1 -0
  169. package/dist/_virtual/readonly-url-search-params.js +4 -0
  170. package/dist/_virtual/readonly-url-search-params.js.map +1 -0
  171. package/dist/_virtual/redirect-error.js +4 -0
  172. package/dist/_virtual/redirect-error.js.map +1 -0
  173. package/dist/_virtual/redirect-status-code.js +4 -0
  174. package/dist/_virtual/redirect-status-code.js.map +1 -0
  175. package/dist/_virtual/redirect.js +4 -0
  176. package/dist/_virtual/redirect.js.map +1 -0
  177. package/dist/_virtual/reflect-utils.js +4 -0
  178. package/dist/_virtual/reflect-utils.js.map +1 -0
  179. package/dist/_virtual/reflect.js +4 -0
  180. package/dist/_virtual/reflect.js.map +1 -0
  181. package/dist/_virtual/remove-trailing-slash.js +4 -0
  182. package/dist/_virtual/remove-trailing-slash.js.map +1 -0
  183. package/dist/_virtual/request-cookies.js +4 -0
  184. package/dist/_virtual/request-cookies.js.map +1 -0
  185. package/dist/_virtual/request-idle-callback.js +4 -0
  186. package/dist/_virtual/request-idle-callback.js.map +1 -0
  187. package/dist/_virtual/resolve-href.js +4 -0
  188. package/dist/_virtual/resolve-href.js.map +1 -0
  189. package/dist/_virtual/resolve-param-value.js +4 -0
  190. package/dist/_virtual/resolve-param-value.js.map +1 -0
  191. package/dist/_virtual/route-match-utils.js +4 -0
  192. package/dist/_virtual/route-match-utils.js.map +1 -0
  193. package/dist/_virtual/route-matcher.js +4 -0
  194. package/dist/_virtual/route-matcher.js.map +1 -0
  195. package/dist/_virtual/route-pattern-normalizer.js +4 -0
  196. package/dist/_virtual/route-pattern-normalizer.js.map +1 -0
  197. package/dist/_virtual/route-regex.js +4 -0
  198. package/dist/_virtual/route-regex.js.map +1 -0
  199. package/dist/_virtual/router-context.shared-runtime.js +4 -0
  200. package/dist/_virtual/router-context.shared-runtime.js.map +1 -0
  201. package/dist/_virtual/runtime-reacts.external.js +4 -0
  202. package/dist/_virtual/runtime-reacts.external.js.map +1 -0
  203. package/dist/_virtual/scheduler.js +4 -0
  204. package/dist/_virtual/scheduler.js.map +1 -0
  205. package/dist/_virtual/segment.js +4 -0
  206. package/dist/_virtual/segment.js.map +1 -0
  207. package/dist/_virtual/server-async-storage.js +4 -0
  208. package/dist/_virtual/server-async-storage.js.map +1 -0
  209. package/dist/_virtual/server-inserted-html.shared-runtime.js +4 -0
  210. package/dist/_virtual/server-inserted-html.shared-runtime.js.map +1 -0
  211. package/dist/_virtual/side-effect.js +4 -0
  212. package/dist/_virtual/side-effect.js.map +1 -0
  213. package/dist/_virtual/sorted-routes.js +4 -0
  214. package/dist/_virtual/sorted-routes.js.map +1 -0
  215. package/dist/_virtual/staged-rendering.js +4 -0
  216. package/dist/_virtual/staged-rendering.js.map +1 -0
  217. package/dist/_virtual/static-generation-bailout.js +4 -0
  218. package/dist/_virtual/static-generation-bailout.js.map +1 -0
  219. package/dist/_virtual/unauthorized.js +4 -0
  220. package/dist/_virtual/unauthorized.js.map +1 -0
  221. package/dist/_virtual/unrecognized-action-error.js +4 -0
  222. package/dist/_virtual/unrecognized-action-error.js.map +1 -0
  223. package/dist/_virtual/unstable-rethrow.js +4 -0
  224. package/dist/_virtual/unstable-rethrow.js.map +1 -0
  225. package/dist/_virtual/use-intersection.js +4 -0
  226. package/dist/_virtual/use-intersection.js.map +1 -0
  227. package/dist/_virtual/use-merged-ref.js +4 -0
  228. package/dist/_virtual/use-merged-ref.js.map +1 -0
  229. package/dist/_virtual/utils.js +4 -0
  230. package/dist/_virtual/utils.js.map +1 -0
  231. package/dist/_virtual/warn-once.js +4 -0
  232. package/dist/_virtual/warn-once.js.map +1 -0
  233. package/dist/_virtual/work-async-storage-instance.js +4 -0
  234. package/dist/_virtual/work-async-storage-instance.js.map +1 -0
  235. package/dist/_virtual/work-async-storage.external.js +4 -0
  236. package/dist/_virtual/work-async-storage.external.js.map +1 -0
  237. package/dist/_virtual/work-unit-async-storage-instance.js +4 -0
  238. package/dist/_virtual/work-unit-async-storage-instance.js.map +1 -0
  239. package/dist/_virtual/work-unit-async-storage.external.js +4 -0
  240. package/dist/_virtual/work-unit-async-storage.external.js.map +1 -0
  241. package/dist/components/ui/app-header.js +72 -0
  242. package/dist/components/ui/app-header.js.map +1 -0
  243. package/dist/components/ui/dropdown-menu.js +61 -0
  244. package/dist/components/ui/dropdown-menu.js.map +1 -0
  245. package/dist/components/ui/page-header.js +17 -0
  246. package/dist/components/ui/page-header.js.map +1 -0
  247. package/dist/components/ui/status-notice.js +27 -0
  248. package/dist/components/ui/status-notice.js.map +1 -0
  249. package/dist/index.d.ts +4 -0
  250. package/dist/index.js +4 -0
  251. package/dist/index.js.map +1 -1
  252. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +17 -0
  253. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js.map +1 -0
  254. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +49 -0
  255. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js.map +1 -0
  256. package/dist/node_modules/next/dist/client/add-base-path.js +39 -0
  257. package/dist/node_modules/next/dist/client/add-base-path.js.map +1 -0
  258. package/dist/node_modules/next/dist/client/add-locale.js +40 -0
  259. package/dist/node_modules/next/dist/client/add-locale.js.map +1 -0
  260. package/dist/node_modules/next/dist/client/components/forbidden.js +62 -0
  261. package/dist/node_modules/next/dist/client/components/forbidden.js.map +1 -0
  262. package/dist/node_modules/next/dist/client/components/hooks-server-context.js +51 -0
  263. package/dist/node_modules/next/dist/client/components/hooks-server-context.js.map +1 -0
  264. package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +78 -0
  265. package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js.map +1 -0
  266. package/dist/node_modules/next/dist/client/components/instant-samples.js +107 -0
  267. package/dist/node_modules/next/dist/client/components/instant-samples.js.map +1 -0
  268. package/dist/node_modules/next/dist/client/components/is-next-router-error.js +38 -0
  269. package/dist/node_modules/next/dist/client/components/is-next-router-error.js.map +1 -0
  270. package/dist/node_modules/next/dist/client/components/navigation-dynamic-rendering.js +41 -0
  271. package/dist/node_modules/next/dist/client/components/navigation-dynamic-rendering.js.map +1 -0
  272. package/dist/node_modules/next/dist/client/components/navigation.js +250 -0
  273. package/dist/node_modules/next/dist/client/components/navigation.js.map +1 -0
  274. package/dist/node_modules/next/dist/client/components/navigation.react-server.js +83 -0
  275. package/dist/node_modules/next/dist/client/components/navigation.react-server.js.map +1 -0
  276. package/dist/node_modules/next/dist/client/components/not-found.js +56 -0
  277. package/dist/node_modules/next/dist/client/components/not-found.js.map +1 -0
  278. package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js +61 -0
  279. package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js.map +1 -0
  280. package/dist/node_modules/next/dist/client/components/redirect-error.js +53 -0
  281. package/dist/node_modules/next/dist/client/components/redirect-error.js.map +1 -0
  282. package/dist/node_modules/next/dist/client/components/redirect-status-code.js +37 -0
  283. package/dist/node_modules/next/dist/client/components/redirect-status-code.js.map +1 -0
  284. package/dist/node_modules/next/dist/client/components/redirect.js +99 -0
  285. package/dist/node_modules/next/dist/client/components/redirect.js.map +1 -0
  286. package/dist/node_modules/next/dist/client/components/server-async-storage.js +48 -0
  287. package/dist/node_modules/next/dist/client/components/server-async-storage.js.map +1 -0
  288. package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +51 -0
  289. package/dist/node_modules/next/dist/client/components/static-generation-bailout.js.map +1 -0
  290. package/dist/node_modules/next/dist/client/components/unauthorized.js +63 -0
  291. package/dist/node_modules/next/dist/client/components/unauthorized.js.map +1 -0
  292. package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js +48 -0
  293. package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js.map +1 -0
  294. package/dist/node_modules/next/dist/client/components/unstable-rethrow.js +51 -0
  295. package/dist/node_modules/next/dist/client/components/unstable-rethrow.js.map +1 -0
  296. package/dist/node_modules/next/dist/client/detect-domain-locale.js +37 -0
  297. package/dist/node_modules/next/dist/client/detect-domain-locale.js.map +1 -0
  298. package/dist/node_modules/next/dist/client/get-domain-locale.js +52 -0
  299. package/dist/node_modules/next/dist/client/get-domain-locale.js.map +1 -0
  300. package/dist/node_modules/next/dist/client/has-base-path.js +37 -0
  301. package/dist/node_modules/next/dist/client/has-base-path.js.map +1 -0
  302. package/dist/node_modules/next/dist/client/image-component.js +351 -0
  303. package/dist/node_modules/next/dist/client/image-component.js.map +1 -0
  304. package/dist/node_modules/next/dist/client/link.js +471 -0
  305. package/dist/node_modules/next/dist/client/link.js.map +1 -0
  306. package/dist/node_modules/next/dist/client/normalize-locale-path.js +41 -0
  307. package/dist/node_modules/next/dist/client/normalize-locale-path.js.map +1 -0
  308. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +52 -0
  309. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js.map +1 -0
  310. package/dist/node_modules/next/dist/client/request-idle-callback.js +53 -0
  311. package/dist/node_modules/next/dist/client/request-idle-callback.js.map +1 -0
  312. package/dist/node_modules/next/dist/client/resolve-href.js +129 -0
  313. package/dist/node_modules/next/dist/client/resolve-href.js.map +1 -0
  314. package/dist/node_modules/next/dist/client/use-intersection.js +129 -0
  315. package/dist/node_modules/next/dist/client/use-intersection.js.map +1 -0
  316. package/dist/node_modules/next/dist/client/use-merged-ref.js +83 -0
  317. package/dist/node_modules/next/dist/client/use-merged-ref.js.map +1 -0
  318. package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +341 -0
  319. package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js.map +1 -0
  320. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +13 -0
  321. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js.map +1 -0
  322. package/dist/node_modules/next/dist/compiled/picomatch/index.js +13 -0
  323. package/dist/node_modules/next/dist/compiled/picomatch/index.js.map +1 -0
  324. package/dist/node_modules/next/dist/lib/constants.js +370 -0
  325. package/dist/node_modules/next/dist/lib/constants.js.map +1 -0
  326. package/dist/node_modules/next/dist/lib/framework/boundary-constants.js +43 -0
  327. package/dist/node_modules/next/dist/lib/framework/boundary-constants.js.map +1 -0
  328. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +112 -0
  329. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js.map +1 -0
  330. package/dist/node_modules/next/dist/lib/scheduler.js +71 -0
  331. package/dist/node_modules/next/dist/lib/scheduler.js.map +1 -0
  332. package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js +28 -0
  333. package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js.map +1 -0
  334. package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js +27 -0
  335. package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js.map +1 -0
  336. package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +84 -0
  337. package/dist/node_modules/next/dist/server/app-render/async-local-storage.js.map +1 -0
  338. package/dist/node_modules/next/dist/server/app-render/blocking-route-messages.js +177 -0
  339. package/dist/node_modules/next/dist/server/app-render/blocking-route-messages.js.map +1 -0
  340. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +1168 -0
  341. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js.map +1 -0
  342. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +39 -0
  343. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js.map +1 -0
  344. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +47 -0
  345. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js.map +1 -0
  346. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +427 -0
  347. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js.map +1 -0
  348. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +42 -0
  349. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js.map +1 -0
  350. package/dist/node_modules/next/dist/server/app-render/staged-rendering.js +331 -0
  351. package/dist/node_modules/next/dist/server/app-render/staged-rendering.js.map +1 -0
  352. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +28 -0
  353. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js.map +1 -0
  354. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +27 -0
  355. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js.map +1 -0
  356. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +28 -0
  357. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js.map +1 -0
  358. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +211 -0
  359. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js.map +1 -0
  360. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +269 -0
  361. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js.map +1 -0
  362. package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js +29 -0
  363. package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js.map +1 -0
  364. package/dist/node_modules/next/dist/server/runtime-reacts.external.js +53 -0
  365. package/dist/node_modules/next/dist/server/runtime-reacts.external.js.map +1 -0
  366. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +303 -0
  367. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/headers.js.map +1 -0
  368. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +43 -0
  369. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js.map +1 -0
  370. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +233 -0
  371. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js.map +1 -0
  372. package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js +38 -0
  373. package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js.map +1 -0
  374. package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js +39 -0
  375. package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js.map +1 -0
  376. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +58 -0
  377. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js.map +1 -0
  378. package/dist/node_modules/next/dist/shared/lib/deployment-id.js +70 -0
  379. package/dist/node_modules/next/dist/shared/lib/deployment-id.js.map +1 -0
  380. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +34 -0
  381. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js.map +1 -0
  382. package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js +32 -0
  383. package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js.map +1 -0
  384. package/dist/node_modules/next/dist/shared/lib/get-img-props.js +614 -0
  385. package/dist/node_modules/next/dist/shared/lib/get-img-props.js.map +1 -0
  386. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +33 -0
  387. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js.map +1 -0
  388. package/dist/node_modules/next/dist/shared/lib/head.js +178 -0
  389. package/dist/node_modules/next/dist/shared/lib/head.js.map +1 -0
  390. package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +67 -0
  391. package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js.map +1 -0
  392. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +38 -0
  393. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js.map +1 -0
  394. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +67 -0
  395. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js.map +1 -0
  396. package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js +37 -0
  397. package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js.map +1 -0
  398. package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +35 -0
  399. package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js.map +1 -0
  400. package/dist/node_modules/next/dist/shared/lib/image-config.js +86 -0
  401. package/dist/node_modules/next/dist/shared/lib/image-config.js.map +1 -0
  402. package/dist/node_modules/next/dist/shared/lib/image-external.js +60 -0
  403. package/dist/node_modules/next/dist/shared/lib/image-external.js.map +1 -0
  404. package/dist/node_modules/next/dist/shared/lib/image-loader.js +135 -0
  405. package/dist/node_modules/next/dist/shared/lib/image-loader.js.map +1 -0
  406. package/dist/node_modules/next/dist/shared/lib/instant-messages.js +52 -0
  407. package/dist/node_modules/next/dist/shared/lib/instant-messages.js.map +1 -0
  408. package/dist/node_modules/next/dist/shared/lib/invariant-error.js +36 -0
  409. package/dist/node_modules/next/dist/shared/lib/invariant-error.js.map +1 -0
  410. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +45 -0
  411. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js.map +1 -0
  412. package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js +56 -0
  413. package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js.map +1 -0
  414. package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js +73 -0
  415. package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js.map +1 -0
  416. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +33 -0
  417. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js.map +1 -0
  418. package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js +39 -0
  419. package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js.map +1 -0
  420. package/dist/node_modules/next/dist/shared/lib/router/routes/app.js +167 -0
  421. package/dist/node_modules/next/dist/shared/lib/router/routes/app.js.map +1 -0
  422. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +43 -0
  423. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js.map +1 -0
  424. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +34 -0
  425. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js.map +1 -0
  426. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +72 -0
  427. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js.map +1 -0
  428. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +100 -0
  429. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js.map +1 -0
  430. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +184 -0
  431. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js.map +1 -0
  432. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +91 -0
  433. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js.map +1 -0
  434. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +40 -0
  435. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js.map +1 -0
  436. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +46 -0
  437. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js.map +1 -0
  438. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +116 -0
  439. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js.map +1 -0
  440. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +68 -0
  441. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js.map +1 -0
  442. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +40 -0
  443. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js.map +1 -0
  444. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +41 -0
  445. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js.map +1 -0
  446. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +34 -0
  447. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js.map +1 -0
  448. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +44 -0
  449. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js.map +1 -0
  450. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +48 -0
  451. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js.map +1 -0
  452. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +58 -0
  453. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js.map +1 -0
  454. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +34 -0
  455. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js.map +1 -0
  456. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +87 -0
  457. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js.map +1 -0
  458. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +37 -0
  459. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js.map +1 -0
  460. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +129 -0
  461. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js.map +1 -0
  462. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +124 -0
  463. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js.map +1 -0
  464. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +60 -0
  465. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js.map +1 -0
  466. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +269 -0
  467. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js.map +1 -0
  468. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +253 -0
  469. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js.map +1 -0
  470. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +33 -0
  471. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js.map +1 -0
  472. package/dist/node_modules/next/dist/shared/lib/segment.js +104 -0
  473. package/dist/node_modules/next/dist/shared/lib/segment.js.map +1 -0
  474. package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +46 -0
  475. package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js.map +1 -0
  476. package/dist/node_modules/next/dist/shared/lib/side-effect.js +77 -0
  477. package/dist/node_modules/next/dist/shared/lib/side-effect.js.map +1 -0
  478. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +35 -0
  479. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js.map +1 -0
  480. package/dist/node_modules/next/dist/shared/lib/utils/reflect-utils.js +72 -0
  481. package/dist/node_modules/next/dist/shared/lib/utils/reflect-utils.js.map +1 -0
  482. package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +35 -0
  483. package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js.map +1 -0
  484. package/dist/node_modules/next/dist/shared/lib/utils.js +210 -0
  485. package/dist/node_modules/next/dist/shared/lib/utils.js.map +1 -0
  486. package/dist/node_modules/next/image.js +14 -0
  487. package/dist/node_modules/next/image.js.map +1 -0
  488. package/dist/node_modules/next/link.js +14 -0
  489. package/dist/node_modules/next/link.js.map +1 -0
  490. package/dist/node_modules/next/navigation.js +14 -0
  491. package/dist/node_modules/next/navigation.js.map +1 -0
  492. package/package.json +1 -1
@@ -0,0 +1,184 @@
1
+ import { __exports as getDynamicParam } from '../../../../../../../_virtual/get-dynamic-param.js';
2
+ import { __require as requireInvariantError } from '../../invariant-error.js';
3
+ import { __require as requireParseLoaderTree } from './parse-loader-tree.js';
4
+ import { __require as requireApp } from '../routes/app.js';
5
+ import { __require as requireResolveParamValue } from './resolve-param-value.js';
6
+
7
+ var hasRequiredGetDynamicParam;
8
+
9
+ function requireGetDynamicParam () {
10
+ if (hasRequiredGetDynamicParam) return getDynamicParam;
11
+ hasRequiredGetDynamicParam = 1;
12
+ (function (exports$1) {
13
+ Object.defineProperty(exports$1, "__esModule", {
14
+ value: true
15
+ });
16
+ function _export(target, all) {
17
+ for(var name in all)Object.defineProperty(target, name, {
18
+ enumerable: true,
19
+ get: all[name]
20
+ });
21
+ }
22
+ _export(exports$1, {
23
+ PARAMETER_PATTERN: function() {
24
+ return PARAMETER_PATTERN;
25
+ },
26
+ getDynamicParam: function() {
27
+ return getDynamicParam;
28
+ },
29
+ interpolateParallelRouteParams: function() {
30
+ return interpolateParallelRouteParams;
31
+ },
32
+ parseMatchedParameter: function() {
33
+ return parseMatchedParameter;
34
+ },
35
+ parseParameter: function() {
36
+ return parseParameter;
37
+ }
38
+ });
39
+ const _invarianterror = requireInvariantError();
40
+ const _parseloadertree = requireParseLoaderTree();
41
+ const _app = requireApp();
42
+ const _resolveparamvalue = requireResolveParamValue();
43
+ /**
44
+ * Gets the value of a param from the params object. This correctly handles the
45
+ * case where the param is a fallback route param and encodes the resulting
46
+ * value.
47
+ *
48
+ * @param interpolatedParams - The params object.
49
+ * @param segmentKey - The key of the segment.
50
+ * @param fallbackRouteParams - The fallback route params.
51
+ * @returns The value of the param.
52
+ */ function getParamValue(interpolatedParams, segmentKey, fallbackRouteParams) {
53
+ let value = interpolatedParams[segmentKey];
54
+ if (fallbackRouteParams?.has(segmentKey)) {
55
+ // We know that the fallback route params has the segment key because we
56
+ // checked that above.
57
+ const [searchValue] = fallbackRouteParams.get(segmentKey);
58
+ value = searchValue;
59
+ } else if (Array.isArray(value)) {
60
+ value = value.map((i)=>encodeURIComponent(i));
61
+ } else if (typeof value === 'string') {
62
+ value = encodeURIComponent(value);
63
+ }
64
+ return value;
65
+ }
66
+ function interpolateParallelRouteParams(loaderTree, params, pagePath, fallbackRouteParams) {
67
+ const interpolated = structuredClone(params);
68
+ // Stack-based traversal with depth tracking
69
+ const stack = [
70
+ {
71
+ tree: loaderTree,
72
+ depth: 0
73
+ }
74
+ ];
75
+ // Parse the route from the provided page path.
76
+ const route = (0, _app.parseNormalizedAppRoute)(pagePath);
77
+ while(stack.length > 0){
78
+ const { tree, depth } = stack.pop();
79
+ const { segment, parallelRoutes } = (0, _parseloadertree.parseLoaderTree)(tree);
80
+ const appSegment = (0, _app.parseAppRouteSegment)(segment);
81
+ if (appSegment?.type === 'dynamic' && !interpolated.hasOwnProperty(appSegment.param.paramName) && // If the param is in the fallback route params, we don't need to
82
+ // interpolate it because it's already marked as being unknown.
83
+ !fallbackRouteParams?.has(appSegment.param.paramName)) {
84
+ const { paramName, paramType } = appSegment.param;
85
+ const paramValue = (0, _resolveparamvalue.resolveParamValue)(paramName, paramType, depth, route, interpolated);
86
+ if (paramValue !== undefined) {
87
+ interpolated[paramName] = paramValue;
88
+ } else if (paramType !== 'optional-catchall') {
89
+ throw Object.defineProperty(new _invarianterror.InvariantError(`Could not resolve param value for segment: ${paramName}`), "__NEXT_ERROR_CODE", {
90
+ value: "E932",
91
+ enumerable: false,
92
+ configurable: true
93
+ });
94
+ }
95
+ }
96
+ // Calculate next depth - increment if this is not a route group and not empty
97
+ let nextDepth = depth;
98
+ if (appSegment && appSegment.type !== 'route-group' && appSegment.type !== 'parallel-route') {
99
+ nextDepth++;
100
+ }
101
+ // Add all parallel routes to the stack for processing
102
+ for (const parallelRoute of Object.values(parallelRoutes)){
103
+ stack.push({
104
+ tree: parallelRoute,
105
+ depth: nextDepth
106
+ });
107
+ }
108
+ }
109
+ return interpolated;
110
+ }
111
+ function getDynamicParam(interpolatedParams, segmentKey, dynamicParamType, fallbackRouteParams, staticSiblings) {
112
+ let value = getParamValue(interpolatedParams, segmentKey, fallbackRouteParams);
113
+ // handle the case where an optional catchall does not have a value,
114
+ // e.g. `/dashboard/[[...slug]]` when requesting `/dashboard`
115
+ if (!value || value.length === 0) {
116
+ if (dynamicParamType === 'oc') {
117
+ return {
118
+ param: segmentKey,
119
+ value: null,
120
+ type: dynamicParamType,
121
+ treeSegment: [
122
+ segmentKey,
123
+ '',
124
+ dynamicParamType,
125
+ staticSiblings
126
+ ]
127
+ };
128
+ }
129
+ throw Object.defineProperty(new _invarianterror.InvariantError(`Missing value for segment key: "${segmentKey}" with dynamic param type: ${dynamicParamType}`), "__NEXT_ERROR_CODE", {
130
+ value: "E864",
131
+ enumerable: false,
132
+ configurable: true
133
+ });
134
+ }
135
+ const paramCacheKey = Array.isArray(value) ? value.join('/') : value;
136
+ return {
137
+ param: segmentKey,
138
+ // The value that is passed to user code.
139
+ value,
140
+ // The value that is rendered in the router tree.
141
+ // TODO: If the number of static siblings exceeds some threshold (e.g.,
142
+ // dozens or hundreds), consider sending a Bloom filter instead of the full
143
+ // array to reduce payload size. The client would then use the Bloom filter
144
+ // to check membership with a small false positive rate.
145
+ treeSegment: [
146
+ segmentKey,
147
+ paramCacheKey,
148
+ dynamicParamType,
149
+ staticSiblings
150
+ ],
151
+ type: dynamicParamType
152
+ };
153
+ }
154
+ const PARAMETER_PATTERN = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;
155
+ function parseParameter(param) {
156
+ const match = param.match(PARAMETER_PATTERN);
157
+ if (!match) {
158
+ return parseMatchedParameter(param);
159
+ }
160
+ return parseMatchedParameter(match[2]);
161
+ }
162
+ function parseMatchedParameter(param) {
163
+ const optional = param.startsWith('[') && param.endsWith(']');
164
+ if (optional) {
165
+ param = param.slice(1, -1);
166
+ }
167
+ const repeat = param.startsWith('...');
168
+ if (repeat) {
169
+ param = param.slice(3);
170
+ }
171
+ return {
172
+ key: param,
173
+ repeat,
174
+ optional
175
+ };
176
+ }
177
+
178
+
179
+ } (getDynamicParam));
180
+ return getDynamicParam;
181
+ }
182
+
183
+ export { requireGetDynamicParam as __require };
184
+ //# sourceMappingURL=get-dynamic-param.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dynamic-param.js","sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n PARAMETER_PATTERN: null,\n getDynamicParam: null,\n interpolateParallelRouteParams: null,\n parseMatchedParameter: null,\n parseParameter: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n PARAMETER_PATTERN: function() {\n return PARAMETER_PATTERN;\n },\n getDynamicParam: function() {\n return getDynamicParam;\n },\n interpolateParallelRouteParams: function() {\n return interpolateParallelRouteParams;\n },\n parseMatchedParameter: function() {\n return parseMatchedParameter;\n },\n parseParameter: function() {\n return parseParameter;\n }\n});\nconst _invarianterror = require(\"../../invariant-error\");\nconst _parseloadertree = require(\"./parse-loader-tree\");\nconst _app = require(\"../routes/app\");\nconst _resolveparamvalue = require(\"./resolve-param-value\");\n/**\n * Gets the value of a param from the params object. This correctly handles the\n * case where the param is a fallback route param and encodes the resulting\n * value.\n *\n * @param interpolatedParams - The params object.\n * @param segmentKey - The key of the segment.\n * @param fallbackRouteParams - The fallback route params.\n * @returns The value of the param.\n */ function getParamValue(interpolatedParams, segmentKey, fallbackRouteParams) {\n let value = interpolatedParams[segmentKey];\n if (fallbackRouteParams?.has(segmentKey)) {\n // We know that the fallback route params has the segment key because we\n // checked that above.\n const [searchValue] = fallbackRouteParams.get(segmentKey);\n value = searchValue;\n } else if (Array.isArray(value)) {\n value = value.map((i)=>encodeURIComponent(i));\n } else if (typeof value === 'string') {\n value = encodeURIComponent(value);\n }\n return value;\n}\nfunction interpolateParallelRouteParams(loaderTree, params, pagePath, fallbackRouteParams) {\n const interpolated = structuredClone(params);\n // Stack-based traversal with depth tracking\n const stack = [\n {\n tree: loaderTree,\n depth: 0\n }\n ];\n // Parse the route from the provided page path.\n const route = (0, _app.parseNormalizedAppRoute)(pagePath);\n while(stack.length > 0){\n const { tree, depth } = stack.pop();\n const { segment, parallelRoutes } = (0, _parseloadertree.parseLoaderTree)(tree);\n const appSegment = (0, _app.parseAppRouteSegment)(segment);\n if (appSegment?.type === 'dynamic' && !interpolated.hasOwnProperty(appSegment.param.paramName) && // If the param is in the fallback route params, we don't need to\n // interpolate it because it's already marked as being unknown.\n !fallbackRouteParams?.has(appSegment.param.paramName)) {\n const { paramName, paramType } = appSegment.param;\n const paramValue = (0, _resolveparamvalue.resolveParamValue)(paramName, paramType, depth, route, interpolated);\n if (paramValue !== undefined) {\n interpolated[paramName] = paramValue;\n } else if (paramType !== 'optional-catchall') {\n throw Object.defineProperty(new _invarianterror.InvariantError(`Could not resolve param value for segment: ${paramName}`), \"__NEXT_ERROR_CODE\", {\n value: \"E932\",\n enumerable: false,\n configurable: true\n });\n }\n }\n // Calculate next depth - increment if this is not a route group and not empty\n let nextDepth = depth;\n if (appSegment && appSegment.type !== 'route-group' && appSegment.type !== 'parallel-route') {\n nextDepth++;\n }\n // Add all parallel routes to the stack for processing\n for (const parallelRoute of Object.values(parallelRoutes)){\n stack.push({\n tree: parallelRoute,\n depth: nextDepth\n });\n }\n }\n return interpolated;\n}\nfunction getDynamicParam(interpolatedParams, segmentKey, dynamicParamType, fallbackRouteParams, staticSiblings) {\n let value = getParamValue(interpolatedParams, segmentKey, fallbackRouteParams);\n // handle the case where an optional catchall does not have a value,\n // e.g. `/dashboard/[[...slug]]` when requesting `/dashboard`\n if (!value || value.length === 0) {\n if (dynamicParamType === 'oc') {\n return {\n param: segmentKey,\n value: null,\n type: dynamicParamType,\n treeSegment: [\n segmentKey,\n '',\n dynamicParamType,\n staticSiblings\n ]\n };\n }\n throw Object.defineProperty(new _invarianterror.InvariantError(`Missing value for segment key: \"${segmentKey}\" with dynamic param type: ${dynamicParamType}`), \"__NEXT_ERROR_CODE\", {\n value: \"E864\",\n enumerable: false,\n configurable: true\n });\n }\n const paramCacheKey = Array.isArray(value) ? value.join('/') : value;\n return {\n param: segmentKey,\n // The value that is passed to user code.\n value,\n // The value that is rendered in the router tree.\n // TODO: If the number of static siblings exceeds some threshold (e.g.,\n // dozens or hundreds), consider sending a Bloom filter instead of the full\n // array to reduce payload size. The client would then use the Bloom filter\n // to check membership with a small false positive rate.\n treeSegment: [\n segmentKey,\n paramCacheKey,\n dynamicParamType,\n staticSiblings\n ],\n type: dynamicParamType\n };\n}\nconst PARAMETER_PATTERN = /^([^[]*)\\[((?:\\[[^\\]]*\\])|[^\\]]+)\\](.*)$/;\nfunction parseParameter(param) {\n const match = param.match(PARAMETER_PATTERN);\n if (!match) {\n return parseMatchedParameter(param);\n }\n return parseMatchedParameter(match[2]);\n}\nfunction parseMatchedParameter(param) {\n const optional = param.startsWith('[') && param.endsWith(']');\n if (optional) {\n param = param.slice(1, -1);\n }\n const repeat = param.startsWith('...');\n if (repeat) {\n param = param.slice(3);\n }\n return {\n key: param,\n repeat,\n optional\n };\n}\n\n//# sourceMappingURL=get-dynamic-param.js.map"],"names":["exports","require$$0","require$$1","require$$2","require$$3"],"mappings":";;;;;;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AAQF,EAAA,SAAS,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE;AAC9B,MAAI,IAAI,IAAI,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE;UACpD,UAAU,EAAE,IAAI;AACxB,UAAQ,GAAG,EAAE,GAAG,CAAC,IAAI;AACrB,OAAK,CAAC;AACN,EAAA;EACA,OAAO,CAACA,SAAO,EAAE;MACb,iBAAiB,EAAE,WAAW;AAClC,UAAQ,OAAO,iBAAiB;MAChC,CAAK;MACD,eAAe,EAAE,WAAW;AAChC,UAAQ,OAAO,eAAe;MAC9B,CAAK;MACD,8BAA8B,EAAE,WAAW;AAC/C,UAAQ,OAAO,8BAA8B;MAC7C,CAAK;MACD,qBAAqB,EAAE,WAAW;AACtC,UAAQ,OAAO,qBAAqB;MACpC,CAAK;MACD,cAAc,EAAE,WAAW;AAC/B,UAAQ,OAAO,cAAc;AAC7B,MAAA;AACA,GAAC,CAAC;EACF,MAAM,eAAe,GAAGC,qBAAA,EAAgC;EACxD,MAAM,gBAAgB,GAAGC,sBAAA,EAA8B;EACvD,MAAM,IAAI,GAAGC,UAAA,EAAwB;EACrC,MAAM,kBAAkB,GAAGC,wBAAA,EAAgC;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACI,SAAS,aAAa,CAAC,kBAAkB,EAAE,UAAU,EAAE,mBAAmB,EAAE;AAChF,MAAI,IAAI,KAAK,GAAG,kBAAkB,CAAC,UAAU,CAAC;AAC9C,MAAI,IAAI,mBAAmB,EAAE,GAAG,CAAC,UAAU,CAAC,EAAE;AAC9C;AACA;UACQ,MAAM,CAAC,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,GAAG,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;MAC7D,IAAI,QAAQ,EAAE;UACV,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;AAClC,MAAA;MACI,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC;MACtC,IAAI,MAAM,EAAE;AAChB,UAAQ,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAC9B,MAAA;AACA,MAAI,OAAO;UACH,GAAG,EAAE,KAAK;AAClB,UAAQ,MAAM;UACN;OACH;AACL,EAAA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,91 @@
1
+ import { __exports as getSegmentParam } from '../../../../../../../_virtual/get-segment-param.js';
2
+ import { __require as requireInterceptionRoutes } from './interception-routes.js';
3
+
4
+ var hasRequiredGetSegmentParam;
5
+
6
+ function requireGetSegmentParam () {
7
+ if (hasRequiredGetSegmentParam) return getSegmentParam;
8
+ hasRequiredGetSegmentParam = 1;
9
+ (function (exports$1) {
10
+ Object.defineProperty(exports$1, "__esModule", {
11
+ value: true
12
+ });
13
+ function _export(target, all) {
14
+ for(var name in all)Object.defineProperty(target, name, {
15
+ enumerable: true,
16
+ get: all[name]
17
+ });
18
+ }
19
+ _export(exports$1, {
20
+ getParamProperties: function() {
21
+ return getParamProperties;
22
+ },
23
+ getSegmentParam: function() {
24
+ return getSegmentParam;
25
+ },
26
+ isCatchAll: function() {
27
+ return isCatchAll;
28
+ }
29
+ });
30
+ const _interceptionroutes = requireInterceptionRoutes();
31
+ function getSegmentParam(segment) {
32
+ const interceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((marker)=>segment.startsWith(marker));
33
+ // if an interception marker is part of the path segment, we need to jump ahead
34
+ // to the relevant portion for param parsing
35
+ if (interceptionMarker) {
36
+ segment = segment.slice(interceptionMarker.length);
37
+ }
38
+ if (segment.startsWith('[[...') && segment.endsWith(']]')) {
39
+ return {
40
+ // TODO-APP: Optional catchall does not currently work with parallel routes,
41
+ // so for now aren't handling a potential interception marker.
42
+ paramType: 'optional-catchall',
43
+ paramName: segment.slice(5, -2)
44
+ };
45
+ }
46
+ if (segment.startsWith('[...') && segment.endsWith(']')) {
47
+ return {
48
+ paramType: interceptionMarker ? `catchall-intercepted-${interceptionMarker}` : 'catchall',
49
+ paramName: segment.slice(4, -1)
50
+ };
51
+ }
52
+ if (segment.startsWith('[') && segment.endsWith(']')) {
53
+ return {
54
+ paramType: interceptionMarker ? `dynamic-intercepted-${interceptionMarker}` : 'dynamic',
55
+ paramName: segment.slice(1, -1)
56
+ };
57
+ }
58
+ return null;
59
+ }
60
+ function isCatchAll(type) {
61
+ return type === 'catchall' || type === 'catchall-intercepted-(..)(..)' || type === 'catchall-intercepted-(.)' || type === 'catchall-intercepted-(..)' || type === 'catchall-intercepted-(...)' || type === 'optional-catchall';
62
+ }
63
+ function getParamProperties(paramType) {
64
+ let repeat = false;
65
+ let optional = false;
66
+ switch(paramType){
67
+ case 'catchall':
68
+ case 'catchall-intercepted-(..)(..)':
69
+ case 'catchall-intercepted-(.)':
70
+ case 'catchall-intercepted-(..)':
71
+ case 'catchall-intercepted-(...)':
72
+ repeat = true;
73
+ break;
74
+ case 'optional-catchall':
75
+ repeat = true;
76
+ optional = true;
77
+ break;
78
+ }
79
+ return {
80
+ repeat,
81
+ optional
82
+ };
83
+ }
84
+
85
+
86
+ } (getSegmentParam));
87
+ return getSegmentParam;
88
+ }
89
+
90
+ export { requireGetSegmentParam as __require };
91
+ //# sourceMappingURL=get-segment-param.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-segment-param.js","sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/get-segment-param.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n getParamProperties: null,\n getSegmentParam: null,\n isCatchAll: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n getParamProperties: function() {\n return getParamProperties;\n },\n getSegmentParam: function() {\n return getSegmentParam;\n },\n isCatchAll: function() {\n return isCatchAll;\n }\n});\nconst _interceptionroutes = require(\"./interception-routes\");\nfunction getSegmentParam(segment) {\n const interceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((marker)=>segment.startsWith(marker));\n // if an interception marker is part of the path segment, we need to jump ahead\n // to the relevant portion for param parsing\n if (interceptionMarker) {\n segment = segment.slice(interceptionMarker.length);\n }\n if (segment.startsWith('[[...') && segment.endsWith(']]')) {\n return {\n // TODO-APP: Optional catchall does not currently work with parallel routes,\n // so for now aren't handling a potential interception marker.\n paramType: 'optional-catchall',\n paramName: segment.slice(5, -2)\n };\n }\n if (segment.startsWith('[...') && segment.endsWith(']')) {\n return {\n paramType: interceptionMarker ? `catchall-intercepted-${interceptionMarker}` : 'catchall',\n paramName: segment.slice(4, -1)\n };\n }\n if (segment.startsWith('[') && segment.endsWith(']')) {\n return {\n paramType: interceptionMarker ? `dynamic-intercepted-${interceptionMarker}` : 'dynamic',\n paramName: segment.slice(1, -1)\n };\n }\n return null;\n}\nfunction isCatchAll(type) {\n return type === 'catchall' || type === 'catchall-intercepted-(..)(..)' || type === 'catchall-intercepted-(.)' || type === 'catchall-intercepted-(..)' || type === 'catchall-intercepted-(...)' || type === 'optional-catchall';\n}\nfunction getParamProperties(paramType) {\n let repeat = false;\n let optional = false;\n switch(paramType){\n case 'catchall':\n case 'catchall-intercepted-(..)(..)':\n case 'catchall-intercepted-(.)':\n case 'catchall-intercepted-(..)':\n case 'catchall-intercepted-(...)':\n repeat = true;\n break;\n case 'optional-catchall':\n repeat = true;\n optional = true;\n break;\n case 'dynamic':\n case 'dynamic-intercepted-(..)(..)':\n case 'dynamic-intercepted-(.)':\n case 'dynamic-intercepted-(..)':\n case 'dynamic-intercepted-(...)':\n break;\n default:\n paramType;\n }\n return {\n repeat,\n optional\n };\n}\n\n//# sourceMappingURL=get-segment-param.js.map"],"names":["exports","require$$0"],"mappings":";;;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AAMF,EAAA,SAAS,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE;AAC9B,MAAI,IAAI,IAAI,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE;UACpD,UAAU,EAAE,IAAI;AACxB,UAAQ,GAAG,EAAE,GAAG,CAAC,IAAI;AACrB,OAAK,CAAC;AACN,EAAA;EACA,OAAO,CAACA,SAAO,EAAE;MACb,kBAAkB,EAAE,WAAW;AACnC,UAAQ,OAAO,kBAAkB;MACjC,CAAK;MACD,eAAe,EAAE,WAAW;AAChC,UAAQ,OAAO,eAAe;MAC9B,CAAK;MACD,UAAU,EAAE,WAAW;AAC3B,UAAQ,OAAO,UAAU;AACzB,MAAA;AACA,GAAC,CAAC;EACF,MAAM,mBAAmB,GAAGC,yBAAA,EAAgC;EAC5D,SAAS,eAAe,CAAC,OAAO,EAAE;AAClC,MAAI,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AACxH;AACA;MACI,IAAI,kBAAkB,EAAE;UACpB,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,MAAM,CAAC;AAC1D,MAAA;AACA,MAAI,IAAI,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;AAC/D,UAAQ,OAAO;AACf;AACA;cACY,SAAS,EAAE,mBAAmB;cAC9B,SAAS,EAAE,OAAO,CAAC,KAAK,C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MAAI,OAAO;AACX,UAAQ,MAAM;UACN;OACH;AACL,EAAA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,40 @@
1
+ import { __exports as utils } from '../../../../../../../_virtual/index.js';
2
+ import { __require as requireSortedRoutes } from './sorted-routes.js';
3
+ import { __require as requireIsDynamic } from './is-dynamic.js';
4
+
5
+ var hasRequiredUtils;
6
+
7
+ function requireUtils () {
8
+ if (hasRequiredUtils) return utils;
9
+ hasRequiredUtils = 1;
10
+ (function (exports$1) {
11
+ Object.defineProperty(exports$1, "__esModule", {
12
+ value: true
13
+ });
14
+ function _export(target, all) {
15
+ for(var name in all)Object.defineProperty(target, name, {
16
+ enumerable: true,
17
+ get: all[name]
18
+ });
19
+ }
20
+ _export(exports$1, {
21
+ getSortedRouteObjects: function() {
22
+ return _sortedroutes.getSortedRouteObjects;
23
+ },
24
+ getSortedRoutes: function() {
25
+ return _sortedroutes.getSortedRoutes;
26
+ },
27
+ isDynamicRoute: function() {
28
+ return _isdynamic.isDynamicRoute;
29
+ }
30
+ });
31
+ const _sortedroutes = requireSortedRoutes();
32
+ const _isdynamic = requireIsDynamic();
33
+
34
+
35
+ } (utils));
36
+ return utils;
37
+ }
38
+
39
+ export { requireUtils as __require };
40
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n getSortedRouteObjects: null,\n getSortedRoutes: null,\n isDynamicRoute: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n getSortedRouteObjects: function() {\n return _sortedroutes.getSortedRouteObjects;\n },\n getSortedRoutes: function() {\n return _sortedroutes.getSortedRoutes;\n },\n isDynamicRoute: function() {\n return _isdynamic.isDynamicRoute;\n }\n});\nconst _sortedroutes = require(\"./sorted-routes\");\nconst _isdynamic = require(\"./is-dynamic\");\n\n//# sourceMappingURL=index.js.map"],"names":["exports","require$$0","require$$1"],"mappings":";;;;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AAMF,EAAA,SAAS,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE;AAC9B,MAAI,IAAI,IAAI,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE;UACpD,UAAU,EAAE,IAAI;AACxB,UAAQ,GAAG,EAAE,GAAG,CAAC,IAAI;AACrB,OAAK,CAAC;AACN,EAAA;EACA,OAAO,CAACA,SAAO,EAAE;MACb,qBAAqB,EAAE,WAAW;UAC9B,OAAO,aAAa,CAAC,qBAAqB;MAClD,CAAK;MACD,eAAe,EAAE,WAAW;UACxB,OAAO,aAAa,CAAC,eAAe;MAC5C,CAAK;MACD,cAAc,EAAE,WAAW;UACvB,OAAO,UAAU,CAAC,cAAc;AACxC,MAAA;AACA,GAAC,CAAC;EACF,MAAM,aAAa,GAAGC,mBAAA,EAA0B;EAChD,MAAM,UAAU,GAAGC,gBAAA,EAAuB;;AAE1C;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,46 @@
1
+ import { __exports as interceptionPrefixFromParamType } from '../../../../../../../_virtual/interception-prefix-from-param-type.js';
2
+
3
+ var hasRequiredInterceptionPrefixFromParamType;
4
+
5
+ function requireInterceptionPrefixFromParamType () {
6
+ if (hasRequiredInterceptionPrefixFromParamType) return interceptionPrefixFromParamType;
7
+ hasRequiredInterceptionPrefixFromParamType = 1;
8
+ (function (exports$1) {
9
+ Object.defineProperty(exports$1, "__esModule", {
10
+ value: true
11
+ });
12
+ Object.defineProperty(exports$1, "interceptionPrefixFromParamType", {
13
+ enumerable: true,
14
+ get: function() {
15
+ return interceptionPrefixFromParamType;
16
+ }
17
+ });
18
+ function interceptionPrefixFromParamType(paramType) {
19
+ switch(paramType){
20
+ case 'catchall-intercepted-(..)(..)':
21
+ case 'dynamic-intercepted-(..)(..)':
22
+ return '(..)(..)';
23
+ case 'catchall-intercepted-(.)':
24
+ case 'dynamic-intercepted-(.)':
25
+ return '(.)';
26
+ case 'catchall-intercepted-(..)':
27
+ case 'dynamic-intercepted-(..)':
28
+ return '(..)';
29
+ case 'catchall-intercepted-(...)':
30
+ case 'dynamic-intercepted-(...)':
31
+ return '(...)';
32
+ case 'catchall':
33
+ case 'dynamic':
34
+ case 'optional-catchall':
35
+ default:
36
+ return null;
37
+ }
38
+ }
39
+
40
+
41
+ } (interceptionPrefixFromParamType));
42
+ return interceptionPrefixFromParamType;
43
+ }
44
+
45
+ export { requireInterceptionPrefixFromParamType as __require };
46
+ //# sourceMappingURL=interception-prefix-from-param-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interception-prefix-from-param-type.js","sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"interceptionPrefixFromParamType\", {\n enumerable: true,\n get: function() {\n return interceptionPrefixFromParamType;\n }\n});\nfunction interceptionPrefixFromParamType(paramType) {\n switch(paramType){\n case 'catchall-intercepted-(..)(..)':\n case 'dynamic-intercepted-(..)(..)':\n return '(..)(..)';\n case 'catchall-intercepted-(.)':\n case 'dynamic-intercepted-(.)':\n return '(.)';\n case 'catchall-intercepted-(..)':\n case 'dynamic-intercepted-(..)':\n return '(..)';\n case 'catchall-intercepted-(...)':\n case 'dynamic-intercepted-(...)':\n return '(...)';\n case 'catchall':\n case 'dynamic':\n case 'optional-catchall':\n default:\n return null;\n }\n}\n\n//# sourceMappingURL=interception-prefix-from-param-type.js.map"],"names":["exports"],"mappings":";;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AACF,EAAA,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,iCAAiC,EAAE;MAC9D,UAAU,EAAE,IAAI;MAChB,GAAG,EAAE,WAAW;AACpB,UAAQ,OAAO,+BAA+B;AAC9C,MAAA;AACA,GAAC,CAAC;EACF,SAAS,+BAA+B,CAAC,SAAS,EAAE;AACpD,MAAI,OAAO,SAAS;AACpB,UAAQ,KAAK,+BAA+B;AAC5C,UAAQ,KAAK,8BAA8B;AAC3C,cAAY,OAAO,UAAU;AAC7B,UAAQ,KAAK,0BAA0B;AACvC,UAAQ,KAAK,yBAAyB;AACtC,cAAY,OAAO,KAAK;AACxB,UAAQ,KAAK,2BAA2B;AACxC,UAAQ,KAAK,0BAA0B;AACvC,cAAY,OAAO,MAAM;AACzB,UAAQ,KAAK,4BAA4B;AACzC,UAAQ,KAAK,2BAA2B;AACxC,cAAY,OAAO,OAAO;AAC1B,UAAQ,KAAK,UAAU;AACvB,UAAQ,KAAK,SAAS;AACtB,UAAQ,KAAK,mBAAmB;UACxB;AACR,cAAY,OAAO,IAAI;AACvB;AACA,EAAA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,116 @@
1
+ import { __exports as interceptionRoutes } from '../../../../../../../_virtual/interception-routes.js';
2
+ import { __require as requireAppPaths } from './app-paths.js';
3
+
4
+ var hasRequiredInterceptionRoutes;
5
+
6
+ function requireInterceptionRoutes () {
7
+ if (hasRequiredInterceptionRoutes) return interceptionRoutes;
8
+ hasRequiredInterceptionRoutes = 1;
9
+ (function (exports$1) {
10
+ Object.defineProperty(exports$1, "__esModule", {
11
+ value: true
12
+ });
13
+ function _export(target, all) {
14
+ for(var name in all)Object.defineProperty(target, name, {
15
+ enumerable: true,
16
+ get: all[name]
17
+ });
18
+ }
19
+ _export(exports$1, {
20
+ INTERCEPTION_ROUTE_MARKERS: function() {
21
+ return INTERCEPTION_ROUTE_MARKERS;
22
+ },
23
+ extractInterceptionRouteInformation: function() {
24
+ return extractInterceptionRouteInformation;
25
+ },
26
+ isInterceptionRouteAppPath: function() {
27
+ return isInterceptionRouteAppPath;
28
+ }
29
+ });
30
+ const _apppaths = requireAppPaths();
31
+ const INTERCEPTION_ROUTE_MARKERS = [
32
+ '(..)(..)',
33
+ '(.)',
34
+ '(..)',
35
+ '(...)'
36
+ ];
37
+ function isInterceptionRouteAppPath(path) {
38
+ // TODO-APP: add more serious validation
39
+ return path.split('/').find((segment)=>INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m))) !== undefined;
40
+ }
41
+ function extractInterceptionRouteInformation(path) {
42
+ let interceptingRoute;
43
+ let marker;
44
+ let interceptedRoute;
45
+ for (const segment of path.split('/')){
46
+ marker = INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m));
47
+ if (marker) {
48
+ [interceptingRoute, interceptedRoute] = path.split(marker, 2);
49
+ break;
50
+ }
51
+ }
52
+ if (!interceptingRoute || !marker || !interceptedRoute) {
53
+ throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`), "__NEXT_ERROR_CODE", {
54
+ value: "E269",
55
+ enumerable: false,
56
+ configurable: true
57
+ });
58
+ }
59
+ interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute) // normalize the path, e.g. /(blog)/feed -> /feed
60
+ ;
61
+ switch(marker){
62
+ case '(.)':
63
+ // (.) indicates that we should match with sibling routes, so we just need to append the intercepted route to the intercepting route
64
+ if (interceptingRoute === '/') {
65
+ interceptedRoute = `/${interceptedRoute}`;
66
+ } else {
67
+ interceptedRoute = interceptingRoute + '/' + interceptedRoute;
68
+ }
69
+ break;
70
+ case '(..)':
71
+ // (..) indicates that we should match at one level up, so we need to remove the last segment of the intercepting route
72
+ if (interceptingRoute === '/') {
73
+ throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`), "__NEXT_ERROR_CODE", {
74
+ value: "E207",
75
+ enumerable: false,
76
+ configurable: true
77
+ });
78
+ }
79
+ interceptedRoute = interceptingRoute.split('/').slice(0, -1).concat(interceptedRoute).join('/');
80
+ break;
81
+ case '(...)':
82
+ // (...) will match the route segment in the root directory, so we need to use the root directory to prepend the intercepted route
83
+ interceptedRoute = '/' + interceptedRoute;
84
+ break;
85
+ case '(..)(..)':
86
+ // (..)(..) indicates that we should match at two levels up, so we need to remove the last two segments of the intercepting route
87
+ const splitInterceptingRoute = interceptingRoute.split('/');
88
+ if (splitInterceptingRoute.length <= 2) {
89
+ throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`), "__NEXT_ERROR_CODE", {
90
+ value: "E486",
91
+ enumerable: false,
92
+ configurable: true
93
+ });
94
+ }
95
+ interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join('/');
96
+ break;
97
+ default:
98
+ throw Object.defineProperty(new Error('Invariant: unexpected marker'), "__NEXT_ERROR_CODE", {
99
+ value: "E112",
100
+ enumerable: false,
101
+ configurable: true
102
+ });
103
+ }
104
+ return {
105
+ interceptingRoute,
106
+ interceptedRoute
107
+ };
108
+ }
109
+
110
+
111
+ } (interceptionRoutes));
112
+ return interceptionRoutes;
113
+ }
114
+
115
+ export { requireInterceptionRoutes as __require };
116
+ //# sourceMappingURL=interception-routes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interception-routes.js","sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n INTERCEPTION_ROUTE_MARKERS: null,\n extractInterceptionRouteInformation: null,\n isInterceptionRouteAppPath: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n INTERCEPTION_ROUTE_MARKERS: function() {\n return INTERCEPTION_ROUTE_MARKERS;\n },\n extractInterceptionRouteInformation: function() {\n return extractInterceptionRouteInformation;\n },\n isInterceptionRouteAppPath: function() {\n return isInterceptionRouteAppPath;\n }\n});\nconst _apppaths = require(\"./app-paths\");\nconst INTERCEPTION_ROUTE_MARKERS = [\n '(..)(..)',\n '(.)',\n '(..)',\n '(...)'\n];\nfunction isInterceptionRouteAppPath(path) {\n // TODO-APP: add more serious validation\n return path.split('/').find((segment)=>INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m))) !== undefined;\n}\nfunction extractInterceptionRouteInformation(path) {\n let interceptingRoute;\n let marker;\n let interceptedRoute;\n for (const segment of path.split('/')){\n marker = INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m));\n if (marker) {\n ;\n [interceptingRoute, interceptedRoute] = path.split(marker, 2);\n break;\n }\n }\n if (!interceptingRoute || !marker || !interceptedRoute) {\n throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`), \"__NEXT_ERROR_CODE\", {\n value: \"E269\",\n enumerable: false,\n configurable: true\n });\n }\n interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute) // normalize the path, e.g. /(blog)/feed -> /feed\n ;\n switch(marker){\n case '(.)':\n // (.) indicates that we should match with sibling routes, so we just need to append the intercepted route to the intercepting route\n if (interceptingRoute === '/') {\n interceptedRoute = `/${interceptedRoute}`;\n } else {\n interceptedRoute = interceptingRoute + '/' + interceptedRoute;\n }\n break;\n case '(..)':\n // (..) indicates that we should match at one level up, so we need to remove the last segment of the intercepting route\n if (interceptingRoute === '/') {\n throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`), \"__NEXT_ERROR_CODE\", {\n value: \"E207\",\n enumerable: false,\n configurable: true\n });\n }\n interceptedRoute = interceptingRoute.split('/').slice(0, -1).concat(interceptedRoute).join('/');\n break;\n case '(...)':\n // (...) will match the route segment in the root directory, so we need to use the root directory to prepend the intercepted route\n interceptedRoute = '/' + interceptedRoute;\n break;\n case '(..)(..)':\n // (..)(..) indicates that we should match at two levels up, so we need to remove the last two segments of the intercepting route\n const splitInterceptingRoute = interceptingRoute.split('/');\n if (splitInterceptingRoute.length <= 2) {\n throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`), \"__NEXT_ERROR_CODE\", {\n value: \"E486\",\n enumerable: false,\n configurable: true\n });\n }\n interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join('/');\n break;\n default:\n throw Object.defineProperty(new Error('Invariant: unexpected marker'), \"__NEXT_ERROR_CODE\", {\n value: \"E112\",\n enumerable: false,\n configurable: true\n });\n }\n return {\n interceptingRoute,\n interceptedRoute\n };\n}\n\n//# sourceMappingURL=interception-routes.js.map"],"names":["exports","require$$0"],"mappings":";;;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AAMF,EAAA,SAAS,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE;AAC9B,MAAI,IAAI,IAAI,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE;UACpD,UAAU,EAAE,IAAI;AACxB,UAAQ,GAAG,EAAE,GAAG,CAAC,IAAI;AACrB,OAAK,CAAC;AACN,EAAA;EACA,OAAO,CAACA,SAAO,EAAE;MACb,0BAA0B,EAAE,WAAW;AAC3C,UAAQ,OAAO,0BAA0B;MACzC,CAAK;MACD,mCAAmC,EAAE,WAAW;AACpD,UAAQ,OAAO,mCAAmC;MAClD,CAAK;MACD,0BAA0B,EAAE,WAAW;AAC3C,UAAQ,OAAO,0BAA0B;AACzC,MAAA;AACA,GAAC,CAAC;EACF,MAAM,SAAS,GAAGC,eAAA,EAAsB;AACxC,EAAA,MAAM,0BAA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CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;cACzF;UACJ;AACR,cAAY,MAAM,MAAM,CAAC,cAAc,CAAC,IAAI,KAAK,CAAC,8BAA8B,CAAC,EAAE,mBAAmB,EAAE;kBACxF,KAAK,EAAE,MAAM;kBACb,UAAU,EAAE,KAAK;AACjC,kBAAgB,YAAY,EAAE;AAC9B,eAAa,CAAC;AACd;AACA,MAAI,OAAO;AACX,UAAQ,iBAAiB;UACjB;OACH;AACL,EAAA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,68 @@
1
+ import { __exports as interpolateAs } from '../../../../../../../_virtual/interpolate-as.js';
2
+ import { __require as requireRouteMatcher } from './route-matcher.js';
3
+ import { __require as requireRouteRegex } from './route-regex.js';
4
+
5
+ var hasRequiredInterpolateAs;
6
+
7
+ function requireInterpolateAs () {
8
+ if (hasRequiredInterpolateAs) return interpolateAs;
9
+ hasRequiredInterpolateAs = 1;
10
+ (function (exports$1) {
11
+ Object.defineProperty(exports$1, "__esModule", {
12
+ value: true
13
+ });
14
+ Object.defineProperty(exports$1, "interpolateAs", {
15
+ enumerable: true,
16
+ get: function() {
17
+ return interpolateAs;
18
+ }
19
+ });
20
+ const _routematcher = requireRouteMatcher();
21
+ const _routeregex = requireRouteRegex();
22
+ function interpolateAs(route, asPathname, query) {
23
+ let interpolatedRoute = '';
24
+ const dynamicRegex = (0, _routeregex.getRouteRegex)(route);
25
+ const dynamicGroups = dynamicRegex.groups;
26
+ const dynamicMatches = // Try to match the dynamic route against the asPath
27
+ (asPathname !== route ? (0, _routematcher.getRouteMatcher)(dynamicRegex)(asPathname) : '') || // Fall back to reading the values from the href
28
+ // TODO: should this take priority; also need to change in the router.
29
+ query;
30
+ interpolatedRoute = route;
31
+ const params = Object.keys(dynamicGroups);
32
+ if (!params.every((param)=>{
33
+ let value = dynamicMatches[param] || '';
34
+ const { repeat, optional } = dynamicGroups[param];
35
+ // support single-level catch-all
36
+ // TODO: more robust handling for user-error (passing `/`)
37
+ let replaced = `[${repeat ? '...' : ''}${param}]`;
38
+ if (optional) {
39
+ replaced = `${!value ? '/' : ''}[${replaced}]`;
40
+ }
41
+ if (repeat && !Array.isArray(value)) value = [
42
+ value
43
+ ];
44
+ return (optional || param in dynamicMatches) && // Interpolate group into data URL if present
45
+ (interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map(// these values should be fully encoded instead of just
46
+ // path delimiter escaped since they are being inserted
47
+ // into the URL and we expect URL encoded segments
48
+ // when parsing dynamic route params
49
+ (segment)=>encodeURIComponent(segment)).join('/') : encodeURIComponent(value)) || '/');
50
+ })) {
51
+ interpolatedRoute = '' // did not satisfy all requirements
52
+ ;
53
+ // n.b. We ignore this error because we handle warning for this case in
54
+ // development in the `<Link>` component directly.
55
+ }
56
+ return {
57
+ params,
58
+ result: interpolatedRoute
59
+ };
60
+ }
61
+
62
+
63
+ } (interpolateAs));
64
+ return interpolateAs;
65
+ }
66
+
67
+ export { requireInterpolateAs as __require };
68
+ //# sourceMappingURL=interpolate-as.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interpolate-as.js","sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/interpolate-as.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"interpolateAs\", {\n enumerable: true,\n get: function() {\n return interpolateAs;\n }\n});\nconst _routematcher = require(\"./route-matcher\");\nconst _routeregex = require(\"./route-regex\");\nfunction interpolateAs(route, asPathname, query) {\n let interpolatedRoute = '';\n const dynamicRegex = (0, _routeregex.getRouteRegex)(route);\n const dynamicGroups = dynamicRegex.groups;\n const dynamicMatches = // Try to match the dynamic route against the asPath\n (asPathname !== route ? (0, _routematcher.getRouteMatcher)(dynamicRegex)(asPathname) : '') || // Fall back to reading the values from the href\n // TODO: should this take priority; also need to change in the router.\n query;\n interpolatedRoute = route;\n const params = Object.keys(dynamicGroups);\n if (!params.every((param)=>{\n let value = dynamicMatches[param] || '';\n const { repeat, optional } = dynamicGroups[param];\n // support single-level catch-all\n // TODO: more robust handling for user-error (passing `/`)\n let replaced = `[${repeat ? '...' : ''}${param}]`;\n if (optional) {\n replaced = `${!value ? '/' : ''}[${replaced}]`;\n }\n if (repeat && !Array.isArray(value)) value = [\n value\n ];\n return (optional || param in dynamicMatches) && // Interpolate group into data URL if present\n (interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map(// these values should be fully encoded instead of just\n // path delimiter escaped since they are being inserted\n // into the URL and we expect URL encoded segments\n // when parsing dynamic route params\n (segment)=>encodeURIComponent(segment)).join('/') : encodeURIComponent(value)) || '/');\n })) {\n interpolatedRoute = '' // did not satisfy all requirements\n ;\n // n.b. We ignore this error because we handle warning for this case in\n // development in the `<Link>` component directly.\n }\n return {\n params,\n result: interpolatedRoute\n };\n}\n\n//# sourceMappingURL=interpolate-as.js.map"],"names":["exports","require$$0","require$$1"],"mappings":";;;;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AACF,EAAA,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,eAAe,EAAE;MAC5C,UAAU,EAAE,IAAI;MAChB,GAAG,EAAE,WAAW;AACpB,UAAQ,OAAO,aAAa;AAC5B,MAAA;AACA,GAAC,CAAC;EACF,MAAM,aAAa,GAAGC,mBAAA,EAA0B;EAChD,MAAM,WAAW,GAAGC,iBAAA,EAAwB;AAC5C,EAAA,SAAS,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE;MAC7C,IAAI,iBAAiB,GAAG,EAAE;MAC1B,MAAM,YAAY,GAAG,IAAI,WAAW,CAAC,aAAa,EAAE,KAAK,CAAC;AAC9D,MAAI,MAAM,aAAa,GAAG,YAAY,CAAC,MAAM;AAC7C,MAAI,MAAM,cAAc;AACxB,MAAI,CAAC,UA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