@abtnode/blocklet-services 1.17.3-beta-20251118-061144-335cd35d → 1.17.3-beta-20251119-034511-f26047c0
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/api/routes/blocklet.js +7 -0
- package/dist/assets/{AdapterDayjs-C8RSaHa0.js → AdapterDayjs-BlYfODzx.js} +1 -1
- package/dist/assets/{Community-ClHGTbNM.js → Community-C7CFokDQ.js} +1 -1
- package/dist/assets/{Google-BT1deiYa.js → Google-BOjQI1aW.js} +1 -1
- package/dist/assets/{Holiday-D8fmDxt6.js → Holiday-DyVifdc-.js} +1 -1
- package/dist/assets/{Meeting-CF7NtQe5.js → Meeting-DbtUCCZq.js} +1 -1
- package/dist/assets/{OffSick-CWwGwWYY.js → OffSick-BtITykO3.js} +1 -1
- package/dist/assets/{WorkingRemotely-CD8ntsiV.js → WorkingRemotely-mKvokr6L.js} +1 -1
- package/dist/assets/{access-control-Ddnn1J4F.js → access-control-DTCMjhKk.js} +1 -1
- package/dist/assets/{actions-DqoNrBDK.js → actions-DlChK31K.js} +1 -1
- package/dist/assets/{add-component-core-CZQBpP2b.js → add-component-core-CUr388CN.js} +1 -1
- package/dist/assets/{add-resource-DUXwdNKB.js → add-resource-Dc856hpt.js} +1 -1
- package/dist/assets/{addon-BgN564dt.js → addon-B40hGwgm.js} +1 -1
- package/dist/assets/{advanced-D9d385yZ.js → advanced-Br_YsN3-.js} +1 -1
- package/dist/assets/{aigne-BK9oL3LS.js → aigne-H9M2qziH.js} +1 -1
- package/dist/assets/api-DcGGeMWE.js +1 -0
- package/dist/assets/{appearance-BLjBQMnd.js → appearance-CZaZuJSH.js} +1 -1
- package/dist/assets/{arrow-down.svg-Uxqj9Lez.js → arrow-down.svg-B4fW36cY.js} +1 -1
- package/dist/assets/{audit-logs-B9JmO_5U.js → audit-logs-CdBxa8MQ.js} +1 -1
- package/dist/assets/{authorize-BseET0LV.js → authorize-BF4yXQyf.js} +1 -1
- package/dist/assets/{base-chart-C-Raz4Q-.js → base-chart-DkkGeB5D.js} +1 -1
- package/dist/assets/{base32-DB18VP05.js → base32-DJEJY-PH.js} +1 -1
- package/dist/assets/{bind-account-DWu2ZbPT.js → bind-account-D6p5CBbp.js} +1 -1
- package/dist/assets/{branding-CPYtF-6a.js → branding-B7dM6NSY.js} +1 -1
- package/dist/assets/{branding-CmMCHUpY.js → branding-CoyX7jAw.js} +1 -1
- package/dist/assets/branding-DNryM-GG.js +1 -0
- package/dist/assets/{bundle-avatar-B9iCn_eS.js → bundle-avatar--3Ig7ZeD.js} +1 -1
- package/dist/assets/button-CjoOMC5b.js +1 -0
- package/dist/assets/click-to-copy-BiDS_MtA.js +1 -0
- package/dist/assets/cloneDeep-C11iVb3m.js +1 -0
- package/dist/assets/{collapse-BMy0GGFk.js → collapse-Cqxx6nMG.js} +1 -1
- package/dist/assets/{complete-DFxZ9mZl.js → complete-DPTGJDLo.js} +1 -1
- package/dist/assets/{component-CmpGxsIf.js → component-C9douaIx.js} +2 -2
- package/dist/assets/{config-BMeucuGh.js → config-BuIjAxID.js} +1 -1
- package/dist/assets/{config-Dj032f65.js → config-DLpmAnUO.js} +1 -1
- package/dist/assets/{config-Bg2nv4Ct.js → config-DbJRjGKg.js} +1 -1
- package/dist/assets/{config-navigation-Wws6cRZg.js → config-navigation-ebep7Vaw.js} +2 -2
- package/dist/assets/{config-space-DVbXpK0p.js → config-space-BIBMi9yR.js} +1 -1
- package/dist/assets/{confirm-D_oS4C5N.js → confirm-CklyzxUV.js} +1 -1
- package/dist/assets/{connect-BeM9KScn.js → connect-D1S9h2vl.js} +1 -1
- package/dist/assets/{connect-td4SUK2j.js → connect-sHh18260.js} +1 -1
- package/dist/assets/{connect-to-CK_BBgim.js → connect-to-CN0n_rfw.js} +1 -1
- package/dist/assets/{content-layout-oyz1EqNZ.js → content-layout-DpoiOm37.js} +1 -1
- package/dist/assets/{create-passport-svg-B2TKOs7K.js → create-passport-svg-k1mCsufD.js} +1 -1
- package/dist/assets/{createClass-BWB0NSWO.js → createClass-Bp8GWzB3.js} +1 -1
- package/dist/assets/{dashboard-B59Yx2EA.js → dashboard-BOEp1A3P.js} +2 -2
- package/dist/assets/{delete-confirm-DwFvaC6s.js → delete-confirm-DOWoUCR5.js} +1 -1
- package/dist/assets/{did-address-C5FXzeAS.js → did-address-BKqL0vbP.js} +1 -1
- package/dist/assets/{domain-Dwzb8N6w.js → domain-_Mg8zUon.js} +1 -1
- package/dist/assets/{domain-action-card-CXIxAIsm.js → domain-action-card-COcfS69j.js} +1 -1
- package/dist/assets/domains-HnFn4BU9.js +1 -0
- package/dist/assets/{edit.svg-DycWG9v3.js → edit.svg-Dz9cVo7r.js} +1 -1
- package/dist/assets/{email-CDYDF-7u.js → email-CY8kCkSP.js} +2 -2
- package/dist/assets/{empty-spinner-DYOzicuy.js → empty-spinner-CveVktQP.js} +1 -1
- package/dist/assets/engine-D5_fEmdT.js +1 -0
- package/dist/assets/{exchange-passport-CoU5Q4QA.js → exchange-passport-DPA710jd.js} +1 -1
- package/dist/assets/{form-I14bCwkb.js → form-CaWm2WdL.js} +1 -1
- package/dist/assets/{form-text-input-B2T0zM2q.js → form-text-input-gTokKFc6.js} +1 -1
- package/dist/assets/{form-wrapper-C8oo_Fdy.js → form-wrapper-BxqO_YSO.js} +1 -1
- package/dist/assets/{fuel-DlHj4E28.js → fuel-DAxqtWTp.js} +1 -1
- package/dist/assets/{gen-access-key-C54GFXyN.js → gen-access-key-DnFZ5j_f.js} +1 -1
- package/dist/assets/{gen-simple-access-key-Cgw0gqQM.js → gen-simple-access-key-D0cY_mzH.js} +1 -1
- package/dist/assets/get-safe-url-b0FoyA1U.js +1 -0
- package/dist/assets/{home-D6Wx3vEh.js → home-BLXMP7Fn.js} +1 -1
- package/dist/assets/{iframe-fHGifsex.js → iframe-Cf5bT_6x.js} +1 -1
- package/dist/assets/{index-Mix8V5gr.js → index--t-eBalO.js} +1 -1
- package/dist/assets/{index-DTj7lG0j.js → index-0wVxGFHL.js} +1 -1
- package/dist/assets/{index-qme31tNJ.js → index-B11Boj2H.js} +1 -1
- package/dist/assets/{index-D5TNmV3K.js → index-B7KG9373.js} +1 -1
- package/dist/assets/{index-phW48DJg.js → index-B9JcYhlg.js} +1 -1
- package/dist/assets/{index-DVBwQI1h.js → index-BBGDYmGN.js} +1 -1
- package/dist/assets/{index-NomqB6Iy.js → index-BDvewqjE.js} +1 -1
- package/dist/assets/{index-Bdyv52fm.js → index-BQ7b2rES.js} +1 -1
- package/dist/assets/{index-Ctf-FbXC.js → index-BYMI0ny4.js} +2 -2
- package/dist/assets/{index-DW-pVTUA.js → index-B_fIpHt1.js} +1 -1
- package/dist/assets/{index-BPy8_fa2.js → index-BsA1v5Kx.js} +1 -1
- package/dist/assets/{index-CWemdG9k.js → index-C-fUoCuC.js} +1 -1
- package/dist/assets/{index-ChNXm8zt.js → index-CALyM1b7.js} +1 -1
- package/dist/assets/{index-D1c_Zlts.js → index-CLUTu1X-.js} +1 -1
- package/dist/assets/{index-CgdhTqWX.js → index-CMec_woq.js} +1 -1
- package/dist/assets/{index-S8uuD-j6.js → index-CQOXFqub.js} +1 -1
- package/dist/assets/{index-Bnv7SivR.js → index-CS-lh8B6.js} +1 -1
- package/dist/assets/{index-BUTKGY5W.js → index-CWtomC5e.js} +1 -1
- package/dist/assets/{index-j9zHEMDv.js → index-Crb5v_oP.js} +1 -1
- package/dist/assets/{index-Dd1dREUL.js → index-DByR2J-y.js} +2 -2
- package/dist/assets/{index-sE6ANlb1.js → index-DCa5wWAd.js} +1 -1
- package/dist/assets/{index-CsRxFZuh.js → index-DDc9u4Rr.js} +1 -1
- package/dist/assets/{index-nYsahwVM.js → index-DIpoCt72.js} +1 -1
- package/dist/assets/{index-Tj1dVBHC.js → index-DKSVm7e-.js} +1 -1
- package/dist/assets/{index-De-Vgsb6.js → index-DO0bEcmC.js} +1 -1
- package/dist/assets/index-DW1-kshH.js +1 -0
- package/dist/assets/{index-DVZm1sCw.js → index-DX8eFzfu.js} +1 -1
- package/dist/assets/{index-Cq3xfsOS.js → index-DiqdSyj7.js} +104 -104
- package/dist/assets/{index-BJAIYdQp.js → index-DnuNgd04.js} +1 -1
- package/dist/assets/{index-B5fUUj0x.js → index-JqMHvzVF.js} +1 -1
- package/dist/assets/{index-C1cWdBpP.js → index-WkJweVHY.js} +1 -1
- package/dist/assets/{index-ecxGjzSN.js → index-XwZTnGB3.js} +1 -1
- package/dist/assets/{index-DnKyoEA9.js → index-aRHQsmOg.js} +1 -1
- package/dist/assets/{index-CPlFvcnd.js → index-gIzQEnMj.js} +3 -3
- package/dist/assets/{index-C5hO5d4a.js → index-zNB-v-t2.js} +1 -1
- package/dist/assets/{index.esm-JPZAjt0x.js → index.esm-DTmS4tth.js} +1 -1
- package/dist/assets/{invitation-p9I7Fs_7.js → invitation-DDf3OBDz.js} +1 -1
- package/dist/assets/{invitations-BYrxk2XC.js → invitations-D12iZAQL.js} +1 -1
- package/dist/assets/{invite-DptGZzm9.js → invite-Df9QWw7t.js} +1 -1
- package/dist/assets/{isURL-DmCvTfVx.js → isURL-bkdgf1x2.js} +1 -1
- package/dist/assets/{issue-passport-CeJy-eGP.js → issue-passport-gNt3LqEb.js} +1 -1
- package/dist/assets/{item-D48n_jCS.js → item-1yEVSl8f.js} +1 -1
- package/dist/assets/{landing-page-C-nrxraJ.js → landing-page-DIy3L18O.js} +1 -1
- package/dist/assets/{launch-result-message-DWeUg9rM.js → launch-result-message-5HOBRYMn.js} +1 -1
- package/dist/assets/{layout-Bu-krdMM.js → layout-CgGSszKF.js} +1 -1
- package/dist/assets/{list-DTYfy5jI.js → list-Bj4EH_EL.js} +1 -1
- package/dist/assets/{list-Bm-Ae18B.js → list-CSWSdurz.js} +1 -1
- package/dist/assets/{list-header-BE2kzda_.js → list-header-Q-5QUSB8.js} +1 -1
- package/dist/assets/localization-CgrsqMtL.js +1 -0
- package/dist/assets/{lock.svg-COUP8tyO.js → lock.svg-BPCZ0CT3.js} +1 -1
- package/dist/assets/{log-QCNL7fmO.js → log-B_J8mg8B.js} +1 -1
- package/dist/assets/logger-QD2VS2Mb.js +1 -0
- package/dist/assets/{login-CEAH4IAS.js → login-Bio30C4m.js} +1 -1
- package/dist/assets/{login-oauth-callback-C2H6pyf0.js → login-oauth-callback-D0EhzZTU.js} +1 -1
- package/dist/assets/{logo-uploader-D9dqlBcG.js → logo-uploader-DnA7whvY.js} +1 -1
- package/dist/assets/{lost-passport-D-HNQTYL.js → lost-passport-CM51lU3r.js} +2 -2
- package/dist/assets/{lottie-react.esm-M5fKy3fg.js → lottie-react.esm-CD0xFBYg.js} +1 -1
- package/dist/assets/observability-BrLAcYkS.js +1 -0
- package/dist/assets/omit-CPVfFmp-.js +1 -0
- package/dist/assets/{open-window-DgCyIQ1g.js → open-window-z11fkxAm.js} +1 -1
- package/dist/assets/{over-due-invoice-payment-DSTf3GE0.js → over-due-invoice-payment-B7tDPPws.js} +1 -1
- package/dist/assets/{overview-ClqTYGzr.js → overview-1UV4-LGy.js} +1 -1
- package/dist/assets/{page-header-DCvzRay5.js → page-header-bY0dwe6y.js} +1 -1
- package/dist/assets/passport-BxAsPdEH.js +1 -0
- package/dist/assets/{passport-item-BDPJusYi.js → passport-item-DmCvf5Er.js} +1 -1
- package/dist/assets/{permission-CPpfaEat.js → permission-t78Xon7o.js} +1 -1
- package/dist/assets/playground-QvTAmNqS.js +1 -0
- package/dist/assets/preferences-K24ynDKn.js +1 -0
- package/dist/assets/profile-embed-DXvSNJu_.js +1 -0
- package/dist/assets/publish-resource-BM96DWgo.js +1 -0
- package/dist/assets/{question-mark-circle.svg-B4stD6SS.js → question-mark-circle.svg-DK9nTUDZ.js} +1 -1
- package/dist/assets/{raf-schd.esm-CHNehTG3.js → raf-schd.esm-JNUhxcps.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-ZwmTP19t.js → react-beautiful-dnd.esm-DQ9oGom7.js} +1 -1
- package/dist/assets/{react-stripe.esm-Dc9snvfb.js → react-stripe.esm-CT6ZhpE7.js} +1 -1
- package/dist/assets/{required-BGaDOGrj.js → required-BuZo1JHj.js} +1 -1
- package/dist/assets/{revoke.svg-CmffMlcP.js → revoke.svg-CuiCGfVW.js} +1 -1
- package/dist/assets/{runtime-AXM1IbpE.js → runtime-RJv_jEZF.js} +1 -1
- package/dist/assets/{sanitize-BEqBHa8a.js → sanitize-C43KM91h.js} +1 -1
- package/dist/assets/sdk-2Xqu2SZD.js +1 -0
- package/dist/assets/{section-C75bzkkL.js → section-DDyoFT-o.js} +1 -1
- package/dist/assets/{security-BKCc6kr9.js → security-C-ANgtMR.js} +1 -1
- package/dist/assets/{server-logo-notext.svg-CKQB0tIp.js → server-logo-notext.svg-DHxZ1bRk.js} +1 -1
- package/dist/assets/session-Dt50YAVT.js +1 -0
- package/dist/assets/{setup-CdiiCta6.js → setup-BryxUu7A.js} +1 -1
- package/dist/assets/{shorten-label-RqvHqcC3.js → shorten-label-BiZLRE-N.js} +1 -1
- package/dist/assets/{simple-select-iVD4-YUy.js → simple-select-DZvdqo7G.js} +1 -1
- package/dist/assets/{spaces-Bhd_JZon.js → spaces-BRmoEATc.js} +1 -1
- package/dist/assets/{start-BXKCBBDg.js → start-CChSAOWC.js} +1 -1
- package/dist/assets/{starting-progress-Ls9oWS4w.js → starting-progress-Dn3jpzSc.js} +1 -1
- package/dist/assets/{status-Cu5kOgRL.js → status-Ukzm4O8y.js} +1 -1
- package/dist/assets/{step-actions-sALFE9jn.js → step-actions-BursUhDh.js} +1 -1
- package/dist/assets/{studio-2AfcGI4x.js → studio-Cfhka82V.js} +1 -1
- package/dist/assets/{switch-control-CLq7MYhJ.js → switch-control-DwAlFBVc.js} +1 -1
- package/dist/assets/{table-tips-DBCvmY1v.js → table-tips-Ccm9jBpV.js} +1 -1
- package/dist/assets/{team-4Qq9vwj5.js → team-W2Fdvkfl.js} +1 -1
- package/dist/assets/{traffic-DU_BMQPm.js → traffic-DKKjsKRb.js} +1 -1
- package/dist/assets/{transfer-DAvviBGy.js → transfer-Dji3lOoL.js} +1 -1
- package/dist/assets/{unsubscribe-CzukIuIE.js → unsubscribe-Dszf0vso.js} +1 -1
- package/dist/assets/{use-app-logo-9qTsLgnV.js → use-app-logo-Bu9kUO2d.js} +1 -1
- package/dist/assets/{use-mobile-DCNBsOlH.js → use-mobile-BGG7EyYb.js} +1 -1
- package/dist/assets/{use-mobile-maRlSUwU.js → use-mobile-yOnqxyr6.js} +1 -1
- package/dist/assets/{use-server-logo-n_aaKVoZ.js → use-server-logo-CTR2UZFf.js} +1 -1
- package/dist/assets/use-window-close-dG-tZxWF.js +1 -0
- package/dist/assets/useAsync-5gLXHIip.js +1 -0
- package/dist/assets/{useAsync-cZ_FPf9k.js → useAsync-tRHUJQgE.js} +1 -1
- package/dist/assets/{useAsyncRetry-DwwEjrjs.js → useAsyncRetry-MDM8jCoS.js} +1 -1
- package/dist/assets/{useLocalStorage-CvPFnddH.js → useLocalStorage-CbmitI3m.js} +1 -1
- package/dist/assets/{useSetState-DFuQZPPV.js → useSetState-cWrp7qoX.js} +1 -1
- package/dist/assets/{user-center-DynXe12u.js → user-center-BuHH3C1u.js} +3 -3
- package/dist/assets/{user-follower-Br2H5oAR.js → user-follower-Bn21LRum.js} +1 -1
- package/dist/assets/{util-4xOccFjr.js → util-Byg5myf8.js} +1 -1
- package/dist/assets/{util-B1w9UqzK.js → util-qnRu_NH_.js} +1 -1
- package/dist/assets/{vendor-arcblock-CqplRmyi.js → vendor-arcblock-DBEMYjVA.js} +1 -1
- package/dist/assets/{vendor-hooks-CjESGRlR.js → vendor-hooks-L8kZVRUL.js} +1 -1
- package/dist/assets/{vendor-mui-core-CnXrAOs3.js → vendor-mui-core-___CiWHn.js} +1 -1
- package/dist/assets/{vendor-mui-x-bJ5idfMH.js → vendor-mui-x-CYSdP1E1.js} +1 -1
- package/dist/assets/vendor-react-CUXIiAnY.js +37 -0
- package/dist/assets/vendor-utils-Doa0RxLS.js +213 -0
- package/dist/assets/{vendor-ux-5OlTXZBe.js → vendor-ux-pxYpYMxD.js} +1 -1
- package/dist/assets/{wait-connect-BA-9v9IK.js → wait-connect-z8A2YqYx.js} +1 -1
- package/dist/assets/{wizard-components-Bj1vePv_.js → wizard-components-Bu-3Twf8.js} +1 -1
- package/dist/assets/{wizard-B70SUVne.js → wizard-gl51MV0G.js} +1 -1
- package/dist/assets/wrap-locale-DwrX4tfZ.js +1 -0
- package/dist/assets/{zh-DBbr_lO3.js → zh-5FnkOdV9.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +23 -23
- package/dist/assets/api-Btn0Tp3W.js +0 -1
- package/dist/assets/branding-DO47QT9Q.js +0 -1
- package/dist/assets/button-Bm6Z4hYZ.js +0 -1
- package/dist/assets/click-to-copy-CzGMi2Jw.js +0 -1
- package/dist/assets/cloneDeep-C6qewg0C.js +0 -1
- package/dist/assets/domains-0qUGORQe.js +0 -1
- package/dist/assets/engine-DXhw4g-J.js +0 -1
- package/dist/assets/get-safe-url-mKD2PdwN.js +0 -1
- package/dist/assets/index-WsuqXAUT.js +0 -1
- package/dist/assets/localization-BILR5z0M.js +0 -1
- package/dist/assets/logger-LLowKmBx.js +0 -1
- package/dist/assets/observability-Zow0Sv-X.js +0 -1
- package/dist/assets/omit-hhiOJGRf.js +0 -1
- package/dist/assets/passport-C04lgrV5.js +0 -1
- package/dist/assets/playground-CAOOFQT1.js +0 -1
- package/dist/assets/preferences-D2CWTpgr.js +0 -1
- package/dist/assets/profile-embed-CLHyEYTf.js +0 -1
- package/dist/assets/publish-resource-B1BSffEx.js +0 -1
- package/dist/assets/sdk-CvRW7Vwp.js +0 -1
- package/dist/assets/session-BYq9-2GE.js +0 -1
- package/dist/assets/use-window-close-PzHKtiXA.js +0 -1
- package/dist/assets/useAsync-BcVLpt2E.js +0 -1
- package/dist/assets/vendor-react-Dvs43sk9.js +0 -37
- package/dist/assets/vendor-utils-cJEl_UEd.js +0 -213
- package/dist/assets/wrap-locale-CyFByfaX.js +0 -1
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
function $n(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(n,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var qo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xo(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var a=!1;try{a=this instanceof n}catch{}return a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}function Wn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jr={exports:{}},oe=Jr.exports={},_e,Ce;function Qt(){throw new Error("setTimeout has not been defined")}function Zt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_e=setTimeout:_e=Qt}catch{_e=Qt}try{typeof clearTimeout=="function"?Ce=clearTimeout:Ce=Zt}catch{Ce=Zt}})();function Gr(e){if(_e===setTimeout)return setTimeout(e,0);if((_e===Qt||!_e)&&setTimeout)return _e=setTimeout,setTimeout(e,0);try{return _e(e,0)}catch{try{return _e.call(null,e,0)}catch{return _e.call(this,e,0)}}}function Kn(e){if(Ce===clearTimeout)return clearTimeout(e);if((Ce===Zt||!Ce)&&clearTimeout)return Ce=clearTimeout,clearTimeout(e);try{return Ce(e)}catch{try{return Ce.call(null,e)}catch{return Ce.call(this,e)}}}var Oe=[],it=!1,qe,Tt=-1;function Vn(){!it||!qe||(it=!1,qe.length?Oe=qe.concat(Oe):Tt=-1,Oe.length&&qr())}function qr(){if(!it){var e=Gr(Vn);it=!0;for(var t=Oe.length;t;){for(qe=Oe,Oe=[];++Tt<t;)qe&&qe[Tt].run();Tt=-1,t=Oe.length}qe=null,it=!1,Kn(e)}}oe.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Oe.push(new Xr(e,t)),Oe.length===1&&!it&&Gr(qr)};function Xr(e,t){this.fun=e,this.array=t}Xr.prototype.run=function(){this.fun.apply(null,this.array)};oe.title="browser";oe.browser=!0;oe.env={};oe.argv=[];oe.version="";oe.versions={};function Ue(){}oe.on=Ue;oe.addListener=Ue;oe.once=Ue;oe.off=Ue;oe.removeListener=Ue;oe.removeAllListeners=Ue;oe.emit=Ue;oe.prependListener=Ue;oe.prependOnceListener=Ue;oe.listeners=function(e){return[]};oe.binding=function(e){throw new Error("process.binding is not supported")};oe.cwd=function(){return"/"};oe.chdir=function(e){throw new Error("process.chdir is not supported")};oe.umask=function(){return 0};var Yn=Jr.exports;const Vt=Wn(Yn);var Yt={exports:{}},k={},Pr;function Jn(){if(Pr)return k;Pr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),o=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),i=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;function b(c){return c===null||typeof c!="object"?null:(c=h&&c[h]||c["@@iterator"],typeof c=="function"?c:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,P={};function _(c,R,M){this.props=c,this.context=R,this.refs=P,this.updater=M||y}_.prototype.isReactComponent={},_.prototype.setState=function(c,R){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,R,"setState")},_.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};function z(){}z.prototype=_.prototype;function D(c,R,M){this.props=c,this.context=R,this.refs=P,this.updater=M||y}var B=D.prototype=new z;B.constructor=D,w(B,_.prototype),B.isPureReactComponent=!0;var K=Array.isArray,N={H:null,A:null,T:null,S:null,V:null},ye=Object.prototype.hasOwnProperty;function v(c,R,M,j,H,W){return M=W.ref,{$$typeof:e,type:c,key:R,ref:M!==void 0?M:null,props:W}}function J(c,R){return v(c.type,R,void 0,void 0,void 0,c.props)}function te(c){return typeof c=="object"&&c!==null&&c.$$typeof===e}function G(c){var R={"=":"=0",":":"=2"};return"$"+c.replace(/[=:]/g,function(M){return R[M]})}var le=/\/+/g;function ue(c,R){return typeof c=="object"&&c!==null&&c.key!=null?G(""+c.key):R.toString(36)}function he(){}function Ne(c){switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:switch(typeof c.status=="string"?c.then(he,he):(c.status="pending",c.then(function(R){c.status==="pending"&&(c.status="fulfilled",c.value=R)},function(R){c.status==="pending"&&(c.status="rejected",c.reason=R)})),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason}}throw c}function pe(c,R,M,j,H){var W=typeof c;(W==="undefined"||W==="boolean")&&(c=null);var I=!1;if(c===null)I=!0;else switch(W){case"bigint":case"string":case"number":I=!0;break;case"object":switch(c.$$typeof){case e:case t:I=!0;break;case p:return I=c._init,pe(I(c._payload),R,M,j,H)}}if(I)return H=H(c),I=j===""?"."+ue(c,0):j,K(H)?(M="",I!=null&&(M=I.replace(le,"$&/")+"/"),pe(H,R,M,"",function(Bt){return Bt})):H!=null&&(te(H)&&(H=J(H,M+(H.key==null||c&&c.key===H.key?"":(""+H.key).replace(le,"$&/")+"/")+I)),R.push(H)),1;I=0;var ce=j===""?".":j+":";if(K(c))for(var ee=0;ee<c.length;ee++)j=c[ee],W=ce+ue(j,ee),I+=pe(j,R,M,W,H);else if(ee=b(c),typeof ee=="function")for(c=ee.call(c),ee=0;!(j=c.next()).done;)j=j.value,W=ce+ue(j,ee++),I+=pe(j,R,M,W,H);else if(W==="object"){if(typeof c.then=="function")return pe(Ne(c),R,M,j,H);throw R=String(c),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return I}function Te(c,R,M){if(c==null)return c;var j=[],H=0;return pe(c,j,"","",function(W){return R.call(M,W,H++)}),j}function Qe(c){if(c._status===-1){var R=c._result;R=R(),R.then(function(M){(c._status===0||c._status===-1)&&(c._status=1,c._result=M)},function(M){(c._status===0||c._status===-1)&&(c._status=2,c._result=M)}),c._status===-1&&(c._status=0,c._result=R)}if(c._status===1)return c._result.default;throw c._result}var ae=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(R))return}else if(typeof Vt=="object"&&typeof Vt.emit=="function"){Vt.emit("uncaughtException",c);return}console.error(c)};function Ze(){}return k.Children={map:Te,forEach:function(c,R,M){Te(c,function(){R.apply(this,arguments)},M)},count:function(c){var R=0;return Te(c,function(){R++}),R},toArray:function(c){return Te(c,function(R){return R})||[]},only:function(c){if(!te(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},k.Component=_,k.Fragment=r,k.Profiler=a,k.PureComponent=D,k.StrictMode=n,k.Suspense=s,k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,k.__COMPILER_RUNTIME={__proto__:null,c:function(c){return N.H.useMemoCache(c)}},k.cache=function(c){return function(){return c.apply(null,arguments)}},k.cloneElement=function(c,R,M){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var j=w({},c.props),H=c.key,W=void 0;if(R!=null)for(I in R.ref!==void 0&&(W=void 0),R.key!==void 0&&(H=""+R.key),R)!ye.call(R,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&R.ref===void 0||(j[I]=R[I]);var I=arguments.length-2;if(I===1)j.children=M;else if(1<I){for(var ce=Array(I),ee=0;ee<I;ee++)ce[ee]=arguments[ee+2];j.children=ce}return v(c.type,H,void 0,void 0,W,j)},k.createContext=function(c){return c={$$typeof:o,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:l,_context:c},c},k.createElement=function(c,R,M){var j,H={},W=null;if(R!=null)for(j in R.key!==void 0&&(W=""+R.key),R)ye.call(R,j)&&j!=="key"&&j!=="__self"&&j!=="__source"&&(H[j]=R[j]);var I=arguments.length-2;if(I===1)H.children=M;else if(1<I){for(var ce=Array(I),ee=0;ee<I;ee++)ce[ee]=arguments[ee+2];H.children=ce}if(c&&c.defaultProps)for(j in I=c.defaultProps,I)H[j]===void 0&&(H[j]=I[j]);return v(c,W,void 0,void 0,null,H)},k.createRef=function(){return{current:null}},k.forwardRef=function(c){return{$$typeof:f,render:c}},k.isValidElement=te,k.lazy=function(c){return{$$typeof:p,_payload:{_status:-1,_result:c},_init:Qe}},k.memo=function(c,R){return{$$typeof:i,type:c,compare:R===void 0?null:R}},k.startTransition=function(c){var R=N.T,M={};N.T=M;try{var j=c(),H=N.S;H!==null&&H(M,j),typeof j=="object"&&j!==null&&typeof j.then=="function"&&j.then(Ze,ae)}catch(W){ae(W)}finally{N.T=R}},k.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},k.use=function(c){return N.H.use(c)},k.useActionState=function(c,R,M){return N.H.useActionState(c,R,M)},k.useCallback=function(c,R){return N.H.useCallback(c,R)},k.useContext=function(c){return N.H.useContext(c)},k.useDebugValue=function(){},k.useDeferredValue=function(c,R){return N.H.useDeferredValue(c,R)},k.useEffect=function(c,R,M){var j=N.H;if(typeof M=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return j.useEffect(c,R)},k.useId=function(){return N.H.useId()},k.useImperativeHandle=function(c,R,M){return N.H.useImperativeHandle(c,R,M)},k.useInsertionEffect=function(c,R){return N.H.useInsertionEffect(c,R)},k.useLayoutEffect=function(c,R){return N.H.useLayoutEffect(c,R)},k.useMemo=function(c,R){return N.H.useMemo(c,R)},k.useOptimistic=function(c,R){return N.H.useOptimistic(c,R)},k.useReducer=function(c,R,M){return N.H.useReducer(c,R,M)},k.useRef=function(c){return N.H.useRef(c)},k.useState=function(c){return N.H.useState(c)},k.useSyncExternalStore=function(c,R,M){return N.H.useSyncExternalStore(c,R,M)},k.useTransition=function(){return N.H.useTransition()},k.version="19.1.0",k}var _r;function Qr(){return _r||(_r=1,Yt.exports=Jn()),Yt.exports}var Jt={exports:{}},fe={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-dom.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Cr;function Gn(){if(Cr)return fe;Cr=1;var e=Qr();function t(s){var i="https://react.dev/errors/"+s;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)i+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+s+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for("react.portal");function l(s,i,p){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:h==null?null:""+h,children:s,containerInfo:i,implementation:p}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(s,i){if(s==="font")return"";if(typeof i=="string")return i==="use-credentials"?i:""}return fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,fe.createPortal=function(s,i){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)throw Error(t(299));return l(s,i,null,p)},fe.flushSync=function(s){var i=o.T,p=n.p;try{if(o.T=null,n.p=2,s)return s()}finally{o.T=i,n.p=p,n.d.f()}},fe.preconnect=function(s,i){typeof s=="string"&&(i?(i=i.crossOrigin,i=typeof i=="string"?i==="use-credentials"?i:"":void 0):i=null,n.d.C(s,i))},fe.prefetchDNS=function(s){typeof s=="string"&&n.d.D(s)},fe.preinit=function(s,i){if(typeof s=="string"&&i&&typeof i.as=="string"){var p=i.as,h=f(p,i.crossOrigin),b=typeof i.integrity=="string"?i.integrity:void 0,y=typeof i.fetchPriority=="string"?i.fetchPriority:void 0;p==="style"?n.d.S(s,typeof i.precedence=="string"?i.precedence:void 0,{crossOrigin:h,integrity:b,fetchPriority:y}):p==="script"&&n.d.X(s,{crossOrigin:h,integrity:b,fetchPriority:y,nonce:typeof i.nonce=="string"?i.nonce:void 0})}},fe.preinitModule=function(s,i){if(typeof s=="string")if(typeof i=="object"&&i!==null){if(i.as==null||i.as==="script"){var p=f(i.as,i.crossOrigin);n.d.M(s,{crossOrigin:p,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0})}}else i==null&&n.d.M(s)},fe.preload=function(s,i){if(typeof s=="string"&&typeof i=="object"&&i!==null&&typeof i.as=="string"){var p=i.as,h=f(p,i.crossOrigin);n.d.L(s,p,{crossOrigin:h,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0,type:typeof i.type=="string"?i.type:void 0,fetchPriority:typeof i.fetchPriority=="string"?i.fetchPriority:void 0,referrerPolicy:typeof i.referrerPolicy=="string"?i.referrerPolicy:void 0,imageSrcSet:typeof i.imageSrcSet=="string"?i.imageSrcSet:void 0,imageSizes:typeof i.imageSizes=="string"?i.imageSizes:void 0,media:typeof i.media=="string"?i.media:void 0})}},fe.preloadModule=function(s,i){if(typeof s=="string")if(i){var p=f(i.as,i.crossOrigin);n.d.m(s,{as:typeof i.as=="string"&&i.as!=="script"?i.as:void 0,crossOrigin:p,integrity:typeof i.integrity=="string"?i.integrity:void 0})}else n.d.m(s)},fe.requestFormReset=function(s){n.d.r(s)},fe.unstable_batchedUpdates=function(s,i){return s(i)},fe.useFormState=function(s,i,p){return o.H.useFormState(s,i,p)},fe.useFormStatus=function(){return o.H.useHostTransitionStatus()},fe.version="19.1.0",fe}var xr;function qn(){if(xr)return Jt.exports;xr=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Jt.exports=Gn(),Jt.exports}var g=Qr();const Xn=Yr(g),Zr=$n({__proto__:null,default:Xn},[g]);var Qn=qn();const Qo=Yr(Qn);/**
|
|
10
|
-
* @remix-run/router v1.23.0
|
|
11
|
-
*
|
|
12
|
-
* Copyright (c) Remix Software Inc.
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the MIT license found in the
|
|
15
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
16
|
-
*
|
|
17
|
-
* @license MIT
|
|
18
|
-
*/function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Z.apply(this,arguments)}var Q;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Q||(Q={}));const Tr="popstate";function en(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:r,v5Compat:n=!1}=e,a;a=t.map((y,w)=>p(y,typeof y=="string"?null:y.state,w===0?"default":void 0));let l=s(r??a.length-1),o=Q.Pop,f=null;function s(y){return Math.min(Math.max(y,0),a.length-1)}function i(){return a[l]}function p(y,w,P){w===void 0&&(w=null);let _=lt(a?i().pathname:"/",y,w,P);return ze(_.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(y)),_}function h(y){return typeof y=="string"?y:je(y)}return{get index(){return l},get action(){return o},get location(){return i()},createHref:h,createURL(y){return new URL(h(y),"http://localhost")},encodeLocation(y){let w=typeof y=="string"?we(y):y;return{pathname:w.pathname||"",search:w.search||"",hash:w.hash||""}},push(y,w){o=Q.Push;let P=p(y,w);l+=1,a.splice(l,a.length,P),n&&f&&f({action:o,location:P,delta:1})},replace(y,w){o=Q.Replace;let P=p(y,w);a[l]=P,n&&f&&f({action:o,location:P,delta:0})},go(y){o=Q.Pop;let w=s(l+y),P=a[w];l=w,f&&f({action:o,location:P,delta:y})},listen(y){return f=y,()=>{f=null}}}}function Zn(e){e===void 0&&(e={});function t(n,a){let{pathname:l,search:o,hash:f}=n.location;return lt("",{pathname:l,search:o,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:je(a)}return ta(t,r,null,e)}function U(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ze(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ea(){return Math.random().toString(36).substr(2,8)}function Dr(e,t){return{usr:e.state,key:e.key,idx:t}}function lt(e,t,r,n){return r===void 0&&(r=null),Z({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?we(t):t,{state:r,key:t&&t.key||n||ea()})}function je(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function we(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function ta(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:l=!1}=n,o=a.history,f=Q.Pop,s=null,i=p();i==null&&(i=0,o.replaceState(Z({},o.state,{idx:i}),""));function p(){return(o.state||{idx:null}).idx}function h(){f=Q.Pop;let _=p(),z=_==null?null:_-i;i=_,s&&s({action:f,location:P.location,delta:z})}function b(_,z){f=Q.Push;let D=lt(P.location,_,z);i=p()+1;let B=Dr(D,i),K=P.createHref(D);try{o.pushState(B,"",K)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;a.location.assign(K)}l&&s&&s({action:f,location:P.location,delta:1})}function y(_,z){f=Q.Replace;let D=lt(P.location,_,z);i=p();let B=Dr(D,i),K=P.createHref(D);o.replaceState(B,"",K),l&&s&&s({action:f,location:P.location,delta:0})}function w(_){let z=a.location.origin!=="null"?a.location.origin:a.location.href,D=typeof _=="string"?_:je(_);return D=D.replace(/ $/,"%20"),U(z,"No window.location.(origin|href) available to create URL for href: "+D),new URL(D,z)}let P={get action(){return f},get location(){return e(a,o)},listen(_){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(Tr,h),s=_,()=>{a.removeEventListener(Tr,h),s=null}},createHref(_){return t(a,_)},createURL:w,encodeLocation(_){let z=w(_);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:b,replace:y,go(_){return o.go(_)}};return P}var q;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(q||(q={}));const ra=new Set(["lazy","caseSensitive","path","id","index","children"]);function na(e){return e.index===!0}function Lt(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,l)=>{let o=[...r,String(l)],f=typeof a.id=="string"?a.id:o.join("-");if(U(a.index!==!0||!a.children,"Cannot specify children on an index route"),U(!n[f],'Found a route id collision on id "'+f+`". Route id's must be globally unique within Data Router usages`),na(a)){let s=Z({},a,t(a),{id:f});return n[f]=s,s}else{let s=Z({},a,t(a),{id:f,children:void 0});return n[f]=s,a.children&&(s.children=Lt(a.children,t,o,n)),s}})}function He(e,t,r){return r===void 0&&(r="/"),Dt(e,t,r,!1)}function Dt(e,t,r,n){let a=typeof t=="string"?we(t):t,l=Re(a.pathname||"/",r);if(l==null)return null;let o=rn(e);aa(o);let f=null;for(let s=0;f==null&&s<o.length;++s){let i=an(l);f=ha(o[s],i,n)}return f}function tn(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function rn(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(l,o,f)=>{let s={relativePath:f===void 0?l.path||"":f,caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};s.relativePath.startsWith("/")&&(U(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let i=Me([n,s.relativePath]),p=r.concat(s);l.children&&l.children.length>0&&(U(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+i+'".')),rn(l.children,t,p,i)),!(l.path==null&&!l.index)&&t.push({path:i,score:fa(i,l.index),routesMeta:p})};return e.forEach((l,o)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))a(l,o);else for(let s of nn(l.path))a(l,o,s)}),t}function nn(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),l=r.replace(/\?$/,"");if(n.length===0)return a?[l,""]:[l];let o=nn(n.join("/")),f=[];return f.push(...o.map(s=>s===""?l:[l,s].join("/"))),a&&f.push(...o),f.map(s=>e.startsWith("/")&&s===""?"/":s)}function aa(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:da(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const oa=/^:[\w-]+$/,ia=3,la=2,sa=1,ua=10,ca=-2,Lr=e=>e==="*";function fa(e,t){let r=e.split("/"),n=r.length;return r.some(Lr)&&(n+=ca),t&&(n+=la),r.filter(a=>!Lr(a)).reduce((a,l)=>a+(oa.test(l)?ia:l===""?sa:ua),n)}function da(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function ha(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},l="/",o=[];for(let f=0;f<n.length;++f){let s=n[f],i=f===n.length-1,p=l==="/"?t:t.slice(l.length)||"/",h=st({path:s.relativePath,caseSensitive:s.caseSensitive,end:i},p),b=s.route;if(!h&&i&&r&&!n[n.length-1].route.index&&(h=st({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},p)),!h)return null;Object.assign(a,h.params),o.push({params:a,pathname:Me([l,h.pathname]),pathnameBase:ga(Me([l,h.pathnameBase])),route:b}),h.pathnameBase!=="/"&&(l=Me([l,h.pathnameBase]))}return o}function pa(e,t){t===void 0&&(t={});let r=e;r.endsWith("*")&&r!=="*"&&!r.endsWith("/*")&&(ze(!1,'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+r.replace(/\*$/,"/*")+'".')),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",a=o=>o==null?"":typeof o=="string"?o:String(o),l=r.split(/\/+/).map((o,f,s)=>{if(f===s.length-1&&o==="*")return a(t["*"]);const p=o.match(/^:([\w-]+)(\??)$/);if(p){const[,h,b]=p;let y=t[h];return U(b==="?"||y!=null,'Missing ":'+h+'" param'),a(y)}return o.replace(/\?$/g,"")}).filter(o=>!!o);return n+l.join("/")}function st(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=ma(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let l=a[0],o=l.replace(/(.)\/+$/,"$1"),f=a.slice(1);return{params:n.reduce((i,p,h)=>{let{paramName:b,isOptional:y}=p;if(b==="*"){let P=f[h]||"";o=l.slice(0,l.length-P.length).replace(/(.)\/+$/,"$1")}const w=f[h];return y&&!w?i[b]=void 0:i[b]=(w||"").replace(/%2F/g,"/"),i},{}),pathname:l,pathnameBase:o,pattern:e}}function ma(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),ze(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,f,s)=>(n.push({paramName:f,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function an(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ze(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Re(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function on(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?we(e):e;return{pathname:r?r.startsWith("/")?r:va(r,t):t,search:ya(n),hash:Ea(a)}}function va(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Gt(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function ln(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function At(e,t){let r=ln(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Nt(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=we(e):(a=Z({},e),U(!a.pathname||!a.pathname.includes("?"),Gt("?","pathname","search",a)),U(!a.pathname||!a.pathname.includes("#"),Gt("#","pathname","hash",a)),U(!a.search||!a.search.includes("#"),Gt("#","search","hash",a)));let l=e===""||a.pathname==="",o=l?"/":a.pathname,f;if(o==null)f=r;else{let h=t.length-1;if(!n&&o.startsWith("..")){let b=o.split("/");for(;b[0]==="..";)b.shift(),h-=1;a.pathname=b.join("/")}f=h>=0?t[h]:"/"}let s=on(a,f),i=o&&o!=="/"&&o.endsWith("/"),p=(l||o===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(i||p)&&(s.pathname+="/"),s}const Me=e=>e.join("/").replace(/\/\/+/g,"/"),ga=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ya=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ea=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,ba=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r,a=new Headers(n.headers);return a.has("Content-Type")||a.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(t),Z({},n,{headers:a}))};class Ot extends Error{}class Ra{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],U(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((l,o)=>n=o),this.controller=new AbortController;let a=()=>n(new Ot("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",a),this.controller.signal.addEventListener("abort",a),this.data=Object.entries(t).reduce((l,o)=>{let[f,s]=o;return Object.assign(l,{[f]:this.trackPromise(f,s)})},{}),this.done&&this.unlistenAbortSignal(),this.init=r}trackPromise(t,r){if(!(r instanceof Promise))return r;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let n=Promise.race([r,this.abortPromise]).then(a=>this.onSettle(n,t,void 0,a),a=>this.onSettle(n,t,a));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,r,n,a){if(this.controller.signal.aborted&&n instanceof Ot)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(r),this.done&&this.unlistenAbortSignal(),n===void 0&&a===void 0){let l=new Error('Deferred data for key "'+r+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(t,"_error",{get:()=>l}),this.emit(!1,r),Promise.reject(l)}return a===void 0?(Object.defineProperty(t,"_error",{get:()=>n}),this.emit(!1,r),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>a}),this.emit(!1,r),a)}emit(t,r){this.subscribers.forEach(n=>n(t,r))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,r)=>this.pendingKeysSet.delete(r)),this.emit(!0)}async resolveData(t){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=await new Promise(a=>{this.subscribe(l=>{t.removeEventListener("abort",n),(l||this.done)&&a(l)})})}return r}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return U(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,r)=>{let[n,a]=r;return Object.assign(t,{[n]:Sa(a)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function wa(e){return e instanceof Promise&&e._tracked===!0}function Sa(e){if(!wa(e))return e;if(e._error)throw e._error;return e._data}const Pa=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r;return new Ra(t,n)},ir=function(t,r){r===void 0&&(r=302);let n=r;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",t),new Response(null,Z({},n,{headers:a}))},_a=(e,t)=>{let r=ir(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},Ca=(e,t)=>{let r=ir(e,t);return r.headers.set("X-Remix-Replace","true"),r};class er{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function ut(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const sn=["post","put","patch","delete"],xa=new Set(sn),Ta=["get",...sn],Da=new Set(Ta),La=new Set([301,302,303,307,308]),Oa=new Set([307,308]),qt={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ma={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ot={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},lr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ja=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),un="remix-router-transitions";function Ua(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;U(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let u=e.detectErrorBoundary;a=d=>({hasErrorBoundary:u(d)})}else a=ja;let l={},o=Lt(e.routes,a,void 0,l),f,s=e.basename||"/",i=e.dataStrategy||Fa,p=e.patchRoutesOnNavigation,h=Z({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),b=null,y=new Set,w=null,P=null,_=null,z=e.hydrationData!=null,D=He(o,e.history.location,s),B=!1,K=null;if(D==null&&!p){let u=me(404,{pathname:e.history.location.pathname}),{matches:d,route:m}=Br(o);D=d,K={[m.id]:u}}D&&!e.hydrationData&&St(D,o,e.history.location.pathname).active&&(D=null);let N;if(D)if(D.some(u=>u.route.lazy))N=!1;else if(!D.some(u=>u.route.loader))N=!0;else if(h.v7_partialHydration){let u=e.hydrationData?e.hydrationData.loaderData:null,d=e.hydrationData?e.hydrationData.errors:null;if(d){let m=D.findIndex(E=>d[E.route.id]!==void 0);N=D.slice(0,m+1).every(E=>!rr(E.route,u,d))}else N=D.every(m=>!rr(m.route,u,d))}else N=e.hydrationData!=null;else if(N=!1,D=[],h.v7_partialHydration){let u=St(null,o,e.history.location.pathname);u.active&&u.matches&&(B=!0,D=u.matches)}let ye,v={historyAction:e.history.action,location:e.history.location,matches:D,initialized:N,navigation:qt,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||K,fetchers:new Map,blockers:new Map},J=Q.Pop,te=!1,G,le=!1,ue=new Map,he=null,Ne=!1,pe=!1,Te=[],Qe=new Set,ae=new Map,Ze=0,c=-1,R=new Map,M=new Set,j=new Map,H=new Map,W=new Set,I=new Map,ce=new Map,ee;function Bt(){if(b=e.history.listen(u=>{let{action:d,location:m,delta:E}=u;if(ee){ee(),ee=void 0;return}ze(ce.size===0||E!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let S=br({currentLocation:v.location,nextLocation:m,historyAction:d});if(S&&E!=null){let O=new Promise(A=>{ee=A});e.history.go(E*-1),wt(S,{state:"blocked",location:m,proceed(){wt(S,{state:"proceeding",proceed:void 0,reset:void 0,location:m}),O.then(()=>e.history.go(E))},reset(){let A=new Map(v.blockers);A.set(S,ot),de({blockers:A})}});return}return Ve(d,m)}),r){Qa(t,ue);let u=()=>Za(t,ue);t.addEventListener("pagehide",u),he=()=>t.removeEventListener("pagehide",u)}return v.initialized||Ve(Q.Pop,v.location,{initialHydration:!0}),ye}function xn(){b&&b(),he&&he(),y.clear(),G&&G.abort(),v.fetchers.forEach((u,d)=>Rt(d)),v.blockers.forEach((u,d)=>Er(d))}function Tn(u){return y.add(u),()=>y.delete(u)}function de(u,d){d===void 0&&(d={}),v=Z({},v,u);let m=[],E=[];h.v7_fetcherPersist&&v.fetchers.forEach((S,O)=>{S.state==="idle"&&(W.has(O)?E.push(O):m.push(O))}),W.forEach(S=>{!v.fetchers.has(S)&&!ae.has(S)&&E.push(S)}),[...y].forEach(S=>S(v,{deletedFetchers:E,viewTransitionOpts:d.viewTransitionOpts,flushSync:d.flushSync===!0})),h.v7_fetcherPersist?(m.forEach(S=>v.fetchers.delete(S)),E.forEach(S=>Rt(S))):E.forEach(S=>W.delete(S))}function et(u,d,m){var E,S;let{flushSync:O}=m===void 0?{}:m,A=v.actionData!=null&&v.navigation.formMethod!=null&&be(v.navigation.formMethod)&&v.navigation.state==="loading"&&((E=u.state)==null?void 0:E._isRedirect)!==!0,x;d.actionData?Object.keys(d.actionData).length>0?x=d.actionData:x=null:A?x=v.actionData:x=null;let T=d.loaderData?kr(v.loaderData,d.loaderData,d.matches||[],d.errors):v.loaderData,C=v.blockers;C.size>0&&(C=new Map(C),C.forEach(($,se)=>C.set(se,ot)));let L=te===!0||v.navigation.formMethod!=null&&be(v.navigation.formMethod)&&((S=u.state)==null?void 0:S._isRedirect)!==!0;f&&(o=f,f=void 0),Ne||J===Q.Pop||(J===Q.Push?e.history.push(u,u.state):J===Q.Replace&&e.history.replace(u,u.state));let F;if(J===Q.Pop){let $=ue.get(v.location.pathname);$&&$.has(u.pathname)?F={currentLocation:v.location,nextLocation:u}:ue.has(u.pathname)&&(F={currentLocation:u,nextLocation:v.location})}else if(le){let $=ue.get(v.location.pathname);$?$.add(u.pathname):($=new Set([u.pathname]),ue.set(v.location.pathname,$)),F={currentLocation:v.location,nextLocation:u}}de(Z({},d,{actionData:x,loaderData:T,historyAction:J,location:u,initialized:!0,navigation:qt,revalidation:"idle",restoreScrollPosition:wr(u,d.matches||v.matches),preventScrollReset:L,blockers:C}),{viewTransitionOpts:F,flushSync:O===!0}),J=Q.Pop,te=!1,le=!1,Ne=!1,pe=!1,Te=[]}async function dr(u,d){if(typeof u=="number"){e.history.go(u);return}let m=tr(v.location,v.matches,s,h.v7_prependBasename,u,h.v7_relativeSplatPath,d?.fromRouteId,d?.relative),{path:E,submission:S,error:O}=Or(h.v7_normalizeFormMethod,!1,m,d),A=v.location,x=lt(v.location,E,d&&d.state);x=Z({},x,e.history.encodeLocation(x));let T=d&&d.replace!=null?d.replace:void 0,C=Q.Push;T===!0?C=Q.Replace:T===!1||S!=null&&be(S.formMethod)&&S.formAction===v.location.pathname+v.location.search&&(C=Q.Replace);let L=d&&"preventScrollReset"in d?d.preventScrollReset===!0:void 0,F=(d&&d.flushSync)===!0,$=br({currentLocation:A,nextLocation:x,historyAction:C});if($){wt($,{state:"blocked",location:x,proceed(){wt($,{state:"proceeding",proceed:void 0,reset:void 0,location:x}),dr(u,d)},reset(){let se=new Map(v.blockers);se.set($,ot),de({blockers:se})}});return}return await Ve(C,x,{submission:S,pendingError:O,preventScrollReset:L,replace:d&&d.replace,enableViewTransition:d&&d.viewTransition,flushSync:F})}function Dn(){if(zt(),de({revalidation:"loading"}),v.navigation.state!=="submitting"){if(v.navigation.state==="idle"){Ve(v.historyAction,v.location,{startUninterruptedRevalidation:!0});return}Ve(J||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation,enableViewTransition:le===!0})}}async function Ve(u,d,m){G&&G.abort(),G=null,J=u,Ne=(m&&m.startUninterruptedRevalidation)===!0,kn(v.location,v.matches),te=(m&&m.preventScrollReset)===!0,le=(m&&m.enableViewTransition)===!0;let E=f||o,S=m&&m.overrideNavigation,O=m!=null&&m.initialHydration&&v.matches&&v.matches.length>0&&!B?v.matches:He(E,d,s),A=(m&&m.flushSync)===!0;if(O&&v.initialized&&!pe&&Wa(v.location,d)&&!(m&&m.submission&&be(m.submission.formMethod))){et(d,{matches:O},{flushSync:A});return}let x=St(O,E,d.pathname);if(x.active&&x.matches&&(O=x.matches),!O){let{error:X,notFoundMatches:Y,route:re}=$t(d.pathname);et(d,{matches:Y,loaderData:{},errors:{[re.id]:X}},{flushSync:A});return}G=new AbortController;let T=at(e.history,d,G.signal,m&&m.submission),C;if(m&&m.pendingError)C=[Ge(O).route.id,{type:q.error,error:m.pendingError}];else if(m&&m.submission&&be(m.submission.formMethod)){let X=await Ln(T,d,m.submission,O,x.active,{replace:m.replace,flushSync:A});if(X.shortCircuited)return;if(X.pendingActionResult){let[Y,re]=X.pendingActionResult;if(ge(re)&&ut(re.error)&&re.error.status===404){G=null,et(d,{matches:X.matches,loaderData:{},errors:{[Y]:re.error}});return}}O=X.matches||O,C=X.pendingActionResult,S=Xt(d,m.submission),A=!1,x.active=!1,T=at(e.history,T.url,T.signal)}let{shortCircuited:L,matches:F,loaderData:$,errors:se}=await On(T,d,O,x.active,S,m&&m.submission,m&&m.fetcherSubmission,m&&m.replace,m&&m.initialHydration===!0,A,C);L||(G=null,et(d,Z({matches:F||O},Hr(C),{loaderData:$,errors:se})))}async function Ln(u,d,m,E,S,O){O===void 0&&(O={}),zt();let A=qa(d,m);if(de({navigation:A},{flushSync:O.flushSync===!0}),S){let C=await Pt(E,d.pathname,u.signal);if(C.type==="aborted")return{shortCircuited:!0};if(C.type==="error"){let L=Ge(C.partialMatches).route.id;return{matches:C.partialMatches,pendingActionResult:[L,{type:q.error,error:C.error}]}}else if(C.matches)E=C.matches;else{let{notFoundMatches:L,error:F,route:$}=$t(d.pathname);return{matches:L,pendingActionResult:[$.id,{type:q.error,error:F}]}}}let x,T=gt(E,d);if(!T.route.action&&!T.route.lazy)x={type:q.error,error:me(405,{method:u.method,pathname:d.pathname,routeId:T.route.id})};else if(x=(await dt("action",v,u,[T],E,null))[T.route.id],u.signal.aborted)return{shortCircuited:!0};if(Xe(x)){let C;return O&&O.replace!=null?C=O.replace:C=Nr(x.response.headers.get("Location"),new URL(u.url),s)===v.location.pathname+v.location.search,await Ye(u,x,!0,{submission:m,replace:C}),{shortCircuited:!0}}if(Be(x))throw me(400,{type:"defer-action"});if(ge(x)){let C=Ge(E,T.route.id);return(O&&O.replace)!==!0&&(J=Q.Push),{matches:E,pendingActionResult:[C.route.id,x]}}return{matches:E,pendingActionResult:[T.route.id,x]}}async function On(u,d,m,E,S,O,A,x,T,C,L){let F=S||Xt(d,O),$=O||A||$r(F),se=!Ne&&(!h.v7_partialHydration||!T);if(E){if(se){let ne=hr(L);de(Z({navigation:F},ne!==void 0?{actionData:ne}:{}),{flushSync:C})}let V=await Pt(m,d.pathname,u.signal);if(V.type==="aborted")return{shortCircuited:!0};if(V.type==="error"){let ne=Ge(V.partialMatches).route.id;return{matches:V.partialMatches,loaderData:{},errors:{[ne]:V.error}}}else if(V.matches)m=V.matches;else{let{error:ne,notFoundMatches:rt,route:mt}=$t(d.pathname);return{matches:rt,loaderData:{},errors:{[mt.id]:ne}}}}let X=f||o,[Y,re]=jr(e.history,v,m,$,d,h.v7_partialHydration&&T===!0,h.v7_skipActionErrorRevalidation,pe,Te,Qe,W,j,M,X,s,L);if(Wt(V=>!(m&&m.some(ne=>ne.route.id===V))||Y&&Y.some(ne=>ne.route.id===V)),c=++Ze,Y.length===0&&re.length===0){let V=gr();return et(d,Z({matches:m,loaderData:{},errors:L&&ge(L[1])?{[L[0]]:L[1].error}:null},Hr(L),V?{fetchers:new Map(v.fetchers)}:{}),{flushSync:C}),{shortCircuited:!0}}if(se){let V={};if(!E){V.navigation=F;let ne=hr(L);ne!==void 0&&(V.actionData=ne)}re.length>0&&(V.fetchers=Mn(re)),de(V,{flushSync:C})}re.forEach(V=>{Fe(V.key),V.controller&&ae.set(V.key,V.controller)});let tt=()=>re.forEach(V=>Fe(V.key));G&&G.signal.addEventListener("abort",tt);let{loaderResults:ht,fetcherResults:Le}=await pr(v,m,Y,re,u);if(u.signal.aborted)return{shortCircuited:!0};G&&G.signal.removeEventListener("abort",tt),re.forEach(V=>ae.delete(V.key));let Pe=xt(ht);if(Pe)return await Ye(u,Pe.result,!0,{replace:x}),{shortCircuited:!0};if(Pe=xt(Le),Pe)return M.add(Pe.key),await Ye(u,Pe.result,!0,{replace:x}),{shortCircuited:!0};let{loaderData:Kt,errors:pt}=Fr(v,m,ht,L,re,Le,I);I.forEach((V,ne)=>{V.subscribe(rt=>{(rt||V.done)&&I.delete(ne)})}),h.v7_partialHydration&&T&&v.errors&&(pt=Z({},v.errors,pt));let Je=gr(),_t=yr(c),Ct=Je||_t||re.length>0;return Z({matches:m,loaderData:Kt,errors:pt},Ct?{fetchers:new Map(v.fetchers)}:{})}function hr(u){if(u&&!ge(u[1]))return{[u[0]]:u[1].data};if(v.actionData)return Object.keys(v.actionData).length===0?null:v.actionData}function Mn(u){return u.forEach(d=>{let m=v.fetchers.get(d.key),E=vt(void 0,m?m.data:void 0);v.fetchers.set(d.key,E)}),new Map(v.fetchers)}function jn(u,d,m,E){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Fe(u);let S=(E&&E.flushSync)===!0,O=f||o,A=tr(v.location,v.matches,s,h.v7_prependBasename,m,h.v7_relativeSplatPath,d,E?.relative),x=He(O,A,s),T=St(x,O,A);if(T.active&&T.matches&&(x=T.matches),!x){De(u,d,me(404,{pathname:A}),{flushSync:S});return}let{path:C,submission:L,error:F}=Or(h.v7_normalizeFormMethod,!0,A,E);if(F){De(u,d,F,{flushSync:S});return}let $=gt(x,C),se=(E&&E.preventScrollReset)===!0;if(L&&be(L.formMethod)){Un(u,d,C,$,x,T.active,S,se,L);return}j.set(u,{routeId:d,path:C}),An(u,d,C,$,x,T.active,S,se,L)}async function Un(u,d,m,E,S,O,A,x,T){zt(),j.delete(u);function C(ie){if(!ie.route.action&&!ie.route.lazy){let nt=me(405,{method:T.formMethod,pathname:m,routeId:d});return De(u,d,nt,{flushSync:A}),!0}return!1}if(!O&&C(E))return;let L=v.fetchers.get(u);Ie(u,Xa(T,L),{flushSync:A});let F=new AbortController,$=at(e.history,m,F.signal,T);if(O){let ie=await Pt(S,new URL($.url).pathname,$.signal,u);if(ie.type==="aborted")return;if(ie.type==="error"){De(u,d,ie.error,{flushSync:A});return}else if(ie.matches){if(S=ie.matches,E=gt(S,m),C(E))return}else{De(u,d,me(404,{pathname:m}),{flushSync:A});return}}ae.set(u,F);let se=Ze,Y=(await dt("action",v,$,[E],S,u))[E.route.id];if($.signal.aborted){ae.get(u)===F&&ae.delete(u);return}if(h.v7_fetcherPersist&&W.has(u)){if(Xe(Y)||ge(Y)){Ie(u,ke(void 0));return}}else{if(Xe(Y))if(ae.delete(u),c>se){Ie(u,ke(void 0));return}else return M.add(u),Ie(u,vt(T)),Ye($,Y,!1,{fetcherSubmission:T,preventScrollReset:x});if(ge(Y)){De(u,d,Y.error);return}}if(Be(Y))throw me(400,{type:"defer-action"});let re=v.navigation.location||v.location,tt=at(e.history,re,F.signal),ht=f||o,Le=v.navigation.state!=="idle"?He(ht,v.navigation.location,s):v.matches;U(Le,"Didn't find any matches after fetcher action");let Pe=++Ze;R.set(u,Pe);let Kt=vt(T,Y.data);v.fetchers.set(u,Kt);let[pt,Je]=jr(e.history,v,Le,T,re,!1,h.v7_skipActionErrorRevalidation,pe,Te,Qe,W,j,M,ht,s,[E.route.id,Y]);Je.filter(ie=>ie.key!==u).forEach(ie=>{let nt=ie.key,Sr=v.fetchers.get(nt),zn=vt(void 0,Sr?Sr.data:void 0);v.fetchers.set(nt,zn),Fe(nt),ie.controller&&ae.set(nt,ie.controller)}),de({fetchers:new Map(v.fetchers)});let _t=()=>Je.forEach(ie=>Fe(ie.key));F.signal.addEventListener("abort",_t);let{loaderResults:Ct,fetcherResults:V}=await pr(v,Le,pt,Je,tt);if(F.signal.aborted)return;F.signal.removeEventListener("abort",_t),R.delete(u),ae.delete(u),Je.forEach(ie=>ae.delete(ie.key));let ne=xt(Ct);if(ne)return Ye(tt,ne.result,!1,{preventScrollReset:x});if(ne=xt(V),ne)return M.add(ne.key),Ye(tt,ne.result,!1,{preventScrollReset:x});let{loaderData:rt,errors:mt}=Fr(v,Le,Ct,void 0,Je,V,I);if(v.fetchers.has(u)){let ie=ke(Y.data);v.fetchers.set(u,ie)}yr(Pe),v.navigation.state==="loading"&&Pe>c?(U(J,"Expected pending action"),G&&G.abort(),et(v.navigation.location,{matches:Le,loaderData:rt,errors:mt,fetchers:new Map(v.fetchers)})):(de({errors:mt,loaderData:kr(v.loaderData,rt,Le,mt),fetchers:new Map(v.fetchers)}),pe=!1)}async function An(u,d,m,E,S,O,A,x,T){let C=v.fetchers.get(u);Ie(u,vt(T,C?C.data:void 0),{flushSync:A});let L=new AbortController,F=at(e.history,m,L.signal);if(O){let Y=await Pt(S,new URL(F.url).pathname,F.signal,u);if(Y.type==="aborted")return;if(Y.type==="error"){De(u,d,Y.error,{flushSync:A});return}else if(Y.matches)S=Y.matches,E=gt(S,m);else{De(u,d,me(404,{pathname:m}),{flushSync:A});return}}ae.set(u,L);let $=Ze,X=(await dt("loader",v,F,[E],S,u))[E.route.id];if(Be(X)&&(X=await sr(X,F.signal,!0)||X),ae.get(u)===L&&ae.delete(u),!F.signal.aborted){if(W.has(u)){Ie(u,ke(void 0));return}if(Xe(X))if(c>$){Ie(u,ke(void 0));return}else{M.add(u),await Ye(F,X,!1,{preventScrollReset:x});return}if(ge(X)){De(u,d,X.error);return}U(!Be(X),"Unhandled fetcher deferred data"),Ie(u,ke(X.data))}}async function Ye(u,d,m,E){let{submission:S,fetcherSubmission:O,preventScrollReset:A,replace:x}=E===void 0?{}:E;d.response.headers.has("X-Remix-Revalidate")&&(pe=!0);let T=d.response.headers.get("Location");U(T,"Expected a Location header on the redirect Response"),T=Nr(T,new URL(u.url),s);let C=lt(v.location,T,{_isRedirect:!0});if(r){let Y=!1;if(d.response.headers.has("X-Remix-Reload-Document"))Y=!0;else if(lr.test(T)){const re=e.history.createURL(T);Y=re.origin!==t.location.origin||Re(re.pathname,s)==null}if(Y){x?t.location.replace(T):t.location.assign(T);return}}G=null;let L=x===!0||d.response.headers.has("X-Remix-Replace")?Q.Replace:Q.Push,{formMethod:F,formAction:$,formEncType:se}=v.navigation;!S&&!O&&F&&$&&se&&(S=$r(v.navigation));let X=S||O;if(Oa.has(d.response.status)&&X&&be(X.formMethod))await Ve(L,C,{submission:Z({},X,{formAction:T}),preventScrollReset:A||te,enableViewTransition:m?le:void 0});else{let Y=Xt(C,S);await Ve(L,C,{overrideNavigation:Y,fetcherSubmission:O,preventScrollReset:A||te,enableViewTransition:m?le:void 0})}}async function dt(u,d,m,E,S,O){let A,x={};try{A=await ka(i,u,d,m,E,S,O,l,a)}catch(T){return E.forEach(C=>{x[C.route.id]={type:q.error,error:T}}),x}for(let[T,C]of Object.entries(A))if(Ka(C)){let L=C.result;x[T]={type:q.redirect,response:za(L,m,T,S,s,h.v7_relativeSplatPath)}}else x[T]=await Ba(C);return x}async function pr(u,d,m,E,S){let O=u.matches,A=dt("loader",u,S,m,d,null),x=Promise.all(E.map(async L=>{if(L.matches&&L.match&&L.controller){let $=(await dt("loader",u,at(e.history,L.path,L.controller.signal),[L.match],L.matches,L.key))[L.match.route.id];return{[L.key]:$}}else return Promise.resolve({[L.key]:{type:q.error,error:me(404,{pathname:L.path})}})})),T=await A,C=(await x).reduce((L,F)=>Object.assign(L,F),{});return await Promise.all([Ja(d,T,S.signal,O,u.loaderData),Ga(d,C,E)]),{loaderResults:T,fetcherResults:C}}function zt(){pe=!0,Te.push(...Wt()),j.forEach((u,d)=>{ae.has(d)&&Qe.add(d),Fe(d)})}function Ie(u,d,m){m===void 0&&(m={}),v.fetchers.set(u,d),de({fetchers:new Map(v.fetchers)},{flushSync:(m&&m.flushSync)===!0})}function De(u,d,m,E){E===void 0&&(E={});let S=Ge(v.matches,d);Rt(u),de({errors:{[S.route.id]:m},fetchers:new Map(v.fetchers)},{flushSync:(E&&E.flushSync)===!0})}function mr(u){return H.set(u,(H.get(u)||0)+1),W.has(u)&&W.delete(u),v.fetchers.get(u)||Ma}function Rt(u){let d=v.fetchers.get(u);ae.has(u)&&!(d&&d.state==="loading"&&R.has(u))&&Fe(u),j.delete(u),R.delete(u),M.delete(u),h.v7_fetcherPersist&&W.delete(u),Qe.delete(u),v.fetchers.delete(u)}function Nn(u){let d=(H.get(u)||0)-1;d<=0?(H.delete(u),W.add(u),h.v7_fetcherPersist||Rt(u)):H.set(u,d),de({fetchers:new Map(v.fetchers)})}function Fe(u){let d=ae.get(u);d&&(d.abort(),ae.delete(u))}function vr(u){for(let d of u){let m=mr(d),E=ke(m.data);v.fetchers.set(d,E)}}function gr(){let u=[],d=!1;for(let m of M){let E=v.fetchers.get(m);U(E,"Expected fetcher: "+m),E.state==="loading"&&(M.delete(m),u.push(m),d=!0)}return vr(u),d}function yr(u){let d=[];for(let[m,E]of R)if(E<u){let S=v.fetchers.get(m);U(S,"Expected fetcher: "+m),S.state==="loading"&&(Fe(m),R.delete(m),d.push(m))}return vr(d),d.length>0}function In(u,d){let m=v.blockers.get(u)||ot;return ce.get(u)!==d&&ce.set(u,d),m}function Er(u){v.blockers.delete(u),ce.delete(u)}function wt(u,d){let m=v.blockers.get(u)||ot;U(m.state==="unblocked"&&d.state==="blocked"||m.state==="blocked"&&d.state==="blocked"||m.state==="blocked"&&d.state==="proceeding"||m.state==="blocked"&&d.state==="unblocked"||m.state==="proceeding"&&d.state==="unblocked","Invalid blocker state transition: "+m.state+" -> "+d.state);let E=new Map(v.blockers);E.set(u,d),de({blockers:E})}function br(u){let{currentLocation:d,nextLocation:m,historyAction:E}=u;if(ce.size===0)return;ce.size>1&&ze(!1,"A router only supports one blocker at a time");let S=Array.from(ce.entries()),[O,A]=S[S.length-1],x=v.blockers.get(O);if(!(x&&x.state==="proceeding")&&A({currentLocation:d,nextLocation:m,historyAction:E}))return O}function $t(u){let d=me(404,{pathname:u}),m=f||o,{matches:E,route:S}=Br(m);return Wt(),{notFoundMatches:E,route:S,error:d}}function Wt(u){let d=[];return I.forEach((m,E)=>{(!u||u(E))&&(m.cancel(),d.push(E),I.delete(E))}),d}function Fn(u,d,m){if(w=u,_=d,P=m||null,!z&&v.navigation===qt){z=!0;let E=wr(v.location,v.matches);E!=null&&de({restoreScrollPosition:E})}return()=>{w=null,_=null,P=null}}function Rr(u,d){return P&&P(u,d.map(E=>tn(E,v.loaderData)))||u.key}function kn(u,d){if(w&&_){let m=Rr(u,d);w[m]=_()}}function wr(u,d){if(w){let m=Rr(u,d),E=w[m];if(typeof E=="number")return E}return null}function St(u,d,m){if(p)if(u){if(Object.keys(u[0].params).length>0)return{active:!0,matches:Dt(d,m,s,!0)}}else return{active:!0,matches:Dt(d,m,s,!0)||[]};return{active:!1,matches:null}}async function Pt(u,d,m,E){if(!p)return{type:"success",matches:u};let S=u;for(;;){let O=f==null,A=f||o,x=l;try{await p({signal:m,path:d,matches:S,fetcherKey:E,patch:(L,F)=>{m.aborted||Ar(L,F,A,x,a)}})}catch(L){return{type:"error",error:L,partialMatches:S}}finally{O&&!m.aborted&&(o=[...o])}if(m.aborted)return{type:"aborted"};let T=He(A,d,s);if(T)return{type:"success",matches:T};let C=Dt(A,d,s,!0);if(!C||S.length===C.length&&S.every((L,F)=>L.route.id===C[F].route.id))return{type:"success",matches:null};S=C}}function Hn(u){l={},f=Lt(u,a,void 0,l)}function Bn(u,d){let m=f==null;Ar(u,d,f||o,l,a),m&&(o=[...o],de({}))}return ye={get basename(){return s},get future(){return h},get state(){return v},get routes(){return o},get window(){return t},initialize:Bt,subscribe:Tn,enableScrollRestoration:Fn,navigate:dr,fetch:jn,revalidate:Dn,createHref:u=>e.history.createHref(u),encodeLocation:u=>e.history.encodeLocation(u),getFetcher:mr,deleteFetcher:Nn,dispose:xn,getBlocker:In,deleteBlocker:Er,patchRoutes:Bn,_internalFetchControllers:ae,_internalActiveDeferreds:I,_internalSetRoutes:Hn},ye}function Aa(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function tr(e,t,r,n,a,l,o,f){let s,i;if(o){s=[];for(let h of t)if(s.push(h),h.route.id===o){i=h;break}}else s=t,i=t[t.length-1];let p=Nt(a||".",At(s,l),Re(e.pathname,r)||e.pathname,f==="path");if(a==null&&(p.search=e.search,p.hash=e.hash),(a==null||a===""||a===".")&&i){let h=ur(p.search);if(i.route.index&&!h)p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index";else if(!i.route.index&&h){let b=new URLSearchParams(p.search),y=b.getAll("index");b.delete("index"),y.filter(P=>P).forEach(P=>b.append("index",P));let w=b.toString();p.search=w?"?"+w:""}}return n&&r!=="/"&&(p.pathname=p.pathname==="/"?r:Me([r,p.pathname])),je(p)}function Or(e,t,r,n){if(!n||!Aa(n))return{path:r};if(n.formMethod&&!Ya(n.formMethod))return{path:r,error:me(405,{method:n.formMethod})};let a=()=>({path:r,error:me(400,{type:"invalid-body"})}),l=n.formMethod||"get",o=e?l.toUpperCase():l.toLowerCase(),f=dn(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!be(o))return a();let b=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,w)=>{let[P,_]=w;return""+y+P+"="+_+`
|
|
19
|
-
`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:f,formEncType:n.formEncType,formData:void 0,json:void 0,text:b}}}else if(n.formEncType==="application/json"){if(!be(o))return a();try{let b=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:f,formEncType:n.formEncType,formData:void 0,json:b,text:void 0}}}catch{return a()}}}U(typeof FormData=="function","FormData is not available in this environment");let s,i;if(n.formData)s=nr(n.formData),i=n.formData;else if(n.body instanceof FormData)s=nr(n.body),i=n.body;else if(n.body instanceof URLSearchParams)s=n.body,i=Ir(s);else if(n.body==null)s=new URLSearchParams,i=new FormData;else try{s=new URLSearchParams(n.body),i=Ir(s)}catch{return a()}let p={formMethod:o,formAction:f,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(be(p.formMethod))return{path:r,submission:p};let h=we(r);return t&&h.search&&ur(h.search)&&s.append("index",""),h.search="?"+s,{path:je(h),submission:p}}function Mr(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(a=>a.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function jr(e,t,r,n,a,l,o,f,s,i,p,h,b,y,w,P){let _=P?ge(P[1])?P[1].error:P[1].data:void 0,z=e.createURL(t.location),D=e.createURL(a),B=r;l&&t.errors?B=Mr(r,Object.keys(t.errors)[0],!0):P&&ge(P[1])&&(B=Mr(r,P[0]));let K=P?P[1].statusCode:void 0,N=o&&K&&K>=400,ye=B.filter((J,te)=>{let{route:G}=J;if(G.lazy)return!0;if(G.loader==null)return!1;if(l)return rr(G,t.loaderData,t.errors);if(Na(t.loaderData,t.matches[te],J)||s.some(he=>he===J.route.id))return!0;let le=t.matches[te],ue=J;return Ur(J,Z({currentUrl:z,currentParams:le.params,nextUrl:D,nextParams:ue.params},n,{actionResult:_,actionStatus:K,defaultShouldRevalidate:N?!1:f||z.pathname+z.search===D.pathname+D.search||z.search!==D.search||cn(le,ue)}))}),v=[];return h.forEach((J,te)=>{if(l||!r.some(Ne=>Ne.route.id===J.routeId)||p.has(te))return;let G=He(y,J.path,w);if(!G){v.push({key:te,routeId:J.routeId,path:J.path,matches:null,match:null,controller:null});return}let le=t.fetchers.get(te),ue=gt(G,J.path),he=!1;b.has(te)?he=!1:i.has(te)?(i.delete(te),he=!0):le&&le.state!=="idle"&&le.data===void 0?he=f:he=Ur(ue,Z({currentUrl:z,currentParams:t.matches[t.matches.length-1].params,nextUrl:D,nextParams:r[r.length-1].params},n,{actionResult:_,actionStatus:K,defaultShouldRevalidate:N?!1:f})),he&&v.push({key:te,routeId:J.routeId,path:J.path,matches:G,match:ue,controller:new AbortController})}),[ye,v]}function rr(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function Na(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function cn(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ur(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Ar(e,t,r,n,a){var l;let o;if(e){let i=n[e];U(i,"No route found to patch children into: routeId = "+e),i.children||(i.children=[]),o=i.children}else o=r;let f=t.filter(i=>!o.some(p=>fn(i,p))),s=Lt(f,a,[e||"_","patch",String(((l=o)==null?void 0:l.length)||"0")],n);o.push(...s)}function fn(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(l=>fn(r,l))}):!1}async function Ia(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];U(a,"No route found in manifest");let l={};for(let o in n){let s=a[o]!==void 0&&o!=="hasErrorBoundary";ze(!s,'Route "'+a.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!s&&!ra.has(o)&&(l[o]=n[o])}Object.assign(a,l),Object.assign(a,Z({},t(a),{lazy:void 0}))}async function Fa(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,l,o)=>Object.assign(a,{[r[o].route.id]:l}),{})}async function ka(e,t,r,n,a,l,o,f,s,i){let p=l.map(y=>y.route.lazy?Ia(y.route,s,f):void 0),h=l.map((y,w)=>{let P=p[w],_=a.some(D=>D.route.id===y.route.id);return Z({},y,{shouldLoad:_,resolve:async D=>(D&&n.method==="GET"&&(y.route.lazy||y.route.loader)&&(_=!0),_?Ha(t,n,y,P,D,i):Promise.resolve({type:q.data,result:void 0}))})}),b=await e({matches:h,request:n,params:l[0].params,fetcherKey:o,context:i});try{await Promise.all(p)}catch{}return b}async function Ha(e,t,r,n,a,l){let o,f,s=i=>{let p,h=new Promise((w,P)=>p=P);f=()=>p(),t.signal.addEventListener("abort",f);let b=w=>typeof i!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):i({request:t,params:r.params,context:l},...w!==void 0?[w]:[]),y=(async()=>{try{return{type:"data",result:await(a?a(P=>b(P)):b())}}catch(w){return{type:"error",result:w}}})();return Promise.race([y,h])};try{let i=r.route[e];if(n)if(i){let p,[h]=await Promise.all([s(i).catch(b=>{p=b}),n]);if(p!==void 0)throw p;o=h}else if(await n,i=r.route[e],i)o=await s(i);else if(e==="action"){let p=new URL(t.url),h=p.pathname+p.search;throw me(405,{method:t.method,pathname:h,routeId:r.route.id})}else return{type:q.data,result:void 0};else if(i)o=await s(i);else{let p=new URL(t.url),h=p.pathname+p.search;throw me(404,{pathname:h})}U(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(i){return{type:q.error,result:i}}finally{f&&t.signal.removeEventListener("abort",f)}return o}async function Ba(e){let{result:t,type:r}=e;if(hn(t)){let h;try{let b=t.headers.get("Content-Type");b&&/\bapplication\/json\b/.test(b)?t.body==null?h=null:h=await t.json():h=await t.text()}catch(b){return{type:q.error,error:b}}return r===q.error?{type:q.error,error:new er(t.status,t.statusText,h),statusCode:t.status,headers:t.headers}:{type:q.data,data:h,statusCode:t.status,headers:t.headers}}if(r===q.error){if(zr(t)){var n,a;if(t.data instanceof Error){var l,o;return{type:q.error,error:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}}return{type:q.error,error:new er(((n=t.init)==null?void 0:n.status)||500,void 0,t.data),statusCode:ut(t)?t.status:void 0,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:q.error,error:t,statusCode:ut(t)?t.status:void 0}}if(Va(t)){var f,s;return{type:q.deferred,deferredData:t,statusCode:(f=t.init)==null?void 0:f.status,headers:((s=t.init)==null?void 0:s.headers)&&new Headers(t.init.headers)}}if(zr(t)){var i,p;return{type:q.data,data:t.data,statusCode:(i=t.init)==null?void 0:i.status,headers:(p=t.init)!=null&&p.headers?new Headers(t.init.headers):void 0}}return{type:q.data,data:t}}function za(e,t,r,n,a,l){let o=e.headers.get("Location");if(U(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!lr.test(o)){let f=n.slice(0,n.findIndex(s=>s.route.id===r)+1);o=tr(new URL(t.url),f,a,!0,o,l),e.headers.set("Location",o)}return e}function Nr(e,t,r){if(lr.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),l=Re(a.pathname,r)!=null;if(a.origin===t.origin&&l)return a.pathname+a.search+a.hash}return e}function at(e,t,r,n){let a=e.createURL(dn(t)).toString(),l={signal:r};if(n&&be(n.formMethod)){let{formMethod:o,formEncType:f}=n;l.method=o.toUpperCase(),f==="application/json"?(l.headers=new Headers({"Content-Type":f}),l.body=JSON.stringify(n.json)):f==="text/plain"?l.body=n.text:f==="application/x-www-form-urlencoded"&&n.formData?l.body=nr(n.formData):l.body=n.formData}return new Request(a,l)}function nr(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Ir(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function $a(e,t,r,n,a){let l={},o=null,f,s=!1,i={},p=r&&ge(r[1])?r[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let b=h.route.id,y=t[b];if(U(!Xe(y),"Cannot handle redirect results in processLoaderData"),ge(y)){let w=y.error;p!==void 0&&(w=p,p=void 0),o=o||{};{let P=Ge(e,b);o[P.route.id]==null&&(o[P.route.id]=w)}l[b]=void 0,s||(s=!0,f=ut(y.error)?y.error.status:500),y.headers&&(i[b]=y.headers)}else Be(y)?(n.set(b,y.deferredData),l[b]=y.deferredData.data,y.statusCode!=null&&y.statusCode!==200&&!s&&(f=y.statusCode),y.headers&&(i[b]=y.headers)):(l[b]=y.data,y.statusCode&&y.statusCode!==200&&!s&&(f=y.statusCode),y.headers&&(i[b]=y.headers))}),p!==void 0&&r&&(o={[r[0]]:p},l[r[0]]=void 0),{loaderData:l,errors:o,statusCode:f||200,loaderHeaders:i}}function Fr(e,t,r,n,a,l,o){let{loaderData:f,errors:s}=$a(t,r,n,o);return a.forEach(i=>{let{key:p,match:h,controller:b}=i,y=l[p];if(U(y,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(ge(y)){let w=Ge(e.matches,h?.route.id);s&&s[w.route.id]||(s=Z({},s,{[w.route.id]:y.error})),e.fetchers.delete(p)}else if(Xe(y))U(!1,"Unhandled fetcher revalidation redirect");else if(Be(y))U(!1,"Unhandled fetcher deferred data");else{let w=ke(y.data);e.fetchers.set(p,w)}}),{loaderData:f,errors:s}}function kr(e,t,r,n){let a=Z({},t);for(let l of r){let o=l.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(a[o]=t[o]):e[o]!==void 0&&l.route.loader&&(a[o]=e[o]),n&&n.hasOwnProperty(o))break}return a}function Hr(e){return e?ge(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ge(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function Br(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function me(e,t){let{pathname:r,routeId:n,method:a,type:l,message:o}=t===void 0?{}:t,f="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(f="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":l==="defer-action"?s="defer() is not supported in actions":l==="invalid-body"&&(s="Unable to encode submission body")):e===403?(f="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(f="Not Found",s='No route matches URL "'+r+'"'):e===405&&(f="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new er(e||500,f,new Error(s),!0)}function xt(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Xe(a))return{key:n,result:a}}}function dn(e){let t=typeof e=="string"?we(e):e;return je(Z({},t,{hash:""}))}function Wa(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ka(e){return hn(e.result)&&La.has(e.result.status)}function Be(e){return e.type===q.deferred}function ge(e){return e.type===q.error}function Xe(e){return(e&&e.type)===q.redirect}function zr(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Va(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function hn(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Ya(e){return Da.has(e.toLowerCase())}function be(e){return xa.has(e.toLowerCase())}async function Ja(e,t,r,n,a){let l=Object.entries(t);for(let o=0;o<l.length;o++){let[f,s]=l[o],i=e.find(b=>b?.route.id===f);if(!i)continue;let p=n.find(b=>b.route.id===i.route.id),h=p!=null&&!cn(p,i)&&(a&&a[i.route.id])!==void 0;Be(s)&&h&&await sr(s,r,!1).then(b=>{b&&(t[f]=b)})}}async function Ga(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:l,controller:o}=r[n],f=t[a];e.find(i=>i?.route.id===l)&&Be(f)&&(U(o,"Expected an AbortController for revalidating fetcher deferred result"),await sr(f,o.signal,!0).then(i=>{i&&(t[a]=i)}))}}async function sr(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:q.data,data:e.deferredData.unwrappedData}}catch(a){return{type:q.error,error:a}}return{type:q.data,data:e.deferredData.data}}}function ur(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function gt(e,t){let r=typeof t=="string"?we(t).search:t.search;if(e[e.length-1].route.index&&ur(r||""))return e[e.length-1];let n=ln(e);return n[n.length-1]}function $r(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:l,json:o}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(l!=null)return{formMethod:t,formAction:r,formEncType:n,formData:l,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function Xt(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function qa(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function vt(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Xa(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ke(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Qa(e,t){try{let r=e.sessionStorage.getItem(un);if(r){let n=JSON.parse(r);for(let[a,l]of Object.entries(n||{}))l&&Array.isArray(l)&&t.set(a,new Set(l||[]))}}catch{}}function Za(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(un,JSON.stringify(r))}catch(n){ze(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/**
|
|
20
|
-
* React Router v6.30.1
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Remix Software Inc.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
26
|
-
*
|
|
27
|
-
* @license MIT
|
|
28
|
-
*/function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$e.apply(this,arguments)}const ct=g.createContext(null),It=g.createContext(null),Mt=g.createContext(null),xe=g.createContext(null),ft=g.createContext(null),Se=g.createContext({outlet:null,matches:[],isDataRoute:!1}),pn=g.createContext(null);function mn(e,t){let{relative:r}=t===void 0?{}:t;We()||U(!1);let{basename:n,navigator:a}=g.useContext(xe),{hash:l,pathname:o,search:f}=Et(e,{relative:r}),s=o;return n!=="/"&&(s=o==="/"?n:Me([n,o])),a.createHref({pathname:s,search:f,hash:l})}function We(){return g.useContext(ft)!=null}function Ae(){return We()||U(!1),g.useContext(ft).location}function eo(){return g.useContext(ft).navigationType}function to(e){We()||U(!1);let{pathname:t}=Ae();return g.useMemo(()=>st(e,an(t)),[t,e])}function vn(e){g.useContext(xe).static||g.useLayoutEffect(e)}function Ft(){let{isDataRoute:e}=g.useContext(Se);return e?Ro():ro()}function ro(){We()||U(!1);let e=g.useContext(ct),{basename:t,future:r,navigator:n}=g.useContext(xe),{matches:a}=g.useContext(Se),{pathname:l}=Ae(),o=JSON.stringify(At(a,r.v7_relativeSplatPath)),f=g.useRef(!1);return vn(()=>{f.current=!0}),g.useCallback(function(i,p){if(p===void 0&&(p={}),!f.current)return;if(typeof i=="number"){n.go(i);return}let h=Nt(i,JSON.parse(o),l,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Me([t,h.pathname])),(p.replace?n.replace:n.push)(h,p.state,p)},[t,n,o,l,e])}const gn=g.createContext(null);function no(){return g.useContext(gn)}function yn(e){let t=g.useContext(Se).outlet;return t&&g.createElement(gn.Provider,{value:e},t)}function ao(){let{matches:e}=g.useContext(Se),t=e[e.length-1];return t?t.params:{}}function Et(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=g.useContext(xe),{matches:a}=g.useContext(Se),{pathname:l}=Ae(),o=JSON.stringify(At(a,n.v7_relativeSplatPath));return g.useMemo(()=>Nt(e,JSON.parse(o),l,r==="path"),[e,o,l,r])}function En(e,t){return cr(e,t)}function cr(e,t,r,n){We()||U(!1);let{navigator:a}=g.useContext(xe),{matches:l}=g.useContext(Se),o=l[l.length-1],f=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let i=Ae(),p;if(t){var h;let _=typeof t=="string"?we(t):t;s==="/"||(h=_.pathname)!=null&&h.startsWith(s)||U(!1),p=_}else p=i;let b=p.pathname||"/",y=b;if(s!=="/"){let _=s.replace(/^\//,"").split("/");y="/"+b.replace(/^\//,"").split("/").slice(_.length).join("/")}let w=He(e,{pathname:y}),P=bn(w&&w.map(_=>Object.assign({},_,{params:Object.assign({},f,_.params),pathname:Me([s,a.encodeLocation?a.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?s:Me([s,a.encodeLocation?a.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),l,r,n);return t&&P?g.createElement(ft.Provider,{value:{location:$e({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:Q.Pop}},P):P}function oo(){let e=wn(),t=ut(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),r?g.createElement("pre",{style:a},r):null,null)}const io=g.createElement(oo,null);class lo extends g.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?g.createElement(Se.Provider,{value:this.props.routeContext},g.createElement(pn.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function so(e){let{routeContext:t,match:r,children:n}=e,a=g.useContext(ct);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(Se.Provider,{value:t},n)}function bn(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var l;if(!r)return null;if(r.errors)e=r.matches;else if((l=n)!=null&&l.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,f=(a=r)==null?void 0:a.errors;if(f!=null){let p=o.findIndex(h=>h.route.id&&f?.[h.route.id]!==void 0);p>=0||U(!1),o=o.slice(0,Math.min(o.length,p+1))}let s=!1,i=-1;if(r&&n&&n.v7_partialHydration)for(let p=0;p<o.length;p++){let h=o[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(i=p),h.route.id){let{loaderData:b,errors:y}=r,w=h.route.loader&&b[h.route.id]===void 0&&(!y||y[h.route.id]===void 0);if(h.route.lazy||w){s=!0,i>=0?o=o.slice(0,i+1):o=[o[0]];break}}}return o.reduceRight((p,h,b)=>{let y,w=!1,P=null,_=null;r&&(y=f&&h.route.id?f[h.route.id]:void 0,P=h.route.errorElement||io,s&&(i<0&&b===0?(wo("route-fallback"),w=!0,_=null):i===b&&(w=!0,_=h.route.hydrateFallbackElement||null)));let z=t.concat(o.slice(0,b+1)),D=()=>{let B;return y?B=P:w?B=_:h.route.Component?B=g.createElement(h.route.Component,null):h.route.element?B=h.route.element:B=p,g.createElement(so,{match:h,routeContext:{outlet:p,matches:z,isDataRoute:r!=null},children:B})};return r&&(h.route.ErrorBoundary||h.route.errorElement||b===0)?g.createElement(lo,{location:r.location,revalidation:r.revalidation,component:P,error:y,children:D(),routeContext:{outlet:null,matches:z,isDataRoute:!0}}):D()},null)}var Rn=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Rn||{}),ve=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ve||{});function fr(e){let t=g.useContext(ct);return t||U(!1),t}function Ke(e){let t=g.useContext(It);return t||U(!1),t}function uo(e){let t=g.useContext(Se);return t||U(!1),t}function bt(e){let t=uo(),r=t.matches[t.matches.length-1];return r.route.id||U(!1),r.route.id}function co(){return bt(ve.UseRouteId)}function fo(){return Ke(ve.UseNavigation).navigation}function ho(){let e=fr(),t=Ke(ve.UseRevalidator);return g.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function po(){let{matches:e,loaderData:t}=Ke(ve.UseMatches);return g.useMemo(()=>e.map(r=>tn(r,t)),[e,t])}function mo(){let e=Ke(ve.UseLoaderData),t=bt(ve.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function vo(e){return Ke(ve.UseRouteLoaderData).loaderData[e]}function go(){let e=Ke(ve.UseActionData),t=bt(ve.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function wn(){var e;let t=g.useContext(pn),r=Ke(ve.UseRouteError),n=bt(ve.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Sn(){let e=g.useContext(Mt);return e?._data}function yo(){let e=g.useContext(Mt);return e?._error}let Eo=0;function bo(e){let{router:t,basename:r}=fr(),n=Ke(ve.UseBlocker),[a,l]=g.useState(""),o=g.useCallback(f=>{if(typeof e!="function")return!!e;if(r==="/")return e(f);let{currentLocation:s,nextLocation:i,historyAction:p}=f;return e({currentLocation:$e({},s,{pathname:Re(s.pathname,r)||s.pathname}),nextLocation:$e({},i,{pathname:Re(i.pathname,r)||i.pathname}),historyAction:p})},[r,e]);return g.useEffect(()=>{let f=String(++Eo);return l(f),()=>t.deleteBlocker(f)},[t]),g.useEffect(()=>{a!==""&&t.getBlocker(a,o)},[t,a,o]),a&&n.blockers.has(a)?n.blockers.get(a):ot}function Ro(){let{router:e}=fr(Rn.UseNavigateStable),t=bt(ve.UseNavigateStable),r=g.useRef(!1);return vn(()=>{r.current=!0}),g.useCallback(function(a,l){l===void 0&&(l={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,$e({fromRouteId:t},l)))},[e,t])}const Wr={};function wo(e,t,r){Wr[e]||(Wr[e]=!0)}function kt(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}const So="startTransition",jt=Zr[So];function Po(e){let{fallbackElement:t,router:r,future:n}=e,[a,l]=g.useState(r.state),{v7_startTransition:o}=n||{},f=g.useCallback(h=>{o&&jt?jt(()=>l(h)):l(h)},[l,o]);g.useLayoutEffect(()=>r.subscribe(f),[r,f]),g.useEffect(()=>{},[]);let s=g.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:h=>r.navigate(h),push:(h,b,y)=>r.navigate(h,{state:b,preventScrollReset:y?.preventScrollReset}),replace:(h,b,y)=>r.navigate(h,{replace:!0,state:b,preventScrollReset:y?.preventScrollReset})}),[r]),i=r.basename||"/",p=g.useMemo(()=>({router:r,navigator:s,static:!1,basename:i}),[r,s,i]);return g.useEffect(()=>kt(n,r.future),[r,n]),g.createElement(g.Fragment,null,g.createElement(ct.Provider,{value:p},g.createElement(It.Provider,{value:a},g.createElement(Ht,{basename:i,location:a.location,navigationType:a.historyAction,navigator:s,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?g.createElement(_o,{routes:r.routes,future:r.future,state:a}):t))),null)}function _o(e){let{routes:t,future:r,state:n}=e;return cr(t,void 0,n,r)}function Co(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:l}=e,o=g.useRef();o.current==null&&(o.current=en({initialEntries:n,initialIndex:a,v5Compat:!0}));let f=o.current,[s,i]=g.useState({action:f.action,location:f.location}),{v7_startTransition:p}=l||{},h=g.useCallback(b=>{p&&jt?jt(()=>i(b)):i(b)},[i,p]);return g.useLayoutEffect(()=>f.listen(h),[f,h]),g.useEffect(()=>kt(l),[l]),g.createElement(Ht,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:f,future:l})}function xo(e){let{to:t,replace:r,state:n,relative:a}=e;We()||U(!1);let{future:l,static:o}=g.useContext(xe),{matches:f}=g.useContext(Se),{pathname:s}=Ae(),i=Ft(),p=Nt(t,At(f,l.v7_relativeSplatPath),s,a==="path"),h=JSON.stringify(p);return g.useEffect(()=>i(JSON.parse(h),{replace:r,state:n,relative:a}),[i,h,a,r,n]),null}function To(e){return yn(e.context)}function Pn(e){U(!1)}function Ht(e){let{basename:t="/",children:r=null,location:n,navigationType:a=Q.Pop,navigator:l,static:o=!1,future:f}=e;We()&&U(!1);let s=t.replace(/^\/*/,"/"),i=g.useMemo(()=>({basename:s,navigator:l,static:o,future:$e({v7_relativeSplatPath:!1},f)}),[s,f,l,o]);typeof n=="string"&&(n=we(n));let{pathname:p="/",search:h="",hash:b="",state:y=null,key:w="default"}=n,P=g.useMemo(()=>{let _=Re(p,s);return _==null?null:{location:{pathname:_,search:h,hash:b,state:y,key:w},navigationType:a}},[s,p,h,b,y,w,a]);return P==null?null:g.createElement(xe.Provider,{value:i},g.createElement(ft.Provider,{children:r,value:P}))}function Do(e){let{children:t,location:r}=e;return En(yt(t),r)}function Lo(e){let{children:t,errorElement:r,resolve:n}=e;return g.createElement(Mo,{resolve:n,errorElement:r},g.createElement(jo,null,t))}var Ee=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(Ee||{});const Oo=new Promise(()=>{});class Mo extends g.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){console.error("<Await> caught the following error during render",t,r)}render(){let{children:t,errorElement:r,resolve:n}=this.props,a=null,l=Ee.pending;if(!(n instanceof Promise))l=Ee.success,a=Promise.resolve(),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_data",{get:()=>n});else if(this.state.error){l=Ee.error;let o=this.state.error;a=Promise.reject().catch(()=>{}),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_error",{get:()=>o})}else n._tracked?(a=n,l="_error"in a?Ee.error:"_data"in a?Ee.success:Ee.pending):(l=Ee.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),a=n.then(o=>Object.defineProperty(n,"_data",{get:()=>o}),o=>Object.defineProperty(n,"_error",{get:()=>o})));if(l===Ee.error&&a._error instanceof Ot)throw Oo;if(l===Ee.error&&!r)throw a._error;if(l===Ee.error)return g.createElement(Mt.Provider,{value:a,children:r});if(l===Ee.success)return g.createElement(Mt.Provider,{value:a,children:t});throw a}}function jo(e){let{children:t}=e,r=Sn(),n=typeof t=="function"?t(r):t;return g.createElement(g.Fragment,null,n)}function yt(e,t){t===void 0&&(t=[]);let r=[];return g.Children.forEach(e,(n,a)=>{if(!g.isValidElement(n))return;let l=[...t,a];if(n.type===g.Fragment){r.push.apply(r,yt(n.props.children,l));return}n.type!==Pn&&U(!1),!n.props.index||!n.props.children||U(!1);let o={id:n.props.id||l.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=yt(n.props.children,l)),r.push(o)}),r}function Uo(e){return bn(e)}function _n(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:g.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:g.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:g.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function Ao(e,t){return Ua({basename:t?.basename,future:$e({},t?.future,{v7_prependBasename:!0}),history:en({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,mapRouteProperties:_n,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation}).initialize()}const Zo=Object.freeze(Object.defineProperty({__proto__:null,AbortedDeferredError:Ot,Await:Lo,MemoryRouter:Co,Navigate:xo,get NavigationType(){return Q},Outlet:To,Route:Pn,Router:Ht,RouterProvider:Po,Routes:Do,UNSAFE_DataRouterContext:ct,UNSAFE_DataRouterStateContext:It,UNSAFE_LocationContext:ft,UNSAFE_NavigationContext:xe,UNSAFE_RouteContext:Se,UNSAFE_logV6DeprecationWarnings:kt,UNSAFE_mapRouteProperties:_n,UNSAFE_useRouteId:co,UNSAFE_useRoutesImpl:cr,createMemoryRouter:Ao,createPath:je,createRoutesFromChildren:yt,createRoutesFromElements:yt,defer:Pa,generatePath:pa,isRouteErrorResponse:ut,json:ba,matchPath:st,matchRoutes:He,parsePath:we,redirect:ir,redirectDocument:_a,renderMatches:Uo,replace:Ca,resolvePath:on,useActionData:go,useAsyncError:yo,useAsyncValue:Sn,useBlocker:bo,useHref:mn,useInRouterContext:We,useLoaderData:mo,useLocation:Ae,useMatch:to,useMatches:po,useNavigate:Ft,useNavigation:fo,useNavigationType:eo,useOutlet:yn,useOutletContext:no,useParams:ao,useResolvedPath:Et,useRevalidator:ho,useRouteError:wn,useRouteLoaderData:vo,useRoutes:En},Symbol.toStringTag,{value:"Module"}));/**
|
|
29
|
-
* React Router DOM v6.30.1
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Remix Software Inc.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
35
|
-
*
|
|
36
|
-
* @license MIT
|
|
37
|
-
*/function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ut.apply(this,arguments)}function Cn(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,l;for(l=0;l<n.length;l++)a=n[l],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function No(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Io(e,t){return e.button===0&&(!t||t==="_self")&&!No(e)}function ar(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function Fo(e,t){let r=ar(e);return t&&t.forEach((n,a)=>{r.has(a)||t.getAll(a).forEach(l=>{r.append(a,l)})}),r}const ko=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ho=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Bo="6";try{window.__reactRouterVersion=Bo}catch{}const zo=g.createContext({isTransitioning:!1}),$o="startTransition",Kr=Zr[$o];function ei(e){let{basename:t,children:r,future:n,window:a}=e,l=g.useRef();l.current==null&&(l.current=Zn({window:a,v5Compat:!0}));let o=l.current,[f,s]=g.useState({action:o.action,location:o.location}),{v7_startTransition:i}=n||{},p=g.useCallback(h=>{i&&Kr?Kr(()=>s(h)):s(h)},[s,i]);return g.useLayoutEffect(()=>o.listen(p),[o,p]),g.useEffect(()=>kt(n),[n]),g.createElement(Ht,{basename:t,children:r,location:f.location,navigationType:f.action,navigator:o,future:n})}const Wo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ko=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vo=g.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:l,replace:o,state:f,target:s,to:i,preventScrollReset:p,viewTransition:h}=t,b=Cn(t,ko),{basename:y}=g.useContext(xe),w,P=!1;if(typeof i=="string"&&Ko.test(i)&&(w=i,Wo))try{let B=new URL(window.location.href),K=i.startsWith("//")?new URL(B.protocol+i):new URL(i),N=Re(K.pathname,y);K.origin===B.origin&&N!=null?i=N+K.search+K.hash:P=!0}catch{}let _=mn(i,{relative:a}),z=Jo(i,{replace:o,state:f,target:s,preventScrollReset:p,relative:a,viewTransition:h});function D(B){n&&n(B),B.defaultPrevented||z(B)}return g.createElement("a",Ut({},b,{href:w||_,onClick:P||l?n:D,ref:r,target:s}))}),ti=g.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:a=!1,className:l="",end:o=!1,style:f,to:s,viewTransition:i,children:p}=t,h=Cn(t,Ho),b=Et(s,{relative:h.relative}),y=Ae(),w=g.useContext(It),{navigator:P,basename:_}=g.useContext(xe),z=w!=null&&Go(b)&&i===!0,D=P.encodeLocation?P.encodeLocation(b).pathname:b.pathname,B=y.pathname,K=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;a||(B=B.toLowerCase(),K=K?K.toLowerCase():null,D=D.toLowerCase()),K&&_&&(K=Re(K,_)||K);const N=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let ye=B===D||!o&&B.startsWith(D)&&B.charAt(N)==="/",v=K!=null&&(K===D||!o&&K.startsWith(D)&&K.charAt(D.length)==="/"),J={isActive:ye,isPending:v,isTransitioning:z},te=ye?n:void 0,G;typeof l=="function"?G=l(J):G=[l,ye?"active":null,v?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let le=typeof f=="function"?f(J):f;return g.createElement(Vo,Ut({},h,{"aria-current":te,className:G,ref:r,style:le,to:s,viewTransition:i}),typeof p=="function"?p(J):p)});var or;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(or||(or={}));var Vr;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Vr||(Vr={}));function Yo(e){let t=g.useContext(ct);return t||U(!1),t}function Jo(e,t){let{target:r,replace:n,state:a,preventScrollReset:l,relative:o,viewTransition:f}=t===void 0?{}:t,s=Ft(),i=Ae(),p=Et(e,{relative:o});return g.useCallback(h=>{if(Io(h,r)){h.preventDefault();let b=n!==void 0?n:je(i)===je(p);s(e,{replace:b,state:a,preventScrollReset:l,relative:o,viewTransition:f})}},[i,s,p,n,a,r,e,l,o,f])}function ri(e){let t=g.useRef(ar(e)),r=g.useRef(!1),n=Ae(),a=g.useMemo(()=>Fo(n.search,r.current?null:t.current),[n.search]),l=Ft(),o=g.useCallback((f,s)=>{const i=ar(typeof f=="function"?f(a):f);r.current=!0,l("?"+i,s)},[l,a]);return[a,o]}function Go(e,t){t===void 0&&(t={});let r=g.useContext(zo);r==null&&U(!1);let{basename:n}=Yo(or.useViewTransitionState),a=Et(e,{relative:t.relative});if(!r.isTransitioning)return!1;let l=Re(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=Re(r.nextLocation.pathname,n)||r.nextLocation.pathname;return st(a.pathname,o)!=null||st(a.pathname,l)!=null}export{ei as B,Vo as L,xo as N,Zr as R,Xn as a,Qo as b,Qn as c,Qr as d,Xo as e,qo as f,Yr as g,qn as h,Ft as i,ao as j,Ae as k,Do as l,Pn as m,ti as n,st as o,Vt as p,g as r,Zo as t,ri as u};
|