boreal-ui 0.0.39 → 0.0.40
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/{Badge-DOn6E2bS.cjs → Badge-CyGz8K5W.cjs} +4 -1
- package/dist/core/Badge-CyGz8K5W.cjs.map +1 -0
- package/dist/core/{Badge-Dpjq6lUF.js → Badge-DnE8lt7-.js} +4 -1
- package/dist/core/Badge-DnE8lt7-.js.map +1 -0
- package/dist/core/Badge.cjs.js +1 -1
- package/dist/core/Badge.js +1 -1
- package/dist/core/{Card-DftqfPue.cjs → Card-CmyXglyZ.cjs} +6 -5
- package/dist/core/Card-CmyXglyZ.cjs.map +1 -0
- package/dist/core/{Card-D-GQwaUJ.js → Card-v8Cu1hJe.js} +6 -5
- package/dist/core/Card-v8Cu1hJe.js.map +1 -0
- package/dist/core/Card.cjs.js +1 -1
- package/dist/core/Card.js +1 -1
- package/dist/core/{Chip-D4vbSudX.js → Chip-BjbtoFKm.js} +2 -2
- package/dist/core/{Chip-D4vbSudX.js.map → Chip-BjbtoFKm.js.map} +1 -1
- package/dist/core/{Chip-CWsfLyyU.cjs → Chip-c2mN7R-R.cjs} +2 -2
- package/dist/core/{Chip-CWsfLyyU.cjs.map → Chip-c2mN7R-R.cjs.map} +1 -1
- package/dist/core/Chip.cjs.js +1 -1
- package/dist/core/Chip.js +1 -1
- package/dist/core/{CommandPalette-CXKBDCbP.cjs → CommandPalette-CPhVbQAc.cjs} +2 -2
- package/dist/core/{CommandPalette-CXKBDCbP.cjs.map → CommandPalette-CPhVbQAc.cjs.map} +1 -1
- package/dist/core/{CommandPalette-N556smLj.js → CommandPalette-Df69KRv4.js} +2 -2
- package/dist/core/{CommandPalette-N556smLj.js.map → CommandPalette-Df69KRv4.js.map} +1 -1
- package/dist/core/CommandPalette.cjs.js +1 -1
- package/dist/core/CommandPalette.js +1 -1
- package/dist/core/{Dropdown-CwofYHjq.js → Dropdown-CR3xr5K-.js} +2 -2
- package/dist/core/{Dropdown-CwofYHjq.js.map → Dropdown-CR3xr5K-.js.map} +1 -1
- package/dist/core/{Dropdown-DvwHouyC.cjs → Dropdown-CjPfU1K-.cjs} +2 -2
- package/dist/core/{Dropdown-DvwHouyC.cjs.map → Dropdown-CjPfU1K-.cjs.map} +1 -1
- package/dist/core/Dropdown.cjs.js +1 -1
- package/dist/core/Dropdown.js +1 -1
- package/dist/core/{FileUpload-Du7vDDdf.cjs → FileUpload-BJ3RJxT3.cjs} +3 -3
- package/dist/core/{FileUpload-Du7vDDdf.cjs.map → FileUpload-BJ3RJxT3.cjs.map} +1 -1
- package/dist/core/{FileUpload-Q8aDsaFs.js → FileUpload-C0eHx1h8.js} +3 -3
- package/dist/core/{FileUpload-Q8aDsaFs.js.map → FileUpload-C0eHx1h8.js.map} +1 -1
- package/dist/core/FileUpload.cjs.js +1 -1
- package/dist/core/FileUpload.js +1 -1
- package/dist/core/{Footer-DMOA1W7N.cjs → Footer-CYIUIgV1.cjs} +3 -3
- package/dist/core/Footer-CYIUIgV1.cjs.map +1 -0
- package/dist/core/{Footer-zO4RGjCl.js → Footer-D9RimHx9.js} +3 -3
- package/dist/core/Footer-D9RimHx9.js.map +1 -0
- package/dist/core/Footer.cjs.js +1 -1
- package/dist/core/Footer.js +1 -1
- package/dist/core/{FormGroup-C2TWC17P.cjs → FormGroup-Cit_2_Wo.cjs} +5 -8
- package/dist/core/FormGroup-Cit_2_Wo.cjs.map +1 -0
- package/dist/core/{FormGroup-tSK_NN0-.js → FormGroup-DDZ1D_CI.js} +5 -8
- package/dist/core/FormGroup-DDZ1D_CI.js.map +1 -0
- package/dist/core/FormGroup.cjs.js +1 -1
- package/dist/core/FormGroup.js +1 -1
- package/dist/core/{IconButton-_lxTppua.js → IconButton-BMZhwYXB.js} +2 -2
- package/dist/core/IconButton-BMZhwYXB.js.map +1 -0
- package/dist/core/{IconButton-CR9bTZoJ.cjs → IconButton-Bio6Azm-.cjs} +2 -2
- package/dist/core/IconButton-Bio6Azm-.cjs.map +1 -0
- package/dist/core/IconButton.cjs.js +1 -1
- package/dist/core/IconButton.js +1 -1
- package/dist/core/{MarkdownRenderer-LUXCa_a8.cjs → MarkdownRenderer-Bn6vcfSd.cjs} +3 -2
- package/dist/core/MarkdownRenderer-Bn6vcfSd.cjs.map +1 -0
- package/dist/core/{MarkdownRenderer-B1LmmpZm.js → MarkdownRenderer-Co787hku.js} +3 -2
- package/dist/core/MarkdownRenderer-Co787hku.js.map +1 -0
- package/dist/core/MarkdownRenderer.cjs.js +1 -1
- package/dist/core/MarkdownRenderer.js +1 -1
- package/dist/core/MessagePopUp.cjs.js +1 -1
- package/dist/core/MessagePopUp.js +1 -1
- package/dist/core/{MessagePopup-BlbPMecd.js → MessagePopup-B3lEfar7.js} +2 -2
- package/dist/core/{MessagePopup-BlbPMecd.js.map → MessagePopup-B3lEfar7.js.map} +1 -1
- package/dist/core/{MessagePopup-hxloT7aK.cjs → MessagePopup-CtdpuRFv.cjs} +2 -2
- package/dist/core/{MessagePopup-hxloT7aK.cjs.map → MessagePopup-CtdpuRFv.cjs.map} +1 -1
- package/dist/core/{MetricBox-Dh911MS2.js → MetricBox-CPug-nxo.js} +11 -2
- package/dist/core/MetricBox-CPug-nxo.js.map +1 -0
- package/dist/core/{MetricBox-BcOdQM-l.cjs → MetricBox-DVo4UUQv.cjs} +11 -2
- package/dist/core/MetricBox-DVo4UUQv.cjs.map +1 -0
- package/dist/core/MetricBox.cjs.js +1 -1
- package/dist/core/MetricBox.js +1 -1
- package/dist/core/{Modal-D1G1Csp9.js → Modal-DFhYDYb9.js} +2 -2
- package/dist/core/{Modal-D1G1Csp9.js.map → Modal-DFhYDYb9.js.map} +1 -1
- package/dist/core/{Modal-D-ZoA_xx.cjs → Modal-FB4mTmQW.cjs} +2 -2
- package/dist/core/{Modal-D-ZoA_xx.cjs.map → Modal-FB4mTmQW.cjs.map} +1 -1
- package/dist/core/Modal.cjs.js +1 -1
- package/dist/core/Modal.js +1 -1
- package/dist/core/{NotificationCenter-BrUNpJAx.js → NotificationCenter-DLCzWNve.js} +2 -2
- package/dist/core/{NotificationCenter-BrUNpJAx.js.map → NotificationCenter-DLCzWNve.js.map} +1 -1
- package/dist/core/{NotificationCenter-Dqwu2Z6s.cjs → NotificationCenter-DfOOEt9N.cjs} +2 -2
- package/dist/core/{NotificationCenter-Dqwu2Z6s.cjs.map → NotificationCenter-DfOOEt9N.cjs.map} +1 -1
- package/dist/core/NotificationCenter.cjs.js +1 -1
- package/dist/core/NotificationCenter.js +1 -1
- package/dist/core/{Pager-CZF6O7rq.js → Pager-DBHI7yRW.js} +2 -2
- package/dist/core/{Pager-CZF6O7rq.js.map → Pager-DBHI7yRW.js.map} +1 -1
- package/dist/core/{Pager-C_SG4CIc.cjs → Pager-Dv6D3kXa.cjs} +2 -2
- package/dist/core/{Pager-C_SG4CIc.cjs.map → Pager-Dv6D3kXa.cjs.map} +1 -1
- package/dist/core/Pager.cjs.js +1 -1
- package/dist/core/Pager.js +1 -1
- package/dist/core/{Skeleton-Cwn3_gc7.js → Skeleton-BjpQHG5i.js} +2 -2
- package/dist/core/{Skeleton-Cwn3_gc7.js.map → Skeleton-BjpQHG5i.js.map} +1 -1
- package/dist/core/{Skeleton-BLVD5mDI.cjs → Skeleton-tetAZCSl.cjs} +2 -2
- package/dist/core/{Skeleton-BLVD5mDI.cjs.map → Skeleton-tetAZCSl.cjs.map} +1 -1
- package/dist/core/Skeleton.cjs.js +1 -1
- package/dist/core/Skeleton.js +1 -1
- package/dist/core/{Spinner-D81UG24n.js → Spinner-D1CHbKYU.js} +2 -2
- package/dist/core/Spinner-D1CHbKYU.js.map +1 -0
- package/dist/core/{Spinner-CEIk_hpT.cjs → Spinner-JTcQ_d4T.cjs} +2 -2
- package/dist/core/Spinner-JTcQ_d4T.cjs.map +1 -0
- package/dist/core/Spinner.cjs.js +1 -1
- package/dist/core/Spinner.js +1 -1
- package/dist/core/{Stepper-Cjb7ckXo.js → Stepper-C6xjvhZJ.js} +2 -2
- package/dist/core/{Stepper-Cjb7ckXo.js.map → Stepper-C6xjvhZJ.js.map} +1 -1
- package/dist/core/{Stepper-BuCLqbtQ.cjs → Stepper-JNVBVHc3.cjs} +2 -2
- package/dist/core/{Stepper-BuCLqbtQ.cjs.map → Stepper-JNVBVHc3.cjs.map} +1 -1
- package/dist/core/Stepper.cjs.js +1 -1
- package/dist/core/Stepper.js +1 -1
- package/dist/core/TagInput.cjs.js +1 -1
- package/dist/core/TagInput.js +1 -1
- package/dist/core/{Taginput-DgbxDttA.cjs → Taginput-BXCxdLf0.cjs} +3 -3
- package/dist/core/{Taginput-DgbxDttA.cjs.map → Taginput-BXCxdLf0.cjs.map} +1 -1
- package/dist/core/{Taginput-CKekAR72.js → Taginput-CoxxwLXg.js} +3 -3
- package/dist/core/{Taginput-CKekAR72.js.map → Taginput-CoxxwLXg.js.map} +1 -1
- package/dist/core/{TextInput-DFOjxri2.cjs → TextInput-DYALlUc_.cjs} +2 -2
- package/dist/core/{TextInput-DFOjxri2.cjs.map → TextInput-DYALlUc_.cjs.map} +1 -1
- package/dist/core/{TextInput-7kV66ccj.js → TextInput-qw-jAx_3.js} +2 -2
- package/dist/core/{TextInput-7kV66ccj.js.map → TextInput-qw-jAx_3.js.map} +1 -1
- package/dist/core/TextInput.cjs.js +1 -1
- package/dist/core/TextInput.js +1 -1
- package/dist/core/{style.css → boreal-ui.css} +6976 -6974
- package/dist/core/index.cjs.js +20 -20
- package/dist/core/index.js +20 -20
- package/dist/next/{Accordion-DKNh8FaP.cjs → Accordion-BPWTEHym.cjs} +50 -50
- package/dist/next/{Accordion-DKNh8FaP.cjs.map → Accordion-BPWTEHym.cjs.map} +1 -1
- package/dist/next/{Accordion-BkiAI6vY.js → Accordion-DY243Bq9.js} +50 -50
- package/dist/next/{Accordion-BkiAI6vY.js.map → Accordion-DY243Bq9.js.map} +1 -1
- package/dist/next/Accordion.cjs.js +1 -1
- package/dist/next/Accordion.js +1 -1
- package/dist/next/{Avatar-ijMVfQpY.js → Avatar-B-Ws4Ueo.js} +42 -42
- package/dist/next/{Avatar-ijMVfQpY.js.map → Avatar-B-Ws4Ueo.js.map} +1 -1
- package/dist/next/{Avatar-Ctm74prt.cjs → Avatar-B9sMyRWr.cjs} +42 -42
- package/dist/next/{Avatar-Ctm74prt.cjs.map → Avatar-B9sMyRWr.cjs.map} +1 -1
- package/dist/next/Avatar.cjs.js +1 -1
- package/dist/next/Avatar.js +1 -1
- package/dist/next/{Badge-k6Dk5S_p.js → Badge-BZNYm0IU.js} +34 -31
- package/dist/next/Badge-BZNYm0IU.js.map +1 -0
- package/dist/next/{Badge-DbmM5wGc.cjs → Badge-dTyh833r.cjs} +34 -31
- package/dist/next/Badge-dTyh833r.cjs.map +1 -0
- package/dist/next/Badge.cjs.js +1 -1
- package/dist/next/Badge.js +1 -1
- package/dist/next/{Breadcrumbs-CWv3TrV_.js → Breadcrumbs-BPWmV24h.js} +39 -39
- package/dist/next/{Breadcrumbs-CWv3TrV_.js.map → Breadcrumbs-BPWmV24h.js.map} +1 -1
- package/dist/next/{Breadcrumbs-BrH6_8Kt.cjs → Breadcrumbs-BcXj2PgR.cjs} +39 -39
- package/dist/next/{Breadcrumbs-BrH6_8Kt.cjs.map → Breadcrumbs-BcXj2PgR.cjs.map} +1 -1
- package/dist/next/Breadcrumbs.cjs.js +1 -1
- package/dist/next/Breadcrumbs.js +1 -1
- package/dist/next/{Button-D8Kff8sN.cjs → Button-B1Fh4G0_.cjs} +47 -47
- package/dist/next/{Button-D8Kff8sN.cjs.map → Button-B1Fh4G0_.cjs.map} +1 -1
- package/dist/next/{Button-BjY7f3mw.js → Button-uZ3xTOOt.js} +47 -47
- package/dist/next/{Button-BjY7f3mw.js.map → Button-uZ3xTOOt.js.map} +1 -1
- package/dist/next/Button.cjs.js +1 -1
- package/dist/next/Button.js +1 -1
- package/dist/next/{Card-BFmGnvxN.cjs → Card-BOu9cws1.cjs} +68 -67
- package/dist/next/Card-BOu9cws1.cjs.map +1 -0
- package/dist/next/{Card-DhxLw6XZ.js → Card-CZu4-xEt.js} +68 -67
- package/dist/next/Card-CZu4-xEt.js.map +1 -0
- package/dist/next/Card.cjs.js +1 -1
- package/dist/next/Card.js +1 -1
- package/dist/next/CheckBox.cjs.js +1 -1
- package/dist/next/CheckBox.js +1 -1
- package/dist/next/{Checkbox-DVr6H6mN.js → Checkbox-BJ0rBZLF.js} +44 -44
- package/dist/next/{Checkbox-DVr6H6mN.js.map → Checkbox-BJ0rBZLF.js.map} +1 -1
- package/dist/next/{Checkbox-B-y0lEjJ.cjs → Checkbox-Ch7osD3y.cjs} +44 -44
- package/dist/next/{Checkbox-B-y0lEjJ.cjs.map → Checkbox-Ch7osD3y.cjs.map} +1 -1
- package/dist/next/{Chip-C8ayWG9-.js → Chip-BB3Awc2g.js} +51 -51
- package/dist/next/{Chip-C8ayWG9-.js.map → Chip-BB3Awc2g.js.map} +1 -1
- package/dist/next/{Chip-C4-KUcHh.cjs → Chip-DzFaUPed.cjs} +51 -51
- package/dist/next/{Chip-C4-KUcHh.cjs.map → Chip-DzFaUPed.cjs.map} +1 -1
- package/dist/next/Chip.cjs.js +1 -1
- package/dist/next/Chip.js +1 -1
- package/dist/next/{CircularProgress-Cz9G0WeQ.js → CircularProgress-BUqdguII.js} +37 -37
- package/dist/next/{CircularProgress-Cz9G0WeQ.js.map → CircularProgress-BUqdguII.js.map} +1 -1
- package/dist/next/{CircularProgress-UhpLA94q.cjs → CircularProgress-Cp2pGFmc.cjs} +37 -37
- package/dist/next/{CircularProgress-UhpLA94q.cjs.map → CircularProgress-Cp2pGFmc.cjs.map} +1 -1
- package/dist/next/CircularProgress.cjs.js +1 -1
- package/dist/next/CircularProgress.js +1 -1
- package/dist/next/{ColorPicker-DvgeIT_p.cjs → ColorPicker-BHtO2mbU.cjs} +38 -38
- package/dist/next/{ColorPicker-DvgeIT_p.cjs.map → ColorPicker-BHtO2mbU.cjs.map} +1 -1
- package/dist/next/{ColorPicker-1naDOGhp.js → ColorPicker-ChWOekWP.js} +38 -38
- package/dist/next/{ColorPicker-1naDOGhp.js.map → ColorPicker-ChWOekWP.js.map} +1 -1
- package/dist/next/ColorPicker.cjs.js +1 -1
- package/dist/next/ColorPicker.js +1 -1
- package/dist/next/{CommandPalette-ypXbi8zW.cjs → CommandPalette-BT9X_yL0.cjs} +42 -42
- package/dist/next/{CommandPalette-ypXbi8zW.cjs.map → CommandPalette-BT9X_yL0.cjs.map} +1 -1
- package/dist/next/{CommandPalette-XP4v5FE6.js → CommandPalette-DEf12Et3.js} +42 -42
- package/dist/next/{CommandPalette-XP4v5FE6.js.map → CommandPalette-DEf12Et3.js.map} +1 -1
- package/dist/next/CommandPalette.cjs.js +1 -1
- package/dist/next/CommandPalette.js +1 -1
- package/dist/next/{DataTable-jUelgv2H.js → DataTable-CnvOkZrU.js} +40 -40
- package/dist/next/{DataTable-jUelgv2H.js.map → DataTable-CnvOkZrU.js.map} +1 -1
- package/dist/next/{DataTable-jq0suGoA.cjs → DataTable-DQ1QRyZw.cjs} +40 -40
- package/dist/next/{DataTable-jq0suGoA.cjs.map → DataTable-DQ1QRyZw.cjs.map} +1 -1
- package/dist/next/DataTable.cjs.js +1 -1
- package/dist/next/DataTable.js +1 -1
- package/dist/next/{DateTimePicker-D5gEfxvd.cjs → DateTimePicker-2M4AJJXm.cjs} +46 -46
- package/dist/next/{DateTimePicker-D5gEfxvd.cjs.map → DateTimePicker-2M4AJJXm.cjs.map} +1 -1
- package/dist/next/{DateTimePicker-BTm6T3-E.js → DateTimePicker-IvBWNgkK.js} +46 -46
- package/dist/next/{DateTimePicker-BTm6T3-E.js.map → DateTimePicker-IvBWNgkK.js.map} +1 -1
- package/dist/next/DateTimePicker.cjs.js +1 -1
- package/dist/next/DateTimePicker.js +1 -1
- package/dist/next/{Divider-BYKFFi3a.js → Divider-BCCzNbAE.js} +28 -28
- package/dist/next/{Divider-BYKFFi3a.js.map → Divider-BCCzNbAE.js.map} +1 -1
- package/dist/next/{Divider-CczNc7mx.cjs → Divider-ByDYa4v6.cjs} +28 -28
- package/dist/next/{Divider-CczNc7mx.cjs.map → Divider-ByDYa4v6.cjs.map} +1 -1
- package/dist/next/Divider.cjs.js +1 -1
- package/dist/next/Divider.js +1 -1
- package/dist/next/{Dropdown-yaMx19im.cjs → Dropdown-DEdk2QjS.cjs} +22 -22
- package/dist/next/{Dropdown-yaMx19im.cjs.map → Dropdown-DEdk2QjS.cjs.map} +1 -1
- package/dist/next/{Dropdown-CJGb6wyQ.js → Dropdown-qdxH-NQR.js} +22 -22
- package/dist/next/{Dropdown-CJGb6wyQ.js.map → Dropdown-qdxH-NQR.js.map} +1 -1
- package/dist/next/Dropdown.cjs.js +1 -1
- package/dist/next/Dropdown.js +1 -1
- package/dist/next/{EmptyState-DIymA2cZ.js → EmptyState-BNzFHAk3.js} +31 -31
- package/dist/next/{EmptyState-DIymA2cZ.js.map → EmptyState-BNzFHAk3.js.map} +1 -1
- package/dist/next/{EmptyState-CGPIGpz2.cjs → EmptyState-CXyx1WlG.cjs} +31 -31
- package/dist/next/{EmptyState-CGPIGpz2.cjs.map → EmptyState-CXyx1WlG.cjs.map} +1 -1
- package/dist/next/EmptyState.cjs.js +1 -1
- package/dist/next/EmptyState.js +1 -1
- package/dist/next/{FileUpload-CIued3w1.js → FileUpload-DBSXPL55.js} +52 -52
- package/dist/next/{FileUpload-CIued3w1.js.map → FileUpload-DBSXPL55.js.map} +1 -1
- package/dist/next/{FileUpload-MVXOV0j9.cjs → FileUpload-DwlqapHn.cjs} +52 -52
- package/dist/next/{FileUpload-MVXOV0j9.cjs.map → FileUpload-DwlqapHn.cjs.map} +1 -1
- package/dist/next/FileUpload.cjs.js +1 -1
- package/dist/next/FileUpload.js +1 -1
- package/dist/next/{Footer-DAZLz11H.cjs → Footer-BxrsmJyY.cjs} +45 -45
- package/dist/next/Footer-BxrsmJyY.cjs.map +1 -0
- package/dist/next/{Footer-BSEbf6CL.js → Footer-CP_PaLon.js} +45 -45
- package/dist/next/Footer-CP_PaLon.js.map +1 -0
- package/dist/next/Footer.cjs.js +1 -1
- package/dist/next/Footer.js +1 -1
- package/dist/next/{FormGroup-DbUqgg_b.js → FormGroup-QfUhtyhx.js} +34 -37
- package/dist/next/FormGroup-QfUhtyhx.js.map +1 -0
- package/dist/next/{FormGroup-6Ss6pNqV.cjs → FormGroup-U3EwnB0M.cjs} +34 -37
- package/dist/next/FormGroup-U3EwnB0M.cjs.map +1 -0
- package/dist/next/FormGroup.cjs.js +1 -1
- package/dist/next/FormGroup.js +1 -1
- package/dist/next/{IconButton-VSz8qAIg.cjs → IconButton-2l-_HOMB.cjs} +31 -31
- package/dist/next/IconButton-2l-_HOMB.cjs.map +1 -0
- package/dist/next/{IconButton-qQljwBB2.js → IconButton-BTUFKRZt.js} +31 -31
- package/dist/next/IconButton-BTUFKRZt.js.map +1 -0
- package/dist/next/IconButton.cjs.js +1 -1
- package/dist/next/IconButton.js +1 -1
- package/dist/next/{MarkdownRenderer-B7lwemDw.js → MarkdownRenderer-B8_D0j7d.js} +14 -13
- package/dist/next/{MarkdownRenderer-B7lwemDw.js.map → MarkdownRenderer-B8_D0j7d.js.map} +1 -1
- package/dist/next/{MarkdownRenderer-BvfBDz9X.cjs → MarkdownRenderer-l6hdKOt0.cjs} +14 -13
- package/dist/next/{MarkdownRenderer-BvfBDz9X.cjs.map → MarkdownRenderer-l6hdKOt0.cjs.map} +1 -1
- package/dist/next/MarkdownRenderer.cjs.js +1 -1
- package/dist/next/MarkdownRenderer.js +1 -1
- package/dist/next/MessagePopUp.cjs.js +1 -1
- package/dist/next/MessagePopUp.js +1 -1
- package/dist/next/{MessagePopup-B5OaSUBr.js → MessagePopup-N2n3NvgX.js} +19 -19
- package/dist/next/{MessagePopup-B5OaSUBr.js.map → MessagePopup-N2n3NvgX.js.map} +1 -1
- package/dist/next/{MessagePopup-BQ4OFvwo.cjs → MessagePopup-PB3e2lTg.cjs} +19 -19
- package/dist/next/{MessagePopup-BQ4OFvwo.cjs.map → MessagePopup-PB3e2lTg.cjs.map} +1 -1
- package/dist/next/{MetricBox-Dl3iruBZ.js → MetricBox-BjdAzOrZ.js} +57 -48
- package/dist/next/MetricBox-BjdAzOrZ.js.map +1 -0
- package/dist/next/{MetricBox-BylPOvoO.cjs → MetricBox-C3B6Bkcb.cjs} +57 -48
- package/dist/next/MetricBox-C3B6Bkcb.cjs.map +1 -0
- package/dist/next/MetricBox.cjs.js +1 -1
- package/dist/next/MetricBox.js +1 -1
- package/dist/next/{Modal-CevpqeOy.cjs → Modal-DHTrvNfc.cjs} +17 -17
- package/dist/next/{Modal-CevpqeOy.cjs.map → Modal-DHTrvNfc.cjs.map} +1 -1
- package/dist/next/{Modal-BARibygG.js → Modal-QTq5IcKa.js} +17 -17
- package/dist/next/{Modal-BARibygG.js.map → Modal-QTq5IcKa.js.map} +1 -1
- package/dist/next/Modal.cjs.js +1 -1
- package/dist/next/Modal.js +1 -1
- package/dist/next/{NavBar-C5FBdZT6.cjs → NavBar-Ds_02bAe.cjs} +40 -40
- package/dist/next/{NavBar-C5FBdZT6.cjs.map → NavBar-Ds_02bAe.cjs.map} +1 -1
- package/dist/next/{NavBar-Bucpo8_3.js → NavBar-v_ckzQIo.js} +40 -40
- package/dist/next/{NavBar-Bucpo8_3.js.map → NavBar-v_ckzQIo.js.map} +1 -1
- package/dist/next/NavBar.cjs.js +1 -1
- package/dist/next/NavBar.js +1 -1
- package/dist/next/{NotificationCenter-BD58bbOZ.cjs → NotificationCenter-DbYxpoy6.cjs} +43 -43
- package/dist/next/{NotificationCenter-BD58bbOZ.cjs.map → NotificationCenter-DbYxpoy6.cjs.map} +1 -1
- package/dist/next/{NotificationCenter-CSwbscYh.js → NotificationCenter-DxK09uJd.js} +43 -43
- package/dist/next/{NotificationCenter-CSwbscYh.js.map → NotificationCenter-DxK09uJd.js.map} +1 -1
- package/dist/next/NotificationCenter.cjs.js +1 -1
- package/dist/next/NotificationCenter.js +1 -1
- package/dist/next/{Pager-B-xaM28_.cjs → Pager-BU5RjNwR.cjs} +7 -7
- package/dist/next/{Pager-B-xaM28_.cjs.map → Pager-BU5RjNwR.cjs.map} +1 -1
- package/dist/next/{Pager-DWzCtb2Q.js → Pager-CtzyTqIl.js} +7 -7
- package/dist/next/{Pager-DWzCtb2Q.js.map → Pager-CtzyTqIl.js.map} +1 -1
- package/dist/next/Pager.cjs.js +1 -1
- package/dist/next/Pager.js +1 -1
- package/dist/next/{PopOver-QAYHaYcd.js → PopOver-CmPp9PkL.js} +40 -40
- package/dist/next/{PopOver-QAYHaYcd.js.map → PopOver-CmPp9PkL.js.map} +1 -1
- package/dist/next/{PopOver-Dp4eqN8G.cjs → PopOver-ixERZLpM.cjs} +40 -40
- package/dist/next/{PopOver-Dp4eqN8G.cjs.map → PopOver-ixERZLpM.cjs.map} +1 -1
- package/dist/next/PopOver.cjs.js +1 -1
- package/dist/next/PopOver.js +1 -1
- package/dist/next/{ProgressBar-BrO0fvaM.js → ProgressBar-BoU2HJv3.js} +42 -42
- package/dist/next/{ProgressBar-BrO0fvaM.js.map → ProgressBar-BoU2HJv3.js.map} +1 -1
- package/dist/next/{ProgressBar-DfXSlpKX.cjs → ProgressBar-C6zKbiq5.cjs} +42 -42
- package/dist/next/{ProgressBar-DfXSlpKX.cjs.map → ProgressBar-C6zKbiq5.cjs.map} +1 -1
- package/dist/next/ProgressBar.cjs.js +1 -1
- package/dist/next/ProgressBar.js +1 -1
- package/dist/next/{RadioButton-6cb-ZRjy.cjs → RadioButton-BCu934Uo.cjs} +38 -38
- package/dist/next/{RadioButton-6cb-ZRjy.cjs.map → RadioButton-BCu934Uo.cjs.map} +1 -1
- package/dist/next/{RadioButton-Dz_e0WUT.js → RadioButton-C14Rsx9o.js} +38 -38
- package/dist/next/{RadioButton-Dz_e0WUT.js.map → RadioButton-C14Rsx9o.js.map} +1 -1
- package/dist/next/RadioButton.cjs.js +1 -1
- package/dist/next/RadioButton.js +1 -1
- package/dist/next/{Rating-C4pqzKNQ.cjs → Rating-C9BgQANc.cjs} +34 -34
- package/dist/next/{Rating-C4pqzKNQ.cjs.map → Rating-C9BgQANc.cjs.map} +1 -1
- package/dist/next/{Rating-DbQ61tMY.js → Rating-aheV3uZJ.js} +34 -34
- package/dist/next/{Rating-DbQ61tMY.js.map → Rating-aheV3uZJ.js.map} +1 -1
- package/dist/next/Rating.cjs.js +1 -1
- package/dist/next/Rating.js +1 -1
- package/dist/next/{STT-CCzJFcVP.js → STT-CFFr1_Ls.js} +14 -14
- package/dist/next/{STT-CCzJFcVP.js.map → STT-CFFr1_Ls.js.map} +1 -1
- package/dist/next/{STT-C6kV0zwW.cjs → STT-GyAuX3-m.cjs} +14 -14
- package/dist/next/{STT-C6kV0zwW.cjs.map → STT-GyAuX3-m.cjs.map} +1 -1
- package/dist/next/ScrollToTop.cjs.js +1 -1
- package/dist/next/ScrollToTop.js +1 -1
- package/dist/next/{Select-CZivQIlV.js → Select-CPwU0IV9.js} +32 -32
- package/dist/next/{Select-CZivQIlV.js.map → Select-CPwU0IV9.js.map} +1 -1
- package/dist/next/{Select-CSAN6B98.cjs → Select-Dgcy2vVe.cjs} +32 -32
- package/dist/next/{Select-CSAN6B98.cjs.map → Select-Dgcy2vVe.cjs.map} +1 -1
- package/dist/next/Select.cjs.js +1 -1
- package/dist/next/Select.js +1 -1
- package/dist/next/{Sidebar-BVeRWv61.js → Sidebar-CJ4VrQIW.js} +38 -38
- package/dist/next/{Sidebar-BVeRWv61.js.map → Sidebar-CJ4VrQIW.js.map} +1 -1
- package/dist/next/{Sidebar-DcDJjNrK.cjs → Sidebar-DajVSn82.cjs} +38 -38
- package/dist/next/{Sidebar-DcDJjNrK.cjs.map → Sidebar-DajVSn82.cjs.map} +1 -1
- package/dist/next/Sidebar.cjs.js +1 -1
- package/dist/next/Sidebar.js +1 -1
- package/dist/next/{Skeleton-rSW1X4hk.js → Skeleton-D8C29p3K.js} +27 -27
- package/dist/next/{Skeleton-rSW1X4hk.js.map → Skeleton-D8C29p3K.js.map} +1 -1
- package/dist/next/{Skeleton-JgU17y-3.cjs → Skeleton-Dmz7m0dj.cjs} +27 -27
- package/dist/next/{Skeleton-JgU17y-3.cjs.map → Skeleton-Dmz7m0dj.cjs.map} +1 -1
- package/dist/next/Skeleton.cjs.js +1 -1
- package/dist/next/Skeleton.js +1 -1
- package/dist/next/{Slider-CdSPPw1x.js → Slider-BOAgWYkH.js} +43 -43
- package/dist/next/{Slider-CdSPPw1x.js.map → Slider-BOAgWYkH.js.map} +1 -1
- package/dist/next/{Slider-B8e96nMm.cjs → Slider-DQM9nV1P.cjs} +43 -43
- package/dist/next/{Slider-B8e96nMm.cjs.map → Slider-DQM9nV1P.cjs.map} +1 -1
- package/dist/next/Slider.cjs.js +1 -1
- package/dist/next/Slider.js +1 -1
- package/dist/next/{Spinner-B89FhxVt.cjs → Spinner-0GZngKjG.cjs} +38 -38
- package/dist/next/Spinner-0GZngKjG.cjs.map +1 -0
- package/dist/next/{Spinner-ChiOXzru.js → Spinner-BFAOf4tt.js} +38 -38
- package/dist/next/Spinner-BFAOf4tt.js.map +1 -0
- package/dist/next/Spinner.cjs.js +1 -1
- package/dist/next/Spinner.js +1 -1
- package/dist/next/{Stepper-9uHSgp7y.js → Stepper-B03bz8wT.js} +40 -40
- package/dist/next/{Stepper-9uHSgp7y.js.map → Stepper-B03bz8wT.js.map} +1 -1
- package/dist/next/{Stepper-UwSloxRf.cjs → Stepper-XZSIlydV.cjs} +40 -40
- package/dist/next/{Stepper-UwSloxRf.cjs.map → Stepper-XZSIlydV.cjs.map} +1 -1
- package/dist/next/Stepper.cjs.js +1 -1
- package/dist/next/Stepper.js +1 -1
- package/dist/next/{Tabs-D2jqRrxR.cjs → Tabs-D8Efg8wn.cjs} +44 -44
- package/dist/next/{Tabs-D2jqRrxR.cjs.map → Tabs-D8Efg8wn.cjs.map} +1 -1
- package/dist/next/{Tabs-CvYx2xtH.js → Tabs-DmrS_FUa.js} +44 -44
- package/dist/next/{Tabs-CvYx2xtH.js.map → Tabs-DmrS_FUa.js.map} +1 -1
- package/dist/next/Tabs.cjs.js +1 -1
- package/dist/next/Tabs.js +1 -1
- package/dist/next/{TagInput-Dym0BPK1.cjs → TagInput-Bfjg9pZQ.cjs} +48 -48
- package/dist/next/{TagInput-Dym0BPK1.cjs.map → TagInput-Bfjg9pZQ.cjs.map} +1 -1
- package/dist/next/{TagInput-DUWgLslk.js → TagInput-CtYKwhEi.js} +48 -48
- package/dist/next/{TagInput-DUWgLslk.js.map → TagInput-CtYKwhEi.js.map} +1 -1
- package/dist/next/TagInput.cjs.js +1 -1
- package/dist/next/TagInput.js +1 -1
- package/dist/next/{TextArea-xg4t0Lzo.js → TextArea-n9HgwyJE.js} +25 -25
- package/dist/next/{TextArea-xg4t0Lzo.js.map → TextArea-n9HgwyJE.js.map} +1 -1
- package/dist/next/{TextArea-9AvILSCY.cjs → TextArea-rwkjK4Rf.cjs} +25 -25
- package/dist/next/{TextArea-9AvILSCY.cjs.map → TextArea-rwkjK4Rf.cjs.map} +1 -1
- package/dist/next/TextArea.cjs.js +1 -1
- package/dist/next/TextArea.js +1 -1
- package/dist/next/{TextInput-D9dzooMU.js → TextInput-ChmIMzj2.js} +26 -26
- package/dist/next/{TextInput-D9dzooMU.js.map → TextInput-ChmIMzj2.js.map} +1 -1
- package/dist/next/{TextInput-Cr0WjibW.cjs → TextInput-Z2izAjJj.cjs} +26 -26
- package/dist/next/{TextInput-Cr0WjibW.cjs.map → TextInput-Z2izAjJj.cjs.map} +1 -1
- package/dist/next/TextInput.cjs.js +1 -1
- package/dist/next/TextInput.js +1 -1
- package/dist/next/{Timeline-DXSXZumg.cjs → Timeline-3bNOgI6C.cjs} +28 -28
- package/dist/next/{Timeline-DXSXZumg.cjs.map → Timeline-3bNOgI6C.cjs.map} +1 -1
- package/dist/next/{Timeline-Cg0FWWVc.js → Timeline-9947mxJO.js} +28 -28
- package/dist/next/{Timeline-Cg0FWWVc.js.map → Timeline-9947mxJO.js.map} +1 -1
- package/dist/next/Timeline.cjs.js +1 -1
- package/dist/next/Timeline.js +1 -1
- package/dist/next/{Toggle-CnpONDwl.js → Toggle-C60HtU15.js} +30 -30
- package/dist/next/{Toggle-CnpONDwl.js.map → Toggle-C60HtU15.js.map} +1 -1
- package/dist/next/{Toggle-BNK7uC_N.cjs → Toggle-XcxNC4zl.cjs} +30 -30
- package/dist/next/{Toggle-BNK7uC_N.cjs.map → Toggle-XcxNC4zl.cjs.map} +1 -1
- package/dist/next/Toggle.cjs.js +1 -1
- package/dist/next/Toggle.js +1 -1
- package/dist/next/{Toolbar-DHUozW08.cjs → Toolbar-C45B_I44.cjs} +35 -35
- package/dist/next/{Toolbar-DHUozW08.cjs.map → Toolbar-C45B_I44.cjs.map} +1 -1
- package/dist/next/{Toolbar-007Q19jl.js → Toolbar-Dq1qqx4P.js} +35 -35
- package/dist/next/{Toolbar-007Q19jl.js.map → Toolbar-Dq1qqx4P.js.map} +1 -1
- package/dist/next/Toolbar.cjs.js +1 -1
- package/dist/next/Toolbar.js +1 -1
- package/dist/next/{Tooltip-2XEuDIAw.js → Tooltip-BHIA1zE1.js} +39 -39
- package/dist/next/{Tooltip-2XEuDIAw.js.map → Tooltip-BHIA1zE1.js.map} +1 -1
- package/dist/next/{Tooltip-FCqrcC7D.cjs → Tooltip-BXd5FXXv.cjs} +39 -39
- package/dist/next/{Tooltip-FCqrcC7D.cjs.map → Tooltip-BXd5FXXv.cjs.map} +1 -1
- package/dist/next/Tooltip.cjs.js +1 -1
- package/dist/next/Tooltip.js +1 -1
- package/dist/next/{style.css → boreal-ui.css} +9636 -9636
- package/dist/next/{image-VX9Ty9NQ.cjs → image-A4nTeRaX.cjs} +1079 -1025
- package/dist/next/image-A4nTeRaX.cjs.map +1 -0
- package/dist/next/{image-CEz9QtOW.js → image-BBS8QO15.js} +1083 -1029
- package/dist/next/image-BBS8QO15.js.map +1 -0
- package/dist/next/index.cjs.js +69 -69
- package/dist/next/index.js +69 -69
- package/dist/next/link-CxWP3aXr.js +3829 -0
- package/dist/next/link-CxWP3aXr.js.map +1 -0
- package/dist/next/link-lNk_lOdS.cjs +3828 -0
- package/dist/next/link-lNk_lOdS.cjs.map +1 -0
- package/dist/next/navigation-CZU71Pmb.cjs +2443 -0
- package/dist/next/navigation-CZU71Pmb.cjs.map +1 -0
- package/dist/next/navigation-DxXFNXZM.js +2444 -0
- package/dist/next/navigation-DxXFNXZM.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/Badge/BadgeBase.d.ts.map +1 -1
- package/dist/types/components/Card/CardBase.d.ts.map +1 -1
- package/dist/types/components/FormGroup/FormGroupBase.d.ts.map +1 -1
- package/dist/types/components/MarkdownRenderer/MarkdownRendererBase.d.ts.map +1 -1
- package/dist/types/components/MetricBox/MetricBoxBase.d.ts.map +1 -1
- package/package.json +12 -11
- package/dist/core/Badge-DOn6E2bS.cjs.map +0 -1
- package/dist/core/Badge-Dpjq6lUF.js.map +0 -1
- package/dist/core/Card-D-GQwaUJ.js.map +0 -1
- package/dist/core/Card-DftqfPue.cjs.map +0 -1
- package/dist/core/Footer-DMOA1W7N.cjs.map +0 -1
- package/dist/core/Footer-zO4RGjCl.js.map +0 -1
- package/dist/core/FormGroup-C2TWC17P.cjs.map +0 -1
- package/dist/core/FormGroup-tSK_NN0-.js.map +0 -1
- package/dist/core/IconButton-CR9bTZoJ.cjs.map +0 -1
- package/dist/core/IconButton-_lxTppua.js.map +0 -1
- package/dist/core/MarkdownRenderer-B1LmmpZm.js.map +0 -1
- package/dist/core/MarkdownRenderer-LUXCa_a8.cjs.map +0 -1
- package/dist/core/MetricBox-BcOdQM-l.cjs.map +0 -1
- package/dist/core/MetricBox-Dh911MS2.js.map +0 -1
- package/dist/core/Spinner-CEIk_hpT.cjs.map +0 -1
- package/dist/core/Spinner-D81UG24n.js.map +0 -1
- package/dist/next/Badge-DbmM5wGc.cjs.map +0 -1
- package/dist/next/Badge-k6Dk5S_p.js.map +0 -1
- package/dist/next/Card-BFmGnvxN.cjs.map +0 -1
- package/dist/next/Card-DhxLw6XZ.js.map +0 -1
- package/dist/next/Footer-BSEbf6CL.js.map +0 -1
- package/dist/next/Footer-DAZLz11H.cjs.map +0 -1
- package/dist/next/FormGroup-6Ss6pNqV.cjs.map +0 -1
- package/dist/next/FormGroup-DbUqgg_b.js.map +0 -1
- package/dist/next/IconButton-VSz8qAIg.cjs.map +0 -1
- package/dist/next/IconButton-qQljwBB2.js.map +0 -1
- package/dist/next/MetricBox-BylPOvoO.cjs.map +0 -1
- package/dist/next/MetricBox-Dl3iruBZ.js.map +0 -1
- package/dist/next/Spinner-B89FhxVt.cjs.map +0 -1
- package/dist/next/Spinner-ChiOXzru.js.map +0 -1
- package/dist/next/image-CEz9QtOW.js.map +0 -1
- package/dist/next/image-VX9Ty9NQ.cjs.map +0 -1
- package/dist/next/link-Bik5xH00.js +0 -2878
- package/dist/next/link-Bik5xH00.js.map +0 -1
- package/dist/next/link-hxAaLm0Q.cjs +0 -2877
- package/dist/next/link-hxAaLm0Q.cjs.map +0 -1
- package/dist/next/navigation-DTwYCgCL.js +0 -1991
- package/dist/next/navigation-DTwYCgCL.js.map +0 -1
- package/dist/next/navigation-m012syo9.cjs +0 -1990
- package/dist/next/navigation-m012syo9.cjs.map +0 -1
|
@@ -1,2877 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const require$$2 = require("react/jsx-runtime");
|
|
3
|
-
const React = require("react");
|
|
4
|
-
function getDefaultExportFromCjs(x) {
|
|
5
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
6
|
-
}
|
|
7
|
-
var _interop_require_default$1 = {};
|
|
8
|
-
function _interop_require_default(obj) {
|
|
9
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
10
|
-
}
|
|
11
|
-
_interop_require_default$1._ = _interop_require_default;
|
|
12
|
-
var _interop_require_wildcard$1 = {};
|
|
13
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
14
|
-
if (typeof WeakMap !== "function") return null;
|
|
15
|
-
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
16
|
-
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
17
|
-
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
18
|
-
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
19
|
-
})(nodeInterop);
|
|
20
|
-
}
|
|
21
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
22
|
-
if (!nodeInterop && obj && obj.__esModule) return obj;
|
|
23
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
|
|
24
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
25
|
-
if (cache && cache.has(obj)) return cache.get(obj);
|
|
26
|
-
var newObj = { __proto__: null };
|
|
27
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
28
|
-
for (var key in obj) {
|
|
29
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
30
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
31
|
-
if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
|
|
32
|
-
else newObj[key] = obj[key];
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
newObj.default = obj;
|
|
36
|
-
if (cache) cache.set(obj, newObj);
|
|
37
|
-
return newObj;
|
|
38
|
-
}
|
|
39
|
-
_interop_require_wildcard$1._ = _interop_require_wildcard;
|
|
40
|
-
var routerContext_sharedRuntime = {};
|
|
41
|
-
var hasRequiredRouterContext_sharedRuntime;
|
|
42
|
-
function requireRouterContext_sharedRuntime() {
|
|
43
|
-
if (hasRequiredRouterContext_sharedRuntime) return routerContext_sharedRuntime;
|
|
44
|
-
hasRequiredRouterContext_sharedRuntime = 1;
|
|
45
|
-
(function(exports2) {
|
|
46
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
47
|
-
value: true
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports2, "RouterContext", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function() {
|
|
52
|
-
return RouterContext;
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
const _interop_require_default2 = _interop_require_default$1;
|
|
56
|
-
const _react = /* @__PURE__ */ _interop_require_default2._(React);
|
|
57
|
-
const RouterContext = _react.default.createContext(null);
|
|
58
|
-
if (process.env.NODE_ENV !== "production") {
|
|
59
|
-
RouterContext.displayName = "RouterContext";
|
|
60
|
-
}
|
|
61
|
-
})(routerContext_sharedRuntime);
|
|
62
|
-
return routerContext_sharedRuntime;
|
|
63
|
-
}
|
|
64
|
-
var useMergedRef = { exports: {} };
|
|
65
|
-
var hasRequiredUseMergedRef;
|
|
66
|
-
function requireUseMergedRef() {
|
|
67
|
-
if (hasRequiredUseMergedRef) return useMergedRef.exports;
|
|
68
|
-
hasRequiredUseMergedRef = 1;
|
|
69
|
-
(function(module2, exports2) {
|
|
70
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
71
|
-
value: true
|
|
72
|
-
});
|
|
73
|
-
Object.defineProperty(exports2, "useMergedRef", {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function() {
|
|
76
|
-
return useMergedRef2;
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
const _react = React;
|
|
80
|
-
function useMergedRef2(refA, refB) {
|
|
81
|
-
const cleanupA = (0, _react.useRef)(null);
|
|
82
|
-
const cleanupB = (0, _react.useRef)(null);
|
|
83
|
-
return (0, _react.useCallback)((current) => {
|
|
84
|
-
if (current === null) {
|
|
85
|
-
const cleanupFnA = cleanupA.current;
|
|
86
|
-
if (cleanupFnA) {
|
|
87
|
-
cleanupA.current = null;
|
|
88
|
-
cleanupFnA();
|
|
89
|
-
}
|
|
90
|
-
const cleanupFnB = cleanupB.current;
|
|
91
|
-
if (cleanupFnB) {
|
|
92
|
-
cleanupB.current = null;
|
|
93
|
-
cleanupFnB();
|
|
94
|
-
}
|
|
95
|
-
} else {
|
|
96
|
-
if (refA) {
|
|
97
|
-
cleanupA.current = applyRef(refA, current);
|
|
98
|
-
}
|
|
99
|
-
if (refB) {
|
|
100
|
-
cleanupB.current = applyRef(refB, current);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}, [
|
|
104
|
-
refA,
|
|
105
|
-
refB
|
|
106
|
-
]);
|
|
107
|
-
}
|
|
108
|
-
function applyRef(refA, current) {
|
|
109
|
-
if (typeof refA === "function") {
|
|
110
|
-
const cleanup = refA(current);
|
|
111
|
-
if (typeof cleanup === "function") {
|
|
112
|
-
return cleanup;
|
|
113
|
-
} else {
|
|
114
|
-
return () => refA(null);
|
|
115
|
-
}
|
|
116
|
-
} else {
|
|
117
|
-
refA.current = current;
|
|
118
|
-
return () => {
|
|
119
|
-
refA.current = null;
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
124
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
125
|
-
Object.assign(exports2.default, exports2);
|
|
126
|
-
module2.exports = exports2.default;
|
|
127
|
-
}
|
|
128
|
-
})(useMergedRef, useMergedRef.exports);
|
|
129
|
-
return useMergedRef.exports;
|
|
130
|
-
}
|
|
131
|
-
var link$1 = { exports: {} };
|
|
132
|
-
var resolveHref = { exports: {} };
|
|
133
|
-
var querystring = {};
|
|
134
|
-
var hasRequiredQuerystring;
|
|
135
|
-
function requireQuerystring() {
|
|
136
|
-
if (hasRequiredQuerystring) return querystring;
|
|
137
|
-
hasRequiredQuerystring = 1;
|
|
138
|
-
(function(exports2) {
|
|
139
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
140
|
-
value: true
|
|
141
|
-
});
|
|
142
|
-
function _export(target, all) {
|
|
143
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
144
|
-
enumerable: true,
|
|
145
|
-
get: all[name]
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
_export(exports2, {
|
|
149
|
-
assign: function() {
|
|
150
|
-
return assign;
|
|
151
|
-
},
|
|
152
|
-
searchParamsToUrlQuery: function() {
|
|
153
|
-
return searchParamsToUrlQuery;
|
|
154
|
-
},
|
|
155
|
-
urlQueryToSearchParams: function() {
|
|
156
|
-
return urlQueryToSearchParams;
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
function searchParamsToUrlQuery(searchParams) {
|
|
160
|
-
const query = {};
|
|
161
|
-
for (const [key, value] of searchParams.entries()) {
|
|
162
|
-
const existing = query[key];
|
|
163
|
-
if (typeof existing === "undefined") {
|
|
164
|
-
query[key] = value;
|
|
165
|
-
} else if (Array.isArray(existing)) {
|
|
166
|
-
existing.push(value);
|
|
167
|
-
} else {
|
|
168
|
-
query[key] = [
|
|
169
|
-
existing,
|
|
170
|
-
value
|
|
171
|
-
];
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
return query;
|
|
175
|
-
}
|
|
176
|
-
function stringifyUrlQueryParam(param) {
|
|
177
|
-
if (typeof param === "string") {
|
|
178
|
-
return param;
|
|
179
|
-
}
|
|
180
|
-
if (typeof param === "number" && !isNaN(param) || typeof param === "boolean") {
|
|
181
|
-
return String(param);
|
|
182
|
-
} else {
|
|
183
|
-
return "";
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
function urlQueryToSearchParams(query) {
|
|
187
|
-
const searchParams = new URLSearchParams();
|
|
188
|
-
for (const [key, value] of Object.entries(query)) {
|
|
189
|
-
if (Array.isArray(value)) {
|
|
190
|
-
for (const item of value) {
|
|
191
|
-
searchParams.append(key, stringifyUrlQueryParam(item));
|
|
192
|
-
}
|
|
193
|
-
} else {
|
|
194
|
-
searchParams.set(key, stringifyUrlQueryParam(value));
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
return searchParams;
|
|
198
|
-
}
|
|
199
|
-
function assign(target) {
|
|
200
|
-
for (var _len = arguments.length, searchParamsList = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
201
|
-
searchParamsList[_key - 1] = arguments[_key];
|
|
202
|
-
}
|
|
203
|
-
for (const searchParams of searchParamsList) {
|
|
204
|
-
for (const key of searchParams.keys()) {
|
|
205
|
-
target.delete(key);
|
|
206
|
-
}
|
|
207
|
-
for (const [key, value] of searchParams.entries()) {
|
|
208
|
-
target.append(key, value);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
return target;
|
|
212
|
-
}
|
|
213
|
-
})(querystring);
|
|
214
|
-
return querystring;
|
|
215
|
-
}
|
|
216
|
-
var formatUrl = {};
|
|
217
|
-
var hasRequiredFormatUrl;
|
|
218
|
-
function requireFormatUrl() {
|
|
219
|
-
if (hasRequiredFormatUrl) return formatUrl;
|
|
220
|
-
hasRequiredFormatUrl = 1;
|
|
221
|
-
(function(exports2) {
|
|
222
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
223
|
-
value: true
|
|
224
|
-
});
|
|
225
|
-
function _export(target, all) {
|
|
226
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
227
|
-
enumerable: true,
|
|
228
|
-
get: all[name]
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
_export(exports2, {
|
|
232
|
-
formatUrl: function() {
|
|
233
|
-
return formatUrl2;
|
|
234
|
-
},
|
|
235
|
-
formatWithValidation: function() {
|
|
236
|
-
return formatWithValidation;
|
|
237
|
-
},
|
|
238
|
-
urlObjectKeys: function() {
|
|
239
|
-
return urlObjectKeys;
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
const _interop_require_wildcard2 = _interop_require_wildcard$1;
|
|
243
|
-
const _querystring = /* @__PURE__ */ _interop_require_wildcard2._(requireQuerystring());
|
|
244
|
-
const slashedProtocols = /https?|ftp|gopher|file/;
|
|
245
|
-
function formatUrl2(urlObj) {
|
|
246
|
-
let { auth, hostname } = urlObj;
|
|
247
|
-
let protocol = urlObj.protocol || "";
|
|
248
|
-
let pathname = urlObj.pathname || "";
|
|
249
|
-
let hash = urlObj.hash || "";
|
|
250
|
-
let query = urlObj.query || "";
|
|
251
|
-
let host = false;
|
|
252
|
-
auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ":") + "@" : "";
|
|
253
|
-
if (urlObj.host) {
|
|
254
|
-
host = auth + urlObj.host;
|
|
255
|
-
} else if (hostname) {
|
|
256
|
-
host = auth + (~hostname.indexOf(":") ? "[" + hostname + "]" : hostname);
|
|
257
|
-
if (urlObj.port) {
|
|
258
|
-
host += ":" + urlObj.port;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
if (query && typeof query === "object") {
|
|
262
|
-
query = String(_querystring.urlQueryToSearchParams(query));
|
|
263
|
-
}
|
|
264
|
-
let search = urlObj.search || query && "?" + query || "";
|
|
265
|
-
if (protocol && !protocol.endsWith(":")) protocol += ":";
|
|
266
|
-
if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) {
|
|
267
|
-
host = "//" + (host || "");
|
|
268
|
-
if (pathname && pathname[0] !== "/") pathname = "/" + pathname;
|
|
269
|
-
} else if (!host) {
|
|
270
|
-
host = "";
|
|
271
|
-
}
|
|
272
|
-
if (hash && hash[0] !== "#") hash = "#" + hash;
|
|
273
|
-
if (search && search[0] !== "?") search = "?" + search;
|
|
274
|
-
pathname = pathname.replace(/[?#]/g, encodeURIComponent);
|
|
275
|
-
search = search.replace("#", "%23");
|
|
276
|
-
return "" + protocol + host + pathname + search + hash;
|
|
277
|
-
}
|
|
278
|
-
const urlObjectKeys = [
|
|
279
|
-
"auth",
|
|
280
|
-
"hash",
|
|
281
|
-
"host",
|
|
282
|
-
"hostname",
|
|
283
|
-
"href",
|
|
284
|
-
"path",
|
|
285
|
-
"pathname",
|
|
286
|
-
"port",
|
|
287
|
-
"protocol",
|
|
288
|
-
"query",
|
|
289
|
-
"search",
|
|
290
|
-
"slashes"
|
|
291
|
-
];
|
|
292
|
-
function formatWithValidation(url) {
|
|
293
|
-
if (process.env.NODE_ENV === "development") {
|
|
294
|
-
if (url !== null && typeof url === "object") {
|
|
295
|
-
Object.keys(url).forEach((key) => {
|
|
296
|
-
if (!urlObjectKeys.includes(key)) {
|
|
297
|
-
console.warn("Unknown key passed via urlObject into url.format: " + key);
|
|
298
|
-
}
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
return formatUrl2(url);
|
|
303
|
-
}
|
|
304
|
-
})(formatUrl);
|
|
305
|
-
return formatUrl;
|
|
306
|
-
}
|
|
307
|
-
var omit = {};
|
|
308
|
-
var hasRequiredOmit;
|
|
309
|
-
function requireOmit() {
|
|
310
|
-
if (hasRequiredOmit) return omit;
|
|
311
|
-
hasRequiredOmit = 1;
|
|
312
|
-
(function(exports2) {
|
|
313
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
314
|
-
value: true
|
|
315
|
-
});
|
|
316
|
-
Object.defineProperty(exports2, "omit", {
|
|
317
|
-
enumerable: true,
|
|
318
|
-
get: function() {
|
|
319
|
-
return omit2;
|
|
320
|
-
}
|
|
321
|
-
});
|
|
322
|
-
function omit2(object, keys) {
|
|
323
|
-
const omitted = {};
|
|
324
|
-
Object.keys(object).forEach((key) => {
|
|
325
|
-
if (!keys.includes(key)) {
|
|
326
|
-
omitted[key] = object[key];
|
|
327
|
-
}
|
|
328
|
-
});
|
|
329
|
-
return omitted;
|
|
330
|
-
}
|
|
331
|
-
})(omit);
|
|
332
|
-
return omit;
|
|
333
|
-
}
|
|
334
|
-
var utils$1 = {};
|
|
335
|
-
var hasRequiredUtils$1;
|
|
336
|
-
function requireUtils$1() {
|
|
337
|
-
if (hasRequiredUtils$1) return utils$1;
|
|
338
|
-
hasRequiredUtils$1 = 1;
|
|
339
|
-
(function(exports2) {
|
|
340
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
341
|
-
value: true
|
|
342
|
-
});
|
|
343
|
-
function _export(target, all) {
|
|
344
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
345
|
-
enumerable: true,
|
|
346
|
-
get: all[name]
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
_export(exports2, {
|
|
350
|
-
DecodeError: function() {
|
|
351
|
-
return DecodeError;
|
|
352
|
-
},
|
|
353
|
-
MiddlewareNotFoundError: function() {
|
|
354
|
-
return MiddlewareNotFoundError;
|
|
355
|
-
},
|
|
356
|
-
MissingStaticPage: function() {
|
|
357
|
-
return MissingStaticPage;
|
|
358
|
-
},
|
|
359
|
-
NormalizeError: function() {
|
|
360
|
-
return NormalizeError;
|
|
361
|
-
},
|
|
362
|
-
PageNotFoundError: function() {
|
|
363
|
-
return PageNotFoundError;
|
|
364
|
-
},
|
|
365
|
-
SP: function() {
|
|
366
|
-
return SP;
|
|
367
|
-
},
|
|
368
|
-
ST: function() {
|
|
369
|
-
return ST;
|
|
370
|
-
},
|
|
371
|
-
WEB_VITALS: function() {
|
|
372
|
-
return WEB_VITALS;
|
|
373
|
-
},
|
|
374
|
-
execOnce: function() {
|
|
375
|
-
return execOnce;
|
|
376
|
-
},
|
|
377
|
-
getDisplayName: function() {
|
|
378
|
-
return getDisplayName;
|
|
379
|
-
},
|
|
380
|
-
getLocationOrigin: function() {
|
|
381
|
-
return getLocationOrigin;
|
|
382
|
-
},
|
|
383
|
-
getURL: function() {
|
|
384
|
-
return getURL;
|
|
385
|
-
},
|
|
386
|
-
isAbsoluteUrl: function() {
|
|
387
|
-
return isAbsoluteUrl;
|
|
388
|
-
},
|
|
389
|
-
isResSent: function() {
|
|
390
|
-
return isResSent;
|
|
391
|
-
},
|
|
392
|
-
loadGetInitialProps: function() {
|
|
393
|
-
return loadGetInitialProps;
|
|
394
|
-
},
|
|
395
|
-
normalizeRepeatedSlashes: function() {
|
|
396
|
-
return normalizeRepeatedSlashes;
|
|
397
|
-
},
|
|
398
|
-
stringifyError: function() {
|
|
399
|
-
return stringifyError;
|
|
400
|
-
}
|
|
401
|
-
});
|
|
402
|
-
const WEB_VITALS = [
|
|
403
|
-
"CLS",
|
|
404
|
-
"FCP",
|
|
405
|
-
"FID",
|
|
406
|
-
"INP",
|
|
407
|
-
"LCP",
|
|
408
|
-
"TTFB"
|
|
409
|
-
];
|
|
410
|
-
function execOnce(fn) {
|
|
411
|
-
let used = false;
|
|
412
|
-
let result;
|
|
413
|
-
return function() {
|
|
414
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
415
|
-
args[_key] = arguments[_key];
|
|
416
|
-
}
|
|
417
|
-
if (!used) {
|
|
418
|
-
used = true;
|
|
419
|
-
result = fn(...args);
|
|
420
|
-
}
|
|
421
|
-
return result;
|
|
422
|
-
};
|
|
423
|
-
}
|
|
424
|
-
const ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
|
|
425
|
-
const isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX.test(url);
|
|
426
|
-
function getLocationOrigin() {
|
|
427
|
-
const { protocol, hostname, port } = window.location;
|
|
428
|
-
return protocol + "//" + hostname + (port ? ":" + port : "");
|
|
429
|
-
}
|
|
430
|
-
function getURL() {
|
|
431
|
-
const { href } = window.location;
|
|
432
|
-
const origin = getLocationOrigin();
|
|
433
|
-
return href.substring(origin.length);
|
|
434
|
-
}
|
|
435
|
-
function getDisplayName(Component) {
|
|
436
|
-
return typeof Component === "string" ? Component : Component.displayName || Component.name || "Unknown";
|
|
437
|
-
}
|
|
438
|
-
function isResSent(res) {
|
|
439
|
-
return res.finished || res.headersSent;
|
|
440
|
-
}
|
|
441
|
-
function normalizeRepeatedSlashes(url) {
|
|
442
|
-
const urlParts = url.split("?");
|
|
443
|
-
const urlNoQuery = urlParts[0];
|
|
444
|
-
return urlNoQuery.replace(/\\/g, "/").replace(/\/\/+/g, "/") + (urlParts[1] ? "?" + urlParts.slice(1).join("?") : "");
|
|
445
|
-
}
|
|
446
|
-
async function loadGetInitialProps(App, ctx) {
|
|
447
|
-
if (process.env.NODE_ENV !== "production") {
|
|
448
|
-
var _App_prototype;
|
|
449
|
-
if ((_App_prototype = App.prototype) == null ? void 0 : _App_prototype.getInitialProps) {
|
|
450
|
-
const message = '"' + getDisplayName(App) + '.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';
|
|
451
|
-
throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
452
|
-
value: "E394",
|
|
453
|
-
enumerable: false,
|
|
454
|
-
configurable: true
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
const res = ctx.res || ctx.ctx && ctx.ctx.res;
|
|
459
|
-
if (!App.getInitialProps) {
|
|
460
|
-
if (ctx.ctx && ctx.Component) {
|
|
461
|
-
return {
|
|
462
|
-
pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
|
|
463
|
-
};
|
|
464
|
-
}
|
|
465
|
-
return {};
|
|
466
|
-
}
|
|
467
|
-
const props = await App.getInitialProps(ctx);
|
|
468
|
-
if (res && isResSent(res)) {
|
|
469
|
-
return props;
|
|
470
|
-
}
|
|
471
|
-
if (!props) {
|
|
472
|
-
const message = '"' + getDisplayName(App) + '.getInitialProps()" should resolve to an object. But found "' + props + '" instead.';
|
|
473
|
-
throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
474
|
-
value: "E394",
|
|
475
|
-
enumerable: false,
|
|
476
|
-
configurable: true
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
if (process.env.NODE_ENV !== "production") {
|
|
480
|
-
if (Object.keys(props).length === 0 && !ctx.ctx) {
|
|
481
|
-
console.warn("" + getDisplayName(App) + " returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps");
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
return props;
|
|
485
|
-
}
|
|
486
|
-
const SP = typeof performance !== "undefined";
|
|
487
|
-
const ST = SP && [
|
|
488
|
-
"mark",
|
|
489
|
-
"measure",
|
|
490
|
-
"getEntriesByName"
|
|
491
|
-
].every((method) => typeof performance[method] === "function");
|
|
492
|
-
class DecodeError extends Error {
|
|
493
|
-
}
|
|
494
|
-
class NormalizeError extends Error {
|
|
495
|
-
}
|
|
496
|
-
class PageNotFoundError extends Error {
|
|
497
|
-
constructor(page) {
|
|
498
|
-
super();
|
|
499
|
-
this.code = "ENOENT";
|
|
500
|
-
this.name = "PageNotFoundError";
|
|
501
|
-
this.message = "Cannot find module for page: " + page;
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
class MissingStaticPage extends Error {
|
|
505
|
-
constructor(page, message) {
|
|
506
|
-
super();
|
|
507
|
-
this.message = "Failed to load static file for page: " + page + " " + message;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
class MiddlewareNotFoundError extends Error {
|
|
511
|
-
constructor() {
|
|
512
|
-
super();
|
|
513
|
-
this.code = "ENOENT";
|
|
514
|
-
this.message = "Cannot find the middleware module";
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
function stringifyError(error) {
|
|
518
|
-
return JSON.stringify({
|
|
519
|
-
message: error.message,
|
|
520
|
-
stack: error.stack
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
})(utils$1);
|
|
524
|
-
return utils$1;
|
|
525
|
-
}
|
|
526
|
-
var normalizeTrailingSlash = { exports: {} };
|
|
527
|
-
var removeTrailingSlash = {};
|
|
528
|
-
var hasRequiredRemoveTrailingSlash;
|
|
529
|
-
function requireRemoveTrailingSlash() {
|
|
530
|
-
if (hasRequiredRemoveTrailingSlash) return removeTrailingSlash;
|
|
531
|
-
hasRequiredRemoveTrailingSlash = 1;
|
|
532
|
-
(function(exports2) {
|
|
533
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
534
|
-
value: true
|
|
535
|
-
});
|
|
536
|
-
Object.defineProperty(exports2, "removeTrailingSlash", {
|
|
537
|
-
enumerable: true,
|
|
538
|
-
get: function() {
|
|
539
|
-
return removeTrailingSlash2;
|
|
540
|
-
}
|
|
541
|
-
});
|
|
542
|
-
function removeTrailingSlash2(route) {
|
|
543
|
-
return route.replace(/\/$/, "") || "/";
|
|
544
|
-
}
|
|
545
|
-
})(removeTrailingSlash);
|
|
546
|
-
return removeTrailingSlash;
|
|
547
|
-
}
|
|
548
|
-
var parsePath = {};
|
|
549
|
-
var hasRequiredParsePath;
|
|
550
|
-
function requireParsePath() {
|
|
551
|
-
if (hasRequiredParsePath) return parsePath;
|
|
552
|
-
hasRequiredParsePath = 1;
|
|
553
|
-
(function(exports2) {
|
|
554
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
555
|
-
value: true
|
|
556
|
-
});
|
|
557
|
-
Object.defineProperty(exports2, "parsePath", {
|
|
558
|
-
enumerable: true,
|
|
559
|
-
get: function() {
|
|
560
|
-
return parsePath2;
|
|
561
|
-
}
|
|
562
|
-
});
|
|
563
|
-
function parsePath2(path) {
|
|
564
|
-
const hashIndex = path.indexOf("#");
|
|
565
|
-
const queryIndex = path.indexOf("?");
|
|
566
|
-
const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);
|
|
567
|
-
if (hasQuery || hashIndex > -1) {
|
|
568
|
-
return {
|
|
569
|
-
pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),
|
|
570
|
-
query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : void 0) : "",
|
|
571
|
-
hash: hashIndex > -1 ? path.slice(hashIndex) : ""
|
|
572
|
-
};
|
|
573
|
-
}
|
|
574
|
-
return {
|
|
575
|
-
pathname: path,
|
|
576
|
-
query: "",
|
|
577
|
-
hash: ""
|
|
578
|
-
};
|
|
579
|
-
}
|
|
580
|
-
})(parsePath);
|
|
581
|
-
return parsePath;
|
|
582
|
-
}
|
|
583
|
-
var hasRequiredNormalizeTrailingSlash;
|
|
584
|
-
function requireNormalizeTrailingSlash() {
|
|
585
|
-
if (hasRequiredNormalizeTrailingSlash) return normalizeTrailingSlash.exports;
|
|
586
|
-
hasRequiredNormalizeTrailingSlash = 1;
|
|
587
|
-
(function(module2, exports2) {
|
|
588
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
589
|
-
value: true
|
|
590
|
-
});
|
|
591
|
-
Object.defineProperty(exports2, "normalizePathTrailingSlash", {
|
|
592
|
-
enumerable: true,
|
|
593
|
-
get: function() {
|
|
594
|
-
return normalizePathTrailingSlash;
|
|
595
|
-
}
|
|
596
|
-
});
|
|
597
|
-
const _removetrailingslash = requireRemoveTrailingSlash();
|
|
598
|
-
const _parsepath = requireParsePath();
|
|
599
|
-
const normalizePathTrailingSlash = (path) => {
|
|
600
|
-
if (!path.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH) {
|
|
601
|
-
return path;
|
|
602
|
-
}
|
|
603
|
-
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
|
604
|
-
if (process.env.__NEXT_TRAILING_SLASH) {
|
|
605
|
-
if (/\.[^/]+\/?$/.test(pathname)) {
|
|
606
|
-
return "" + (0, _removetrailingslash.removeTrailingSlash)(pathname) + query + hash;
|
|
607
|
-
} else if (pathname.endsWith("/")) {
|
|
608
|
-
return "" + pathname + query + hash;
|
|
609
|
-
} else {
|
|
610
|
-
return pathname + "/" + query + hash;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
return "" + (0, _removetrailingslash.removeTrailingSlash)(pathname) + query + hash;
|
|
614
|
-
};
|
|
615
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
616
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
617
|
-
Object.assign(exports2.default, exports2);
|
|
618
|
-
module2.exports = exports2.default;
|
|
619
|
-
}
|
|
620
|
-
})(normalizeTrailingSlash, normalizeTrailingSlash.exports);
|
|
621
|
-
return normalizeTrailingSlash.exports;
|
|
622
|
-
}
|
|
623
|
-
var isLocalUrl = {};
|
|
624
|
-
var hasBasePath = { exports: {} };
|
|
625
|
-
var pathHasPrefix = {};
|
|
626
|
-
var hasRequiredPathHasPrefix;
|
|
627
|
-
function requirePathHasPrefix() {
|
|
628
|
-
if (hasRequiredPathHasPrefix) return pathHasPrefix;
|
|
629
|
-
hasRequiredPathHasPrefix = 1;
|
|
630
|
-
(function(exports2) {
|
|
631
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
632
|
-
value: true
|
|
633
|
-
});
|
|
634
|
-
Object.defineProperty(exports2, "pathHasPrefix", {
|
|
635
|
-
enumerable: true,
|
|
636
|
-
get: function() {
|
|
637
|
-
return pathHasPrefix2;
|
|
638
|
-
}
|
|
639
|
-
});
|
|
640
|
-
const _parsepath = requireParsePath();
|
|
641
|
-
function pathHasPrefix2(path, prefix) {
|
|
642
|
-
if (typeof path !== "string") {
|
|
643
|
-
return false;
|
|
644
|
-
}
|
|
645
|
-
const { pathname } = (0, _parsepath.parsePath)(path);
|
|
646
|
-
return pathname === prefix || pathname.startsWith(prefix + "/");
|
|
647
|
-
}
|
|
648
|
-
})(pathHasPrefix);
|
|
649
|
-
return pathHasPrefix;
|
|
650
|
-
}
|
|
651
|
-
var hasRequiredHasBasePath;
|
|
652
|
-
function requireHasBasePath() {
|
|
653
|
-
if (hasRequiredHasBasePath) return hasBasePath.exports;
|
|
654
|
-
hasRequiredHasBasePath = 1;
|
|
655
|
-
(function(module2, exports2) {
|
|
656
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
657
|
-
value: true
|
|
658
|
-
});
|
|
659
|
-
Object.defineProperty(exports2, "hasBasePath", {
|
|
660
|
-
enumerable: true,
|
|
661
|
-
get: function() {
|
|
662
|
-
return hasBasePath2;
|
|
663
|
-
}
|
|
664
|
-
});
|
|
665
|
-
const _pathhasprefix = requirePathHasPrefix();
|
|
666
|
-
const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
667
|
-
function hasBasePath2(path) {
|
|
668
|
-
return (0, _pathhasprefix.pathHasPrefix)(path, basePath);
|
|
669
|
-
}
|
|
670
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
671
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
672
|
-
Object.assign(exports2.default, exports2);
|
|
673
|
-
module2.exports = exports2.default;
|
|
674
|
-
}
|
|
675
|
-
})(hasBasePath, hasBasePath.exports);
|
|
676
|
-
return hasBasePath.exports;
|
|
677
|
-
}
|
|
678
|
-
var hasRequiredIsLocalUrl;
|
|
679
|
-
function requireIsLocalUrl() {
|
|
680
|
-
if (hasRequiredIsLocalUrl) return isLocalUrl;
|
|
681
|
-
hasRequiredIsLocalUrl = 1;
|
|
682
|
-
(function(exports2) {
|
|
683
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
684
|
-
value: true
|
|
685
|
-
});
|
|
686
|
-
Object.defineProperty(exports2, "isLocalURL", {
|
|
687
|
-
enumerable: true,
|
|
688
|
-
get: function() {
|
|
689
|
-
return isLocalURL;
|
|
690
|
-
}
|
|
691
|
-
});
|
|
692
|
-
const _utils = requireUtils$1();
|
|
693
|
-
const _hasbasepath = requireHasBasePath();
|
|
694
|
-
function isLocalURL(url) {
|
|
695
|
-
if (!(0, _utils.isAbsoluteUrl)(url)) return true;
|
|
696
|
-
try {
|
|
697
|
-
const locationOrigin = (0, _utils.getLocationOrigin)();
|
|
698
|
-
const resolved = new URL(url, locationOrigin);
|
|
699
|
-
return resolved.origin === locationOrigin && (0, _hasbasepath.hasBasePath)(resolved.pathname);
|
|
700
|
-
} catch (_) {
|
|
701
|
-
return false;
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
})(isLocalUrl);
|
|
705
|
-
return isLocalUrl;
|
|
706
|
-
}
|
|
707
|
-
var utils = {};
|
|
708
|
-
var sortedRoutes = {};
|
|
709
|
-
var hasRequiredSortedRoutes;
|
|
710
|
-
function requireSortedRoutes() {
|
|
711
|
-
if (hasRequiredSortedRoutes) return sortedRoutes;
|
|
712
|
-
hasRequiredSortedRoutes = 1;
|
|
713
|
-
(function(exports2) {
|
|
714
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
715
|
-
value: true
|
|
716
|
-
});
|
|
717
|
-
function _export(target, all) {
|
|
718
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
719
|
-
enumerable: true,
|
|
720
|
-
get: all[name]
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
_export(exports2, {
|
|
724
|
-
getSortedRouteObjects: function() {
|
|
725
|
-
return getSortedRouteObjects;
|
|
726
|
-
},
|
|
727
|
-
getSortedRoutes: function() {
|
|
728
|
-
return getSortedRoutes;
|
|
729
|
-
}
|
|
730
|
-
});
|
|
731
|
-
class UrlNode {
|
|
732
|
-
insert(urlPath) {
|
|
733
|
-
this._insert(urlPath.split("/").filter(Boolean), [], false);
|
|
734
|
-
}
|
|
735
|
-
smoosh() {
|
|
736
|
-
return this._smoosh();
|
|
737
|
-
}
|
|
738
|
-
_smoosh(prefix) {
|
|
739
|
-
if (prefix === void 0) prefix = "/";
|
|
740
|
-
const childrenPaths = [
|
|
741
|
-
...this.children.keys()
|
|
742
|
-
].sort();
|
|
743
|
-
if (this.slugName !== null) {
|
|
744
|
-
childrenPaths.splice(childrenPaths.indexOf("[]"), 1);
|
|
745
|
-
}
|
|
746
|
-
if (this.restSlugName !== null) {
|
|
747
|
-
childrenPaths.splice(childrenPaths.indexOf("[...]"), 1);
|
|
748
|
-
}
|
|
749
|
-
if (this.optionalRestSlugName !== null) {
|
|
750
|
-
childrenPaths.splice(childrenPaths.indexOf("[[...]]"), 1);
|
|
751
|
-
}
|
|
752
|
-
const routes = childrenPaths.map((c) => this.children.get(c)._smoosh("" + prefix + c + "/")).reduce((prev, curr) => [
|
|
753
|
-
...prev,
|
|
754
|
-
...curr
|
|
755
|
-
], []);
|
|
756
|
-
if (this.slugName !== null) {
|
|
757
|
-
routes.push(...this.children.get("[]")._smoosh(prefix + "[" + this.slugName + "]/"));
|
|
758
|
-
}
|
|
759
|
-
if (!this.placeholder) {
|
|
760
|
-
const r = prefix === "/" ? "/" : prefix.slice(0, -1);
|
|
761
|
-
if (this.optionalRestSlugName != null) {
|
|
762
|
-
throw Object.defineProperty(new Error('You cannot define a route with the same specificity as a optional catch-all route ("' + r + '" and "' + r + "[[..." + this.optionalRestSlugName + ']]").'), "__NEXT_ERROR_CODE", {
|
|
763
|
-
value: "E458",
|
|
764
|
-
enumerable: false,
|
|
765
|
-
configurable: true
|
|
766
|
-
});
|
|
767
|
-
}
|
|
768
|
-
routes.unshift(r);
|
|
769
|
-
}
|
|
770
|
-
if (this.restSlugName !== null) {
|
|
771
|
-
routes.push(...this.children.get("[...]")._smoosh(prefix + "[..." + this.restSlugName + "]/"));
|
|
772
|
-
}
|
|
773
|
-
if (this.optionalRestSlugName !== null) {
|
|
774
|
-
routes.push(...this.children.get("[[...]]")._smoosh(prefix + "[[..." + this.optionalRestSlugName + "]]/"));
|
|
775
|
-
}
|
|
776
|
-
return routes;
|
|
777
|
-
}
|
|
778
|
-
_insert(urlPaths, slugNames, isCatchAll) {
|
|
779
|
-
if (urlPaths.length === 0) {
|
|
780
|
-
this.placeholder = false;
|
|
781
|
-
return;
|
|
782
|
-
}
|
|
783
|
-
if (isCatchAll) {
|
|
784
|
-
throw Object.defineProperty(new Error("Catch-all must be the last part of the URL."), "__NEXT_ERROR_CODE", {
|
|
785
|
-
value: "E392",
|
|
786
|
-
enumerable: false,
|
|
787
|
-
configurable: true
|
|
788
|
-
});
|
|
789
|
-
}
|
|
790
|
-
let nextSegment = urlPaths[0];
|
|
791
|
-
if (nextSegment.startsWith("[") && nextSegment.endsWith("]")) {
|
|
792
|
-
let handleSlug = function(previousSlug, nextSlug) {
|
|
793
|
-
if (previousSlug !== null) {
|
|
794
|
-
if (previousSlug !== nextSlug) {
|
|
795
|
-
throw Object.defineProperty(new Error("You cannot use different slug names for the same dynamic path ('" + previousSlug + "' !== '" + nextSlug + "')."), "__NEXT_ERROR_CODE", {
|
|
796
|
-
value: "E337",
|
|
797
|
-
enumerable: false,
|
|
798
|
-
configurable: true
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
slugNames.forEach((slug) => {
|
|
803
|
-
if (slug === nextSlug) {
|
|
804
|
-
throw Object.defineProperty(new Error('You cannot have the same slug name "' + nextSlug + '" repeat within a single dynamic path'), "__NEXT_ERROR_CODE", {
|
|
805
|
-
value: "E247",
|
|
806
|
-
enumerable: false,
|
|
807
|
-
configurable: true
|
|
808
|
-
});
|
|
809
|
-
}
|
|
810
|
-
if (slug.replace(/\W/g, "") === nextSegment.replace(/\W/g, "")) {
|
|
811
|
-
throw Object.defineProperty(new Error('You cannot have the slug names "' + slug + '" and "' + nextSlug + '" differ only by non-word symbols within a single dynamic path'), "__NEXT_ERROR_CODE", {
|
|
812
|
-
value: "E499",
|
|
813
|
-
enumerable: false,
|
|
814
|
-
configurable: true
|
|
815
|
-
});
|
|
816
|
-
}
|
|
817
|
-
});
|
|
818
|
-
slugNames.push(nextSlug);
|
|
819
|
-
};
|
|
820
|
-
let segmentName = nextSegment.slice(1, -1);
|
|
821
|
-
let isOptional = false;
|
|
822
|
-
if (segmentName.startsWith("[") && segmentName.endsWith("]")) {
|
|
823
|
-
segmentName = segmentName.slice(1, -1);
|
|
824
|
-
isOptional = true;
|
|
825
|
-
}
|
|
826
|
-
if (segmentName.startsWith("…")) {
|
|
827
|
-
throw Object.defineProperty(new Error("Detected a three-dot character ('…') at ('" + segmentName + "'). Did you mean ('...')?"), "__NEXT_ERROR_CODE", {
|
|
828
|
-
value: "E147",
|
|
829
|
-
enumerable: false,
|
|
830
|
-
configurable: true
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
if (segmentName.startsWith("...")) {
|
|
834
|
-
segmentName = segmentName.substring(3);
|
|
835
|
-
isCatchAll = true;
|
|
836
|
-
}
|
|
837
|
-
if (segmentName.startsWith("[") || segmentName.endsWith("]")) {
|
|
838
|
-
throw Object.defineProperty(new Error("Segment names may not start or end with extra brackets ('" + segmentName + "')."), "__NEXT_ERROR_CODE", {
|
|
839
|
-
value: "E421",
|
|
840
|
-
enumerable: false,
|
|
841
|
-
configurable: true
|
|
842
|
-
});
|
|
843
|
-
}
|
|
844
|
-
if (segmentName.startsWith(".")) {
|
|
845
|
-
throw Object.defineProperty(new Error("Segment names may not start with erroneous periods ('" + segmentName + "')."), "__NEXT_ERROR_CODE", {
|
|
846
|
-
value: "E288",
|
|
847
|
-
enumerable: false,
|
|
848
|
-
configurable: true
|
|
849
|
-
});
|
|
850
|
-
}
|
|
851
|
-
if (isCatchAll) {
|
|
852
|
-
if (isOptional) {
|
|
853
|
-
if (this.restSlugName != null) {
|
|
854
|
-
throw Object.defineProperty(new Error('You cannot use both an required and optional catch-all route at the same level ("[...' + this.restSlugName + ']" and "' + urlPaths[0] + '" ).'), "__NEXT_ERROR_CODE", {
|
|
855
|
-
value: "E299",
|
|
856
|
-
enumerable: false,
|
|
857
|
-
configurable: true
|
|
858
|
-
});
|
|
859
|
-
}
|
|
860
|
-
handleSlug(this.optionalRestSlugName, segmentName);
|
|
861
|
-
this.optionalRestSlugName = segmentName;
|
|
862
|
-
nextSegment = "[[...]]";
|
|
863
|
-
} else {
|
|
864
|
-
if (this.optionalRestSlugName != null) {
|
|
865
|
-
throw Object.defineProperty(new Error('You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + urlPaths[0] + '").'), "__NEXT_ERROR_CODE", {
|
|
866
|
-
value: "E300",
|
|
867
|
-
enumerable: false,
|
|
868
|
-
configurable: true
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
|
-
handleSlug(this.restSlugName, segmentName);
|
|
872
|
-
this.restSlugName = segmentName;
|
|
873
|
-
nextSegment = "[...]";
|
|
874
|
-
}
|
|
875
|
-
} else {
|
|
876
|
-
if (isOptional) {
|
|
877
|
-
throw Object.defineProperty(new Error('Optional route parameters are not yet supported ("' + urlPaths[0] + '").'), "__NEXT_ERROR_CODE", {
|
|
878
|
-
value: "E435",
|
|
879
|
-
enumerable: false,
|
|
880
|
-
configurable: true
|
|
881
|
-
});
|
|
882
|
-
}
|
|
883
|
-
handleSlug(this.slugName, segmentName);
|
|
884
|
-
this.slugName = segmentName;
|
|
885
|
-
nextSegment = "[]";
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
if (!this.children.has(nextSegment)) {
|
|
889
|
-
this.children.set(nextSegment, new UrlNode());
|
|
890
|
-
}
|
|
891
|
-
this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll);
|
|
892
|
-
}
|
|
893
|
-
constructor() {
|
|
894
|
-
this.placeholder = true;
|
|
895
|
-
this.children = /* @__PURE__ */ new Map();
|
|
896
|
-
this.slugName = null;
|
|
897
|
-
this.restSlugName = null;
|
|
898
|
-
this.optionalRestSlugName = null;
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
function getSortedRoutes(normalizedPages) {
|
|
902
|
-
const root = new UrlNode();
|
|
903
|
-
normalizedPages.forEach((pagePath) => root.insert(pagePath));
|
|
904
|
-
return root.smoosh();
|
|
905
|
-
}
|
|
906
|
-
function getSortedRouteObjects(objects, getter) {
|
|
907
|
-
const indexes = {};
|
|
908
|
-
const pathnames = [];
|
|
909
|
-
for (let i = 0; i < objects.length; i++) {
|
|
910
|
-
const pathname = getter(objects[i]);
|
|
911
|
-
indexes[pathname] = i;
|
|
912
|
-
pathnames[i] = pathname;
|
|
913
|
-
}
|
|
914
|
-
const sorted = getSortedRoutes(pathnames);
|
|
915
|
-
return sorted.map((pathname) => objects[indexes[pathname]]);
|
|
916
|
-
}
|
|
917
|
-
})(sortedRoutes);
|
|
918
|
-
return sortedRoutes;
|
|
919
|
-
}
|
|
920
|
-
var isDynamic = {};
|
|
921
|
-
var interceptionRoutes = {};
|
|
922
|
-
var appPaths = {};
|
|
923
|
-
var ensureLeadingSlash = {};
|
|
924
|
-
var hasRequiredEnsureLeadingSlash;
|
|
925
|
-
function requireEnsureLeadingSlash() {
|
|
926
|
-
if (hasRequiredEnsureLeadingSlash) return ensureLeadingSlash;
|
|
927
|
-
hasRequiredEnsureLeadingSlash = 1;
|
|
928
|
-
(function(exports2) {
|
|
929
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
930
|
-
value: true
|
|
931
|
-
});
|
|
932
|
-
Object.defineProperty(exports2, "ensureLeadingSlash", {
|
|
933
|
-
enumerable: true,
|
|
934
|
-
get: function() {
|
|
935
|
-
return ensureLeadingSlash2;
|
|
936
|
-
}
|
|
937
|
-
});
|
|
938
|
-
function ensureLeadingSlash2(path) {
|
|
939
|
-
return path.startsWith("/") ? path : "/" + path;
|
|
940
|
-
}
|
|
941
|
-
})(ensureLeadingSlash);
|
|
942
|
-
return ensureLeadingSlash;
|
|
943
|
-
}
|
|
944
|
-
var segment = {};
|
|
945
|
-
(function(exports2) {
|
|
946
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
947
|
-
value: true
|
|
948
|
-
});
|
|
949
|
-
function _export(target, all) {
|
|
950
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
951
|
-
enumerable: true,
|
|
952
|
-
get: all[name]
|
|
953
|
-
});
|
|
954
|
-
}
|
|
955
|
-
_export(exports2, {
|
|
956
|
-
DEFAULT_SEGMENT_KEY: function() {
|
|
957
|
-
return DEFAULT_SEGMENT_KEY;
|
|
958
|
-
},
|
|
959
|
-
PAGE_SEGMENT_KEY: function() {
|
|
960
|
-
return PAGE_SEGMENT_KEY;
|
|
961
|
-
},
|
|
962
|
-
addSearchParamsIfPageSegment: function() {
|
|
963
|
-
return addSearchParamsIfPageSegment;
|
|
964
|
-
},
|
|
965
|
-
isGroupSegment: function() {
|
|
966
|
-
return isGroupSegment;
|
|
967
|
-
},
|
|
968
|
-
isParallelRouteSegment: function() {
|
|
969
|
-
return isParallelRouteSegment;
|
|
970
|
-
}
|
|
971
|
-
});
|
|
972
|
-
function isGroupSegment(segment2) {
|
|
973
|
-
return segment2[0] === "(" && segment2.endsWith(")");
|
|
974
|
-
}
|
|
975
|
-
function isParallelRouteSegment(segment2) {
|
|
976
|
-
return segment2.startsWith("@") && segment2 !== "@children";
|
|
977
|
-
}
|
|
978
|
-
function addSearchParamsIfPageSegment(segment2, searchParams) {
|
|
979
|
-
const isPageSegment = segment2.includes(PAGE_SEGMENT_KEY);
|
|
980
|
-
if (isPageSegment) {
|
|
981
|
-
const stringifiedQuery = JSON.stringify(searchParams);
|
|
982
|
-
return stringifiedQuery !== "{}" ? PAGE_SEGMENT_KEY + "?" + stringifiedQuery : PAGE_SEGMENT_KEY;
|
|
983
|
-
}
|
|
984
|
-
return segment2;
|
|
985
|
-
}
|
|
986
|
-
const PAGE_SEGMENT_KEY = "__PAGE__";
|
|
987
|
-
const DEFAULT_SEGMENT_KEY = "__DEFAULT__";
|
|
988
|
-
})(segment);
|
|
989
|
-
var hasRequiredAppPaths;
|
|
990
|
-
function requireAppPaths() {
|
|
991
|
-
if (hasRequiredAppPaths) return appPaths;
|
|
992
|
-
hasRequiredAppPaths = 1;
|
|
993
|
-
(function(exports2) {
|
|
994
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
995
|
-
value: true
|
|
996
|
-
});
|
|
997
|
-
function _export(target, all) {
|
|
998
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
999
|
-
enumerable: true,
|
|
1000
|
-
get: all[name]
|
|
1001
|
-
});
|
|
1002
|
-
}
|
|
1003
|
-
_export(exports2, {
|
|
1004
|
-
normalizeAppPath: function() {
|
|
1005
|
-
return normalizeAppPath;
|
|
1006
|
-
},
|
|
1007
|
-
normalizeRscURL: function() {
|
|
1008
|
-
return normalizeRscURL;
|
|
1009
|
-
}
|
|
1010
|
-
});
|
|
1011
|
-
const _ensureleadingslash = requireEnsureLeadingSlash();
|
|
1012
|
-
const _segment = segment;
|
|
1013
|
-
function normalizeAppPath(route) {
|
|
1014
|
-
return (0, _ensureleadingslash.ensureLeadingSlash)(route.split("/").reduce((pathname, segment2, index, segments) => {
|
|
1015
|
-
if (!segment2) {
|
|
1016
|
-
return pathname;
|
|
1017
|
-
}
|
|
1018
|
-
if ((0, _segment.isGroupSegment)(segment2)) {
|
|
1019
|
-
return pathname;
|
|
1020
|
-
}
|
|
1021
|
-
if (segment2[0] === "@") {
|
|
1022
|
-
return pathname;
|
|
1023
|
-
}
|
|
1024
|
-
if ((segment2 === "page" || segment2 === "route") && index === segments.length - 1) {
|
|
1025
|
-
return pathname;
|
|
1026
|
-
}
|
|
1027
|
-
return pathname + "/" + segment2;
|
|
1028
|
-
}, ""));
|
|
1029
|
-
}
|
|
1030
|
-
function normalizeRscURL(url) {
|
|
1031
|
-
return url.replace(
|
|
1032
|
-
/\.rsc($|\?)/,
|
|
1033
|
-
// $1 ensures `?` is preserved
|
|
1034
|
-
"$1"
|
|
1035
|
-
);
|
|
1036
|
-
}
|
|
1037
|
-
})(appPaths);
|
|
1038
|
-
return appPaths;
|
|
1039
|
-
}
|
|
1040
|
-
var hasRequiredInterceptionRoutes;
|
|
1041
|
-
function requireInterceptionRoutes() {
|
|
1042
|
-
if (hasRequiredInterceptionRoutes) return interceptionRoutes;
|
|
1043
|
-
hasRequiredInterceptionRoutes = 1;
|
|
1044
|
-
(function(exports2) {
|
|
1045
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1046
|
-
value: true
|
|
1047
|
-
});
|
|
1048
|
-
function _export(target, all) {
|
|
1049
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1050
|
-
enumerable: true,
|
|
1051
|
-
get: all[name]
|
|
1052
|
-
});
|
|
1053
|
-
}
|
|
1054
|
-
_export(exports2, {
|
|
1055
|
-
INTERCEPTION_ROUTE_MARKERS: function() {
|
|
1056
|
-
return INTERCEPTION_ROUTE_MARKERS;
|
|
1057
|
-
},
|
|
1058
|
-
extractInterceptionRouteInformation: function() {
|
|
1059
|
-
return extractInterceptionRouteInformation;
|
|
1060
|
-
},
|
|
1061
|
-
isInterceptionRouteAppPath: function() {
|
|
1062
|
-
return isInterceptionRouteAppPath;
|
|
1063
|
-
}
|
|
1064
|
-
});
|
|
1065
|
-
const _apppaths = requireAppPaths();
|
|
1066
|
-
const INTERCEPTION_ROUTE_MARKERS = [
|
|
1067
|
-
"(..)(..)",
|
|
1068
|
-
"(.)",
|
|
1069
|
-
"(..)",
|
|
1070
|
-
"(...)"
|
|
1071
|
-
];
|
|
1072
|
-
function isInterceptionRouteAppPath(path) {
|
|
1073
|
-
return path.split("/").find((segment2) => INTERCEPTION_ROUTE_MARKERS.find((m) => segment2.startsWith(m))) !== void 0;
|
|
1074
|
-
}
|
|
1075
|
-
function extractInterceptionRouteInformation(path) {
|
|
1076
|
-
let interceptingRoute, marker, interceptedRoute;
|
|
1077
|
-
for (const segment2 of path.split("/")) {
|
|
1078
|
-
marker = INTERCEPTION_ROUTE_MARKERS.find((m) => segment2.startsWith(m));
|
|
1079
|
-
if (marker) {
|
|
1080
|
-
[interceptingRoute, interceptedRoute] = path.split(marker, 2);
|
|
1081
|
-
break;
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
if (!interceptingRoute || !marker || !interceptedRoute) {
|
|
1085
|
-
throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>"), "__NEXT_ERROR_CODE", {
|
|
1086
|
-
value: "E269",
|
|
1087
|
-
enumerable: false,
|
|
1088
|
-
configurable: true
|
|
1089
|
-
});
|
|
1090
|
-
}
|
|
1091
|
-
interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute);
|
|
1092
|
-
switch (marker) {
|
|
1093
|
-
case "(.)":
|
|
1094
|
-
if (interceptingRoute === "/") {
|
|
1095
|
-
interceptedRoute = "/" + interceptedRoute;
|
|
1096
|
-
} else {
|
|
1097
|
-
interceptedRoute = interceptingRoute + "/" + interceptedRoute;
|
|
1098
|
-
}
|
|
1099
|
-
break;
|
|
1100
|
-
case "(..)":
|
|
1101
|
-
if (interceptingRoute === "/") {
|
|
1102
|
-
throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Cannot use (..) marker at the root level, use (.) instead."), "__NEXT_ERROR_CODE", {
|
|
1103
|
-
value: "E207",
|
|
1104
|
-
enumerable: false,
|
|
1105
|
-
configurable: true
|
|
1106
|
-
});
|
|
1107
|
-
}
|
|
1108
|
-
interceptedRoute = interceptingRoute.split("/").slice(0, -1).concat(interceptedRoute).join("/");
|
|
1109
|
-
break;
|
|
1110
|
-
case "(...)":
|
|
1111
|
-
interceptedRoute = "/" + interceptedRoute;
|
|
1112
|
-
break;
|
|
1113
|
-
case "(..)(..)":
|
|
1114
|
-
const splitInterceptingRoute = interceptingRoute.split("/");
|
|
1115
|
-
if (splitInterceptingRoute.length <= 2) {
|
|
1116
|
-
throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Cannot use (..)(..) marker at the root level or one level up."), "__NEXT_ERROR_CODE", {
|
|
1117
|
-
value: "E486",
|
|
1118
|
-
enumerable: false,
|
|
1119
|
-
configurable: true
|
|
1120
|
-
});
|
|
1121
|
-
}
|
|
1122
|
-
interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join("/");
|
|
1123
|
-
break;
|
|
1124
|
-
default:
|
|
1125
|
-
throw Object.defineProperty(new Error("Invariant: unexpected marker"), "__NEXT_ERROR_CODE", {
|
|
1126
|
-
value: "E112",
|
|
1127
|
-
enumerable: false,
|
|
1128
|
-
configurable: true
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
return {
|
|
1132
|
-
interceptingRoute,
|
|
1133
|
-
interceptedRoute
|
|
1134
|
-
};
|
|
1135
|
-
}
|
|
1136
|
-
})(interceptionRoutes);
|
|
1137
|
-
return interceptionRoutes;
|
|
1138
|
-
}
|
|
1139
|
-
var hasRequiredIsDynamic;
|
|
1140
|
-
function requireIsDynamic() {
|
|
1141
|
-
if (hasRequiredIsDynamic) return isDynamic;
|
|
1142
|
-
hasRequiredIsDynamic = 1;
|
|
1143
|
-
(function(exports2) {
|
|
1144
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1145
|
-
value: true
|
|
1146
|
-
});
|
|
1147
|
-
Object.defineProperty(exports2, "isDynamicRoute", {
|
|
1148
|
-
enumerable: true,
|
|
1149
|
-
get: function() {
|
|
1150
|
-
return isDynamicRoute;
|
|
1151
|
-
}
|
|
1152
|
-
});
|
|
1153
|
-
const _interceptionroutes = requireInterceptionRoutes();
|
|
1154
|
-
const TEST_ROUTE = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/;
|
|
1155
|
-
const TEST_STRICT_ROUTE = /\/\[[^/]+\](?=\/|$)/;
|
|
1156
|
-
function isDynamicRoute(route, strict) {
|
|
1157
|
-
if (strict === void 0) strict = true;
|
|
1158
|
-
if ((0, _interceptionroutes.isInterceptionRouteAppPath)(route)) {
|
|
1159
|
-
route = (0, _interceptionroutes.extractInterceptionRouteInformation)(route).interceptedRoute;
|
|
1160
|
-
}
|
|
1161
|
-
if (strict) {
|
|
1162
|
-
return TEST_STRICT_ROUTE.test(route);
|
|
1163
|
-
}
|
|
1164
|
-
return TEST_ROUTE.test(route);
|
|
1165
|
-
}
|
|
1166
|
-
})(isDynamic);
|
|
1167
|
-
return isDynamic;
|
|
1168
|
-
}
|
|
1169
|
-
var hasRequiredUtils;
|
|
1170
|
-
function requireUtils() {
|
|
1171
|
-
if (hasRequiredUtils) return utils;
|
|
1172
|
-
hasRequiredUtils = 1;
|
|
1173
|
-
(function(exports2) {
|
|
1174
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1175
|
-
value: true
|
|
1176
|
-
});
|
|
1177
|
-
function _export(target, all) {
|
|
1178
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1179
|
-
enumerable: true,
|
|
1180
|
-
get: all[name]
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
_export(exports2, {
|
|
1184
|
-
getSortedRouteObjects: function() {
|
|
1185
|
-
return _sortedroutes.getSortedRouteObjects;
|
|
1186
|
-
},
|
|
1187
|
-
getSortedRoutes: function() {
|
|
1188
|
-
return _sortedroutes.getSortedRoutes;
|
|
1189
|
-
},
|
|
1190
|
-
isDynamicRoute: function() {
|
|
1191
|
-
return _isdynamic.isDynamicRoute;
|
|
1192
|
-
}
|
|
1193
|
-
});
|
|
1194
|
-
const _sortedroutes = requireSortedRoutes();
|
|
1195
|
-
const _isdynamic = requireIsDynamic();
|
|
1196
|
-
})(utils);
|
|
1197
|
-
return utils;
|
|
1198
|
-
}
|
|
1199
|
-
var interpolateAs = {};
|
|
1200
|
-
var routeMatcher = {};
|
|
1201
|
-
var hasRequiredRouteMatcher;
|
|
1202
|
-
function requireRouteMatcher() {
|
|
1203
|
-
if (hasRequiredRouteMatcher) return routeMatcher;
|
|
1204
|
-
hasRequiredRouteMatcher = 1;
|
|
1205
|
-
(function(exports2) {
|
|
1206
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1207
|
-
value: true
|
|
1208
|
-
});
|
|
1209
|
-
Object.defineProperty(exports2, "getRouteMatcher", {
|
|
1210
|
-
enumerable: true,
|
|
1211
|
-
get: function() {
|
|
1212
|
-
return getRouteMatcher;
|
|
1213
|
-
}
|
|
1214
|
-
});
|
|
1215
|
-
const _utils = requireUtils$1();
|
|
1216
|
-
function getRouteMatcher(param) {
|
|
1217
|
-
let { re, groups } = param;
|
|
1218
|
-
return (pathname) => {
|
|
1219
|
-
const routeMatch = re.exec(pathname);
|
|
1220
|
-
if (!routeMatch) return false;
|
|
1221
|
-
const decode = (param2) => {
|
|
1222
|
-
try {
|
|
1223
|
-
return decodeURIComponent(param2);
|
|
1224
|
-
} catch (e) {
|
|
1225
|
-
throw Object.defineProperty(new _utils.DecodeError("failed to decode param"), "__NEXT_ERROR_CODE", {
|
|
1226
|
-
value: "E528",
|
|
1227
|
-
enumerable: false,
|
|
1228
|
-
configurable: true
|
|
1229
|
-
});
|
|
1230
|
-
}
|
|
1231
|
-
};
|
|
1232
|
-
const params = {};
|
|
1233
|
-
for (const [key, group] of Object.entries(groups)) {
|
|
1234
|
-
const match = routeMatch[group.pos];
|
|
1235
|
-
if (match !== void 0) {
|
|
1236
|
-
if (group.repeat) {
|
|
1237
|
-
params[key] = match.split("/").map((entry) => decode(entry));
|
|
1238
|
-
} else {
|
|
1239
|
-
params[key] = decode(match);
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
}
|
|
1243
|
-
return params;
|
|
1244
|
-
};
|
|
1245
|
-
}
|
|
1246
|
-
})(routeMatcher);
|
|
1247
|
-
return routeMatcher;
|
|
1248
|
-
}
|
|
1249
|
-
var routeRegex = {};
|
|
1250
|
-
var constants = {};
|
|
1251
|
-
var hasRequiredConstants;
|
|
1252
|
-
function requireConstants() {
|
|
1253
|
-
if (hasRequiredConstants) return constants;
|
|
1254
|
-
hasRequiredConstants = 1;
|
|
1255
|
-
(function(exports2) {
|
|
1256
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1257
|
-
value: true
|
|
1258
|
-
});
|
|
1259
|
-
function _export(target, all) {
|
|
1260
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1261
|
-
enumerable: true,
|
|
1262
|
-
get: all[name]
|
|
1263
|
-
});
|
|
1264
|
-
}
|
|
1265
|
-
_export(exports2, {
|
|
1266
|
-
ACTION_SUFFIX: function() {
|
|
1267
|
-
return ACTION_SUFFIX;
|
|
1268
|
-
},
|
|
1269
|
-
APP_DIR_ALIAS: function() {
|
|
1270
|
-
return APP_DIR_ALIAS;
|
|
1271
|
-
},
|
|
1272
|
-
CACHE_ONE_YEAR: function() {
|
|
1273
|
-
return CACHE_ONE_YEAR;
|
|
1274
|
-
},
|
|
1275
|
-
DOT_NEXT_ALIAS: function() {
|
|
1276
|
-
return DOT_NEXT_ALIAS;
|
|
1277
|
-
},
|
|
1278
|
-
ESLINT_DEFAULT_DIRS: function() {
|
|
1279
|
-
return ESLINT_DEFAULT_DIRS;
|
|
1280
|
-
},
|
|
1281
|
-
GSP_NO_RETURNED_VALUE: function() {
|
|
1282
|
-
return GSP_NO_RETURNED_VALUE;
|
|
1283
|
-
},
|
|
1284
|
-
GSSP_COMPONENT_MEMBER_ERROR: function() {
|
|
1285
|
-
return GSSP_COMPONENT_MEMBER_ERROR;
|
|
1286
|
-
},
|
|
1287
|
-
GSSP_NO_RETURNED_VALUE: function() {
|
|
1288
|
-
return GSSP_NO_RETURNED_VALUE;
|
|
1289
|
-
},
|
|
1290
|
-
INFINITE_CACHE: function() {
|
|
1291
|
-
return INFINITE_CACHE;
|
|
1292
|
-
},
|
|
1293
|
-
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
1294
|
-
return INSTRUMENTATION_HOOK_FILENAME;
|
|
1295
|
-
},
|
|
1296
|
-
MATCHED_PATH_HEADER: function() {
|
|
1297
|
-
return MATCHED_PATH_HEADER;
|
|
1298
|
-
},
|
|
1299
|
-
MIDDLEWARE_FILENAME: function() {
|
|
1300
|
-
return MIDDLEWARE_FILENAME;
|
|
1301
|
-
},
|
|
1302
|
-
MIDDLEWARE_LOCATION_REGEXP: function() {
|
|
1303
|
-
return MIDDLEWARE_LOCATION_REGEXP;
|
|
1304
|
-
},
|
|
1305
|
-
NEXT_BODY_SUFFIX: function() {
|
|
1306
|
-
return NEXT_BODY_SUFFIX;
|
|
1307
|
-
},
|
|
1308
|
-
NEXT_CACHE_IMPLICIT_TAG_ID: function() {
|
|
1309
|
-
return NEXT_CACHE_IMPLICIT_TAG_ID;
|
|
1310
|
-
},
|
|
1311
|
-
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
1312
|
-
return NEXT_CACHE_REVALIDATED_TAGS_HEADER;
|
|
1313
|
-
},
|
|
1314
|
-
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
1315
|
-
return NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER;
|
|
1316
|
-
},
|
|
1317
|
-
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
1318
|
-
return NEXT_CACHE_SOFT_TAG_MAX_LENGTH;
|
|
1319
|
-
},
|
|
1320
|
-
NEXT_CACHE_TAGS_HEADER: function() {
|
|
1321
|
-
return NEXT_CACHE_TAGS_HEADER;
|
|
1322
|
-
},
|
|
1323
|
-
NEXT_CACHE_TAG_MAX_ITEMS: function() {
|
|
1324
|
-
return NEXT_CACHE_TAG_MAX_ITEMS;
|
|
1325
|
-
},
|
|
1326
|
-
NEXT_CACHE_TAG_MAX_LENGTH: function() {
|
|
1327
|
-
return NEXT_CACHE_TAG_MAX_LENGTH;
|
|
1328
|
-
},
|
|
1329
|
-
NEXT_DATA_SUFFIX: function() {
|
|
1330
|
-
return NEXT_DATA_SUFFIX;
|
|
1331
|
-
},
|
|
1332
|
-
NEXT_INTERCEPTION_MARKER_PREFIX: function() {
|
|
1333
|
-
return NEXT_INTERCEPTION_MARKER_PREFIX;
|
|
1334
|
-
},
|
|
1335
|
-
NEXT_META_SUFFIX: function() {
|
|
1336
|
-
return NEXT_META_SUFFIX;
|
|
1337
|
-
},
|
|
1338
|
-
NEXT_QUERY_PARAM_PREFIX: function() {
|
|
1339
|
-
return NEXT_QUERY_PARAM_PREFIX;
|
|
1340
|
-
},
|
|
1341
|
-
NEXT_RESUME_HEADER: function() {
|
|
1342
|
-
return NEXT_RESUME_HEADER;
|
|
1343
|
-
},
|
|
1344
|
-
NON_STANDARD_NODE_ENV: function() {
|
|
1345
|
-
return NON_STANDARD_NODE_ENV;
|
|
1346
|
-
},
|
|
1347
|
-
PAGES_DIR_ALIAS: function() {
|
|
1348
|
-
return PAGES_DIR_ALIAS;
|
|
1349
|
-
},
|
|
1350
|
-
PRERENDER_REVALIDATE_HEADER: function() {
|
|
1351
|
-
return PRERENDER_REVALIDATE_HEADER;
|
|
1352
|
-
},
|
|
1353
|
-
PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
|
|
1354
|
-
return PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER;
|
|
1355
|
-
},
|
|
1356
|
-
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
1357
|
-
return PUBLIC_DIR_MIDDLEWARE_CONFLICT;
|
|
1358
|
-
},
|
|
1359
|
-
ROOT_DIR_ALIAS: function() {
|
|
1360
|
-
return ROOT_DIR_ALIAS;
|
|
1361
|
-
},
|
|
1362
|
-
RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
|
|
1363
|
-
return RSC_ACTION_CLIENT_WRAPPER_ALIAS;
|
|
1364
|
-
},
|
|
1365
|
-
RSC_ACTION_ENCRYPTION_ALIAS: function() {
|
|
1366
|
-
return RSC_ACTION_ENCRYPTION_ALIAS;
|
|
1367
|
-
},
|
|
1368
|
-
RSC_ACTION_PROXY_ALIAS: function() {
|
|
1369
|
-
return RSC_ACTION_PROXY_ALIAS;
|
|
1370
|
-
},
|
|
1371
|
-
RSC_ACTION_VALIDATE_ALIAS: function() {
|
|
1372
|
-
return RSC_ACTION_VALIDATE_ALIAS;
|
|
1373
|
-
},
|
|
1374
|
-
RSC_CACHE_WRAPPER_ALIAS: function() {
|
|
1375
|
-
return RSC_CACHE_WRAPPER_ALIAS;
|
|
1376
|
-
},
|
|
1377
|
-
RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS: function() {
|
|
1378
|
-
return RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS;
|
|
1379
|
-
},
|
|
1380
|
-
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
1381
|
-
return RSC_MOD_REF_PROXY_ALIAS;
|
|
1382
|
-
},
|
|
1383
|
-
RSC_PREFETCH_SUFFIX: function() {
|
|
1384
|
-
return RSC_PREFETCH_SUFFIX;
|
|
1385
|
-
},
|
|
1386
|
-
RSC_SEGMENTS_DIR_SUFFIX: function() {
|
|
1387
|
-
return RSC_SEGMENTS_DIR_SUFFIX;
|
|
1388
|
-
},
|
|
1389
|
-
RSC_SEGMENT_SUFFIX: function() {
|
|
1390
|
-
return RSC_SEGMENT_SUFFIX;
|
|
1391
|
-
},
|
|
1392
|
-
RSC_SUFFIX: function() {
|
|
1393
|
-
return RSC_SUFFIX;
|
|
1394
|
-
},
|
|
1395
|
-
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
1396
|
-
return SERVER_PROPS_EXPORT_ERROR;
|
|
1397
|
-
},
|
|
1398
|
-
SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
|
|
1399
|
-
return SERVER_PROPS_GET_INIT_PROPS_CONFLICT;
|
|
1400
|
-
},
|
|
1401
|
-
SERVER_PROPS_SSG_CONFLICT: function() {
|
|
1402
|
-
return SERVER_PROPS_SSG_CONFLICT;
|
|
1403
|
-
},
|
|
1404
|
-
SERVER_RUNTIME: function() {
|
|
1405
|
-
return SERVER_RUNTIME;
|
|
1406
|
-
},
|
|
1407
|
-
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
1408
|
-
return SSG_FALLBACK_EXPORT_ERROR;
|
|
1409
|
-
},
|
|
1410
|
-
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
1411
|
-
return SSG_GET_INITIAL_PROPS_CONFLICT;
|
|
1412
|
-
},
|
|
1413
|
-
STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
|
|
1414
|
-
return STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR;
|
|
1415
|
-
},
|
|
1416
|
-
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
1417
|
-
return UNSTABLE_REVALIDATE_RENAME_ERROR;
|
|
1418
|
-
},
|
|
1419
|
-
WEBPACK_LAYERS: function() {
|
|
1420
|
-
return WEBPACK_LAYERS;
|
|
1421
|
-
},
|
|
1422
|
-
WEBPACK_RESOURCE_QUERIES: function() {
|
|
1423
|
-
return WEBPACK_RESOURCE_QUERIES;
|
|
1424
|
-
}
|
|
1425
|
-
});
|
|
1426
|
-
const NEXT_QUERY_PARAM_PREFIX = "nxtP";
|
|
1427
|
-
const NEXT_INTERCEPTION_MARKER_PREFIX = "nxtI";
|
|
1428
|
-
const MATCHED_PATH_HEADER = "x-matched-path";
|
|
1429
|
-
const PRERENDER_REVALIDATE_HEADER = "x-prerender-revalidate";
|
|
1430
|
-
const PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER = "x-prerender-revalidate-if-generated";
|
|
1431
|
-
const RSC_PREFETCH_SUFFIX = ".prefetch.rsc";
|
|
1432
|
-
const RSC_SEGMENTS_DIR_SUFFIX = ".segments";
|
|
1433
|
-
const RSC_SEGMENT_SUFFIX = ".segment.rsc";
|
|
1434
|
-
const RSC_SUFFIX = ".rsc";
|
|
1435
|
-
const ACTION_SUFFIX = ".action";
|
|
1436
|
-
const NEXT_DATA_SUFFIX = ".json";
|
|
1437
|
-
const NEXT_META_SUFFIX = ".meta";
|
|
1438
|
-
const NEXT_BODY_SUFFIX = ".body";
|
|
1439
|
-
const NEXT_CACHE_TAGS_HEADER = "x-next-cache-tags";
|
|
1440
|
-
const NEXT_CACHE_REVALIDATED_TAGS_HEADER = "x-next-revalidated-tags";
|
|
1441
|
-
const NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER = "x-next-revalidate-tag-token";
|
|
1442
|
-
const NEXT_RESUME_HEADER = "next-resume";
|
|
1443
|
-
const NEXT_CACHE_TAG_MAX_ITEMS = 128;
|
|
1444
|
-
const NEXT_CACHE_TAG_MAX_LENGTH = 256;
|
|
1445
|
-
const NEXT_CACHE_SOFT_TAG_MAX_LENGTH = 1024;
|
|
1446
|
-
const NEXT_CACHE_IMPLICIT_TAG_ID = "_N_T_";
|
|
1447
|
-
const CACHE_ONE_YEAR = 31536e3;
|
|
1448
|
-
const INFINITE_CACHE = 4294967294;
|
|
1449
|
-
const MIDDLEWARE_FILENAME = "middleware";
|
|
1450
|
-
const MIDDLEWARE_LOCATION_REGEXP = `(?:src/)?${MIDDLEWARE_FILENAME}`;
|
|
1451
|
-
const INSTRUMENTATION_HOOK_FILENAME = "instrumentation";
|
|
1452
|
-
const PAGES_DIR_ALIAS = "private-next-pages";
|
|
1453
|
-
const DOT_NEXT_ALIAS = "private-dot-next";
|
|
1454
|
-
const ROOT_DIR_ALIAS = "private-next-root-dir";
|
|
1455
|
-
const APP_DIR_ALIAS = "private-next-app-dir";
|
|
1456
|
-
const RSC_MOD_REF_PROXY_ALIAS = "private-next-rsc-mod-ref-proxy";
|
|
1457
|
-
const RSC_ACTION_VALIDATE_ALIAS = "private-next-rsc-action-validate";
|
|
1458
|
-
const RSC_ACTION_PROXY_ALIAS = "private-next-rsc-server-reference";
|
|
1459
|
-
const RSC_CACHE_WRAPPER_ALIAS = "private-next-rsc-cache-wrapper";
|
|
1460
|
-
const RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS = "private-next-rsc-track-dynamic-import";
|
|
1461
|
-
const RSC_ACTION_ENCRYPTION_ALIAS = "private-next-rsc-action-encryption";
|
|
1462
|
-
const RSC_ACTION_CLIENT_WRAPPER_ALIAS = "private-next-rsc-action-client-wrapper";
|
|
1463
|
-
const PUBLIC_DIR_MIDDLEWARE_CONFLICT = `You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict`;
|
|
1464
|
-
const SSG_GET_INITIAL_PROPS_CONFLICT = `You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps`;
|
|
1465
|
-
const SERVER_PROPS_GET_INIT_PROPS_CONFLICT = `You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.`;
|
|
1466
|
-
const SERVER_PROPS_SSG_CONFLICT = `You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps`;
|
|
1467
|
-
const STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR = `can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props`;
|
|
1468
|
-
const SERVER_PROPS_EXPORT_ERROR = `pages with \`getServerSideProps\` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export`;
|
|
1469
|
-
const GSP_NO_RETURNED_VALUE = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?";
|
|
1470
|
-
const GSSP_NO_RETURNED_VALUE = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?";
|
|
1471
|
-
const UNSTABLE_REVALIDATE_RENAME_ERROR = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.";
|
|
1472
|
-
const GSSP_COMPONENT_MEMBER_ERROR = `can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member`;
|
|
1473
|
-
const NON_STANDARD_NODE_ENV = `You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env`;
|
|
1474
|
-
const SSG_FALLBACK_EXPORT_ERROR = `Pages with \`fallback\` enabled in \`getStaticPaths\` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export`;
|
|
1475
|
-
const ESLINT_DEFAULT_DIRS = [
|
|
1476
|
-
"app",
|
|
1477
|
-
"pages",
|
|
1478
|
-
"components",
|
|
1479
|
-
"lib",
|
|
1480
|
-
"src"
|
|
1481
|
-
];
|
|
1482
|
-
const SERVER_RUNTIME = {
|
|
1483
|
-
edge: "edge",
|
|
1484
|
-
experimentalEdge: "experimental-edge",
|
|
1485
|
-
nodejs: "nodejs"
|
|
1486
|
-
};
|
|
1487
|
-
const WEBPACK_LAYERS_NAMES = {
|
|
1488
|
-
/**
|
|
1489
|
-
* The layer for the shared code between the client and server bundles.
|
|
1490
|
-
*/
|
|
1491
|
-
shared: "shared",
|
|
1492
|
-
/**
|
|
1493
|
-
* The layer for server-only runtime and picking up `react-server` export conditions.
|
|
1494
|
-
* Including app router RSC pages and app router custom routes and metadata routes.
|
|
1495
|
-
*/
|
|
1496
|
-
reactServerComponents: "rsc",
|
|
1497
|
-
/**
|
|
1498
|
-
* Server Side Rendering layer for app (ssr).
|
|
1499
|
-
*/
|
|
1500
|
-
serverSideRendering: "ssr",
|
|
1501
|
-
/**
|
|
1502
|
-
* The browser client bundle layer for actions.
|
|
1503
|
-
*/
|
|
1504
|
-
actionBrowser: "action-browser",
|
|
1505
|
-
/**
|
|
1506
|
-
* The Node.js bundle layer for the API routes.
|
|
1507
|
-
*/
|
|
1508
|
-
apiNode: "api-node",
|
|
1509
|
-
/**
|
|
1510
|
-
* The Edge Lite bundle layer for the API routes.
|
|
1511
|
-
*/
|
|
1512
|
-
apiEdge: "api-edge",
|
|
1513
|
-
/**
|
|
1514
|
-
* The layer for the middleware code.
|
|
1515
|
-
*/
|
|
1516
|
-
middleware: "middleware",
|
|
1517
|
-
/**
|
|
1518
|
-
* The layer for the instrumentation hooks.
|
|
1519
|
-
*/
|
|
1520
|
-
instrument: "instrument",
|
|
1521
|
-
/**
|
|
1522
|
-
* The layer for assets on the edge.
|
|
1523
|
-
*/
|
|
1524
|
-
edgeAsset: "edge-asset",
|
|
1525
|
-
/**
|
|
1526
|
-
* The browser client bundle layer for App directory.
|
|
1527
|
-
*/
|
|
1528
|
-
appPagesBrowser: "app-pages-browser",
|
|
1529
|
-
/**
|
|
1530
|
-
* The browser client bundle layer for Pages directory.
|
|
1531
|
-
*/
|
|
1532
|
-
pagesDirBrowser: "pages-dir-browser",
|
|
1533
|
-
/**
|
|
1534
|
-
* The Edge Lite bundle layer for Pages directory.
|
|
1535
|
-
*/
|
|
1536
|
-
pagesDirEdge: "pages-dir-edge",
|
|
1537
|
-
/**
|
|
1538
|
-
* The Node.js bundle layer for Pages directory.
|
|
1539
|
-
*/
|
|
1540
|
-
pagesDirNode: "pages-dir-node"
|
|
1541
|
-
};
|
|
1542
|
-
const WEBPACK_LAYERS = {
|
|
1543
|
-
...WEBPACK_LAYERS_NAMES,
|
|
1544
|
-
GROUP: {
|
|
1545
|
-
builtinReact: [
|
|
1546
|
-
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
1547
|
-
WEBPACK_LAYERS_NAMES.actionBrowser
|
|
1548
|
-
],
|
|
1549
|
-
serverOnly: [
|
|
1550
|
-
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
1551
|
-
WEBPACK_LAYERS_NAMES.actionBrowser,
|
|
1552
|
-
WEBPACK_LAYERS_NAMES.instrument,
|
|
1553
|
-
WEBPACK_LAYERS_NAMES.middleware
|
|
1554
|
-
],
|
|
1555
|
-
neutralTarget: [
|
|
1556
|
-
// pages api
|
|
1557
|
-
WEBPACK_LAYERS_NAMES.apiNode,
|
|
1558
|
-
WEBPACK_LAYERS_NAMES.apiEdge
|
|
1559
|
-
],
|
|
1560
|
-
clientOnly: [
|
|
1561
|
-
WEBPACK_LAYERS_NAMES.serverSideRendering,
|
|
1562
|
-
WEBPACK_LAYERS_NAMES.appPagesBrowser
|
|
1563
|
-
],
|
|
1564
|
-
bundled: [
|
|
1565
|
-
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
1566
|
-
WEBPACK_LAYERS_NAMES.actionBrowser,
|
|
1567
|
-
WEBPACK_LAYERS_NAMES.serverSideRendering,
|
|
1568
|
-
WEBPACK_LAYERS_NAMES.appPagesBrowser,
|
|
1569
|
-
WEBPACK_LAYERS_NAMES.shared,
|
|
1570
|
-
WEBPACK_LAYERS_NAMES.instrument,
|
|
1571
|
-
WEBPACK_LAYERS_NAMES.middleware
|
|
1572
|
-
],
|
|
1573
|
-
appPages: [
|
|
1574
|
-
// app router pages and layouts
|
|
1575
|
-
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
1576
|
-
WEBPACK_LAYERS_NAMES.serverSideRendering,
|
|
1577
|
-
WEBPACK_LAYERS_NAMES.appPagesBrowser,
|
|
1578
|
-
WEBPACK_LAYERS_NAMES.actionBrowser
|
|
1579
|
-
]
|
|
1580
|
-
}
|
|
1581
|
-
};
|
|
1582
|
-
const WEBPACK_RESOURCE_QUERIES = {
|
|
1583
|
-
edgeSSREntry: "__next_edge_ssr_entry__",
|
|
1584
|
-
metadata: "__next_metadata__",
|
|
1585
|
-
metadataRoute: "__next_metadata_route__",
|
|
1586
|
-
metadataImageMeta: "__next_metadata_image_meta__"
|
|
1587
|
-
};
|
|
1588
|
-
})(constants);
|
|
1589
|
-
return constants;
|
|
1590
|
-
}
|
|
1591
|
-
var escapeRegexp = {};
|
|
1592
|
-
var hasRequiredEscapeRegexp;
|
|
1593
|
-
function requireEscapeRegexp() {
|
|
1594
|
-
if (hasRequiredEscapeRegexp) return escapeRegexp;
|
|
1595
|
-
hasRequiredEscapeRegexp = 1;
|
|
1596
|
-
(function(exports2) {
|
|
1597
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1598
|
-
value: true
|
|
1599
|
-
});
|
|
1600
|
-
Object.defineProperty(exports2, "escapeStringRegexp", {
|
|
1601
|
-
enumerable: true,
|
|
1602
|
-
get: function() {
|
|
1603
|
-
return escapeStringRegexp;
|
|
1604
|
-
}
|
|
1605
|
-
});
|
|
1606
|
-
const reHasRegExp = /[|\\{}()[\]^$+*?.-]/;
|
|
1607
|
-
const reReplaceRegExp = /[|\\{}()[\]^$+*?.-]/g;
|
|
1608
|
-
function escapeStringRegexp(str) {
|
|
1609
|
-
if (reHasRegExp.test(str)) {
|
|
1610
|
-
return str.replace(reReplaceRegExp, "\\$&");
|
|
1611
|
-
}
|
|
1612
|
-
return str;
|
|
1613
|
-
}
|
|
1614
|
-
})(escapeRegexp);
|
|
1615
|
-
return escapeRegexp;
|
|
1616
|
-
}
|
|
1617
|
-
var hasRequiredRouteRegex;
|
|
1618
|
-
function requireRouteRegex() {
|
|
1619
|
-
if (hasRequiredRouteRegex) return routeRegex;
|
|
1620
|
-
hasRequiredRouteRegex = 1;
|
|
1621
|
-
(function(exports2) {
|
|
1622
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1623
|
-
value: true
|
|
1624
|
-
});
|
|
1625
|
-
function _export(target, all) {
|
|
1626
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
1627
|
-
enumerable: true,
|
|
1628
|
-
get: all[name]
|
|
1629
|
-
});
|
|
1630
|
-
}
|
|
1631
|
-
_export(exports2, {
|
|
1632
|
-
getNamedMiddlewareRegex: function() {
|
|
1633
|
-
return getNamedMiddlewareRegex;
|
|
1634
|
-
},
|
|
1635
|
-
getNamedRouteRegex: function() {
|
|
1636
|
-
return getNamedRouteRegex;
|
|
1637
|
-
},
|
|
1638
|
-
getRouteRegex: function() {
|
|
1639
|
-
return getRouteRegex;
|
|
1640
|
-
},
|
|
1641
|
-
parseParameter: function() {
|
|
1642
|
-
return parseParameter;
|
|
1643
|
-
}
|
|
1644
|
-
});
|
|
1645
|
-
const _constants = requireConstants();
|
|
1646
|
-
const _interceptionroutes = requireInterceptionRoutes();
|
|
1647
|
-
const _escaperegexp = requireEscapeRegexp();
|
|
1648
|
-
const _removetrailingslash = requireRemoveTrailingSlash();
|
|
1649
|
-
const PARAMETER_PATTERN = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;
|
|
1650
|
-
function parseParameter(param) {
|
|
1651
|
-
const match = param.match(PARAMETER_PATTERN);
|
|
1652
|
-
if (!match) {
|
|
1653
|
-
return parseMatchedParameter(param);
|
|
1654
|
-
}
|
|
1655
|
-
return parseMatchedParameter(match[2]);
|
|
1656
|
-
}
|
|
1657
|
-
function parseMatchedParameter(param) {
|
|
1658
|
-
const optional = param.startsWith("[") && param.endsWith("]");
|
|
1659
|
-
if (optional) {
|
|
1660
|
-
param = param.slice(1, -1);
|
|
1661
|
-
}
|
|
1662
|
-
const repeat = param.startsWith("...");
|
|
1663
|
-
if (repeat) {
|
|
1664
|
-
param = param.slice(3);
|
|
1665
|
-
}
|
|
1666
|
-
return {
|
|
1667
|
-
key: param,
|
|
1668
|
-
repeat,
|
|
1669
|
-
optional
|
|
1670
|
-
};
|
|
1671
|
-
}
|
|
1672
|
-
function getParametrizedRoute(route, includeSuffix, includePrefix) {
|
|
1673
|
-
const groups = {};
|
|
1674
|
-
let groupIndex = 1;
|
|
1675
|
-
const segments = [];
|
|
1676
|
-
for (const segment2 of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
|
|
1677
|
-
const markerMatch = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((m) => segment2.startsWith(m));
|
|
1678
|
-
const paramMatches = segment2.match(PARAMETER_PATTERN);
|
|
1679
|
-
if (markerMatch && paramMatches && paramMatches[2]) {
|
|
1680
|
-
const { key, optional, repeat } = parseMatchedParameter(paramMatches[2]);
|
|
1681
|
-
groups[key] = {
|
|
1682
|
-
pos: groupIndex++,
|
|
1683
|
-
repeat,
|
|
1684
|
-
optional
|
|
1685
|
-
};
|
|
1686
|
-
segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(markerMatch) + "([^/]+?)");
|
|
1687
|
-
} else if (paramMatches && paramMatches[2]) {
|
|
1688
|
-
const { key, repeat, optional } = parseMatchedParameter(paramMatches[2]);
|
|
1689
|
-
groups[key] = {
|
|
1690
|
-
pos: groupIndex++,
|
|
1691
|
-
repeat,
|
|
1692
|
-
optional
|
|
1693
|
-
};
|
|
1694
|
-
if (includePrefix && paramMatches[1]) {
|
|
1695
|
-
segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(paramMatches[1]));
|
|
1696
|
-
}
|
|
1697
|
-
let s = repeat ? optional ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
|
|
1698
|
-
if (includePrefix && paramMatches[1]) {
|
|
1699
|
-
s = s.substring(1);
|
|
1700
|
-
}
|
|
1701
|
-
segments.push(s);
|
|
1702
|
-
} else {
|
|
1703
|
-
segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(segment2));
|
|
1704
|
-
}
|
|
1705
|
-
if (includeSuffix && paramMatches && paramMatches[3]) {
|
|
1706
|
-
segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
|
|
1707
|
-
}
|
|
1708
|
-
}
|
|
1709
|
-
return {
|
|
1710
|
-
parameterizedRoute: segments.join(""),
|
|
1711
|
-
groups
|
|
1712
|
-
};
|
|
1713
|
-
}
|
|
1714
|
-
function getRouteRegex(normalizedRoute, param) {
|
|
1715
|
-
let { includeSuffix = false, includePrefix = false, excludeOptionalTrailingSlash = false } = param === void 0 ? {} : param;
|
|
1716
|
-
const { parameterizedRoute, groups } = getParametrizedRoute(normalizedRoute, includeSuffix, includePrefix);
|
|
1717
|
-
let re = parameterizedRoute;
|
|
1718
|
-
if (!excludeOptionalTrailingSlash) {
|
|
1719
|
-
re += "(?:/)?";
|
|
1720
|
-
}
|
|
1721
|
-
return {
|
|
1722
|
-
re: new RegExp("^" + re + "$"),
|
|
1723
|
-
groups
|
|
1724
|
-
};
|
|
1725
|
-
}
|
|
1726
|
-
function buildGetSafeRouteKey() {
|
|
1727
|
-
let i = 0;
|
|
1728
|
-
return () => {
|
|
1729
|
-
let routeKey = "";
|
|
1730
|
-
let j = ++i;
|
|
1731
|
-
while (j > 0) {
|
|
1732
|
-
routeKey += String.fromCharCode(97 + (j - 1) % 26);
|
|
1733
|
-
j = Math.floor((j - 1) / 26);
|
|
1734
|
-
}
|
|
1735
|
-
return routeKey;
|
|
1736
|
-
};
|
|
1737
|
-
}
|
|
1738
|
-
function getSafeKeyFromSegment(param) {
|
|
1739
|
-
let { interceptionMarker, getSafeRouteKey, segment: segment2, routeKeys, keyPrefix, backreferenceDuplicateKeys } = param;
|
|
1740
|
-
const { key, optional, repeat } = parseMatchedParameter(segment2);
|
|
1741
|
-
let cleanedKey = key.replace(/\W/g, "");
|
|
1742
|
-
if (keyPrefix) {
|
|
1743
|
-
cleanedKey = "" + keyPrefix + cleanedKey;
|
|
1744
|
-
}
|
|
1745
|
-
let invalidKey = false;
|
|
1746
|
-
if (cleanedKey.length === 0 || cleanedKey.length > 30) {
|
|
1747
|
-
invalidKey = true;
|
|
1748
|
-
}
|
|
1749
|
-
if (!isNaN(parseInt(cleanedKey.slice(0, 1)))) {
|
|
1750
|
-
invalidKey = true;
|
|
1751
|
-
}
|
|
1752
|
-
if (invalidKey) {
|
|
1753
|
-
cleanedKey = getSafeRouteKey();
|
|
1754
|
-
}
|
|
1755
|
-
const duplicateKey = cleanedKey in routeKeys;
|
|
1756
|
-
if (keyPrefix) {
|
|
1757
|
-
routeKeys[cleanedKey] = "" + keyPrefix + key;
|
|
1758
|
-
} else {
|
|
1759
|
-
routeKeys[cleanedKey] = key;
|
|
1760
|
-
}
|
|
1761
|
-
const interceptionPrefix = interceptionMarker ? (0, _escaperegexp.escapeStringRegexp)(interceptionMarker) : "";
|
|
1762
|
-
let pattern;
|
|
1763
|
-
if (duplicateKey && backreferenceDuplicateKeys) {
|
|
1764
|
-
pattern = "\\k<" + cleanedKey + ">";
|
|
1765
|
-
} else if (repeat) {
|
|
1766
|
-
pattern = "(?<" + cleanedKey + ">.+?)";
|
|
1767
|
-
} else {
|
|
1768
|
-
pattern = "(?<" + cleanedKey + ">[^/]+?)";
|
|
1769
|
-
}
|
|
1770
|
-
return optional ? "(?:/" + interceptionPrefix + pattern + ")?" : "/" + interceptionPrefix + pattern;
|
|
1771
|
-
}
|
|
1772
|
-
function getNamedParametrizedRoute(route, prefixRouteKeys, includeSuffix, includePrefix, backreferenceDuplicateKeys) {
|
|
1773
|
-
const getSafeRouteKey = buildGetSafeRouteKey();
|
|
1774
|
-
const routeKeys = {};
|
|
1775
|
-
const segments = [];
|
|
1776
|
-
for (const segment2 of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
|
|
1777
|
-
const hasInterceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.some((m) => segment2.startsWith(m));
|
|
1778
|
-
const paramMatches = segment2.match(PARAMETER_PATTERN);
|
|
1779
|
-
if (hasInterceptionMarker && paramMatches && paramMatches[2]) {
|
|
1780
|
-
segments.push(getSafeKeyFromSegment({
|
|
1781
|
-
getSafeRouteKey,
|
|
1782
|
-
interceptionMarker: paramMatches[1],
|
|
1783
|
-
segment: paramMatches[2],
|
|
1784
|
-
routeKeys,
|
|
1785
|
-
keyPrefix: prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : void 0,
|
|
1786
|
-
backreferenceDuplicateKeys
|
|
1787
|
-
}));
|
|
1788
|
-
} else if (paramMatches && paramMatches[2]) {
|
|
1789
|
-
if (includePrefix && paramMatches[1]) {
|
|
1790
|
-
segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(paramMatches[1]));
|
|
1791
|
-
}
|
|
1792
|
-
let s = getSafeKeyFromSegment({
|
|
1793
|
-
getSafeRouteKey,
|
|
1794
|
-
segment: paramMatches[2],
|
|
1795
|
-
routeKeys,
|
|
1796
|
-
keyPrefix: prefixRouteKeys ? _constants.NEXT_QUERY_PARAM_PREFIX : void 0,
|
|
1797
|
-
backreferenceDuplicateKeys
|
|
1798
|
-
});
|
|
1799
|
-
if (includePrefix && paramMatches[1]) {
|
|
1800
|
-
s = s.substring(1);
|
|
1801
|
-
}
|
|
1802
|
-
segments.push(s);
|
|
1803
|
-
} else {
|
|
1804
|
-
segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(segment2));
|
|
1805
|
-
}
|
|
1806
|
-
if (includeSuffix && paramMatches && paramMatches[3]) {
|
|
1807
|
-
segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
|
|
1808
|
-
}
|
|
1809
|
-
}
|
|
1810
|
-
return {
|
|
1811
|
-
namedParameterizedRoute: segments.join(""),
|
|
1812
|
-
routeKeys
|
|
1813
|
-
};
|
|
1814
|
-
}
|
|
1815
|
-
function getNamedRouteRegex(normalizedRoute, options) {
|
|
1816
|
-
var _options_includeSuffix, _options_includePrefix, _options_backreferenceDuplicateKeys;
|
|
1817
|
-
const result = getNamedParametrizedRoute(normalizedRoute, options.prefixRouteKeys, (_options_includeSuffix = options.includeSuffix) != null ? _options_includeSuffix : false, (_options_includePrefix = options.includePrefix) != null ? _options_includePrefix : false, (_options_backreferenceDuplicateKeys = options.backreferenceDuplicateKeys) != null ? _options_backreferenceDuplicateKeys : false);
|
|
1818
|
-
let namedRegex = result.namedParameterizedRoute;
|
|
1819
|
-
if (!options.excludeOptionalTrailingSlash) {
|
|
1820
|
-
namedRegex += "(?:/)?";
|
|
1821
|
-
}
|
|
1822
|
-
return {
|
|
1823
|
-
...getRouteRegex(normalizedRoute, options),
|
|
1824
|
-
namedRegex: "^" + namedRegex + "$",
|
|
1825
|
-
routeKeys: result.routeKeys
|
|
1826
|
-
};
|
|
1827
|
-
}
|
|
1828
|
-
function getNamedMiddlewareRegex(normalizedRoute, options) {
|
|
1829
|
-
const { parameterizedRoute } = getParametrizedRoute(normalizedRoute, false, false);
|
|
1830
|
-
const { catchAll = true } = options;
|
|
1831
|
-
if (parameterizedRoute === "/") {
|
|
1832
|
-
let catchAllRegex = catchAll ? ".*" : "";
|
|
1833
|
-
return {
|
|
1834
|
-
namedRegex: "^/" + catchAllRegex + "$"
|
|
1835
|
-
};
|
|
1836
|
-
}
|
|
1837
|
-
const { namedParameterizedRoute } = getNamedParametrizedRoute(normalizedRoute, false, false, false, false);
|
|
1838
|
-
let catchAllGroupedRegex = catchAll ? "(?:(/.*)?)" : "";
|
|
1839
|
-
return {
|
|
1840
|
-
namedRegex: "^" + namedParameterizedRoute + catchAllGroupedRegex + "$"
|
|
1841
|
-
};
|
|
1842
|
-
}
|
|
1843
|
-
})(routeRegex);
|
|
1844
|
-
return routeRegex;
|
|
1845
|
-
}
|
|
1846
|
-
var hasRequiredInterpolateAs;
|
|
1847
|
-
function requireInterpolateAs() {
|
|
1848
|
-
if (hasRequiredInterpolateAs) return interpolateAs;
|
|
1849
|
-
hasRequiredInterpolateAs = 1;
|
|
1850
|
-
(function(exports2) {
|
|
1851
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1852
|
-
value: true
|
|
1853
|
-
});
|
|
1854
|
-
Object.defineProperty(exports2, "interpolateAs", {
|
|
1855
|
-
enumerable: true,
|
|
1856
|
-
get: function() {
|
|
1857
|
-
return interpolateAs2;
|
|
1858
|
-
}
|
|
1859
|
-
});
|
|
1860
|
-
const _routematcher = requireRouteMatcher();
|
|
1861
|
-
const _routeregex = requireRouteRegex();
|
|
1862
|
-
function interpolateAs2(route, asPathname, query) {
|
|
1863
|
-
let interpolatedRoute = "";
|
|
1864
|
-
const dynamicRegex = (0, _routeregex.getRouteRegex)(route);
|
|
1865
|
-
const dynamicGroups = dynamicRegex.groups;
|
|
1866
|
-
const dynamicMatches = (
|
|
1867
|
-
// Try to match the dynamic route against the asPath
|
|
1868
|
-
(asPathname !== route ? (0, _routematcher.getRouteMatcher)(dynamicRegex)(asPathname) : "") || // Fall back to reading the values from the href
|
|
1869
|
-
// TODO: should this take priority; also need to change in the router.
|
|
1870
|
-
query
|
|
1871
|
-
);
|
|
1872
|
-
interpolatedRoute = route;
|
|
1873
|
-
const params = Object.keys(dynamicGroups);
|
|
1874
|
-
if (!params.every((param) => {
|
|
1875
|
-
let value = dynamicMatches[param] || "";
|
|
1876
|
-
const { repeat, optional } = dynamicGroups[param];
|
|
1877
|
-
let replaced = "[" + (repeat ? "..." : "") + param + "]";
|
|
1878
|
-
if (optional) {
|
|
1879
|
-
replaced = (!value ? "/" : "") + "[" + replaced + "]";
|
|
1880
|
-
}
|
|
1881
|
-
if (repeat && !Array.isArray(value)) value = [
|
|
1882
|
-
value
|
|
1883
|
-
];
|
|
1884
|
-
return (optional || param in dynamicMatches) && // Interpolate group into data URL if present
|
|
1885
|
-
(interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map(
|
|
1886
|
-
// these values should be fully encoded instead of just
|
|
1887
|
-
// path delimiter escaped since they are being inserted
|
|
1888
|
-
// into the URL and we expect URL encoded segments
|
|
1889
|
-
// when parsing dynamic route params
|
|
1890
|
-
(segment2) => encodeURIComponent(segment2)
|
|
1891
|
-
).join("/") : encodeURIComponent(value)) || "/");
|
|
1892
|
-
})) {
|
|
1893
|
-
interpolatedRoute = "";
|
|
1894
|
-
}
|
|
1895
|
-
return {
|
|
1896
|
-
params,
|
|
1897
|
-
result: interpolatedRoute
|
|
1898
|
-
};
|
|
1899
|
-
}
|
|
1900
|
-
})(interpolateAs);
|
|
1901
|
-
return interpolateAs;
|
|
1902
|
-
}
|
|
1903
|
-
var hasRequiredResolveHref;
|
|
1904
|
-
function requireResolveHref() {
|
|
1905
|
-
if (hasRequiredResolveHref) return resolveHref.exports;
|
|
1906
|
-
hasRequiredResolveHref = 1;
|
|
1907
|
-
(function(module2, exports2) {
|
|
1908
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1909
|
-
value: true
|
|
1910
|
-
});
|
|
1911
|
-
Object.defineProperty(exports2, "resolveHref", {
|
|
1912
|
-
enumerable: true,
|
|
1913
|
-
get: function() {
|
|
1914
|
-
return resolveHref2;
|
|
1915
|
-
}
|
|
1916
|
-
});
|
|
1917
|
-
const _querystring = requireQuerystring();
|
|
1918
|
-
const _formaturl = requireFormatUrl();
|
|
1919
|
-
const _omit = requireOmit();
|
|
1920
|
-
const _utils = requireUtils$1();
|
|
1921
|
-
const _normalizetrailingslash = requireNormalizeTrailingSlash();
|
|
1922
|
-
const _islocalurl = requireIsLocalUrl();
|
|
1923
|
-
const _utils1 = requireUtils();
|
|
1924
|
-
const _interpolateas = requireInterpolateAs();
|
|
1925
|
-
function resolveHref2(router, href, resolveAs) {
|
|
1926
|
-
let base;
|
|
1927
|
-
let urlAsString = typeof href === "string" ? href : (0, _formaturl.formatWithValidation)(href);
|
|
1928
|
-
const urlProtoMatch = urlAsString.match(/^[a-z][a-z0-9+.-]*:\/\//i);
|
|
1929
|
-
const urlAsStringNoProto = urlProtoMatch ? urlAsString.slice(urlProtoMatch[0].length) : urlAsString;
|
|
1930
|
-
const urlParts = urlAsStringNoProto.split("?", 1);
|
|
1931
|
-
if ((urlParts[0] || "").match(/(\/\/|\\)/)) {
|
|
1932
|
-
console.error("Invalid href '" + urlAsString + "' passed to next/router in page: '" + router.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
|
|
1933
|
-
const normalizedUrl = (0, _utils.normalizeRepeatedSlashes)(urlAsStringNoProto);
|
|
1934
|
-
urlAsString = (urlProtoMatch ? urlProtoMatch[0] : "") + normalizedUrl;
|
|
1935
|
-
}
|
|
1936
|
-
if (!(0, _islocalurl.isLocalURL)(urlAsString)) {
|
|
1937
|
-
return resolveAs ? [
|
|
1938
|
-
urlAsString
|
|
1939
|
-
] : urlAsString;
|
|
1940
|
-
}
|
|
1941
|
-
try {
|
|
1942
|
-
base = new URL(urlAsString.startsWith("#") ? router.asPath : router.pathname, "http://n");
|
|
1943
|
-
} catch (_) {
|
|
1944
|
-
base = new URL("/", "http://n");
|
|
1945
|
-
}
|
|
1946
|
-
try {
|
|
1947
|
-
const finalUrl = new URL(urlAsString, base);
|
|
1948
|
-
finalUrl.pathname = (0, _normalizetrailingslash.normalizePathTrailingSlash)(finalUrl.pathname);
|
|
1949
|
-
let interpolatedAs = "";
|
|
1950
|
-
if ((0, _utils1.isDynamicRoute)(finalUrl.pathname) && finalUrl.searchParams && resolveAs) {
|
|
1951
|
-
const query = (0, _querystring.searchParamsToUrlQuery)(finalUrl.searchParams);
|
|
1952
|
-
const { result, params } = (0, _interpolateas.interpolateAs)(finalUrl.pathname, finalUrl.pathname, query);
|
|
1953
|
-
if (result) {
|
|
1954
|
-
interpolatedAs = (0, _formaturl.formatWithValidation)({
|
|
1955
|
-
pathname: result,
|
|
1956
|
-
hash: finalUrl.hash,
|
|
1957
|
-
query: (0, _omit.omit)(query, params)
|
|
1958
|
-
});
|
|
1959
|
-
}
|
|
1960
|
-
}
|
|
1961
|
-
const resolvedHref = finalUrl.origin === base.origin ? finalUrl.href.slice(finalUrl.origin.length) : finalUrl.href;
|
|
1962
|
-
return resolveAs ? [
|
|
1963
|
-
resolvedHref,
|
|
1964
|
-
interpolatedAs || resolvedHref
|
|
1965
|
-
] : resolvedHref;
|
|
1966
|
-
} catch (_) {
|
|
1967
|
-
return resolveAs ? [
|
|
1968
|
-
urlAsString
|
|
1969
|
-
] : urlAsString;
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
1973
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
1974
|
-
Object.assign(exports2.default, exports2);
|
|
1975
|
-
module2.exports = exports2.default;
|
|
1976
|
-
}
|
|
1977
|
-
})(resolveHref, resolveHref.exports);
|
|
1978
|
-
return resolveHref.exports;
|
|
1979
|
-
}
|
|
1980
|
-
var addLocale$1 = { exports: {} };
|
|
1981
|
-
var addLocale = {};
|
|
1982
|
-
var addPathPrefix = {};
|
|
1983
|
-
var hasRequiredAddPathPrefix;
|
|
1984
|
-
function requireAddPathPrefix() {
|
|
1985
|
-
if (hasRequiredAddPathPrefix) return addPathPrefix;
|
|
1986
|
-
hasRequiredAddPathPrefix = 1;
|
|
1987
|
-
(function(exports2) {
|
|
1988
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
1989
|
-
value: true
|
|
1990
|
-
});
|
|
1991
|
-
Object.defineProperty(exports2, "addPathPrefix", {
|
|
1992
|
-
enumerable: true,
|
|
1993
|
-
get: function() {
|
|
1994
|
-
return addPathPrefix2;
|
|
1995
|
-
}
|
|
1996
|
-
});
|
|
1997
|
-
const _parsepath = requireParsePath();
|
|
1998
|
-
function addPathPrefix2(path, prefix) {
|
|
1999
|
-
if (!path.startsWith("/") || !prefix) {
|
|
2000
|
-
return path;
|
|
2001
|
-
}
|
|
2002
|
-
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
|
2003
|
-
return "" + prefix + pathname + query + hash;
|
|
2004
|
-
}
|
|
2005
|
-
})(addPathPrefix);
|
|
2006
|
-
return addPathPrefix;
|
|
2007
|
-
}
|
|
2008
|
-
var hasRequiredAddLocale$1;
|
|
2009
|
-
function requireAddLocale$1() {
|
|
2010
|
-
if (hasRequiredAddLocale$1) return addLocale;
|
|
2011
|
-
hasRequiredAddLocale$1 = 1;
|
|
2012
|
-
(function(exports2) {
|
|
2013
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2014
|
-
value: true
|
|
2015
|
-
});
|
|
2016
|
-
Object.defineProperty(exports2, "addLocale", {
|
|
2017
|
-
enumerable: true,
|
|
2018
|
-
get: function() {
|
|
2019
|
-
return addLocale2;
|
|
2020
|
-
}
|
|
2021
|
-
});
|
|
2022
|
-
const _addpathprefix = requireAddPathPrefix();
|
|
2023
|
-
const _pathhasprefix = requirePathHasPrefix();
|
|
2024
|
-
function addLocale2(path, locale, defaultLocale, ignorePrefix) {
|
|
2025
|
-
if (!locale || locale === defaultLocale) return path;
|
|
2026
|
-
const lower = path.toLowerCase();
|
|
2027
|
-
if (!ignorePrefix) {
|
|
2028
|
-
if ((0, _pathhasprefix.pathHasPrefix)(lower, "/api")) return path;
|
|
2029
|
-
if ((0, _pathhasprefix.pathHasPrefix)(lower, "/" + locale.toLowerCase())) return path;
|
|
2030
|
-
}
|
|
2031
|
-
return (0, _addpathprefix.addPathPrefix)(path, "/" + locale);
|
|
2032
|
-
}
|
|
2033
|
-
})(addLocale);
|
|
2034
|
-
return addLocale;
|
|
2035
|
-
}
|
|
2036
|
-
var hasRequiredAddLocale;
|
|
2037
|
-
function requireAddLocale() {
|
|
2038
|
-
if (hasRequiredAddLocale) return addLocale$1.exports;
|
|
2039
|
-
hasRequiredAddLocale = 1;
|
|
2040
|
-
(function(module2, exports2) {
|
|
2041
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2042
|
-
value: true
|
|
2043
|
-
});
|
|
2044
|
-
Object.defineProperty(exports2, "addLocale", {
|
|
2045
|
-
enumerable: true,
|
|
2046
|
-
get: function() {
|
|
2047
|
-
return addLocale2;
|
|
2048
|
-
}
|
|
2049
|
-
});
|
|
2050
|
-
const _normalizetrailingslash = requireNormalizeTrailingSlash();
|
|
2051
|
-
const addLocale2 = function(path) {
|
|
2052
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
2053
|
-
args[_key - 1] = arguments[_key];
|
|
2054
|
-
}
|
|
2055
|
-
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
2056
|
-
return (0, _normalizetrailingslash.normalizePathTrailingSlash)(requireAddLocale$1().addLocale(path, ...args));
|
|
2057
|
-
}
|
|
2058
|
-
return path;
|
|
2059
|
-
};
|
|
2060
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2061
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2062
|
-
Object.assign(exports2.default, exports2);
|
|
2063
|
-
module2.exports = exports2.default;
|
|
2064
|
-
}
|
|
2065
|
-
})(addLocale$1, addLocale$1.exports);
|
|
2066
|
-
return addLocale$1.exports;
|
|
2067
|
-
}
|
|
2068
|
-
var useIntersection = { exports: {} };
|
|
2069
|
-
var requestIdleCallback = { exports: {} };
|
|
2070
|
-
var hasRequiredRequestIdleCallback;
|
|
2071
|
-
function requireRequestIdleCallback() {
|
|
2072
|
-
if (hasRequiredRequestIdleCallback) return requestIdleCallback.exports;
|
|
2073
|
-
hasRequiredRequestIdleCallback = 1;
|
|
2074
|
-
(function(module2, exports2) {
|
|
2075
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2076
|
-
value: true
|
|
2077
|
-
});
|
|
2078
|
-
function _export(target, all) {
|
|
2079
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
2080
|
-
enumerable: true,
|
|
2081
|
-
get: all[name]
|
|
2082
|
-
});
|
|
2083
|
-
}
|
|
2084
|
-
_export(exports2, {
|
|
2085
|
-
cancelIdleCallback: function() {
|
|
2086
|
-
return cancelIdleCallback;
|
|
2087
|
-
},
|
|
2088
|
-
requestIdleCallback: function() {
|
|
2089
|
-
return requestIdleCallback2;
|
|
2090
|
-
}
|
|
2091
|
-
});
|
|
2092
|
-
const requestIdleCallback2 = typeof self !== "undefined" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(cb) {
|
|
2093
|
-
let start = Date.now();
|
|
2094
|
-
return self.setTimeout(function() {
|
|
2095
|
-
cb({
|
|
2096
|
-
didTimeout: false,
|
|
2097
|
-
timeRemaining: function() {
|
|
2098
|
-
return Math.max(0, 50 - (Date.now() - start));
|
|
2099
|
-
}
|
|
2100
|
-
});
|
|
2101
|
-
}, 1);
|
|
2102
|
-
};
|
|
2103
|
-
const cancelIdleCallback = typeof self !== "undefined" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) {
|
|
2104
|
-
return clearTimeout(id);
|
|
2105
|
-
};
|
|
2106
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2107
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2108
|
-
Object.assign(exports2.default, exports2);
|
|
2109
|
-
module2.exports = exports2.default;
|
|
2110
|
-
}
|
|
2111
|
-
})(requestIdleCallback, requestIdleCallback.exports);
|
|
2112
|
-
return requestIdleCallback.exports;
|
|
2113
|
-
}
|
|
2114
|
-
var hasRequiredUseIntersection;
|
|
2115
|
-
function requireUseIntersection() {
|
|
2116
|
-
if (hasRequiredUseIntersection) return useIntersection.exports;
|
|
2117
|
-
hasRequiredUseIntersection = 1;
|
|
2118
|
-
(function(module2, exports2) {
|
|
2119
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2120
|
-
value: true
|
|
2121
|
-
});
|
|
2122
|
-
Object.defineProperty(exports2, "useIntersection", {
|
|
2123
|
-
enumerable: true,
|
|
2124
|
-
get: function() {
|
|
2125
|
-
return useIntersection2;
|
|
2126
|
-
}
|
|
2127
|
-
});
|
|
2128
|
-
const _react = React;
|
|
2129
|
-
const _requestidlecallback = requireRequestIdleCallback();
|
|
2130
|
-
const hasIntersectionObserver = typeof IntersectionObserver === "function";
|
|
2131
|
-
const observers = /* @__PURE__ */ new Map();
|
|
2132
|
-
const idList = [];
|
|
2133
|
-
function createObserver(options) {
|
|
2134
|
-
const id = {
|
|
2135
|
-
root: options.root || null,
|
|
2136
|
-
margin: options.rootMargin || ""
|
|
2137
|
-
};
|
|
2138
|
-
const existing = idList.find((obj) => obj.root === id.root && obj.margin === id.margin);
|
|
2139
|
-
let instance;
|
|
2140
|
-
if (existing) {
|
|
2141
|
-
instance = observers.get(existing);
|
|
2142
|
-
if (instance) {
|
|
2143
|
-
return instance;
|
|
2144
|
-
}
|
|
2145
|
-
}
|
|
2146
|
-
const elements = /* @__PURE__ */ new Map();
|
|
2147
|
-
const observer = new IntersectionObserver((entries) => {
|
|
2148
|
-
entries.forEach((entry) => {
|
|
2149
|
-
const callback = elements.get(entry.target);
|
|
2150
|
-
const isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
|
|
2151
|
-
if (callback && isVisible) {
|
|
2152
|
-
callback(isVisible);
|
|
2153
|
-
}
|
|
2154
|
-
});
|
|
2155
|
-
}, options);
|
|
2156
|
-
instance = {
|
|
2157
|
-
id,
|
|
2158
|
-
observer,
|
|
2159
|
-
elements
|
|
2160
|
-
};
|
|
2161
|
-
idList.push(id);
|
|
2162
|
-
observers.set(id, instance);
|
|
2163
|
-
return instance;
|
|
2164
|
-
}
|
|
2165
|
-
function observe(element, callback, options) {
|
|
2166
|
-
const { id, observer, elements } = createObserver(options);
|
|
2167
|
-
elements.set(element, callback);
|
|
2168
|
-
observer.observe(element);
|
|
2169
|
-
return function unobserve() {
|
|
2170
|
-
elements.delete(element);
|
|
2171
|
-
observer.unobserve(element);
|
|
2172
|
-
if (elements.size === 0) {
|
|
2173
|
-
observer.disconnect();
|
|
2174
|
-
observers.delete(id);
|
|
2175
|
-
const index = idList.findIndex((obj) => obj.root === id.root && obj.margin === id.margin);
|
|
2176
|
-
if (index > -1) {
|
|
2177
|
-
idList.splice(index, 1);
|
|
2178
|
-
}
|
|
2179
|
-
}
|
|
2180
|
-
};
|
|
2181
|
-
}
|
|
2182
|
-
function useIntersection2(param) {
|
|
2183
|
-
let { rootRef, rootMargin, disabled } = param;
|
|
2184
|
-
const isDisabled = disabled || !hasIntersectionObserver;
|
|
2185
|
-
const [visible, setVisible] = (0, _react.useState)(false);
|
|
2186
|
-
const elementRef = (0, _react.useRef)(null);
|
|
2187
|
-
const setElement = (0, _react.useCallback)((element) => {
|
|
2188
|
-
elementRef.current = element;
|
|
2189
|
-
}, []);
|
|
2190
|
-
(0, _react.useEffect)(() => {
|
|
2191
|
-
if (hasIntersectionObserver) {
|
|
2192
|
-
if (isDisabled || visible) return;
|
|
2193
|
-
const element = elementRef.current;
|
|
2194
|
-
if (element && element.tagName) {
|
|
2195
|
-
const unobserve = observe(element, (isVisible) => isVisible && setVisible(isVisible), {
|
|
2196
|
-
root: rootRef == null ? void 0 : rootRef.current,
|
|
2197
|
-
rootMargin
|
|
2198
|
-
});
|
|
2199
|
-
return unobserve;
|
|
2200
|
-
}
|
|
2201
|
-
} else {
|
|
2202
|
-
if (!visible) {
|
|
2203
|
-
const idleCallback = (0, _requestidlecallback.requestIdleCallback)(() => setVisible(true));
|
|
2204
|
-
return () => (0, _requestidlecallback.cancelIdleCallback)(idleCallback);
|
|
2205
|
-
}
|
|
2206
|
-
}
|
|
2207
|
-
}, [
|
|
2208
|
-
isDisabled,
|
|
2209
|
-
rootMargin,
|
|
2210
|
-
rootRef,
|
|
2211
|
-
visible,
|
|
2212
|
-
elementRef.current
|
|
2213
|
-
]);
|
|
2214
|
-
const resetVisible = (0, _react.useCallback)(() => {
|
|
2215
|
-
setVisible(false);
|
|
2216
|
-
}, []);
|
|
2217
|
-
return [
|
|
2218
|
-
setElement,
|
|
2219
|
-
visible,
|
|
2220
|
-
resetVisible
|
|
2221
|
-
];
|
|
2222
|
-
}
|
|
2223
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2224
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2225
|
-
Object.assign(exports2.default, exports2);
|
|
2226
|
-
module2.exports = exports2.default;
|
|
2227
|
-
}
|
|
2228
|
-
})(useIntersection, useIntersection.exports);
|
|
2229
|
-
return useIntersection.exports;
|
|
2230
|
-
}
|
|
2231
|
-
var getDomainLocale = { exports: {} };
|
|
2232
|
-
var normalizeLocalePath$1 = { exports: {} };
|
|
2233
|
-
var normalizeLocalePath = {};
|
|
2234
|
-
var hasRequiredNormalizeLocalePath$1;
|
|
2235
|
-
function requireNormalizeLocalePath$1() {
|
|
2236
|
-
if (hasRequiredNormalizeLocalePath$1) return normalizeLocalePath;
|
|
2237
|
-
hasRequiredNormalizeLocalePath$1 = 1;
|
|
2238
|
-
(function(exports2) {
|
|
2239
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2240
|
-
value: true
|
|
2241
|
-
});
|
|
2242
|
-
Object.defineProperty(exports2, "normalizeLocalePath", {
|
|
2243
|
-
enumerable: true,
|
|
2244
|
-
get: function() {
|
|
2245
|
-
return normalizeLocalePath2;
|
|
2246
|
-
}
|
|
2247
|
-
});
|
|
2248
|
-
const cache = /* @__PURE__ */ new WeakMap();
|
|
2249
|
-
function normalizeLocalePath2(pathname, locales) {
|
|
2250
|
-
if (!locales) return {
|
|
2251
|
-
pathname
|
|
2252
|
-
};
|
|
2253
|
-
let lowercasedLocales = cache.get(locales);
|
|
2254
|
-
if (!lowercasedLocales) {
|
|
2255
|
-
lowercasedLocales = locales.map((locale) => locale.toLowerCase());
|
|
2256
|
-
cache.set(locales, lowercasedLocales);
|
|
2257
|
-
}
|
|
2258
|
-
let detectedLocale;
|
|
2259
|
-
const segments = pathname.split("/", 2);
|
|
2260
|
-
if (!segments[1]) return {
|
|
2261
|
-
pathname
|
|
2262
|
-
};
|
|
2263
|
-
const segment2 = segments[1].toLowerCase();
|
|
2264
|
-
const index = lowercasedLocales.indexOf(segment2);
|
|
2265
|
-
if (index < 0) return {
|
|
2266
|
-
pathname
|
|
2267
|
-
};
|
|
2268
|
-
detectedLocale = locales[index];
|
|
2269
|
-
pathname = pathname.slice(detectedLocale.length + 1) || "/";
|
|
2270
|
-
return {
|
|
2271
|
-
pathname,
|
|
2272
|
-
detectedLocale
|
|
2273
|
-
};
|
|
2274
|
-
}
|
|
2275
|
-
})(normalizeLocalePath);
|
|
2276
|
-
return normalizeLocalePath;
|
|
2277
|
-
}
|
|
2278
|
-
var hasRequiredNormalizeLocalePath;
|
|
2279
|
-
function requireNormalizeLocalePath() {
|
|
2280
|
-
if (hasRequiredNormalizeLocalePath) return normalizeLocalePath$1.exports;
|
|
2281
|
-
hasRequiredNormalizeLocalePath = 1;
|
|
2282
|
-
(function(module2, exports2) {
|
|
2283
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2284
|
-
value: true
|
|
2285
|
-
});
|
|
2286
|
-
Object.defineProperty(exports2, "normalizeLocalePath", {
|
|
2287
|
-
enumerable: true,
|
|
2288
|
-
get: function() {
|
|
2289
|
-
return normalizeLocalePath2;
|
|
2290
|
-
}
|
|
2291
|
-
});
|
|
2292
|
-
const normalizeLocalePath2 = (pathname, locales) => {
|
|
2293
|
-
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
2294
|
-
return requireNormalizeLocalePath$1().normalizeLocalePath(pathname, locales);
|
|
2295
|
-
}
|
|
2296
|
-
return {
|
|
2297
|
-
pathname,
|
|
2298
|
-
detectedLocale: void 0
|
|
2299
|
-
};
|
|
2300
|
-
};
|
|
2301
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2302
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2303
|
-
Object.assign(exports2.default, exports2);
|
|
2304
|
-
module2.exports = exports2.default;
|
|
2305
|
-
}
|
|
2306
|
-
})(normalizeLocalePath$1, normalizeLocalePath$1.exports);
|
|
2307
|
-
return normalizeLocalePath$1.exports;
|
|
2308
|
-
}
|
|
2309
|
-
var detectDomainLocale$1 = { exports: {} };
|
|
2310
|
-
var detectDomainLocale = {};
|
|
2311
|
-
var hasRequiredDetectDomainLocale$1;
|
|
2312
|
-
function requireDetectDomainLocale$1() {
|
|
2313
|
-
if (hasRequiredDetectDomainLocale$1) return detectDomainLocale;
|
|
2314
|
-
hasRequiredDetectDomainLocale$1 = 1;
|
|
2315
|
-
(function(exports2) {
|
|
2316
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2317
|
-
value: true
|
|
2318
|
-
});
|
|
2319
|
-
Object.defineProperty(exports2, "detectDomainLocale", {
|
|
2320
|
-
enumerable: true,
|
|
2321
|
-
get: function() {
|
|
2322
|
-
return detectDomainLocale2;
|
|
2323
|
-
}
|
|
2324
|
-
});
|
|
2325
|
-
function detectDomainLocale2(domainItems, hostname, detectedLocale) {
|
|
2326
|
-
if (!domainItems) return;
|
|
2327
|
-
if (detectedLocale) {
|
|
2328
|
-
detectedLocale = detectedLocale.toLowerCase();
|
|
2329
|
-
}
|
|
2330
|
-
for (const item of domainItems) {
|
|
2331
|
-
var _item_domain, _item_locales;
|
|
2332
|
-
const domainHostname = (_item_domain = item.domain) == null ? void 0 : _item_domain.split(":", 1)[0].toLowerCase();
|
|
2333
|
-
if (hostname === domainHostname || detectedLocale === item.defaultLocale.toLowerCase() || ((_item_locales = item.locales) == null ? void 0 : _item_locales.some((locale) => locale.toLowerCase() === detectedLocale))) {
|
|
2334
|
-
return item;
|
|
2335
|
-
}
|
|
2336
|
-
}
|
|
2337
|
-
}
|
|
2338
|
-
})(detectDomainLocale);
|
|
2339
|
-
return detectDomainLocale;
|
|
2340
|
-
}
|
|
2341
|
-
var hasRequiredDetectDomainLocale;
|
|
2342
|
-
function requireDetectDomainLocale() {
|
|
2343
|
-
if (hasRequiredDetectDomainLocale) return detectDomainLocale$1.exports;
|
|
2344
|
-
hasRequiredDetectDomainLocale = 1;
|
|
2345
|
-
(function(module2, exports2) {
|
|
2346
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2347
|
-
value: true
|
|
2348
|
-
});
|
|
2349
|
-
Object.defineProperty(exports2, "detectDomainLocale", {
|
|
2350
|
-
enumerable: true,
|
|
2351
|
-
get: function() {
|
|
2352
|
-
return detectDomainLocale2;
|
|
2353
|
-
}
|
|
2354
|
-
});
|
|
2355
|
-
const detectDomainLocale2 = function() {
|
|
2356
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2357
|
-
args[_key] = arguments[_key];
|
|
2358
|
-
}
|
|
2359
|
-
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
2360
|
-
return requireDetectDomainLocale$1().detectDomainLocale(...args);
|
|
2361
|
-
}
|
|
2362
|
-
};
|
|
2363
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2364
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2365
|
-
Object.assign(exports2.default, exports2);
|
|
2366
|
-
module2.exports = exports2.default;
|
|
2367
|
-
}
|
|
2368
|
-
})(detectDomainLocale$1, detectDomainLocale$1.exports);
|
|
2369
|
-
return detectDomainLocale$1.exports;
|
|
2370
|
-
}
|
|
2371
|
-
var hasRequiredGetDomainLocale;
|
|
2372
|
-
function requireGetDomainLocale() {
|
|
2373
|
-
if (hasRequiredGetDomainLocale) return getDomainLocale.exports;
|
|
2374
|
-
hasRequiredGetDomainLocale = 1;
|
|
2375
|
-
(function(module2, exports2) {
|
|
2376
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2377
|
-
value: true
|
|
2378
|
-
});
|
|
2379
|
-
Object.defineProperty(exports2, "getDomainLocale", {
|
|
2380
|
-
enumerable: true,
|
|
2381
|
-
get: function() {
|
|
2382
|
-
return getDomainLocale2;
|
|
2383
|
-
}
|
|
2384
|
-
});
|
|
2385
|
-
const _normalizetrailingslash = requireNormalizeTrailingSlash();
|
|
2386
|
-
const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
2387
|
-
function getDomainLocale2(path, locale, locales, domainLocales) {
|
|
2388
|
-
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
2389
|
-
const normalizeLocalePath2 = requireNormalizeLocalePath().normalizeLocalePath;
|
|
2390
|
-
const detectDomainLocale2 = requireDetectDomainLocale().detectDomainLocale;
|
|
2391
|
-
const target = locale || normalizeLocalePath2(path, locales).detectedLocale;
|
|
2392
|
-
const domain = detectDomainLocale2(domainLocales, void 0, target);
|
|
2393
|
-
if (domain) {
|
|
2394
|
-
const proto = "http" + (domain.http ? "" : "s") + "://";
|
|
2395
|
-
const finalLocale = target === domain.defaultLocale ? "" : "/" + target;
|
|
2396
|
-
return "" + proto + domain.domain + (0, _normalizetrailingslash.normalizePathTrailingSlash)("" + basePath + finalLocale + path);
|
|
2397
|
-
}
|
|
2398
|
-
return false;
|
|
2399
|
-
} else {
|
|
2400
|
-
return false;
|
|
2401
|
-
}
|
|
2402
|
-
}
|
|
2403
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2404
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2405
|
-
Object.assign(exports2.default, exports2);
|
|
2406
|
-
module2.exports = exports2.default;
|
|
2407
|
-
}
|
|
2408
|
-
})(getDomainLocale, getDomainLocale.exports);
|
|
2409
|
-
return getDomainLocale.exports;
|
|
2410
|
-
}
|
|
2411
|
-
var addBasePath = { exports: {} };
|
|
2412
|
-
var hasRequiredAddBasePath;
|
|
2413
|
-
function requireAddBasePath() {
|
|
2414
|
-
if (hasRequiredAddBasePath) return addBasePath.exports;
|
|
2415
|
-
hasRequiredAddBasePath = 1;
|
|
2416
|
-
(function(module2, exports2) {
|
|
2417
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2418
|
-
value: true
|
|
2419
|
-
});
|
|
2420
|
-
Object.defineProperty(exports2, "addBasePath", {
|
|
2421
|
-
enumerable: true,
|
|
2422
|
-
get: function() {
|
|
2423
|
-
return addBasePath2;
|
|
2424
|
-
}
|
|
2425
|
-
});
|
|
2426
|
-
const _addpathprefix = requireAddPathPrefix();
|
|
2427
|
-
const _normalizetrailingslash = requireNormalizeTrailingSlash();
|
|
2428
|
-
const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
2429
|
-
function addBasePath2(path, required) {
|
|
2430
|
-
return (0, _normalizetrailingslash.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !required ? path : (0, _addpathprefix.addPathPrefix)(path, basePath));
|
|
2431
|
-
}
|
|
2432
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2433
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2434
|
-
Object.assign(exports2.default, exports2);
|
|
2435
|
-
module2.exports = exports2.default;
|
|
2436
|
-
}
|
|
2437
|
-
})(addBasePath, addBasePath.exports);
|
|
2438
|
-
return addBasePath.exports;
|
|
2439
|
-
}
|
|
2440
|
-
var errorOnce = {};
|
|
2441
|
-
var hasRequiredErrorOnce;
|
|
2442
|
-
function requireErrorOnce() {
|
|
2443
|
-
if (hasRequiredErrorOnce) return errorOnce;
|
|
2444
|
-
hasRequiredErrorOnce = 1;
|
|
2445
|
-
(function(exports2) {
|
|
2446
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2447
|
-
value: true
|
|
2448
|
-
});
|
|
2449
|
-
Object.defineProperty(exports2, "errorOnce", {
|
|
2450
|
-
enumerable: true,
|
|
2451
|
-
get: function() {
|
|
2452
|
-
return errorOnce2;
|
|
2453
|
-
}
|
|
2454
|
-
});
|
|
2455
|
-
let errorOnce2 = (_) => {
|
|
2456
|
-
};
|
|
2457
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2458
|
-
const errors = /* @__PURE__ */ new Set();
|
|
2459
|
-
errorOnce2 = (msg) => {
|
|
2460
|
-
if (!errors.has(msg)) {
|
|
2461
|
-
console.error(msg);
|
|
2462
|
-
}
|
|
2463
|
-
errors.add(msg);
|
|
2464
|
-
};
|
|
2465
|
-
}
|
|
2466
|
-
})(errorOnce);
|
|
2467
|
-
return errorOnce;
|
|
2468
|
-
}
|
|
2469
|
-
(function(module2, exports2) {
|
|
2470
|
-
"use client";
|
|
2471
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
2472
|
-
value: true
|
|
2473
|
-
});
|
|
2474
|
-
function _export(target, all) {
|
|
2475
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
2476
|
-
enumerable: true,
|
|
2477
|
-
get: all[name]
|
|
2478
|
-
});
|
|
2479
|
-
}
|
|
2480
|
-
_export(exports2, {
|
|
2481
|
-
default: function() {
|
|
2482
|
-
return _default;
|
|
2483
|
-
},
|
|
2484
|
-
useLinkStatus: function() {
|
|
2485
|
-
return useLinkStatus;
|
|
2486
|
-
}
|
|
2487
|
-
});
|
|
2488
|
-
const _interop_require_wildcard2 = _interop_require_wildcard$1;
|
|
2489
|
-
const _jsxruntime = require$$2;
|
|
2490
|
-
const _react = /* @__PURE__ */ _interop_require_wildcard2._(React);
|
|
2491
|
-
const _resolvehref = requireResolveHref();
|
|
2492
|
-
const _islocalurl = requireIsLocalUrl();
|
|
2493
|
-
const _formaturl = requireFormatUrl();
|
|
2494
|
-
const _utils = requireUtils$1();
|
|
2495
|
-
const _addlocale = requireAddLocale();
|
|
2496
|
-
const _routercontextsharedruntime = requireRouterContext_sharedRuntime();
|
|
2497
|
-
const _useintersection = requireUseIntersection();
|
|
2498
|
-
const _getdomainlocale = requireGetDomainLocale();
|
|
2499
|
-
const _addbasepath = requireAddBasePath();
|
|
2500
|
-
const _usemergedref = requireUseMergedRef();
|
|
2501
|
-
const _erroronce = requireErrorOnce();
|
|
2502
|
-
const prefetched = /* @__PURE__ */ new Set();
|
|
2503
|
-
function prefetch(router, href, as, options) {
|
|
2504
|
-
if (typeof window === "undefined") {
|
|
2505
|
-
return;
|
|
2506
|
-
}
|
|
2507
|
-
if (!(0, _islocalurl.isLocalURL)(href)) {
|
|
2508
|
-
return;
|
|
2509
|
-
}
|
|
2510
|
-
if (!options.bypassPrefetchedCheck) {
|
|
2511
|
-
const locale = (
|
|
2512
|
-
// Let the link's locale prop override the default router locale.
|
|
2513
|
-
typeof options.locale !== "undefined" ? options.locale : "locale" in router ? router.locale : void 0
|
|
2514
|
-
);
|
|
2515
|
-
const prefetchedKey = href + "%" + as + "%" + locale;
|
|
2516
|
-
if (prefetched.has(prefetchedKey)) {
|
|
2517
|
-
return;
|
|
2518
|
-
}
|
|
2519
|
-
prefetched.add(prefetchedKey);
|
|
2520
|
-
}
|
|
2521
|
-
router.prefetch(href, as, options).catch((err) => {
|
|
2522
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2523
|
-
throw err;
|
|
2524
|
-
}
|
|
2525
|
-
});
|
|
2526
|
-
}
|
|
2527
|
-
function isModifiedEvent(event) {
|
|
2528
|
-
const eventTarget = event.currentTarget;
|
|
2529
|
-
const target = eventTarget.getAttribute("target");
|
|
2530
|
-
return target && target !== "_self" || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || // triggers resource download
|
|
2531
|
-
event.nativeEvent && event.nativeEvent.which === 2;
|
|
2532
|
-
}
|
|
2533
|
-
function linkClicked(e, router, href, as, replace, shallow, scroll, locale, onNavigate) {
|
|
2534
|
-
const { nodeName } = e.currentTarget;
|
|
2535
|
-
const isAnchorNodeName = nodeName.toUpperCase() === "A";
|
|
2536
|
-
if (isAnchorNodeName && isModifiedEvent(e) || e.currentTarget.hasAttribute("download")) {
|
|
2537
|
-
return;
|
|
2538
|
-
}
|
|
2539
|
-
if (!(0, _islocalurl.isLocalURL)(href)) {
|
|
2540
|
-
if (replace) {
|
|
2541
|
-
e.preventDefault();
|
|
2542
|
-
location.replace(href);
|
|
2543
|
-
}
|
|
2544
|
-
return;
|
|
2545
|
-
}
|
|
2546
|
-
e.preventDefault();
|
|
2547
|
-
const navigate = () => {
|
|
2548
|
-
if (onNavigate) {
|
|
2549
|
-
let isDefaultPrevented = false;
|
|
2550
|
-
onNavigate({
|
|
2551
|
-
preventDefault: () => {
|
|
2552
|
-
isDefaultPrevented = true;
|
|
2553
|
-
}
|
|
2554
|
-
});
|
|
2555
|
-
if (isDefaultPrevented) {
|
|
2556
|
-
return;
|
|
2557
|
-
}
|
|
2558
|
-
}
|
|
2559
|
-
const routerScroll = scroll != null ? scroll : true;
|
|
2560
|
-
if ("beforePopState" in router) {
|
|
2561
|
-
router[replace ? "replace" : "push"](href, as, {
|
|
2562
|
-
shallow,
|
|
2563
|
-
locale,
|
|
2564
|
-
scroll: routerScroll
|
|
2565
|
-
});
|
|
2566
|
-
} else {
|
|
2567
|
-
router[replace ? "replace" : "push"](as || href, {
|
|
2568
|
-
scroll: routerScroll
|
|
2569
|
-
});
|
|
2570
|
-
}
|
|
2571
|
-
};
|
|
2572
|
-
navigate();
|
|
2573
|
-
}
|
|
2574
|
-
function formatStringOrUrl(urlObjOrString) {
|
|
2575
|
-
if (typeof urlObjOrString === "string") {
|
|
2576
|
-
return urlObjOrString;
|
|
2577
|
-
}
|
|
2578
|
-
return (0, _formaturl.formatUrl)(urlObjOrString);
|
|
2579
|
-
}
|
|
2580
|
-
const Link2 = /* @__PURE__ */ _react.default.forwardRef(function LinkComponent(props, forwardedRef) {
|
|
2581
|
-
let children;
|
|
2582
|
-
const { href: hrefProp, as: asProp, children: childrenProp, prefetch: prefetchProp = null, passHref, replace, shallow, scroll, locale, onClick, onNavigate, onMouseEnter: onMouseEnterProp, onTouchStart: onTouchStartProp, legacyBehavior = false, ...restProps } = props;
|
|
2583
|
-
children = childrenProp;
|
|
2584
|
-
if (legacyBehavior && (typeof children === "string" || typeof children === "number")) {
|
|
2585
|
-
children = /* @__PURE__ */ (0, _jsxruntime.jsx)("a", {
|
|
2586
|
-
children
|
|
2587
|
-
});
|
|
2588
|
-
}
|
|
2589
|
-
const router = _react.default.useContext(_routercontextsharedruntime.RouterContext);
|
|
2590
|
-
const prefetchEnabled = prefetchProp !== false;
|
|
2591
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2592
|
-
let createPropError = function(args) {
|
|
2593
|
-
return Object.defineProperty(new Error("Failed prop type: The prop `" + args.key + "` expects a " + args.expected + " in `<Link>`, but got `" + args.actual + "` instead." + (typeof window !== "undefined" ? "\nOpen your browser's console to view the Component stack trace." : "")), "__NEXT_ERROR_CODE", {
|
|
2594
|
-
value: "E319",
|
|
2595
|
-
enumerable: false,
|
|
2596
|
-
configurable: true
|
|
2597
|
-
});
|
|
2598
|
-
};
|
|
2599
|
-
const requiredPropsGuard = {
|
|
2600
|
-
href: true
|
|
2601
|
-
};
|
|
2602
|
-
const requiredProps = Object.keys(requiredPropsGuard);
|
|
2603
|
-
requiredProps.forEach((key) => {
|
|
2604
|
-
if (key === "href") {
|
|
2605
|
-
if (props[key] == null || typeof props[key] !== "string" && typeof props[key] !== "object") {
|
|
2606
|
-
throw createPropError({
|
|
2607
|
-
key,
|
|
2608
|
-
expected: "`string` or `object`",
|
|
2609
|
-
actual: props[key] === null ? "null" : typeof props[key]
|
|
2610
|
-
});
|
|
2611
|
-
}
|
|
2612
|
-
}
|
|
2613
|
-
});
|
|
2614
|
-
const optionalPropsGuard = {
|
|
2615
|
-
as: true,
|
|
2616
|
-
replace: true,
|
|
2617
|
-
scroll: true,
|
|
2618
|
-
shallow: true,
|
|
2619
|
-
passHref: true,
|
|
2620
|
-
prefetch: true,
|
|
2621
|
-
locale: true,
|
|
2622
|
-
onClick: true,
|
|
2623
|
-
onMouseEnter: true,
|
|
2624
|
-
onTouchStart: true,
|
|
2625
|
-
legacyBehavior: true,
|
|
2626
|
-
onNavigate: true
|
|
2627
|
-
};
|
|
2628
|
-
const optionalProps = Object.keys(optionalPropsGuard);
|
|
2629
|
-
optionalProps.forEach((key) => {
|
|
2630
|
-
const valType = typeof props[key];
|
|
2631
|
-
if (key === "as") {
|
|
2632
|
-
if (props[key] && valType !== "string" && valType !== "object") {
|
|
2633
|
-
throw createPropError({
|
|
2634
|
-
key,
|
|
2635
|
-
expected: "`string` or `object`",
|
|
2636
|
-
actual: valType
|
|
2637
|
-
});
|
|
2638
|
-
}
|
|
2639
|
-
} else if (key === "locale") {
|
|
2640
|
-
if (props[key] && valType !== "string") {
|
|
2641
|
-
throw createPropError({
|
|
2642
|
-
key,
|
|
2643
|
-
expected: "`string`",
|
|
2644
|
-
actual: valType
|
|
2645
|
-
});
|
|
2646
|
-
}
|
|
2647
|
-
} else if (key === "onClick" || key === "onMouseEnter" || key === "onTouchStart" || key === "onNavigate") {
|
|
2648
|
-
if (props[key] && valType !== "function") {
|
|
2649
|
-
throw createPropError({
|
|
2650
|
-
key,
|
|
2651
|
-
expected: "`function`",
|
|
2652
|
-
actual: valType
|
|
2653
|
-
});
|
|
2654
|
-
}
|
|
2655
|
-
} else if (key === "replace" || key === "scroll" || key === "shallow" || key === "passHref" || key === "legacyBehavior") {
|
|
2656
|
-
if (props[key] != null && valType !== "boolean") {
|
|
2657
|
-
throw createPropError({
|
|
2658
|
-
key,
|
|
2659
|
-
expected: "`boolean`",
|
|
2660
|
-
actual: valType
|
|
2661
|
-
});
|
|
2662
|
-
}
|
|
2663
|
-
} else if (key === "prefetch") {
|
|
2664
|
-
if (props[key] != null && valType !== "boolean" && props[key] !== "auto") {
|
|
2665
|
-
throw createPropError({
|
|
2666
|
-
key,
|
|
2667
|
-
expected: '`boolean | "auto"`',
|
|
2668
|
-
actual: valType
|
|
2669
|
-
});
|
|
2670
|
-
}
|
|
2671
|
-
} else ;
|
|
2672
|
-
});
|
|
2673
|
-
}
|
|
2674
|
-
const { href, as } = _react.default.useMemo(() => {
|
|
2675
|
-
if (!router) {
|
|
2676
|
-
const resolvedHref2 = formatStringOrUrl(hrefProp);
|
|
2677
|
-
return {
|
|
2678
|
-
href: resolvedHref2,
|
|
2679
|
-
as: asProp ? formatStringOrUrl(asProp) : resolvedHref2
|
|
2680
|
-
};
|
|
2681
|
-
}
|
|
2682
|
-
const [resolvedHref, resolvedAs] = (0, _resolvehref.resolveHref)(router, hrefProp, true);
|
|
2683
|
-
return {
|
|
2684
|
-
href: resolvedHref,
|
|
2685
|
-
as: asProp ? (0, _resolvehref.resolveHref)(router, asProp) : resolvedAs || resolvedHref
|
|
2686
|
-
};
|
|
2687
|
-
}, [
|
|
2688
|
-
router,
|
|
2689
|
-
hrefProp,
|
|
2690
|
-
asProp
|
|
2691
|
-
]);
|
|
2692
|
-
const previousHref = _react.default.useRef(href);
|
|
2693
|
-
const previousAs = _react.default.useRef(as);
|
|
2694
|
-
let child;
|
|
2695
|
-
if (legacyBehavior) {
|
|
2696
|
-
if (process.env.NODE_ENV === "development") {
|
|
2697
|
-
if (onClick) {
|
|
2698
|
-
console.warn('"onClick" was passed to <Link> with `href` of `' + hrefProp + '` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link');
|
|
2699
|
-
}
|
|
2700
|
-
if (onMouseEnterProp) {
|
|
2701
|
-
console.warn('"onMouseEnter" was passed to <Link> with `href` of `' + hrefProp + '` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');
|
|
2702
|
-
}
|
|
2703
|
-
try {
|
|
2704
|
-
child = _react.default.Children.only(children);
|
|
2705
|
-
} catch (err) {
|
|
2706
|
-
if (!children) {
|
|
2707
|
-
throw Object.defineProperty(new Error("No children were passed to <Link> with `href` of `" + hrefProp + "` but one child is required https://nextjs.org/docs/messages/link-no-children"), "__NEXT_ERROR_CODE", {
|
|
2708
|
-
value: "E320",
|
|
2709
|
-
enumerable: false,
|
|
2710
|
-
configurable: true
|
|
2711
|
-
});
|
|
2712
|
-
}
|
|
2713
|
-
throw Object.defineProperty(new Error("Multiple children were passed to <Link> with `href` of `" + hrefProp + "` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children" + (typeof window !== "undefined" ? " \nOpen your browser's console to view the Component stack trace." : "")), "__NEXT_ERROR_CODE", {
|
|
2714
|
-
value: "E266",
|
|
2715
|
-
enumerable: false,
|
|
2716
|
-
configurable: true
|
|
2717
|
-
});
|
|
2718
|
-
}
|
|
2719
|
-
} else {
|
|
2720
|
-
child = _react.default.Children.only(children);
|
|
2721
|
-
}
|
|
2722
|
-
} else {
|
|
2723
|
-
if (process.env.NODE_ENV === "development") {
|
|
2724
|
-
if ((children == null ? void 0 : children.type) === "a") {
|
|
2725
|
-
throw Object.defineProperty(new Error("Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor"), "__NEXT_ERROR_CODE", {
|
|
2726
|
-
value: "E209",
|
|
2727
|
-
enumerable: false,
|
|
2728
|
-
configurable: true
|
|
2729
|
-
});
|
|
2730
|
-
}
|
|
2731
|
-
}
|
|
2732
|
-
}
|
|
2733
|
-
const childRef = legacyBehavior ? child && typeof child === "object" && child.ref : forwardedRef;
|
|
2734
|
-
const [setIntersectionRef, isVisible, resetVisible] = (0, _useintersection.useIntersection)({
|
|
2735
|
-
rootMargin: "200px"
|
|
2736
|
-
});
|
|
2737
|
-
const setIntersectionWithResetRef = _react.default.useCallback((el) => {
|
|
2738
|
-
if (previousAs.current !== as || previousHref.current !== href) {
|
|
2739
|
-
resetVisible();
|
|
2740
|
-
previousAs.current = as;
|
|
2741
|
-
previousHref.current = href;
|
|
2742
|
-
}
|
|
2743
|
-
setIntersectionRef(el);
|
|
2744
|
-
}, [
|
|
2745
|
-
as,
|
|
2746
|
-
href,
|
|
2747
|
-
resetVisible,
|
|
2748
|
-
setIntersectionRef
|
|
2749
|
-
]);
|
|
2750
|
-
const setRef = (0, _usemergedref.useMergedRef)(setIntersectionWithResetRef, childRef);
|
|
2751
|
-
_react.default.useEffect(() => {
|
|
2752
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2753
|
-
return;
|
|
2754
|
-
}
|
|
2755
|
-
if (!router) {
|
|
2756
|
-
return;
|
|
2757
|
-
}
|
|
2758
|
-
if (!isVisible || !prefetchEnabled) {
|
|
2759
|
-
return;
|
|
2760
|
-
}
|
|
2761
|
-
prefetch(router, href, as, {
|
|
2762
|
-
locale
|
|
2763
|
-
});
|
|
2764
|
-
}, [
|
|
2765
|
-
as,
|
|
2766
|
-
href,
|
|
2767
|
-
isVisible,
|
|
2768
|
-
locale,
|
|
2769
|
-
prefetchEnabled,
|
|
2770
|
-
router == null ? void 0 : router.locale,
|
|
2771
|
-
router
|
|
2772
|
-
]);
|
|
2773
|
-
const childProps = {
|
|
2774
|
-
ref: setRef,
|
|
2775
|
-
onClick(e) {
|
|
2776
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2777
|
-
if (!e) {
|
|
2778
|
-
throw Object.defineProperty(new Error('Component rendered inside next/link has to pass click event to "onClick" prop.'), "__NEXT_ERROR_CODE", {
|
|
2779
|
-
value: "E312",
|
|
2780
|
-
enumerable: false,
|
|
2781
|
-
configurable: true
|
|
2782
|
-
});
|
|
2783
|
-
}
|
|
2784
|
-
}
|
|
2785
|
-
if (!legacyBehavior && typeof onClick === "function") {
|
|
2786
|
-
onClick(e);
|
|
2787
|
-
}
|
|
2788
|
-
if (legacyBehavior && child.props && typeof child.props.onClick === "function") {
|
|
2789
|
-
child.props.onClick(e);
|
|
2790
|
-
}
|
|
2791
|
-
if (!router) {
|
|
2792
|
-
return;
|
|
2793
|
-
}
|
|
2794
|
-
if (e.defaultPrevented) {
|
|
2795
|
-
return;
|
|
2796
|
-
}
|
|
2797
|
-
linkClicked(e, router, href, as, replace, shallow, scroll, locale, onNavigate);
|
|
2798
|
-
},
|
|
2799
|
-
onMouseEnter(e) {
|
|
2800
|
-
if (!legacyBehavior && typeof onMouseEnterProp === "function") {
|
|
2801
|
-
onMouseEnterProp(e);
|
|
2802
|
-
}
|
|
2803
|
-
if (legacyBehavior && child.props && typeof child.props.onMouseEnter === "function") {
|
|
2804
|
-
child.props.onMouseEnter(e);
|
|
2805
|
-
}
|
|
2806
|
-
if (!router) {
|
|
2807
|
-
return;
|
|
2808
|
-
}
|
|
2809
|
-
prefetch(router, href, as, {
|
|
2810
|
-
locale,
|
|
2811
|
-
priority: true,
|
|
2812
|
-
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
2813
|
-
bypassPrefetchedCheck: true
|
|
2814
|
-
});
|
|
2815
|
-
},
|
|
2816
|
-
onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START ? void 0 : function onTouchStart(e) {
|
|
2817
|
-
if (!legacyBehavior && typeof onTouchStartProp === "function") {
|
|
2818
|
-
onTouchStartProp(e);
|
|
2819
|
-
}
|
|
2820
|
-
if (legacyBehavior && child.props && typeof child.props.onTouchStart === "function") {
|
|
2821
|
-
child.props.onTouchStart(e);
|
|
2822
|
-
}
|
|
2823
|
-
if (!router) {
|
|
2824
|
-
return;
|
|
2825
|
-
}
|
|
2826
|
-
prefetch(router, href, as, {
|
|
2827
|
-
locale,
|
|
2828
|
-
priority: true,
|
|
2829
|
-
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
2830
|
-
bypassPrefetchedCheck: true
|
|
2831
|
-
});
|
|
2832
|
-
}
|
|
2833
|
-
};
|
|
2834
|
-
if ((0, _utils.isAbsoluteUrl)(as)) {
|
|
2835
|
-
childProps.href = as;
|
|
2836
|
-
} else if (!legacyBehavior || passHref || child.type === "a" && !("href" in child.props)) {
|
|
2837
|
-
const curLocale = typeof locale !== "undefined" ? locale : router == null ? void 0 : router.locale;
|
|
2838
|
-
const localeDomain = (router == null ? void 0 : router.isLocaleDomain) && (0, _getdomainlocale.getDomainLocale)(as, curLocale, router == null ? void 0 : router.locales, router == null ? void 0 : router.domainLocales);
|
|
2839
|
-
childProps.href = localeDomain || (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(as, curLocale, router == null ? void 0 : router.defaultLocale));
|
|
2840
|
-
}
|
|
2841
|
-
if (legacyBehavior) {
|
|
2842
|
-
if (process.env.NODE_ENV === "development") {
|
|
2843
|
-
(0, _erroronce.errorOnce)("`legacyBehavior` is deprecated and will be removed in a future release. A codemod is available to upgrade your components:\n\nnpx @next/codemod@latest new-link .\n\nLearn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components");
|
|
2844
|
-
}
|
|
2845
|
-
return /* @__PURE__ */ _react.default.cloneElement(child, childProps);
|
|
2846
|
-
}
|
|
2847
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)("a", {
|
|
2848
|
-
...restProps,
|
|
2849
|
-
...childProps,
|
|
2850
|
-
children
|
|
2851
|
-
});
|
|
2852
|
-
});
|
|
2853
|
-
const LinkStatusContext = /* @__PURE__ */ (0, _react.createContext)({
|
|
2854
|
-
// We do not support link status in the Pages Router, so we always return false
|
|
2855
|
-
pending: false
|
|
2856
|
-
});
|
|
2857
|
-
const useLinkStatus = () => {
|
|
2858
|
-
return (0, _react.useContext)(LinkStatusContext);
|
|
2859
|
-
};
|
|
2860
|
-
const _default = Link2;
|
|
2861
|
-
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2862
|
-
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2863
|
-
Object.assign(exports2.default, exports2);
|
|
2864
|
-
module2.exports = exports2.default;
|
|
2865
|
-
}
|
|
2866
|
-
})(link$1, link$1.exports);
|
|
2867
|
-
var linkExports = link$1.exports;
|
|
2868
|
-
var link = linkExports;
|
|
2869
|
-
const Link = /* @__PURE__ */ getDefaultExportFromCjs(link);
|
|
2870
|
-
exports.Link = Link;
|
|
2871
|
-
exports._interop_require_default = _interop_require_default$1;
|
|
2872
|
-
exports._interop_require_wildcard = _interop_require_wildcard$1;
|
|
2873
|
-
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
2874
|
-
exports.requireRouterContext_sharedRuntime = requireRouterContext_sharedRuntime;
|
|
2875
|
-
exports.requireUseMergedRef = requireUseMergedRef;
|
|
2876
|
-
exports.segment = segment;
|
|
2877
|
-
//# sourceMappingURL=link-hxAaLm0Q.cjs.map
|