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