@betterinternship/components 2.4.1 → 2.4.3

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 (542) hide show
  1. package/dist/components/ui/accordion.js +5 -5
  2. package/dist/components/ui/accordion.js.map +1 -1
  3. package/dist/components/ui/app-header.d.ts +8 -1
  4. package/dist/components/ui/app-header.js +18 -18
  5. package/dist/components/ui/app-header.js.map +1 -1
  6. package/dist/components/ui/avatar.js +4 -4
  7. package/dist/components/ui/avatar.js.map +1 -1
  8. package/dist/components/ui/badge.js +3 -3
  9. package/dist/components/ui/badge.js.map +1 -1
  10. package/dist/components/ui/button.js +2 -2
  11. package/dist/components/ui/button.js.map +1 -1
  12. package/dist/components/ui/card.js +8 -8
  13. package/dist/components/ui/card.js.map +1 -1
  14. package/dist/components/ui/checkbox.js +2 -2
  15. package/dist/components/ui/checkbox.js.map +1 -1
  16. package/dist/components/ui/dialog.js +12 -12
  17. package/dist/components/ui/dialog.js.map +1 -1
  18. package/dist/components/ui/dropdown-menu.js +16 -16
  19. package/dist/components/ui/dropdown-menu.js.map +1 -1
  20. package/dist/components/ui/icons.js +12 -12
  21. package/dist/components/ui/icons.js.map +1 -1
  22. package/dist/components/ui/input.js +3 -3
  23. package/dist/components/ui/input.js.map +1 -1
  24. package/dist/components/ui/label.js +2 -2
  25. package/dist/components/ui/label.js.map +1 -1
  26. package/dist/components/ui/page-header.d.ts +2 -1
  27. package/dist/components/ui/page-header.js +5 -5
  28. package/dist/components/ui/page-header.js.map +1 -1
  29. package/dist/components/ui/popover.js +5 -5
  30. package/dist/components/ui/popover.js.map +1 -1
  31. package/dist/components/ui/separator.js +2 -2
  32. package/dist/components/ui/separator.js.map +1 -1
  33. package/dist/components/ui/skeleton.js +2 -2
  34. package/dist/components/ui/skeleton.js.map +1 -1
  35. package/dist/components/ui/status-notice.js +4 -4
  36. package/dist/components/ui/status-notice.js.map +1 -1
  37. package/dist/components/ui/switch.js +2 -2
  38. package/dist/components/ui/switch.js.map +1 -1
  39. package/dist/components/ui/table.js +9 -9
  40. package/dist/components/ui/table.js.map +1 -1
  41. package/dist/components/ui/textarea.js +2 -2
  42. package/dist/components/ui/textarea.js.map +1 -1
  43. package/dist/components/ui/tooltip.js +5 -5
  44. package/dist/components/ui/tooltip.js.map +1 -1
  45. package/dist/hooks/useClientProcess.js +2 -2
  46. package/dist/index.d.ts +4 -4
  47. package/dist/index.js +4 -4
  48. package/package.json +2 -2
  49. package/dist/_virtual/_commonjsHelpers.js +0 -6
  50. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  51. package/dist/_virtual/_interop_require_default.js +0 -4
  52. package/dist/_virtual/_interop_require_default.js.map +0 -1
  53. package/dist/_virtual/_interop_require_wildcard.js +0 -4
  54. package/dist/_virtual/_interop_require_wildcard.js.map +0 -1
  55. package/dist/_virtual/action-async-storage-instance.js +0 -4
  56. package/dist/_virtual/action-async-storage-instance.js.map +0 -1
  57. package/dist/_virtual/action-async-storage.external.js +0 -4
  58. package/dist/_virtual/action-async-storage.external.js.map +0 -1
  59. package/dist/_virtual/action-revalidation-kind.js +0 -4
  60. package/dist/_virtual/action-revalidation-kind.js.map +0 -1
  61. package/dist/_virtual/add-base-path.js +0 -4
  62. package/dist/_virtual/add-base-path.js.map +0 -1
  63. package/dist/_virtual/add-locale.js +0 -4
  64. package/dist/_virtual/add-locale.js.map +0 -1
  65. package/dist/_virtual/add-locale2.js +0 -4
  66. package/dist/_virtual/add-locale2.js.map +0 -1
  67. package/dist/_virtual/add-path-prefix.js +0 -4
  68. package/dist/_virtual/add-path-prefix.js.map +0 -1
  69. package/dist/_virtual/app-paths.js +0 -4
  70. package/dist/_virtual/app-paths.js.map +0 -1
  71. package/dist/_virtual/app-router-context.shared-runtime.js +0 -4
  72. package/dist/_virtual/app-router-context.shared-runtime.js.map +0 -1
  73. package/dist/_virtual/app.js +0 -4
  74. package/dist/_virtual/app.js.map +0 -1
  75. package/dist/_virtual/async-local-storage.js +0 -4
  76. package/dist/_virtual/async-local-storage.js.map +0 -1
  77. package/dist/_virtual/bailout-to-csr.js +0 -4
  78. package/dist/_virtual/bailout-to-csr.js.map +0 -1
  79. package/dist/_virtual/blocking-route-messages.js +0 -4
  80. package/dist/_virtual/blocking-route-messages.js.map +0 -1
  81. package/dist/_virtual/boundary-constants.js +0 -4
  82. package/dist/_virtual/boundary-constants.js.map +0 -1
  83. package/dist/_virtual/boundary-constants2.js +0 -4
  84. package/dist/_virtual/boundary-constants2.js.map +0 -1
  85. package/dist/_virtual/boundary-tracking.js +0 -4
  86. package/dist/_virtual/boundary-tracking.js.map +0 -1
  87. package/dist/_virtual/constants.js +0 -4
  88. package/dist/_virtual/constants.js.map +0 -1
  89. package/dist/_virtual/cookies.js +0 -4
  90. package/dist/_virtual/cookies.js.map +0 -1
  91. package/dist/_virtual/deployment-id.js +0 -4
  92. package/dist/_virtual/deployment-id.js.map +0 -1
  93. package/dist/_virtual/detect-domain-locale.js +0 -4
  94. package/dist/_virtual/detect-domain-locale.js.map +0 -1
  95. package/dist/_virtual/detect-domain-locale2.js +0 -4
  96. package/dist/_virtual/detect-domain-locale2.js.map +0 -1
  97. package/dist/_virtual/dynamic-rendering-utils.js +0 -4
  98. package/dist/_virtual/dynamic-rendering-utils.js.map +0 -1
  99. package/dist/_virtual/dynamic-rendering.js +0 -4
  100. package/dist/_virtual/dynamic-rendering.js.map +0 -1
  101. package/dist/_virtual/ensure-leading-slash.js +0 -4
  102. package/dist/_virtual/ensure-leading-slash.js.map +0 -1
  103. package/dist/_virtual/error-once.js +0 -4
  104. package/dist/_virtual/error-once.js.map +0 -1
  105. package/dist/_virtual/escape-regexp.js +0 -4
  106. package/dist/_virtual/escape-regexp.js.map +0 -1
  107. package/dist/_virtual/find-closest-quality.js +0 -4
  108. package/dist/_virtual/find-closest-quality.js.map +0 -1
  109. package/dist/_virtual/forbidden.js +0 -4
  110. package/dist/_virtual/forbidden.js.map +0 -1
  111. package/dist/_virtual/format-url.js +0 -4
  112. package/dist/_virtual/format-url.js.map +0 -1
  113. package/dist/_virtual/get-domain-locale.js +0 -4
  114. package/dist/_virtual/get-domain-locale.js.map +0 -1
  115. package/dist/_virtual/get-dynamic-param.js +0 -4
  116. package/dist/_virtual/get-dynamic-param.js.map +0 -1
  117. package/dist/_virtual/get-img-props.js +0 -4
  118. package/dist/_virtual/get-img-props.js.map +0 -1
  119. package/dist/_virtual/get-segment-param.js +0 -4
  120. package/dist/_virtual/get-segment-param.js.map +0 -1
  121. package/dist/_virtual/has-base-path.js +0 -4
  122. package/dist/_virtual/has-base-path.js.map +0 -1
  123. package/dist/_virtual/head-manager-context.shared-runtime.js +0 -4
  124. package/dist/_virtual/head-manager-context.shared-runtime.js.map +0 -1
  125. package/dist/_virtual/head.js +0 -4
  126. package/dist/_virtual/head.js.map +0 -1
  127. package/dist/_virtual/headers.js +0 -4
  128. package/dist/_virtual/headers.js.map +0 -1
  129. package/dist/_virtual/hooks-client-context.shared-runtime.js +0 -4
  130. package/dist/_virtual/hooks-client-context.shared-runtime.js.map +0 -1
  131. package/dist/_virtual/hooks-server-context.js +0 -4
  132. package/dist/_virtual/hooks-server-context.js.map +0 -1
  133. package/dist/_virtual/http-access-fallback.js +0 -4
  134. package/dist/_virtual/http-access-fallback.js.map +0 -1
  135. package/dist/_virtual/image-blur-svg.js +0 -4
  136. package/dist/_virtual/image-blur-svg.js.map +0 -1
  137. package/dist/_virtual/image-component.js +0 -4
  138. package/dist/_virtual/image-component.js.map +0 -1
  139. package/dist/_virtual/image-config-context.shared-runtime.js +0 -4
  140. package/dist/_virtual/image-config-context.shared-runtime.js.map +0 -1
  141. package/dist/_virtual/image-config.js +0 -4
  142. package/dist/_virtual/image-config.js.map +0 -1
  143. package/dist/_virtual/image-external.js +0 -4
  144. package/dist/_virtual/image-external.js.map +0 -1
  145. package/dist/_virtual/image-loader.js +0 -4
  146. package/dist/_virtual/image-loader.js.map +0 -1
  147. package/dist/_virtual/image.js +0 -8
  148. package/dist/_virtual/image.js.map +0 -1
  149. package/dist/_virtual/index.js +0 -4
  150. package/dist/_virtual/index.js.map +0 -1
  151. package/dist/_virtual/index2.js +0 -4
  152. package/dist/_virtual/index2.js.map +0 -1
  153. package/dist/_virtual/index3.js +0 -4
  154. package/dist/_virtual/index3.js.map +0 -1
  155. package/dist/_virtual/instant-messages.js +0 -4
  156. package/dist/_virtual/instant-messages.js.map +0 -1
  157. package/dist/_virtual/instant-samples.js +0 -4
  158. package/dist/_virtual/instant-samples.js.map +0 -1
  159. package/dist/_virtual/instant-samples2.js +0 -4
  160. package/dist/_virtual/instant-samples2.js.map +0 -1
  161. package/dist/_virtual/instant-validation-error.js +0 -4
  162. package/dist/_virtual/instant-validation-error.js.map +0 -1
  163. package/dist/_virtual/interception-prefix-from-param-type.js +0 -4
  164. package/dist/_virtual/interception-prefix-from-param-type.js.map +0 -1
  165. package/dist/_virtual/interception-routes.js +0 -4
  166. package/dist/_virtual/interception-routes.js.map +0 -1
  167. package/dist/_virtual/interpolate-as.js +0 -4
  168. package/dist/_virtual/interpolate-as.js.map +0 -1
  169. package/dist/_virtual/invariant-error.js +0 -4
  170. package/dist/_virtual/invariant-error.js.map +0 -1
  171. package/dist/_virtual/is-dynamic.js +0 -4
  172. package/dist/_virtual/is-dynamic.js.map +0 -1
  173. package/dist/_virtual/is-local-url.js +0 -4
  174. package/dist/_virtual/is-local-url.js.map +0 -1
  175. package/dist/_virtual/is-next-router-error.js +0 -4
  176. package/dist/_virtual/is-next-router-error.js.map +0 -1
  177. package/dist/_virtual/is-postpone.js +0 -4
  178. package/dist/_virtual/is-postpone.js.map +0 -1
  179. package/dist/_virtual/jsx-runtime.js +0 -6
  180. package/dist/_virtual/jsx-runtime.js.map +0 -1
  181. package/dist/_virtual/jsx-runtime2.js +0 -4
  182. package/dist/_virtual/jsx-runtime2.js.map +0 -1
  183. package/dist/_virtual/link.js +0 -8
  184. package/dist/_virtual/link.js.map +0 -1
  185. package/dist/_virtual/link2.js +0 -4
  186. package/dist/_virtual/link2.js.map +0 -1
  187. package/dist/_virtual/match-local-pattern.js +0 -4
  188. package/dist/_virtual/match-local-pattern.js.map +0 -1
  189. package/dist/_virtual/match-remote-pattern.js +0 -4
  190. package/dist/_virtual/match-remote-pattern.js.map +0 -1
  191. package/dist/_virtual/navigation-dynamic-rendering.js +0 -4
  192. package/dist/_virtual/navigation-dynamic-rendering.js.map +0 -1
  193. package/dist/_virtual/navigation.js +0 -6
  194. package/dist/_virtual/navigation.js.map +0 -1
  195. package/dist/_virtual/navigation.react-server.js +0 -4
  196. package/dist/_virtual/navigation.react-server.js.map +0 -1
  197. package/dist/_virtual/navigation2.js +0 -4
  198. package/dist/_virtual/navigation2.js.map +0 -1
  199. package/dist/_virtual/normalize-locale-path.js +0 -4
  200. package/dist/_virtual/normalize-locale-path.js.map +0 -1
  201. package/dist/_virtual/normalize-locale-path2.js +0 -4
  202. package/dist/_virtual/normalize-locale-path2.js.map +0 -1
  203. package/dist/_virtual/normalize-trailing-slash.js +0 -4
  204. package/dist/_virtual/normalize-trailing-slash.js.map +0 -1
  205. package/dist/_virtual/not-found.js +0 -4
  206. package/dist/_virtual/not-found.js.map +0 -1
  207. package/dist/_virtual/omit.js +0 -4
  208. package/dist/_virtual/omit.js.map +0 -1
  209. package/dist/_virtual/parse-loader-tree.js +0 -4
  210. package/dist/_virtual/parse-loader-tree.js.map +0 -1
  211. package/dist/_virtual/parse-path.js +0 -4
  212. package/dist/_virtual/parse-path.js.map +0 -1
  213. package/dist/_virtual/parse-relative-url.js +0 -4
  214. package/dist/_virtual/parse-relative-url.js.map +0 -1
  215. package/dist/_virtual/path-has-prefix.js +0 -4
  216. package/dist/_virtual/path-has-prefix.js.map +0 -1
  217. package/dist/_virtual/promise-with-resolvers.js +0 -4
  218. package/dist/_virtual/promise-with-resolvers.js.map +0 -1
  219. package/dist/_virtual/querystring.js +0 -4
  220. package/dist/_virtual/querystring.js.map +0 -1
  221. package/dist/_virtual/react-jsx-runtime.development.js +0 -4
  222. package/dist/_virtual/react-jsx-runtime.development.js.map +0 -1
  223. package/dist/_virtual/react-jsx-runtime.production.js +0 -4
  224. package/dist/_virtual/react-jsx-runtime.production.js.map +0 -1
  225. package/dist/_virtual/readonly-url-search-params.js +0 -4
  226. package/dist/_virtual/readonly-url-search-params.js.map +0 -1
  227. package/dist/_virtual/redirect-error.js +0 -4
  228. package/dist/_virtual/redirect-error.js.map +0 -1
  229. package/dist/_virtual/redirect-status-code.js +0 -4
  230. package/dist/_virtual/redirect-status-code.js.map +0 -1
  231. package/dist/_virtual/redirect.js +0 -4
  232. package/dist/_virtual/redirect.js.map +0 -1
  233. package/dist/_virtual/reflect-utils.js +0 -4
  234. package/dist/_virtual/reflect-utils.js.map +0 -1
  235. package/dist/_virtual/reflect.js +0 -4
  236. package/dist/_virtual/reflect.js.map +0 -1
  237. package/dist/_virtual/remove-trailing-slash.js +0 -4
  238. package/dist/_virtual/remove-trailing-slash.js.map +0 -1
  239. package/dist/_virtual/request-cookies.js +0 -4
  240. package/dist/_virtual/request-cookies.js.map +0 -1
  241. package/dist/_virtual/request-idle-callback.js +0 -4
  242. package/dist/_virtual/request-idle-callback.js.map +0 -1
  243. package/dist/_virtual/resolve-href.js +0 -4
  244. package/dist/_virtual/resolve-href.js.map +0 -1
  245. package/dist/_virtual/resolve-param-value.js +0 -4
  246. package/dist/_virtual/resolve-param-value.js.map +0 -1
  247. package/dist/_virtual/route-match-utils.js +0 -4
  248. package/dist/_virtual/route-match-utils.js.map +0 -1
  249. package/dist/_virtual/route-matcher.js +0 -4
  250. package/dist/_virtual/route-matcher.js.map +0 -1
  251. package/dist/_virtual/route-pattern-normalizer.js +0 -4
  252. package/dist/_virtual/route-pattern-normalizer.js.map +0 -1
  253. package/dist/_virtual/route-regex.js +0 -4
  254. package/dist/_virtual/route-regex.js.map +0 -1
  255. package/dist/_virtual/router-context.shared-runtime.js +0 -4
  256. package/dist/_virtual/router-context.shared-runtime.js.map +0 -1
  257. package/dist/_virtual/runtime-reacts.external.js +0 -4
  258. package/dist/_virtual/runtime-reacts.external.js.map +0 -1
  259. package/dist/_virtual/scheduler.js +0 -4
  260. package/dist/_virtual/scheduler.js.map +0 -1
  261. package/dist/_virtual/segment.js +0 -4
  262. package/dist/_virtual/segment.js.map +0 -1
  263. package/dist/_virtual/server-async-storage.js +0 -4
  264. package/dist/_virtual/server-async-storage.js.map +0 -1
  265. package/dist/_virtual/server-inserted-html.shared-runtime.js +0 -4
  266. package/dist/_virtual/server-inserted-html.shared-runtime.js.map +0 -1
  267. package/dist/_virtual/side-effect.js +0 -4
  268. package/dist/_virtual/side-effect.js.map +0 -1
  269. package/dist/_virtual/sorted-routes.js +0 -4
  270. package/dist/_virtual/sorted-routes.js.map +0 -1
  271. package/dist/_virtual/staged-rendering.js +0 -4
  272. package/dist/_virtual/staged-rendering.js.map +0 -1
  273. package/dist/_virtual/static-generation-bailout.js +0 -4
  274. package/dist/_virtual/static-generation-bailout.js.map +0 -1
  275. package/dist/_virtual/unauthorized.js +0 -4
  276. package/dist/_virtual/unauthorized.js.map +0 -1
  277. package/dist/_virtual/unrecognized-action-error.js +0 -4
  278. package/dist/_virtual/unrecognized-action-error.js.map +0 -1
  279. package/dist/_virtual/unstable-rethrow.js +0 -4
  280. package/dist/_virtual/unstable-rethrow.js.map +0 -1
  281. package/dist/_virtual/use-intersection.js +0 -4
  282. package/dist/_virtual/use-intersection.js.map +0 -1
  283. package/dist/_virtual/use-merged-ref.js +0 -4
  284. package/dist/_virtual/use-merged-ref.js.map +0 -1
  285. package/dist/_virtual/utils.js +0 -4
  286. package/dist/_virtual/utils.js.map +0 -1
  287. package/dist/_virtual/warn-once.js +0 -4
  288. package/dist/_virtual/warn-once.js.map +0 -1
  289. package/dist/_virtual/work-async-storage-instance.js +0 -4
  290. package/dist/_virtual/work-async-storage-instance.js.map +0 -1
  291. package/dist/_virtual/work-async-storage.external.js +0 -4
  292. package/dist/_virtual/work-async-storage.external.js.map +0 -1
  293. package/dist/_virtual/work-unit-async-storage-instance.js +0 -4
  294. package/dist/_virtual/work-unit-async-storage-instance.js.map +0 -1
  295. package/dist/_virtual/work-unit-async-storage.external.js +0 -4
  296. package/dist/_virtual/work-unit-async-storage.external.js.map +0 -1
  297. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -17
  298. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js.map +0 -1
  299. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -49
  300. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js.map +0 -1
  301. package/dist/node_modules/next/dist/client/add-base-path.js +0 -39
  302. package/dist/node_modules/next/dist/client/add-base-path.js.map +0 -1
  303. package/dist/node_modules/next/dist/client/add-locale.js +0 -40
  304. package/dist/node_modules/next/dist/client/add-locale.js.map +0 -1
  305. package/dist/node_modules/next/dist/client/components/forbidden.js +0 -62
  306. package/dist/node_modules/next/dist/client/components/forbidden.js.map +0 -1
  307. package/dist/node_modules/next/dist/client/components/hooks-server-context.js +0 -51
  308. package/dist/node_modules/next/dist/client/components/hooks-server-context.js.map +0 -1
  309. package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +0 -78
  310. package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js.map +0 -1
  311. package/dist/node_modules/next/dist/client/components/instant-samples.js +0 -107
  312. package/dist/node_modules/next/dist/client/components/instant-samples.js.map +0 -1
  313. package/dist/node_modules/next/dist/client/components/is-next-router-error.js +0 -38
  314. package/dist/node_modules/next/dist/client/components/is-next-router-error.js.map +0 -1
  315. package/dist/node_modules/next/dist/client/components/navigation-dynamic-rendering.js +0 -41
  316. package/dist/node_modules/next/dist/client/components/navigation-dynamic-rendering.js.map +0 -1
  317. package/dist/node_modules/next/dist/client/components/navigation.js +0 -250
  318. package/dist/node_modules/next/dist/client/components/navigation.js.map +0 -1
  319. package/dist/node_modules/next/dist/client/components/navigation.react-server.js +0 -83
  320. package/dist/node_modules/next/dist/client/components/navigation.react-server.js.map +0 -1
  321. package/dist/node_modules/next/dist/client/components/not-found.js +0 -56
  322. package/dist/node_modules/next/dist/client/components/not-found.js.map +0 -1
  323. package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js +0 -61
  324. package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js.map +0 -1
  325. package/dist/node_modules/next/dist/client/components/redirect-error.js +0 -53
  326. package/dist/node_modules/next/dist/client/components/redirect-error.js.map +0 -1
  327. package/dist/node_modules/next/dist/client/components/redirect-status-code.js +0 -37
  328. package/dist/node_modules/next/dist/client/components/redirect-status-code.js.map +0 -1
  329. package/dist/node_modules/next/dist/client/components/redirect.js +0 -99
  330. package/dist/node_modules/next/dist/client/components/redirect.js.map +0 -1
  331. package/dist/node_modules/next/dist/client/components/server-async-storage.js +0 -48
  332. package/dist/node_modules/next/dist/client/components/server-async-storage.js.map +0 -1
  333. package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +0 -51
  334. package/dist/node_modules/next/dist/client/components/static-generation-bailout.js.map +0 -1
  335. package/dist/node_modules/next/dist/client/components/unauthorized.js +0 -63
  336. package/dist/node_modules/next/dist/client/components/unauthorized.js.map +0 -1
  337. package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js +0 -48
  338. package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js.map +0 -1
  339. package/dist/node_modules/next/dist/client/components/unstable-rethrow.js +0 -51
  340. package/dist/node_modules/next/dist/client/components/unstable-rethrow.js.map +0 -1
  341. package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -37
  342. package/dist/node_modules/next/dist/client/detect-domain-locale.js.map +0 -1
  343. package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -52
  344. package/dist/node_modules/next/dist/client/get-domain-locale.js.map +0 -1
  345. package/dist/node_modules/next/dist/client/has-base-path.js +0 -37
  346. package/dist/node_modules/next/dist/client/has-base-path.js.map +0 -1
  347. package/dist/node_modules/next/dist/client/image-component.js +0 -351
  348. package/dist/node_modules/next/dist/client/image-component.js.map +0 -1
  349. package/dist/node_modules/next/dist/client/link.js +0 -471
  350. package/dist/node_modules/next/dist/client/link.js.map +0 -1
  351. package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -41
  352. package/dist/node_modules/next/dist/client/normalize-locale-path.js.map +0 -1
  353. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -52
  354. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js.map +0 -1
  355. package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -53
  356. package/dist/node_modules/next/dist/client/request-idle-callback.js.map +0 -1
  357. package/dist/node_modules/next/dist/client/resolve-href.js +0 -129
  358. package/dist/node_modules/next/dist/client/resolve-href.js.map +0 -1
  359. package/dist/node_modules/next/dist/client/use-intersection.js +0 -129
  360. package/dist/node_modules/next/dist/client/use-intersection.js.map +0 -1
  361. package/dist/node_modules/next/dist/client/use-merged-ref.js +0 -83
  362. package/dist/node_modules/next/dist/client/use-merged-ref.js.map +0 -1
  363. package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +0 -341
  364. package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js.map +0 -1
  365. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -13
  366. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js.map +0 -1
  367. package/dist/node_modules/next/dist/compiled/picomatch/index.js +0 -13
  368. package/dist/node_modules/next/dist/compiled/picomatch/index.js.map +0 -1
  369. package/dist/node_modules/next/dist/lib/constants.js +0 -370
  370. package/dist/node_modules/next/dist/lib/constants.js.map +0 -1
  371. package/dist/node_modules/next/dist/lib/framework/boundary-constants.js +0 -43
  372. package/dist/node_modules/next/dist/lib/framework/boundary-constants.js.map +0 -1
  373. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +0 -112
  374. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js.map +0 -1
  375. package/dist/node_modules/next/dist/lib/scheduler.js +0 -71
  376. package/dist/node_modules/next/dist/lib/scheduler.js.map +0 -1
  377. package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js +0 -28
  378. package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js.map +0 -1
  379. package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js +0 -27
  380. package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js.map +0 -1
  381. package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +0 -84
  382. package/dist/node_modules/next/dist/server/app-render/async-local-storage.js.map +0 -1
  383. package/dist/node_modules/next/dist/server/app-render/blocking-route-messages.js +0 -177
  384. package/dist/node_modules/next/dist/server/app-render/blocking-route-messages.js.map +0 -1
  385. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -1168
  386. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js.map +0 -1
  387. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +0 -39
  388. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js.map +0 -1
  389. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +0 -47
  390. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js.map +0 -1
  391. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +0 -427
  392. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js.map +0 -1
  393. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +0 -42
  394. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js.map +0 -1
  395. package/dist/node_modules/next/dist/server/app-render/staged-rendering.js +0 -331
  396. package/dist/node_modules/next/dist/server/app-render/staged-rendering.js.map +0 -1
  397. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -28
  398. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js.map +0 -1
  399. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -27
  400. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js.map +0 -1
  401. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -28
  402. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js.map +0 -1
  403. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -211
  404. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js.map +0 -1
  405. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -269
  406. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js.map +0 -1
  407. package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -29
  408. package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js.map +0 -1
  409. package/dist/node_modules/next/dist/server/runtime-reacts.external.js +0 -53
  410. package/dist/node_modules/next/dist/server/runtime-reacts.external.js.map +0 -1
  411. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +0 -303
  412. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/headers.js.map +0 -1
  413. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +0 -43
  414. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js.map +0 -1
  415. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +0 -233
  416. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js.map +0 -1
  417. package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js +0 -38
  418. package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js.map +0 -1
  419. package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js +0 -39
  420. package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js.map +0 -1
  421. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -58
  422. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js.map +0 -1
  423. package/dist/node_modules/next/dist/shared/lib/deployment-id.js +0 -70
  424. package/dist/node_modules/next/dist/shared/lib/deployment-id.js.map +0 -1
  425. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -34
  426. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js.map +0 -1
  427. package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js +0 -32
  428. package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js.map +0 -1
  429. package/dist/node_modules/next/dist/shared/lib/get-img-props.js +0 -614
  430. package/dist/node_modules/next/dist/shared/lib/get-img-props.js.map +0 -1
  431. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -33
  432. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js.map +0 -1
  433. package/dist/node_modules/next/dist/shared/lib/head.js +0 -178
  434. package/dist/node_modules/next/dist/shared/lib/head.js.map +0 -1
  435. package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +0 -67
  436. package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js.map +0 -1
  437. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -38
  438. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js.map +0 -1
  439. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -67
  440. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js.map +0 -1
  441. package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js +0 -37
  442. package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js.map +0 -1
  443. package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +0 -35
  444. package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js.map +0 -1
  445. package/dist/node_modules/next/dist/shared/lib/image-config.js +0 -86
  446. package/dist/node_modules/next/dist/shared/lib/image-config.js.map +0 -1
  447. package/dist/node_modules/next/dist/shared/lib/image-external.js +0 -60
  448. package/dist/node_modules/next/dist/shared/lib/image-external.js.map +0 -1
  449. package/dist/node_modules/next/dist/shared/lib/image-loader.js +0 -135
  450. package/dist/node_modules/next/dist/shared/lib/image-loader.js.map +0 -1
  451. package/dist/node_modules/next/dist/shared/lib/instant-messages.js +0 -52
  452. package/dist/node_modules/next/dist/shared/lib/instant-messages.js.map +0 -1
  453. package/dist/node_modules/next/dist/shared/lib/invariant-error.js +0 -36
  454. package/dist/node_modules/next/dist/shared/lib/invariant-error.js.map +0 -1
  455. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -45
  456. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js.map +0 -1
  457. package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js +0 -56
  458. package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js.map +0 -1
  459. package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js +0 -73
  460. package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js.map +0 -1
  461. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -33
  462. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js.map +0 -1
  463. package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js +0 -39
  464. package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js.map +0 -1
  465. package/dist/node_modules/next/dist/shared/lib/router/routes/app.js +0 -167
  466. package/dist/node_modules/next/dist/shared/lib/router/routes/app.js.map +0 -1
  467. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -43
  468. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js.map +0 -1
  469. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -34
  470. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js.map +0 -1
  471. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -72
  472. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js.map +0 -1
  473. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -100
  474. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js.map +0 -1
  475. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +0 -184
  476. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js.map +0 -1
  477. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +0 -91
  478. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js.map +0 -1
  479. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -40
  480. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js.map +0 -1
  481. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +0 -46
  482. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js.map +0 -1
  483. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -116
  484. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js.map +0 -1
  485. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -68
  486. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js.map +0 -1
  487. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -40
  488. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js.map +0 -1
  489. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -41
  490. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js.map +0 -1
  491. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -34
  492. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js.map +0 -1
  493. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +0 -44
  494. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js.map +0 -1
  495. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -48
  496. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js.map +0 -1
  497. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +0 -58
  498. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js.map +0 -1
  499. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -34
  500. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js.map +0 -1
  501. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -87
  502. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js.map +0 -1
  503. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -37
  504. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js.map +0 -1
  505. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +0 -129
  506. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js.map +0 -1
  507. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +0 -124
  508. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js.map +0 -1
  509. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -60
  510. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js.map +0 -1
  511. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -269
  512. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js.map +0 -1
  513. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -253
  514. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js.map +0 -1
  515. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -33
  516. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js.map +0 -1
  517. package/dist/node_modules/next/dist/shared/lib/segment.js +0 -104
  518. package/dist/node_modules/next/dist/shared/lib/segment.js.map +0 -1
  519. package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +0 -46
  520. package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js.map +0 -1
  521. package/dist/node_modules/next/dist/shared/lib/side-effect.js +0 -77
  522. package/dist/node_modules/next/dist/shared/lib/side-effect.js.map +0 -1
  523. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +0 -35
  524. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js.map +0 -1
  525. package/dist/node_modules/next/dist/shared/lib/utils/reflect-utils.js +0 -72
  526. package/dist/node_modules/next/dist/shared/lib/utils/reflect-utils.js.map +0 -1
  527. package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +0 -35
  528. package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js.map +0 -1
  529. package/dist/node_modules/next/dist/shared/lib/utils.js +0 -210
  530. package/dist/node_modules/next/dist/shared/lib/utils.js.map +0 -1
  531. package/dist/node_modules/next/image.js +0 -14
  532. package/dist/node_modules/next/image.js.map +0 -1
  533. package/dist/node_modules/next/link.js +0 -14
  534. package/dist/node_modules/next/link.js.map +0 -1
  535. package/dist/node_modules/next/navigation.js +0 -14
  536. package/dist/node_modules/next/navigation.js.map +0 -1
  537. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -364
  538. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
  539. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -45
  540. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js.map +0 -1
  541. package/dist/node_modules/react/jsx-runtime.js +0 -20
  542. package/dist/node_modules/react/jsx-runtime.js.map +0 -1
@@ -1,303 +0,0 @@
1
- import { __exports as headers } from '../../../../../../../_virtual/headers.js';
2
- import { __require as requireReflect } from './reflect.js';
3
-
4
- var hasRequiredHeaders;
5
-
6
- function requireHeaders () {
7
- if (hasRequiredHeaders) return headers;
8
- hasRequiredHeaders = 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
- HeadersAdapter: function() {
21
- return HeadersAdapter;
22
- },
23
- ReadonlyHeadersError: function() {
24
- return ReadonlyHeadersError;
25
- }
26
- });
27
- const _reflect = requireReflect();
28
- class ReadonlyHeadersError extends Error {
29
- constructor(){
30
- super('Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers');
31
- Object.defineProperty(this, "__NEXT_ERROR_CODE", {
32
- value: "E1176",
33
- enumerable: false,
34
- configurable: true
35
- });
36
- }
37
- static callable() {
38
- throw new ReadonlyHeadersError();
39
- }
40
- }
41
- /**
42
- * Builds the read methods for a sealed view that exposes all of `target`.
43
- */ function createPassThroughMethods(target, sealed) {
44
- return {
45
- get: target.get.bind(target),
46
- has: target.has.bind(target),
47
- getSetCookie: target.getSetCookie.bind(target),
48
- keys: target.keys.bind(target),
49
- values: target.values.bind(target),
50
- entries: target.entries.bind(target),
51
- [Symbol.iterator]: target[Symbol.iterator].bind(target),
52
- // The native method passes the unsealed target as the callback's `parent`
53
- // argument. That is a mutable handle on the underlying headers. Pass the
54
- // sealed view instead.
55
- forEach (callbackfn, thisArg) {
56
- for (const [name, value] of target.entries()){
57
- callbackfn.call(thisArg, value, name, sealed);
58
- }
59
- }
60
- };
61
- }
62
- /**
63
- * Builds the read methods for a sealed view that omits the header names matched
64
- * by `isHidden`.
65
- */ function createHidingMethods(target, sealed, isHidden) {
66
- function* entries() {
67
- for (const entry of target.entries()){
68
- if (!isHidden(entry[0])) {
69
- yield entry;
70
- }
71
- }
72
- }
73
- return {
74
- entries,
75
- [Symbol.iterator]: entries,
76
- get: (name)=>isHidden(name) ? null : target.get(name),
77
- has: (name)=>isHidden(name) ? false : target.has(name),
78
- getSetCookie: ()=>isHidden('set-cookie') ? [] : target.getSetCookie(),
79
- *keys () {
80
- for (const name of target.keys()){
81
- if (!isHidden(name)) {
82
- yield name;
83
- }
84
- }
85
- },
86
- *values () {
87
- for (const [, value] of entries()){
88
- yield value;
89
- }
90
- },
91
- // The native method passes the unsealed target as the callback's `parent`
92
- // argument. That is a mutable handle on the underlying headers. Pass the
93
- // sealed view instead.
94
- forEach (callbackfn, thisArg) {
95
- for (const [name, value] of entries()){
96
- callbackfn.call(thisArg, value, name, sealed);
97
- }
98
- }
99
- };
100
- }
101
- class HeadersAdapter extends Headers {
102
- constructor(headers){
103
- // We've already overridden the methods that would be called, so we're just
104
- // calling the super constructor to ensure that the instanceof check works.
105
- super();
106
- this.headers = new Proxy(headers, {
107
- get (target, prop, receiver) {
108
- // Because this is just an object, we expect that all "get" operations
109
- // are for properties. If it's a "get" for a symbol, we'll just return
110
- // the symbol.
111
- if (typeof prop === 'symbol') {
112
- return _reflect.ReflectAdapter.get(target, prop, receiver);
113
- }
114
- const lowercased = prop.toLowerCase();
115
- // Let's find the original casing of the key. This assumes that there is
116
- // no mixed case keys (e.g. "Content-Type" and "content-type") in the
117
- // headers object.
118
- const original = Object.keys(headers).find((o)=>o.toLowerCase() === lowercased);
119
- // If the original casing doesn't exist, return undefined.
120
- if (typeof original === 'undefined') return;
121
- // If the original casing exists, return the value.
122
- return _reflect.ReflectAdapter.get(target, original, receiver);
123
- },
124
- set (target, prop, value, receiver) {
125
- if (typeof prop === 'symbol') {
126
- return _reflect.ReflectAdapter.set(target, prop, value, receiver);
127
- }
128
- const lowercased = prop.toLowerCase();
129
- // Let's find the original casing of the key. This assumes that there is
130
- // no mixed case keys (e.g. "Content-Type" and "content-type") in the
131
- // headers object.
132
- const original = Object.keys(headers).find((o)=>o.toLowerCase() === lowercased);
133
- // If the original casing doesn't exist, use the prop as the key.
134
- return _reflect.ReflectAdapter.set(target, original ?? prop, value, receiver);
135
- },
136
- has (target, prop) {
137
- if (typeof prop === 'symbol') return _reflect.ReflectAdapter.has(target, prop);
138
- const lowercased = prop.toLowerCase();
139
- // Let's find the original casing of the key. This assumes that there is
140
- // no mixed case keys (e.g. "Content-Type" and "content-type") in the
141
- // headers object.
142
- const original = Object.keys(headers).find((o)=>o.toLowerCase() === lowercased);
143
- // If the original casing doesn't exist, return false.
144
- if (typeof original === 'undefined') return false;
145
- // If the original casing exists, return true.
146
- return _reflect.ReflectAdapter.has(target, original);
147
- },
148
- deleteProperty (target, prop) {
149
- if (typeof prop === 'symbol') return _reflect.ReflectAdapter.deleteProperty(target, prop);
150
- const lowercased = prop.toLowerCase();
151
- // Let's find the original casing of the key. This assumes that there is
152
- // no mixed case keys (e.g. "Content-Type" and "content-type") in the
153
- // headers object.
154
- const original = Object.keys(headers).find((o)=>o.toLowerCase() === lowercased);
155
- // If the original casing doesn't exist, return true.
156
- if (typeof original === 'undefined') return true;
157
- // If the original casing exists, delete the property.
158
- return _reflect.ReflectAdapter.deleteProperty(target, original);
159
- }
160
- });
161
- }
162
- /**
163
- * Seals a Headers instance to prevent modification by throwing an error when
164
- * any mutating method is called.
165
- *
166
- * The sealed view stays live. Later writes to `headers` remain visible
167
- * through it.
168
- *
169
- * `hidden` omits the given header names from every read operation (`get`,
170
- * `has`, `getSetCookie`, `forEach`, and iteration). The names must be
171
- * lowercase. The underlying headers are neither copied nor mutated, so hidden
172
- * headers remain available to the framework.
173
- */ static seal(headers, hidden) {
174
- const isHidden = hidden && hidden.size > 0 ? (name)=>hidden.has(name.toLowerCase()) : null;
175
- // The methods are built once per sealed view and reused, so repeated access
176
- // returns the same function instead of a fresh closure. They are assigned
177
- // after the proxy exists because `forEach` hands the proxy to its callback.
178
- // Creating the proxy runs no trap, so nothing can read them before then.
179
- let methods;
180
- const sealed = new Proxy(headers, {
181
- get (target, prop, receiver) {
182
- switch(prop){
183
- case 'append':
184
- case 'delete':
185
- case 'set':
186
- return ReadonlyHeadersError.callable;
187
- case Symbol.iterator:
188
- return methods[Symbol.iterator];
189
- case 'get':
190
- case 'has':
191
- case 'getSetCookie':
192
- case 'keys':
193
- case 'values':
194
- case 'entries':
195
- case 'forEach':
196
- return methods[prop];
197
- default:
198
- return _reflect.ReflectAdapter.get(target, prop, receiver);
199
- }
200
- }
201
- });
202
- methods = isHidden ? createHidingMethods(headers, sealed, isHidden) : createPassThroughMethods(headers, sealed);
203
- return sealed;
204
- }
205
- /**
206
- * @param headers
207
- * @returns A fresh object identity backed by the original value
208
- */ static fresh(headers) {
209
- return new Proxy(headers, {
210
- get (target, prop, receiver) {
211
- return _reflect.ReflectAdapter.get(target, prop, receiver);
212
- }
213
- });
214
- }
215
- /**
216
- * Merges a header value into a string. This stores multiple values as an
217
- * array, so we need to merge them into a string.
218
- *
219
- * @param value a header value
220
- * @returns a merged header value (a string)
221
- */ merge(value) {
222
- if (Array.isArray(value)) return value.join(', ');
223
- return value;
224
- }
225
- /**
226
- * Creates a Headers instance from a plain object or a Headers instance.
227
- *
228
- * @param headers a plain object or a Headers instance
229
- * @returns a headers instance
230
- */ static from(headers) {
231
- if (headers instanceof Headers) return headers;
232
- return new HeadersAdapter(headers);
233
- }
234
- append(name, value) {
235
- const existing = this.headers[name];
236
- if (typeof existing === 'string') {
237
- this.headers[name] = [
238
- existing,
239
- value
240
- ];
241
- } else if (Array.isArray(existing)) {
242
- existing.push(value);
243
- } else {
244
- this.headers[name] = value;
245
- }
246
- }
247
- delete(name) {
248
- delete this.headers[name];
249
- }
250
- get(name) {
251
- const value = this.headers[name];
252
- if (typeof value !== 'undefined') return this.merge(value);
253
- return null;
254
- }
255
- has(name) {
256
- return typeof this.headers[name] !== 'undefined';
257
- }
258
- set(name, value) {
259
- this.headers[name] = value;
260
- }
261
- forEach(callbackfn, thisArg) {
262
- for (const [name, value] of this.entries()){
263
- callbackfn.call(thisArg, value, name, this);
264
- }
265
- }
266
- *entries() {
267
- for (const key of Object.keys(this.headers)){
268
- const name = key.toLowerCase();
269
- // We assert here that this is a string because we got it from the
270
- // Object.keys() call above.
271
- const value = this.get(name);
272
- yield [
273
- name,
274
- value
275
- ];
276
- }
277
- }
278
- *keys() {
279
- for (const key of Object.keys(this.headers)){
280
- const name = key.toLowerCase();
281
- yield name;
282
- }
283
- }
284
- *values() {
285
- for (const key of Object.keys(this.headers)){
286
- // We assert here that this is a string because we got it from the
287
- // Object.keys() call above.
288
- const value = this.get(key);
289
- yield value;
290
- }
291
- }
292
- [Symbol.iterator]() {
293
- return this.entries();
294
- }
295
- }
296
-
297
-
298
- } (headers));
299
- return headers;
300
- }
301
-
302
- export { requireHeaders as __require };
303
- //# sourceMappingURL=headers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"headers.js","sources":["../../../../../../../../node_modules/next/dist/server/web/spec-extension/adapters/headers.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n HeadersAdapter: null,\n ReadonlyHeadersError: 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 HeadersAdapter: function() {\n return HeadersAdapter;\n },\n ReadonlyHeadersError: function() {\n return ReadonlyHeadersError;\n }\n});\nconst _reflect = require(\"./reflect\");\nclass ReadonlyHeadersError extends Error {\n constructor(){\n super('Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers');\n Object.defineProperty(this, \"__NEXT_ERROR_CODE\", {\n value: \"E1176\",\n enumerable: false,\n configurable: true\n });\n }\n static callable() {\n throw new ReadonlyHeadersError();\n }\n}\n/**\n * Builds the read methods for a sealed view that exposes all of `target`.\n */ function createPassThroughMethods(target, sealed) {\n return {\n get: target.get.bind(target),\n has: target.has.bind(target),\n getSetCookie: target.getSetCookie.bind(target),\n keys: target.keys.bind(target),\n values: target.values.bind(target),\n entries: target.entries.bind(target),\n [Symbol.iterator]: target[Symbol.iterator].bind(target),\n // The native method passes the unsealed target as the callback's `parent`\n // argument. That is a mutable handle on the underlying headers. Pass the\n // sealed view instead.\n forEach (callbackfn, thisArg) {\n for (const [name, value] of target.entries()){\n callbackfn.call(thisArg, value, name, sealed);\n }\n }\n };\n}\n/**\n * Builds the read methods for a sealed view that omits the header names matched\n * by `isHidden`.\n */ function createHidingMethods(target, sealed, isHidden) {\n function* entries() {\n for (const entry of target.entries()){\n if (!isHidden(entry[0])) {\n yield entry;\n }\n }\n }\n return {\n entries,\n [Symbol.iterator]: entries,\n get: (name)=>isHidden(name) ? null : target.get(name),\n has: (name)=>isHidden(name) ? false : target.has(name),\n getSetCookie: ()=>isHidden('set-cookie') ? [] : target.getSetCookie(),\n *keys () {\n for (const name of target.keys()){\n if (!isHidden(name)) {\n yield name;\n }\n }\n },\n *values () {\n for (const [, value] of entries()){\n yield value;\n }\n },\n // The native method passes the unsealed target as the callback's `parent`\n // argument. That is a mutable handle on the underlying headers. Pass the\n // sealed view instead.\n forEach (callbackfn, thisArg) {\n for (const [name, value] of entries()){\n callbackfn.call(thisArg, value, name, sealed);\n }\n }\n };\n}\nclass HeadersAdapter extends Headers {\n constructor(headers){\n // We've already overridden the methods that would be called, so we're just\n // calling the super constructor to ensure that the instanceof check works.\n super();\n this.headers = new Proxy(headers, {\n get (target, prop, receiver) {\n // Because this is just an object, we expect that all \"get\" operations\n // are for properties. If it's a \"get\" for a symbol, we'll just return\n // the symbol.\n if (typeof prop === 'symbol') {\n return _reflect.ReflectAdapter.get(target, prop, receiver);\n }\n const lowercased = prop.toLowerCase();\n // Let's find the original casing of the key. This assumes that there is\n // no mixed case keys (e.g. \"Content-Type\" and \"content-type\") in the\n // headers object.\n const original = Object.keys(headers).find((o)=>o.toLowerCase() === lowercased);\n // If the original casing doesn't exist, return undefined.\n if (typeof original === 'undefined') return;\n // If the original casing exists, return the value.\n return _reflect.ReflectAdapter.get(target, original, receiver);\n },\n set (target, prop, value, receiver) {\n if (typeof prop === 'symbol') {\n return _reflect.ReflectAdapter.set(target, prop, value, receiver);\n }\n const lowercased = prop.toLowerCase();\n // Let's find the original casing of the key. This assumes that there is\n // no mixed case keys (e.g. \"Content-Type\" and \"content-type\") in the\n // headers object.\n const original = Object.keys(headers).find((o)=>o.toLowerCase() === lowercased);\n // If the original casing doesn't exist, use the prop as the key.\n return _reflect.ReflectAdapter.set(target, original ?? prop, value, receiver);\n },\n has (target, prop) {\n if (typeof prop === 'symbol') return _reflect.ReflectAdapter.has(target, prop);\n const lowercased = prop.toLowerCase();\n // Let's find the original casing of the key. This assumes that there is\n // no mixed case keys (e.g. \"Content-Type\" and \"content-type\") in the\n // headers object.\n const original = Object.keys(headers).find((o)=>o.toLowerCase() === lowercased);\n // If the original casing doesn't exist, return false.\n if (typeof original === 'undefined') return false;\n // If the original casing exists, return true.\n return _reflect.ReflectAdapter.has(target, original);\n },\n deleteProperty (target, prop) {\n if (typeof prop === 'symbol') return _reflect.ReflectAdapter.deleteProperty(target, prop);\n const lowercased = prop.toLowerCase();\n // Let's find the original casing of the key. This assumes that there is\n // no mixed case keys (e.g. \"Content-Type\" and \"content-type\") in the\n // headers object.\n const original = Object.keys(headers).find((o)=>o.toLowerCase() === lowercased);\n // If the original casing doesn't exist, return true.\n if (typeof original === 'undefined') return true;\n // If the original casing exists, delete the property.\n return _reflect.ReflectAdapter.deleteProperty(target, original);\n }\n });\n }\n /**\n * Seals a Headers instance to prevent modification by throwing an error when\n * any mutating method is called.\n *\n * The sealed view stays live. Later writes to `headers` remain visible\n * through it.\n *\n * `hidden` omits the given header names from every read operation (`get`,\n * `has`, `getSetCookie`, `forEach`, and iteration). The names must be\n * lowercase. The underlying headers are neither copied nor mutated, so hidden\n * headers remain available to the framework.\n */ static seal(headers, hidden) {\n const isHidden = hidden && hidden.size > 0 ? (name)=>hidden.has(name.toLowerCase()) : null;\n // The methods are built once per sealed view and reused, so repeated access\n // returns the same function instead of a fresh closure. They are assigned\n // after the proxy exists because `forEach` hands the proxy to its callback.\n // Creating the proxy runs no trap, so nothing can read them before then.\n let methods;\n const sealed = new Proxy(headers, {\n get (target, prop, receiver) {\n switch(prop){\n case 'append':\n case 'delete':\n case 'set':\n return ReadonlyHeadersError.callable;\n case Symbol.iterator:\n return methods[Symbol.iterator];\n case 'get':\n case 'has':\n case 'getSetCookie':\n case 'keys':\n case 'values':\n case 'entries':\n case 'forEach':\n return methods[prop];\n default:\n return _reflect.ReflectAdapter.get(target, prop, receiver);\n }\n }\n });\n methods = isHidden ? createHidingMethods(headers, sealed, isHidden) : createPassThroughMethods(headers, sealed);\n return sealed;\n }\n /**\n * @param headers\n * @returns A fresh object identity backed by the original value\n */ static fresh(headers) {\n return new Proxy(headers, {\n get (target, prop, receiver) {\n return _reflect.ReflectAdapter.get(target, prop, receiver);\n }\n });\n }\n /**\n * Merges a header value into a string. This stores multiple values as an\n * array, so we need to merge them into a string.\n *\n * @param value a header value\n * @returns a merged header value (a string)\n */ merge(value) {\n if (Array.isArray(value)) return value.join(', ');\n return value;\n }\n /**\n * Creates a Headers instance from a plain object or a Headers instance.\n *\n * @param headers a plain object or a Headers instance\n * @returns a headers instance\n */ static from(headers) {\n if (headers instanceof Headers) return headers;\n return new HeadersAdapter(headers);\n }\n append(name, value) {\n const existing = this.headers[name];\n if (typeof existing === 'string') {\n this.headers[name] = [\n existing,\n value\n ];\n } else if (Array.isArray(existing)) {\n existing.push(value);\n } else {\n this.headers[name] = value;\n }\n }\n delete(name) {\n delete this.headers[name];\n }\n get(name) {\n const value = this.headers[name];\n if (typeof value !== 'undefined') return this.merge(value);\n return null;\n }\n has(name) {\n return typeof this.headers[name] !== 'undefined';\n }\n set(name, value) {\n this.headers[name] = value;\n }\n forEach(callbackfn, thisArg) {\n for (const [name, value] of this.entries()){\n callbackfn.call(thisArg, value, name, this);\n }\n }\n *entries() {\n for (const key of Object.keys(this.headers)){\n const name = key.toLowerCase();\n // We assert here that this is a string because we got it from the\n // Object.keys() call above.\n const value = this.get(name);\n yield [\n name,\n value\n ];\n }\n }\n *keys() {\n for (const key of Object.keys(this.headers)){\n const name = key.toLowerCase();\n yield name;\n }\n }\n *values() {\n for (const key of Object.keys(this.headers)){\n // We assert here that this is a string because we got it from the\n // Object.keys() call above.\n const value = this.get(key);\n yield value;\n }\n }\n [Symbol.iterator]() {\n return this.entries();\n }\n}\n\n//# sourceMappingURL=headers.js.map"],"names":["exports","require$$0"],"mappings":";;;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SA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AAU,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC;AACvD,UAAA;AACA,MAAA;MACI,CAAC,OAAO,GAAG;AACf,UAAQ,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACpD,cAAY,MAAM,IAAI,GAAG,GAAG,CAAC,WAAW,EAAE;AAC1C;AACA;cACY,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;AACxC,cAAY,MAAM;AAClB,kBAAgB,IAAI;kBACJ;eACH;AACb,UAAA;AACA,MAAA;MACI,CAAC,IAAI,GAAG;AACZ,UAAQ,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACpD,cAAY,MAAM,IAAI,GAAG,GAAG,CAAC,WAAW,EAAE;AAC1C,cAAY,MAAM,IAAI;AACtB,UAAA;AACA,MAAA;MACI,CAAC,MAAM,GAAG;AACd,UAAQ,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACpD;AACA;cACY,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;AACvC,cAAY,MAAM,KAAK;AACvB,UAAA;AACA,MAAA;AACA,MAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG;AACxB,UAAQ,OAAO,IAAI,CAAC,OAAO,EAAE;AAC7B,MAAA;AACA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
@@ -1,43 +0,0 @@
1
- import { __exports as reflect } from '../../../../../../../_virtual/reflect.js';
2
-
3
- var hasRequiredReflect;
4
-
5
- function requireReflect () {
6
- if (hasRequiredReflect) return reflect;
7
- hasRequiredReflect = 1;
8
- (function (exports$1) {
9
- Object.defineProperty(exports$1, "__esModule", {
10
- value: true
11
- });
12
- Object.defineProperty(exports$1, "ReflectAdapter", {
13
- enumerable: true,
14
- get: function() {
15
- return ReflectAdapter;
16
- }
17
- });
18
- class ReflectAdapter {
19
- static get(target, prop, receiver) {
20
- const value = Reflect.get(target, prop, receiver);
21
- if (typeof value === 'function') {
22
- return value.bind(target);
23
- }
24
- return value;
25
- }
26
- static set(target, prop, value, receiver) {
27
- return Reflect.set(target, prop, value, receiver);
28
- }
29
- static has(target, prop) {
30
- return Reflect.has(target, prop);
31
- }
32
- static deleteProperty(target, prop) {
33
- return Reflect.deleteProperty(target, prop);
34
- }
35
- }
36
-
37
-
38
- } (reflect));
39
- return reflect;
40
- }
41
-
42
- export { requireReflect as __require };
43
- //# sourceMappingURL=reflect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reflect.js","sources":["../../../../../../../../node_modules/next/dist/server/web/spec-extension/adapters/reflect.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"ReflectAdapter\", {\n enumerable: true,\n get: function() {\n return ReflectAdapter;\n }\n});\nclass ReflectAdapter {\n static get(target, prop, receiver) {\n const value = Reflect.get(target, prop, receiver);\n if (typeof value === 'function') {\n return value.bind(target);\n }\n return value;\n }\n static set(target, prop, value, receiver) {\n return Reflect.set(target, prop, value, receiver);\n }\n static has(target, prop) {\n return Reflect.has(target, prop);\n }\n static deleteProperty(target, prop) {\n return Reflect.deleteProperty(target, prop);\n }\n}\n\n//# sourceMappingURL=reflect.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,gBAAgB,EAAE;MAC7C,UAAU,EAAE,IAAI;MAChB,GAAG,EAAE,WAAW;AACpB,UAAQ,OAAO,cAAc;AAC7B,MAAA;AACA,GAAC,CAAC;AACF,EAAA,MAAM,cAAc,CAAC;MACjB,OAAO,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;AACvC,UAAQ,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC;AACzD,UAAQ,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE;AACzC,cAAY,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;AACrC,UAAA;AACA,UAAQ,OAAO,KAAK;AACpB,MAAA;MACI,OAAO,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE;AAC9C,UAAQ,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC;AACzD,MAAA;AACA,MAAI,OAAO,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE;UACrB,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC;AACxC,MAAA;AACA,MAAI,OAAO,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE;UAChC,OAAO,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC;AACnD,MAAA;AACA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
@@ -1,233 +0,0 @@
1
- import { __exports as requestCookies } from '../../../../../../../_virtual/request-cookies.js';
2
- import { __require as requireCookies } from '../cookies.js';
3
- import { __require as requireReflect } from './reflect.js';
4
- import { __require as requireWorkAsyncStorage_external } from '../../../app-render/work-async-storage.external.js';
5
- import { __require as requireActionRevalidationKind } from '../../../../shared/lib/action-revalidation-kind.js';
6
-
7
- var hasRequiredRequestCookies;
8
-
9
- function requireRequestCookies () {
10
- if (hasRequiredRequestCookies) return requestCookies;
11
- hasRequiredRequestCookies = 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
- MutableRequestCookiesAdapter: function() {
24
- return MutableRequestCookiesAdapter;
25
- },
26
- ReadonlyRequestCookiesError: function() {
27
- return ReadonlyRequestCookiesError;
28
- },
29
- RequestCookiesAdapter: function() {
30
- return RequestCookiesAdapter;
31
- },
32
- appendMutableCookies: function() {
33
- return appendMutableCookies;
34
- },
35
- areCookiesMutableInCurrentPhase: function() {
36
- return areCookiesMutableInCurrentPhase;
37
- },
38
- createCookiesWithMutableAccessCheck: function() {
39
- return createCookiesWithMutableAccessCheck;
40
- },
41
- getModifiedCookieValues: function() {
42
- return getModifiedCookieValues;
43
- },
44
- responseCookiesToRequestCookies: function() {
45
- return responseCookiesToRequestCookies;
46
- }
47
- });
48
- const _cookies = requireCookies();
49
- const _reflect = requireReflect();
50
- const _workasyncstorageexternal = requireWorkAsyncStorage_external();
51
- const _actionrevalidationkind = requireActionRevalidationKind();
52
- class ReadonlyRequestCookiesError extends Error {
53
- constructor(){
54
- super('Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options');
55
- Object.defineProperty(this, "__NEXT_ERROR_CODE", {
56
- value: "E1180",
57
- enumerable: false,
58
- configurable: true
59
- });
60
- }
61
- static callable() {
62
- throw new ReadonlyRequestCookiesError();
63
- }
64
- }
65
- class RequestCookiesAdapter {
66
- static seal(cookies) {
67
- return new Proxy(cookies, {
68
- get (target, prop, receiver) {
69
- switch(prop){
70
- case 'clear':
71
- case 'delete':
72
- case 'set':
73
- return ReadonlyRequestCookiesError.callable;
74
- default:
75
- return _reflect.ReflectAdapter.get(target, prop, receiver);
76
- }
77
- }
78
- });
79
- }
80
- /**
81
- * @param cookies
82
- * @returns A fresh object identity backed by the original value
83
- */ static fresh(cookies) {
84
- return new Proxy(cookies, {
85
- get (target, prop, receiver) {
86
- return _reflect.ReflectAdapter.get(target, prop, receiver);
87
- }
88
- });
89
- }
90
- }
91
- const SYMBOL_MODIFY_COOKIE_VALUES = Symbol.for('next.mutated.cookies');
92
- function getModifiedCookieValues(cookies) {
93
- const modified = cookies[SYMBOL_MODIFY_COOKIE_VALUES];
94
- if (!modified || !Array.isArray(modified) || modified.length === 0) {
95
- return [];
96
- }
97
- return modified;
98
- }
99
- function appendMutableCookies(headers, mutableCookies) {
100
- const modifiedCookieValues = getModifiedCookieValues(mutableCookies);
101
- if (modifiedCookieValues.length === 0) {
102
- return false;
103
- }
104
- // Return a new response that extends the response with
105
- // the modified cookies as fallbacks. `res` cookies
106
- // will still take precedence.
107
- const resCookies = new _cookies.ResponseCookies(headers);
108
- const returnedCookies = resCookies.getAll();
109
- // Set the modified cookies as fallbacks.
110
- for (const cookie of modifiedCookieValues){
111
- resCookies.set(cookie);
112
- }
113
- // Set the original cookies as the final values.
114
- for (const cookie of returnedCookies){
115
- resCookies.set(cookie);
116
- }
117
- return true;
118
- }
119
- class MutableRequestCookiesAdapter {
120
- static wrap(cookies, onUpdateCookies) {
121
- const responseCookies = new _cookies.ResponseCookies(new Headers());
122
- for (const cookie of cookies.getAll()){
123
- responseCookies.set(cookie);
124
- }
125
- let modifiedValues = [];
126
- const modifiedCookies = new Set();
127
- const updateResponseCookies = ()=>{
128
- // TODO-APP: change method of getting workStore
129
- const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
130
- if (workStore) {
131
- workStore.pathWasRevalidated = _actionrevalidationkind.ActionDidRevalidateStaticAndDynamic;
132
- }
133
- const allCookies = responseCookies.getAll();
134
- modifiedValues = allCookies.filter((c)=>modifiedCookies.has(c.name));
135
- if (onUpdateCookies) {
136
- const serializedCookies = [];
137
- for (const cookie of modifiedValues){
138
- const tempCookies = new _cookies.ResponseCookies(new Headers());
139
- tempCookies.set(cookie);
140
- serializedCookies.push(tempCookies.toString());
141
- }
142
- onUpdateCookies(serializedCookies);
143
- }
144
- };
145
- const wrappedCookies = new Proxy(responseCookies, {
146
- get (target, prop, receiver) {
147
- switch(prop){
148
- // A special symbol to get the modified cookie values
149
- case SYMBOL_MODIFY_COOKIE_VALUES:
150
- return modifiedValues;
151
- // TODO: Throw error if trying to set a cookie after the response
152
- // headers have been set.
153
- case 'delete':
154
- return function(...args) {
155
- modifiedCookies.add(typeof args[0] === 'string' ? args[0] : args[0].name);
156
- try {
157
- target.delete(...args);
158
- return wrappedCookies;
159
- } finally{
160
- updateResponseCookies();
161
- }
162
- };
163
- case 'set':
164
- return function(...args) {
165
- modifiedCookies.add(typeof args[0] === 'string' ? args[0] : args[0].name);
166
- try {
167
- target.set(...args);
168
- return wrappedCookies;
169
- } finally{
170
- updateResponseCookies();
171
- }
172
- };
173
- default:
174
- return _reflect.ReflectAdapter.get(target, prop, receiver);
175
- }
176
- }
177
- });
178
- return wrappedCookies;
179
- }
180
- }
181
- function createCookiesWithMutableAccessCheck(requestStore) {
182
- const wrappedCookies = new Proxy(requestStore.mutableCookies, {
183
- get (target, prop, receiver) {
184
- switch(prop){
185
- case 'delete':
186
- return function(...args) {
187
- ensureCookiesAreStillMutable(requestStore);
188
- target.delete(...args);
189
- return wrappedCookies;
190
- };
191
- case 'set':
192
- return function(...args) {
193
- ensureCookiesAreStillMutable(requestStore);
194
- target.set(...args);
195
- return wrappedCookies;
196
- };
197
- default:
198
- return _reflect.ReflectAdapter.get(target, prop, receiver);
199
- }
200
- }
201
- });
202
- return wrappedCookies;
203
- }
204
- function areCookiesMutableInCurrentPhase(requestStore) {
205
- return requestStore.phase === 'action';
206
- }
207
- /** Ensure that cookies() starts throwing on mutation
208
- * if we changed phases and can no longer mutate.
209
- *
210
- * This can happen when going:
211
- * 'render' -> 'after'
212
- * 'action' -> 'render'
213
- * */ function ensureCookiesAreStillMutable(requestStore, _callingExpression) {
214
- if (!areCookiesMutableInCurrentPhase(requestStore)) {
215
- // TODO: maybe we can give a more precise error message based on callingExpression?
216
- throw new ReadonlyRequestCookiesError();
217
- }
218
- }
219
- function responseCookiesToRequestCookies(responseCookies) {
220
- const requestCookies = new _cookies.RequestCookies(new Headers());
221
- for (const cookie of responseCookies.getAll()){
222
- requestCookies.set(cookie);
223
- }
224
- return requestCookies;
225
- }
226
-
227
-
228
- } (requestCookies));
229
- return requestCookies;
230
- }
231
-
232
- export { requireRequestCookies as __require };
233
- //# sourceMappingURL=request-cookies.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"request-cookies.js","sources":["../../../../../../../../node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n MutableRequestCookiesAdapter: null,\n ReadonlyRequestCookiesError: null,\n RequestCookiesAdapter: null,\n appendMutableCookies: null,\n areCookiesMutableInCurrentPhase: null,\n createCookiesWithMutableAccessCheck: null,\n getModifiedCookieValues: null,\n responseCookiesToRequestCookies: 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 MutableRequestCookiesAdapter: function() {\n return MutableRequestCookiesAdapter;\n },\n ReadonlyRequestCookiesError: function() {\n return ReadonlyRequestCookiesError;\n },\n RequestCookiesAdapter: function() {\n return RequestCookiesAdapter;\n },\n appendMutableCookies: function() {\n return appendMutableCookies;\n },\n areCookiesMutableInCurrentPhase: function() {\n return areCookiesMutableInCurrentPhase;\n },\n createCookiesWithMutableAccessCheck: function() {\n return createCookiesWithMutableAccessCheck;\n },\n getModifiedCookieValues: function() {\n return getModifiedCookieValues;\n },\n responseCookiesToRequestCookies: function() {\n return responseCookiesToRequestCookies;\n }\n});\nconst _cookies = require(\"../cookies\");\nconst _reflect = require(\"./reflect\");\nconst _workasyncstorageexternal = require(\"../../../app-render/work-async-storage.external\");\nconst _actionrevalidationkind = require(\"../../../../shared/lib/action-revalidation-kind\");\nclass ReadonlyRequestCookiesError extends Error {\n constructor(){\n super('Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options');\n Object.defineProperty(this, \"__NEXT_ERROR_CODE\", {\n value: \"E1180\",\n enumerable: false,\n configurable: true\n });\n }\n static callable() {\n throw new ReadonlyRequestCookiesError();\n }\n}\nclass RequestCookiesAdapter {\n static seal(cookies) {\n return new Proxy(cookies, {\n get (target, prop, receiver) {\n switch(prop){\n case 'clear':\n case 'delete':\n case 'set':\n return ReadonlyRequestCookiesError.callable;\n default:\n return _reflect.ReflectAdapter.get(target, prop, receiver);\n }\n }\n });\n }\n /**\n * @param cookies\n * @returns A fresh object identity backed by the original value\n */ static fresh(cookies) {\n return new Proxy(cookies, {\n get (target, prop, receiver) {\n return _reflect.ReflectAdapter.get(target, prop, receiver);\n }\n });\n }\n}\nconst SYMBOL_MODIFY_COOKIE_VALUES = Symbol.for('next.mutated.cookies');\nfunction getModifiedCookieValues(cookies) {\n const modified = cookies[SYMBOL_MODIFY_COOKIE_VALUES];\n if (!modified || !Array.isArray(modified) || modified.length === 0) {\n return [];\n }\n return modified;\n}\nfunction appendMutableCookies(headers, mutableCookies) {\n const modifiedCookieValues = getModifiedCookieValues(mutableCookies);\n if (modifiedCookieValues.length === 0) {\n return false;\n }\n // Return a new response that extends the response with\n // the modified cookies as fallbacks. `res` cookies\n // will still take precedence.\n const resCookies = new _cookies.ResponseCookies(headers);\n const returnedCookies = resCookies.getAll();\n // Set the modified cookies as fallbacks.\n for (const cookie of modifiedCookieValues){\n resCookies.set(cookie);\n }\n // Set the original cookies as the final values.\n for (const cookie of returnedCookies){\n resCookies.set(cookie);\n }\n return true;\n}\nclass MutableRequestCookiesAdapter {\n static wrap(cookies, onUpdateCookies) {\n const responseCookies = new _cookies.ResponseCookies(new Headers());\n for (const cookie of cookies.getAll()){\n responseCookies.set(cookie);\n }\n let modifiedValues = [];\n const modifiedCookies = new Set();\n const updateResponseCookies = ()=>{\n // TODO-APP: change method of getting workStore\n const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();\n if (workStore) {\n workStore.pathWasRevalidated = _actionrevalidationkind.ActionDidRevalidateStaticAndDynamic;\n }\n const allCookies = responseCookies.getAll();\n modifiedValues = allCookies.filter((c)=>modifiedCookies.has(c.name));\n if (onUpdateCookies) {\n const serializedCookies = [];\n for (const cookie of modifiedValues){\n const tempCookies = new _cookies.ResponseCookies(new Headers());\n tempCookies.set(cookie);\n serializedCookies.push(tempCookies.toString());\n }\n onUpdateCookies(serializedCookies);\n }\n };\n const wrappedCookies = new Proxy(responseCookies, {\n get (target, prop, receiver) {\n switch(prop){\n // A special symbol to get the modified cookie values\n case SYMBOL_MODIFY_COOKIE_VALUES:\n return modifiedValues;\n // TODO: Throw error if trying to set a cookie after the response\n // headers have been set.\n case 'delete':\n return function(...args) {\n modifiedCookies.add(typeof args[0] === 'string' ? args[0] : args[0].name);\n try {\n target.delete(...args);\n return wrappedCookies;\n } finally{\n updateResponseCookies();\n }\n };\n case 'set':\n return function(...args) {\n modifiedCookies.add(typeof args[0] === 'string' ? args[0] : args[0].name);\n try {\n target.set(...args);\n return wrappedCookies;\n } finally{\n updateResponseCookies();\n }\n };\n default:\n return _reflect.ReflectAdapter.get(target, prop, receiver);\n }\n }\n });\n return wrappedCookies;\n }\n}\nfunction createCookiesWithMutableAccessCheck(requestStore) {\n const wrappedCookies = new Proxy(requestStore.mutableCookies, {\n get (target, prop, receiver) {\n switch(prop){\n case 'delete':\n return function(...args) {\n ensureCookiesAreStillMutable(requestStore, 'cookies().delete');\n target.delete(...args);\n return wrappedCookies;\n };\n case 'set':\n return function(...args) {\n ensureCookiesAreStillMutable(requestStore, 'cookies().set');\n target.set(...args);\n return wrappedCookies;\n };\n default:\n return _reflect.ReflectAdapter.get(target, prop, receiver);\n }\n }\n });\n return wrappedCookies;\n}\nfunction areCookiesMutableInCurrentPhase(requestStore) {\n return requestStore.phase === 'action';\n}\n/** Ensure that cookies() starts throwing on mutation\n * if we changed phases and can no longer mutate.\n *\n * This can happen when going:\n * 'render' -> 'after'\n * 'action' -> 'render'\n * */ function ensureCookiesAreStillMutable(requestStore, _callingExpression) {\n if (!areCookiesMutableInCurrentPhase(requestStore)) {\n // TODO: maybe we can give a more precise error message based on callingExpression?\n throw new ReadonlyRequestCookiesError();\n }\n}\nfunction responseCookiesToRequestCookies(responseCookies) {\n const requestCookies = new _cookies.RequestCookies(new Headers());\n for (const cookie of responseCookies.getAll()){\n requestCookies.set(cookie);\n }\n return requestCookies;\n}\n\n//# sourceMappingURL=request-cookies.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;AAWF,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,4BAA4B,EAAE,WAAW;AAC7C,UAAQ,OAAO,4BAA4B;MAC3C,CAAK;MACD,2BAA2B,EAAE,WAAW;AAC5C,UAAQ,OAAO,2BAA2B;MAC1C,CAAK;MACD,qBAAqB,EAAE,WAAW;AACtC,UAAQ,OAAO,qBAAqB;MACpC,CAAK;MACD,oBAAoB,EAAE,WAAW;AACrC,UAAQ,OAAO,oBAAoB;MACnC,CAAK;MACD,+BAA+B,EAAE,WAAW;AAChD,UAAQ,OAAO,+BAA+B;MAC9C,CAAK;MACD,mCAAmC,EAAE,WAAW;AACpD,UAAQ,OAAO,mCAAmC;MAClD,CAAK;MACD,uBAAuB,EAAE,WAAW;AACxC,UAAQ,OAAO,uBAAuB;MACtC,CAAK;MACD,+BAA+B,EAAE,WAAW;AAChD,UAAQ,OAAO,+BAA+B;AAC9C,MAAA;AACA,GAAC,CAAC;EACF,MAAM,QAAQ,GAAGC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