boreal-ui 0.0.73 → 0.0.75

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 (428) hide show
  1. package/dist/core/{Avatar-Ct2kXkNR.js → Avatar-CHatDRhp.js} +2 -2
  2. package/dist/core/{Avatar-Ct2kXkNR.js.map → Avatar-CHatDRhp.js.map} +1 -1
  3. package/dist/core/Avatar.js +1 -1
  4. package/dist/core/{Badge-BOd5dF4l.js → Badge-DwWiN50f.js} +2 -2
  5. package/dist/core/{Badge-BOd5dF4l.js.map → Badge-DwWiN50f.js.map} +1 -1
  6. package/dist/core/Badge.js +1 -1
  7. package/dist/core/{Breadcrumbs-C1Z59ffV.js → Breadcrumbs-kbOyaea6.js} +3 -3
  8. package/dist/core/{Breadcrumbs-C1Z59ffV.js.map → Breadcrumbs-kbOyaea6.js.map} +1 -1
  9. package/dist/core/Breadcrumbs.js +1 -1
  10. package/dist/core/{Button-IALg9VKr.js → Button-CneoIlVV.js} +2 -2
  11. package/dist/core/{Button-IALg9VKr.js.map → Button-CneoIlVV.js.map} +1 -1
  12. package/dist/core/Button.js +1 -1
  13. package/dist/core/{Card-dazG4EK1.js → Card-CZY1qzwZ.js} +4 -4
  14. package/dist/core/{Card-dazG4EK1.js.map → Card-CZY1qzwZ.js.map} +1 -1
  15. package/dist/core/Card.js +1 -1
  16. package/dist/core/CheckBox.js +1 -1
  17. package/dist/core/{Checkbox-DmMDTc5Z.js → Checkbox-BuFcBJb9.js} +2 -2
  18. package/dist/core/{Checkbox-DmMDTc5Z.js.map → Checkbox-BuFcBJb9.js.map} +1 -1
  19. package/dist/core/{Chip-DSBIjvJZ.js → Chip-DoRSxZKk.js} +3 -3
  20. package/dist/core/{Chip-DSBIjvJZ.js.map → Chip-DoRSxZKk.js.map} +1 -1
  21. package/dist/core/Chip.js +1 -1
  22. package/dist/core/{CommandPalette-BBjIib6T.js → CommandPalette-0uVG4iR2.js} +3 -3
  23. package/dist/core/{CommandPalette-BBjIib6T.js.map → CommandPalette-0uVG4iR2.js.map} +1 -1
  24. package/dist/core/CommandPalette.js +1 -1
  25. package/dist/core/{DateTimePicker-u2p4sBbR.js → DateTimePicker-wO_P5Ab1.js} +2 -2
  26. package/dist/core/{DateTimePicker-u2p4sBbR.js.map → DateTimePicker-wO_P5Ab1.js.map} +1 -1
  27. package/dist/core/DateTimePicker.js +1 -1
  28. package/dist/core/{Dropdown-BGJ8mGhg.js → Dropdown-BEPGhf-i.js} +3 -3
  29. package/dist/core/{Dropdown-BGJ8mGhg.js.map → Dropdown-BEPGhf-i.js.map} +1 -1
  30. package/dist/core/Dropdown.js +1 -1
  31. package/dist/core/{EmptyState-CCSPIDo3.js → EmptyState-CM7nlKER.js} +3 -3
  32. package/dist/core/{EmptyState-CCSPIDo3.js.map → EmptyState-CM7nlKER.js.map} +1 -1
  33. package/dist/core/EmptyState.js +1 -1
  34. package/dist/core/{FileUpload-BWjOciA3.js → FileUpload-CPZetlXM.js} +5 -5
  35. package/dist/core/{FileUpload-BWjOciA3.js.map → FileUpload-CPZetlXM.js.map} +1 -1
  36. package/dist/core/FileUpload.js +1 -1
  37. package/dist/core/{Footer-CkSzN_PI.js → Footer-Q_60pe6o.js} +5 -5
  38. package/dist/core/{Footer-CkSzN_PI.js.map → Footer-Q_60pe6o.js.map} +1 -1
  39. package/dist/core/Footer.js +1 -1
  40. package/dist/core/{IconButton-ChJJCB4O.js → IconButton-By8zuXrs.js} +2 -2
  41. package/dist/core/{IconButton-ChJJCB4O.js.map → IconButton-By8zuXrs.js.map} +1 -1
  42. package/dist/core/IconButton.js +1 -1
  43. package/dist/core/{MessagePopup-D6xuwdAv.js → MessagePopup-D6ljI_rQ.js} +3 -3
  44. package/dist/core/{MessagePopup-D6xuwdAv.js.map → MessagePopup-D6ljI_rQ.js.map} +1 -1
  45. package/dist/core/MessagePopup.js +1 -1
  46. package/dist/core/{MetricBox-BlkBoGCL.js → MetricBox-DTn2x1vz.js} +2 -2
  47. package/dist/core/{MetricBox-BlkBoGCL.js.map → MetricBox-DTn2x1vz.js.map} +1 -1
  48. package/dist/core/MetricBox.js +1 -1
  49. package/dist/core/{Modal-DhpY3Kt6.cjs → Modal-B9FXClBr.cjs} +4 -4
  50. package/dist/core/Modal-B9FXClBr.cjs.map +1 -0
  51. package/dist/core/{Modal-DVz_GNOL.js → Modal-CW8jt0lU.js} +5 -5
  52. package/dist/core/Modal-CW8jt0lU.js.map +1 -0
  53. package/dist/core/Modal.cjs.js +1 -1
  54. package/dist/core/Modal.js +1 -1
  55. package/dist/core/{NotificationCenter-MTRIDmMm.js → NotificationCenter-DA-WGPP9.js} +3 -3
  56. package/dist/core/{NotificationCenter-MTRIDmMm.js.map → NotificationCenter-DA-WGPP9.js.map} +1 -1
  57. package/dist/core/NotificationCenter.js +1 -1
  58. package/dist/core/{Pager-B2MEqAOV.js → Pager-B4hyIUdo.js} +4 -4
  59. package/dist/core/{Pager-B2MEqAOV.js.map → Pager-B4hyIUdo.js.map} +1 -1
  60. package/dist/core/Pager-wl7_umU4.cjs.map +1 -1
  61. package/dist/core/Pager.js +1 -1
  62. package/dist/core/{PopOver-lRqOHUJg.js → PopOver-DCuqGQ_j.js} +2 -2
  63. package/dist/core/{PopOver-lRqOHUJg.js.map → PopOver-DCuqGQ_j.js.map} +1 -1
  64. package/dist/core/PopOver.js +1 -1
  65. package/dist/core/{ProgressBar-pVPs5lsA.js → ProgressBar-BxzX6yn1.js} +2 -2
  66. package/dist/core/{ProgressBar-pVPs5lsA.js.map → ProgressBar-BxzX6yn1.js.map} +1 -1
  67. package/dist/core/ProgressBar.js +1 -1
  68. package/dist/core/{Select-CeyJGftD.js → Select-BXIz5BbU.js} +2 -2
  69. package/dist/core/{Select-CeyJGftD.js.map → Select-BXIz5BbU.js.map} +1 -1
  70. package/dist/core/Select.js +1 -1
  71. package/dist/core/{Sidebar-BWzuQw-r.js → Sidebar-Bi7elIRO.js} +2 -2
  72. package/dist/core/{Sidebar-BWzuQw-r.js.map → Sidebar-Bi7elIRO.js.map} +1 -1
  73. package/dist/core/Sidebar.js +1 -1
  74. package/dist/core/{Slider-Dxcryk5j.js → Slider-CW11kjMv.js} +2 -2
  75. package/dist/core/{Slider-Dxcryk5j.js.map → Slider-CW11kjMv.js.map} +1 -1
  76. package/dist/core/Slider.js +1 -1
  77. package/dist/core/{Stepper-SDJM-Jju.js → Stepper-CLfy0_gZ.js} +3 -3
  78. package/dist/core/{Stepper-SDJM-Jju.js.map → Stepper-CLfy0_gZ.js.map} +1 -1
  79. package/dist/core/Stepper.js +1 -1
  80. package/dist/core/{Tabs-B4HRqGuB.js → Tabs-DBqWn9j9.js} +2 -2
  81. package/dist/core/{Tabs-B4HRqGuB.js.map → Tabs-DBqWn9j9.js.map} +1 -1
  82. package/dist/core/Tabs.js +1 -1
  83. package/dist/core/{TagInput-CcuMIlmi.js → TagInput-YieWARAt.js} +4 -4
  84. package/dist/core/{TagInput-CcuMIlmi.js.map → TagInput-YieWARAt.js.map} +1 -1
  85. package/dist/core/TagInput.js +1 -1
  86. package/dist/core/{TextArea-Ufou1zw1.js → TextArea-CLLK5k18.js} +2 -2
  87. package/dist/core/{TextArea-Ufou1zw1.js.map → TextArea-CLLK5k18.js.map} +1 -1
  88. package/dist/core/TextArea.js +1 -1
  89. package/dist/core/{TextInput-BaiDGrKw.js → TextInput-Bc2YpcvM.js} +3 -3
  90. package/dist/core/{TextInput-BaiDGrKw.js.map → TextInput-Bc2YpcvM.js.map} +1 -1
  91. package/dist/core/TextInput.js +1 -1
  92. package/dist/core/{ThemeContext-nYSJ_G6L.js → ThemeContext-zE_shsx6.js} +3 -3
  93. package/dist/{next/ThemeContext-nYSJ_G6L.js.map → core/ThemeContext-zE_shsx6.js.map} +1 -1
  94. package/dist/core/ThemeProvider.js +3 -3
  95. package/dist/core/{Timeline-BRLd8boJ.js → Timeline-5mzFplzB.js} +2 -2
  96. package/dist/core/{Timeline-BRLd8boJ.js.map → Timeline-5mzFplzB.js.map} +1 -1
  97. package/dist/core/Timeline.js +1 -1
  98. package/dist/core/{Toggle-DL0Nhwgr.js → Toggle-DCK1KtP5.js} +2 -2
  99. package/dist/core/{Toggle-DL0Nhwgr.js.map → Toggle-DCK1KtP5.js.map} +1 -1
  100. package/dist/core/Toggle.js +1 -1
  101. package/dist/core/{Toolbar-fSghH1_-.js → Toolbar-DLgQqPBh.js} +3 -3
  102. package/dist/core/{Toolbar-fSghH1_-.js.map → Toolbar-DLgQqPBh.js.map} +1 -1
  103. package/dist/core/Toolbar.js +1 -1
  104. package/dist/core/{Tooltip-wKNLA3ua.js → Tooltip-Dua_3tqJ.js} +2 -2
  105. package/dist/core/{Tooltip-wKNLA3ua.js.map → Tooltip-Dua_3tqJ.js.map} +1 -1
  106. package/dist/core/Tooltip.js +1 -1
  107. package/dist/core/Typography-D0hPzK5Y.js.map +1 -1
  108. package/dist/core/Typography-DdTiWRgQ.cjs.map +1 -1
  109. package/dist/core/index.cjs.js +8481 -1
  110. package/dist/core/index.cjs.js.map +1 -1
  111. package/dist/core/index.js +8517 -37
  112. package/dist/core/index.js.map +1 -1
  113. package/dist/next/{Avatar-iZKOY9MH.cjs → Avatar-DL_juTQA.cjs} +3 -3
  114. package/dist/next/{Avatar-iZKOY9MH.cjs.map → Avatar-DL_juTQA.cjs.map} +1 -1
  115. package/dist/next/{Avatar-CiFxswSP.js → Avatar-nnjhILk-.js} +4 -4
  116. package/dist/next/{Avatar-CiFxswSP.js.map → Avatar-nnjhILk-.js.map} +1 -1
  117. package/dist/next/Avatar.cjs.js +1 -1
  118. package/dist/next/Avatar.js +1 -1
  119. package/dist/next/{Badge-WP2DFssv.js → Badge-uyqxj7ag.js} +2 -2
  120. package/dist/next/{Badge-WP2DFssv.js.map → Badge-uyqxj7ag.js.map} +1 -1
  121. package/dist/next/Badge.js +1 -1
  122. package/dist/next/{Breadcrumbs-CV5iM8BP.cjs → Breadcrumbs-CuvOmgFe.cjs} +3 -3
  123. package/dist/next/{Breadcrumbs-CV5iM8BP.cjs.map → Breadcrumbs-CuvOmgFe.cjs.map} +1 -1
  124. package/dist/next/{Breadcrumbs-B60a5DUy.js → Breadcrumbs-D0AmJB4U.js} +4 -4
  125. package/dist/next/{Breadcrumbs-B60a5DUy.js.map → Breadcrumbs-D0AmJB4U.js.map} +1 -1
  126. package/dist/next/Breadcrumbs.cjs.js +1 -1
  127. package/dist/next/Breadcrumbs.js +1 -1
  128. package/dist/next/{Button-DMCOgi4K.cjs → Button-BZmph-Qr.cjs} +2 -2
  129. package/dist/next/{Button-DMCOgi4K.cjs.map → Button-BZmph-Qr.cjs.map} +1 -1
  130. package/dist/next/{Button-BfgUzkgN.js → Button-DWpImTmr.js} +3 -3
  131. package/dist/next/{Button-BfgUzkgN.js.map → Button-DWpImTmr.js.map} +1 -1
  132. package/dist/next/Button.cjs.js +1 -1
  133. package/dist/next/Button.js +1 -1
  134. package/dist/next/{Card-CSFC7mpW.js → Card-DnZOsQLP.js} +5 -5
  135. package/dist/next/{Card-CSFC7mpW.js.map → Card-DnZOsQLP.js.map} +1 -1
  136. package/dist/next/{Card-0Pm8Vjjn.cjs → Card-oPTXIvsb.cjs} +4 -4
  137. package/dist/next/{Card-0Pm8Vjjn.cjs.map → Card-oPTXIvsb.cjs.map} +1 -1
  138. package/dist/next/Card.cjs.js +1 -1
  139. package/dist/next/Card.js +1 -1
  140. package/dist/next/CheckBox.js +1 -1
  141. package/dist/next/{Checkbox-BlWHxhjw.js → Checkbox-CRg5oEdB.js} +2 -2
  142. package/dist/next/{Checkbox-BlWHxhjw.js.map → Checkbox-CRg5oEdB.js.map} +1 -1
  143. package/dist/next/{Chip-CuaKFQku.js → Chip-Cg7khsSn.js} +3 -3
  144. package/dist/next/{Chip-CuaKFQku.js.map → Chip-Cg7khsSn.js.map} +1 -1
  145. package/dist/next/{Chip-CB1mcRA1.cjs → Chip-DpMTNARP.cjs} +2 -2
  146. package/dist/next/{Chip-CB1mcRA1.cjs.map → Chip-DpMTNARP.cjs.map} +1 -1
  147. package/dist/next/Chip.cjs.js +1 -1
  148. package/dist/next/Chip.js +1 -1
  149. package/dist/next/{CommandPalette-BQEJG5yN.cjs → CommandPalette-BvjlLE14.cjs} +2 -2
  150. package/dist/next/{CommandPalette-BQEJG5yN.cjs.map → CommandPalette-BvjlLE14.cjs.map} +1 -1
  151. package/dist/next/{CommandPalette-Cxx3Ey9J.js → CommandPalette-D6R9_gmo.js} +3 -3
  152. package/dist/next/{CommandPalette-Cxx3Ey9J.js.map → CommandPalette-D6R9_gmo.js.map} +1 -1
  153. package/dist/next/CommandPalette.cjs.js +1 -1
  154. package/dist/next/CommandPalette.js +1 -1
  155. package/dist/next/{DateTimePicker-CdPvr6Mc.js → DateTimePicker-DB2exnHd.js} +2 -2
  156. package/dist/next/{DateTimePicker-CdPvr6Mc.js.map → DateTimePicker-DB2exnHd.js.map} +1 -1
  157. package/dist/next/DateTimePicker.js +1 -1
  158. package/dist/next/{Dropdown-79ZIBUjB.js → Dropdown-B7PgWHlY.js} +3 -3
  159. package/dist/next/{Dropdown-79ZIBUjB.js.map → Dropdown-B7PgWHlY.js.map} +1 -1
  160. package/dist/next/{Dropdown-BfvCn_20.cjs → Dropdown-kQLhr7_M.cjs} +2 -2
  161. package/dist/next/{Dropdown-BfvCn_20.cjs.map → Dropdown-kQLhr7_M.cjs.map} +1 -1
  162. package/dist/next/Dropdown.cjs.js +1 -1
  163. package/dist/next/Dropdown.js +1 -1
  164. package/dist/next/{EmptyState-Dy1Xeyzp.cjs → EmptyState-BH1X81TH.cjs} +2 -2
  165. package/dist/next/{EmptyState-Dy1Xeyzp.cjs.map → EmptyState-BH1X81TH.cjs.map} +1 -1
  166. package/dist/next/{EmptyState-oXCSBosz.js → EmptyState-DCCDQWOQ.js} +3 -3
  167. package/dist/next/{EmptyState-oXCSBosz.js.map → EmptyState-DCCDQWOQ.js.map} +1 -1
  168. package/dist/next/EmptyState.cjs.js +1 -1
  169. package/dist/next/EmptyState.js +1 -1
  170. package/dist/next/{FileUpload-qiY8YpDz.js → FileUpload-BQW5ol7P.js} +5 -5
  171. package/dist/next/{FileUpload-qiY8YpDz.js.map → FileUpload-BQW5ol7P.js.map} +1 -1
  172. package/dist/next/{FileUpload-C1DVXFK7.cjs → FileUpload-C9Ke2cTs.cjs} +3 -3
  173. package/dist/next/{FileUpload-C1DVXFK7.cjs.map → FileUpload-C9Ke2cTs.cjs.map} +1 -1
  174. package/dist/next/FileUpload.cjs.js +1 -1
  175. package/dist/next/FileUpload.js +1 -1
  176. package/dist/next/{Footer-DIPBB0is.js → Footer-Dl_wQwsb.js} +7 -7
  177. package/dist/next/{Footer-DIPBB0is.js.map → Footer-Dl_wQwsb.js.map} +1 -1
  178. package/dist/next/{Footer-4L7pu4Gp.cjs → Footer-i9rgxATK.cjs} +4 -4
  179. package/dist/next/{Footer-4L7pu4Gp.cjs.map → Footer-i9rgxATK.cjs.map} +1 -1
  180. package/dist/next/Footer.cjs.js +1 -1
  181. package/dist/next/Footer.js +1 -1
  182. package/dist/next/{IconButton-C4OC99ig.cjs → IconButton-4ySBEhn1.cjs} +2 -2
  183. package/dist/next/{IconButton-C4OC99ig.cjs.map → IconButton-4ySBEhn1.cjs.map} +1 -1
  184. package/dist/next/{IconButton-CNiln4Qf.js → IconButton-BWw3WPaS.js} +3 -3
  185. package/dist/next/{IconButton-CNiln4Qf.js.map → IconButton-BWw3WPaS.js.map} +1 -1
  186. package/dist/next/IconButton.cjs.js +1 -1
  187. package/dist/next/IconButton.js +1 -1
  188. package/dist/next/{MessagePopup-BscnzqBa.js → MessagePopup-DIrdAeyg.js} +3 -3
  189. package/dist/next/{MessagePopup-BscnzqBa.js.map → MessagePopup-DIrdAeyg.js.map} +1 -1
  190. package/dist/next/{MessagePopup-lIFn7LZ2.cjs → MessagePopup-D_gZy6eH.cjs} +3 -3
  191. package/dist/next/{MessagePopup-lIFn7LZ2.cjs.map → MessagePopup-D_gZy6eH.cjs.map} +1 -1
  192. package/dist/next/MessagePopup.cjs.js +1 -1
  193. package/dist/next/MessagePopup.js +1 -1
  194. package/dist/next/{MetricBox-Br-_66aB.js → MetricBox-D9-RmZoy.js} +2 -2
  195. package/dist/next/{MetricBox-Br-_66aB.js.map → MetricBox-D9-RmZoy.js.map} +1 -1
  196. package/dist/next/MetricBox.js +1 -1
  197. package/dist/next/{Modal-Baxb-_FV.cjs → Modal-D7hNuMII.cjs} +5 -5
  198. package/dist/next/Modal-D7hNuMII.cjs.map +1 -0
  199. package/dist/next/{Modal-ClsOP_6R.js → Modal-Dre8TMtr.js} +5 -5
  200. package/dist/next/Modal-Dre8TMtr.js.map +1 -0
  201. package/dist/next/Modal.cjs.js +1 -1
  202. package/dist/next/Modal.js +1 -1
  203. package/dist/next/{NavBar-BXnGlk49.cjs → NavBar-d-Hx7gkg.cjs} +3 -3
  204. package/dist/next/{NavBar-BXnGlk49.cjs.map → NavBar-d-Hx7gkg.cjs.map} +1 -1
  205. package/dist/next/{NavBar-Bmf1C-io.js → NavBar-dpbPYT0w.js} +3 -3
  206. package/dist/next/{NavBar-Bmf1C-io.js.map → NavBar-dpbPYT0w.js.map} +1 -1
  207. package/dist/next/NavBar.cjs.js +1 -1
  208. package/dist/next/NavBar.js +1 -1
  209. package/dist/next/{NotificationCenter-BrXxvcLm.js → NotificationCenter-BrAzv2oD.js} +3 -3
  210. package/dist/next/{NotificationCenter-BrXxvcLm.js.map → NotificationCenter-BrAzv2oD.js.map} +1 -1
  211. package/dist/next/{NotificationCenter-XcbhUqkh.cjs → NotificationCenter-JIX-pouI.cjs} +3 -3
  212. package/dist/next/{NotificationCenter-XcbhUqkh.cjs.map → NotificationCenter-JIX-pouI.cjs.map} +1 -1
  213. package/dist/next/NotificationCenter.cjs.js +1 -1
  214. package/dist/next/NotificationCenter.js +1 -1
  215. package/dist/next/{Pager-Dq-KkMmi.js → Pager-DFKfUn1s.js} +4 -4
  216. package/dist/next/{Pager-Dq-KkMmi.js.map → Pager-DFKfUn1s.js.map} +1 -1
  217. package/dist/next/{Pager-DesOcELM.cjs → Pager-DcibmVu1.cjs} +3 -3
  218. package/dist/next/{Pager-DesOcELM.cjs.map → Pager-DcibmVu1.cjs.map} +1 -1
  219. package/dist/next/Pager.cjs.js +1 -1
  220. package/dist/next/Pager.js +1 -1
  221. package/dist/next/{PopOver-Dp_vC53_.js → PopOver-CUON_Abe.js} +2 -2
  222. package/dist/next/{PopOver-Dp_vC53_.js.map → PopOver-CUON_Abe.js.map} +1 -1
  223. package/dist/next/PopOver.js +1 -1
  224. package/dist/next/{ProgressBar-Bf_ZzYzI.js → ProgressBar-CMYDs8uL.js} +2 -2
  225. package/dist/next/{ProgressBar-Bf_ZzYzI.js.map → ProgressBar-CMYDs8uL.js.map} +1 -1
  226. package/dist/next/ProgressBar.js +1 -1
  227. package/dist/next/{Select-DPL__SwJ.js → Select-b8fO1q2K.js} +2 -2
  228. package/dist/next/{Select-DPL__SwJ.js.map → Select-b8fO1q2K.js.map} +1 -1
  229. package/dist/next/Select.js +1 -1
  230. package/dist/next/{Sidebar-CWjyCeQj.js → Sidebar-BwW51HwF.js} +4 -4
  231. package/dist/next/{Sidebar-CWjyCeQj.js.map → Sidebar-BwW51HwF.js.map} +1 -1
  232. package/dist/next/{Sidebar-BXmF-Nl2.cjs → Sidebar-U5BQKtKR.cjs} +3 -3
  233. package/dist/next/{Sidebar-BXmF-Nl2.cjs.map → Sidebar-U5BQKtKR.cjs.map} +1 -1
  234. package/dist/next/Sidebar.cjs.js +1 -1
  235. package/dist/next/Sidebar.js +1 -1
  236. package/dist/next/{Slider-BC9XlsEQ.js → Slider-DOGkUQYT.js} +2 -2
  237. package/dist/next/{Slider-BC9XlsEQ.js.map → Slider-DOGkUQYT.js.map} +1 -1
  238. package/dist/next/Slider.js +1 -1
  239. package/dist/next/{Stepper-P9DL0HZW.cjs → Stepper-C0cNzpY8.cjs} +2 -2
  240. package/dist/next/{Stepper-P9DL0HZW.cjs.map → Stepper-C0cNzpY8.cjs.map} +1 -1
  241. package/dist/next/{Stepper-CTd99d_F.js → Stepper-CSh2wccK.js} +3 -3
  242. package/dist/next/{Stepper-CTd99d_F.js.map → Stepper-CSh2wccK.js.map} +1 -1
  243. package/dist/next/Stepper.cjs.js +1 -1
  244. package/dist/next/Stepper.js +1 -1
  245. package/dist/next/{Tabs-tZjEVd-U.js → Tabs-Dors0bVs.js} +2 -2
  246. package/dist/next/{Tabs-tZjEVd-U.js.map → Tabs-Dors0bVs.js.map} +1 -1
  247. package/dist/next/Tabs.js +1 -1
  248. package/dist/next/{TagInput-CXvw8ogs.js → TagInput-V3zvXcNq.js} +4 -4
  249. package/dist/next/{TagInput-CXvw8ogs.js.map → TagInput-V3zvXcNq.js.map} +1 -1
  250. package/dist/next/{TagInput-DldSDmHu.cjs → TagInput-ceV9Jjqe.cjs} +3 -3
  251. package/dist/next/{TagInput-DldSDmHu.cjs.map → TagInput-ceV9Jjqe.cjs.map} +1 -1
  252. package/dist/next/TagInput.cjs.js +1 -1
  253. package/dist/next/TagInput.js +1 -1
  254. package/dist/next/{TextArea-CWscnEZW.js → TextArea-BSO1_gaS.js} +2 -2
  255. package/dist/next/{TextArea-CWscnEZW.js.map → TextArea-BSO1_gaS.js.map} +1 -1
  256. package/dist/next/TextArea.js +1 -1
  257. package/dist/next/{TextInput-cfBWD6de.cjs → TextInput-7nN8g78V.cjs} +2 -2
  258. package/dist/next/{TextInput-cfBWD6de.cjs.map → TextInput-7nN8g78V.cjs.map} +1 -1
  259. package/dist/next/{TextInput-3ZD3ccXf.js → TextInput-yUHEWbdK.js} +3 -3
  260. package/dist/next/{TextInput-3ZD3ccXf.js.map → TextInput-yUHEWbdK.js.map} +1 -1
  261. package/dist/next/TextInput.cjs.js +1 -1
  262. package/dist/next/TextInput.js +1 -1
  263. package/dist/next/{ThemeContext-nYSJ_G6L.js → ThemeContext-zE_shsx6.js} +3 -3
  264. package/dist/{core/ThemeContext-nYSJ_G6L.js.map → next/ThemeContext-zE_shsx6.js.map} +1 -1
  265. package/dist/next/ThemeProvider.js +3 -3
  266. package/dist/next/{Timeline-Bd6k_2az.js → Timeline-BTsKMULd.js} +2 -2
  267. package/dist/next/{Timeline-Bd6k_2az.js.map → Timeline-BTsKMULd.js.map} +1 -1
  268. package/dist/next/Timeline.js +1 -1
  269. package/dist/next/{Toggle-Bl8weXv8.js → Toggle-BomUbOZa.js} +2 -2
  270. package/dist/next/{Toggle-Bl8weXv8.js.map → Toggle-BomUbOZa.js.map} +1 -1
  271. package/dist/next/Toggle.js +1 -1
  272. package/dist/next/{Toolbar-DyzNvwQv.js → Toolbar-Be-YQqmX.js} +3 -3
  273. package/dist/next/{Toolbar-DyzNvwQv.js.map → Toolbar-Be-YQqmX.js.map} +1 -1
  274. package/dist/next/{Toolbar-s0krbHKU.cjs → Toolbar-roQbIEcD.cjs} +2 -2
  275. package/dist/next/{Toolbar-s0krbHKU.cjs.map → Toolbar-roQbIEcD.cjs.map} +1 -1
  276. package/dist/next/Toolbar.cjs.js +1 -1
  277. package/dist/next/Toolbar.js +1 -1
  278. package/dist/next/{Tooltip-Ba5YWT7r.js → Tooltip-lxpnIfpO.js} +2 -2
  279. package/dist/next/{Tooltip-Ba5YWT7r.js.map → Tooltip-lxpnIfpO.js.map} +1 -1
  280. package/dist/next/Tooltip.js +1 -1
  281. package/dist/next/Typography-B6VNZtxH.cjs.map +1 -1
  282. package/dist/next/Typography-BdS7h4Eq.js.map +1 -1
  283. package/dist/next/{image-B9PuwflE.js → image-CvorlI3C.js} +76 -24
  284. package/dist/next/image-CvorlI3C.js.map +1 -0
  285. package/dist/next/{image-Bo_vHlt1.cjs → image-DuTgdWOV.cjs} +76 -24
  286. package/dist/next/image-DuTgdWOV.cjs.map +1 -0
  287. package/dist/next/index.cjs.js +8501 -21
  288. package/dist/next/index.cjs.js.map +1 -1
  289. package/dist/next/index.js +8518 -38
  290. package/dist/next/index.js.map +1 -1
  291. package/dist/next/{link-CyxHztrS.js → link-4NcriBFB.js} +57 -15
  292. package/dist/next/link-4NcriBFB.js.map +1 -0
  293. package/dist/next/{link-B1N-q38H.cjs → link-CenftYXJ.cjs} +56 -14
  294. package/dist/next/link-CenftYXJ.cjs.map +1 -0
  295. package/dist/next/{navigation-C2hD8Jlk.js → navigation-BCeRD3ib.js} +2128 -87
  296. package/dist/next/navigation-BCeRD3ib.js.map +1 -0
  297. package/dist/next/{navigation-C3npGZmO.cjs → navigation-DtjMH66C.cjs} +2128 -87
  298. package/dist/next/navigation-DtjMH66C.cjs.map +1 -0
  299. package/dist/tsconfig.build.tsbuildinfo +1 -1
  300. package/dist/types/components/Modal/Modal.types.d.ts +3 -3
  301. package/dist/types/components/Modal/Modal.types.d.ts.map +1 -1
  302. package/dist/types/components/Pager/Pager.types.d.ts +2 -2
  303. package/dist/types/components/Pager/Pager.types.d.ts.map +1 -1
  304. package/dist/types/components/Pager/core/Pager.d.ts +2 -2
  305. package/dist/types/components/Pager/core/Pager.d.ts.map +1 -1
  306. package/dist/types/components/Pager/next/Pager.d.ts +2 -2
  307. package/dist/types/components/Pager/next/Pager.d.ts.map +1 -1
  308. package/dist/types/components/Typography/Typography.types.d.ts +2 -2
  309. package/dist/types/components/Typography/Typography.types.d.ts.map +1 -1
  310. package/dist/types/components/Typography/core/Typography.d.ts +1 -2
  311. package/dist/types/components/Typography/core/Typography.d.ts.map +1 -1
  312. package/dist/types/components/Typography/next/Typography.d.ts +1 -2
  313. package/dist/types/components/Typography/next/Typography.d.ts.map +1 -1
  314. package/dist/types/generated-docs/Accordion.props.d.ts +7 -0
  315. package/dist/types/generated-docs/Accordion.props.d.ts.map +1 -0
  316. package/dist/types/generated-docs/Avatar.props.d.ts +7 -0
  317. package/dist/types/generated-docs/Avatar.props.d.ts.map +1 -0
  318. package/dist/types/generated-docs/Badge.props.d.ts +7 -0
  319. package/dist/types/generated-docs/Badge.props.d.ts.map +1 -0
  320. package/dist/types/generated-docs/Breadcrumbs.props.d.ts +7 -0
  321. package/dist/types/generated-docs/Breadcrumbs.props.d.ts.map +1 -0
  322. package/dist/types/generated-docs/Button.props.d.ts +7 -0
  323. package/dist/types/generated-docs/Button.props.d.ts.map +1 -0
  324. package/dist/types/generated-docs/Card.props.d.ts +7 -0
  325. package/dist/types/generated-docs/Card.props.d.ts.map +1 -0
  326. package/dist/types/generated-docs/CheckBox.props.d.ts +7 -0
  327. package/dist/types/generated-docs/CheckBox.props.d.ts.map +1 -0
  328. package/dist/types/generated-docs/Chip.props.d.ts +7 -0
  329. package/dist/types/generated-docs/Chip.props.d.ts.map +1 -0
  330. package/dist/types/generated-docs/ChipGroup.props.d.ts +7 -0
  331. package/dist/types/generated-docs/ChipGroup.props.d.ts.map +1 -0
  332. package/dist/types/generated-docs/CircularProgress.props.d.ts +7 -0
  333. package/dist/types/generated-docs/CircularProgress.props.d.ts.map +1 -0
  334. package/dist/types/generated-docs/ColorPicker.props.d.ts +7 -0
  335. package/dist/types/generated-docs/ColorPicker.props.d.ts.map +1 -0
  336. package/dist/types/generated-docs/CommandPalette.props.d.ts +7 -0
  337. package/dist/types/generated-docs/CommandPalette.props.d.ts.map +1 -0
  338. package/dist/types/generated-docs/DataTable.props.d.ts +7 -0
  339. package/dist/types/generated-docs/DataTable.props.d.ts.map +1 -0
  340. package/dist/types/generated-docs/DateTimePicker.props.d.ts +7 -0
  341. package/dist/types/generated-docs/DateTimePicker.props.d.ts.map +1 -0
  342. package/dist/types/generated-docs/Divider.props.d.ts +7 -0
  343. package/dist/types/generated-docs/Divider.props.d.ts.map +1 -0
  344. package/dist/types/generated-docs/Dropdown.props.d.ts +7 -0
  345. package/dist/types/generated-docs/Dropdown.props.d.ts.map +1 -0
  346. package/dist/types/generated-docs/EmptyState.props.d.ts +7 -0
  347. package/dist/types/generated-docs/EmptyState.props.d.ts.map +1 -0
  348. package/dist/types/generated-docs/FileUpload.props.d.ts +7 -0
  349. package/dist/types/generated-docs/FileUpload.props.d.ts.map +1 -0
  350. package/dist/types/generated-docs/Footer.props.d.ts +7 -0
  351. package/dist/types/generated-docs/Footer.props.d.ts.map +1 -0
  352. package/dist/types/generated-docs/FormGroup.props.d.ts +7 -0
  353. package/dist/types/generated-docs/FormGroup.props.d.ts.map +1 -0
  354. package/dist/types/generated-docs/IconButton.props.d.ts +7 -0
  355. package/dist/types/generated-docs/IconButton.props.d.ts.map +1 -0
  356. package/dist/types/generated-docs/MarkdownRenderer.props.d.ts +7 -0
  357. package/dist/types/generated-docs/MarkdownRenderer.props.d.ts.map +1 -0
  358. package/dist/types/generated-docs/MessagePopup.props.d.ts +7 -0
  359. package/dist/types/generated-docs/MessagePopup.props.d.ts.map +1 -0
  360. package/dist/types/generated-docs/MetricBox.props.d.ts +7 -0
  361. package/dist/types/generated-docs/MetricBox.props.d.ts.map +1 -0
  362. package/dist/types/generated-docs/Modal.props.d.ts +7 -0
  363. package/dist/types/generated-docs/Modal.props.d.ts.map +1 -0
  364. package/dist/types/generated-docs/NavBar.props.d.ts +7 -0
  365. package/dist/types/generated-docs/NavBar.props.d.ts.map +1 -0
  366. package/dist/types/generated-docs/NotificationCenter.props.d.ts +7 -0
  367. package/dist/types/generated-docs/NotificationCenter.props.d.ts.map +1 -0
  368. package/dist/types/generated-docs/Pager.props.d.ts +7 -0
  369. package/dist/types/generated-docs/Pager.props.d.ts.map +1 -0
  370. package/dist/types/generated-docs/Popover.props.d.ts +7 -0
  371. package/dist/types/generated-docs/Popover.props.d.ts.map +1 -0
  372. package/dist/types/generated-docs/ProgressBar.props.d.ts +7 -0
  373. package/dist/types/generated-docs/ProgressBar.props.d.ts.map +1 -0
  374. package/dist/types/generated-docs/RadioButton.props.d.ts +7 -0
  375. package/dist/types/generated-docs/RadioButton.props.d.ts.map +1 -0
  376. package/dist/types/generated-docs/Rating.props.d.ts +7 -0
  377. package/dist/types/generated-docs/Rating.props.d.ts.map +1 -0
  378. package/dist/types/generated-docs/ScrollToTop.props.d.ts +7 -0
  379. package/dist/types/generated-docs/ScrollToTop.props.d.ts.map +1 -0
  380. package/dist/types/generated-docs/Select.props.d.ts +7 -0
  381. package/dist/types/generated-docs/Select.props.d.ts.map +1 -0
  382. package/dist/types/generated-docs/Sidebar.props.d.ts +7 -0
  383. package/dist/types/generated-docs/Sidebar.props.d.ts.map +1 -0
  384. package/dist/types/generated-docs/Skeleton.props.d.ts +7 -0
  385. package/dist/types/generated-docs/Skeleton.props.d.ts.map +1 -0
  386. package/dist/types/generated-docs/Slider.props.d.ts +7 -0
  387. package/dist/types/generated-docs/Slider.props.d.ts.map +1 -0
  388. package/dist/types/generated-docs/Spinner.props.d.ts +7 -0
  389. package/dist/types/generated-docs/Spinner.props.d.ts.map +1 -0
  390. package/dist/types/generated-docs/Stepper.props.d.ts +7 -0
  391. package/dist/types/generated-docs/Stepper.props.d.ts.map +1 -0
  392. package/dist/types/generated-docs/Tabs.props.d.ts +7 -0
  393. package/dist/types/generated-docs/Tabs.props.d.ts.map +1 -0
  394. package/dist/types/generated-docs/TagInput.props.d.ts +7 -0
  395. package/dist/types/generated-docs/TagInput.props.d.ts.map +1 -0
  396. package/dist/types/generated-docs/TextArea.props.d.ts +7 -0
  397. package/dist/types/generated-docs/TextArea.props.d.ts.map +1 -0
  398. package/dist/types/generated-docs/TextInput.props.d.ts +7 -0
  399. package/dist/types/generated-docs/TextInput.props.d.ts.map +1 -0
  400. package/dist/types/generated-docs/Timeline.props.d.ts +7 -0
  401. package/dist/types/generated-docs/Timeline.props.d.ts.map +1 -0
  402. package/dist/types/generated-docs/Toggle.props.d.ts +7 -0
  403. package/dist/types/generated-docs/Toggle.props.d.ts.map +1 -0
  404. package/dist/types/generated-docs/Toolbar.props.d.ts +7 -0
  405. package/dist/types/generated-docs/Toolbar.props.d.ts.map +1 -0
  406. package/dist/types/generated-docs/Tooltip.props.d.ts +7 -0
  407. package/dist/types/generated-docs/Tooltip.props.d.ts.map +1 -0
  408. package/dist/types/generated-docs/Typography.props.d.ts +7 -0
  409. package/dist/types/generated-docs/Typography.props.d.ts.map +1 -0
  410. package/dist/types/generated-docs/index.d.ts +54 -0
  411. package/dist/types/generated-docs/index.d.ts.map +1 -0
  412. package/dist/types/generated-docs/types.d.ts +20 -0
  413. package/dist/types/generated-docs/types.d.ts.map +1 -0
  414. package/dist/types/index.core.d.ts +1 -0
  415. package/dist/types/index.core.d.ts.map +1 -1
  416. package/dist/types/index.next.d.ts +1 -0
  417. package/dist/types/index.next.d.ts.map +1 -1
  418. package/package.json +14 -2
  419. package/dist/core/Modal-DVz_GNOL.js.map +0 -1
  420. package/dist/core/Modal-DhpY3Kt6.cjs.map +0 -1
  421. package/dist/next/Modal-Baxb-_FV.cjs.map +0 -1
  422. package/dist/next/Modal-ClsOP_6R.js.map +0 -1
  423. package/dist/next/image-B9PuwflE.js.map +0 -1
  424. package/dist/next/image-Bo_vHlt1.cjs.map +0 -1
  425. package/dist/next/link-B1N-q38H.cjs.map +0 -1
  426. package/dist/next/link-CyxHztrS.js.map +0 -1
  427. package/dist/next/navigation-C2hD8Jlk.js.map +0 -1
  428. package/dist/next/navigation-C3npGZmO.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { r as require_interop_require_default, a as require_interop_require_wildcard, d as requireInvariantError, e as requireSegment } from "./link-CyxHztrS.js";
1
+ import { r as require_interop_require_default, a as require_interop_require_wildcard, d as requireInvariantError, e as requireUtils, f as requireQuerystring, h as requireGetSegmentParam, i as requireSegment } from "./link-4NcriBFB.js";
2
2
  import React from "react";
3
3
  var navigation$1 = { exports: {} };
4
4
  var appRouterContext_sharedRuntime = {};
@@ -280,20 +280,12 @@ function requireRedirectError() {
280
280
  REDIRECT_ERROR_CODE: function() {
281
281
  return REDIRECT_ERROR_CODE;
282
282
  },
283
- RedirectType: function() {
284
- return RedirectType;
285
- },
286
283
  isRedirectError: function() {
287
284
  return isRedirectError;
288
285
  }
289
286
  });
290
287
  const _redirectstatuscode = requireRedirectStatusCode();
291
288
  const REDIRECT_ERROR_CODE = "NEXT_REDIRECT";
292
- var RedirectType = /* @__PURE__ */ (function(RedirectType2) {
293
- RedirectType2["push"] = "push";
294
- RedirectType2["replace"] = "replace";
295
- return RedirectType2;
296
- })({});
297
289
  function isRedirectError(error) {
298
290
  if (typeof error !== "object" || error === null || !("digest" in error) || typeof error.digest !== "string") {
299
291
  return false;
@@ -475,10 +467,10 @@ function requireRedirect() {
475
467
  }
476
468
  function redirect2(url, type) {
477
469
  var _a;
478
- type ?? (type = ((_a = actionAsyncStorage == null ? void 0 : actionAsyncStorage.getStore()) == null ? void 0 : _a.isAction) ? _redirecterror.RedirectType.push : _redirecterror.RedirectType.replace);
470
+ type ?? (type = ((_a = actionAsyncStorage == null ? void 0 : actionAsyncStorage.getStore()) == null ? void 0 : _a.isAction) ? "push" : "replace");
479
471
  throw getRedirectError(url, type, _redirectstatuscode.RedirectStatusCode.TemporaryRedirect);
480
472
  }
481
- function permanentRedirect(url, type = _redirecterror.RedirectType.replace) {
473
+ function permanentRedirect(url, type = "replace") {
482
474
  throw getRedirectError(url, type, _redirectstatuscode.RedirectStatusCode.PermanentRedirect);
483
475
  }
484
476
  function getURLFromRedirectError(error) {
@@ -602,7 +594,7 @@ function requireNotFound() {
602
594
  const DIGEST = `${_httpaccessfallback.HTTP_ERROR_FALLBACK_ERROR_CODE};404`;
603
595
  function notFound2() {
604
596
  const error = Object.defineProperty(new Error(DIGEST), "__NEXT_ERROR_CODE", {
605
- value: "E394",
597
+ value: "E1041",
606
598
  enumerable: false,
607
599
  configurable: true
608
600
  });
@@ -643,7 +635,7 @@ function requireForbidden() {
643
635
  });
644
636
  }
645
637
  const error = Object.defineProperty(new Error(DIGEST), "__NEXT_ERROR_CODE", {
646
- value: "E394",
638
+ value: "E1019",
647
639
  enumerable: false,
648
640
  configurable: true
649
641
  });
@@ -684,7 +676,7 @@ function requireUnauthorized() {
684
676
  });
685
677
  }
686
678
  const error = Object.defineProperty(new Error(DIGEST), "__NEXT_ERROR_CODE", {
687
- value: "E394",
679
+ value: "E1002",
688
680
  enumerable: false,
689
681
  configurable: true
690
682
  });
@@ -702,6 +694,318 @@ function requireUnauthorized() {
702
694
  var unstableRethrow = { exports: {} };
703
695
  var unstableRethrow_server = { exports: {} };
704
696
  var dynamicRenderingUtils = {};
697
+ var stagedRendering = {};
698
+ var promiseWithResolvers = {};
699
+ var hasRequiredPromiseWithResolvers;
700
+ function requirePromiseWithResolvers() {
701
+ if (hasRequiredPromiseWithResolvers) return promiseWithResolvers;
702
+ hasRequiredPromiseWithResolvers = 1;
703
+ (function(exports$1) {
704
+ Object.defineProperty(exports$1, "__esModule", {
705
+ value: true
706
+ });
707
+ Object.defineProperty(exports$1, "createPromiseWithResolvers", {
708
+ enumerable: true,
709
+ get: function() {
710
+ return createPromiseWithResolvers;
711
+ }
712
+ });
713
+ function createPromiseWithResolvers() {
714
+ let resolve;
715
+ let reject;
716
+ const promise = new Promise((res, rej) => {
717
+ resolve = res;
718
+ reject = rej;
719
+ });
720
+ return {
721
+ resolve,
722
+ reject,
723
+ promise
724
+ };
725
+ }
726
+ })(promiseWithResolvers);
727
+ return promiseWithResolvers;
728
+ }
729
+ var hasRequiredStagedRendering;
730
+ function requireStagedRendering() {
731
+ if (hasRequiredStagedRendering) return stagedRendering;
732
+ hasRequiredStagedRendering = 1;
733
+ (function(exports$1) {
734
+ Object.defineProperty(exports$1, "__esModule", {
735
+ value: true
736
+ });
737
+ function _export(target, all) {
738
+ for (var name in all) Object.defineProperty(target, name, {
739
+ enumerable: true,
740
+ get: all[name]
741
+ });
742
+ }
743
+ _export(exports$1, {
744
+ RenderStage: function() {
745
+ return RenderStage;
746
+ },
747
+ StagedRenderingController: function() {
748
+ return StagedRenderingController;
749
+ }
750
+ });
751
+ const _invarianterror = requireInvariantError();
752
+ const _promisewithresolvers = requirePromiseWithResolvers();
753
+ var RenderStage = /* @__PURE__ */ (function(RenderStage2) {
754
+ RenderStage2[RenderStage2["Before"] = 1] = "Before";
755
+ RenderStage2[RenderStage2["EarlyStatic"] = 2] = "EarlyStatic";
756
+ RenderStage2[RenderStage2["Static"] = 3] = "Static";
757
+ RenderStage2[RenderStage2["EarlyRuntime"] = 4] = "EarlyRuntime";
758
+ RenderStage2[RenderStage2["Runtime"] = 5] = "Runtime";
759
+ RenderStage2[RenderStage2["Dynamic"] = 6] = "Dynamic";
760
+ RenderStage2[RenderStage2["Abandoned"] = 7] = "Abandoned";
761
+ return RenderStage2;
762
+ })({});
763
+ class StagedRenderingController {
764
+ constructor(abortSignal, abandonController, shouldTrackSyncIO) {
765
+ this.abortSignal = abortSignal;
766
+ this.abandonController = abandonController;
767
+ this.shouldTrackSyncIO = shouldTrackSyncIO;
768
+ this.currentStage = 1;
769
+ this.syncInterruptReason = null;
770
+ this.staticStageEndTime = Infinity;
771
+ this.runtimeStageEndTime = Infinity;
772
+ this.staticStageListeners = [];
773
+ this.earlyRuntimeStageListeners = [];
774
+ this.runtimeStageListeners = [];
775
+ this.dynamicStageListeners = [];
776
+ this.staticStagePromise = (0, _promisewithresolvers.createPromiseWithResolvers)();
777
+ this.earlyRuntimeStagePromise = (0, _promisewithresolvers.createPromiseWithResolvers)();
778
+ this.runtimeStagePromise = (0, _promisewithresolvers.createPromiseWithResolvers)();
779
+ this.dynamicStagePromise = (0, _promisewithresolvers.createPromiseWithResolvers)();
780
+ if (abortSignal) {
781
+ abortSignal.addEventListener("abort", () => {
782
+ const { reason } = abortSignal;
783
+ this.staticStagePromise.promise.catch(ignoreReject);
784
+ this.staticStagePromise.reject(reason);
785
+ this.earlyRuntimeStagePromise.promise.catch(ignoreReject);
786
+ this.earlyRuntimeStagePromise.reject(reason);
787
+ this.runtimeStagePromise.promise.catch(ignoreReject);
788
+ this.runtimeStagePromise.reject(reason);
789
+ this.dynamicStagePromise.promise.catch(ignoreReject);
790
+ this.dynamicStagePromise.reject(reason);
791
+ }, {
792
+ once: true
793
+ });
794
+ }
795
+ if (abandonController) {
796
+ abandonController.signal.addEventListener("abort", () => {
797
+ this.abandonRender();
798
+ }, {
799
+ once: true
800
+ });
801
+ }
802
+ }
803
+ onStage(stage, callback) {
804
+ if (this.currentStage >= stage) {
805
+ callback();
806
+ } else if (stage === 3) {
807
+ this.staticStageListeners.push(callback);
808
+ } else if (stage === 4) {
809
+ this.earlyRuntimeStageListeners.push(callback);
810
+ } else if (stage === 5) {
811
+ this.runtimeStageListeners.push(callback);
812
+ } else if (stage === 6) {
813
+ this.dynamicStageListeners.push(callback);
814
+ } else {
815
+ throw Object.defineProperty(new _invarianterror.InvariantError(`Invalid render stage: ${stage}`), "__NEXT_ERROR_CODE", {
816
+ value: "E881",
817
+ enumerable: false,
818
+ configurable: true
819
+ });
820
+ }
821
+ }
822
+ shouldTrackSyncInterrupt() {
823
+ if (!this.shouldTrackSyncIO) {
824
+ return false;
825
+ }
826
+ switch (this.currentStage) {
827
+ case 1:
828
+ return false;
829
+ case 2:
830
+ case 3:
831
+ return true;
832
+ case 4:
833
+ return true;
834
+ case 5:
835
+ return false;
836
+ case 6:
837
+ case 7:
838
+ return false;
839
+ default:
840
+ return false;
841
+ }
842
+ }
843
+ syncInterruptCurrentStageWithReason(reason) {
844
+ if (this.currentStage === 1) {
845
+ return;
846
+ }
847
+ if (this.currentStage === 7) {
848
+ return;
849
+ }
850
+ if (this.abandonController) {
851
+ this.abandonController.abort();
852
+ return;
853
+ }
854
+ if (this.abortSignal) {
855
+ this.syncInterruptReason = reason;
856
+ this.currentStage = 7;
857
+ return;
858
+ }
859
+ switch (this.currentStage) {
860
+ case 2:
861
+ case 3:
862
+ case 4: {
863
+ this.syncInterruptReason = reason;
864
+ this.advanceStage(6);
865
+ return;
866
+ }
867
+ case 5: {
868
+ return;
869
+ }
870
+ }
871
+ }
872
+ getSyncInterruptReason() {
873
+ return this.syncInterruptReason;
874
+ }
875
+ getStaticStageEndTime() {
876
+ return this.staticStageEndTime;
877
+ }
878
+ getRuntimeStageEndTime() {
879
+ return this.runtimeStageEndTime;
880
+ }
881
+ abandonRender() {
882
+ const { currentStage } = this;
883
+ switch (currentStage) {
884
+ case 2: {
885
+ this.resolveStaticStage();
886
+ }
887
+ // intentional fallthrough
888
+ case 3: {
889
+ this.resolveEarlyRuntimeStage();
890
+ }
891
+ // intentional fallthrough
892
+ case 4: {
893
+ this.resolveRuntimeStage();
894
+ }
895
+ // intentional fallthrough
896
+ case 5: {
897
+ this.currentStage = 7;
898
+ return;
899
+ }
900
+ }
901
+ }
902
+ advanceStage(stage) {
903
+ if (stage <= this.currentStage) {
904
+ return;
905
+ }
906
+ let currentStage = this.currentStage;
907
+ this.currentStage = stage;
908
+ if (currentStage < 3 && stage >= 3) {
909
+ this.resolveStaticStage();
910
+ }
911
+ if (currentStage < 4 && stage >= 4) {
912
+ this.resolveEarlyRuntimeStage();
913
+ }
914
+ if (currentStage < 5 && stage >= 5) {
915
+ this.staticStageEndTime = performance.now() + performance.timeOrigin;
916
+ this.resolveRuntimeStage();
917
+ }
918
+ if (currentStage < 6 && stage >= 6) {
919
+ this.runtimeStageEndTime = performance.now() + performance.timeOrigin;
920
+ this.resolveDynamicStage();
921
+ return;
922
+ }
923
+ }
924
+ /** Fire the `onStage` listeners for the static stage and unblock any promises waiting for it. */
925
+ resolveStaticStage() {
926
+ const staticListeners = this.staticStageListeners;
927
+ for (let i = 0; i < staticListeners.length; i++) {
928
+ staticListeners[i]();
929
+ }
930
+ staticListeners.length = 0;
931
+ this.staticStagePromise.resolve();
932
+ }
933
+ /** Fire the `onStage` listeners for the early runtime stage and unblock any promises waiting for it. */
934
+ resolveEarlyRuntimeStage() {
935
+ const earlyRuntimeListeners = this.earlyRuntimeStageListeners;
936
+ for (let i = 0; i < earlyRuntimeListeners.length; i++) {
937
+ earlyRuntimeListeners[i]();
938
+ }
939
+ earlyRuntimeListeners.length = 0;
940
+ this.earlyRuntimeStagePromise.resolve();
941
+ }
942
+ /** Fire the `onStage` listeners for the runtime stage and unblock any promises waiting for it. */
943
+ resolveRuntimeStage() {
944
+ const runtimeListeners = this.runtimeStageListeners;
945
+ for (let i = 0; i < runtimeListeners.length; i++) {
946
+ runtimeListeners[i]();
947
+ }
948
+ runtimeListeners.length = 0;
949
+ this.runtimeStagePromise.resolve();
950
+ }
951
+ /** Fire the `onStage` listeners for the dynamic stage and unblock any promises waiting for it. */
952
+ resolveDynamicStage() {
953
+ const dynamicListeners = this.dynamicStageListeners;
954
+ for (let i = 0; i < dynamicListeners.length; i++) {
955
+ dynamicListeners[i]();
956
+ }
957
+ dynamicListeners.length = 0;
958
+ this.dynamicStagePromise.resolve();
959
+ }
960
+ getStagePromise(stage) {
961
+ switch (stage) {
962
+ case 3: {
963
+ return this.staticStagePromise.promise;
964
+ }
965
+ case 4: {
966
+ return this.earlyRuntimeStagePromise.promise;
967
+ }
968
+ case 5: {
969
+ return this.runtimeStagePromise.promise;
970
+ }
971
+ case 6: {
972
+ return this.dynamicStagePromise.promise;
973
+ }
974
+ default: {
975
+ throw Object.defineProperty(new _invarianterror.InvariantError(`Invalid render stage: ${stage}`), "__NEXT_ERROR_CODE", {
976
+ value: "E881",
977
+ enumerable: false,
978
+ configurable: true
979
+ });
980
+ }
981
+ }
982
+ }
983
+ waitForStage(stage) {
984
+ return this.getStagePromise(stage);
985
+ }
986
+ delayUntilStage(stage, displayName, resolvedValue) {
987
+ const ioTriggerPromise = this.getStagePromise(stage);
988
+ const promise = makeDevtoolsIOPromiseFromIOTrigger(ioTriggerPromise, displayName, resolvedValue);
989
+ if (this.abortSignal) {
990
+ promise.catch(ignoreReject);
991
+ }
992
+ return promise;
993
+ }
994
+ }
995
+ function ignoreReject() {
996
+ }
997
+ function makeDevtoolsIOPromiseFromIOTrigger(ioTrigger, displayName, resolvedValue) {
998
+ const promise = new Promise((resolve, reject) => {
999
+ ioTrigger.then(resolve.bind(null, resolvedValue), reject);
1000
+ });
1001
+ if (displayName !== void 0) {
1002
+ promise.displayName = displayName;
1003
+ }
1004
+ return promise;
1005
+ }
1006
+ })(stagedRendering);
1007
+ return stagedRendering;
1008
+ }
705
1009
  var hasRequiredDynamicRenderingUtils;
706
1010
  function requireDynamicRenderingUtils() {
707
1011
  if (hasRequiredDynamicRenderingUtils) return dynamicRenderingUtils;
@@ -717,6 +1021,12 @@ function requireDynamicRenderingUtils() {
717
1021
  });
718
1022
  }
719
1023
  _export(exports$1, {
1024
+ delayUntilRuntimeStage: function() {
1025
+ return delayUntilRuntimeStage;
1026
+ },
1027
+ getRuntimeStage: function() {
1028
+ return getRuntimeStage;
1029
+ },
720
1030
  isHangingPromiseRejectionError: function() {
721
1031
  return isHangingPromiseRejectionError;
722
1032
  },
@@ -727,6 +1037,7 @@ function requireDynamicRenderingUtils() {
727
1037
  return makeHangingPromise;
728
1038
  }
729
1039
  });
1040
+ const _stagedrendering = requireStagedRendering();
730
1041
  function isHangingPromiseRejectionError(err) {
731
1042
  if (typeof err !== "object" || err === null || !("digest" in err)) {
732
1043
  return false;
@@ -779,6 +1090,19 @@ function requireDynamicRenderingUtils() {
779
1090
  }, 0);
780
1091
  });
781
1092
  }
1093
+ function getRuntimeStage(stagedRendering2) {
1094
+ if (stagedRendering2.currentStage === _stagedrendering.RenderStage.EarlyStatic || stagedRendering2.currentStage === _stagedrendering.RenderStage.EarlyRuntime) {
1095
+ return _stagedrendering.RenderStage.EarlyRuntime;
1096
+ }
1097
+ return _stagedrendering.RenderStage.Runtime;
1098
+ }
1099
+ function delayUntilRuntimeStage(prerenderStore, result) {
1100
+ const { stagedRendering: stagedRendering2 } = prerenderStore;
1101
+ if (!stagedRendering2) {
1102
+ return result;
1103
+ }
1104
+ return stagedRendering2.waitForStage(getRuntimeStage(stagedRendering2)).then(() => result);
1105
+ }
782
1106
  })(dynamicRenderingUtils);
783
1107
  return dynamicRenderingUtils;
784
1108
  }
@@ -1018,6 +1342,12 @@ function requireAppRouterHeaders() {
1018
1342
  NEXT_HTML_REQUEST_ID_HEADER: function() {
1019
1343
  return NEXT_HTML_REQUEST_ID_HEADER;
1020
1344
  },
1345
+ NEXT_INSTANT_PREFETCH_HEADER: function() {
1346
+ return NEXT_INSTANT_PREFETCH_HEADER;
1347
+ },
1348
+ NEXT_INSTANT_TEST_COOKIE: function() {
1349
+ return NEXT_INSTANT_TEST_COOKIE;
1350
+ },
1021
1351
  NEXT_IS_PRERENDER_HEADER: function() {
1022
1352
  return NEXT_IS_PRERENDER_HEADER;
1023
1353
  },
@@ -1064,6 +1394,8 @@ function requireAppRouterHeaders() {
1064
1394
  const NEXT_HMR_REFRESH_HASH_COOKIE = "__next_hmr_refresh_hash__";
1065
1395
  const NEXT_URL = "next-url";
1066
1396
  const RSC_CONTENT_TYPE_HEADER = "text/x-component";
1397
+ const NEXT_INSTANT_PREFETCH_HEADER = "next-instant-navigation-testing-prefetch";
1398
+ const NEXT_INSTANT_TEST_COOKIE = "next-instant-navigation-testing";
1067
1399
  const FLIGHT_HEADERS = [
1068
1400
  RSC_HEADER,
1069
1401
  NEXT_ROUTER_STATE_TREE_HEADER,
@@ -1119,15 +1451,18 @@ function requireWorkUnitAsyncStorage_external() {
1119
1451
  getRenderResumeDataCache: function() {
1120
1452
  return getRenderResumeDataCache;
1121
1453
  },
1122
- getRuntimeStagePromise: function() {
1123
- return getRuntimeStagePromise;
1124
- },
1125
1454
  getServerComponentsHmrCache: function() {
1126
1455
  return getServerComponentsHmrCache;
1127
1456
  },
1457
+ getStagedRenderingController: function() {
1458
+ return getStagedRenderingController;
1459
+ },
1128
1460
  isHmrRefresh: function() {
1129
1461
  return isHmrRefresh;
1130
1462
  },
1463
+ isInEarlyRenderStage: function() {
1464
+ return isInEarlyRenderStage;
1465
+ },
1131
1466
  throwForMissingRequestStore: function() {
1132
1467
  return throwForMissingRequestStore;
1133
1468
  },
@@ -1141,6 +1476,14 @@ function requireWorkUnitAsyncStorage_external() {
1141
1476
  const _workunitasyncstorageinstance = requireWorkUnitAsyncStorageInstance();
1142
1477
  const _approuterheaders = requireAppRouterHeaders();
1143
1478
  const _invarianterror = requireInvariantError();
1479
+ const _stagedrendering = requireStagedRendering();
1480
+ function isInEarlyRenderStage(requestStore) {
1481
+ const stagedRendering2 = requestStore.stagedRendering;
1482
+ if (stagedRendering2) {
1483
+ return stagedRendering2.currentStage === _stagedrendering.RenderStage.EarlyStatic || stagedRendering2.currentStage === _stagedrendering.RenderStage.EarlyRuntime;
1484
+ }
1485
+ return false;
1486
+ }
1144
1487
  function throwForMissingRequestStore(callingExpression) {
1145
1488
  throw Object.defineProperty(new Error(`\`${callingExpression}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
1146
1489
  value: "E251",
@@ -1162,6 +1505,7 @@ function requireWorkUnitAsyncStorage_external() {
1162
1505
  case "prerender-ppr":
1163
1506
  return workUnitStore.prerenderResumeDataCache;
1164
1507
  case "prerender-client":
1508
+ case "validation-client":
1165
1509
  return workUnitStore.prerenderResumeDataCache;
1166
1510
  case "request": {
1167
1511
  if (workUnitStore.prerenderResumeDataCache) {
@@ -1172,6 +1516,7 @@ function requireWorkUnitAsyncStorage_external() {
1172
1516
  case "cache":
1173
1517
  case "private-cache":
1174
1518
  case "unstable-cache":
1519
+ case "generate-static-params":
1175
1520
  return null;
1176
1521
  default:
1177
1522
  return workUnitStore;
@@ -1183,6 +1528,7 @@ function requireWorkUnitAsyncStorage_external() {
1183
1528
  case "prerender":
1184
1529
  case "prerender-runtime":
1185
1530
  case "prerender-client":
1531
+ case "validation-client":
1186
1532
  if (workUnitStore.renderResumeDataCache) {
1187
1533
  return workUnitStore.renderResumeDataCache;
1188
1534
  }
@@ -1193,13 +1539,14 @@ function requireWorkUnitAsyncStorage_external() {
1193
1539
  case "private-cache":
1194
1540
  case "unstable-cache":
1195
1541
  case "prerender-legacy":
1542
+ case "generate-static-params":
1196
1543
  return null;
1197
1544
  default:
1198
1545
  return workUnitStore;
1199
1546
  }
1200
1547
  }
1201
- function getHmrRefreshHash(workStore, workUnitStore) {
1202
- if (workStore.dev) {
1548
+ function getHmrRefreshHash(workUnitStore) {
1549
+ if (process.env.__NEXT_DEV_SERVER) {
1203
1550
  switch (workUnitStore.type) {
1204
1551
  case "cache":
1205
1552
  case "private-cache":
@@ -1213,8 +1560,8 @@ function requireWorkUnitAsyncStorage_external() {
1213
1560
  }
1214
1561
  return void 0;
1215
1562
  }
1216
- function isHmrRefresh(workStore, workUnitStore) {
1217
- if (workStore.dev) {
1563
+ function isHmrRefresh(workUnitStore) {
1564
+ if (process.env.__NEXT_DEV_SERVER) {
1218
1565
  switch (workUnitStore.type) {
1219
1566
  case "cache":
1220
1567
  case "private-cache":
@@ -1224,8 +1571,8 @@ function requireWorkUnitAsyncStorage_external() {
1224
1571
  }
1225
1572
  return false;
1226
1573
  }
1227
- function getServerComponentsHmrCache(workStore, workUnitStore) {
1228
- if (workStore.dev) {
1574
+ function getServerComponentsHmrCache(workUnitStore) {
1575
+ if (process.env.__NEXT_DEV_SERVER) {
1229
1576
  switch (workUnitStore.type) {
1230
1577
  case "cache":
1231
1578
  case "private-cache":
@@ -1248,39 +1595,43 @@ function requireWorkUnitAsyncStorage_external() {
1248
1595
  }
1249
1596
  return void 0;
1250
1597
  }
1251
- function getCacheSignal(workUnitStore) {
1598
+ function getStagedRenderingController(workUnitStore) {
1252
1599
  switch (workUnitStore.type) {
1600
+ case "request":
1601
+ case "prerender-runtime":
1602
+ return workUnitStore.stagedRendering ?? null;
1253
1603
  case "prerender":
1254
1604
  case "prerender-client":
1255
- case "prerender-runtime":
1256
- return workUnitStore.cacheSignal;
1257
- case "request": {
1258
- if (workUnitStore.cacheSignal) {
1259
- return workUnitStore.cacheSignal;
1260
- }
1261
- }
1605
+ case "validation-client":
1262
1606
  case "prerender-ppr":
1263
1607
  case "prerender-legacy":
1264
1608
  case "cache":
1265
1609
  case "private-cache":
1266
1610
  case "unstable-cache":
1611
+ case "generate-static-params":
1267
1612
  return null;
1268
1613
  default:
1269
1614
  return workUnitStore;
1270
1615
  }
1271
1616
  }
1272
- function getRuntimeStagePromise(workUnitStore) {
1617
+ function getCacheSignal(workUnitStore) {
1273
1618
  switch (workUnitStore.type) {
1274
- case "prerender-runtime":
1275
- case "private-cache":
1276
- return workUnitStore.runtimeStagePromise;
1277
1619
  case "prerender":
1278
1620
  case "prerender-client":
1621
+ case "validation-client":
1622
+ case "prerender-runtime":
1623
+ return workUnitStore.cacheSignal;
1624
+ case "request": {
1625
+ if (workUnitStore.cacheSignal) {
1626
+ return workUnitStore.cacheSignal;
1627
+ }
1628
+ }
1279
1629
  case "prerender-ppr":
1280
1630
  case "prerender-legacy":
1281
- case "request":
1282
1631
  case "cache":
1632
+ case "private-cache":
1283
1633
  case "unstable-cache":
1634
+ case "generate-static-params":
1284
1635
  return null;
1285
1636
  default:
1286
1637
  return workUnitStore;
@@ -1328,11 +1679,11 @@ function requireWorkAsyncStorage_external() {
1328
1679
  })(workAsyncStorage_external);
1329
1680
  return workAsyncStorage_external;
1330
1681
  }
1331
- var boundaryConstants = {};
1332
- var hasRequiredBoundaryConstants;
1333
- function requireBoundaryConstants() {
1334
- if (hasRequiredBoundaryConstants) return boundaryConstants;
1335
- hasRequiredBoundaryConstants = 1;
1682
+ var boundaryConstants$1 = {};
1683
+ var hasRequiredBoundaryConstants$1;
1684
+ function requireBoundaryConstants$1() {
1685
+ if (hasRequiredBoundaryConstants$1) return boundaryConstants$1;
1686
+ hasRequiredBoundaryConstants$1 = 1;
1336
1687
  (function(exports$1) {
1337
1688
  Object.defineProperty(exports$1, "__esModule", {
1338
1689
  value: true
@@ -1361,8 +1712,8 @@ function requireBoundaryConstants() {
1361
1712
  const VIEWPORT_BOUNDARY_NAME = "__next_viewport_boundary__";
1362
1713
  const OUTLET_BOUNDARY_NAME = "__next_outlet_boundary__";
1363
1714
  const ROOT_LAYOUT_BOUNDARY_NAME = "__next_root_layout_boundary__";
1364
- })(boundaryConstants);
1365
- return boundaryConstants;
1715
+ })(boundaryConstants$1);
1716
+ return boundaryConstants$1;
1366
1717
  }
1367
1718
  var scheduler = {};
1368
1719
  var hasRequiredScheduler;
@@ -1422,6 +1773,25 @@ function requireScheduler() {
1422
1773
  })(scheduler);
1423
1774
  return scheduler;
1424
1775
  }
1776
+ var boundaryConstants = {};
1777
+ var hasRequiredBoundaryConstants;
1778
+ function requireBoundaryConstants() {
1779
+ if (hasRequiredBoundaryConstants) return boundaryConstants;
1780
+ hasRequiredBoundaryConstants = 1;
1781
+ (function(exports$1) {
1782
+ Object.defineProperty(exports$1, "__esModule", {
1783
+ value: true
1784
+ });
1785
+ Object.defineProperty(exports$1, "INSTANT_VALIDATION_BOUNDARY_NAME", {
1786
+ enumerable: true,
1787
+ get: function() {
1788
+ return INSTANT_VALIDATION_BOUNDARY_NAME;
1789
+ }
1790
+ });
1791
+ const INSTANT_VALIDATION_BOUNDARY_NAME = "__next_instant_validation_boundary__";
1792
+ })(boundaryConstants);
1793
+ return boundaryConstants;
1794
+ }
1425
1795
  var hasRequiredDynamicRendering;
1426
1796
  function requireDynamicRendering() {
1427
1797
  if (hasRequiredDynamicRendering) return dynamicRendering;
@@ -1437,6 +1807,9 @@ function requireDynamicRendering() {
1437
1807
  });
1438
1808
  }
1439
1809
  _export(exports$1, {
1810
+ DynamicHoleKind: function() {
1811
+ return DynamicHoleKind;
1812
+ },
1440
1813
  Postpone: function() {
1441
1814
  return Postpone;
1442
1815
  },
@@ -1467,18 +1840,21 @@ function requireDynamicRendering() {
1467
1840
  createHangingInputAbortSignal: function() {
1468
1841
  return createHangingInputAbortSignal;
1469
1842
  },
1843
+ createInstantValidationState: function() {
1844
+ return createInstantValidationState;
1845
+ },
1470
1846
  createRenderInBrowserAbortSignal: function() {
1471
1847
  return createRenderInBrowserAbortSignal;
1472
1848
  },
1473
- delayUntilRuntimeStage: function() {
1474
- return delayUntilRuntimeStage;
1475
- },
1476
1849
  formatDynamicAPIAccesses: function() {
1477
1850
  return formatDynamicAPIAccesses;
1478
1851
  },
1479
1852
  getFirstDynamicReason: function() {
1480
1853
  return getFirstDynamicReason;
1481
1854
  },
1855
+ getNavigationDisallowedDynamicReasons: function() {
1856
+ return getNavigationDisallowedDynamicReasons;
1857
+ },
1482
1858
  getStaticShellDisallowedDynamicReasons: function() {
1483
1859
  return getStaticShellDisallowedDynamicReasons;
1484
1860
  },
@@ -1509,12 +1885,18 @@ function requireDynamicRendering() {
1509
1885
  trackDynamicDataInDynamicRender: function() {
1510
1886
  return trackDynamicDataInDynamicRender;
1511
1887
  },
1888
+ trackDynamicHoleInNavigation: function() {
1889
+ return trackDynamicHoleInNavigation;
1890
+ },
1512
1891
  trackDynamicHoleInRuntimeShell: function() {
1513
1892
  return trackDynamicHoleInRuntimeShell;
1514
1893
  },
1515
1894
  trackDynamicHoleInStaticShell: function() {
1516
1895
  return trackDynamicHoleInStaticShell;
1517
1896
  },
1897
+ trackThrownErrorInNavigation: function() {
1898
+ return trackThrownErrorInNavigation;
1899
+ },
1518
1900
  useDynamicRouteParams: function() {
1519
1901
  return useDynamicRouteParams;
1520
1902
  },
@@ -1528,10 +1910,11 @@ function requireDynamicRendering() {
1528
1910
  const _workunitasyncstorageexternal = requireWorkUnitAsyncStorage_external();
1529
1911
  const _workasyncstorageexternal = requireWorkAsyncStorage_external();
1530
1912
  const _dynamicrenderingutils = requireDynamicRenderingUtils();
1531
- const _boundaryconstants = requireBoundaryConstants();
1913
+ const _boundaryconstants = requireBoundaryConstants$1();
1532
1914
  const _scheduler = requireScheduler();
1533
1915
  const _bailouttocsr = requireBailoutToCsr();
1534
1916
  const _invarianterror = requireInvariantError();
1917
+ const _boundaryconstants1 = requireBoundaryConstants();
1535
1918
  function _interop_require_default(obj) {
1536
1919
  return obj && obj.__esModule ? obj : {
1537
1920
  default: obj
@@ -1622,6 +2005,8 @@ function requireDynamicRendering() {
1622
2005
  case "prerender-legacy":
1623
2006
  case "prerender-ppr":
1624
2007
  case "prerender-client":
2008
+ case "validation-client":
2009
+ case "generate-static-params":
1625
2010
  break;
1626
2011
  case "request":
1627
2012
  if (process.env.NODE_ENV !== "production") {
@@ -1768,21 +2153,26 @@ ${stack}`;
1768
2153
  controller.abort();
1769
2154
  });
1770
2155
  } else {
1771
- const runtimeStagePromise = (0, _workunitasyncstorageexternal.getRuntimeStagePromise)(workUnitStore);
1772
- if (runtimeStagePromise) {
1773
- runtimeStagePromise.then(() => (0, _scheduler.scheduleOnNextTick)(() => controller.abort()));
2156
+ if (
2157
+ // eslint-disable-next-line no-restricted-syntax -- We are discriminating between two different refined types and don't need an addition exhaustive switch here
2158
+ workUnitStore.type === "prerender-runtime" && workUnitStore.stagedRendering
2159
+ ) {
2160
+ const { stagedRendering: stagedRendering2 } = workUnitStore;
2161
+ stagedRendering2.waitForStage((0, _dynamicrenderingutils.getRuntimeStage)(stagedRendering2)).then(() => (0, _scheduler.scheduleOnNextTick)(() => controller.abort()));
1774
2162
  } else {
1775
2163
  (0, _scheduler.scheduleOnNextTick)(() => controller.abort());
1776
2164
  }
1777
2165
  }
1778
2166
  return controller.signal;
1779
2167
  case "prerender-client":
2168
+ case "validation-client":
1780
2169
  case "prerender-ppr":
1781
2170
  case "prerender-legacy":
1782
2171
  case "request":
1783
2172
  case "cache":
1784
2173
  case "private-cache":
1785
2174
  case "unstable-cache":
2175
+ case "generate-static-params":
1786
2176
  return void 0;
1787
2177
  }
1788
2178
  }
@@ -1815,6 +2205,9 @@ ${stack}`;
1815
2205
  }
1816
2206
  break;
1817
2207
  }
2208
+ case "validation-client": {
2209
+ break;
2210
+ }
1818
2211
  case "prerender-runtime":
1819
2212
  throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called during a runtime prerender. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
1820
2213
  value: "E771",
@@ -1828,6 +2221,12 @@ ${stack}`;
1828
2221
  enumerable: false,
1829
2222
  configurable: true
1830
2223
  });
2224
+ case "generate-static-params":
2225
+ throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called in \`generateStaticParams\`. Next.js should be preventing ${expression} from being included in server component files statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
2226
+ value: "E1130",
2227
+ enumerable: false,
2228
+ configurable: true
2229
+ });
1831
2230
  }
1832
2231
  }
1833
2232
  }
@@ -1841,6 +2240,8 @@ ${stack}`;
1841
2240
  (0, _workunitasyncstorageexternal.throwForMissingRequestStore)(expression);
1842
2241
  }
1843
2242
  switch (workUnitStore.type) {
2243
+ case "validation-client":
2244
+ return;
1844
2245
  case "prerender-client": {
1845
2246
  _react.default.use((0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, workStore.route, expression));
1846
2247
  break;
@@ -1871,6 +2272,12 @@ ${stack}`;
1871
2272
  enumerable: false,
1872
2273
  configurable: true
1873
2274
  });
2275
+ case "generate-static-params":
2276
+ throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called in \`generateStaticParams\`. Next.js should be preventing ${expression} from being included in server component files statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
2277
+ value: "E1130",
2278
+ enumerable: false,
2279
+ configurable: true
2280
+ });
1874
2281
  case "request":
1875
2282
  return;
1876
2283
  }
@@ -1881,6 +2288,7 @@ ${stack}`;
1881
2288
  const hasMetadataRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.METADATA_BOUNDARY_NAME}[\\n\\s]`);
1882
2289
  const hasViewportRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`);
1883
2290
  const hasOutletRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
2291
+ const hasInstantValidationBoundaryRegex = new RegExp(`\\n\\s+at ${_boundaryconstants1.INSTANT_VALIDATION_BOUNDARY_NAME}[\\n\\s]`);
1884
2292
  function trackAllowedDynamicAccess(workStore, componentStack, dynamicValidation, clientDynamic) {
1885
2293
  if (hasOutletRegex.test(componentStack)) {
1886
2294
  return;
@@ -1902,23 +2310,156 @@ ${stack}`;
1902
2310
  return;
1903
2311
  } else {
1904
2312
  const message = `Route "${workStore.route}": Uncached data was accessed outside of <Suspense>. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`;
1905
- const error = createErrorWithComponentOrOwnerStack(message, componentStack);
2313
+ const error = addErrorContext(Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
2314
+ value: "E1079",
2315
+ enumerable: false,
2316
+ configurable: true
2317
+ }), componentStack, null);
1906
2318
  dynamicValidation.dynamicErrors.push(error);
1907
2319
  return;
1908
2320
  }
1909
2321
  }
2322
+ var DynamicHoleKind = /* @__PURE__ */ (function(DynamicHoleKind2) {
2323
+ DynamicHoleKind2[DynamicHoleKind2["Runtime"] = 1] = "Runtime";
2324
+ DynamicHoleKind2[DynamicHoleKind2["Dynamic"] = 2] = "Dynamic";
2325
+ return DynamicHoleKind2;
2326
+ })({});
2327
+ function createInstantValidationState(createInstantStack) {
2328
+ return {
2329
+ hasDynamicMetadata: false,
2330
+ hasAllowedClientDynamicAboveBoundary: false,
2331
+ dynamicMetadata: null,
2332
+ hasDynamicViewport: false,
2333
+ hasAllowedDynamic: false,
2334
+ dynamicErrors: [],
2335
+ validationPreventingErrors: [],
2336
+ thrownErrorsOutsideBoundary: [],
2337
+ createInstantStack
2338
+ };
2339
+ }
2340
+ function trackDynamicHoleInNavigation(workStore, componentStack, dynamicValidation, clientDynamic, kind, boundaryState) {
2341
+ if (hasOutletRegex.test(componentStack)) {
2342
+ return;
2343
+ }
2344
+ if (hasMetadataRegex.test(componentStack)) {
2345
+ const usageDescription2 = kind === 1 ? `Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments.` : `Uncached data or \`connection()\` was accessed inside \`generateMetadata\`.`;
2346
+ const message2 = `Route "${workStore.route}": ${usageDescription2} Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`;
2347
+ const error2 = addErrorContext(Object.defineProperty(new Error(message2), "__NEXT_ERROR_CODE", {
2348
+ value: "E1076",
2349
+ enumerable: false,
2350
+ configurable: true
2351
+ }), componentStack, dynamicValidation.createInstantStack);
2352
+ dynamicValidation.dynamicMetadata = error2;
2353
+ return;
2354
+ }
2355
+ if (hasViewportRegex.test(componentStack)) {
2356
+ const usageDescription2 = kind === 1 ? `Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`.` : `Uncached data or \`connection()\` was accessed inside \`generateViewport\`.`;
2357
+ const message2 = `Route "${workStore.route}": ${usageDescription2} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`;
2358
+ const error2 = addErrorContext(Object.defineProperty(new Error(message2), "__NEXT_ERROR_CODE", {
2359
+ value: "E1086",
2360
+ enumerable: false,
2361
+ configurable: true
2362
+ }), componentStack, dynamicValidation.createInstantStack);
2363
+ dynamicValidation.dynamicErrors.push(error2);
2364
+ return;
2365
+ }
2366
+ const boundaryLocation = hasInstantValidationBoundaryRegex.exec(componentStack);
2367
+ if (!boundaryLocation) {
2368
+ if (boundaryState.expectedIds.size === boundaryState.renderedIds.size) {
2369
+ dynamicValidation.hasAllowedClientDynamicAboveBoundary = true;
2370
+ dynamicValidation.hasAllowedDynamic = true;
2371
+ return;
2372
+ } else {
2373
+ const message2 = `Route "${workStore.route}": Could not validate \`unstable_instant\` because a Client Component in a parent segment prevented the page from rendering.`;
2374
+ const error2 = addErrorContext(Object.defineProperty(new Error(message2), "__NEXT_ERROR_CODE", {
2375
+ value: "E1082",
2376
+ enumerable: false,
2377
+ configurable: true
2378
+ }), componentStack, dynamicValidation.createInstantStack);
2379
+ dynamicValidation.validationPreventingErrors.push(error2);
2380
+ return;
2381
+ }
2382
+ } else {
2383
+ const suspenseLocation = hasSuspenseRegex.exec(componentStack);
2384
+ if (suspenseLocation) {
2385
+ if (suspenseLocation.index < boundaryLocation.index) {
2386
+ dynamicValidation.hasAllowedDynamic = true;
2387
+ return;
2388
+ }
2389
+ }
2390
+ }
2391
+ if (clientDynamic.syncDynamicErrorWithStack) {
2392
+ const syncError = clientDynamic.syncDynamicErrorWithStack;
2393
+ if (dynamicValidation.createInstantStack !== null && syncError.cause === void 0) {
2394
+ syncError.cause = dynamicValidation.createInstantStack();
2395
+ }
2396
+ dynamicValidation.dynamicErrors.push(syncError);
2397
+ return;
2398
+ }
2399
+ const usageDescription = kind === 1 ? `Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`<Suspense>\`.` : `Uncached data or \`connection()\` was accessed outside of \`<Suspense>\`.`;
2400
+ const message = `Route "${workStore.route}": ${usageDescription} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`;
2401
+ const error = addErrorContext(Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
2402
+ value: "E1078",
2403
+ enumerable: false,
2404
+ configurable: true
2405
+ }), componentStack, dynamicValidation.createInstantStack);
2406
+ dynamicValidation.dynamicErrors.push(error);
2407
+ return;
2408
+ }
2409
+ function trackThrownErrorInNavigation(workStore, dynamicValidation, thrownValue, componentStack) {
2410
+ const boundaryLocation = hasInstantValidationBoundaryRegex.exec(componentStack);
2411
+ if (!boundaryLocation) {
2412
+ const error = addErrorContext(Object.defineProperty(new Error("An error occurred while attempting to validate instant UI. This error may be preventing the validation from completing.", {
2413
+ cause: thrownValue
2414
+ }), "__NEXT_ERROR_CODE", {
2415
+ value: "E1118",
2416
+ enumerable: false,
2417
+ configurable: true
2418
+ }), componentStack, null);
2419
+ dynamicValidation.thrownErrorsOutsideBoundary.push(error);
2420
+ } else {
2421
+ const suspenseLocation = hasSuspenseRegex.exec(componentStack);
2422
+ if (suspenseLocation) {
2423
+ if (suspenseLocation.index < boundaryLocation.index) {
2424
+ return;
2425
+ }
2426
+ }
2427
+ const message = `Route "${workStore.route}": Could not validate \`unstable_instant\` because an error prevented the target segment from rendering.`;
2428
+ const error = addErrorContext(
2429
+ Object.defineProperty(new Error(message, {
2430
+ cause: thrownValue
2431
+ }), "__NEXT_ERROR_CODE", {
2432
+ value: "E1112",
2433
+ enumerable: false,
2434
+ configurable: true
2435
+ }),
2436
+ componentStack,
2437
+ null
2438
+ // TODO(instant-validation-build): conflicting use of cause
2439
+ );
2440
+ dynamicValidation.validationPreventingErrors.push(error);
2441
+ }
2442
+ }
1910
2443
  function trackDynamicHoleInRuntimeShell(workStore, componentStack, dynamicValidation, clientDynamic) {
1911
2444
  if (hasOutletRegex.test(componentStack)) {
1912
2445
  return;
1913
2446
  } else if (hasMetadataRegex.test(componentStack)) {
1914
- const message = `Route "${workStore.route}": Uncached data or \`connection()\` was accessed inside \`generateMetadata\`. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`;
1915
- const error = createErrorWithComponentOrOwnerStack(message, componentStack);
1916
- dynamicValidation.dynamicMetadata = error;
2447
+ const message2 = `Route "${workStore.route}": Uncached data or \`connection()\` was accessed inside \`generateMetadata\`. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`;
2448
+ const error2 = addErrorContext(Object.defineProperty(new Error(message2), "__NEXT_ERROR_CODE", {
2449
+ value: "E1080",
2450
+ enumerable: false,
2451
+ configurable: true
2452
+ }), componentStack, null);
2453
+ dynamicValidation.dynamicMetadata = error2;
1917
2454
  return;
1918
2455
  } else if (hasViewportRegex.test(componentStack)) {
1919
- const message = `Route "${workStore.route}": Uncached data or \`connection()\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`;
1920
- const error = createErrorWithComponentOrOwnerStack(message, componentStack);
1921
- dynamicValidation.dynamicErrors.push(error);
2456
+ const message2 = `Route "${workStore.route}": Uncached data or \`connection()\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`;
2457
+ const error2 = addErrorContext(Object.defineProperty(new Error(message2), "__NEXT_ERROR_CODE", {
2458
+ value: "E1077",
2459
+ enumerable: false,
2460
+ configurable: true
2461
+ }), componentStack, null);
2462
+ dynamicValidation.dynamicErrors.push(error2);
1922
2463
  return;
1923
2464
  } else if (hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)) {
1924
2465
  dynamicValidation.hasAllowedDynamic = true;
@@ -1930,24 +2471,35 @@ ${stack}`;
1930
2471
  } else if (clientDynamic.syncDynamicErrorWithStack) {
1931
2472
  dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);
1932
2473
  return;
1933
- } else {
1934
- const message = `Route "${workStore.route}": Uncached data or \`connection()\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`;
1935
- const error = createErrorWithComponentOrOwnerStack(message, componentStack);
1936
- dynamicValidation.dynamicErrors.push(error);
1937
- return;
1938
2474
  }
2475
+ const message = `Route "${workStore.route}": Uncached data or \`connection()\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`;
2476
+ const error = addErrorContext(Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
2477
+ value: "E1084",
2478
+ enumerable: false,
2479
+ configurable: true
2480
+ }), componentStack, null);
2481
+ dynamicValidation.dynamicErrors.push(error);
2482
+ return;
1939
2483
  }
1940
2484
  function trackDynamicHoleInStaticShell(workStore, componentStack, dynamicValidation, clientDynamic) {
1941
2485
  if (hasOutletRegex.test(componentStack)) {
1942
2486
  return;
1943
2487
  } else if (hasMetadataRegex.test(componentStack)) {
1944
2488
  const message = `Route "${workStore.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`;
1945
- const error = createErrorWithComponentOrOwnerStack(message, componentStack);
2489
+ const error = addErrorContext(Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
2490
+ value: "E1085",
2491
+ enumerable: false,
2492
+ configurable: true
2493
+ }), componentStack, null);
1946
2494
  dynamicValidation.dynamicMetadata = error;
1947
2495
  return;
1948
2496
  } else if (hasViewportRegex.test(componentStack)) {
1949
2497
  const message = `Route "${workStore.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`;
1950
- const error = createErrorWithComponentOrOwnerStack(message, componentStack);
2498
+ const error = addErrorContext(Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
2499
+ value: "E1081",
2500
+ enumerable: false,
2501
+ configurable: true
2502
+ }), componentStack, null);
1951
2503
  dynamicValidation.dynamicErrors.push(error);
1952
2504
  return;
1953
2505
  } else if (hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)) {
@@ -1962,19 +2514,21 @@ ${stack}`;
1962
2514
  return;
1963
2515
  } else {
1964
2516
  const message = `Route "${workStore.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`;
1965
- const error = createErrorWithComponentOrOwnerStack(message, componentStack);
2517
+ const error = addErrorContext(Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
2518
+ value: "E1083",
2519
+ enumerable: false,
2520
+ configurable: true
2521
+ }), componentStack, null);
1966
2522
  dynamicValidation.dynamicErrors.push(error);
1967
2523
  return;
1968
2524
  }
1969
2525
  }
1970
- function createErrorWithComponentOrOwnerStack(message, componentStack) {
2526
+ function addErrorContext(error, componentStack, createInstantStack) {
1971
2527
  const ownerStack = process.env.NODE_ENV !== "production" && _react.default.captureOwnerStack ? _react.default.captureOwnerStack() : null;
1972
- const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
1973
- value: "E394",
1974
- enumerable: false,
1975
- configurable: true
1976
- });
1977
- error.stack = error.name + ": " + message + (ownerStack || componentStack);
2528
+ if (createInstantStack !== null) {
2529
+ error.cause = createInstantStack();
2530
+ }
2531
+ error.stack = error.name + ": " + error.message + (ownerStack || componentStack);
1978
2532
  return error;
1979
2533
  }
1980
2534
  var PreludeState = /* @__PURE__ */ (function(PreludeState2) {
@@ -1985,14 +2539,12 @@ ${stack}`;
1985
2539
  })({});
1986
2540
  function logDisallowedDynamicError(workStore, error) {
1987
2541
  console.error(error);
1988
- if (!workStore.dev) {
1989
- if (workStore.hasReadableErrorStacks) {
1990
- console.error(`To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running \`next dev\`, then open "${workStore.route}" in your browser to investigate the error.`);
1991
- } else {
1992
- console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
2542
+ if (process.env.NODE_ENV !== "development") {
2543
+ console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
1993
2544
  - Start the app in development mode by running \`next dev\`, then open "${workStore.route}" in your browser to investigate the error.
1994
2545
  - Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`);
1995
- }
2546
+ } else if (!process.env.__NEXT_DEV_SERVER) {
2547
+ console.error(`To debug the issue, start the app in development mode by running \`next dev\`, then open "${workStore.route}" in your browser to investigate the error.`);
1996
2548
  }
1997
2549
  }
1998
2550
  function throwIfDisallowedDynamic(workStore, prelude, dynamicValidation, serverDynamic) {
@@ -2026,8 +2578,8 @@ ${stack}`;
2026
2578
  }
2027
2579
  }
2028
2580
  }
2029
- function getStaticShellDisallowedDynamicReasons(workStore, prelude, dynamicValidation) {
2030
- if (dynamicValidation.hasSuspenseAboveBody) {
2581
+ function getStaticShellDisallowedDynamicReasons(workStore, prelude, dynamicValidation, configAllowsBlocking) {
2582
+ if (configAllowsBlocking || dynamicValidation.hasSuspenseAboveBody) {
2031
2583
  return [];
2032
2584
  }
2033
2585
  if (prelude !== 0) {
@@ -2053,11 +2605,76 @@ ${stack}`;
2053
2605
  }
2054
2606
  return [];
2055
2607
  }
2056
- function delayUntilRuntimeStage(prerenderStore, result) {
2057
- if (prerenderStore.runtimeStagePromise) {
2058
- return prerenderStore.runtimeStagePromise.then(() => result);
2608
+ function getNavigationDisallowedDynamicReasons(workStore, prelude, dynamicValidation, validationSampleTracking, boundaryState) {
2609
+ if (validationSampleTracking) {
2610
+ const { missingSampleErrors } = validationSampleTracking;
2611
+ if (missingSampleErrors.length > 0) {
2612
+ return missingSampleErrors;
2613
+ }
2059
2614
  }
2060
- return result;
2615
+ const { validationPreventingErrors } = dynamicValidation;
2616
+ if (validationPreventingErrors.length > 0) {
2617
+ return validationPreventingErrors;
2618
+ }
2619
+ if (boundaryState.renderedIds.size < boundaryState.expectedIds.size) {
2620
+ const { thrownErrorsOutsideBoundary, createInstantStack } = dynamicValidation;
2621
+ if (thrownErrorsOutsideBoundary.length === 0) {
2622
+ const message = `Route "${workStore.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering for an unknown reason.`;
2623
+ const error = createInstantStack !== null ? createInstantStack() : new Error();
2624
+ error.name = "Error";
2625
+ error.message = message;
2626
+ return [
2627
+ error
2628
+ ];
2629
+ } else if (thrownErrorsOutsideBoundary.length === 1) {
2630
+ const message = `Route "${workStore.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to the following error.`;
2631
+ const error = createInstantStack !== null ? createInstantStack() : new Error();
2632
+ error.name = "Error";
2633
+ error.message = message;
2634
+ return [
2635
+ error,
2636
+ thrownErrorsOutsideBoundary[0]
2637
+ ];
2638
+ } else {
2639
+ const message = `Route "${workStore.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to one of the following errors.`;
2640
+ const error = createInstantStack !== null ? createInstantStack() : new Error();
2641
+ error.name = "Error";
2642
+ error.message = message;
2643
+ return [
2644
+ error,
2645
+ ...thrownErrorsOutsideBoundary
2646
+ ];
2647
+ }
2648
+ }
2649
+ if (prelude !== 0) {
2650
+ const dynamicErrors = dynamicValidation.dynamicErrors;
2651
+ if (dynamicErrors.length > 0) {
2652
+ return dynamicErrors;
2653
+ }
2654
+ if (prelude === 1) {
2655
+ if (dynamicValidation.hasAllowedClientDynamicAboveBoundary) {
2656
+ return [];
2657
+ }
2658
+ return [
2659
+ Object.defineProperty(new _invarianterror.InvariantError(`Route "${workStore.route}" failed to render during instant validation and Next.js was unable to determine a reason.`), "__NEXT_ERROR_CODE", {
2660
+ value: "E1055",
2661
+ enumerable: false,
2662
+ configurable: true
2663
+ })
2664
+ ];
2665
+ }
2666
+ } else {
2667
+ const dynamicErrors = dynamicValidation.dynamicErrors;
2668
+ if (dynamicErrors.length > 0) {
2669
+ return dynamicErrors;
2670
+ }
2671
+ if (dynamicValidation.hasAllowedDynamic === false && dynamicValidation.dynamicMetadata) {
2672
+ return [
2673
+ dynamicValidation.dynamicMetadata
2674
+ ];
2675
+ }
2676
+ }
2677
+ return [];
2061
2678
  }
2062
2679
  })(dynamicRendering);
2063
2680
  return dynamicRendering;
@@ -2173,7 +2790,7 @@ function requireNavigation_reactServer() {
2173
2790
  return _readonlyurlsearchparams.ReadonlyURLSearchParams;
2174
2791
  },
2175
2792
  RedirectType: function() {
2176
- return _redirecterror.RedirectType;
2793
+ return RedirectType;
2177
2794
  },
2178
2795
  forbidden: function() {
2179
2796
  return _forbidden.forbidden;
@@ -2199,7 +2816,6 @@ function requireNavigation_reactServer() {
2199
2816
  });
2200
2817
  const _readonlyurlsearchparams = requireReadonlyUrlSearchParams();
2201
2818
  const _redirect = requireRedirect();
2202
- const _redirecterror = requireRedirectError();
2203
2819
  const _notfound = requireNotFound();
2204
2820
  const _forbidden = requireForbidden();
2205
2821
  const _unauthorized = requireUnauthorized();
@@ -2211,6 +2827,10 @@ function requireNavigation_reactServer() {
2211
2827
  configurable: true
2212
2828
  });
2213
2829
  }
2830
+ const RedirectType = {
2831
+ push: "push",
2832
+ replace: "replace"
2833
+ };
2214
2834
  if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
2215
2835
  Object.defineProperty(exports$1.default, "__esModule", { value: true });
2216
2836
  Object.assign(exports$1.default, exports$1);
@@ -2219,6 +2839,1410 @@ function requireNavigation_reactServer() {
2219
2839
  })(navigation_reactServer, navigation_reactServer.exports);
2220
2840
  return navigation_reactServer.exports;
2221
2841
  }
2842
+ var instantSamplesClient = {};
2843
+ var instantSamples = {};
2844
+ var cookies$1 = {};
2845
+ var cookies;
2846
+ var hasRequiredCookies$1;
2847
+ function requireCookies$1() {
2848
+ if (hasRequiredCookies$1) return cookies;
2849
+ hasRequiredCookies$1 = 1;
2850
+ var __defProp = Object.defineProperty;
2851
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2852
+ var __getOwnPropNames = Object.getOwnPropertyNames;
2853
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
2854
+ var __export = (target, all) => {
2855
+ for (var name in all)
2856
+ __defProp(target, name, { get: all[name], enumerable: true });
2857
+ };
2858
+ var __copyProps = (to, from, except, desc) => {
2859
+ if (from && typeof from === "object" || typeof from === "function") {
2860
+ for (let key of __getOwnPropNames(from))
2861
+ if (!__hasOwnProp.call(to, key) && key !== except)
2862
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2863
+ }
2864
+ return to;
2865
+ };
2866
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2867
+ var src_exports = {};
2868
+ __export(src_exports, {
2869
+ RequestCookies: () => RequestCookies,
2870
+ ResponseCookies: () => ResponseCookies,
2871
+ parseCookie: () => parseCookie,
2872
+ parseSetCookie: () => parseSetCookie,
2873
+ stringifyCookie: () => stringifyCookie
2874
+ });
2875
+ cookies = __toCommonJS(src_exports);
2876
+ function stringifyCookie(c) {
2877
+ var _a;
2878
+ const attrs = [
2879
+ "path" in c && c.path && `Path=${c.path}`,
2880
+ "expires" in c && (c.expires || c.expires === 0) && `Expires=${(typeof c.expires === "number" ? new Date(c.expires) : c.expires).toUTCString()}`,
2881
+ "maxAge" in c && typeof c.maxAge === "number" && `Max-Age=${c.maxAge}`,
2882
+ "domain" in c && c.domain && `Domain=${c.domain}`,
2883
+ "secure" in c && c.secure && "Secure",
2884
+ "httpOnly" in c && c.httpOnly && "HttpOnly",
2885
+ "sameSite" in c && c.sameSite && `SameSite=${c.sameSite}`,
2886
+ "partitioned" in c && c.partitioned && "Partitioned",
2887
+ "priority" in c && c.priority && `Priority=${c.priority}`
2888
+ ].filter(Boolean);
2889
+ const stringified = `${c.name}=${encodeURIComponent((_a = c.value) != null ? _a : "")}`;
2890
+ return attrs.length === 0 ? stringified : `${stringified}; ${attrs.join("; ")}`;
2891
+ }
2892
+ function parseCookie(cookie) {
2893
+ const map = /* @__PURE__ */ new Map();
2894
+ for (const pair of cookie.split(/; */)) {
2895
+ if (!pair)
2896
+ continue;
2897
+ const splitAt = pair.indexOf("=");
2898
+ if (splitAt === -1) {
2899
+ map.set(pair, "true");
2900
+ continue;
2901
+ }
2902
+ const [key, value] = [pair.slice(0, splitAt), pair.slice(splitAt + 1)];
2903
+ try {
2904
+ map.set(key, decodeURIComponent(value != null ? value : "true"));
2905
+ } catch {
2906
+ }
2907
+ }
2908
+ return map;
2909
+ }
2910
+ function parseSetCookie(setCookie) {
2911
+ if (!setCookie) {
2912
+ return void 0;
2913
+ }
2914
+ const [[name, value], ...attributes] = parseCookie(setCookie);
2915
+ const {
2916
+ domain,
2917
+ expires,
2918
+ httponly,
2919
+ maxage,
2920
+ path,
2921
+ samesite,
2922
+ secure,
2923
+ partitioned,
2924
+ priority
2925
+ } = Object.fromEntries(
2926
+ attributes.map(([key, value2]) => [
2927
+ key.toLowerCase().replace(/-/g, ""),
2928
+ value2
2929
+ ])
2930
+ );
2931
+ const cookie = {
2932
+ name,
2933
+ value: decodeURIComponent(value),
2934
+ domain,
2935
+ ...expires && { expires: new Date(expires) },
2936
+ ...httponly && { httpOnly: true },
2937
+ ...typeof maxage === "string" && { maxAge: Number(maxage) },
2938
+ path,
2939
+ ...samesite && { sameSite: parseSameSite(samesite) },
2940
+ ...secure && { secure: true },
2941
+ ...priority && { priority: parsePriority(priority) },
2942
+ ...partitioned && { partitioned: true }
2943
+ };
2944
+ return compact(cookie);
2945
+ }
2946
+ function compact(t) {
2947
+ const newT = {};
2948
+ for (const key in t) {
2949
+ if (t[key]) {
2950
+ newT[key] = t[key];
2951
+ }
2952
+ }
2953
+ return newT;
2954
+ }
2955
+ var SAME_SITE = ["strict", "lax", "none"];
2956
+ function parseSameSite(string) {
2957
+ string = string.toLowerCase();
2958
+ return SAME_SITE.includes(string) ? string : void 0;
2959
+ }
2960
+ var PRIORITY = ["low", "medium", "high"];
2961
+ function parsePriority(string) {
2962
+ string = string.toLowerCase();
2963
+ return PRIORITY.includes(string) ? string : void 0;
2964
+ }
2965
+ function splitCookiesString(cookiesString) {
2966
+ if (!cookiesString)
2967
+ return [];
2968
+ var cookiesStrings = [];
2969
+ var pos = 0;
2970
+ var start;
2971
+ var ch;
2972
+ var lastComma;
2973
+ var nextStart;
2974
+ var cookiesSeparatorFound;
2975
+ function skipWhitespace() {
2976
+ while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
2977
+ pos += 1;
2978
+ }
2979
+ return pos < cookiesString.length;
2980
+ }
2981
+ function notSpecialChar() {
2982
+ ch = cookiesString.charAt(pos);
2983
+ return ch !== "=" && ch !== ";" && ch !== ",";
2984
+ }
2985
+ while (pos < cookiesString.length) {
2986
+ start = pos;
2987
+ cookiesSeparatorFound = false;
2988
+ while (skipWhitespace()) {
2989
+ ch = cookiesString.charAt(pos);
2990
+ if (ch === ",") {
2991
+ lastComma = pos;
2992
+ pos += 1;
2993
+ skipWhitespace();
2994
+ nextStart = pos;
2995
+ while (pos < cookiesString.length && notSpecialChar()) {
2996
+ pos += 1;
2997
+ }
2998
+ if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
2999
+ cookiesSeparatorFound = true;
3000
+ pos = nextStart;
3001
+ cookiesStrings.push(cookiesString.substring(start, lastComma));
3002
+ start = pos;
3003
+ } else {
3004
+ pos = lastComma + 1;
3005
+ }
3006
+ } else {
3007
+ pos += 1;
3008
+ }
3009
+ }
3010
+ if (!cookiesSeparatorFound || pos >= cookiesString.length) {
3011
+ cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
3012
+ }
3013
+ }
3014
+ return cookiesStrings;
3015
+ }
3016
+ var RequestCookies = class {
3017
+ constructor(requestHeaders) {
3018
+ this._parsed = /* @__PURE__ */ new Map();
3019
+ this._headers = requestHeaders;
3020
+ const header = requestHeaders.get("cookie");
3021
+ if (header) {
3022
+ const parsed = parseCookie(header);
3023
+ for (const [name, value] of parsed) {
3024
+ this._parsed.set(name, { name, value });
3025
+ }
3026
+ }
3027
+ }
3028
+ [Symbol.iterator]() {
3029
+ return this._parsed[Symbol.iterator]();
3030
+ }
3031
+ /**
3032
+ * The amount of cookies received from the client
3033
+ */
3034
+ get size() {
3035
+ return this._parsed.size;
3036
+ }
3037
+ get(...args) {
3038
+ const name = typeof args[0] === "string" ? args[0] : args[0].name;
3039
+ return this._parsed.get(name);
3040
+ }
3041
+ getAll(...args) {
3042
+ var _a;
3043
+ const all = Array.from(this._parsed);
3044
+ if (!args.length) {
3045
+ return all.map(([_, value]) => value);
3046
+ }
3047
+ const name = typeof args[0] === "string" ? args[0] : (_a = args[0]) == null ? void 0 : _a.name;
3048
+ return all.filter(([n]) => n === name).map(([_, value]) => value);
3049
+ }
3050
+ has(name) {
3051
+ return this._parsed.has(name);
3052
+ }
3053
+ set(...args) {
3054
+ const [name, value] = args.length === 1 ? [args[0].name, args[0].value] : args;
3055
+ const map = this._parsed;
3056
+ map.set(name, { name, value });
3057
+ this._headers.set(
3058
+ "cookie",
3059
+ Array.from(map).map(([_, value2]) => stringifyCookie(value2)).join("; ")
3060
+ );
3061
+ return this;
3062
+ }
3063
+ /**
3064
+ * Delete the cookies matching the passed name or names in the request.
3065
+ */
3066
+ delete(names) {
3067
+ const map = this._parsed;
3068
+ const result = !Array.isArray(names) ? map.delete(names) : names.map((name) => map.delete(name));
3069
+ this._headers.set(
3070
+ "cookie",
3071
+ Array.from(map).map(([_, value]) => stringifyCookie(value)).join("; ")
3072
+ );
3073
+ return result;
3074
+ }
3075
+ /**
3076
+ * Delete all the cookies in the cookies in the request.
3077
+ */
3078
+ clear() {
3079
+ this.delete(Array.from(this._parsed.keys()));
3080
+ return this;
3081
+ }
3082
+ /**
3083
+ * Format the cookies in the request as a string for logging
3084
+ */
3085
+ [Symbol.for("edge-runtime.inspect.custom")]() {
3086
+ return `RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
3087
+ }
3088
+ toString() {
3089
+ return [...this._parsed.values()].map((v) => `${v.name}=${encodeURIComponent(v.value)}`).join("; ");
3090
+ }
3091
+ };
3092
+ var ResponseCookies = class {
3093
+ constructor(responseHeaders) {
3094
+ this._parsed = /* @__PURE__ */ new Map();
3095
+ var _a, _b, _c;
3096
+ this._headers = responseHeaders;
3097
+ const setCookie = (_c = (_b = (_a = responseHeaders.getSetCookie) == null ? void 0 : _a.call(responseHeaders)) != null ? _b : responseHeaders.get("set-cookie")) != null ? _c : [];
3098
+ const cookieStrings = Array.isArray(setCookie) ? setCookie : splitCookiesString(setCookie);
3099
+ for (const cookieString of cookieStrings) {
3100
+ const parsed = parseSetCookie(cookieString);
3101
+ if (parsed)
3102
+ this._parsed.set(parsed.name, parsed);
3103
+ }
3104
+ }
3105
+ /**
3106
+ * {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.
3107
+ */
3108
+ get(...args) {
3109
+ const key = typeof args[0] === "string" ? args[0] : args[0].name;
3110
+ return this._parsed.get(key);
3111
+ }
3112
+ /**
3113
+ * {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
3114
+ */
3115
+ getAll(...args) {
3116
+ var _a;
3117
+ const all = Array.from(this._parsed.values());
3118
+ if (!args.length) {
3119
+ return all;
3120
+ }
3121
+ const key = typeof args[0] === "string" ? args[0] : (_a = args[0]) == null ? void 0 : _a.name;
3122
+ return all.filter((c) => c.name === key);
3123
+ }
3124
+ has(name) {
3125
+ return this._parsed.has(name);
3126
+ }
3127
+ /**
3128
+ * {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
3129
+ */
3130
+ set(...args) {
3131
+ const [name, value, cookie] = args.length === 1 ? [args[0].name, args[0].value, args[0]] : args;
3132
+ const map = this._parsed;
3133
+ map.set(name, normalizeCookie({ name, value, ...cookie }));
3134
+ replace(map, this._headers);
3135
+ return this;
3136
+ }
3137
+ /**
3138
+ * {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
3139
+ */
3140
+ delete(...args) {
3141
+ const [name, options] = typeof args[0] === "string" ? [args[0]] : [args[0].name, args[0]];
3142
+ return this.set({ ...options, name, value: "", expires: /* @__PURE__ */ new Date(0) });
3143
+ }
3144
+ [Symbol.for("edge-runtime.inspect.custom")]() {
3145
+ return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
3146
+ }
3147
+ toString() {
3148
+ return [...this._parsed.values()].map(stringifyCookie).join("; ");
3149
+ }
3150
+ };
3151
+ function replace(bag, headers2) {
3152
+ headers2.delete("set-cookie");
3153
+ for (const [, value] of bag) {
3154
+ const serialized = stringifyCookie(value);
3155
+ headers2.append("set-cookie", serialized);
3156
+ }
3157
+ }
3158
+ function normalizeCookie(cookie = { name: "", value: "" }) {
3159
+ if (typeof cookie.expires === "number") {
3160
+ cookie.expires = new Date(cookie.expires);
3161
+ }
3162
+ if (cookie.maxAge) {
3163
+ cookie.expires = new Date(Date.now() + cookie.maxAge * 1e3);
3164
+ }
3165
+ if (cookie.path === null || cookie.path === void 0) {
3166
+ cookie.path = "/";
3167
+ }
3168
+ return cookie;
3169
+ }
3170
+ return cookies;
3171
+ }
3172
+ var hasRequiredCookies;
3173
+ function requireCookies() {
3174
+ if (hasRequiredCookies) return cookies$1;
3175
+ hasRequiredCookies = 1;
3176
+ (function(exports$1) {
3177
+ Object.defineProperty(exports$1, "__esModule", {
3178
+ value: true
3179
+ });
3180
+ function _export(target, all) {
3181
+ for (var name in all) Object.defineProperty(target, name, {
3182
+ enumerable: true,
3183
+ get: all[name]
3184
+ });
3185
+ }
3186
+ _export(exports$1, {
3187
+ RequestCookies: function() {
3188
+ return _cookies.RequestCookies;
3189
+ },
3190
+ ResponseCookies: function() {
3191
+ return _cookies.ResponseCookies;
3192
+ },
3193
+ stringifyCookie: function() {
3194
+ return _cookies.stringifyCookie;
3195
+ }
3196
+ });
3197
+ const _cookies = requireCookies$1();
3198
+ })(cookies$1);
3199
+ return cookies$1;
3200
+ }
3201
+ var requestCookies = {};
3202
+ var reflect = {};
3203
+ var hasRequiredReflect;
3204
+ function requireReflect() {
3205
+ if (hasRequiredReflect) return reflect;
3206
+ hasRequiredReflect = 1;
3207
+ (function(exports$1) {
3208
+ Object.defineProperty(exports$1, "__esModule", {
3209
+ value: true
3210
+ });
3211
+ Object.defineProperty(exports$1, "ReflectAdapter", {
3212
+ enumerable: true,
3213
+ get: function() {
3214
+ return ReflectAdapter;
3215
+ }
3216
+ });
3217
+ class ReflectAdapter {
3218
+ static get(target, prop, receiver) {
3219
+ const value = Reflect.get(target, prop, receiver);
3220
+ if (typeof value === "function") {
3221
+ return value.bind(target);
3222
+ }
3223
+ return value;
3224
+ }
3225
+ static set(target, prop, value, receiver) {
3226
+ return Reflect.set(target, prop, value, receiver);
3227
+ }
3228
+ static has(target, prop) {
3229
+ return Reflect.has(target, prop);
3230
+ }
3231
+ static deleteProperty(target, prop) {
3232
+ return Reflect.deleteProperty(target, prop);
3233
+ }
3234
+ }
3235
+ })(reflect);
3236
+ return reflect;
3237
+ }
3238
+ var actionRevalidationKind = {};
3239
+ var hasRequiredActionRevalidationKind;
3240
+ function requireActionRevalidationKind() {
3241
+ if (hasRequiredActionRevalidationKind) return actionRevalidationKind;
3242
+ hasRequiredActionRevalidationKind = 1;
3243
+ (function(exports$1) {
3244
+ Object.defineProperty(exports$1, "__esModule", {
3245
+ value: true
3246
+ });
3247
+ function _export(target, all) {
3248
+ for (var name in all) Object.defineProperty(target, name, {
3249
+ enumerable: true,
3250
+ get: all[name]
3251
+ });
3252
+ }
3253
+ _export(exports$1, {
3254
+ ActionDidNotRevalidate: function() {
3255
+ return ActionDidNotRevalidate;
3256
+ },
3257
+ ActionDidRevalidateDynamicOnly: function() {
3258
+ return ActionDidRevalidateDynamicOnly;
3259
+ },
3260
+ ActionDidRevalidateStaticAndDynamic: function() {
3261
+ return ActionDidRevalidateStaticAndDynamic;
3262
+ }
3263
+ });
3264
+ const ActionDidNotRevalidate = 0;
3265
+ const ActionDidRevalidateStaticAndDynamic = 1;
3266
+ const ActionDidRevalidateDynamicOnly = 2;
3267
+ })(actionRevalidationKind);
3268
+ return actionRevalidationKind;
3269
+ }
3270
+ var hasRequiredRequestCookies;
3271
+ function requireRequestCookies() {
3272
+ if (hasRequiredRequestCookies) return requestCookies;
3273
+ hasRequiredRequestCookies = 1;
3274
+ (function(exports$1) {
3275
+ Object.defineProperty(exports$1, "__esModule", {
3276
+ value: true
3277
+ });
3278
+ function _export(target, all) {
3279
+ for (var name in all) Object.defineProperty(target, name, {
3280
+ enumerable: true,
3281
+ get: all[name]
3282
+ });
3283
+ }
3284
+ _export(exports$1, {
3285
+ MutableRequestCookiesAdapter: function() {
3286
+ return MutableRequestCookiesAdapter;
3287
+ },
3288
+ ReadonlyRequestCookiesError: function() {
3289
+ return ReadonlyRequestCookiesError;
3290
+ },
3291
+ RequestCookiesAdapter: function() {
3292
+ return RequestCookiesAdapter;
3293
+ },
3294
+ appendMutableCookies: function() {
3295
+ return appendMutableCookies;
3296
+ },
3297
+ areCookiesMutableInCurrentPhase: function() {
3298
+ return areCookiesMutableInCurrentPhase;
3299
+ },
3300
+ createCookiesWithMutableAccessCheck: function() {
3301
+ return createCookiesWithMutableAccessCheck;
3302
+ },
3303
+ getModifiedCookieValues: function() {
3304
+ return getModifiedCookieValues;
3305
+ },
3306
+ responseCookiesToRequestCookies: function() {
3307
+ return responseCookiesToRequestCookies;
3308
+ }
3309
+ });
3310
+ const _cookies = requireCookies();
3311
+ const _reflect = requireReflect();
3312
+ const _workasyncstorageexternal = requireWorkAsyncStorage_external();
3313
+ const _actionrevalidationkind = requireActionRevalidationKind();
3314
+ class ReadonlyRequestCookiesError extends Error {
3315
+ constructor() {
3316
+ 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");
3317
+ }
3318
+ static callable() {
3319
+ throw new ReadonlyRequestCookiesError();
3320
+ }
3321
+ }
3322
+ class RequestCookiesAdapter {
3323
+ static seal(cookies2) {
3324
+ return new Proxy(cookies2, {
3325
+ get(target, prop, receiver) {
3326
+ switch (prop) {
3327
+ case "clear":
3328
+ case "delete":
3329
+ case "set":
3330
+ return ReadonlyRequestCookiesError.callable;
3331
+ default:
3332
+ return _reflect.ReflectAdapter.get(target, prop, receiver);
3333
+ }
3334
+ }
3335
+ });
3336
+ }
3337
+ }
3338
+ const SYMBOL_MODIFY_COOKIE_VALUES = Symbol.for("next.mutated.cookies");
3339
+ function getModifiedCookieValues(cookies2) {
3340
+ const modified = cookies2[SYMBOL_MODIFY_COOKIE_VALUES];
3341
+ if (!modified || !Array.isArray(modified) || modified.length === 0) {
3342
+ return [];
3343
+ }
3344
+ return modified;
3345
+ }
3346
+ function appendMutableCookies(headers2, mutableCookies) {
3347
+ const modifiedCookieValues = getModifiedCookieValues(mutableCookies);
3348
+ if (modifiedCookieValues.length === 0) {
3349
+ return false;
3350
+ }
3351
+ const resCookies = new _cookies.ResponseCookies(headers2);
3352
+ const returnedCookies = resCookies.getAll();
3353
+ for (const cookie of modifiedCookieValues) {
3354
+ resCookies.set(cookie);
3355
+ }
3356
+ for (const cookie of returnedCookies) {
3357
+ resCookies.set(cookie);
3358
+ }
3359
+ return true;
3360
+ }
3361
+ class MutableRequestCookiesAdapter {
3362
+ static wrap(cookies2, onUpdateCookies) {
3363
+ const responseCookies = new _cookies.ResponseCookies(new Headers());
3364
+ for (const cookie of cookies2.getAll()) {
3365
+ responseCookies.set(cookie);
3366
+ }
3367
+ let modifiedValues = [];
3368
+ const modifiedCookies = /* @__PURE__ */ new Set();
3369
+ const updateResponseCookies = () => {
3370
+ const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
3371
+ if (workStore) {
3372
+ workStore.pathWasRevalidated = _actionrevalidationkind.ActionDidRevalidateStaticAndDynamic;
3373
+ }
3374
+ const allCookies = responseCookies.getAll();
3375
+ modifiedValues = allCookies.filter((c) => modifiedCookies.has(c.name));
3376
+ if (onUpdateCookies) {
3377
+ const serializedCookies = [];
3378
+ for (const cookie of modifiedValues) {
3379
+ const tempCookies = new _cookies.ResponseCookies(new Headers());
3380
+ tempCookies.set(cookie);
3381
+ serializedCookies.push(tempCookies.toString());
3382
+ }
3383
+ onUpdateCookies(serializedCookies);
3384
+ }
3385
+ };
3386
+ const wrappedCookies = new Proxy(responseCookies, {
3387
+ get(target, prop, receiver) {
3388
+ switch (prop) {
3389
+ // A special symbol to get the modified cookie values
3390
+ case SYMBOL_MODIFY_COOKIE_VALUES:
3391
+ return modifiedValues;
3392
+ // TODO: Throw error if trying to set a cookie after the response
3393
+ // headers have been set.
3394
+ case "delete":
3395
+ return function(...args) {
3396
+ modifiedCookies.add(typeof args[0] === "string" ? args[0] : args[0].name);
3397
+ try {
3398
+ target.delete(...args);
3399
+ return wrappedCookies;
3400
+ } finally {
3401
+ updateResponseCookies();
3402
+ }
3403
+ };
3404
+ case "set":
3405
+ return function(...args) {
3406
+ modifiedCookies.add(typeof args[0] === "string" ? args[0] : args[0].name);
3407
+ try {
3408
+ target.set(...args);
3409
+ return wrappedCookies;
3410
+ } finally {
3411
+ updateResponseCookies();
3412
+ }
3413
+ };
3414
+ default:
3415
+ return _reflect.ReflectAdapter.get(target, prop, receiver);
3416
+ }
3417
+ }
3418
+ });
3419
+ return wrappedCookies;
3420
+ }
3421
+ }
3422
+ function createCookiesWithMutableAccessCheck(requestStore) {
3423
+ const wrappedCookies = new Proxy(requestStore.mutableCookies, {
3424
+ get(target, prop, receiver) {
3425
+ switch (prop) {
3426
+ case "delete":
3427
+ return function(...args) {
3428
+ ensureCookiesAreStillMutable(requestStore);
3429
+ target.delete(...args);
3430
+ return wrappedCookies;
3431
+ };
3432
+ case "set":
3433
+ return function(...args) {
3434
+ ensureCookiesAreStillMutable(requestStore);
3435
+ target.set(...args);
3436
+ return wrappedCookies;
3437
+ };
3438
+ default:
3439
+ return _reflect.ReflectAdapter.get(target, prop, receiver);
3440
+ }
3441
+ }
3442
+ });
3443
+ return wrappedCookies;
3444
+ }
3445
+ function areCookiesMutableInCurrentPhase(requestStore) {
3446
+ return requestStore.phase === "action";
3447
+ }
3448
+ function ensureCookiesAreStillMutable(requestStore, _callingExpression) {
3449
+ if (!areCookiesMutableInCurrentPhase(requestStore)) {
3450
+ throw new ReadonlyRequestCookiesError();
3451
+ }
3452
+ }
3453
+ function responseCookiesToRequestCookies(responseCookies) {
3454
+ const requestCookies2 = new _cookies.RequestCookies(new Headers());
3455
+ for (const cookie of responseCookies.getAll()) {
3456
+ requestCookies2.set(cookie);
3457
+ }
3458
+ return requestCookies2;
3459
+ }
3460
+ })(requestCookies);
3461
+ return requestCookies;
3462
+ }
3463
+ var headers = {};
3464
+ var hasRequiredHeaders;
3465
+ function requireHeaders() {
3466
+ if (hasRequiredHeaders) return headers;
3467
+ hasRequiredHeaders = 1;
3468
+ (function(exports$1) {
3469
+ Object.defineProperty(exports$1, "__esModule", {
3470
+ value: true
3471
+ });
3472
+ function _export(target, all) {
3473
+ for (var name in all) Object.defineProperty(target, name, {
3474
+ enumerable: true,
3475
+ get: all[name]
3476
+ });
3477
+ }
3478
+ _export(exports$1, {
3479
+ HeadersAdapter: function() {
3480
+ return HeadersAdapter;
3481
+ },
3482
+ ReadonlyHeadersError: function() {
3483
+ return ReadonlyHeadersError;
3484
+ }
3485
+ });
3486
+ const _reflect = requireReflect();
3487
+ class ReadonlyHeadersError extends Error {
3488
+ constructor() {
3489
+ super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers");
3490
+ }
3491
+ static callable() {
3492
+ throw new ReadonlyHeadersError();
3493
+ }
3494
+ }
3495
+ class HeadersAdapter extends Headers {
3496
+ constructor(headers2) {
3497
+ super();
3498
+ this.headers = new Proxy(headers2, {
3499
+ get(target, prop, receiver) {
3500
+ if (typeof prop === "symbol") {
3501
+ return _reflect.ReflectAdapter.get(target, prop, receiver);
3502
+ }
3503
+ const lowercased = prop.toLowerCase();
3504
+ const original = Object.keys(headers2).find((o) => o.toLowerCase() === lowercased);
3505
+ if (typeof original === "undefined") return;
3506
+ return _reflect.ReflectAdapter.get(target, original, receiver);
3507
+ },
3508
+ set(target, prop, value, receiver) {
3509
+ if (typeof prop === "symbol") {
3510
+ return _reflect.ReflectAdapter.set(target, prop, value, receiver);
3511
+ }
3512
+ const lowercased = prop.toLowerCase();
3513
+ const original = Object.keys(headers2).find((o) => o.toLowerCase() === lowercased);
3514
+ return _reflect.ReflectAdapter.set(target, original ?? prop, value, receiver);
3515
+ },
3516
+ has(target, prop) {
3517
+ if (typeof prop === "symbol") return _reflect.ReflectAdapter.has(target, prop);
3518
+ const lowercased = prop.toLowerCase();
3519
+ const original = Object.keys(headers2).find((o) => o.toLowerCase() === lowercased);
3520
+ if (typeof original === "undefined") return false;
3521
+ return _reflect.ReflectAdapter.has(target, original);
3522
+ },
3523
+ deleteProperty(target, prop) {
3524
+ if (typeof prop === "symbol") return _reflect.ReflectAdapter.deleteProperty(target, prop);
3525
+ const lowercased = prop.toLowerCase();
3526
+ const original = Object.keys(headers2).find((o) => o.toLowerCase() === lowercased);
3527
+ if (typeof original === "undefined") return true;
3528
+ return _reflect.ReflectAdapter.deleteProperty(target, original);
3529
+ }
3530
+ });
3531
+ }
3532
+ /**
3533
+ * Seals a Headers instance to prevent modification by throwing an error when
3534
+ * any mutating method is called.
3535
+ */
3536
+ static seal(headers2) {
3537
+ return new Proxy(headers2, {
3538
+ get(target, prop, receiver) {
3539
+ switch (prop) {
3540
+ case "append":
3541
+ case "delete":
3542
+ case "set":
3543
+ return ReadonlyHeadersError.callable;
3544
+ default:
3545
+ return _reflect.ReflectAdapter.get(target, prop, receiver);
3546
+ }
3547
+ }
3548
+ });
3549
+ }
3550
+ /**
3551
+ * Merges a header value into a string. This stores multiple values as an
3552
+ * array, so we need to merge them into a string.
3553
+ *
3554
+ * @param value a header value
3555
+ * @returns a merged header value (a string)
3556
+ */
3557
+ merge(value) {
3558
+ if (Array.isArray(value)) return value.join(", ");
3559
+ return value;
3560
+ }
3561
+ /**
3562
+ * Creates a Headers instance from a plain object or a Headers instance.
3563
+ *
3564
+ * @param headers a plain object or a Headers instance
3565
+ * @returns a headers instance
3566
+ */
3567
+ static from(headers2) {
3568
+ if (headers2 instanceof Headers) return headers2;
3569
+ return new HeadersAdapter(headers2);
3570
+ }
3571
+ append(name, value) {
3572
+ const existing = this.headers[name];
3573
+ if (typeof existing === "string") {
3574
+ this.headers[name] = [
3575
+ existing,
3576
+ value
3577
+ ];
3578
+ } else if (Array.isArray(existing)) {
3579
+ existing.push(value);
3580
+ } else {
3581
+ this.headers[name] = value;
3582
+ }
3583
+ }
3584
+ delete(name) {
3585
+ delete this.headers[name];
3586
+ }
3587
+ get(name) {
3588
+ const value = this.headers[name];
3589
+ if (typeof value !== "undefined") return this.merge(value);
3590
+ return null;
3591
+ }
3592
+ has(name) {
3593
+ return typeof this.headers[name] !== "undefined";
3594
+ }
3595
+ set(name, value) {
3596
+ this.headers[name] = value;
3597
+ }
3598
+ forEach(callbackfn, thisArg) {
3599
+ for (const [name, value] of this.entries()) {
3600
+ callbackfn.call(thisArg, value, name, this);
3601
+ }
3602
+ }
3603
+ *entries() {
3604
+ for (const key of Object.keys(this.headers)) {
3605
+ const name = key.toLowerCase();
3606
+ const value = this.get(name);
3607
+ yield [
3608
+ name,
3609
+ value
3610
+ ];
3611
+ }
3612
+ }
3613
+ *keys() {
3614
+ for (const key of Object.keys(this.headers)) {
3615
+ const name = key.toLowerCase();
3616
+ yield name;
3617
+ }
3618
+ }
3619
+ *values() {
3620
+ for (const key of Object.keys(this.headers)) {
3621
+ const value = this.get(key);
3622
+ yield value;
3623
+ }
3624
+ }
3625
+ [Symbol.iterator]() {
3626
+ return this.entries();
3627
+ }
3628
+ }
3629
+ })(headers);
3630
+ return headers;
3631
+ }
3632
+ var parseRelativeUrl = {};
3633
+ var hasRequiredParseRelativeUrl;
3634
+ function requireParseRelativeUrl() {
3635
+ if (hasRequiredParseRelativeUrl) return parseRelativeUrl;
3636
+ hasRequiredParseRelativeUrl = 1;
3637
+ (function(exports$1) {
3638
+ Object.defineProperty(exports$1, "__esModule", {
3639
+ value: true
3640
+ });
3641
+ Object.defineProperty(exports$1, "parseRelativeUrl", {
3642
+ enumerable: true,
3643
+ get: function() {
3644
+ return parseRelativeUrl2;
3645
+ }
3646
+ });
3647
+ const _utils = requireUtils();
3648
+ const _querystring = requireQuerystring();
3649
+ function parseRelativeUrl2(url, base, parseQuery = true) {
3650
+ const globalBase = new URL(typeof window === "undefined" ? "http://n" : (0, _utils.getLocationOrigin)());
3651
+ const resolvedBase = base ? new URL(base, globalBase) : url.startsWith(".") ? new URL(typeof window === "undefined" ? "http://n" : window.location.href) : globalBase;
3652
+ const { pathname, searchParams, search, hash, href, origin } = url.startsWith("/") ? (
3653
+ // See https://nodejs.org/api/http.html#messageurl
3654
+ // Not using `origin` to support other protocols
3655
+ new URL(`${resolvedBase.protocol}//${resolvedBase.host}${url}`)
3656
+ ) : new URL(url, resolvedBase);
3657
+ if (origin !== globalBase.origin) {
3658
+ throw Object.defineProperty(new Error(`invariant: invalid relative URL, router received ${url}`), "__NEXT_ERROR_CODE", {
3659
+ value: "E159",
3660
+ enumerable: false,
3661
+ configurable: true
3662
+ });
3663
+ }
3664
+ return {
3665
+ auth: null,
3666
+ host: null,
3667
+ hostname: null,
3668
+ pathname,
3669
+ port: null,
3670
+ protocol: null,
3671
+ query: parseQuery ? (0, _querystring.searchParamsToUrlQuery)(searchParams) : void 0,
3672
+ search,
3673
+ hash,
3674
+ href: href.slice(origin.length),
3675
+ // We don't know for relative URLs at this point since we set a custom, internal
3676
+ // base that isn't surfaced to users.
3677
+ slashes: null
3678
+ };
3679
+ }
3680
+ })(parseRelativeUrl);
3681
+ return parseRelativeUrl;
3682
+ }
3683
+ var instantValidationError = {};
3684
+ var hasRequiredInstantValidationError;
3685
+ function requireInstantValidationError() {
3686
+ if (hasRequiredInstantValidationError) return instantValidationError;
3687
+ hasRequiredInstantValidationError = 1;
3688
+ (function(exports$1) {
3689
+ Object.defineProperty(exports$1, "__esModule", {
3690
+ value: true
3691
+ });
3692
+ function _export(target, all) {
3693
+ for (var name in all) Object.defineProperty(target, name, {
3694
+ enumerable: true,
3695
+ get: all[name]
3696
+ });
3697
+ }
3698
+ _export(exports$1, {
3699
+ InstantValidationError: function() {
3700
+ return InstantValidationError;
3701
+ },
3702
+ isInstantValidationError: function() {
3703
+ return isInstantValidationError;
3704
+ }
3705
+ });
3706
+ const INSTANT_VALIDATION_ERROR_DIGEST = "INSTANT_VALIDATION_ERROR";
3707
+ function isInstantValidationError(err) {
3708
+ return !!(err && typeof err === "object" && err instanceof Error && err.digest === INSTANT_VALIDATION_ERROR_DIGEST);
3709
+ }
3710
+ class InstantValidationError extends Error {
3711
+ constructor(...args) {
3712
+ super(...args), this.digest = INSTANT_VALIDATION_ERROR_DIGEST;
3713
+ }
3714
+ }
3715
+ })(instantValidationError);
3716
+ return instantValidationError;
3717
+ }
3718
+ var reflectUtils = {};
3719
+ var hasRequiredReflectUtils;
3720
+ function requireReflectUtils() {
3721
+ if (hasRequiredReflectUtils) return reflectUtils;
3722
+ hasRequiredReflectUtils = 1;
3723
+ (function(exports$1) {
3724
+ Object.defineProperty(exports$1, "__esModule", {
3725
+ value: true
3726
+ });
3727
+ function _export(target, all) {
3728
+ for (var name in all) Object.defineProperty(target, name, {
3729
+ enumerable: true,
3730
+ get: all[name]
3731
+ });
3732
+ }
3733
+ _export(exports$1, {
3734
+ describeHasCheckingStringProperty: function() {
3735
+ return describeHasCheckingStringProperty;
3736
+ },
3737
+ describeStringPropertyAccess: function() {
3738
+ return describeStringPropertyAccess;
3739
+ },
3740
+ wellKnownProperties: function() {
3741
+ return wellKnownProperties;
3742
+ }
3743
+ });
3744
+ const isDefinitelyAValidIdentifier = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
3745
+ function describeStringPropertyAccess(target, prop) {
3746
+ if (isDefinitelyAValidIdentifier.test(prop)) {
3747
+ return `\`${target}.${prop}\``;
3748
+ }
3749
+ return `\`${target}[${JSON.stringify(prop)}]\``;
3750
+ }
3751
+ function describeHasCheckingStringProperty(target, prop) {
3752
+ const stringifiedProp = JSON.stringify(prop);
3753
+ return `\`Reflect.has(${target}, ${stringifiedProp})\`, \`${stringifiedProp} in ${target}\`, or similar`;
3754
+ }
3755
+ const wellKnownProperties = /* @__PURE__ */ new Set([
3756
+ "hasOwnProperty",
3757
+ "isPrototypeOf",
3758
+ "propertyIsEnumerable",
3759
+ "toString",
3760
+ "valueOf",
3761
+ "toLocaleString",
3762
+ // Promise prototype
3763
+ "then",
3764
+ "catch",
3765
+ "finally",
3766
+ // React Promise extension
3767
+ "status",
3768
+ // 'value',
3769
+ // 'error',
3770
+ // React introspection
3771
+ "displayName",
3772
+ "_debugInfo",
3773
+ // Common tested properties
3774
+ "toJSON",
3775
+ "$$typeof",
3776
+ "__esModule",
3777
+ // Tested by flight when checking for iterables
3778
+ "@@iterator"
3779
+ ]);
3780
+ })(reflectUtils);
3781
+ return reflectUtils;
3782
+ }
3783
+ var hasRequiredInstantSamples;
3784
+ function requireInstantSamples() {
3785
+ if (hasRequiredInstantSamples) return instantSamples;
3786
+ hasRequiredInstantSamples = 1;
3787
+ (function(exports$1) {
3788
+ Object.defineProperty(exports$1, "__esModule", {
3789
+ value: true
3790
+ });
3791
+ function _export(target, all) {
3792
+ for (var name in all) Object.defineProperty(target, name, {
3793
+ enumerable: true,
3794
+ get: all[name]
3795
+ });
3796
+ }
3797
+ _export(exports$1, {
3798
+ assertRootParamInSamples: function() {
3799
+ return assertRootParamInSamples;
3800
+ },
3801
+ createCookiesFromSample: function() {
3802
+ return createCookiesFromSample;
3803
+ },
3804
+ createDraftModeForValidation: function() {
3805
+ return createDraftModeForValidation;
3806
+ },
3807
+ createExhaustiveParamsProxy: function() {
3808
+ return createExhaustiveParamsProxy;
3809
+ },
3810
+ createExhaustiveSearchParamsProxy: function() {
3811
+ return createExhaustiveSearchParamsProxy;
3812
+ },
3813
+ createExhaustiveURLSearchParamsProxy: function() {
3814
+ return createExhaustiveURLSearchParamsProxy;
3815
+ },
3816
+ createHeadersFromSample: function() {
3817
+ return createHeadersFromSample;
3818
+ },
3819
+ createRelativeURLFromSamples: function() {
3820
+ return createRelativeURLFromSamples;
3821
+ },
3822
+ createValidationSampleTracking: function() {
3823
+ return createValidationSampleTracking;
3824
+ },
3825
+ trackMissingSampleError: function() {
3826
+ return trackMissingSampleError;
3827
+ },
3828
+ trackMissingSampleErrorAndThrow: function() {
3829
+ return trackMissingSampleErrorAndThrow;
3830
+ }
3831
+ });
3832
+ const _cookies = requireCookies();
3833
+ const _requestcookies = requireRequestCookies();
3834
+ const _headers = requireHeaders();
3835
+ const _getsegmentparam = requireGetSegmentParam();
3836
+ const _parserelativeurl = requireParseRelativeUrl();
3837
+ const _invarianterror = requireInvariantError();
3838
+ const _instantvalidationerror = requireInstantValidationError();
3839
+ const _workunitasyncstorageexternal = requireWorkUnitAsyncStorage_external();
3840
+ const _reflectutils = requireReflectUtils();
3841
+ function createValidationSampleTracking() {
3842
+ return {
3843
+ missingSampleErrors: []
3844
+ };
3845
+ }
3846
+ function getExpectedSampleTracking() {
3847
+ let validationSampleTracking = null;
3848
+ const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
3849
+ if (workUnitStore) {
3850
+ switch (workUnitStore.type) {
3851
+ case "request":
3852
+ case "validation-client":
3853
+ validationSampleTracking = workUnitStore.validationSampleTracking ?? null;
3854
+ break;
3855
+ }
3856
+ }
3857
+ if (!validationSampleTracking) {
3858
+ throw Object.defineProperty(new _invarianterror.InvariantError("Expected to have a workUnitStore that provides validationSampleTracking"), "__NEXT_ERROR_CODE", {
3859
+ value: "E1110",
3860
+ enumerable: false,
3861
+ configurable: true
3862
+ });
3863
+ }
3864
+ return validationSampleTracking;
3865
+ }
3866
+ function trackMissingSampleError(error) {
3867
+ const validationSampleTracking = getExpectedSampleTracking();
3868
+ validationSampleTracking.missingSampleErrors.push(error);
3869
+ }
3870
+ function trackMissingSampleErrorAndThrow(error) {
3871
+ trackMissingSampleError(error);
3872
+ throw error;
3873
+ }
3874
+ function createCookiesFromSample(sampleCookies, route) {
3875
+ const declaredNames = /* @__PURE__ */ new Set();
3876
+ const cookies2 = new _cookies.RequestCookies(new Headers());
3877
+ if (sampleCookies) {
3878
+ for (const cookie of sampleCookies) {
3879
+ declaredNames.add(cookie.name);
3880
+ if (cookie.value !== null) {
3881
+ cookies2.set(cookie.name, cookie.value);
3882
+ }
3883
+ }
3884
+ }
3885
+ const sealed = _requestcookies.RequestCookiesAdapter.seal(cookies2);
3886
+ return new Proxy(sealed, {
3887
+ get(target, prop, receiver) {
3888
+ if (prop === "has") {
3889
+ const originalMethod = Reflect.get(target, prop, receiver);
3890
+ const wrappedMethod = function(name) {
3891
+ if (!declaredNames.has(name)) {
3892
+ trackMissingSampleErrorAndThrow(createMissingCookieSampleError(route, name));
3893
+ }
3894
+ return originalMethod.call(target, name);
3895
+ };
3896
+ return wrappedMethod;
3897
+ }
3898
+ if (prop === "get") {
3899
+ const originalMethod = Reflect.get(target, prop, receiver);
3900
+ const wrappedMethod = function(nameOrCookie) {
3901
+ let name;
3902
+ if (typeof nameOrCookie === "string") {
3903
+ name = nameOrCookie;
3904
+ } else if (nameOrCookie && typeof nameOrCookie === "object" && typeof nameOrCookie.name === "string") {
3905
+ name = nameOrCookie.name;
3906
+ } else {
3907
+ return originalMethod.call(target, nameOrCookie);
3908
+ }
3909
+ if (!declaredNames.has(name)) {
3910
+ trackMissingSampleErrorAndThrow(createMissingCookieSampleError(route, name));
3911
+ }
3912
+ return originalMethod.call(target, name);
3913
+ };
3914
+ return wrappedMethod;
3915
+ }
3916
+ return Reflect.get(target, prop, receiver);
3917
+ }
3918
+ });
3919
+ }
3920
+ function createMissingCookieSampleError(route, name) {
3921
+ return Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route "${route}" accessed cookie "${name}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`cookies\` array, or \`{ name: "${name}", value: null }\` if it should be absent.`), "__NEXT_ERROR_CODE", {
3922
+ value: "E1115",
3923
+ enumerable: false,
3924
+ configurable: true
3925
+ });
3926
+ }
3927
+ function createHeadersFromSample(rawSampleHeaders, sampleCookies, route) {
3928
+ const sampleHeaders = rawSampleHeaders ? [
3929
+ ...rawSampleHeaders
3930
+ ] : [];
3931
+ if (sampleHeaders.find(([name]) => name.toLowerCase() === "cookie")) {
3932
+ throw Object.defineProperty(new _instantvalidationerror.InstantValidationError('Invalid sample: Defining cookies via a "cookie" header is not supported. Use `cookies: [{ name: ..., value: ... }]` instead.'), "__NEXT_ERROR_CODE", {
3933
+ value: "E1111",
3934
+ enumerable: false,
3935
+ configurable: true
3936
+ });
3937
+ }
3938
+ if (sampleCookies) {
3939
+ const cookieHeaderValue = sampleCookies.toString();
3940
+ sampleHeaders.push([
3941
+ "cookie",
3942
+ // if the `cookies` samples were empty, or they were all `null`, then we have no cookies,
3943
+ // and the header isn't present, but should remains readable, so we set it to null.
3944
+ cookieHeaderValue !== "" ? cookieHeaderValue : null
3945
+ ]);
3946
+ }
3947
+ const declaredNames = /* @__PURE__ */ new Set();
3948
+ const headersInit = {};
3949
+ for (const [name, value] of sampleHeaders) {
3950
+ declaredNames.add(name.toLowerCase());
3951
+ if (value !== null) {
3952
+ headersInit[name.toLowerCase()] = value;
3953
+ }
3954
+ }
3955
+ const sealed = _headers.HeadersAdapter.seal(_headers.HeadersAdapter.from(headersInit));
3956
+ return new Proxy(sealed, {
3957
+ get(target, prop, receiver) {
3958
+ if (prop === "get" || prop === "has") {
3959
+ const originalMethod = Reflect.get(target, prop, receiver);
3960
+ const patchedMethod = function(rawName) {
3961
+ const name = rawName.toLowerCase();
3962
+ if (!declaredNames.has(name)) {
3963
+ trackMissingSampleErrorAndThrow(Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route "${route}" accessed header "${name}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`headers\` array, or \`["${name}", null]\` if it should be absent.`), "__NEXT_ERROR_CODE", {
3964
+ value: "E1116",
3965
+ enumerable: false,
3966
+ configurable: true
3967
+ }));
3968
+ }
3969
+ return originalMethod.call(target, name);
3970
+ };
3971
+ return patchedMethod;
3972
+ }
3973
+ return Reflect.get(target, prop, receiver);
3974
+ }
3975
+ });
3976
+ }
3977
+ function createDraftModeForValidation() {
3978
+ return {
3979
+ get isEnabled() {
3980
+ return false;
3981
+ },
3982
+ enable() {
3983
+ throw Object.defineProperty(new Error("Draft mode cannot be enabled during build-time instant validation."), "__NEXT_ERROR_CODE", {
3984
+ value: "E1092",
3985
+ enumerable: false,
3986
+ configurable: true
3987
+ });
3988
+ },
3989
+ disable() {
3990
+ throw Object.defineProperty(new Error("Draft mode cannot be disabled during build-time instant validation."), "__NEXT_ERROR_CODE", {
3991
+ value: "E1094",
3992
+ enumerable: false,
3993
+ configurable: true
3994
+ });
3995
+ }
3996
+ };
3997
+ }
3998
+ function createExhaustiveParamsProxy(underlyingParams, declaredParamNames, route) {
3999
+ return new Proxy(underlyingParams, {
4000
+ get(target, prop, receiver) {
4001
+ if (typeof prop === "string" && !_reflectutils.wellKnownProperties.has(prop) && // Only error when accessing a param that is part of the route but wasn't provided.
4002
+ // accessing properties that aren't expected to be a valid param value is fine.
4003
+ prop in underlyingParams && !declaredParamNames.has(prop)) {
4004
+ trackMissingSampleErrorAndThrow(Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route "${route}" accessed param "${prop}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`params\` object.`), "__NEXT_ERROR_CODE", {
4005
+ value: "E1095",
4006
+ enumerable: false,
4007
+ configurable: true
4008
+ }));
4009
+ }
4010
+ return Reflect.get(target, prop, receiver);
4011
+ }
4012
+ });
4013
+ }
4014
+ function createExhaustiveSearchParamsProxy(searchParams, declaredSearchParamNames, route) {
4015
+ return new Proxy(searchParams, {
4016
+ get(target, prop, receiver) {
4017
+ if (typeof prop === "string" && !_reflectutils.wellKnownProperties.has(prop) && !declaredSearchParamNames.has(prop)) {
4018
+ trackMissingSampleErrorAndThrow(createMissingSearchParamSampleError(route, prop));
4019
+ }
4020
+ return Reflect.get(target, prop, receiver);
4021
+ },
4022
+ has(target, prop) {
4023
+ if (typeof prop === "string" && !_reflectutils.wellKnownProperties.has(prop) && !declaredSearchParamNames.has(prop)) {
4024
+ trackMissingSampleErrorAndThrow(createMissingSearchParamSampleError(route, prop));
4025
+ }
4026
+ return Reflect.has(target, prop);
4027
+ }
4028
+ });
4029
+ }
4030
+ function createExhaustiveURLSearchParamsProxy(searchParams, declaredSearchParamNames, route) {
4031
+ return new Proxy(searchParams, {
4032
+ get(target, prop, receiver) {
4033
+ if (prop === "get" || prop === "getAll" || prop === "has") {
4034
+ const originalMathod = Reflect.get(target, prop, receiver);
4035
+ return (name) => {
4036
+ if (typeof name === "string" && !declaredSearchParamNames.has(name)) {
4037
+ trackMissingSampleErrorAndThrow(createMissingSearchParamSampleError(route, name));
4038
+ }
4039
+ return originalMathod.call(target, name);
4040
+ };
4041
+ }
4042
+ const value = Reflect.get(target, prop, receiver);
4043
+ if (typeof value === "function" && !Object.hasOwn(target, prop)) {
4044
+ return value.bind(target);
4045
+ }
4046
+ return value;
4047
+ }
4048
+ });
4049
+ }
4050
+ function createMissingSearchParamSampleError(route, name) {
4051
+ return Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route "${route}" accessed searchParam "${name}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`searchParams\` object, or \`{ "${name}": null }\` if it should be absent.`), "__NEXT_ERROR_CODE", {
4052
+ value: "E1098",
4053
+ enumerable: false,
4054
+ configurable: true
4055
+ });
4056
+ }
4057
+ function createRelativeURLFromSamples(route, sampleParams, sampleSearchParams) {
4058
+ const pathname = createPathnameFromRouteAndSampleParams(route, sampleParams ?? {});
4059
+ let search = "";
4060
+ if (sampleSearchParams) {
4061
+ const qs = createURLSearchParamsFromSample(sampleSearchParams).toString();
4062
+ if (qs) {
4063
+ search = "?" + qs;
4064
+ }
4065
+ }
4066
+ return (0, _parserelativeurl.parseRelativeUrl)(pathname + search, void 0, true);
4067
+ }
4068
+ function createURLSearchParamsFromSample(sampleSearchParams) {
4069
+ const result = new URLSearchParams();
4070
+ if (sampleSearchParams) {
4071
+ for (const [key, value] of Object.entries(sampleSearchParams)) {
4072
+ if (value === null || value === void 0) continue;
4073
+ if (Array.isArray(value)) {
4074
+ for (const v of value) {
4075
+ result.append(key, v);
4076
+ }
4077
+ } else {
4078
+ result.set(key, value);
4079
+ }
4080
+ }
4081
+ }
4082
+ return result;
4083
+ }
4084
+ function createPathnameFromRouteAndSampleParams(route, params) {
4085
+ let interpolatedSegments = [];
4086
+ const rawSegments = route.split("/");
4087
+ for (const rawSegment of rawSegments) {
4088
+ const param = (0, _getsegmentparam.getSegmentParam)(rawSegment);
4089
+ if (param) {
4090
+ switch (param.paramType) {
4091
+ case "catchall":
4092
+ case "optional-catchall": {
4093
+ let paramValue = params[param.paramName];
4094
+ if (paramValue === void 0) {
4095
+ paramValue = [
4096
+ rawSegment
4097
+ ];
4098
+ } else if (!Array.isArray(paramValue)) {
4099
+ throw Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Expected sample param value for segment '${rawSegment}' to be an array of strings, got ${typeof paramValue}`), "__NEXT_ERROR_CODE", {
4100
+ value: "E1104",
4101
+ enumerable: false,
4102
+ configurable: true
4103
+ });
4104
+ }
4105
+ interpolatedSegments.push(...paramValue.map((v) => encodeURIComponent(v)));
4106
+ break;
4107
+ }
4108
+ case "dynamic": {
4109
+ let paramValue = params[param.paramName];
4110
+ if (paramValue === void 0) {
4111
+ paramValue = rawSegment;
4112
+ } else if (typeof paramValue !== "string") {
4113
+ throw Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Expected sample param value for segment '${rawSegment}' to be a string, got ${typeof paramValue}`), "__NEXT_ERROR_CODE", {
4114
+ value: "E1108",
4115
+ enumerable: false,
4116
+ configurable: true
4117
+ });
4118
+ }
4119
+ interpolatedSegments.push(encodeURIComponent(paramValue));
4120
+ break;
4121
+ }
4122
+ case "catchall-intercepted-(..)(..)":
4123
+ case "catchall-intercepted-(.)":
4124
+ case "catchall-intercepted-(..)":
4125
+ case "catchall-intercepted-(...)":
4126
+ case "dynamic-intercepted-(..)(..)":
4127
+ case "dynamic-intercepted-(.)":
4128
+ case "dynamic-intercepted-(..)":
4129
+ case "dynamic-intercepted-(...)": {
4130
+ throw Object.defineProperty(new _invarianterror.InvariantError("Not implemented: Validation of interception routes"), "__NEXT_ERROR_CODE", {
4131
+ value: "E1106",
4132
+ enumerable: false,
4133
+ configurable: true
4134
+ });
4135
+ }
4136
+ default: {
4137
+ param.paramType;
4138
+ }
4139
+ }
4140
+ } else {
4141
+ interpolatedSegments.push(rawSegment);
4142
+ }
4143
+ }
4144
+ return interpolatedSegments.join("/");
4145
+ }
4146
+ function assertRootParamInSamples(workStore, sampleParams, paramName) {
4147
+ if (sampleParams && paramName in sampleParams) ;
4148
+ else {
4149
+ const route = workStore.route;
4150
+ trackMissingSampleErrorAndThrow(Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route "${route}" accessed root param "${paramName}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`params\` object.`), "__NEXT_ERROR_CODE", {
4151
+ value: "E1114",
4152
+ enumerable: false,
4153
+ configurable: true
4154
+ }));
4155
+ }
4156
+ }
4157
+ })(instantSamples);
4158
+ return instantSamples;
4159
+ }
4160
+ var hasRequiredInstantSamplesClient;
4161
+ function requireInstantSamplesClient() {
4162
+ if (hasRequiredInstantSamplesClient) return instantSamplesClient;
4163
+ hasRequiredInstantSamplesClient = 1;
4164
+ (function(exports$1) {
4165
+ Object.defineProperty(exports$1, "__esModule", {
4166
+ value: true
4167
+ });
4168
+ function _export(target, all) {
4169
+ for (var name in all) Object.defineProperty(target, name, {
4170
+ enumerable: true,
4171
+ get: all[name]
4172
+ });
4173
+ }
4174
+ _export(exports$1, {
4175
+ expectCompleteParamsInClientValidation: function() {
4176
+ return expectCompleteParamsInClientValidation;
4177
+ },
4178
+ instrumentParamsForClientValidation: function() {
4179
+ return instrumentParamsForClientValidation;
4180
+ },
4181
+ instrumentSearchParamsForClientValidation: function() {
4182
+ return instrumentSearchParamsForClientValidation;
4183
+ }
4184
+ });
4185
+ const _workunitasyncstorageexternal = requireWorkUnitAsyncStorage_external();
4186
+ const _workasyncstorageexternal = requireWorkAsyncStorage_external();
4187
+ const _instantsamples = requireInstantSamples();
4188
+ const _instantvalidationerror = requireInstantValidationError();
4189
+ function instrumentParamsForClientValidation(underlyingParams) {
4190
+ const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
4191
+ const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
4192
+ if (workStore && workUnitStore) {
4193
+ switch (workUnitStore.type) {
4194
+ case "validation-client": {
4195
+ if (workUnitStore.validationSamples) {
4196
+ const declaredKeys = new Set(Object.keys(workUnitStore.validationSamples.params ?? {}));
4197
+ return (0, _instantsamples.createExhaustiveParamsProxy)(underlyingParams, declaredKeys, workStore.route);
4198
+ }
4199
+ break;
4200
+ }
4201
+ }
4202
+ }
4203
+ return underlyingParams;
4204
+ }
4205
+ function expectCompleteParamsInClientValidation(expression) {
4206
+ const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
4207
+ const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
4208
+ if (workStore && workUnitStore) {
4209
+ switch (workUnitStore.type) {
4210
+ case "validation-client": {
4211
+ if (workUnitStore.validationSamples) {
4212
+ const fallbackParams = workUnitStore.fallbackRouteParams;
4213
+ if (fallbackParams && fallbackParams.size > 0) {
4214
+ const missingParams = Array.from(fallbackParams.keys());
4215
+ (0, _instantsamples.trackMissingSampleErrorAndThrow)(Object.defineProperty(new _instantvalidationerror.InstantValidationError(`Route "${workStore.route}" called ${expression} but param${missingParams.length > 1 ? "s" : ""} ${missingParams.map((p) => `"${p}"`).join(", ")} ${missingParams.length > 1 ? "are" : "is"} not defined in the \`samples\` of \`unstable_instant\`. ${expression} requires all route params to be provided.`), "__NEXT_ERROR_CODE", {
4216
+ value: "E1109",
4217
+ enumerable: false,
4218
+ configurable: true
4219
+ }));
4220
+ }
4221
+ }
4222
+ break;
4223
+ }
4224
+ }
4225
+ }
4226
+ }
4227
+ function instrumentSearchParamsForClientValidation(underlyingSearchParams) {
4228
+ const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
4229
+ const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
4230
+ if (workStore && workUnitStore) {
4231
+ switch (workUnitStore.type) {
4232
+ case "validation-client": {
4233
+ if (workUnitStore.validationSamples) {
4234
+ const declaredKeys = new Set(Object.keys(workUnitStore.validationSamples.searchParams ?? {}));
4235
+ return (0, _instantsamples.createExhaustiveURLSearchParamsProxy)(underlyingSearchParams, declaredKeys, workStore.route);
4236
+ }
4237
+ break;
4238
+ }
4239
+ }
4240
+ }
4241
+ return underlyingSearchParams;
4242
+ }
4243
+ })(instantSamplesClient);
4244
+ return instantSamplesClient;
4245
+ }
2222
4246
  var hasRequiredNavigation$1;
2223
4247
  function requireNavigation$1() {
2224
4248
  if (hasRequiredNavigation$1) return navigation$1.exports;
@@ -2298,6 +4322,7 @@ function requireNavigation$1() {
2298
4322
  const _navigationreactserver = requireNavigation_reactServer();
2299
4323
  const useDynamicRouteParams = typeof window === "undefined" ? requireDynamicRendering().useDynamicRouteParams : void 0;
2300
4324
  const useDynamicSearchParams = typeof window === "undefined" ? requireDynamicRendering().useDynamicSearchParams : void 0;
4325
+ const { instrumentParamsForClientValidation, instrumentSearchParamsForClientValidation, expectCompleteParamsInClientValidation } = typeof window === "undefined" && process.env.__NEXT_CACHE_COMPONENTS ? requireInstantSamplesClient() : {};
2301
4326
  function useSearchParams() {
2302
4327
  useDynamicSearchParams == null ? void 0 : useDynamicSearchParams("useSearchParams()");
2303
4328
  const searchParams = (0, _react.useContext)(_hooksclientcontextsharedruntime.SearchParamsContext);
@@ -2309,6 +4334,9 @@ function requireNavigation$1() {
2309
4334
  }, [
2310
4335
  searchParams
2311
4336
  ]);
4337
+ if (typeof window === "undefined" && process.env.__NEXT_CACHE_COMPONENTS && readonlySearchParams) {
4338
+ return instrumentSearchParamsForClientValidation(readonlySearchParams);
4339
+ }
2312
4340
  if (process.env.NODE_ENV !== "production" && "use" in _react.default) {
2313
4341
  const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
2314
4342
  if (navigationPromises) {
@@ -2320,6 +4348,10 @@ function requireNavigation$1() {
2320
4348
  function usePathname() {
2321
4349
  useDynamicRouteParams == null ? void 0 : useDynamicRouteParams("usePathname()");
2322
4350
  const pathname = (0, _react.useContext)(_hooksclientcontextsharedruntime.PathnameContext);
4351
+ if (typeof window === "undefined" && process.env.__NEXT_CACHE_COMPONENTS && pathname) {
4352
+ expectCompleteParamsInClientValidation("usePathname()");
4353
+ return pathname;
4354
+ }
2323
4355
  if (process.env.NODE_ENV !== "production" && "use" in _react.default) {
2324
4356
  const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
2325
4357
  if (navigationPromises) {
@@ -2342,6 +4374,9 @@ function requireNavigation$1() {
2342
4374
  function useParams() {
2343
4375
  useDynamicRouteParams == null ? void 0 : useDynamicRouteParams("useParams()");
2344
4376
  const params = (0, _react.useContext)(_hooksclientcontextsharedruntime.PathParamsContext);
4377
+ if (typeof window === "undefined" && process.env.__NEXT_CACHE_COMPONENTS && params) {
4378
+ return instrumentParamsForClientValidation(params);
4379
+ }
2345
4380
  if (process.env.NODE_ENV !== "production" && "use" in _react.default) {
2346
4381
  const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
2347
4382
  if (navigationPromises) {
@@ -2355,6 +4390,9 @@ function requireNavigation$1() {
2355
4390
  useDynamicRouteParams == null ? void 0 : useDynamicRouteParams("useSelectedLayoutSegments()");
2356
4391
  const context = (0, _react.useContext)(_approutercontextsharedruntime.LayoutRouterContext);
2357
4392
  if (!context) return null;
4393
+ if (typeof window === "undefined" && process.env.__NEXT_CACHE_COMPONENTS && context) {
4394
+ expectCompleteParamsInClientValidation("useSelectedLayoutSegments()");
4395
+ }
2358
4396
  if (process.env.NODE_ENV !== "production" && "use" in _react.default) {
2359
4397
  const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
2360
4398
  if (navigationPromises) {
@@ -2371,6 +4409,9 @@ function requireNavigation$1() {
2371
4409
  useDynamicRouteParams == null ? void 0 : useDynamicRouteParams("useSelectedLayoutSegment()");
2372
4410
  const navigationPromises = (0, _react.useContext)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
2373
4411
  const selectedLayoutSegments = useSelectedLayoutSegments(parallelRouteKey);
4412
+ if (typeof window === "undefined" && process.env.__NEXT_CACHE_COMPONENTS) {
4413
+ expectCompleteParamsInClientValidation("useSelectedLayoutSegment()");
4414
+ }
2374
4415
  if (process.env.NODE_ENV !== "production" && navigationPromises && "use" in _react.default) {
2375
4416
  const promise = (_a = navigationPromises.selectedLayoutSegmentPromises) == null ? void 0 : _a.get(parallelRouteKey);
2376
4417
  if (promise) {
@@ -2399,4 +4440,4 @@ var navigationExports = requireNavigation();
2399
4440
  export {
2400
4441
  navigationExports as n
2401
4442
  };
2402
- //# sourceMappingURL=navigation-C2hD8Jlk.js.map
4443
+ //# sourceMappingURL=navigation-BCeRD3ib.js.map