decocms 2.380.0 → 2.380.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-B0Z1aEKj.js → AlertCircle-BzIN-hAd.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CgeUbZvf.js → ArrowUpRight-B9FXytd1.js} +1 -1
- package/dist/client/assets/{Check-MlpENWKP.js → Check-BysbYgb9.js} +1 -1
- package/dist/client/assets/{CheckCircle-CZTgMULH.js → CheckCircle-Dya7U8Bj.js} +1 -1
- package/dist/client/assets/{ChevronDown-JjHvfiWQ.js → ChevronDown-1VblYmJK.js} +1 -1
- package/dist/client/assets/{ChevronRight-BZeT1F0R.js → ChevronRight-WpPB7NkQ.js} +1 -1
- package/dist/client/assets/{ChevronUp-ICtU7cpL.js → ChevronUp-B_t9-_yk.js} +1 -1
- package/dist/client/assets/{Container-CEyQXIQ6.js → Container-D6_czybl.js} +1 -1
- package/dist/client/assets/{DotsVertical-ClF8y57s.js → DotsVertical-DyARI6Lm.js} +1 -1
- package/dist/client/assets/{FilterLines-DDu5cfpm.js → FilterLines-ChfP-3Vx.js} +1 -1
- package/dist/client/assets/{HardDrive-C-DbNgL5.js → HardDrive-DzjKehK5.js} +1 -1
- package/dist/client/assets/{Key01-_5Ayft0F.js → Key01-BJzJJ1Ct.js} +1 -1
- package/dist/client/assets/{LinkExternal01-B3p-y3c4.js → LinkExternal01-DqJZz9de.js} +1 -1
- package/dist/client/assets/{Lock01-Bo_vsZ-6.js → Lock01-BtOYqouR.js} +1 -1
- package/dist/client/assets/{Monitor01-CFcpc8t7.js → Monitor01-JZEgoBKI.js} +1 -1
- package/dist/client/assets/{Palette-UBUV4ctW.js → Palette-D42GMWxf.js} +1 -1
- package/dist/client/assets/{Play-CtLh36Ha.js → Play-BzD_CIcW.js} +1 -1
- package/dist/client/assets/{Plus-CpxxQ00L.js → Plus-CnB5MfnT.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-3N_Hoj3y.js → RefreshCcw01-DG5ywY9k.js} +1 -1
- package/dist/client/assets/{SearchMd-BQj3ZrBX.js → SearchMd-B-S6dU7e.js} +1 -1
- package/dist/client/assets/{Settings02-qQU11XSz.js → Settings02-C--TgvN0.js} +1 -1
- package/dist/client/assets/{Shield01-D0JCd7gY.js → Shield01-BrMRetGi.js} +1 -1
- package/dist/client/assets/{Star01-B8Dq-kvX.js → Star01-DkecmRzu.js} +1 -1
- package/dist/client/assets/{Stars02-CUfpLrnw.js → Stars02-BYcdkCdP.js} +1 -1
- package/dist/client/assets/{Sun-BaoE6ZcJ.js → Sun-Bmw40iUn.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-4GR_P89t.js → SwitchHorizontal01-lQ0hOI8A.js} +1 -1
- package/dist/client/assets/{Tool01-B7MLORDX.js → Tool01-CVD2hM-M.js} +1 -1
- package/dist/client/assets/{Trash01-BzsL-tQa.js → Trash01-B8xn8-br.js} +1 -1
- package/dist/client/assets/{Upload01-EkXJDY3d.js → Upload01-CkSPNTyO.js} +1 -1
- package/dist/client/assets/{User01-BTW4N5Zh.js → User01-Sfa_yoWn.js} +1 -1
- package/dist/client/assets/{Users01-AtBu4WAZ.js → Users01-CLRORWgo.js} +1 -1
- package/dist/client/assets/{Users03-CLAXXefO.js → Users03-pZFlaYWV.js} +1 -1
- package/dist/client/assets/{X-BvH8D5tO.js → X-pCTFzTM8.js} +1 -1
- package/dist/client/assets/{XCircle-CI3iZwze.js → XCircle-NFZmSh1M.js} +1 -1
- package/dist/client/assets/{XClose-w1nSoTzi.js → XClose-DKbNenxU.js} +1 -1
- package/dist/client/assets/{Zap-BSOUi59K.js → Zap-DXdvr1ea.js} +1 -1
- package/dist/client/assets/{ZapSquare-DjLwyjob.js → ZapSquare-BGSTxW0S.js} +1 -1
- package/dist/client/assets/{accordion-C0rnFqYW.js → accordion-Bymus3R1.js} +1 -1
- package/dist/client/assets/add-section-modal-Cdf3Ytuv.js +1 -0
- package/dist/client/assets/{agent-icon-Djygj91w.js → agent-icon-BYVjPXkn.js} +1 -1
- package/dist/client/assets/{agent-icons-YGDmpXJn.js → agent-icons-R3QAywyk.js} +1 -1
- package/dist/client/assets/{agents-list-DetE43Ib.js → agents-list-CcXnD9PS.js} +1 -1
- package/dist/client/assets/ai-providers-C8uRE05q.js +1 -0
- package/dist/client/assets/{alert-BPmD5LJp.js → alert-D0sP9-sK.js} +1 -1
- package/dist/client/assets/{alert-dialog-s7Fm9w3p.js → alert-dialog-C6ls6jDk.js} +2 -2
- package/dist/client/assets/{auth-catchall-o10U7cQc.js → auth-catchall-BiDv8K0T.js} +1 -1
- package/dist/client/assets/{auth-split-layout-D4I0hO7D.js → auth-split-layout-CzP_T5hx.js} +1 -1
- package/dist/client/assets/{automation-list-row-BqLemcmF.js → automation-list-row-DiJaHAzM.js} +1 -1
- package/dist/client/assets/{automations-Dn1ZgH32.js → automations-BYZ7MVDy.js} +1 -1
- package/dist/client/assets/{avatar-CZ354Xnr.js → avatar-DrcQsyKV.js} +1 -1
- package/dist/client/assets/{badge-1tXE_fIc.js → badge-1mnjZwGj.js} +1 -1
- package/dist/client/assets/{brand-context-DXd7UyRk.js → brand-context-BWUtcphc.js} +1 -1
- package/dist/client/assets/{calendar-Dy-DNQJC.js → calendar-C47LPuKa.js} +1 -1
- package/dist/client/assets/{card-DAu_2h7K.js → card-D3SfbPfC.js} +1 -1
- package/dist/client/assets/{chat-context-CsfLZb7z.js → chat-context-Byla5mTy.js} +7 -7
- package/dist/client/assets/{checkbox-CYu7hV3X.js → checkbox-bQXqn5oI.js} +1 -1
- package/dist/client/assets/{cli-auth-success-C_XhTbkx.js → cli-auth-success-DqkJGjQs.js} +1 -1
- package/dist/client/assets/{collection-detail-BhrYRt8L.js → collection-detail-DxeN2fci.js} +1 -1
- package/dist/client/assets/{collection-display-button-D9m50MGP.js → collection-display-button-DpCq5Apy.js} +1 -1
- package/dist/client/assets/{collection-search-Dkwn0UN-.js → collection-search-Cz4jVqaH.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CDDmwgsw.js → collection-table-wrapper-C7yfcc4Q.js} +1 -1
- package/dist/client/assets/{collection-tabs-Vv42Vngi.js → collection-tabs-08mkTCKs.js} +1 -1
- package/dist/client/assets/{collections-SxrMDFX2.js → collections-DGVTnNWT.js} +1 -1
- package/dist/client/assets/{command-M7Tv2fm6.js → command-C9s6mvQg.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-ChfUjPbN.js → connect-desktop-dialog-B84poiBi.js} +1 -1
- package/dist/client/assets/{connection-card-DdIWvKQ8.js → connection-card-CY6UIryq.js} +1 -1
- package/dist/client/assets/{connection-detail-BkhtJXTy.js → connection-detail-DyYYuIzV.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CVkfKoDY.js → connection-form-helpers-aKyBJojx.js} +1 -1
- package/dist/client/assets/{connections-mvOMgCdw.js → connections-CJ4ZFCE_.js} +1 -1
- package/dist/client/assets/{constants-Cj4DjMBp.js → constants-C-AlmdnL.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DzbybHvN.js → decopilot-sse-pool-C_CrId0I.js} +1 -1
- package/dist/client/assets/{dialog-BPpL51GT.js → dialog-BK-JSUWy.js} +1 -1
- package/dist/client/assets/{domain-settings-C83wnjpF.js → domain-settings-CBfgCT92.js} +1 -1
- package/dist/client/assets/{drawer-UF1oWct7.js → drawer-CeY-KOQr.js} +1 -1
- package/dist/client/assets/{dropdown-menu-7iWxSzcv.js → dropdown-menu-D3_FRDik.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BJGFR1sh.js → dynamic-plugin-layout-DCA5GFIr.js} +1 -1
- package/dist/client/assets/{empty-state-388nxSyW.js → empty-state-CMkCTYSw.js} +1 -1
- package/dist/client/assets/{empty-state-CU10WAsQ.js → empty-state-CiPqh7hT.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BoDOc-Dx.js → extract-connection-data-QqanSyQQ.js} +1 -1
- package/dist/client/assets/features-Cei0keTD.js +1 -0
- package/dist/client/assets/file-explorer-CQM8aNf7.js +2 -0
- package/dist/client/assets/{files-CRdQ2qx1.js → files-CxRgg-Jb.js} +1 -1
- package/dist/client/assets/{form-BODe9LPK.js → form-CBTSgvad.js} +1 -1
- package/dist/client/assets/general-ChqUzqsP.js +1 -0
- package/dist/client/assets/{generate-id-DqhQrbZP.js → generate-id-rkempyJw.js} +1 -1
- package/dist/client/assets/{github-repo-picker-DWD5SN99.js → github-repo-picker-BfTvKWHr.js} +1 -1
- package/dist/client/assets/{hover-card-DU61KLDP.js → hover-card-CMoCeYyr.js} +1 -1
- package/dist/client/assets/{index-kI2arE7S.js → index-BabLzXbP.js} +1 -1
- package/dist/client/assets/{index-BSOtJUhx.js → index-BgiI4ZxM.js} +4 -4
- package/dist/client/assets/{index-D3Yhkg2G.js → index-C2FWvcUf.js} +1 -1
- package/dist/client/assets/{index-DSFCPjs1.js → index-CYAV5JQw.js} +3 -3
- package/dist/client/assets/{index-pIlTviXZ.js → index-Ca-qE9hj.js} +1 -1
- package/dist/client/assets/{index-D-Ox4LhG.js → index-CdGWl6_V.js} +5 -5
- package/dist/client/assets/{index-GHqhZViG.js → index-CvJGKkpm.js} +1 -1
- package/dist/client/assets/{index-D67xlBv6.js → index-D2sjymmp.js} +1 -1
- package/dist/client/assets/index-DHL9MFaW.js +1 -0
- package/dist/client/assets/{index-DwVd3yR_.js → index-DJMOcMdu.js} +1 -1
- package/dist/client/assets/{index-3kpgnECy.js → index-DPGx7sM5.js} +1 -1
- package/dist/client/assets/index-Db0YUhgn.js +1 -0
- package/dist/client/assets/{index-DfNamyqU.js → index-DjDisTiK.js} +1 -1
- package/dist/client/assets/{index-Byj3frQk.js → index-Duv8iFwd.js} +1 -1
- package/dist/client/assets/index-M93DCnZh.css +1 -0
- package/dist/client/assets/index-SD835vpA.js +1 -0
- package/dist/client/assets/{infiniteQueryObserver-BqeUtT_x.js → infiniteQueryObserver-CvcbTCzk.js} +1 -1
- package/dist/client/assets/{input-BZndmrR2.js → input-D6gnYotp.js} +1 -1
- package/dist/client/assets/{integration-icon-BV9UPY-j.js → integration-icon-RPSJig_v.js} +1 -1
- package/dist/client/assets/{label-CqPRkrlt.js → label-DtJYSZJB.js} +1 -1
- package/dist/client/assets/{layout-D6569l80.js → layout-DN3e9AjR.js} +1 -1
- package/dist/client/assets/{login-BrjqfruI.js → login-DCm1I5uh.js} +1 -1
- package/dist/client/assets/{members-BK9vhliY.js → members-Dlsy_Jbh.js} +1 -1
- package/dist/client/assets/{monaco-editor-Dvm2dn34.js → monaco-editor-D3wEhcbN.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-P9WK1Eub.js → monitoring-stats-row-D__sLevK.js} +1 -1
- package/dist/client/assets/{oauth-callback-DNQyVrA4.js → oauth-callback-CienXiq4.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-8n7wua_J.js → oauth-callback-ai-provider-D62PzASM.js} +1 -1
- package/dist/client/assets/{onboarding-BXZxw1PA.js → onboarding-BiSeyp1L.js} +1 -1
- package/dist/client/assets/{org-layout-Dpf8xJ0K.js → org-layout-DrIxFkkl.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-DFdNNNj_.js → org-plugin-layout-D_8PfeyI.js} +1 -1
- package/dist/client/assets/{pair-DhXAwSom.js → pair-xlnvFc4B.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BFLQdsKv.js → plugin-empty-state-Cbptz82z.js} +1 -1
- package/dist/client/assets/{plugin-header-BHp06mc6.js → plugin-header-wKILHxzj.js} +1 -1
- package/dist/client/assets/{plugin-layout-qm3BEG46.js → plugin-layout-DXXATAwu.js} +1 -1
- package/dist/client/assets/{popover-DLuzdKTb.js → popover-BnKSOyTy.js} +1 -1
- package/dist/client/assets/{profile-Cc_w8fow.js → profile-DCvQmwIT.js} +1 -1
- package/dist/client/assets/{project-app-view-BkG_zwE6.js → project-app-view-CESMSLZy.js} +1 -1
- package/dist/client/assets/registry-BUapxfDk.js +2 -0
- package/dist/client/assets/{registry-layout-BYSA5ym7.js → registry-layout-B4r0tYkw.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DgJGTfg7.js → required-auth-layout-DnXJ120Y.js} +1 -1
- package/dist/client/assets/{reset-password-BS4hJPw5.js → reset-password-DeSIFr_Y.js} +1 -1
- package/dist/client/assets/{roles-Cfh7nGNs.js → roles-DpUGXWnF.js} +1 -1
- package/dist/client/assets/{scroll-area-BvDLuAYL.js → scroll-area-BI9gkSrD.js} +1 -1
- package/dist/client/assets/{search-input-C08Kjtqy.js → search-input-BcqUF5eF.js} +1 -1
- package/dist/client/assets/{secrets-CaRFVe-l.js → secrets-ChtarfZF.js} +1 -1
- package/dist/client/assets/sections-editor-_u7kob2B.js +2 -0
- package/dist/client/assets/{select-C2bl09s6.js → select-BP_nsDBm.js} +1 -1
- package/dist/client/assets/{settings-layout-DqSj9nkj.js → settings-layout-DaGY3SeQ.js} +1 -1
- package/dist/client/assets/{settings-section-7OAoL26u.js → settings-section-yCGoMbME.js} +1 -1
- package/dist/client/assets/{sheet-C0JlxbUD.js → sheet-D2nlKjIX.js} +1 -1
- package/dist/client/assets/{shell-controls-28BPkeKt.js → shell-controls-BtsoIT18.js} +1 -1
- package/dist/client/assets/{shell-layout-PUWh0yKq.js → shell-layout-DXlDoddI.js} +1 -1
- package/dist/client/assets/{sidebar-DA0tkEbw.js → sidebar-BU8HLagj.js} +1 -1
- package/dist/client/assets/{skeleton-0UEjhJjM.js → skeleton-fjg5dFeT.js} +1 -1
- package/dist/client/assets/sortable.esm-ByE39WZB.js +5 -0
- package/dist/client/assets/{spinner-Cb0j3I21.js → spinner-PuN3GaG8.js} +1 -1
- package/dist/client/assets/{sso-ClQaSmKv.js → sso-CDouAEMV.js} +1 -1
- package/dist/client/assets/{store-BZdkFmV_.js → store-BIf7SHc_.js} +1 -1
- package/dist/client/assets/store-registry-Bawa4wUK.js +2 -0
- package/dist/client/assets/{switch-B04nUSH5.js → switch-BialXaLx.js} +1 -1
- package/dist/client/assets/{tab-id-BntKrMWY.js → tab-id-B467B0we.js} +1 -1
- package/dist/client/assets/{table-BDwHvLiG.js → table-Bhjg8KgX.js} +1 -1
- package/dist/client/assets/{tabs-DzReGrow.js → tabs-BTsFk6QR.js} +1 -1
- package/dist/client/assets/{task-status-Cj0tj3El.js → task-status-DepMErZX.js} +1 -1
- package/dist/client/assets/{textarea-C_Mh_vEe.js → textarea-CbwoRR6a.js} +1 -1
- package/dist/client/assets/{toggle-group-k478ZJn4.js → toggle-group-CDNHQa34.js} +1 -1
- package/dist/client/assets/{toolbar-DosjpUnK.js → toolbar-DkwwdBPK.js} +1 -1
- package/dist/client/assets/{tools-list-D89Vl_vl.js → tools-list-B6HhpJOX.js} +1 -1
- package/dist/client/assets/{tooltip-R0bzufTC.js → tooltip-DetRXJFz.js} +1 -1
- package/dist/client/assets/{types-8e3YNWto.js → types-C7NKjPQf.js} +6 -6
- package/dist/client/assets/{use-ai-providers-BfaW7CT3.js → use-ai-providers-BjxFdfU5.js} +1 -1
- package/dist/client/assets/{use-collections-BPN1TZC8.js → use-collections-CPXS-2B0.js} +1 -1
- package/dist/client/assets/{use-connection-BQILEBSR.js → use-connection-BIQbXjrS.js} +1 -1
- package/dist/client/assets/{use-copy-DNpwLzzK.js → use-copy-D3-AAZhX.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BGUZAvl8.js → use-create-virtual-mcp-COti1xCa.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-rtKgX5Kv.js → use-debounced-autosave-8oPmTQOH.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CsYQx3ee.js → use-delete-connection-DHCf3Ho-.js} +1 -1
- package/dist/client/assets/{use-file-configs-Bu_w_gpr.js → use-file-configs-DFxECEF8.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-By7R4G9o.js → use-infinite-scroll-CgCKX1bV.js} +1 -1
- package/dist/client/assets/{use-list-state-BSEiepIS.js → use-list-state-Cg2qbdFo.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DurUYfcC.js → use-mcp-prompts-D1zC80rK.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DziamXOr.js → use-mcp-tools-BqMyVr7G.js} +1 -1
- package/dist/client/assets/{use-members-0tjk004U.js → use-members-Di6NcEAy.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-MrVMYcPd.js → use-navigate-to-agent-COc0-wBS.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-ClvQP_ly.js → use-org-auth-client-BAWZfHEy.js} +1 -1
- package/dist/client/assets/{use-org-sso-DTRiyYQa.js → use-org-sso-DfMHJns6.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C0wRkCvp.js → use-organization-roles-CQqin2Hy.js} +1 -1
- package/dist/client/assets/use-organization-settings-Bx4kul7E.js +1 -0
- package/dist/client/assets/{use-registry-connections-DBhp-fE9.js → use-registry-connections-DwMLmmYR.js} +1 -1
- package/dist/client/assets/{use-secrets-BzhtgNOS.js → use-secrets-BiiHFW7r.js} +1 -1
- package/dist/client/assets/{use-status-sounds-C9gqwRSV.js → use-status-sounds-CLplMWhZ.js} +1 -1
- package/dist/client/assets/{use-view-mode-BPu2W2AF.js → use-view-mode-BrE98v7l.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DrDcjvou.js → use-virtual-mcp-i7hnPGn9.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-tD-DkA0J.js +1 -0
- package/dist/client/assets/{useRouterState-i2qqY9DC.js → useRouterState-DjZRiX0H.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CL8PI37B.js +1 -0
- package/dist/client/assets/{user-BaPKget0.js → user-CdkS3MKK.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Brl7GiGP.js → view-mode-toggle-dbsShquT.js} +1 -1
- package/dist/client/assets/{workflow-B2VMz9gG.js → workflow-BuvQYBnd.js} +1 -1
- package/dist/client/assets/workflow-detail-B-fsShL4.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +265 -265
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js +2 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-browser-http-options.js +2 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-browser-http-options.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-http-options.d.ts +4 -0
- package/dist/server/node_modules/@opentelemetry/{core/build/esnext/common/timer-util.js → otlp-exporter-base/build/esm/configuration/convert-legacy-http-options.js} +6 -8
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-http-options.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-node-http-options.js +2 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/convert-legacy-node-http-options.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/create-legacy-browser-delegate.js +2 -7
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/create-legacy-browser-delegate.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/legacy-base-configuration.d.ts +26 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/legacy-base-configuration.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.d.ts +2 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.js +9 -9
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-http-configuration.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.d.ts +2 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/shared-configuration.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/export-response.d.ts +1 -0
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/export-response.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/index-browser-http.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/index-browser-http.js +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/index-browser-http.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js +5 -3
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/is-export-retryable.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-browser-http-export-delegate.d.ts +0 -4
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-browser-http-export-delegate.js +1 -10
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-browser-http-export-delegate.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js +9 -8
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/retrying-transport.js +17 -5
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/retrying-transport.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/fetch-transport.d.ts +2 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/fetch-transport.js +13 -8
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/fetch-transport.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/http-exporter-transport.js +5 -4
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/http-exporter-transport.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/http-transport-types.d.ts +2 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/http-transport-types.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/http-transport-utils.d.ts +1 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/http-transport-utils.js +37 -14
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/http-transport-utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/send-beacon-transport.d.ts +4 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/send-beacon-transport.js +5 -4
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/send-beacon-transport.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js +10 -12
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/util.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/OTLPExporterBase.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/OTLPExporterBase.js +2 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/OTLPExporterBase.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/convert-legacy-browser-http-options.js +2 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/convert-legacy-browser-http-options.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/convert-legacy-http-options.d.ts +4 -0
- package/dist/server/node_modules/@opentelemetry/{core/build/esm/common/timer-util.js → otlp-exporter-base/build/esnext/configuration/convert-legacy-http-options.js} +6 -8
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/convert-legacy-http-options.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/convert-legacy-node-http-options.js +2 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/convert-legacy-node-http-options.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/create-legacy-browser-delegate.js +2 -7
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/create-legacy-browser-delegate.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/legacy-base-configuration.d.ts +26 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/legacy-base-configuration.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/otlp-http-configuration.d.ts +2 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/otlp-http-configuration.js +9 -9
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/otlp-http-configuration.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/shared-configuration.d.ts +2 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/shared-configuration.js +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/shared-configuration.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/export-response.d.ts +1 -0
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/export-response.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/index-browser-http.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/index-browser-http.js +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/index-browser-http.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/is-export-retryable.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/is-export-retryable.js +5 -3
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/is-export-retryable.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/otlp-browser-http-export-delegate.d.ts +0 -4
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/otlp-browser-http-export-delegate.js +1 -10
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/otlp-browser-http-export-delegate.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/otlp-export-delegate.js +9 -8
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/otlp-export-delegate.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/retrying-transport.js +17 -5
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/retrying-transport.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/fetch-transport.d.ts +2 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/fetch-transport.js +13 -8
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/fetch-transport.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/http-exporter-transport.js +5 -4
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/http-exporter-transport.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/http-transport-types.d.ts +2 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/http-transport-types.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/http-transport-utils.d.ts +1 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/http-transport-utils.js +37 -14
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/http-transport-utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/send-beacon-transport.d.ts +4 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/send-beacon-transport.js +5 -4
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/send-beacon-transport.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/util.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/util.js +10 -12
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/util.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/OTLPExporterBase.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/OTLPExporterBase.js +2 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/OTLPExporterBase.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/convert-legacy-browser-http-options.js +2 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/convert-legacy-browser-http-options.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/convert-legacy-http-options.d.ts +4 -0
- package/dist/server/node_modules/@opentelemetry/{core/build/src/common/timer-util.js → otlp-exporter-base/build/src/configuration/convert-legacy-http-options.js} +8 -10
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/convert-legacy-http-options.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/convert-legacy-node-http-options.js +2 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/convert-legacy-node-http-options.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/create-legacy-browser-delegate.js +1 -6
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/create-legacy-browser-delegate.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/legacy-base-configuration.d.ts +26 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/legacy-base-configuration.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/otlp-http-configuration.d.ts +2 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/otlp-http-configuration.js +9 -9
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/otlp-http-configuration.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/shared-configuration.d.ts +2 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/shared-configuration.js +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/shared-configuration.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/export-response.d.ts +1 -0
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/export-response.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/index-browser-http.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/index-browser-http.js +1 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/index-browser-http.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/is-export-retryable.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/is-export-retryable.js +7 -5
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/is-export-retryable.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/otlp-browser-http-export-delegate.d.ts +0 -4
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/otlp-browser-http-export-delegate.js +2 -12
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/otlp-browser-http-export-delegate.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/otlp-export-delegate.js +9 -8
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/otlp-export-delegate.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/retrying-transport.js +17 -5
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/retrying-transport.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/fetch-transport.d.ts +2 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/fetch-transport.js +12 -7
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/fetch-transport.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/http-exporter-transport.js +5 -4
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/http-exporter-transport.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/http-transport-types.d.ts +2 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/http-transport-types.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/http-transport-utils.d.ts +1 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/http-transport-utils.js +36 -13
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/http-transport-utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/send-beacon-transport.d.ts +4 -2
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/send-beacon-transport.js +5 -4
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/send-beacon-transport.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/util.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/util.js +10 -12
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/util.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/package.json +6 -6
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/generated/root.js +6 -36
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/generated/root.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js +0 -15
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/generated/root.js +6 -36
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/generated/root.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/internal.js +0 -15
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/internal.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/generated/root.js +6 -36
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/generated/root.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal.js +0 -15
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/package.json +14 -12
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/InstrumentDescriptor.js +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/InstrumentDescriptor.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/Instruments.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/Instruments.js +6 -6
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/Instruments.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/Meter.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/Meter.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/Meter.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/ObservableResult.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/ObservableResult.js +5 -5
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/ObservableResult.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/ExponentialHistogram.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/ExponentialHistogram.js +17 -17
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/ExponentialHistogram.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/Histogram.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/Histogram.js +8 -8
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/Histogram.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/LastValue.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/LastValue.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/LastValue.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/Sum.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/Sum.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/Sum.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/exponential-histogram/Buckets.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/exponential-histogram/Buckets.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/exponential-histogram/Buckets.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/export/ConsoleMetricExporter.js +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/export/ConsoleMetricExporter.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/export/MetricReader.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/export/MetricReader.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/export/PeriodicExportingMetricReader.js +21 -14
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/export/PeriodicExportingMetricReader.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/AsyncMetricStorage.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/AsyncMetricStorage.js +4 -4
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/AsyncMetricStorage.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/DeltaMetricProcessor.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/DeltaMetricProcessor.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/DeltaMetricProcessor.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/HashMap.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/HashMap.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/HashMap.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MeterProviderSharedState.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MeterProviderSharedState.js +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MeterProviderSharedState.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MeterSharedState.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MeterSharedState.js +12 -11
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MeterSharedState.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MetricCollector.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MetricCollector.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MetricCollector.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MetricStorage.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MetricStorage.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MetricStorage.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MultiWritableMetricStorage.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MultiWritableMetricStorage.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MultiWritableMetricStorage.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/ObservableRegistry.js +4 -4
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/ObservableRegistry.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/SyncMetricStorage.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/SyncMetricStorage.js +4 -4
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/SyncMetricStorage.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/TemporalMetricProcessor.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/TemporalMetricProcessor.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/state/TemporalMetricProcessor.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/utils.d.ts +0 -19
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/utils.js +0 -36
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/view/Aggregation.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/view/Aggregation.js +6 -6
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/view/Aggregation.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/view/AttributesProcessor.js +16 -12
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esm/view/AttributesProcessor.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/InstrumentDescriptor.js +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/InstrumentDescriptor.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/Instruments.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/Instruments.js +6 -6
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/Instruments.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/Meter.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/Meter.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/Meter.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/ObservableResult.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/ObservableResult.js +5 -5
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/ObservableResult.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/ExponentialHistogram.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/ExponentialHistogram.js +17 -17
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/ExponentialHistogram.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/Histogram.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/Histogram.js +8 -8
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/Histogram.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/LastValue.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/LastValue.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/LastValue.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/Sum.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/Sum.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/Sum.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/exponential-histogram/Buckets.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/exponential-histogram/Buckets.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/exponential-histogram/Buckets.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/export/ConsoleMetricExporter.js +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/export/ConsoleMetricExporter.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/export/MetricReader.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/export/MetricReader.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/export/PeriodicExportingMetricReader.js +21 -14
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/export/PeriodicExportingMetricReader.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/AsyncMetricStorage.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/AsyncMetricStorage.js +4 -4
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/AsyncMetricStorage.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/DeltaMetricProcessor.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/DeltaMetricProcessor.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/DeltaMetricProcessor.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/HashMap.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/HashMap.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/HashMap.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MeterProviderSharedState.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MeterProviderSharedState.js +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MeterProviderSharedState.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MeterSharedState.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MeterSharedState.js +12 -11
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MeterSharedState.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MetricCollector.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MetricCollector.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MetricCollector.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MetricStorage.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MetricStorage.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MetricStorage.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MultiWritableMetricStorage.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MultiWritableMetricStorage.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MultiWritableMetricStorage.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/ObservableRegistry.js +4 -4
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/ObservableRegistry.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/SyncMetricStorage.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/SyncMetricStorage.js +4 -4
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/SyncMetricStorage.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/TemporalMetricProcessor.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/TemporalMetricProcessor.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/TemporalMetricProcessor.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/utils.d.ts +0 -19
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/utils.js +0 -36
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/view/Aggregation.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/view/Aggregation.js +6 -6
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/view/Aggregation.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/view/AttributesProcessor.js +16 -12
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/esnext/view/AttributesProcessor.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/InstrumentDescriptor.js +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/InstrumentDescriptor.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/Instruments.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/Instruments.js +6 -6
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/Instruments.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/Meter.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/Meter.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/Meter.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/ObservableResult.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/ObservableResult.js +5 -5
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/ObservableResult.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/ExponentialHistogram.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/ExponentialHistogram.js +17 -17
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/ExponentialHistogram.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Histogram.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Histogram.js +8 -8
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Histogram.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/LastValue.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/LastValue.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/LastValue.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Sum.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Sum.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Sum.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/Buckets.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/Buckets.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/Buckets.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/export/ConsoleMetricExporter.js +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/export/ConsoleMetricExporter.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/export/MetricReader.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/export/MetricReader.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/export/PeriodicExportingMetricReader.js +21 -14
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/export/PeriodicExportingMetricReader.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/AsyncMetricStorage.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/AsyncMetricStorage.js +4 -4
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/AsyncMetricStorage.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/DeltaMetricProcessor.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/DeltaMetricProcessor.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/DeltaMetricProcessor.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/HashMap.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/HashMap.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/HashMap.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MeterProviderSharedState.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MeterProviderSharedState.js +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MeterProviderSharedState.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MeterSharedState.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MeterSharedState.js +12 -11
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MeterSharedState.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MetricCollector.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MetricCollector.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MetricCollector.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MetricStorage.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MetricStorage.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MetricStorage.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MultiWritableMetricStorage.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MultiWritableMetricStorage.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/MultiWritableMetricStorage.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/ObservableRegistry.js +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/ObservableRegistry.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/SyncMetricStorage.d.ts +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/SyncMetricStorage.js +4 -4
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/SyncMetricStorage.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/TemporalMetricProcessor.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/TemporalMetricProcessor.js +2 -2
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/state/TemporalMetricProcessor.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/utils.d.ts +0 -19
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/utils.js +1 -41
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/view/Aggregation.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/view/Aggregation.js +6 -6
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/view/Aggregation.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/view/AttributesProcessor.js +16 -12
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/build/src/view/AttributesProcessor.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/sdk-metrics/package.json +6 -6
- package/dist/server/node_modules/@protobufjs/aspromise/LICENSE +26 -0
- package/dist/server/node_modules/@protobufjs/aspromise/README.md +13 -0
- package/dist/server/node_modules/@protobufjs/aspromise/index.d.ts +13 -0
- package/dist/server/node_modules/@protobufjs/aspromise/index.js +52 -0
- package/dist/server/node_modules/@protobufjs/aspromise/package.json +21 -0
- package/dist/server/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
- package/dist/server/node_modules/@protobufjs/base64/LICENSE +26 -0
- package/dist/server/node_modules/@protobufjs/base64/README.md +19 -0
- package/dist/server/node_modules/@protobufjs/base64/index.d.ts +32 -0
- package/dist/server/node_modules/@protobufjs/base64/index.js +139 -0
- package/dist/server/node_modules/@protobufjs/base64/package.json +21 -0
- package/dist/server/node_modules/@protobufjs/base64/tests/index.js +46 -0
- package/dist/server/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
- package/dist/server/node_modules/@protobufjs/eventemitter/README.md +22 -0
- package/dist/server/node_modules/@protobufjs/eventemitter/index.d.ts +43 -0
- package/dist/server/node_modules/@protobufjs/eventemitter/index.js +76 -0
- package/dist/server/node_modules/@protobufjs/eventemitter/package.json +21 -0
- package/dist/server/node_modules/@protobufjs/eventemitter/tests/index.js +47 -0
- package/dist/server/node_modules/@protobufjs/float/LICENSE +26 -0
- package/dist/server/node_modules/@protobufjs/float/README.md +102 -0
- package/dist/server/node_modules/@protobufjs/float/bench/index.js +87 -0
- package/dist/server/node_modules/@protobufjs/float/bench/suite.js +46 -0
- package/dist/server/node_modules/@protobufjs/float/index.d.ts +83 -0
- package/dist/server/node_modules/@protobufjs/float/index.js +335 -0
- package/dist/server/node_modules/@protobufjs/float/package.json +26 -0
- package/dist/server/node_modules/@protobufjs/float/tests/index.js +100 -0
- package/dist/server/node_modules/@protobufjs/inquire/LICENSE +26 -0
- package/dist/server/node_modules/@protobufjs/inquire/README.md +13 -0
- package/dist/server/node_modules/@protobufjs/inquire/index.d.ts +9 -0
- package/dist/server/node_modules/@protobufjs/inquire/index.js +37 -0
- package/dist/server/node_modules/@protobufjs/inquire/package.json +21 -0
- package/dist/server/node_modules/@protobufjs/inquire/tests/data/array.js +1 -0
- package/dist/server/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +1 -0
- package/dist/server/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +1 -0
- package/dist/server/node_modules/@protobufjs/inquire/tests/data/object.js +1 -0
- package/dist/server/node_modules/@protobufjs/inquire/tests/index.js +20 -0
- package/dist/server/node_modules/@protobufjs/pool/LICENSE +26 -0
- package/dist/server/node_modules/@protobufjs/pool/README.md +13 -0
- package/dist/server/node_modules/@protobufjs/pool/index.d.ts +32 -0
- package/dist/server/node_modules/@protobufjs/pool/index.js +48 -0
- package/dist/server/node_modules/@protobufjs/pool/package.json +21 -0
- package/dist/server/node_modules/@protobufjs/pool/tests/index.js +33 -0
- package/dist/server/node_modules/@protobufjs/utf8/LICENSE +26 -0
- package/dist/server/node_modules/@protobufjs/utf8/README.md +20 -0
- package/dist/server/node_modules/@protobufjs/utf8/index.d.ts +24 -0
- package/dist/server/node_modules/@protobufjs/utf8/index.js +104 -0
- package/dist/server/node_modules/@protobufjs/utf8/package.json +21 -0
- package/dist/server/node_modules/@protobufjs/utf8/tests/data/surrogate_pair_bug.txt +207 -0
- package/dist/server/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
- package/dist/server/node_modules/@protobufjs/utf8/tests/index.js +74 -0
- package/dist/server/node_modules/is-what/LICENSE +21 -0
- package/dist/server/node_modules/is-what/README.md +294 -0
- package/dist/server/node_modules/is-what/dist/cjs/index.cjs +209 -0
- package/dist/server/node_modules/is-what/dist/cjs/index.d.cts +380 -0
- package/dist/server/node_modules/is-what/dist/index.d.ts +380 -0
- package/dist/server/node_modules/is-what/dist/index.js +171 -0
- package/dist/server/node_modules/is-what/package.json +128 -0
- package/dist/server/node_modules/mimic-fn/index.d.ts +54 -0
- package/dist/server/node_modules/mimic-fn/index.js +13 -0
- package/dist/server/node_modules/{ansi-styles → mimic-fn}/license +1 -1
- package/dist/server/node_modules/mimic-fn/package.json +42 -0
- package/dist/server/node_modules/mimic-fn/readme.md +69 -0
- package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
- package/dist/server/node_modules/pg-connection-string/README.md +105 -0
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
- package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
- package/dist/server/node_modules/pg-connection-string/index.js +231 -0
- package/dist/server/node_modules/pg-connection-string/package.json +52 -0
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
- package/dist/server/node_modules/postgres-array/index.js +97 -0
- package/dist/server/node_modules/postgres-array/license +21 -0
- package/dist/server/node_modules/postgres-array/package.json +35 -0
- package/dist/server/node_modules/postgres-array/readme.md +43 -0
- package/dist/server/node_modules/postgres-bytea/index.js +33 -0
- package/dist/server/node_modules/postgres-bytea/license +21 -0
- package/dist/server/node_modules/postgres-bytea/package.json +34 -0
- package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/postgres-date/license +21 -0
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/postgres-interval/license +21 -0
- package/dist/server/node_modules/postgres-interval/package.json +36 -0
- package/dist/server/node_modules/postgres-interval/readme.md +48 -0
- package/dist/server/node_modules/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -0
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/add-connection-dialog-ofanvYCp.js +0 -1
- package/dist/client/assets/add-section-modal-BCk4K95B.js +0 -1
- package/dist/client/assets/ai-providers-ClQzDgay.js +0 -1
- package/dist/client/assets/core.esm-De8uFRbq.js +0 -5
- package/dist/client/assets/features-DlLfjwgm.js +0 -1
- package/dist/client/assets/file-explorer-AuAnUNup.js +0 -2
- package/dist/client/assets/general-QMcs11_T.js +0 -1
- package/dist/client/assets/index-BiCpFplG.js +0 -1
- package/dist/client/assets/index-CUgtN10Z.js +0 -1
- package/dist/client/assets/index-DSqG2zd4.css +0 -1
- package/dist/client/assets/index-DWImRa03.js +0 -1
- package/dist/client/assets/registry-BVvaIs1y.js +0 -2
- package/dist/client/assets/sections-editor-D0cZ2kRT.js +0 -2
- package/dist/client/assets/sortable.esm-B-FURXeh.js +0 -1
- package/dist/client/assets/store-registry-G4hAFaoc.js +0 -2
- package/dist/client/assets/use-organization-settings-BfAFGqYC.js +0 -1
- package/dist/client/assets/useInfiniteQuery-wMwHeeMw.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Bubo9lIB.js +0 -1
- package/dist/client/assets/workflow-detail-DNtgtjWJ.js +0 -1
- package/dist/server/node_modules/@opentelemetry/core/LICENSE +0 -201
- package/dist/server/node_modules/@opentelemetry/core/README.md +0 -73
- package/dist/server/node_modules/@opentelemetry/core/build/esm/ExportResult.d.ts +0 -9
- package/dist/server/node_modules/@opentelemetry/core/build/esm/ExportResult.js +0 -21
- package/dist/server/node_modules/@opentelemetry/core/build/esm/ExportResult.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/baggage/constants.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/esm/baggage/constants.js +0 -27
- package/dist/server/node_modules/@opentelemetry/core/build/esm/baggage/constants.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.d.ts +0 -13
- package/dist/server/node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js +0 -72
- package/dist/server/node_modules/@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/baggage/utils.d.ts +0 -16
- package/dist/server/node_modules/@opentelemetry/core/build/esm/baggage/utils.js +0 -82
- package/dist/server/node_modules/@opentelemetry/core/build/esm/baggage/utils.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/anchored-clock.d.ts +0 -41
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/anchored-clock.js +0 -57
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/anchored-clock.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/attributes.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/attributes.js +0 -87
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/attributes.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.d.ts +0 -13
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js +0 -36
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/global-error-handler.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/globalThis.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/globalThis.js +0 -20
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/globalThis.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.d.ts +0 -7
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js +0 -59
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/logging-error-handler.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/time.d.ts +0 -62
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/time.js +0 -154
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/time.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/timer-util.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/timer-util.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/types.d.ts +0 -23
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/types.js +0 -17
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/types.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/index.d.ts +0 -30
- package/dist/server/node_modules/@opentelemetry/core/build/esm/index.js +0 -40
- package/dist/server/node_modules/@opentelemetry/core/build/esm/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/internal/exporter.d.ts +0 -10
- package/dist/server/node_modules/@opentelemetry/core/build/esm/internal/exporter.js +0 -32
- package/dist/server/node_modules/@opentelemetry/core/build/esm/internal/exporter.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/internal/validators.d.ts +0 -15
- package/dist/server/node_modules/@opentelemetry/core/build/esm/internal/validators.js +0 -41
- package/dist/server/node_modules/@opentelemetry/core/build/esm/internal/validators.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js +0 -28
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/environment.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/index.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/index.js +0 -23
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/sdk-info.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/sdk-info.js +0 -26
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/sdk-info.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/index.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/index.js +0 -17
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/environment.d.ts +0 -40
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/environment.js +0 -97
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/environment.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/index.d.ts +0 -11
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/index.js +0 -23
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/sdk-info.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/sdk-info.js +0 -26
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/sdk-info.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/propagation/composite.d.ts +0 -43
- package/dist/server/node_modules/@opentelemetry/core/build/esm/propagation/composite.js +0 -77
- package/dist/server/node_modules/@opentelemetry/core/build/esm/propagation/composite.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/semconv.d.ts +0 -9
- package/dist/server/node_modules/@opentelemetry/core/build/esm/semconv.js +0 -29
- package/dist/server/node_modules/@opentelemetry/core/build/esm/semconv.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/trace/TraceState.d.ts +0 -22
- package/dist/server/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js +0 -99
- package/dist/server/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.d.ts +0 -26
- package/dist/server/node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js +0 -99
- package/dist/server/node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/trace/rpc-metadata.d.ts +0 -18
- package/dist/server/node_modules/@opentelemetry/core/build/esm/trace/rpc-metadata.js +0 -31
- package/dist/server/node_modules/@opentelemetry/core/build/esm/trace/rpc-metadata.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js +0 -27
- package/dist/server/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/callback.d.ts +0 -14
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/callback.js +0 -48
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/callback.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/configuration.d.ts +0 -7
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/configuration.js +0 -42
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/configuration.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.d.ts +0 -30
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js +0 -153
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/lodash.merge.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/merge.d.ts +0 -6
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/merge.js +0 -158
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/merge.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/promise.d.ts +0 -10
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/promise.js +0 -36
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/promise.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/timeout.d.ts +0 -17
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/timeout.js +0 -51
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/timeout.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/url.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/url.js +0 -40
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/url.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/version.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/core/build/esm/version.js +0 -18
- package/dist/server/node_modules/@opentelemetry/core/build/esm/version.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/ExportResult.d.ts +0 -9
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/ExportResult.js +0 -21
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/ExportResult.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/baggage/constants.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/baggage/constants.js +0 -27
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/baggage/constants.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/baggage/propagation/W3CBaggagePropagator.d.ts +0 -13
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/baggage/propagation/W3CBaggagePropagator.js +0 -72
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/baggage/propagation/W3CBaggagePropagator.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/baggage/utils.d.ts +0 -16
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/baggage/utils.js +0 -82
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/baggage/utils.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/anchored-clock.d.ts +0 -41
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/anchored-clock.js +0 -57
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/anchored-clock.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/attributes.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/attributes.js +0 -87
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/attributes.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/global-error-handler.d.ts +0 -13
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/global-error-handler.js +0 -36
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/global-error-handler.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/globalThis.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/globalThis.js +0 -20
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/globalThis.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/logging-error-handler.d.ts +0 -7
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/logging-error-handler.js +0 -59
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/logging-error-handler.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/time.d.ts +0 -62
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/time.js +0 -154
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/time.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/timer-util.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/timer-util.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/types.d.ts +0 -23
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/types.js +0 -17
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/types.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/index.d.ts +0 -30
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/index.js +0 -40
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/internal/exporter.d.ts +0 -10
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/internal/exporter.js +0 -32
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/internal/exporter.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/internal/validators.d.ts +0 -15
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/internal/validators.js +0 -41
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/internal/validators.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/environment.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/environment.js +0 -28
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/environment.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/index.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/index.js +0 -23
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/sdk-info.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/sdk-info.js +0 -26
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/sdk-info.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/index.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/index.js +0 -17
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/environment.d.ts +0 -40
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/environment.js +0 -97
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/environment.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/index.d.ts +0 -11
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/index.js +0 -23
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/sdk-info.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/sdk-info.js +0 -26
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/sdk-info.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/propagation/composite.d.ts +0 -43
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/propagation/composite.js +0 -77
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/propagation/composite.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/semconv.d.ts +0 -9
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/semconv.js +0 -29
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/semconv.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/trace/TraceState.d.ts +0 -22
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/trace/TraceState.js +0 -99
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/trace/TraceState.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/trace/W3CTraceContextPropagator.d.ts +0 -26
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/trace/W3CTraceContextPropagator.js +0 -99
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/trace/W3CTraceContextPropagator.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/trace/rpc-metadata.d.ts +0 -18
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/trace/rpc-metadata.js +0 -31
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/trace/rpc-metadata.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/trace/suppress-tracing.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/trace/suppress-tracing.js +0 -27
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/trace/suppress-tracing.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/callback.d.ts +0 -14
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/callback.js +0 -48
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/callback.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/configuration.d.ts +0 -7
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/configuration.js +0 -42
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/configuration.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/lodash.merge.d.ts +0 -30
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/lodash.merge.js +0 -153
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/lodash.merge.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/merge.d.ts +0 -6
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/merge.js +0 -158
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/merge.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/promise.d.ts +0 -10
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/promise.js +0 -36
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/promise.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/timeout.d.ts +0 -17
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/timeout.js +0 -51
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/timeout.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/url.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/url.js +0 -40
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/url.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/version.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/version.js +0 -18
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/version.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/ExportResult.d.ts +0 -9
- package/dist/server/node_modules/@opentelemetry/core/build/src/ExportResult.js +0 -24
- package/dist/server/node_modules/@opentelemetry/core/build/src/ExportResult.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/baggage/constants.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/src/baggage/constants.js +0 -30
- package/dist/server/node_modules/@opentelemetry/core/build/src/baggage/constants.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/baggage/propagation/W3CBaggagePropagator.d.ts +0 -13
- package/dist/server/node_modules/@opentelemetry/core/build/src/baggage/propagation/W3CBaggagePropagator.js +0 -76
- package/dist/server/node_modules/@opentelemetry/core/build/src/baggage/propagation/W3CBaggagePropagator.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/baggage/utils.d.ts +0 -16
- package/dist/server/node_modules/@opentelemetry/core/build/src/baggage/utils.js +0 -89
- package/dist/server/node_modules/@opentelemetry/core/build/src/baggage/utils.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/anchored-clock.d.ts +0 -41
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/anchored-clock.js +0 -61
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/anchored-clock.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/attributes.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/attributes.js +0 -93
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/attributes.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/global-error-handler.d.ts +0 -13
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/global-error-handler.js +0 -41
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/global-error-handler.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/globalThis.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/globalThis.js +0 -23
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/globalThis.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/logging-error-handler.d.ts +0 -7
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/logging-error-handler.js +0 -63
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/logging-error-handler.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/time.d.ts +0 -62
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/time.js +0 -169
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/time.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/timer-util.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/timer-util.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/types.d.ts +0 -23
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/types.js +0 -18
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/types.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/index.d.ts +0 -30
- package/dist/server/node_modules/@opentelemetry/core/build/src/index.js +0 -92
- package/dist/server/node_modules/@opentelemetry/core/build/src/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/internal/exporter.d.ts +0 -10
- package/dist/server/node_modules/@opentelemetry/core/build/src/internal/exporter.js +0 -36
- package/dist/server/node_modules/@opentelemetry/core/build/src/internal/exporter.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/internal/validators.d.ts +0 -15
- package/dist/server/node_modules/@opentelemetry/core/build/src/internal/validators.js +0 -46
- package/dist/server/node_modules/@opentelemetry/core/build/src/internal/validators.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/environment.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/environment.js +0 -35
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/environment.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/index.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/index.js +0 -32
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/sdk-info.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/sdk-info.js +0 -29
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/sdk-info.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/index.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/index.js +0 -27
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/environment.d.ts +0 -40
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/environment.js +0 -104
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/environment.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/index.d.ts +0 -11
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/index.js +0 -32
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/sdk-info.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/sdk-info.js +0 -29
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/sdk-info.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/propagation/composite.d.ts +0 -43
- package/dist/server/node_modules/@opentelemetry/core/build/src/propagation/composite.js +0 -81
- package/dist/server/node_modules/@opentelemetry/core/build/src/propagation/composite.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/semconv.d.ts +0 -9
- package/dist/server/node_modules/@opentelemetry/core/build/src/semconv.js +0 -32
- package/dist/server/node_modules/@opentelemetry/core/build/src/semconv.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/trace/TraceState.d.ts +0 -22
- package/dist/server/node_modules/@opentelemetry/core/build/src/trace/TraceState.js +0 -103
- package/dist/server/node_modules/@opentelemetry/core/build/src/trace/TraceState.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/trace/W3CTraceContextPropagator.d.ts +0 -26
- package/dist/server/node_modules/@opentelemetry/core/build/src/trace/W3CTraceContextPropagator.js +0 -104
- package/dist/server/node_modules/@opentelemetry/core/build/src/trace/W3CTraceContextPropagator.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/trace/rpc-metadata.d.ts +0 -18
- package/dist/server/node_modules/@opentelemetry/core/build/src/trace/rpc-metadata.js +0 -37
- package/dist/server/node_modules/@opentelemetry/core/build/src/trace/rpc-metadata.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/trace/suppress-tracing.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/core/build/src/trace/suppress-tracing.js +0 -33
- package/dist/server/node_modules/@opentelemetry/core/build/src/trace/suppress-tracing.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/callback.d.ts +0 -14
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/callback.js +0 -52
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/callback.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/configuration.d.ts +0 -7
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/configuration.js +0 -46
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/configuration.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/lodash.merge.d.ts +0 -30
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/lodash.merge.js +0 -157
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/lodash.merge.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/merge.d.ts +0 -6
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/merge.js +0 -162
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/merge.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/promise.d.ts +0 -10
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/promise.js +0 -40
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/promise.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/timeout.d.ts +0 -17
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/timeout.js +0 -56
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/timeout.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/url.d.ts +0 -8
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/url.js +0 -45
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/url.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/version.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/core/build/src/version.js +0 -21
- package/dist/server/node_modules/@opentelemetry/core/build/src/version.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/package.json +0 -94
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.d.ts +0 -17
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js +0 -86
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/xhr-transport.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/xhr-transport.d.ts +0 -17
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/xhr-transport.js +0 -86
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/transport/xhr-transport.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/xhr-transport.d.ts +0 -17
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/xhr-transport.js +0 -90
- package/dist/server/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/xhr-transport.js.map +0 -1
- package/dist/server/node_modules/ansi-styles/index.d.ts +0 -236
- package/dist/server/node_modules/ansi-styles/index.js +0 -223
- package/dist/server/node_modules/ansi-styles/package.json +0 -54
- package/dist/server/node_modules/ansi-styles/readme.md +0 -173
- package/dist/server/node_modules/get-east-asian-width/index.d.ts +0 -60
- package/dist/server/node_modules/get-east-asian-width/index.js +0 -30
- package/dist/server/node_modules/get-east-asian-width/license +0 -9
- package/dist/server/node_modules/get-east-asian-width/lookup-data.js +0 -18
- package/dist/server/node_modules/get-east-asian-width/lookup.js +0 -135
- package/dist/server/node_modules/get-east-asian-width/package.json +0 -71
- package/dist/server/node_modules/get-east-asian-width/readme.md +0 -65
- package/dist/server/node_modules/get-east-asian-width/utilities.js +0 -24
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-wKILHxzj.js","assets/Check-BysbYgb9.js","assets/ChevronDown-1VblYmJK.js","assets/login-DCm1I5uh.js","assets/input-D6gnYotp.js","assets/auth-split-layout-CzP_T5hx.js","assets/cli-auth-success-DqkJGjQs.js","assets/reset-password-DeSIFr_Y.js","assets/shell-layout-DXlDoddI.js","assets/avatar-DrcQsyKV.js","assets/User01-Sfa_yoWn.js","assets/Users03-pZFlaYWV.js","assets/Lock01-BtOYqouR.js","assets/Stars02-BYcdkCdP.js","assets/XClose-DKbNenxU.js","assets/CheckCircle-Dya7U8Bj.js","assets/FilterLines-ChfP-3Vx.js","assets/Zap-DXdvr1ea.js","assets/dialog-BK-JSUWy.js","assets/X-pCTFzTM8.js","assets/required-auth-layout-DnXJ120Y.js","assets/useRouterState-DjZRiX0H.js","assets/tab-id-B467B0we.js","assets/constants-C-AlmdnL.js","assets/decopilot-sse-pool-C_CrId0I.js","assets/create-sse-subscription--G7iwTWC.js","assets/use-organization-settings-Bx4kul7E.js","assets/use-org-sso-DfMHJns6.js","assets/onboarding-BiSeyp1L.js","assets/label-DtJYSZJB.js","assets/switch-BialXaLx.js","assets/Palette-D42GMWxf.js","assets/Upload01-CkSPNTyO.js","assets/index-SD835vpA.js","assets/sidebar-BU8HLagj.js","assets/sheet-D2nlKjIX.js","assets/tooltip-DetRXJFz.js","assets/index-Db0YUhgn.js","assets/agent-icon-BYVjPXkn.js","assets/AlertCircle-BzIN-hAd.js","assets/Tool01-CVD2hM-M.js","assets/SwitchHorizontal01-lQ0hOI8A.js","assets/RefreshCcw01-DG5ywY9k.js","assets/XCircle-NFZmSh1M.js","assets/ArrowUpRight-B9FXytd1.js","assets/ZapSquare-BGSTxW0S.js","assets/ChevronRight-WpPB7NkQ.js","assets/ChevronUp-B_t9-_yk.js","assets/DotsVertical-DyARI6Lm.js","assets/Container-D6_czybl.js","assets/Star01-DkecmRzu.js","assets/HardDrive-DzjKehK5.js","assets/Key01-BJzJJ1Ct.js","assets/LinkExternal01-DqJZz9de.js","assets/Monitor01-JZEgoBKI.js","assets/Sun-Bmw40iUn.js","assets/Play-BzD_CIcW.js","assets/Plus-CnB5MfnT.js","assets/SearchMd-B-S6dU7e.js","assets/Settings02-C--TgvN0.js","assets/Shield01-BrMRetGi.js","assets/Trash01-B8xn8-br.js","assets/Users01-CLRORWgo.js","assets/toolbar-DkwwdBPK.js","assets/skeleton-fjg5dFeT.js","assets/popover-BnKSOyTy.js","assets/drawer-CeY-KOQr.js","assets/use-virtual-mcp-i7hnPGn9.js","assets/use-collections-CPXS-2B0.js","assets/use-create-virtual-mcp-COti1xCa.js","assets/use-navigate-to-agent-COc0-wBS.js","assets/github-repo-picker-BfTvKWHr.js","assets/collection-search-Cz4jVqaH.js","assets/checkbox-bQXqn5oI.js","assets/use-connection-BIQbXjrS.js","assets/use-mcp-tools-BqMyVr7G.js","assets/extract-connection-data-QqanSyQQ.js","assets/generate-id-rkempyJw.js","assets/collections-DGVTnNWT.js","assets/alert-dialog-C6ls6jDk.js","assets/form-CBTSgvad.js","assets/spinner-PuN3GaG8.js","assets/index-D2sjymmp.js","assets/sortable.esm-ByE39WZB.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-CY6UIryq.js","assets/use-registry-connections-DwMLmmYR.js","assets/useInfiniteQuery-tD-DkA0J.js","assets/infiniteQueryObserver-CvcbTCzk.js","assets/card-D3SfbPfC.js","assets/integration-icon-RPSJig_v.js","assets/collection-tabs-08mkTCKs.js","assets/badge-1mnjZwGj.js","assets/select-BP_nsDBm.js","assets/textarea-CbwoRR6a.js","assets/connection-form-helpers-aKyBJojx.js","assets/use-infinite-scroll-CgCKX1bV.js","assets/useSuspenseInfiniteQuery-CL8PI37B.js","assets/use-ai-providers-BjxFdfU5.js","assets/command-C9s6mvQg.js","assets/index-CvJGKkpm.js","assets/use-org-auth-client-BAWZfHEy.js","assets/hover-card-CMoCeYyr.js","assets/task-status-DepMErZX.js","assets/format-time-GeUngI9C.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/chat-context-Byla5mTy.js","assets/connect-desktop-dialog-B84poiBi.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/shell-controls-BtsoIT18.js","assets/index-CdGWl6_V.js","assets/index-DJMOcMdu.js","assets/pair-xlnvFc4B.js","assets/scroll-area-BI9gkSrD.js","assets/use-copy-D3-AAZhX.js","assets/content-blocks-o63cs2vh.js","assets/types-C7NKjPQf.js","assets/use-mcp-prompts-D1zC80rK.js","assets/tabs-BTsFk6QR.js","assets/toggle-group-CDNHQa34.js","assets/agent-icons-R3QAywyk.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-yCGoMbME.js","assets/index-C2FWvcUf.js","assets/dropdown-menu-D3_FRDik.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-CLplMWhZ.js","assets/empty-state-CiPqh7hT.js","assets/accordion-Bymus3R1.js","assets/user-CdkS3MKK.js","assets/tools-list-B6HhpJOX.js","assets/use-debounced-autosave-8oPmTQOH.js","assets/index-Duv8iFwd.js","assets/use-secrets-BiiHFW7r.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/monaco-editor-D3wEhcbN.js","assets/view-mode-toggle-dbsShquT.js","assets/automation-list-row-DiJaHAzM.js","assets/search-input-BcqUF5eF.js","assets/index-DDGTF8rc.css","assets/index-DHL9MFaW.js","assets/settings-layout-DaGY3SeQ.js","assets/connections-CJ4ZFCE_.js","assets/collection-display-button-DpCq5Apy.js","assets/use-delete-connection-DHCf3Ho-.js","assets/use-list-state-Cg2qbdFo.js","assets/use-view-mode-BrE98v7l.js","assets/connection-detail-DyYYuIzV.js","assets/index-DPGx7sM5.js","assets/index-BabLzXbP.js","assets/index-DjDisTiK.js","assets/use-members-Di6NcEAy.js","assets/layout-DN3e9AjR.js","assets/monitoring-stats-row-D__sLevK.js","assets/collection-detail-DxeN2fci.js","assets/index-CYAV5JQw.js","assets/empty-state-CMkCTYSw.js","assets/alert-D0sP9-sK.js","assets/index-Ca-qE9hj.js","assets/calendar-C47LPuKa.js","assets/table-Bhjg8KgX.js","assets/general-ChqUzqsP.js","assets/domain-settings-CBfgCT92.js","assets/features-Cei0keTD.js","assets/brand-context-BWUtcphc.js","assets/ai-providers-C8uRE05q.js","assets/secrets-ChtarfZF.js","assets/files-CxRgg-Jb.js","assets/use-file-configs-DFxECEF8.js","assets/members-Dlsy_Jbh.js","assets/collection-table-wrapper-C7yfcc4Q.js","assets/use-organization-roles-CQqin2Hy.js","assets/roles-DpUGXWnF.js","assets/sso-CDouAEMV.js","assets/profile-DCvQmwIT.js","assets/store-BIf7SHc_.js","assets/workflow-BuvQYBnd.js","assets/workflow-detail-B-fsShL4.js","assets/org-plugin-layout-D_8PfeyI.js","assets/plugin-layout-DXXATAwu.js","assets/agents-list-CcXnD9PS.js","assets/automations-BYZ7MVDy.js","assets/dynamic-plugin-layout-DCA5GFIr.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function xj(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const Rj="modulepreload",Oj=function(e){return"/"+e},p2={},vt=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(p=>Promise.resolve(p).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");o=l(n.map(f=>{if(f=Oj(f),f in p2)return;p2[f]=!0;const p=f.endsWith(".css"),h=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${h}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":Rj,p||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),p)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return o.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var Sce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b_={exports:{}},Zu={};var m2;function Tj(){if(m2)return Zu;m2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var l=null;if(s!==void 0&&(l=""+s),o.key!==void 0&&(l=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:l,ref:o!==void 0?o:null,props:s}}return Zu.Fragment=t,Zu.jsx=n,Zu.jsxs=n,Zu}var g2;function Cj(){return g2||(g2=1,b_.exports=Tj()),b_.exports}var C=Cj(),w_={exports:{}},Yu={},S_={exports:{}},E_={};var v2;function Aj(){return v2||(v2=1,(function(e){function t(q,W){var te=q.length;q.push(W);e:for(;0<te;){var le=te-1>>>1,Q=q[le];if(0<o(Q,W))q[le]=W,q[te]=Q,te=le;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var W=q[0],te=q.pop();if(te!==W){q[0]=te;e:for(var le=0,Q=q.length,k=Q>>>1;le<k;){var G=2*(le+1)-1,V=q[G],D=G+1,F=q[D];if(0>o(V,te))D<Q&&0>o(F,V)?(q[le]=F,q[D]=te,le=D):(q[le]=V,q[G]=te,le=G);else if(D<Q&&0>o(F,te))q[le]=F,q[D]=te,le=D;else break e}}return W}function o(q,W){var te=q.sortIndex-W.sortIndex;return te!==0?te:q.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],p=1,h=null,g=3,v=!1,y=!1,b=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function R(q){for(var W=n(f);W!==null;){if(W.callback===null)r(f);else if(W.startTime<=q)r(f),W.sortIndex=W.expirationTime,t(d,W);else break;W=n(f)}}function O(q){if(b=!1,R(q),!y)if(n(d)!==null)y=!0,A||(A=!0,B());else{var W=n(f);W!==null&&oe(O,W.startTime-q)}}var A=!1,I=-1,P=5,L=-1;function H(){return x?!0:!(e.unstable_now()-L<P)}function $(){if(x=!1,A){var q=e.unstable_now();L=q;var W=!0;try{e:{y=!1,b&&(b=!1,E(I),I=-1),v=!0;var te=g;try{t:{for(R(q),h=n(d);h!==null&&!(h.expirationTime>q&&H());){var le=h.callback;if(typeof le=="function"){h.callback=null,g=h.priorityLevel;var Q=le(h.expirationTime<=q);if(q=e.unstable_now(),typeof Q=="function"){h.callback=Q,R(q),W=!0;break t}h===n(d)&&r(d),R(q)}else r(d);h=n(d)}if(h!==null)W=!0;else{var k=n(f);k!==null&&oe(O,k.startTime-q),W=!1}}break e}finally{h=null,g=te,v=!1}W=void 0}}finally{W?B():A=!1}}}var B;if(typeof T=="function")B=function(){T($)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,K=z.port2;z.port1.onmessage=$,B=function(){K.postMessage(null)}}else B=function(){w($,0)};function oe(q,W){I=w(function(){q(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(q){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var te=g;g=W;try{return q()}finally{g=te}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var te=g;g=q;try{return W()}finally{g=te}},e.unstable_scheduleCallback=function(q,W,te){var le=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?le+te:le):te=le,q){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=te+Q,q={id:p++,callback:W,priorityLevel:q,startTime:te,expirationTime:Q,sortIndex:-1},te>le?(q.sortIndex=te,t(f,q),n(d)===null&&q===n(f)&&(b?(E(I),I=-1):b=!0,oe(O,te-le))):(q.sortIndex=Q,t(d,q),y||v||(y=!0,A||(A=!0,B()))),q},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(q){var W=g;return function(){var te=g;g=W;try{return q.apply(this,arguments)}finally{g=te}}}})(E_)),E_}var _2;function Ij(){return _2||(_2=1,S_.exports=Aj()),S_.exports}var x_={exports:{}},ot={};var y2;function Mj(){if(y2)return ot;y2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function w(k,G,V){this.props=k,this.context=G,this.refs=x,this.updater=V||y}w.prototype.isReactComponent={},w.prototype.setState=function(k,G){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,G,"setState")},w.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=w.prototype;function T(k,G,V){this.props=k,this.context=G,this.refs=x,this.updater=V||y}var R=T.prototype=new E;R.constructor=T,b(R,w.prototype),R.isPureReactComponent=!0;var O=Array.isArray;function A(){}var I={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function L(k,G,V){var D=V.ref;return{$$typeof:e,type:k,key:G,ref:D!==void 0?D:null,props:V}}function H(k,G){return L(k.type,G,k.props)}function $(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function B(k){var G={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(V){return G[V]})}var z=/\/+/g;function K(k,G){return typeof k=="object"&&k!==null&&k.key!=null?B(""+k.key):G.toString(36)}function oe(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(A,A):(k.status="pending",k.then(function(G){k.status==="pending"&&(k.status="fulfilled",k.value=G)},function(G){k.status==="pending"&&(k.status="rejected",k.reason=G)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function q(k,G,V,D,F){var X=typeof k;(X==="undefined"||X==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(X){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case p:return fe=k._init,q(fe(k._payload),G,V,D,F)}}if(fe)return F=F(k),fe=D===""?"."+K(k,0):D,O(F)?(V="",fe!=null&&(V=fe.replace(z,"$&/")+"/"),q(F,G,V,"",function(je){return je})):F!=null&&($(F)&&(F=H(F,V+(F.key==null||k&&k.key===F.key?"":(""+F.key).replace(z,"$&/")+"/")+fe)),G.push(F)),1;fe=0;var pe=D===""?".":D+":";if(O(k))for(var xe=0;xe<k.length;xe++)D=k[xe],X=pe+K(D,xe),fe+=q(D,G,V,X,F);else if(xe=v(k),typeof xe=="function")for(k=xe.call(k),xe=0;!(D=k.next()).done;)D=D.value,X=pe+K(D,xe++),fe+=q(D,G,V,X,F);else if(X==="object"){if(typeof k.then=="function")return q(oe(k),G,V,D,F);throw G=String(k),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(k,G,V){if(k==null)return k;var D=[],F=0;return q(k,D,"","",function(X){return G.call(V,X,F++)}),D}function te(k){if(k._status===-1){var G=k._result;G=G(),G.then(function(V){(k._status===0||k._status===-1)&&(k._status=1,k._result=V)},function(V){(k._status===0||k._status===-1)&&(k._status=2,k._result=V)}),k._status===-1&&(k._status=0,k._result=G)}if(k._status===1)return k._result.default;throw k._result}var le=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Q={map:W,forEach:function(k,G,V){W(k,function(){G.apply(this,arguments)},V)},count:function(k){var G=0;return W(k,function(){G++}),G},toArray:function(k){return W(k,function(G){return G})||[]},only:function(k){if(!$(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return ot.Activity=h,ot.Children=Q,ot.Component=w,ot.Fragment=n,ot.Profiler=o,ot.PureComponent=T,ot.StrictMode=r,ot.Suspense=d,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,ot.__COMPILER_RUNTIME={__proto__:null,c:function(k){return I.H.useMemoCache(k)}},ot.cache=function(k){return function(){return k.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(k,G,V){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var D=b({},k.props),F=k.key;if(G!=null)for(X in G.key!==void 0&&(F=""+G.key),G)!P.call(G,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&G.ref===void 0||(D[X]=G[X]);var X=arguments.length-2;if(X===1)D.children=V;else if(1<X){for(var fe=Array(X),pe=0;pe<X;pe++)fe[pe]=arguments[pe+2];D.children=fe}return L(k.type,F,D)},ot.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},ot.createElement=function(k,G,V){var D,F={},X=null;if(G!=null)for(D in G.key!==void 0&&(X=""+G.key),G)P.call(G,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(F[D]=G[D]);var fe=arguments.length-2;if(fe===1)F.children=V;else if(1<fe){for(var pe=Array(fe),xe=0;xe<fe;xe++)pe[xe]=arguments[xe+2];F.children=pe}if(k&&k.defaultProps)for(D in fe=k.defaultProps,fe)F[D]===void 0&&(F[D]=fe[D]);return L(k,X,F)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(k){return{$$typeof:c,render:k}},ot.isValidElement=$,ot.lazy=function(k){return{$$typeof:p,_payload:{_status:-1,_result:k},_init:te}},ot.memo=function(k,G){return{$$typeof:f,type:k,compare:G===void 0?null:G}},ot.startTransition=function(k){var G=I.T,V={};I.T=V;try{var D=k(),F=I.S;F!==null&&F(V,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(A,le)}catch(X){le(X)}finally{G!==null&&V.types!==null&&(G.types=V.types),I.T=G}},ot.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},ot.use=function(k){return I.H.use(k)},ot.useActionState=function(k,G,V){return I.H.useActionState(k,G,V)},ot.useCallback=function(k,G){return I.H.useCallback(k,G)},ot.useContext=function(k){return I.H.useContext(k)},ot.useDebugValue=function(){},ot.useDeferredValue=function(k,G){return I.H.useDeferredValue(k,G)},ot.useEffect=function(k,G){return I.H.useEffect(k,G)},ot.useEffectEvent=function(k){return I.H.useEffectEvent(k)},ot.useId=function(){return I.H.useId()},ot.useImperativeHandle=function(k,G,V){return I.H.useImperativeHandle(k,G,V)},ot.useInsertionEffect=function(k,G){return I.H.useInsertionEffect(k,G)},ot.useLayoutEffect=function(k,G){return I.H.useLayoutEffect(k,G)},ot.useMemo=function(k,G){return I.H.useMemo(k,G)},ot.useOptimistic=function(k,G){return I.H.useOptimistic(k,G)},ot.useReducer=function(k,G,V){return I.H.useReducer(k,G,V)},ot.useRef=function(k){return I.H.useRef(k)},ot.useState=function(k){return I.H.useState(k)},ot.useSyncExternalStore=function(k,G,V){return I.H.useSyncExternalStore(k,G,V)},ot.useTransition=function(){return I.H.useTransition()},ot.version="19.2.6",ot}var b2;function ma(){return b2||(b2=1,x_.exports=Mj()),x_.exports}var R_={exports:{}},Sr={};var w2;function Pj(){if(w2)return Sr;w2=1;var e=ma();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)f+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(d,f,p){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:h==null?null:""+h,children:d,containerInfo:f,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Sr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Sr.createPortal=function(d,f){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,p)},Sr.flushSync=function(d){var f=l.T,p=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=p,r.d.f()}},Sr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},Sr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Sr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var p=f.as,h=c(p,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:h,integrity:g,fetchPriority:v}):p==="script"&&r.d.X(d,{crossOrigin:h,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Sr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var p=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},Sr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var p=f.as,h=c(p,f.crossOrigin);r.d.L(d,p,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Sr.preloadModule=function(d,f){if(typeof d=="string")if(f){var p=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},Sr.requestFormReset=function(d){r.d.r(d)},Sr.unstable_batchedUpdates=function(d,f){return d(f)},Sr.useFormState=function(d,f,p){return l.H.useFormState(d,f,p)},Sr.useFormStatus=function(){return l.H.useHostTransitionStatus()},Sr.version="19.2.6",Sr}var S2;function eP(){if(S2)return R_.exports;S2=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(),R_.exports=Pj(),R_.exports}var E2;function Nj(){if(E2)return Yu;E2=1;var e=Ij(),t=ma(),n=eP();function r(i){var a="https://react.dev/errors/"+i;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var a=i,u=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(u=a.return),i=a.return;while(i)}return a.tag===3?u:null}function l(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function c(i){if(i.tag===31){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function d(i){if(s(i)!==i)throw Error(r(188))}function f(i){var a=i.alternate;if(!a){if(a=s(i),a===null)throw Error(r(188));return a!==i?null:i}for(var u=i,m=a;;){var _=u.return;if(_===null)break;var S=_.alternate;if(S===null){if(m=_.return,m!==null){u=m;continue}break}if(_.child===S.child){for(S=_.child;S;){if(S===u)return d(_),i;if(S===m)return d(_),a;S=S.sibling}throw Error(r(188))}if(u.return!==m.return)u=_,m=S;else{for(var N=!1,U=_.child;U;){if(U===u){N=!0,u=_,m=S;break}if(U===m){N=!0,m=_,u=S;break}U=U.sibling}if(!N){for(U=S.child;U;){if(U===u){N=!0,u=S,m=_;break}if(U===m){N=!0,m=S,u=_;break}U=U.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==m)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:a}function p(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i;for(i=i.child;i!==null;){if(a=p(i),a!==null)return a;i=i.sibling}return null}var h=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),T=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function B(i){return i===null||typeof i!="object"?null:(i=$&&i[$]||i["@@iterator"],typeof i=="function"?i:null)}var z=Symbol.for("react.client.reference");function K(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===z?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case b:return"Fragment";case w:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case A:return"SuspenseList";case L:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case T:return i.displayName||"Context";case E:return(i._context.displayName||"Context")+".Consumer";case R:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case I:return a=i.displayName||null,a!==null?a:K(i.type)||"Memo";case P:a=i._payload,i=i._init;try{return K(i(a))}catch{}}return null}var oe=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},le=[],Q=-1;function k(i){return{current:i}}function G(i){0>Q||(i.current=le[Q],le[Q]=null,Q--)}function V(i,a){Q++,le[Q]=i.current,i.current=a}var D=k(null),F=k(null),X=k(null),fe=k(null);function pe(i,a){switch(V(X,a),V(F,i),V(D,null),a.nodeType){case 9:case 11:i=(i=a.documentElement)&&(i=i.namespaceURI)?$O(i):0;break;default:if(i=a.tagName,a=a.namespaceURI)a=$O(a),i=jO(a,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}G(D),V(D,i)}function xe(){G(D),G(F),G(X)}function je(i){i.memoizedState!==null&&V(fe,i);var a=D.current,u=jO(a,i.type);a!==u&&(V(F,i),V(D,u))}function Y(i){F.current===i&&(G(D),G(F)),fe.current===i&&(G(fe),Hu._currentValue=te)}var re,ve;function se(i){if(re===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);re=a&&a[1]||"",ve=-1<u.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+re+i+ve}var Se=!1;function Oe(i,a){if(!i||Se)return"";Se=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(a){var Ee=function(){throw Error()};if(Object.defineProperty(Ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ee,[])}catch(ge){var he=ge}Reflect.construct(i,[],Ee)}else{try{Ee.call()}catch(ge){he=ge}i.call(Ee.prototype)}}else{try{throw Error()}catch(ge){he=ge}(Ee=i())&&typeof Ee.catch=="function"&&Ee.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var S=m.DetermineComponentFrameRoot(),N=S[0],U=S[1];if(N&&U){var J=N.split(`
|
|
@@ -7,7 +7,7 @@ function xj(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
|
|
|
7
7
|
`+J[m].replace(" at new "," at ");return i.displayName&&ye.includes("<anonymous>")&&(ye=ye.replace("<anonymous>",i.displayName)),ye}while(1<=m&&0<=_);break}}}finally{Se=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?se(u):""}function tt(i,a){switch(i.tag){case 26:case 27:case 5:return se(i.type);case 16:return se("Lazy");case 13:return i.child!==a&&a!==null?se("Suspense Fallback"):se("Suspense");case 19:return se("SuspenseList");case 0:case 15:return Oe(i.type,!1);case 11:return Oe(i.type.render,!1);case 1:return Oe(i.type,!0);case 31:return se("Activity");default:return""}}function rt(i){try{var a="",u=null;do a+=tt(i,u),u=i,i=i.return;while(i);return a}catch(m){return`
|
|
8
8
|
Error generating stack: `+m.message+`
|
|
9
9
|
`+m.stack}}var Be=Object.prototype.hasOwnProperty,Qe=e.unstable_scheduleCallback,Pe=e.unstable_cancelCallback,Me=e.unstable_shouldYield,ze=e.unstable_requestPaint,Z=e.unstable_now,ne=e.unstable_getCurrentPriorityLevel,ae=e.unstable_ImmediatePriority,Re=e.unstable_UserBlockingPriority,Ce=e.unstable_NormalPriority,Ae=e.unstable_LowPriority,ke=e.unstable_IdlePriority,Je=e.log,et=e.unstable_setDisableYieldValue,_t=null,Tt=null;function yt(i){if(typeof Je=="function"&&et(i),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(_t,i)}catch{}}var Ln=Math.clz32?Math.clz32:Ye,Mi=Math.log,Ho=Math.LN2;function Ye(i){return i>>>=0,i===0?32:31-(Mi(i)/Ho|0)|0}var ft=256,Ct=262144,it=4194304;function Dt(i){var a=i&42;if(a!==0)return a;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Ke(i,a,u){var m=i.pendingLanes;if(m===0)return 0;var _=0,S=i.suspendedLanes,N=i.pingedLanes;i=i.warmLanes;var U=m&134217727;return U!==0?(m=U&~S,m!==0?_=Dt(m):(N&=U,N!==0?_=Dt(N):u||(u=U&~i,u!==0&&(_=Dt(u))))):(U=m&~S,U!==0?_=Dt(U):N!==0?_=Dt(N):u||(u=m&~i,u!==0&&(_=Dt(u)))),_===0?0:a!==0&&a!==_&&(a&S)===0&&(S=_&-_,u=a&-a,S>=u||S===32&&(u&4194048)!==0)?a:_}function ct(i,a){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&a)===0}function Jt(i,a){switch(i){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Kt(){var i=it;return it<<=1,(it&62914560)===0&&(it=4194304),i}function wr(i){for(var a=[],u=0;31>u;u++)a.push(i);return a}function Lt(i,a){i.pendingLanes|=a,a!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function sn(i,a,u,m,_,S){var N=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var U=i.entanglements,J=i.expirationTimes,de=i.hiddenUpdates;for(u=N&~u;0<u;){var ye=31-Ln(u),Ee=1<<ye;U[ye]=0,J[ye]=-1;var he=de[ye];if(he!==null)for(de[ye]=null,ye=0;ye<he.length;ye++){var ge=he[ye];ge!==null&&(ge.lane&=-536870913)}u&=~Ee}m!==0&&wo(i,m,0),S!==0&&_===0&&i.tag!==0&&(i.suspendedLanes|=S&~(N&~a))}function wo(i,a,u){i.pendingLanes|=a,i.suspendedLanes&=~a;var m=31-Ln(a);i.entangledLanes|=a,i.entanglements[m]=i.entanglements[m]|1073741824|u&261930}function sr(i,a){var u=i.entangledLanes|=a;for(i=i.entanglements;u;){var m=31-Ln(u),_=1<<m;_&a|i[m]&a&&(i[m]|=a),u&=~_}}function jr(i,a){var u=a&-a;return u=(u&42)!==0?1:vl(u),(u&(i.suspendedLanes|a))!==0?0:u}function vl(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function qo(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function uv(){var i=W.p;return i!==0?i:(i=window.event,i===void 0?32:a2(i.type))}function EE(i,a){var u=W.p;try{return W.p=i,a()}finally{W.p=u}}var gs=Math.random().toString(36).slice(2),ar="__reactFiber$"+gs,Ur="__reactProps$"+gs,_l="__reactContainer$"+gs,dv="__reactEvents$"+gs,hL="__reactListeners$"+gs,pL="__reactHandles$"+gs,xE="__reactResources$"+gs,iu="__reactMarker$"+gs;function fv(i){delete i[ar],delete i[Ur],delete i[dv],delete i[hL],delete i[pL]}function yl(i){var a=i[ar];if(a)return a;for(var u=i.parentNode;u;){if(a=u[_l]||u[ar]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(i=qO(i);i!==null;){if(u=i[ar])return u;i=qO(i)}return a}i=u,u=i.parentNode}return null}function bl(i){if(i=i[ar]||i[_l]){var a=i.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return i}return null}function su(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i.stateNode;throw Error(r(33))}function wl(i){var a=i[xE];return a||(a=i[xE]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function er(i){i[iu]=!0}var RE=new Set,OE={};function wa(i,a){Sl(i,a),Sl(i+"Capture",a)}function Sl(i,a){for(OE[i]=a,i=0;i<a.length;i++)RE.add(a[i])}var mL=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),TE={},CE={};function gL(i){return Be.call(CE,i)?!0:Be.call(TE,i)?!1:mL.test(i)?CE[i]=!0:(TE[i]=!0,!1)}function Tf(i,a,u){if(gL(a))if(u===null)i.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(a);return;case"boolean":var m=a.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){i.removeAttribute(a);return}}i.setAttribute(a,""+u)}}function Cf(i,a,u){if(u===null)i.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(a);return}i.setAttribute(a,""+u)}}function Pi(i,a,u,m){if(m===null)i.removeAttribute(u);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(a,u,""+m)}}function So(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function AE(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function vL(i,a,u){var m=Object.getOwnPropertyDescriptor(i.constructor.prototype,a);if(!i.hasOwnProperty(a)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var _=m.get,S=m.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return _.call(this)},set:function(N){u=""+N,S.call(this,N)}}),Object.defineProperty(i,a,{enumerable:m.enumerable}),{getValue:function(){return u},setValue:function(N){u=""+N},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function hv(i){if(!i._valueTracker){var a=AE(i)?"checked":"value";i._valueTracker=vL(i,a,""+i[a])}}function IE(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var u=a.getValue(),m="";return i&&(m=AE(i)?i.checked?"true":"false":i.value),i=m,i!==u?(a.setValue(i),!0):!1}function Af(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var _L=/[\n"\\]/g;function Eo(i){return i.replace(_L,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function pv(i,a,u,m,_,S,N,U){i.name="",N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?i.type=N:i.removeAttribute("type"),a!=null?N==="number"?(a===0&&i.value===""||i.value!=a)&&(i.value=""+So(a)):i.value!==""+So(a)&&(i.value=""+So(a)):N!=="submit"&&N!=="reset"||i.removeAttribute("value"),a!=null?mv(i,N,So(a)):u!=null?mv(i,N,So(u)):m!=null&&i.removeAttribute("value"),_==null&&S!=null&&(i.defaultChecked=!!S),_!=null&&(i.checked=_&&typeof _!="function"&&typeof _!="symbol"),U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?i.name=""+So(U):i.removeAttribute("name")}function ME(i,a,u,m,_,S,N,U){if(S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(i.type=S),a!=null||u!=null){if(!(S!=="submit"&&S!=="reset"||a!=null)){hv(i);return}u=u!=null?""+So(u):"",a=a!=null?""+So(a):u,U||a===i.value||(i.value=a),i.defaultValue=a}m=m??_,m=typeof m!="function"&&typeof m!="symbol"&&!!m,i.checked=U?i.checked:!!m,i.defaultChecked=!!m,N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(i.name=N),hv(i)}function mv(i,a,u){a==="number"&&Af(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function El(i,a,u,m){if(i=i.options,a){a={};for(var _=0;_<u.length;_++)a["$"+u[_]]=!0;for(u=0;u<i.length;u++)_=a.hasOwnProperty("$"+i[u].value),i[u].selected!==_&&(i[u].selected=_),_&&m&&(i[u].defaultSelected=!0)}else{for(u=""+So(u),a=null,_=0;_<i.length;_++){if(i[_].value===u){i[_].selected=!0,m&&(i[_].defaultSelected=!0);return}a!==null||i[_].disabled||(a=i[_])}a!==null&&(a.selected=!0)}}function PE(i,a,u){if(a!=null&&(a=""+So(a),a!==i.value&&(i.value=a),u==null)){i.defaultValue!==a&&(i.defaultValue=a);return}i.defaultValue=u!=null?""+So(u):""}function NE(i,a,u,m){if(a==null){if(m!=null){if(u!=null)throw Error(r(92));if(oe(m)){if(1<m.length)throw Error(r(93));m=m[0]}u=m}u==null&&(u=""),a=u}u=So(a),i.defaultValue=u,m=i.textContent,m===u&&m!==""&&m!==null&&(i.value=m),hv(i)}function xl(i,a){if(a){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=a;return}}i.textContent=a}var yL=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function kE(i,a,u){var m=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?m?i.setProperty(a,""):a==="float"?i.cssFloat="":i[a]="":m?i.setProperty(a,u):typeof u!="number"||u===0||yL.has(a)?a==="float"?i.cssFloat=u:i[a]=(""+u).trim():i[a]=u+"px"}function DE(i,a,u){if(a!=null&&typeof a!="object")throw Error(r(62));if(i=i.style,u!=null){for(var m in u)!u.hasOwnProperty(m)||a!=null&&a.hasOwnProperty(m)||(m.indexOf("--")===0?i.setProperty(m,""):m==="float"?i.cssFloat="":i[m]="");for(var _ in a)m=a[_],a.hasOwnProperty(_)&&u[_]!==m&&kE(i,_,m)}else for(var S in a)a.hasOwnProperty(S)&&kE(i,S,a[S])}function gv(i){if(i.indexOf("-")===-1)return!1;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bL=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),wL=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function If(i){return wL.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Ni(){}var vv=null;function _v(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Rl=null,Ol=null;function LE(i){var a=bl(i);if(a&&(i=a.stateNode)){var u=i[Ur]||null;e:switch(i=a.stateNode,a.type){case"input":if(pv(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Eo(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var m=u[a];if(m!==i&&m.form===i.form){var _=m[Ur]||null;if(!_)throw Error(r(90));pv(m,_.value,_.defaultValue,_.defaultValue,_.checked,_.defaultChecked,_.type,_.name)}}for(a=0;a<u.length;a++)m=u[a],m.form===i.form&&IE(m)}break e;case"textarea":PE(i,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&El(i,!!u.multiple,a,!1)}}}var yv=!1;function $E(i,a,u){if(yv)return i(a,u);yv=!0;try{var m=i(a);return m}finally{if(yv=!1,(Rl!==null||Ol!==null)&&(vh(),Rl&&(a=Rl,i=Ol,Ol=Rl=null,LE(a),i)))for(a=0;a<i.length;a++)LE(i[a])}}function au(i,a){var u=i.stateNode;if(u===null)return null;var m=u[Ur]||null;if(m===null)return null;u=m[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(i=i.type,m=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!m;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,a,typeof u));return u}var ki=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bv=!1;if(ki)try{var lu={};Object.defineProperty(lu,"passive",{get:function(){bv=!0}}),window.addEventListener("test",lu,lu),window.removeEventListener("test",lu,lu)}catch{bv=!1}var vs=null,wv=null,Mf=null;function jE(){if(Mf)return Mf;var i,a=wv,u=a.length,m,_="value"in vs?vs.value:vs.textContent,S=_.length;for(i=0;i<u&&a[i]===_[i];i++);var N=u-i;for(m=1;m<=N&&a[u-m]===_[S-m];m++);return Mf=_.slice(i,1<m?1-m:void 0)}function Pf(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function Nf(){return!0}function UE(){return!1}function zr(i){function a(u,m,_,S,N){this._reactName=u,this._targetInst=_,this.type=m,this.nativeEvent=S,this.target=N,this.currentTarget=null;for(var U in i)i.hasOwnProperty(U)&&(u=i[U],this[U]=u?u(S):S[U]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?Nf:UE,this.isPropagationStopped=UE,this}return h(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Nf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Nf)},persist:function(){},isPersistent:Nf}),a}var Sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kf=zr(Sa),cu=h({},Sa,{view:0,detail:0}),SL=zr(cu),Sv,Ev,uu,Df=h({},cu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rv,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==uu&&(uu&&i.type==="mousemove"?(Sv=i.screenX-uu.screenX,Ev=i.screenY-uu.screenY):Ev=Sv=0,uu=i),Sv)},movementY:function(i){return"movementY"in i?i.movementY:Ev}}),zE=zr(Df),EL=h({},Df,{dataTransfer:0}),xL=zr(EL),RL=h({},cu,{relatedTarget:0}),xv=zr(RL),OL=h({},Sa,{animationName:0,elapsedTime:0,pseudoElement:0}),TL=zr(OL),CL=h({},Sa,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),AL=zr(CL),IL=h({},Sa,{data:0}),FE=zr(IL),ML={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},PL={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},NL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kL(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=NL[i])?!!a[i]:!1}function Rv(){return kL}var DL=h({},cu,{key:function(i){if(i.key){var a=ML[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=Pf(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?PL[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rv,charCode:function(i){return i.type==="keypress"?Pf(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Pf(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),LL=zr(DL),$L=h({},Df,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),BE=zr($L),jL=h({},cu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rv}),UL=zr(jL),zL=h({},Sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),FL=zr(zL),BL=h({},Df,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),VL=zr(BL),HL=h({},Sa,{newState:0,oldState:0}),qL=zr(HL),GL=[9,13,27,32],Ov=ki&&"CompositionEvent"in window,du=null;ki&&"documentMode"in document&&(du=document.documentMode);var KL=ki&&"TextEvent"in window&&!du,VE=ki&&(!Ov||du&&8<du&&11>=du),HE=" ",qE=!1;function GE(i,a){switch(i){case"keyup":return GL.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function KE(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Tl=!1;function ZL(i,a){switch(i){case"compositionend":return KE(a);case"keypress":return a.which!==32?null:(qE=!0,HE);case"textInput":return i=a.data,i===HE&&qE?null:i;default:return null}}function YL(i,a){if(Tl)return i==="compositionend"||!Ov&&GE(i,a)?(i=jE(),Mf=wv=vs=null,Tl=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return VE&&a.locale!=="ko"?null:a.data;default:return null}}var WL={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ZE(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!WL[i.type]:a==="textarea"}function YE(i,a,u,m){Rl?Ol?Ol.push(m):Ol=[m]:Rl=m,a=xh(a,"onChange"),0<a.length&&(u=new kf("onChange","change",null,u,m),i.push({event:u,listeners:a}))}var fu=null,hu=null;function QL(i){MO(i,0)}function Lf(i){var a=su(i);if(IE(a))return i}function WE(i,a){if(i==="change")return a}var QE=!1;if(ki){var Tv;if(ki){var Cv="oninput"in document;if(!Cv){var XE=document.createElement("div");XE.setAttribute("oninput","return;"),Cv=typeof XE.oninput=="function"}Tv=Cv}else Tv=!1;QE=Tv&&(!document.documentMode||9<document.documentMode)}function JE(){fu&&(fu.detachEvent("onpropertychange",ex),hu=fu=null)}function ex(i){if(i.propertyName==="value"&&Lf(hu)){var a=[];YE(a,hu,i,_v(i)),$E(QL,a)}}function XL(i,a,u){i==="focusin"?(JE(),fu=a,hu=u,fu.attachEvent("onpropertychange",ex)):i==="focusout"&&JE()}function JL(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Lf(hu)}function e$(i,a){if(i==="click")return Lf(a)}function t$(i,a){if(i==="input"||i==="change")return Lf(a)}function n$(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var Jr=typeof Object.is=="function"?Object.is:n$;function pu(i,a){if(Jr(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var u=Object.keys(i),m=Object.keys(a);if(u.length!==m.length)return!1;for(m=0;m<u.length;m++){var _=u[m];if(!Be.call(a,_)||!Jr(i[_],a[_]))return!1}return!0}function tx(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function nx(i,a){var u=tx(i);i=0;for(var m;u;){if(u.nodeType===3){if(m=i+u.textContent.length,i<=a&&m>=a)return{node:u,offset:a-i};i=m}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=tx(u)}}function rx(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?rx(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function ox(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var a=Af(i.document);a instanceof i.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)i=a.contentWindow;else break;a=Af(i.document)}return a}function Av(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}var r$=ki&&"documentMode"in document&&11>=document.documentMode,Cl=null,Iv=null,mu=null,Mv=!1;function ix(i,a,u){var m=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Mv||Cl==null||Cl!==Af(m)||(m=Cl,"selectionStart"in m&&Av(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),mu&&pu(mu,m)||(mu=m,m=xh(Iv,"onSelect"),0<m.length&&(a=new kf("onSelect","select",null,a,u),i.push({event:a,listeners:m}),a.target=Cl)))}function Ea(i,a){var u={};return u[i.toLowerCase()]=a.toLowerCase(),u["Webkit"+i]="webkit"+a,u["Moz"+i]="moz"+a,u}var Al={animationend:Ea("Animation","AnimationEnd"),animationiteration:Ea("Animation","AnimationIteration"),animationstart:Ea("Animation","AnimationStart"),transitionrun:Ea("Transition","TransitionRun"),transitionstart:Ea("Transition","TransitionStart"),transitioncancel:Ea("Transition","TransitionCancel"),transitionend:Ea("Transition","TransitionEnd")},Pv={},sx={};ki&&(sx=document.createElement("div").style,"AnimationEvent"in window||(delete Al.animationend.animation,delete Al.animationiteration.animation,delete Al.animationstart.animation),"TransitionEvent"in window||delete Al.transitionend.transition);function xa(i){if(Pv[i])return Pv[i];if(!Al[i])return i;var a=Al[i],u;for(u in a)if(a.hasOwnProperty(u)&&u in sx)return Pv[i]=a[u];return i}var ax=xa("animationend"),lx=xa("animationiteration"),cx=xa("animationstart"),o$=xa("transitionrun"),i$=xa("transitionstart"),s$=xa("transitioncancel"),ux=xa("transitionend"),dx=new Map,Nv="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Nv.push("scrollEnd");function Go(i,a){dx.set(i,a),wa(a,[i])}var $f=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},xo=[],Il=0,kv=0;function jf(){for(var i=Il,a=kv=Il=0;a<i;){var u=xo[a];xo[a++]=null;var m=xo[a];xo[a++]=null;var _=xo[a];xo[a++]=null;var S=xo[a];if(xo[a++]=null,m!==null&&_!==null){var N=m.pending;N===null?_.next=_:(_.next=N.next,N.next=_),m.pending=_}S!==0&&fx(u,_,S)}}function Uf(i,a,u,m){xo[Il++]=i,xo[Il++]=a,xo[Il++]=u,xo[Il++]=m,kv|=m,i.lanes|=m,i=i.alternate,i!==null&&(i.lanes|=m)}function Dv(i,a,u,m){return Uf(i,a,u,m),zf(i)}function Ra(i,a){return Uf(i,null,null,a),zf(i)}function fx(i,a,u){i.lanes|=u;var m=i.alternate;m!==null&&(m.lanes|=u);for(var _=!1,S=i.return;S!==null;)S.childLanes|=u,m=S.alternate,m!==null&&(m.childLanes|=u),S.tag===22&&(i=S.stateNode,i===null||i._visibility&1||(_=!0)),i=S,S=S.return;return i.tag===3?(S=i.stateNode,_&&a!==null&&(_=31-Ln(u),i=S.hiddenUpdates,m=i[_],m===null?i[_]=[a]:m.push(a),a.lane=u|536870912),S):null}function zf(i){if(50<$u)throw $u=0,H0=null,Error(r(185));for(var a=i.return;a!==null;)i=a,a=i.return;return i.tag===3?i.stateNode:null}var Ml={};function a$(i,a,u,m){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function eo(i,a,u,m){return new a$(i,a,u,m)}function Lv(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Di(i,a){var u=i.alternate;return u===null?(u=eo(i.tag,a,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=a,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,a=i.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function hx(i,a){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=a,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,a=u.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),i}function Ff(i,a,u,m,_,S){var N=0;if(m=i,typeof i=="function")Lv(i)&&(N=1);else if(typeof i=="string")N=fj(i,u,D.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case L:return i=eo(31,u,a,_),i.elementType=L,i.lanes=S,i;case b:return Oa(u.children,_,S,a);case x:N=8,_|=24;break;case w:return i=eo(12,u,a,_|2),i.elementType=w,i.lanes=S,i;case O:return i=eo(13,u,a,_),i.elementType=O,i.lanes=S,i;case A:return i=eo(19,u,a,_),i.elementType=A,i.lanes=S,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case T:N=10;break e;case E:N=9;break e;case R:N=11;break e;case I:N=14;break e;case P:N=16,m=null;break e}N=29,u=Error(r(130,i===null?"null":typeof i,"")),m=null}return a=eo(N,u,a,_),a.elementType=i,a.type=m,a.lanes=S,a}function Oa(i,a,u,m){return i=eo(7,i,m,a),i.lanes=u,i}function $v(i,a,u){return i=eo(6,i,null,a),i.lanes=u,i}function px(i){var a=eo(18,null,null,0);return a.stateNode=i,a}function jv(i,a,u){return a=eo(4,i.children!==null?i.children:[],i.key,a),a.lanes=u,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}var mx=new WeakMap;function Ro(i,a){if(typeof i=="object"&&i!==null){var u=mx.get(i);return u!==void 0?u:(a={value:i,source:a,stack:rt(a)},mx.set(i,a),a)}return{value:i,source:a,stack:rt(a)}}var Pl=[],Nl=0,Bf=null,gu=0,Oo=[],To=0,_s=null,li=1,ci="";function Li(i,a){Pl[Nl++]=gu,Pl[Nl++]=Bf,Bf=i,gu=a}function gx(i,a,u){Oo[To++]=li,Oo[To++]=ci,Oo[To++]=_s,_s=i;var m=li;i=ci;var _=32-Ln(m)-1;m&=~(1<<_),u+=1;var S=32-Ln(a)+_;if(30<S){var N=_-_%5;S=(m&(1<<N)-1).toString(32),m>>=N,_-=N,li=1<<32-Ln(a)+_|u<<_|m,ci=S+i}else li=1<<S|u<<_|m,ci=i}function Uv(i){i.return!==null&&(Li(i,1),gx(i,1,0))}function zv(i){for(;i===Bf;)Bf=Pl[--Nl],Pl[Nl]=null,gu=Pl[--Nl],Pl[Nl]=null;for(;i===_s;)_s=Oo[--To],Oo[To]=null,ci=Oo[--To],Oo[To]=null,li=Oo[--To],Oo[To]=null}function vx(i,a){Oo[To++]=li,Oo[To++]=ci,Oo[To++]=_s,li=a.id,ci=a.overflow,_s=i}var lr=null,an=null,At=!1,ys=null,Co=!1,Fv=Error(r(519));function bs(i){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vu(Ro(a,i)),Fv}function _x(i){var a=i.stateNode,u=i.type,m=i.memoizedProps;switch(a[ar]=i,a[Ur]=m,u){case"dialog":wt("cancel",a),wt("close",a);break;case"iframe":case"object":case"embed":wt("load",a);break;case"video":case"audio":for(u=0;u<Uu.length;u++)wt(Uu[u],a);break;case"source":wt("error",a);break;case"img":case"image":case"link":wt("error",a),wt("load",a);break;case"details":wt("toggle",a);break;case"input":wt("invalid",a),ME(a,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":wt("invalid",a);break;case"textarea":wt("invalid",a),NE(a,m.value,m.defaultValue,m.children)}u=m.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||m.suppressHydrationWarning===!0||DO(a.textContent,u)?(m.popover!=null&&(wt("beforetoggle",a),wt("toggle",a)),m.onScroll!=null&&wt("scroll",a),m.onScrollEnd!=null&&wt("scrollend",a),m.onClick!=null&&(a.onclick=Ni),a=!0):a=!1,a||bs(i,!0)}function yx(i){for(lr=i.return;lr;)switch(lr.tag){case 5:case 31:case 13:Co=!1;return;case 27:case 3:Co=!0;return;default:lr=lr.return}}function kl(i){if(i!==lr)return!1;if(!At)return yx(i),At=!0,!1;var a=i.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||i_(i.type,i.memoizedProps)),u=!u),u&&an&&bs(i),yx(i),a===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));an=HO(i)}else if(a===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));an=HO(i)}else a===27?(a=an,ks(i.type)?(i=u_,u_=null,an=i):an=a):an=lr?Io(i.stateNode.nextSibling):null;return!0}function Ta(){an=lr=null,At=!1}function Bv(){var i=ys;return i!==null&&(Hr===null?Hr=i:Hr.push.apply(Hr,i),ys=null),i}function vu(i){ys===null?ys=[i]:ys.push(i)}var Vv=k(null),Ca=null,$i=null;function ws(i,a,u){V(Vv,a._currentValue),a._currentValue=u}function ji(i){i._currentValue=Vv.current,G(Vv)}function Hv(i,a,u){for(;i!==null;){var m=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,m!==null&&(m.childLanes|=a)):m!==null&&(m.childLanes&a)!==a&&(m.childLanes|=a),i===u)break;i=i.return}}function qv(i,a,u,m){var _=i.child;for(_!==null&&(_.return=i);_!==null;){var S=_.dependencies;if(S!==null){var N=_.child;S=S.firstContext;e:for(;S!==null;){var U=S;S=_;for(var J=0;J<a.length;J++)if(U.context===a[J]){S.lanes|=u,U=S.alternate,U!==null&&(U.lanes|=u),Hv(S.return,u,i),m||(N=null);break e}S=U.next}}else if(_.tag===18){if(N=_.return,N===null)throw Error(r(341));N.lanes|=u,S=N.alternate,S!==null&&(S.lanes|=u),Hv(N,u,i),N=null}else N=_.child;if(N!==null)N.return=_;else for(N=_;N!==null;){if(N===i){N=null;break}if(_=N.sibling,_!==null){_.return=N.return,N=_;break}N=N.return}_=N}}function Dl(i,a,u,m){i=null;for(var _=a,S=!1;_!==null;){if(!S){if((_.flags&524288)!==0)S=!0;else if((_.flags&262144)!==0)break}if(_.tag===10){var N=_.alternate;if(N===null)throw Error(r(387));if(N=N.memoizedProps,N!==null){var U=_.type;Jr(_.pendingProps.value,N.value)||(i!==null?i.push(U):i=[U])}}else if(_===fe.current){if(N=_.alternate,N===null)throw Error(r(387));N.memoizedState.memoizedState!==_.memoizedState.memoizedState&&(i!==null?i.push(Hu):i=[Hu])}_=_.return}i!==null&&qv(a,i,u,m),a.flags|=262144}function Vf(i){for(i=i.firstContext;i!==null;){if(!Jr(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Aa(i){Ca=i,$i=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function cr(i){return bx(Ca,i)}function Hf(i,a){return Ca===null&&Aa(i),bx(i,a)}function bx(i,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},$i===null){if(i===null)throw Error(r(308));$i=a,i.dependencies={lanes:0,firstContext:a},i.flags|=524288}else $i=$i.next=a;return u}var l$=typeof AbortController<"u"?AbortController:function(){var i=[],a=this.signal={aborted:!1,addEventListener:function(u,m){i.push(m)}};this.abort=function(){a.aborted=!0,i.forEach(function(u){return u()})}},c$=e.unstable_scheduleCallback,u$=e.unstable_NormalPriority,$n={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gv(){return{controller:new l$,data:new Map,refCount:0}}function _u(i){i.refCount--,i.refCount===0&&c$(u$,function(){i.controller.abort()})}var yu=null,Kv=0,Ll=0,$l=null;function d$(i,a){if(yu===null){var u=yu=[];Kv=0,Ll=W0(),$l={status:"pending",value:void 0,then:function(m){u.push(m)}}}return Kv++,a.then(wx,wx),a}function wx(){if(--Kv===0&&yu!==null){$l!==null&&($l.status="fulfilled");var i=yu;yu=null,Ll=0,$l=null;for(var a=0;a<i.length;a++)(0,i[a])()}}function f$(i,a){var u=[],m={status:"pending",value:null,reason:null,then:function(_){u.push(_)}};return i.then(function(){m.status="fulfilled",m.value=a;for(var _=0;_<u.length;_++)(0,u[_])(a)},function(_){for(m.status="rejected",m.reason=_,_=0;_<u.length;_++)(0,u[_])(void 0)}),m}var Sx=q.S;q.S=function(i,a){iO=Z(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&d$(i,a),Sx!==null&&Sx(i,a)};var Ia=k(null);function Zv(){var i=Ia.current;return i!==null?i:en.pooledCache}function qf(i,a){a===null?V(Ia,Ia.current):V(Ia,a.pool)}function Ex(){var i=Zv();return i===null?null:{parent:$n._currentValue,pool:i}}var jl=Error(r(460)),Yv=Error(r(474)),Gf=Error(r(542)),Kf={then:function(){}};function xx(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Rx(i,a,u){switch(u=i[u],u===void 0?i.push(a):u!==a&&(a.then(Ni,Ni),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,Tx(i),i;default:if(typeof a.status=="string")a.then(Ni,Ni);else{if(i=en,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=a,i.status="pending",i.then(function(m){if(a.status==="pending"){var _=a;_.status="fulfilled",_.value=m}},function(m){if(a.status==="pending"){var _=a;_.status="rejected",_.reason=m}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,Tx(i),i}throw Pa=a,jl}}function Ma(i){try{var a=i._init;return a(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Pa=u,jl):u}}var Pa=null;function Ox(){if(Pa===null)throw Error(r(459));var i=Pa;return Pa=null,i}function Tx(i){if(i===jl||i===Gf)throw Error(r(483))}var Ul=null,bu=0;function Zf(i){var a=bu;return bu+=1,Ul===null&&(Ul=[]),Rx(Ul,i,a)}function wu(i,a){a=a.props.ref,i.ref=a!==void 0?a:null}function Yf(i,a){throw a.$$typeof===g?Error(r(525)):(i=Object.prototype.toString.call(a),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i)))}function Cx(i){function a(ce,ie){if(i){var ue=ce.deletions;ue===null?(ce.deletions=[ie],ce.flags|=16):ue.push(ie)}}function u(ce,ie){if(!i)return null;for(;ie!==null;)a(ce,ie),ie=ie.sibling;return null}function m(ce){for(var ie=new Map;ce!==null;)ce.key!==null?ie.set(ce.key,ce):ie.set(ce.index,ce),ce=ce.sibling;return ie}function _(ce,ie){return ce=Di(ce,ie),ce.index=0,ce.sibling=null,ce}function S(ce,ie,ue){return ce.index=ue,i?(ue=ce.alternate,ue!==null?(ue=ue.index,ue<ie?(ce.flags|=67108866,ie):ue):(ce.flags|=67108866,ie)):(ce.flags|=1048576,ie)}function N(ce){return i&&ce.alternate===null&&(ce.flags|=67108866),ce}function U(ce,ie,ue,be){return ie===null||ie.tag!==6?(ie=$v(ue,ce.mode,be),ie.return=ce,ie):(ie=_(ie,ue),ie.return=ce,ie)}function J(ce,ie,ue,be){var Xe=ue.type;return Xe===b?ye(ce,ie,ue.props.children,be,ue.key):ie!==null&&(ie.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===P&&Ma(Xe)===ie.type)?(ie=_(ie,ue.props),wu(ie,ue),ie.return=ce,ie):(ie=Ff(ue.type,ue.key,ue.props,null,ce.mode,be),wu(ie,ue),ie.return=ce,ie)}function de(ce,ie,ue,be){return ie===null||ie.tag!==4||ie.stateNode.containerInfo!==ue.containerInfo||ie.stateNode.implementation!==ue.implementation?(ie=jv(ue,ce.mode,be),ie.return=ce,ie):(ie=_(ie,ue.children||[]),ie.return=ce,ie)}function ye(ce,ie,ue,be,Xe){return ie===null||ie.tag!==7?(ie=Oa(ue,ce.mode,be,Xe),ie.return=ce,ie):(ie=_(ie,ue),ie.return=ce,ie)}function Ee(ce,ie,ue){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return ie=$v(""+ie,ce.mode,ue),ie.return=ce,ie;if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case v:return ue=Ff(ie.type,ie.key,ie.props,null,ce.mode,ue),wu(ue,ie),ue.return=ce,ue;case y:return ie=jv(ie,ce.mode,ue),ie.return=ce,ie;case P:return ie=Ma(ie),Ee(ce,ie,ue)}if(oe(ie)||B(ie))return ie=Oa(ie,ce.mode,ue,null),ie.return=ce,ie;if(typeof ie.then=="function")return Ee(ce,Zf(ie),ue);if(ie.$$typeof===T)return Ee(ce,Hf(ce,ie),ue);Yf(ce,ie)}return null}function he(ce,ie,ue,be){var Xe=ie!==null?ie.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Xe!==null?null:U(ce,ie,""+ue,be);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case v:return ue.key===Xe?J(ce,ie,ue,be):null;case y:return ue.key===Xe?de(ce,ie,ue,be):null;case P:return ue=Ma(ue),he(ce,ie,ue,be)}if(oe(ue)||B(ue))return Xe!==null?null:ye(ce,ie,ue,be,null);if(typeof ue.then=="function")return he(ce,ie,Zf(ue),be);if(ue.$$typeof===T)return he(ce,ie,Hf(ce,ue),be);Yf(ce,ue)}return null}function ge(ce,ie,ue,be,Xe){if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return ce=ce.get(ue)||null,U(ie,ce,""+be,Xe);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case v:return ce=ce.get(be.key===null?ue:be.key)||null,J(ie,ce,be,Xe);case y:return ce=ce.get(be.key===null?ue:be.key)||null,de(ie,ce,be,Xe);case P:return be=Ma(be),ge(ce,ie,ue,be,Xe)}if(oe(be)||B(be))return ce=ce.get(ue)||null,ye(ie,ce,be,Xe,null);if(typeof be.then=="function")return ge(ce,ie,ue,Zf(be),Xe);if(be.$$typeof===T)return ge(ce,ie,ue,Hf(ie,be),Xe);Yf(ie,be)}return null}function Ve(ce,ie,ue,be){for(var Xe=null,$t=null,Ze=ie,at=ie=0,Ot=null;Ze!==null&&at<ue.length;at++){Ze.index>at?(Ot=Ze,Ze=null):Ot=Ze.sibling;var jt=he(ce,Ze,ue[at],be);if(jt===null){Ze===null&&(Ze=Ot);break}i&&Ze&&jt.alternate===null&&a(ce,Ze),ie=S(jt,ie,at),$t===null?Xe=jt:$t.sibling=jt,$t=jt,Ze=Ot}if(at===ue.length)return u(ce,Ze),At&&Li(ce,at),Xe;if(Ze===null){for(;at<ue.length;at++)Ze=Ee(ce,ue[at],be),Ze!==null&&(ie=S(Ze,ie,at),$t===null?Xe=Ze:$t.sibling=Ze,$t=Ze);return At&&Li(ce,at),Xe}for(Ze=m(Ze);at<ue.length;at++)Ot=ge(Ze,ce,at,ue[at],be),Ot!==null&&(i&&Ot.alternate!==null&&Ze.delete(Ot.key===null?at:Ot.key),ie=S(Ot,ie,at),$t===null?Xe=Ot:$t.sibling=Ot,$t=Ot);return i&&Ze.forEach(function(Us){return a(ce,Us)}),At&&Li(ce,at),Xe}function nt(ce,ie,ue,be){if(ue==null)throw Error(r(151));for(var Xe=null,$t=null,Ze=ie,at=ie=0,Ot=null,jt=ue.next();Ze!==null&&!jt.done;at++,jt=ue.next()){Ze.index>at?(Ot=Ze,Ze=null):Ot=Ze.sibling;var Us=he(ce,Ze,jt.value,be);if(Us===null){Ze===null&&(Ze=Ot);break}i&&Ze&&Us.alternate===null&&a(ce,Ze),ie=S(Us,ie,at),$t===null?Xe=Us:$t.sibling=Us,$t=Us,Ze=Ot}if(jt.done)return u(ce,Ze),At&&Li(ce,at),Xe;if(Ze===null){for(;!jt.done;at++,jt=ue.next())jt=Ee(ce,jt.value,be),jt!==null&&(ie=S(jt,ie,at),$t===null?Xe=jt:$t.sibling=jt,$t=jt);return At&&Li(ce,at),Xe}for(Ze=m(Ze);!jt.done;at++,jt=ue.next())jt=ge(Ze,ce,at,jt.value,be),jt!==null&&(i&&jt.alternate!==null&&Ze.delete(jt.key===null?at:jt.key),ie=S(jt,ie,at),$t===null?Xe=jt:$t.sibling=jt,$t=jt);return i&&Ze.forEach(function(Ej){return a(ce,Ej)}),At&&Li(ce,at),Xe}function Wt(ce,ie,ue,be){if(typeof ue=="object"&&ue!==null&&ue.type===b&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case v:e:{for(var Xe=ue.key;ie!==null;){if(ie.key===Xe){if(Xe=ue.type,Xe===b){if(ie.tag===7){u(ce,ie.sibling),be=_(ie,ue.props.children),be.return=ce,ce=be;break e}}else if(ie.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===P&&Ma(Xe)===ie.type){u(ce,ie.sibling),be=_(ie,ue.props),wu(be,ue),be.return=ce,ce=be;break e}u(ce,ie);break}else a(ce,ie);ie=ie.sibling}ue.type===b?(be=Oa(ue.props.children,ce.mode,be,ue.key),be.return=ce,ce=be):(be=Ff(ue.type,ue.key,ue.props,null,ce.mode,be),wu(be,ue),be.return=ce,ce=be)}return N(ce);case y:e:{for(Xe=ue.key;ie!==null;){if(ie.key===Xe)if(ie.tag===4&&ie.stateNode.containerInfo===ue.containerInfo&&ie.stateNode.implementation===ue.implementation){u(ce,ie.sibling),be=_(ie,ue.children||[]),be.return=ce,ce=be;break e}else{u(ce,ie);break}else a(ce,ie);ie=ie.sibling}be=jv(ue,ce.mode,be),be.return=ce,ce=be}return N(ce);case P:return ue=Ma(ue),Wt(ce,ie,ue,be)}if(oe(ue))return Ve(ce,ie,ue,be);if(B(ue)){if(Xe=B(ue),typeof Xe!="function")throw Error(r(150));return ue=Xe.call(ue),nt(ce,ie,ue,be)}if(typeof ue.then=="function")return Wt(ce,ie,Zf(ue),be);if(ue.$$typeof===T)return Wt(ce,ie,Hf(ce,ue),be);Yf(ce,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,ie!==null&&ie.tag===6?(u(ce,ie.sibling),be=_(ie,ue),be.return=ce,ce=be):(u(ce,ie),be=$v(ue,ce.mode,be),be.return=ce,ce=be),N(ce)):u(ce,ie)}return function(ce,ie,ue,be){try{bu=0;var Xe=Wt(ce,ie,ue,be);return Ul=null,Xe}catch(Ze){if(Ze===jl||Ze===Gf)throw Ze;var $t=eo(29,Ze,null,ce.mode);return $t.lanes=be,$t.return=ce,$t}}}var Na=Cx(!0),Ax=Cx(!1),Ss=!1;function Wv(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qv(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Es(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function xs(i,a,u){var m=i.updateQueue;if(m===null)return null;if(m=m.shared,(zt&2)!==0){var _=m.pending;return _===null?a.next=a:(a.next=_.next,_.next=a),m.pending=a,a=zf(i),fx(i,null,u),a}return Uf(i,m,a,u),zf(i)}function Su(i,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var m=a.lanes;m&=i.pendingLanes,u|=m,a.lanes=u,sr(i,u)}}function Xv(i,a){var u=i.updateQueue,m=i.alternate;if(m!==null&&(m=m.updateQueue,u===m)){var _=null,S=null;if(u=u.firstBaseUpdate,u!==null){do{var N={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};S===null?_=S=N:S=S.next=N,u=u.next}while(u!==null);S===null?_=S=a:S=S.next=a}else _=S=a;u={baseState:m.baseState,firstBaseUpdate:_,lastBaseUpdate:S,shared:m.shared,callbacks:m.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=a:i.next=a,u.lastBaseUpdate=a}var Jv=!1;function Eu(){if(Jv){var i=$l;if(i!==null)throw i}}function xu(i,a,u,m){Jv=!1;var _=i.updateQueue;Ss=!1;var S=_.firstBaseUpdate,N=_.lastBaseUpdate,U=_.shared.pending;if(U!==null){_.shared.pending=null;var J=U,de=J.next;J.next=null,N===null?S=de:N.next=de,N=J;var ye=i.alternate;ye!==null&&(ye=ye.updateQueue,U=ye.lastBaseUpdate,U!==N&&(U===null?ye.firstBaseUpdate=de:U.next=de,ye.lastBaseUpdate=J))}if(S!==null){var Ee=_.baseState;N=0,ye=de=J=null,U=S;do{var he=U.lane&-536870913,ge=he!==U.lane;if(ge?(Rt&he)===he:(m&he)===he){he!==0&&he===Ll&&(Jv=!0),ye!==null&&(ye=ye.next={lane:0,tag:U.tag,payload:U.payload,callback:null,next:null});e:{var Ve=i,nt=U;he=a;var Wt=u;switch(nt.tag){case 1:if(Ve=nt.payload,typeof Ve=="function"){Ee=Ve.call(Wt,Ee,he);break e}Ee=Ve;break e;case 3:Ve.flags=Ve.flags&-65537|128;case 0:if(Ve=nt.payload,he=typeof Ve=="function"?Ve.call(Wt,Ee,he):Ve,he==null)break e;Ee=h({},Ee,he);break e;case 2:Ss=!0}}he=U.callback,he!==null&&(i.flags|=64,ge&&(i.flags|=8192),ge=_.callbacks,ge===null?_.callbacks=[he]:ge.push(he))}else ge={lane:he,tag:U.tag,payload:U.payload,callback:U.callback,next:null},ye===null?(de=ye=ge,J=Ee):ye=ye.next=ge,N|=he;if(U=U.next,U===null){if(U=_.shared.pending,U===null)break;ge=U,U=ge.next,ge.next=null,_.lastBaseUpdate=ge,_.shared.pending=null}}while(!0);ye===null&&(J=Ee),_.baseState=J,_.firstBaseUpdate=de,_.lastBaseUpdate=ye,S===null&&(_.shared.lanes=0),As|=N,i.lanes=N,i.memoizedState=Ee}}function Ix(i,a){if(typeof i!="function")throw Error(r(191,i));i.call(a)}function Mx(i,a){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)Ix(u[i],a)}var zl=k(null),Wf=k(0);function Px(i,a){i=Ki,V(Wf,i),V(zl,a),Ki=i|a.baseLanes}function e0(){V(Wf,Ki),V(zl,zl.current)}function t0(){Ki=Wf.current,G(zl),G(Wf)}var to=k(null),Ao=null;function Rs(i){var a=i.alternate;V(Tn,Tn.current&1),V(to,i),Ao===null&&(a===null||zl.current!==null||a.memoizedState!==null)&&(Ao=i)}function n0(i){V(Tn,Tn.current),V(to,i),Ao===null&&(Ao=i)}function Nx(i){i.tag===22?(V(Tn,Tn.current),V(to,i),Ao===null&&(Ao=i)):Os()}function Os(){V(Tn,Tn.current),V(to,to.current)}function no(i){G(to),Ao===i&&(Ao=null),G(Tn)}var Tn=k(0);function Qf(i){for(var a=i;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||l_(u)||c_(u)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Ui=0,st=null,Zt=null,jn=null,Xf=!1,Fl=!1,ka=!1,Jf=0,Ru=0,Bl=null,h$=0;function xn(){throw Error(r(321))}function r0(i,a){if(a===null)return!1;for(var u=0;u<a.length&&u<i.length;u++)if(!Jr(i[u],a[u]))return!1;return!0}function o0(i,a,u,m,_,S){return Ui=S,st=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,q.H=i===null||i.memoizedState===null?gR:y0,ka=!1,S=u(m,_),ka=!1,Fl&&(S=Dx(a,u,m,_)),kx(i),S}function kx(i){q.H=Cu;var a=Zt!==null&&Zt.next!==null;if(Ui=0,jn=Zt=st=null,Xf=!1,Ru=0,Bl=null,a)throw Error(r(300));i===null||Un||(i=i.dependencies,i!==null&&Vf(i)&&(Un=!0))}function Dx(i,a,u,m){st=i;var _=0;do{if(Fl&&(Bl=null),Ru=0,Fl=!1,25<=_)throw Error(r(301));if(_+=1,jn=Zt=null,i.updateQueue!=null){var S=i.updateQueue;S.lastEffect=null,S.events=null,S.stores=null,S.memoCache!=null&&(S.memoCache.index=0)}q.H=vR,S=a(u,m)}while(Fl);return S}function p$(){var i=q.H,a=i.useState()[0];return a=typeof a.then=="function"?Ou(a):a,i=i.useState()[0],(Zt!==null?Zt.memoizedState:null)!==i&&(st.flags|=1024),a}function i0(){var i=Jf!==0;return Jf=0,i}function s0(i,a,u){a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~u}function a0(i){if(Xf){for(i=i.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Xf=!1}Ui=0,jn=Zt=st=null,Fl=!1,Ru=Jf=0,Bl=null}function Mr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jn===null?st.memoizedState=jn=i:jn=jn.next=i,jn}function Cn(){if(Zt===null){var i=st.alternate;i=i!==null?i.memoizedState:null}else i=Zt.next;var a=jn===null?st.memoizedState:jn.next;if(a!==null)jn=a,Zt=i;else{if(i===null)throw st.alternate===null?Error(r(467)):Error(r(310));Zt=i,i={memoizedState:Zt.memoizedState,baseState:Zt.baseState,baseQueue:Zt.baseQueue,queue:Zt.queue,next:null},jn===null?st.memoizedState=jn=i:jn=jn.next=i}return jn}function eh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ou(i){var a=Ru;return Ru+=1,Bl===null&&(Bl=[]),i=Rx(Bl,i,a),a=st,(jn===null?a.memoizedState:jn.next)===null&&(a=a.alternate,q.H=a===null||a.memoizedState===null?gR:y0),i}function th(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Ou(i);if(i.$$typeof===T)return cr(i)}throw Error(r(438,String(i)))}function l0(i){var a=null,u=st.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var m=st.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(a={data:m.data.map(function(_){return _.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=eh(),st.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(i),m=0;m<i;m++)u[m]=H;return a.index++,u}function zi(i,a){return typeof a=="function"?a(i):a}function nh(i){var a=Cn();return c0(a,Zt,i)}function c0(i,a,u){var m=i.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=u;var _=i.baseQueue,S=m.pending;if(S!==null){if(_!==null){var N=_.next;_.next=S.next,S.next=N}a.baseQueue=_=S,m.pending=null}if(S=i.baseState,_===null)i.memoizedState=S;else{a=_.next;var U=N=null,J=null,de=a,ye=!1;do{var Ee=de.lane&-536870913;if(Ee!==de.lane?(Rt&Ee)===Ee:(Ui&Ee)===Ee){var he=de.revertLane;if(he===0)J!==null&&(J=J.next={lane:0,revertLane:0,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),Ee===Ll&&(ye=!0);else if((Ui&he)===he){de=de.next,he===Ll&&(ye=!0);continue}else Ee={lane:0,revertLane:de.revertLane,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},J===null?(U=J=Ee,N=S):J=J.next=Ee,st.lanes|=he,As|=he;Ee=de.action,ka&&u(S,Ee),S=de.hasEagerState?de.eagerState:u(S,Ee)}else he={lane:Ee,revertLane:de.revertLane,gesture:de.gesture,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},J===null?(U=J=he,N=S):J=J.next=he,st.lanes|=Ee,As|=Ee;de=de.next}while(de!==null&&de!==a);if(J===null?N=S:J.next=U,!Jr(S,i.memoizedState)&&(Un=!0,ye&&(u=$l,u!==null)))throw u;i.memoizedState=S,i.baseState=N,i.baseQueue=J,m.lastRenderedState=S}return _===null&&(m.lanes=0),[i.memoizedState,m.dispatch]}function u0(i){var a=Cn(),u=a.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var m=u.dispatch,_=u.pending,S=a.memoizedState;if(_!==null){u.pending=null;var N=_=_.next;do S=i(S,N.action),N=N.next;while(N!==_);Jr(S,a.memoizedState)||(Un=!0),a.memoizedState=S,a.baseQueue===null&&(a.baseState=S),u.lastRenderedState=S}return[S,m]}function Lx(i,a,u){var m=st,_=Cn(),S=At;if(S){if(u===void 0)throw Error(r(407));u=u()}else u=a();var N=!Jr((Zt||_).memoizedState,u);if(N&&(_.memoizedState=u,Un=!0),_=_.queue,h0(Ux.bind(null,m,_,i),[i]),_.getSnapshot!==a||N||jn!==null&&jn.memoizedState.tag&1){if(m.flags|=2048,Vl(9,{destroy:void 0},jx.bind(null,m,_,u,a),null),en===null)throw Error(r(349));S||(Ui&127)!==0||$x(m,a,u)}return u}function $x(i,a,u){i.flags|=16384,i={getSnapshot:a,value:u},a=st.updateQueue,a===null?(a=eh(),st.updateQueue=a,a.stores=[i]):(u=a.stores,u===null?a.stores=[i]:u.push(i))}function jx(i,a,u,m){a.value=u,a.getSnapshot=m,zx(a)&&Fx(i)}function Ux(i,a,u){return u(function(){zx(a)&&Fx(i)})}function zx(i){var a=i.getSnapshot;i=i.value;try{var u=a();return!Jr(i,u)}catch{return!0}}function Fx(i){var a=Ra(i,2);a!==null&&qr(a,i,2)}function d0(i){var a=Mr();if(typeof i=="function"){var u=i;if(i=u(),ka){yt(!0);try{u()}finally{yt(!1)}}}return a.memoizedState=a.baseState=i,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zi,lastRenderedState:i},a}function Bx(i,a,u,m){return i.baseState=u,c0(i,Zt,typeof m=="function"?m:zi)}function m$(i,a,u,m,_){if(ih(i))throw Error(r(485));if(i=a.action,i!==null){var S={payload:_,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(N){S.listeners.push(N)}};q.T!==null?u(!0):S.isTransition=!1,m(S),u=a.pending,u===null?(S.next=a.pending=S,Vx(a,S)):(S.next=u.next,a.pending=u.next=S)}}function Vx(i,a){var u=a.action,m=a.payload,_=i.state;if(a.isTransition){var S=q.T,N={};q.T=N;try{var U=u(_,m),J=q.S;J!==null&&J(N,U),Hx(i,a,U)}catch(de){f0(i,a,de)}finally{S!==null&&N.types!==null&&(S.types=N.types),q.T=S}}else try{S=u(_,m),Hx(i,a,S)}catch(de){f0(i,a,de)}}function Hx(i,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(m){qx(i,a,m)},function(m){return f0(i,a,m)}):qx(i,a,u)}function qx(i,a,u){a.status="fulfilled",a.value=u,Gx(a),i.state=u,a=i.pending,a!==null&&(u=a.next,u===a?i.pending=null:(u=u.next,a.next=u,Vx(i,u)))}function f0(i,a,u){var m=i.pending;if(i.pending=null,m!==null){m=m.next;do a.status="rejected",a.reason=u,Gx(a),a=a.next;while(a!==m)}i.action=null}function Gx(i){i=i.listeners;for(var a=0;a<i.length;a++)(0,i[a])()}function Kx(i,a){return a}function Zx(i,a){if(At){var u=en.formState;if(u!==null){e:{var m=st;if(At){if(an){t:{for(var _=an,S=Co;_.nodeType!==8;){if(!S){_=null;break t}if(_=Io(_.nextSibling),_===null){_=null;break t}}S=_.data,_=S==="F!"||S==="F"?_:null}if(_){an=Io(_.nextSibling),m=_.data==="F!";break e}}bs(m)}m=!1}m&&(a=u[0])}}return u=Mr(),u.memoizedState=u.baseState=a,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kx,lastRenderedState:a},u.queue=m,u=hR.bind(null,st,m),m.dispatch=u,m=d0(!1),S=_0.bind(null,st,!1,m.queue),m=Mr(),_={state:a,dispatch:null,action:i,pending:null},m.queue=_,u=m$.bind(null,st,_,S,u),_.dispatch=u,m.memoizedState=i,[a,u,!1]}function Yx(i){var a=Cn();return Wx(a,Zt,i)}function Wx(i,a,u){if(a=c0(i,a,Kx)[0],i=nh(zi)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var m=Ou(a)}catch(N){throw N===jl?Gf:N}else m=a;a=Cn();var _=a.queue,S=_.dispatch;return u!==a.memoizedState&&(st.flags|=2048,Vl(9,{destroy:void 0},g$.bind(null,_,u),null)),[m,S,i]}function g$(i,a){i.action=a}function Qx(i){var a=Cn(),u=Zt;if(u!==null)return Wx(a,u,i);Cn(),a=a.memoizedState,u=Cn();var m=u.queue.dispatch;return u.memoizedState=i,[a,m,!1]}function Vl(i,a,u,m){return i={tag:i,create:u,deps:m,inst:a,next:null},a=st.updateQueue,a===null&&(a=eh(),st.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=i.next=i:(m=u.next,u.next=i,i.next=m,a.lastEffect=i),i}function Xx(){return Cn().memoizedState}function rh(i,a,u,m){var _=Mr();st.flags|=i,_.memoizedState=Vl(1|a,{destroy:void 0},u,m===void 0?null:m)}function oh(i,a,u,m){var _=Cn();m=m===void 0?null:m;var S=_.memoizedState.inst;Zt!==null&&m!==null&&r0(m,Zt.memoizedState.deps)?_.memoizedState=Vl(a,S,u,m):(st.flags|=i,_.memoizedState=Vl(1|a,S,u,m))}function Jx(i,a){rh(8390656,8,i,a)}function h0(i,a){oh(2048,8,i,a)}function v$(i){st.flags|=4;var a=st.updateQueue;if(a===null)a=eh(),st.updateQueue=a,a.events=[i];else{var u=a.events;u===null?a.events=[i]:u.push(i)}}function eR(i){var a=Cn().memoizedState;return v$({ref:a,nextImpl:i}),function(){if((zt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function tR(i,a){return oh(4,2,i,a)}function nR(i,a){return oh(4,4,i,a)}function rR(i,a){if(typeof a=="function"){i=i();var u=a(i);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function oR(i,a,u){u=u!=null?u.concat([i]):null,oh(4,4,rR.bind(null,a,i),u)}function p0(){}function iR(i,a){var u=Cn();a=a===void 0?null:a;var m=u.memoizedState;return a!==null&&r0(a,m[1])?m[0]:(u.memoizedState=[i,a],i)}function sR(i,a){var u=Cn();a=a===void 0?null:a;var m=u.memoizedState;if(a!==null&&r0(a,m[1]))return m[0];if(m=i(),ka){yt(!0);try{i()}finally{yt(!1)}}return u.memoizedState=[m,a],m}function m0(i,a,u){return u===void 0||(Ui&1073741824)!==0&&(Rt&261930)===0?i.memoizedState=a:(i.memoizedState=u,i=aO(),st.lanes|=i,As|=i,u)}function aR(i,a,u,m){return Jr(u,a)?u:zl.current!==null?(i=m0(i,u,m),Jr(i,a)||(Un=!0),i):(Ui&42)===0||(Ui&1073741824)!==0&&(Rt&261930)===0?(Un=!0,i.memoizedState=u):(i=aO(),st.lanes|=i,As|=i,a)}function lR(i,a,u,m,_){var S=W.p;W.p=S!==0&&8>S?S:8;var N=q.T,U={};q.T=U,_0(i,!1,a,u);try{var J=_(),de=q.S;if(de!==null&&de(U,J),J!==null&&typeof J=="object"&&typeof J.then=="function"){var ye=f$(J,m);Tu(i,a,ye,io(i))}else Tu(i,a,m,io(i))}catch(Ee){Tu(i,a,{then:function(){},status:"rejected",reason:Ee},io())}finally{W.p=S,N!==null&&U.types!==null&&(N.types=U.types),q.T=N}}function _$(){}function g0(i,a,u,m){if(i.tag!==5)throw Error(r(476));var _=cR(i).queue;lR(i,_,a,te,u===null?_$:function(){return uR(i),u(m)})}function cR(i){var a=i.memoizedState;if(a!==null)return a;a={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zi,lastRenderedState:te},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zi,lastRenderedState:u},next:null},i.memoizedState=a,i=i.alternate,i!==null&&(i.memoizedState=a),a}function uR(i){var a=cR(i);a.next===null&&(a=i.alternate.memoizedState),Tu(i,a.next.queue,{},io())}function v0(){return cr(Hu)}function dR(){return Cn().memoizedState}function fR(){return Cn().memoizedState}function y$(i){for(var a=i.return;a!==null;){switch(a.tag){case 24:case 3:var u=io();i=Es(u);var m=xs(a,i,u);m!==null&&(qr(m,a,u),Su(m,a,u)),a={cache:Gv()},i.payload=a;return}a=a.return}}function b$(i,a,u){var m=io();u={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},ih(i)?pR(a,u):(u=Dv(i,a,u,m),u!==null&&(qr(u,i,m),mR(u,a,m)))}function hR(i,a,u){var m=io();Tu(i,a,u,m)}function Tu(i,a,u,m){var _={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(ih(i))pR(a,_);else{var S=i.alternate;if(i.lanes===0&&(S===null||S.lanes===0)&&(S=a.lastRenderedReducer,S!==null))try{var N=a.lastRenderedState,U=S(N,u);if(_.hasEagerState=!0,_.eagerState=U,Jr(U,N))return Uf(i,a,_,0),en===null&&jf(),!1}catch{}if(u=Dv(i,a,_,m),u!==null)return qr(u,i,m),mR(u,a,m),!0}return!1}function _0(i,a,u,m){if(m={lane:2,revertLane:W0(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},ih(i)){if(a)throw Error(r(479))}else a=Dv(i,u,m,2),a!==null&&qr(a,i,2)}function ih(i){var a=i.alternate;return i===st||a!==null&&a===st}function pR(i,a){Fl=Xf=!0;var u=i.pending;u===null?a.next=a:(a.next=u.next,u.next=a),i.pending=a}function mR(i,a,u){if((u&4194048)!==0){var m=a.lanes;m&=i.pendingLanes,u|=m,a.lanes=u,sr(i,u)}}var Cu={readContext:cr,use:th,useCallback:xn,useContext:xn,useEffect:xn,useImperativeHandle:xn,useLayoutEffect:xn,useInsertionEffect:xn,useMemo:xn,useReducer:xn,useRef:xn,useState:xn,useDebugValue:xn,useDeferredValue:xn,useTransition:xn,useSyncExternalStore:xn,useId:xn,useHostTransitionStatus:xn,useFormState:xn,useActionState:xn,useOptimistic:xn,useMemoCache:xn,useCacheRefresh:xn};Cu.useEffectEvent=xn;var gR={readContext:cr,use:th,useCallback:function(i,a){return Mr().memoizedState=[i,a===void 0?null:a],i},useContext:cr,useEffect:Jx,useImperativeHandle:function(i,a,u){u=u!=null?u.concat([i]):null,rh(4194308,4,rR.bind(null,a,i),u)},useLayoutEffect:function(i,a){return rh(4194308,4,i,a)},useInsertionEffect:function(i,a){rh(4,2,i,a)},useMemo:function(i,a){var u=Mr();a=a===void 0?null:a;var m=i();if(ka){yt(!0);try{i()}finally{yt(!1)}}return u.memoizedState=[m,a],m},useReducer:function(i,a,u){var m=Mr();if(u!==void 0){var _=u(a);if(ka){yt(!0);try{u(a)}finally{yt(!1)}}}else _=a;return m.memoizedState=m.baseState=_,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:_},m.queue=i,i=i.dispatch=b$.bind(null,st,i),[m.memoizedState,i]},useRef:function(i){var a=Mr();return i={current:i},a.memoizedState=i},useState:function(i){i=d0(i);var a=i.queue,u=hR.bind(null,st,a);return a.dispatch=u,[i.memoizedState,u]},useDebugValue:p0,useDeferredValue:function(i,a){var u=Mr();return m0(u,i,a)},useTransition:function(){var i=d0(!1);return i=lR.bind(null,st,i.queue,!0,!1),Mr().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,a,u){var m=st,_=Mr();if(At){if(u===void 0)throw Error(r(407));u=u()}else{if(u=a(),en===null)throw Error(r(349));(Rt&127)!==0||$x(m,a,u)}_.memoizedState=u;var S={value:u,getSnapshot:a};return _.queue=S,Jx(Ux.bind(null,m,S,i),[i]),m.flags|=2048,Vl(9,{destroy:void 0},jx.bind(null,m,S,u,a),null),u},useId:function(){var i=Mr(),a=en.identifierPrefix;if(At){var u=ci,m=li;u=(m&~(1<<32-Ln(m)-1)).toString(32)+u,a="_"+a+"R_"+u,u=Jf++,0<u&&(a+="H"+u.toString(32)),a+="_"}else u=h$++,a="_"+a+"r_"+u.toString(32)+"_";return i.memoizedState=a},useHostTransitionStatus:v0,useFormState:Zx,useActionState:Zx,useOptimistic:function(i){var a=Mr();a.memoizedState=a.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=_0.bind(null,st,!0,u),u.dispatch=a,[i,a]},useMemoCache:l0,useCacheRefresh:function(){return Mr().memoizedState=y$.bind(null,st)},useEffectEvent:function(i){var a=Mr(),u={impl:i};return a.memoizedState=u,function(){if((zt&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},y0={readContext:cr,use:th,useCallback:iR,useContext:cr,useEffect:h0,useImperativeHandle:oR,useInsertionEffect:tR,useLayoutEffect:nR,useMemo:sR,useReducer:nh,useRef:Xx,useState:function(){return nh(zi)},useDebugValue:p0,useDeferredValue:function(i,a){var u=Cn();return aR(u,Zt.memoizedState,i,a)},useTransition:function(){var i=nh(zi)[0],a=Cn().memoizedState;return[typeof i=="boolean"?i:Ou(i),a]},useSyncExternalStore:Lx,useId:dR,useHostTransitionStatus:v0,useFormState:Yx,useActionState:Yx,useOptimistic:function(i,a){var u=Cn();return Bx(u,Zt,i,a)},useMemoCache:l0,useCacheRefresh:fR};y0.useEffectEvent=eR;var vR={readContext:cr,use:th,useCallback:iR,useContext:cr,useEffect:h0,useImperativeHandle:oR,useInsertionEffect:tR,useLayoutEffect:nR,useMemo:sR,useReducer:u0,useRef:Xx,useState:function(){return u0(zi)},useDebugValue:p0,useDeferredValue:function(i,a){var u=Cn();return Zt===null?m0(u,i,a):aR(u,Zt.memoizedState,i,a)},useTransition:function(){var i=u0(zi)[0],a=Cn().memoizedState;return[typeof i=="boolean"?i:Ou(i),a]},useSyncExternalStore:Lx,useId:dR,useHostTransitionStatus:v0,useFormState:Qx,useActionState:Qx,useOptimistic:function(i,a){var u=Cn();return Zt!==null?Bx(u,Zt,i,a):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:l0,useCacheRefresh:fR};vR.useEffectEvent=eR;function b0(i,a,u,m){a=i.memoizedState,u=u(m,a),u=u==null?a:h({},a,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var w0={enqueueSetState:function(i,a,u){i=i._reactInternals;var m=io(),_=Es(m);_.payload=a,u!=null&&(_.callback=u),a=xs(i,_,m),a!==null&&(qr(a,i,m),Su(a,i,m))},enqueueReplaceState:function(i,a,u){i=i._reactInternals;var m=io(),_=Es(m);_.tag=1,_.payload=a,u!=null&&(_.callback=u),a=xs(i,_,m),a!==null&&(qr(a,i,m),Su(a,i,m))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var u=io(),m=Es(u);m.tag=2,a!=null&&(m.callback=a),a=xs(i,m,u),a!==null&&(qr(a,i,u),Su(a,i,u))}};function _R(i,a,u,m,_,S,N){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(m,S,N):a.prototype&&a.prototype.isPureReactComponent?!pu(u,m)||!pu(_,S):!0}function yR(i,a,u,m){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,m),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,m),a.state!==i&&w0.enqueueReplaceState(a,a.state,null)}function Da(i,a){var u=a;if("ref"in a){u={};for(var m in a)m!=="ref"&&(u[m]=a[m])}if(i=i.defaultProps){u===a&&(u=h({},u));for(var _ in i)u[_]===void 0&&(u[_]=i[_])}return u}function bR(i){$f(i)}function wR(i){console.error(i)}function SR(i){$f(i)}function sh(i,a){try{var u=i.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(m){setTimeout(function(){throw m})}}function ER(i,a,u){try{var m=i.onCaughtError;m(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(_){setTimeout(function(){throw _})}}function S0(i,a,u){return u=Es(u),u.tag=3,u.payload={element:null},u.callback=function(){sh(i,a)},u}function xR(i){return i=Es(i),i.tag=3,i}function RR(i,a,u,m){var _=u.type.getDerivedStateFromError;if(typeof _=="function"){var S=m.value;i.payload=function(){return _(S)},i.callback=function(){ER(a,u,m)}}var N=u.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(i.callback=function(){ER(a,u,m),typeof _!="function"&&(Is===null?Is=new Set([this]):Is.add(this));var U=m.stack;this.componentDidCatch(m.value,{componentStack:U!==null?U:""})})}function w$(i,a,u,m,_){if(u.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(a=u.alternate,a!==null&&Dl(a,u,_,!0),u=to.current,u!==null){switch(u.tag){case 31:case 13:return Ao===null?_h():u.alternate===null&&Rn===0&&(Rn=3),u.flags&=-257,u.flags|=65536,u.lanes=_,m===Kf?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([m]):a.add(m),K0(i,m,_)),!1;case 22:return u.flags|=65536,m===Kf?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([m])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([m]):u.add(m)),K0(i,m,_)),!1}throw Error(r(435,u.tag))}return K0(i,m,_),_h(),!1}if(At)return a=to.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=_,m!==Fv&&(i=Error(r(422),{cause:m}),vu(Ro(i,u)))):(m!==Fv&&(a=Error(r(423),{cause:m}),vu(Ro(a,u))),i=i.current.alternate,i.flags|=65536,_&=-_,i.lanes|=_,m=Ro(m,u),_=S0(i.stateNode,m,_),Xv(i,_),Rn!==4&&(Rn=2)),!1;var S=Error(r(520),{cause:m});if(S=Ro(S,u),Lu===null?Lu=[S]:Lu.push(S),Rn!==4&&(Rn=2),a===null)return!0;m=Ro(m,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,i=_&-_,u.lanes|=i,i=S0(u.stateNode,m,i),Xv(u,i),!1;case 1:if(a=u.type,S=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Is===null||!Is.has(S))))return u.flags|=65536,_&=-_,u.lanes|=_,_=xR(_),RR(_,i,u,m),Xv(u,_),!1}u=u.return}while(u!==null);return!1}var E0=Error(r(461)),Un=!1;function ur(i,a,u,m){a.child=i===null?Ax(a,null,u,m):Na(a,i.child,u,m)}function OR(i,a,u,m,_){u=u.render;var S=a.ref;if("ref"in m){var N={};for(var U in m)U!=="ref"&&(N[U]=m[U])}else N=m;return Aa(a),m=o0(i,a,u,N,S,_),U=i0(),i!==null&&!Un?(s0(i,a,_),Fi(i,a,_)):(At&&U&&Uv(a),a.flags|=1,ur(i,a,m,_),a.child)}function TR(i,a,u,m,_){if(i===null){var S=u.type;return typeof S=="function"&&!Lv(S)&&S.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=S,CR(i,a,S,m,_)):(i=Ff(u.type,null,m,a,a.mode,_),i.ref=a.ref,i.return=a,a.child=i)}if(S=i.child,!M0(i,_)){var N=S.memoizedProps;if(u=u.compare,u=u!==null?u:pu,u(N,m)&&i.ref===a.ref)return Fi(i,a,_)}return a.flags|=1,i=Di(S,m),i.ref=a.ref,i.return=a,a.child=i}function CR(i,a,u,m,_){if(i!==null){var S=i.memoizedProps;if(pu(S,m)&&i.ref===a.ref)if(Un=!1,a.pendingProps=m=S,M0(i,_))(i.flags&131072)!==0&&(Un=!0);else return a.lanes=i.lanes,Fi(i,a,_)}return x0(i,a,u,m,_)}function AR(i,a,u,m){var _=m.children,S=i!==null?i.memoizedState:null;if(i===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((a.flags&128)!==0){if(S=S!==null?S.baseLanes|u:u,i!==null){for(m=a.child=i.child,_=0;m!==null;)_=_|m.lanes|m.childLanes,m=m.sibling;m=_&~S}else m=0,a.child=null;return IR(i,a,S,u,m)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},i!==null&&qf(a,S!==null?S.cachePool:null),S!==null?Px(a,S):e0(),Nx(a);else return m=a.lanes=536870912,IR(i,a,S!==null?S.baseLanes|u:u,u,m)}else S!==null?(qf(a,S.cachePool),Px(a,S),Os(),a.memoizedState=null):(i!==null&&qf(a,null),e0(),Os());return ur(i,a,_,u),a.child}function Au(i,a){return i!==null&&i.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function IR(i,a,u,m,_){var S=Zv();return S=S===null?null:{parent:$n._currentValue,pool:S},a.memoizedState={baseLanes:u,cachePool:S},i!==null&&qf(a,null),e0(),Nx(a),i!==null&&Dl(i,a,m,!0),a.childLanes=_,null}function ah(i,a){return a=ch({mode:a.mode,children:a.children},i.mode),a.ref=i.ref,i.child=a,a.return=i,a}function MR(i,a,u){return Na(a,i.child,null,u),i=ah(a,a.pendingProps),i.flags|=2,no(a),a.memoizedState=null,i}function S$(i,a,u){var m=a.pendingProps,_=(a.flags&128)!==0;if(a.flags&=-129,i===null){if(At){if(m.mode==="hidden")return i=ah(a,m),a.lanes=536870912,Au(null,i);if(n0(a),(i=an)?(i=VO(i,Co),i=i!==null&&i.data==="&"?i:null,i!==null&&(a.memoizedState={dehydrated:i,treeContext:_s!==null?{id:li,overflow:ci}:null,retryLane:536870912,hydrationErrors:null},u=px(i),u.return=a,a.child=u,lr=a,an=null)):i=null,i===null)throw bs(a);return a.lanes=536870912,null}return ah(a,m)}var S=i.memoizedState;if(S!==null){var N=S.dehydrated;if(n0(a),_)if(a.flags&256)a.flags&=-257,a=MR(i,a,u);else if(a.memoizedState!==null)a.child=i.child,a.flags|=128,a=null;else throw Error(r(558));else if(Un||Dl(i,a,u,!1),_=(u&i.childLanes)!==0,Un||_){if(m=en,m!==null&&(N=jr(m,u),N!==0&&N!==S.retryLane))throw S.retryLane=N,Ra(i,N),qr(m,i,N),E0;_h(),a=MR(i,a,u)}else i=S.treeContext,an=Io(N.nextSibling),lr=a,At=!0,ys=null,Co=!1,i!==null&&vx(a,i),a=ah(a,m),a.flags|=4096;return a}return i=Di(i.child,{mode:m.mode,children:m.children}),i.ref=a.ref,a.child=i,i.return=a,i}function lh(i,a){var u=a.ref;if(u===null)i!==null&&i.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(a.flags|=4194816)}}function x0(i,a,u,m,_){return Aa(a),u=o0(i,a,u,m,void 0,_),m=i0(),i!==null&&!Un?(s0(i,a,_),Fi(i,a,_)):(At&&m&&Uv(a),a.flags|=1,ur(i,a,u,_),a.child)}function PR(i,a,u,m,_,S){return Aa(a),a.updateQueue=null,u=Dx(a,m,u,_),kx(i),m=i0(),i!==null&&!Un?(s0(i,a,S),Fi(i,a,S)):(At&&m&&Uv(a),a.flags|=1,ur(i,a,u,S),a.child)}function NR(i,a,u,m,_){if(Aa(a),a.stateNode===null){var S=Ml,N=u.contextType;typeof N=="object"&&N!==null&&(S=cr(N)),S=new u(m,S),a.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,S.updater=w0,a.stateNode=S,S._reactInternals=a,S=a.stateNode,S.props=m,S.state=a.memoizedState,S.refs={},Wv(a),N=u.contextType,S.context=typeof N=="object"&&N!==null?cr(N):Ml,S.state=a.memoizedState,N=u.getDerivedStateFromProps,typeof N=="function"&&(b0(a,u,N,m),S.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(N=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),N!==S.state&&w0.enqueueReplaceState(S,S.state,null),xu(a,m,S,_),Eu(),S.state=a.memoizedState),typeof S.componentDidMount=="function"&&(a.flags|=4194308),m=!0}else if(i===null){S=a.stateNode;var U=a.memoizedProps,J=Da(u,U);S.props=J;var de=S.context,ye=u.contextType;N=Ml,typeof ye=="object"&&ye!==null&&(N=cr(ye));var Ee=u.getDerivedStateFromProps;ye=typeof Ee=="function"||typeof S.getSnapshotBeforeUpdate=="function",U=a.pendingProps!==U,ye||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(U||de!==N)&&yR(a,S,m,N),Ss=!1;var he=a.memoizedState;S.state=he,xu(a,m,S,_),Eu(),de=a.memoizedState,U||he!==de||Ss?(typeof Ee=="function"&&(b0(a,u,Ee,m),de=a.memoizedState),(J=Ss||_R(a,u,J,m,he,de,N))?(ye||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(a.flags|=4194308)):(typeof S.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=m,a.memoizedState=de),S.props=m,S.state=de,S.context=N,m=J):(typeof S.componentDidMount=="function"&&(a.flags|=4194308),m=!1)}else{S=a.stateNode,Qv(i,a),N=a.memoizedProps,ye=Da(u,N),S.props=ye,Ee=a.pendingProps,he=S.context,de=u.contextType,J=Ml,typeof de=="object"&&de!==null&&(J=cr(de)),U=u.getDerivedStateFromProps,(de=typeof U=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(N!==Ee||he!==J)&&yR(a,S,m,J),Ss=!1,he=a.memoizedState,S.state=he,xu(a,m,S,_),Eu();var ge=a.memoizedState;N!==Ee||he!==ge||Ss||i!==null&&i.dependencies!==null&&Vf(i.dependencies)?(typeof U=="function"&&(b0(a,u,U,m),ge=a.memoizedState),(ye=Ss||_R(a,u,ye,m,he,ge,J)||i!==null&&i.dependencies!==null&&Vf(i.dependencies))?(de||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(m,ge,J),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(m,ge,J)),typeof S.componentDidUpdate=="function"&&(a.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof S.componentDidUpdate!="function"||N===i.memoizedProps&&he===i.memoizedState||(a.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&he===i.memoizedState||(a.flags|=1024),a.memoizedProps=m,a.memoizedState=ge),S.props=m,S.state=ge,S.context=J,m=ye):(typeof S.componentDidUpdate!="function"||N===i.memoizedProps&&he===i.memoizedState||(a.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&he===i.memoizedState||(a.flags|=1024),m=!1)}return S=m,lh(i,a),m=(a.flags&128)!==0,S||m?(S=a.stateNode,u=m&&typeof u.getDerivedStateFromError!="function"?null:S.render(),a.flags|=1,i!==null&&m?(a.child=Na(a,i.child,null,_),a.child=Na(a,null,u,_)):ur(i,a,u,_),a.memoizedState=S.state,i=a.child):i=Fi(i,a,_),i}function kR(i,a,u,m){return Ta(),a.flags|=256,ur(i,a,u,m),a.child}var R0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function O0(i){return{baseLanes:i,cachePool:Ex()}}function T0(i,a,u){return i=i!==null?i.childLanes&~u:0,a&&(i|=oo),i}function DR(i,a,u){var m=a.pendingProps,_=!1,S=(a.flags&128)!==0,N;if((N=S)||(N=i!==null&&i.memoizedState===null?!1:(Tn.current&2)!==0),N&&(_=!0,a.flags&=-129),N=(a.flags&32)!==0,a.flags&=-33,i===null){if(At){if(_?Rs(a):Os(),(i=an)?(i=VO(i,Co),i=i!==null&&i.data!=="&"?i:null,i!==null&&(a.memoizedState={dehydrated:i,treeContext:_s!==null?{id:li,overflow:ci}:null,retryLane:536870912,hydrationErrors:null},u=px(i),u.return=a,a.child=u,lr=a,an=null)):i=null,i===null)throw bs(a);return c_(i)?a.lanes=32:a.lanes=536870912,null}var U=m.children;return m=m.fallback,_?(Os(),_=a.mode,U=ch({mode:"hidden",children:U},_),m=Oa(m,_,u,null),U.return=a,m.return=a,U.sibling=m,a.child=U,m=a.child,m.memoizedState=O0(u),m.childLanes=T0(i,N,u),a.memoizedState=R0,Au(null,m)):(Rs(a),C0(a,U))}var J=i.memoizedState;if(J!==null&&(U=J.dehydrated,U!==null)){if(S)a.flags&256?(Rs(a),a.flags&=-257,a=A0(i,a,u)):a.memoizedState!==null?(Os(),a.child=i.child,a.flags|=128,a=null):(Os(),U=m.fallback,_=a.mode,m=ch({mode:"visible",children:m.children},_),U=Oa(U,_,u,null),U.flags|=2,m.return=a,U.return=a,m.sibling=U,a.child=m,Na(a,i.child,null,u),m=a.child,m.memoizedState=O0(u),m.childLanes=T0(i,N,u),a.memoizedState=R0,a=Au(null,m));else if(Rs(a),c_(U)){if(N=U.nextSibling&&U.nextSibling.dataset,N)var de=N.dgst;N=de,m=Error(r(419)),m.stack="",m.digest=N,vu({value:m,source:null,stack:null}),a=A0(i,a,u)}else if(Un||Dl(i,a,u,!1),N=(u&i.childLanes)!==0,Un||N){if(N=en,N!==null&&(m=jr(N,u),m!==0&&m!==J.retryLane))throw J.retryLane=m,Ra(i,m),qr(N,i,m),E0;l_(U)||_h(),a=A0(i,a,u)}else l_(U)?(a.flags|=192,a.child=i.child,a=null):(i=J.treeContext,an=Io(U.nextSibling),lr=a,At=!0,ys=null,Co=!1,i!==null&&vx(a,i),a=C0(a,m.children),a.flags|=4096);return a}return _?(Os(),U=m.fallback,_=a.mode,J=i.child,de=J.sibling,m=Di(J,{mode:"hidden",children:m.children}),m.subtreeFlags=J.subtreeFlags&65011712,de!==null?U=Di(de,U):(U=Oa(U,_,u,null),U.flags|=2),U.return=a,m.return=a,m.sibling=U,a.child=m,Au(null,m),m=a.child,U=i.child.memoizedState,U===null?U=O0(u):(_=U.cachePool,_!==null?(J=$n._currentValue,_=_.parent!==J?{parent:J,pool:J}:_):_=Ex(),U={baseLanes:U.baseLanes|u,cachePool:_}),m.memoizedState=U,m.childLanes=T0(i,N,u),a.memoizedState=R0,Au(i.child,m)):(Rs(a),u=i.child,i=u.sibling,u=Di(u,{mode:"visible",children:m.children}),u.return=a,u.sibling=null,i!==null&&(N=a.deletions,N===null?(a.deletions=[i],a.flags|=16):N.push(i)),a.child=u,a.memoizedState=null,u)}function C0(i,a){return a=ch({mode:"visible",children:a},i.mode),a.return=i,i.child=a}function ch(i,a){return i=eo(22,i,null,a),i.lanes=0,i}function A0(i,a,u){return Na(a,i.child,null,u),i=C0(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function LR(i,a,u){i.lanes|=a;var m=i.alternate;m!==null&&(m.lanes|=a),Hv(i.return,a,u)}function I0(i,a,u,m,_,S){var N=i.memoizedState;N===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:m,tail:u,tailMode:_,treeForkCount:S}:(N.isBackwards=a,N.rendering=null,N.renderingStartTime=0,N.last=m,N.tail=u,N.tailMode=_,N.treeForkCount=S)}function $R(i,a,u){var m=a.pendingProps,_=m.revealOrder,S=m.tail;m=m.children;var N=Tn.current,U=(N&2)!==0;if(U?(N=N&1|2,a.flags|=128):N&=1,V(Tn,N),ur(i,a,m,u),m=At?gu:0,!U&&i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&LR(i,u,a);else if(i.tag===19)LR(i,u,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(_){case"forwards":for(u=a.child,_=null;u!==null;)i=u.alternate,i!==null&&Qf(i)===null&&(_=u),u=u.sibling;u=_,u===null?(_=a.child,a.child=null):(_=u.sibling,u.sibling=null),I0(a,!1,_,u,S,m);break;case"backwards":case"unstable_legacy-backwards":for(u=null,_=a.child,a.child=null;_!==null;){if(i=_.alternate,i!==null&&Qf(i)===null){a.child=_;break}i=_.sibling,_.sibling=u,u=_,_=i}I0(a,!0,u,null,S,m);break;case"together":I0(a,!1,null,null,void 0,m);break;default:a.memoizedState=null}return a.child}function Fi(i,a,u){if(i!==null&&(a.dependencies=i.dependencies),As|=a.lanes,(u&a.childLanes)===0)if(i!==null){if(Dl(i,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(i!==null&&a.child!==i.child)throw Error(r(153));if(a.child!==null){for(i=a.child,u=Di(i,i.pendingProps),a.child=u,u.return=a;i.sibling!==null;)i=i.sibling,u=u.sibling=Di(i,i.pendingProps),u.return=a;u.sibling=null}return a.child}function M0(i,a){return(i.lanes&a)!==0?!0:(i=i.dependencies,!!(i!==null&&Vf(i)))}function E$(i,a,u){switch(a.tag){case 3:pe(a,a.stateNode.containerInfo),ws(a,$n,i.memoizedState.cache),Ta();break;case 27:case 5:je(a);break;case 4:pe(a,a.stateNode.containerInfo);break;case 10:ws(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,n0(a),null;break;case 13:var m=a.memoizedState;if(m!==null)return m.dehydrated!==null?(Rs(a),a.flags|=128,null):(u&a.child.childLanes)!==0?DR(i,a,u):(Rs(a),i=Fi(i,a,u),i!==null?i.sibling:null);Rs(a);break;case 19:var _=(i.flags&128)!==0;if(m=(u&a.childLanes)!==0,m||(Dl(i,a,u,!1),m=(u&a.childLanes)!==0),_){if(m)return $R(i,a,u);a.flags|=128}if(_=a.memoizedState,_!==null&&(_.rendering=null,_.tail=null,_.lastEffect=null),V(Tn,Tn.current),m)break;return null;case 22:return a.lanes=0,AR(i,a,u,a.pendingProps);case 24:ws(a,$n,i.memoizedState.cache)}return Fi(i,a,u)}function jR(i,a,u){if(i!==null)if(i.memoizedProps!==a.pendingProps)Un=!0;else{if(!M0(i,u)&&(a.flags&128)===0)return Un=!1,E$(i,a,u);Un=(i.flags&131072)!==0}else Un=!1,At&&(a.flags&1048576)!==0&&gx(a,gu,a.index);switch(a.lanes=0,a.tag){case 16:e:{var m=a.pendingProps;if(i=Ma(a.elementType),a.type=i,typeof i=="function")Lv(i)?(m=Da(i,m),a.tag=1,a=NR(null,a,i,m,u)):(a.tag=0,a=x0(null,a,i,m,u));else{if(i!=null){var _=i.$$typeof;if(_===R){a.tag=11,a=OR(null,a,i,m,u);break e}else if(_===I){a.tag=14,a=TR(null,a,i,m,u);break e}}throw a=K(i)||i,Error(r(306,a,""))}}return a;case 0:return x0(i,a,a.type,a.pendingProps,u);case 1:return m=a.type,_=Da(m,a.pendingProps),NR(i,a,m,_,u);case 3:e:{if(pe(a,a.stateNode.containerInfo),i===null)throw Error(r(387));m=a.pendingProps;var S=a.memoizedState;_=S.element,Qv(i,a),xu(a,m,null,u);var N=a.memoizedState;if(m=N.cache,ws(a,$n,m),m!==S.cache&&qv(a,[$n],u,!0),Eu(),m=N.element,S.isDehydrated)if(S={element:m,isDehydrated:!1,cache:N.cache},a.updateQueue.baseState=S,a.memoizedState=S,a.flags&256){a=kR(i,a,m,u);break e}else if(m!==_){_=Ro(Error(r(424)),a),vu(_),a=kR(i,a,m,u);break e}else for(i=a.stateNode.containerInfo,i.nodeType===9?i=i.body:i=i.nodeName==="HTML"?i.ownerDocument.body:i,an=Io(i.firstChild),lr=a,At=!0,ys=null,Co=!0,u=Ax(a,null,m,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Ta(),m===_){a=Fi(i,a,u);break e}ur(i,a,m,u)}a=a.child}return a;case 26:return lh(i,a),i===null?(u=YO(a.type,null,a.pendingProps,null))?a.memoizedState=u:At||(u=a.type,i=a.pendingProps,m=Rh(X.current).createElement(u),m[ar]=a,m[Ur]=i,dr(m,u,i),er(m),a.stateNode=m):a.memoizedState=YO(a.type,i.memoizedProps,a.pendingProps,i.memoizedState),null;case 27:return je(a),i===null&&At&&(m=a.stateNode=GO(a.type,a.pendingProps,X.current),lr=a,Co=!0,_=an,ks(a.type)?(u_=_,an=Io(m.firstChild)):an=_),ur(i,a,a.pendingProps.children,u),lh(i,a),i===null&&(a.flags|=4194304),a.child;case 5:return i===null&&At&&((_=m=an)&&(m=J$(m,a.type,a.pendingProps,Co),m!==null?(a.stateNode=m,lr=a,an=Io(m.firstChild),Co=!1,_=!0):_=!1),_||bs(a)),je(a),_=a.type,S=a.pendingProps,N=i!==null?i.memoizedProps:null,m=S.children,i_(_,S)?m=null:N!==null&&i_(_,N)&&(a.flags|=32),a.memoizedState!==null&&(_=o0(i,a,p$,null,null,u),Hu._currentValue=_),lh(i,a),ur(i,a,m,u),a.child;case 6:return i===null&&At&&((i=u=an)&&(u=ej(u,a.pendingProps,Co),u!==null?(a.stateNode=u,lr=a,an=null,i=!0):i=!1),i||bs(a)),null;case 13:return DR(i,a,u);case 4:return pe(a,a.stateNode.containerInfo),m=a.pendingProps,i===null?a.child=Na(a,null,m,u):ur(i,a,m,u),a.child;case 11:return OR(i,a,a.type,a.pendingProps,u);case 7:return ur(i,a,a.pendingProps,u),a.child;case 8:return ur(i,a,a.pendingProps.children,u),a.child;case 12:return ur(i,a,a.pendingProps.children,u),a.child;case 10:return m=a.pendingProps,ws(a,a.type,m.value),ur(i,a,m.children,u),a.child;case 9:return _=a.type._context,m=a.pendingProps.children,Aa(a),_=cr(_),m=m(_),a.flags|=1,ur(i,a,m,u),a.child;case 14:return TR(i,a,a.type,a.pendingProps,u);case 15:return CR(i,a,a.type,a.pendingProps,u);case 19:return $R(i,a,u);case 31:return S$(i,a,u);case 22:return AR(i,a,u,a.pendingProps);case 24:return Aa(a),m=cr($n),i===null?(_=Zv(),_===null&&(_=en,S=Gv(),_.pooledCache=S,S.refCount++,S!==null&&(_.pooledCacheLanes|=u),_=S),a.memoizedState={parent:m,cache:_},Wv(a),ws(a,$n,_)):((i.lanes&u)!==0&&(Qv(i,a),xu(a,null,null,u),Eu()),_=i.memoizedState,S=a.memoizedState,_.parent!==m?(_={parent:m,cache:m},a.memoizedState=_,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=_),ws(a,$n,m)):(m=S.cache,ws(a,$n,m),m!==_.cache&&qv(a,[$n],u,!0))),ur(i,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Bi(i){i.flags|=4}function P0(i,a,u,m,_){if((a=(i.mode&32)!==0)&&(a=!1),a){if(i.flags|=16777216,(_&335544128)===_)if(i.stateNode.complete)i.flags|=8192;else if(dO())i.flags|=8192;else throw Pa=Kf,Yv}else i.flags&=-16777217}function UR(i,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!e2(a))if(dO())i.flags|=8192;else throw Pa=Kf,Yv}function uh(i,a){a!==null&&(i.flags|=4),i.flags&16384&&(a=i.tag!==22?Kt():536870912,i.lanes|=a,Kl|=a)}function Iu(i,a){if(!At)switch(i.tailMode){case"hidden":a=i.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var m=null;u!==null;)u.alternate!==null&&(m=u),u=u.sibling;m===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:m.sibling=null}}function ln(i){var a=i.alternate!==null&&i.alternate.child===i.child,u=0,m=0;if(a)for(var _=i.child;_!==null;)u|=_.lanes|_.childLanes,m|=_.subtreeFlags&65011712,m|=_.flags&65011712,_.return=i,_=_.sibling;else for(_=i.child;_!==null;)u|=_.lanes|_.childLanes,m|=_.subtreeFlags,m|=_.flags,_.return=i,_=_.sibling;return i.subtreeFlags|=m,i.childLanes=u,a}function x$(i,a,u){var m=a.pendingProps;switch(zv(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ln(a),null;case 1:return ln(a),null;case 3:return u=a.stateNode,m=null,i!==null&&(m=i.memoizedState.cache),a.memoizedState.cache!==m&&(a.flags|=2048),ji($n),xe(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(kl(a)?Bi(a):i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Bv())),ln(a),null;case 26:var _=a.type,S=a.memoizedState;return i===null?(Bi(a),S!==null?(ln(a),UR(a,S)):(ln(a),P0(a,_,null,m,u))):S?S!==i.memoizedState?(Bi(a),ln(a),UR(a,S)):(ln(a),a.flags&=-16777217):(i=i.memoizedProps,i!==m&&Bi(a),ln(a),P0(a,_,i,m,u)),null;case 27:if(Y(a),u=X.current,_=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==m&&Bi(a);else{if(!m){if(a.stateNode===null)throw Error(r(166));return ln(a),null}i=D.current,kl(a)?_x(a):(i=GO(_,m,u),a.stateNode=i,Bi(a))}return ln(a),null;case 5:if(Y(a),_=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==m&&Bi(a);else{if(!m){if(a.stateNode===null)throw Error(r(166));return ln(a),null}if(S=D.current,kl(a))_x(a);else{var N=Rh(X.current);switch(S){case 1:S=N.createElementNS("http://www.w3.org/2000/svg",_);break;case 2:S=N.createElementNS("http://www.w3.org/1998/Math/MathML",_);break;default:switch(_){case"svg":S=N.createElementNS("http://www.w3.org/2000/svg",_);break;case"math":S=N.createElementNS("http://www.w3.org/1998/Math/MathML",_);break;case"script":S=N.createElement("div"),S.innerHTML="<script><\/script>",S=S.removeChild(S.firstChild);break;case"select":S=typeof m.is=="string"?N.createElement("select",{is:m.is}):N.createElement("select"),m.multiple?S.multiple=!0:m.size&&(S.size=m.size);break;default:S=typeof m.is=="string"?N.createElement(_,{is:m.is}):N.createElement(_)}}S[ar]=a,S[Ur]=m;e:for(N=a.child;N!==null;){if(N.tag===5||N.tag===6)S.appendChild(N.stateNode);else if(N.tag!==4&&N.tag!==27&&N.child!==null){N.child.return=N,N=N.child;continue}if(N===a)break e;for(;N.sibling===null;){if(N.return===null||N.return===a)break e;N=N.return}N.sibling.return=N.return,N=N.sibling}a.stateNode=S;e:switch(dr(S,_,m),_){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&Bi(a)}}return ln(a),P0(a,a.type,i===null?null:i.memoizedProps,a.pendingProps,u),null;case 6:if(i&&a.stateNode!=null)i.memoizedProps!==m&&Bi(a);else{if(typeof m!="string"&&a.stateNode===null)throw Error(r(166));if(i=X.current,kl(a)){if(i=a.stateNode,u=a.memoizedProps,m=null,_=lr,_!==null)switch(_.tag){case 27:case 5:m=_.memoizedProps}i[ar]=a,i=!!(i.nodeValue===u||m!==null&&m.suppressHydrationWarning===!0||DO(i.nodeValue,u)),i||bs(a,!0)}else i=Rh(i).createTextNode(m),i[ar]=a,a.stateNode=i}return ln(a),null;case 31:if(u=a.memoizedState,i===null||i.memoizedState!==null){if(m=kl(a),u!==null){if(i===null){if(!m)throw Error(r(318));if(i=a.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[ar]=a}else Ta(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ln(a),i=!1}else u=Bv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i)return a.flags&256?(no(a),a):(no(a),null);if((a.flags&128)!==0)throw Error(r(558))}return ln(a),null;case 13:if(m=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(_=kl(a),m!==null&&m.dehydrated!==null){if(i===null){if(!_)throw Error(r(318));if(_=a.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(r(317));_[ar]=a}else Ta(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ln(a),_=!1}else _=Bv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=_),_=!0;if(!_)return a.flags&256?(no(a),a):(no(a),null)}return no(a),(a.flags&128)!==0?(a.lanes=u,a):(u=m!==null,i=i!==null&&i.memoizedState!==null,u&&(m=a.child,_=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(_=m.alternate.memoizedState.cachePool.pool),S=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(S=m.memoizedState.cachePool.pool),S!==_&&(m.flags|=2048)),u!==i&&u&&(a.child.flags|=8192),uh(a,a.updateQueue),ln(a),null);case 4:return xe(),i===null&&e_(a.stateNode.containerInfo),ln(a),null;case 10:return ji(a.type),ln(a),null;case 19:if(G(Tn),m=a.memoizedState,m===null)return ln(a),null;if(_=(a.flags&128)!==0,S=m.rendering,S===null)if(_)Iu(m,!1);else{if(Rn!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(S=Qf(i),S!==null){for(a.flags|=128,Iu(m,!1),i=S.updateQueue,a.updateQueue=i,uh(a,i),a.subtreeFlags=0,i=u,u=a.child;u!==null;)hx(u,i),u=u.sibling;return V(Tn,Tn.current&1|2),At&&Li(a,m.treeForkCount),a.child}i=i.sibling}m.tail!==null&&Z()>mh&&(a.flags|=128,_=!0,Iu(m,!1),a.lanes=4194304)}else{if(!_)if(i=Qf(S),i!==null){if(a.flags|=128,_=!0,i=i.updateQueue,a.updateQueue=i,uh(a,i),Iu(m,!0),m.tail===null&&m.tailMode==="hidden"&&!S.alternate&&!At)return ln(a),null}else 2*Z()-m.renderingStartTime>mh&&u!==536870912&&(a.flags|=128,_=!0,Iu(m,!1),a.lanes=4194304);m.isBackwards?(S.sibling=a.child,a.child=S):(i=m.last,i!==null?i.sibling=S:a.child=S,m.last=S)}return m.tail!==null?(i=m.tail,m.rendering=i,m.tail=i.sibling,m.renderingStartTime=Z(),i.sibling=null,u=Tn.current,V(Tn,_?u&1|2:u&1),At&&Li(a,m.treeForkCount),i):(ln(a),null);case 22:case 23:return no(a),t0(),m=a.memoizedState!==null,i!==null?i.memoizedState!==null!==m&&(a.flags|=8192):m&&(a.flags|=8192),m?(u&536870912)!==0&&(a.flags&128)===0&&(ln(a),a.subtreeFlags&6&&(a.flags|=8192)):ln(a),u=a.updateQueue,u!==null&&uh(a,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),m=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(m=a.memoizedState.cachePool.pool),m!==u&&(a.flags|=2048),i!==null&&G(Ia),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),ji($n),ln(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function R$(i,a){switch(zv(a),a.tag){case 1:return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return ji($n),xe(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 26:case 27:case 5:return Y(a),null;case 31:if(a.memoizedState!==null){if(no(a),a.alternate===null)throw Error(r(340));Ta()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 13:if(no(a),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Ta()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return G(Tn),null;case 4:return xe(),null;case 10:return ji(a.type),null;case 22:case 23:return no(a),t0(),i!==null&&G(Ia),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 24:return ji($n),null;case 25:return null;default:return null}}function zR(i,a){switch(zv(a),a.tag){case 3:ji($n),xe();break;case 26:case 27:case 5:Y(a);break;case 4:xe();break;case 31:a.memoizedState!==null&&no(a);break;case 13:no(a);break;case 19:G(Tn);break;case 10:ji(a.type);break;case 22:case 23:no(a),t0(),i!==null&&G(Ia);break;case 24:ji($n)}}function Mu(i,a){try{var u=a.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var _=m.next;u=_;do{if((u.tag&i)===i){m=void 0;var S=u.create,N=u.inst;m=S(),N.destroy=m}u=u.next}while(u!==_)}}catch(U){Ht(a,a.return,U)}}function Ts(i,a,u){try{var m=a.updateQueue,_=m!==null?m.lastEffect:null;if(_!==null){var S=_.next;m=S;do{if((m.tag&i)===i){var N=m.inst,U=N.destroy;if(U!==void 0){N.destroy=void 0,_=a;var J=u,de=U;try{de()}catch(ye){Ht(_,J,ye)}}}m=m.next}while(m!==S)}}catch(ye){Ht(a,a.return,ye)}}function FR(i){var a=i.updateQueue;if(a!==null){var u=i.stateNode;try{Mx(a,u)}catch(m){Ht(i,i.return,m)}}}function BR(i,a,u){u.props=Da(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(m){Ht(i,a,m)}}function Pu(i,a){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var m=i.stateNode;break;case 30:m=i.stateNode;break;default:m=i.stateNode}typeof u=="function"?i.refCleanup=u(m):u.current=m}}catch(_){Ht(i,a,_)}}function ui(i,a){var u=i.ref,m=i.refCleanup;if(u!==null)if(typeof m=="function")try{m()}catch(_){Ht(i,a,_)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(_){Ht(i,a,_)}else u.current=null}function VR(i){var a=i.type,u=i.memoizedProps,m=i.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&m.focus();break e;case"img":u.src?m.src=u.src:u.srcSet&&(m.srcset=u.srcSet)}}catch(_){Ht(i,i.return,_)}}function N0(i,a,u){try{var m=i.stateNode;K$(m,i.type,u,a),m[Ur]=a}catch(_){Ht(i,i.return,_)}}function HR(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&ks(i.type)||i.tag===4}function k0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||HR(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&ks(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function D0(i,a,u){var m=i.tag;if(m===5||m===6)i=i.stateNode,a?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,a):(a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(i),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Ni));else if(m!==4&&(m===27&&ks(i.type)&&(u=i.stateNode,a=null),i=i.child,i!==null))for(D0(i,a,u),i=i.sibling;i!==null;)D0(i,a,u),i=i.sibling}function dh(i,a,u){var m=i.tag;if(m===5||m===6)i=i.stateNode,a?u.insertBefore(i,a):u.appendChild(i);else if(m!==4&&(m===27&&ks(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(dh(i,a,u),i=i.sibling;i!==null;)dh(i,a,u),i=i.sibling}function qR(i){var a=i.stateNode,u=i.memoizedProps;try{for(var m=i.type,_=a.attributes;_.length;)a.removeAttributeNode(_[0]);dr(a,m,u),a[ar]=i,a[Ur]=u}catch(S){Ht(i,i.return,S)}}var Vi=!1,zn=!1,L0=!1,GR=typeof WeakSet=="function"?WeakSet:Set,tr=null;function O$(i,a){if(i=i.containerInfo,r_=Ph,i=ox(i),Av(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var m=u.getSelection&&u.getSelection();if(m&&m.rangeCount!==0){u=m.anchorNode;var _=m.anchorOffset,S=m.focusNode;m=m.focusOffset;try{u.nodeType,S.nodeType}catch{u=null;break e}var N=0,U=-1,J=-1,de=0,ye=0,Ee=i,he=null;t:for(;;){for(var ge;Ee!==u||_!==0&&Ee.nodeType!==3||(U=N+_),Ee!==S||m!==0&&Ee.nodeType!==3||(J=N+m),Ee.nodeType===3&&(N+=Ee.nodeValue.length),(ge=Ee.firstChild)!==null;)he=Ee,Ee=ge;for(;;){if(Ee===i)break t;if(he===u&&++de===_&&(U=N),he===S&&++ye===m&&(J=N),(ge=Ee.nextSibling)!==null)break;Ee=he,he=Ee.parentNode}Ee=ge}u=U===-1||J===-1?null:{start:U,end:J}}else u=null}u=u||{start:0,end:0}}else u=null;for(o_={focusedElem:i,selectionRange:u},Ph=!1,tr=a;tr!==null;)if(a=tr,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,tr=i;else for(;tr!==null;){switch(a=tr,S=a.alternate,i=a.flags,a.tag){case 0:if((i&4)!==0&&(i=a.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u<i.length;u++)_=i[u],_.ref.impl=_.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&S!==null){i=void 0,u=a,_=S.memoizedProps,S=S.memoizedState,m=u.stateNode;try{var Ve=Da(u.type,_);i=m.getSnapshotBeforeUpdate(Ve,S),m.__reactInternalSnapshotBeforeUpdate=i}catch(nt){Ht(u,u.return,nt)}}break;case 3:if((i&1024)!==0){if(i=a.stateNode.containerInfo,u=i.nodeType,u===9)a_(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":a_(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=a.sibling,i!==null){i.return=a.return,tr=i;break}tr=a.return}}function KR(i,a,u){var m=u.flags;switch(u.tag){case 0:case 11:case 15:qi(i,u),m&4&&Mu(5,u);break;case 1:if(qi(i,u),m&4)if(i=u.stateNode,a===null)try{i.componentDidMount()}catch(N){Ht(u,u.return,N)}else{var _=Da(u.type,a.memoizedProps);a=a.memoizedState;try{i.componentDidUpdate(_,a,i.__reactInternalSnapshotBeforeUpdate)}catch(N){Ht(u,u.return,N)}}m&64&&FR(u),m&512&&Pu(u,u.return);break;case 3:if(qi(i,u),m&64&&(i=u.updateQueue,i!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{Mx(i,a)}catch(N){Ht(u,u.return,N)}}break;case 27:a===null&&m&4&&qR(u);case 26:case 5:qi(i,u),a===null&&m&4&&VR(u),m&512&&Pu(u,u.return);break;case 12:qi(i,u);break;case 31:qi(i,u),m&4&&WR(i,u);break;case 13:qi(i,u),m&4&&QR(i,u),m&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=D$.bind(null,u),tj(i,u))));break;case 22:if(m=u.memoizedState!==null||Vi,!m){a=a!==null&&a.memoizedState!==null||zn,_=Vi;var S=zn;Vi=m,(zn=a)&&!S?Gi(i,u,(u.subtreeFlags&8772)!==0):qi(i,u),Vi=_,zn=S}break;case 30:break;default:qi(i,u)}}function ZR(i){var a=i.alternate;a!==null&&(i.alternate=null,ZR(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&fv(a)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var fn=null,Fr=!1;function Hi(i,a,u){for(u=u.child;u!==null;)YR(i,a,u),u=u.sibling}function YR(i,a,u){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(_t,u)}catch{}switch(u.tag){case 26:zn||ui(u,a),Hi(i,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:zn||ui(u,a);var m=fn,_=Fr;ks(u.type)&&(fn=u.stateNode,Fr=!1),Hi(i,a,u),Fu(u.stateNode),fn=m,Fr=_;break;case 5:zn||ui(u,a);case 6:if(m=fn,_=Fr,fn=null,Hi(i,a,u),fn=m,Fr=_,fn!==null)if(Fr)try{(fn.nodeType===9?fn.body:fn.nodeName==="HTML"?fn.ownerDocument.body:fn).removeChild(u.stateNode)}catch(S){Ht(u,a,S)}else try{fn.removeChild(u.stateNode)}catch(S){Ht(u,a,S)}break;case 18:fn!==null&&(Fr?(i=fn,FO(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),tc(i)):FO(fn,u.stateNode));break;case 4:m=fn,_=Fr,fn=u.stateNode.containerInfo,Fr=!0,Hi(i,a,u),fn=m,Fr=_;break;case 0:case 11:case 14:case 15:Ts(2,u,a),zn||Ts(4,u,a),Hi(i,a,u);break;case 1:zn||(ui(u,a),m=u.stateNode,typeof m.componentWillUnmount=="function"&&BR(u,a,m)),Hi(i,a,u);break;case 21:Hi(i,a,u);break;case 22:zn=(m=zn)||u.memoizedState!==null,Hi(i,a,u),zn=m;break;default:Hi(i,a,u)}}function WR(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{tc(i)}catch(u){Ht(a,a.return,u)}}}function QR(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{tc(i)}catch(u){Ht(a,a.return,u)}}function T$(i){switch(i.tag){case 31:case 13:case 19:var a=i.stateNode;return a===null&&(a=i.stateNode=new GR),a;case 22:return i=i.stateNode,a=i._retryCache,a===null&&(a=i._retryCache=new GR),a;default:throw Error(r(435,i.tag))}}function fh(i,a){var u=T$(i);a.forEach(function(m){if(!u.has(m)){u.add(m);var _=L$.bind(null,i,m);m.then(_,_)}})}function Br(i,a){var u=a.deletions;if(u!==null)for(var m=0;m<u.length;m++){var _=u[m],S=i,N=a,U=N;e:for(;U!==null;){switch(U.tag){case 27:if(ks(U.type)){fn=U.stateNode,Fr=!1;break e}break;case 5:fn=U.stateNode,Fr=!1;break e;case 3:case 4:fn=U.stateNode.containerInfo,Fr=!0;break e}U=U.return}if(fn===null)throw Error(r(160));YR(S,N,_),fn=null,Fr=!1,S=_.alternate,S!==null&&(S.return=null),_.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)XR(a,i),a=a.sibling}var Ko=null;function XR(i,a){var u=i.alternate,m=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Br(a,i),Vr(i),m&4&&(Ts(3,i,i.return),Mu(3,i),Ts(5,i,i.return));break;case 1:Br(a,i),Vr(i),m&512&&(zn||u===null||ui(u,u.return)),m&64&&Vi&&(i=i.updateQueue,i!==null&&(m=i.callbacks,m!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?m:u.concat(m))));break;case 26:var _=Ko;if(Br(a,i),Vr(i),m&512&&(zn||u===null||ui(u,u.return)),m&4){var S=u!==null?u.memoizedState:null;if(m=i.memoizedState,u===null)if(m===null)if(i.stateNode===null){e:{m=i.type,u=i.memoizedProps,_=_.ownerDocument||_;t:switch(m){case"title":S=_.getElementsByTagName("title")[0],(!S||S[iu]||S[ar]||S.namespaceURI==="http://www.w3.org/2000/svg"||S.hasAttribute("itemprop"))&&(S=_.createElement(m),_.head.insertBefore(S,_.querySelector("head > title"))),dr(S,m,u),S[ar]=i,er(S),m=S;break e;case"link":var N=XO("link","href",_).get(m+(u.href||""));if(N){for(var U=0;U<N.length;U++)if(S=N[U],S.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&S.getAttribute("rel")===(u.rel==null?null:u.rel)&&S.getAttribute("title")===(u.title==null?null:u.title)&&S.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){N.splice(U,1);break t}}S=_.createElement(m),dr(S,m,u),_.head.appendChild(S);break;case"meta":if(N=XO("meta","content",_).get(m+(u.content||""))){for(U=0;U<N.length;U++)if(S=N[U],S.getAttribute("content")===(u.content==null?null:""+u.content)&&S.getAttribute("name")===(u.name==null?null:u.name)&&S.getAttribute("property")===(u.property==null?null:u.property)&&S.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&S.getAttribute("charset")===(u.charSet==null?null:u.charSet)){N.splice(U,1);break t}}S=_.createElement(m),dr(S,m,u),_.head.appendChild(S);break;default:throw Error(r(468,m))}S[ar]=i,er(S),m=S}i.stateNode=m}else JO(_,i.type,i.stateNode);else i.stateNode=QO(_,m,i.memoizedProps);else S!==m?(S===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):S.count--,m===null?JO(_,i.type,i.stateNode):QO(_,m,i.memoizedProps)):m===null&&i.stateNode!==null&&N0(i,i.memoizedProps,u.memoizedProps)}break;case 27:Br(a,i),Vr(i),m&512&&(zn||u===null||ui(u,u.return)),u!==null&&m&4&&N0(i,i.memoizedProps,u.memoizedProps);break;case 5:if(Br(a,i),Vr(i),m&512&&(zn||u===null||ui(u,u.return)),i.flags&32){_=i.stateNode;try{xl(_,"")}catch(Ve){Ht(i,i.return,Ve)}}m&4&&i.stateNode!=null&&(_=i.memoizedProps,N0(i,_,u!==null?u.memoizedProps:_)),m&1024&&(L0=!0);break;case 6:if(Br(a,i),Vr(i),m&4){if(i.stateNode===null)throw Error(r(162));m=i.memoizedProps,u=i.stateNode;try{u.nodeValue=m}catch(Ve){Ht(i,i.return,Ve)}}break;case 3:if(Ch=null,_=Ko,Ko=Oh(a.containerInfo),Br(a,i),Ko=_,Vr(i),m&4&&u!==null&&u.memoizedState.isDehydrated)try{tc(a.containerInfo)}catch(Ve){Ht(i,i.return,Ve)}L0&&(L0=!1,JR(i));break;case 4:m=Ko,Ko=Oh(i.stateNode.containerInfo),Br(a,i),Vr(i),Ko=m;break;case 12:Br(a,i),Vr(i);break;case 31:Br(a,i),Vr(i),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,fh(i,m)));break;case 13:Br(a,i),Vr(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(ph=Z()),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,fh(i,m)));break;case 22:_=i.memoizedState!==null;var J=u!==null&&u.memoizedState!==null,de=Vi,ye=zn;if(Vi=de||_,zn=ye||J,Br(a,i),zn=ye,Vi=de,Vr(i),m&8192)e:for(a=i.stateNode,a._visibility=_?a._visibility&-2:a._visibility|1,_&&(u===null||J||Vi||zn||La(i)),u=null,a=i;;){if(a.tag===5||a.tag===26){if(u===null){J=u=a;try{if(S=J.stateNode,_)N=S.style,typeof N.setProperty=="function"?N.setProperty("display","none","important"):N.display="none";else{U=J.stateNode;var Ee=J.memoizedProps.style,he=Ee!=null&&Ee.hasOwnProperty("display")?Ee.display:null;U.style.display=he==null||typeof he=="boolean"?"":(""+he).trim()}}catch(Ve){Ht(J,J.return,Ve)}}}else if(a.tag===6){if(u===null){J=a;try{J.stateNode.nodeValue=_?"":J.memoizedProps}catch(Ve){Ht(J,J.return,Ve)}}}else if(a.tag===18){if(u===null){J=a;try{var ge=J.stateNode;_?BO(ge,!0):BO(J.stateNode,!1)}catch(Ve){Ht(J,J.return,Ve)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===i)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}m&4&&(m=i.updateQueue,m!==null&&(u=m.retryQueue,u!==null&&(m.retryQueue=null,fh(i,u))));break;case 19:Br(a,i),Vr(i),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,fh(i,m)));break;case 30:break;case 21:break;default:Br(a,i),Vr(i)}}function Vr(i){var a=i.flags;if(a&2){try{for(var u,m=i.return;m!==null;){if(HR(m)){u=m;break}m=m.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var _=u.stateNode,S=k0(i);dh(i,S,_);break;case 5:var N=u.stateNode;u.flags&32&&(xl(N,""),u.flags&=-33);var U=k0(i);dh(i,U,N);break;case 3:case 4:var J=u.stateNode.containerInfo,de=k0(i);D0(i,de,J);break;default:throw Error(r(161))}}catch(ye){Ht(i,i.return,ye)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function JR(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var a=i;JR(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),i=i.sibling}}function qi(i,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)KR(i,a.alternate,a),a=a.sibling}function La(i){for(i=i.child;i!==null;){var a=i;switch(a.tag){case 0:case 11:case 14:case 15:Ts(4,a,a.return),La(a);break;case 1:ui(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&BR(a,a.return,u),La(a);break;case 27:Fu(a.stateNode);case 26:case 5:ui(a,a.return),La(a);break;case 22:a.memoizedState===null&&La(a);break;case 30:La(a);break;default:La(a)}i=i.sibling}}function Gi(i,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var m=a.alternate,_=i,S=a,N=S.flags;switch(S.tag){case 0:case 11:case 15:Gi(_,S,u),Mu(4,S);break;case 1:if(Gi(_,S,u),m=S,_=m.stateNode,typeof _.componentDidMount=="function")try{_.componentDidMount()}catch(de){Ht(m,m.return,de)}if(m=S,_=m.updateQueue,_!==null){var U=m.stateNode;try{var J=_.shared.hiddenCallbacks;if(J!==null)for(_.shared.hiddenCallbacks=null,_=0;_<J.length;_++)Ix(J[_],U)}catch(de){Ht(m,m.return,de)}}u&&N&64&&FR(S),Pu(S,S.return);break;case 27:qR(S);case 26:case 5:Gi(_,S,u),u&&m===null&&N&4&&VR(S),Pu(S,S.return);break;case 12:Gi(_,S,u);break;case 31:Gi(_,S,u),u&&N&4&&WR(_,S);break;case 13:Gi(_,S,u),u&&N&4&&QR(_,S);break;case 22:S.memoizedState===null&&Gi(_,S,u),Pu(S,S.return);break;case 30:break;default:Gi(_,S,u)}a=a.sibling}}function $0(i,a){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&_u(u))}function j0(i,a){i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&_u(i))}function Zo(i,a,u,m){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)eO(i,a,u,m),a=a.sibling}function eO(i,a,u,m){var _=a.flags;switch(a.tag){case 0:case 11:case 15:Zo(i,a,u,m),_&2048&&Mu(9,a);break;case 1:Zo(i,a,u,m);break;case 3:Zo(i,a,u,m),_&2048&&(i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&_u(i)));break;case 12:if(_&2048){Zo(i,a,u,m),i=a.stateNode;try{var S=a.memoizedProps,N=S.id,U=S.onPostCommit;typeof U=="function"&&U(N,a.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(J){Ht(a,a.return,J)}}else Zo(i,a,u,m);break;case 31:Zo(i,a,u,m);break;case 13:Zo(i,a,u,m);break;case 23:break;case 22:S=a.stateNode,N=a.alternate,a.memoizedState!==null?S._visibility&2?Zo(i,a,u,m):Nu(i,a):S._visibility&2?Zo(i,a,u,m):(S._visibility|=2,Hl(i,a,u,m,(a.subtreeFlags&10256)!==0||!1)),_&2048&&$0(N,a);break;case 24:Zo(i,a,u,m),_&2048&&j0(a.alternate,a);break;default:Zo(i,a,u,m)}}function Hl(i,a,u,m,_){for(_=_&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var S=i,N=a,U=u,J=m,de=N.flags;switch(N.tag){case 0:case 11:case 15:Hl(S,N,U,J,_),Mu(8,N);break;case 23:break;case 22:var ye=N.stateNode;N.memoizedState!==null?ye._visibility&2?Hl(S,N,U,J,_):Nu(S,N):(ye._visibility|=2,Hl(S,N,U,J,_)),_&&de&2048&&$0(N.alternate,N);break;case 24:Hl(S,N,U,J,_),_&&de&2048&&j0(N.alternate,N);break;default:Hl(S,N,U,J,_)}a=a.sibling}}function Nu(i,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=i,m=a,_=m.flags;switch(m.tag){case 22:Nu(u,m),_&2048&&$0(m.alternate,m);break;case 24:Nu(u,m),_&2048&&j0(m.alternate,m);break;default:Nu(u,m)}a=a.sibling}}var ku=8192;function ql(i,a,u){if(i.subtreeFlags&ku)for(i=i.child;i!==null;)tO(i,a,u),i=i.sibling}function tO(i,a,u){switch(i.tag){case 26:ql(i,a,u),i.flags&ku&&i.memoizedState!==null&&hj(u,Ko,i.memoizedState,i.memoizedProps);break;case 5:ql(i,a,u);break;case 3:case 4:var m=Ko;Ko=Oh(i.stateNode.containerInfo),ql(i,a,u),Ko=m;break;case 22:i.memoizedState===null&&(m=i.alternate,m!==null&&m.memoizedState!==null?(m=ku,ku=16777216,ql(i,a,u),ku=m):ql(i,a,u));break;default:ql(i,a,u)}}function nO(i){var a=i.alternate;if(a!==null&&(i=a.child,i!==null)){a.child=null;do a=i.sibling,i.sibling=null,i=a;while(i!==null)}}function Du(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var m=a[u];tr=m,oO(m,i)}nO(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)rO(i),i=i.sibling}function rO(i){switch(i.tag){case 0:case 11:case 15:Du(i),i.flags&2048&&Ts(9,i,i.return);break;case 3:Du(i);break;case 12:Du(i);break;case 22:var a=i.stateNode;i.memoizedState!==null&&a._visibility&2&&(i.return===null||i.return.tag!==13)?(a._visibility&=-3,hh(i)):Du(i);break;default:Du(i)}}function hh(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var m=a[u];tr=m,oO(m,i)}nO(i)}for(i=i.child;i!==null;){switch(a=i,a.tag){case 0:case 11:case 15:Ts(8,a,a.return),hh(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,hh(a));break;default:hh(a)}i=i.sibling}}function oO(i,a){for(;tr!==null;){var u=tr;switch(u.tag){case 0:case 11:case 15:Ts(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var m=u.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:_u(u.memoizedState.cache)}if(m=u.child,m!==null)m.return=u,tr=m;else e:for(u=i;tr!==null;){m=tr;var _=m.sibling,S=m.return;if(ZR(m),m===u){tr=null;break e}if(_!==null){_.return=S,tr=_;break e}tr=S}}}var C$={getCacheForType:function(i){var a=cr($n),u=a.data.get(i);return u===void 0&&(u=i(),a.data.set(i,u)),u},cacheSignal:function(){return cr($n).controller.signal}},A$=typeof WeakMap=="function"?WeakMap:Map,zt=0,en=null,bt=null,Rt=0,Vt=0,ro=null,Cs=!1,Gl=!1,U0=!1,Ki=0,Rn=0,As=0,$a=0,z0=0,oo=0,Kl=0,Lu=null,Hr=null,F0=!1,ph=0,iO=0,mh=1/0,gh=null,Is=null,qn=0,Ms=null,Zl=null,Zi=0,B0=0,V0=null,sO=null,$u=0,H0=null;function io(){return(zt&2)!==0&&Rt!==0?Rt&-Rt:q.T!==null?W0():uv()}function aO(){if(oo===0)if((Rt&536870912)===0||At){var i=Ct;Ct<<=1,(Ct&3932160)===0&&(Ct=262144),oo=i}else oo=536870912;return i=to.current,i!==null&&(i.flags|=32),oo}function qr(i,a,u){(i===en&&(Vt===2||Vt===9)||i.cancelPendingCommit!==null)&&(Yl(i,0),Ps(i,Rt,oo,!1)),Lt(i,u),((zt&2)===0||i!==en)&&(i===en&&((zt&2)===0&&($a|=u),Rn===4&&Ps(i,Rt,oo,!1)),di(i))}function lO(i,a,u){if((zt&6)!==0)throw Error(r(327));var m=!u&&(a&127)===0&&(a&i.expiredLanes)===0||ct(i,a),_=m?P$(i,a):G0(i,a,!0),S=m;do{if(_===0){Gl&&!m&&Ps(i,a,0,!1);break}else{if(u=i.current.alternate,S&&!I$(u)){_=G0(i,a,!1),S=!1;continue}if(_===2){if(S=a,i.errorRecoveryDisabledLanes&S)var N=0;else N=i.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){a=N;e:{var U=i;_=Lu;var J=U.current.memoizedState.isDehydrated;if(J&&(Yl(U,N).flags|=256),N=G0(U,N,!1),N!==2){if(U0&&!J){U.errorRecoveryDisabledLanes|=S,$a|=S,_=4;break e}S=Hr,Hr=_,S!==null&&(Hr===null?Hr=S:Hr.push.apply(Hr,S))}_=N}if(S=!1,_!==2)continue}}if(_===1){Yl(i,0),Ps(i,a,0,!0);break}e:{switch(m=i,S=_,S){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:Ps(m,a,oo,!Cs);break e;case 2:Hr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(_=ph+300-Z(),10<_)){if(Ps(m,a,oo,!Cs),Ke(m,0,!0)!==0)break e;Zi=a,m.timeoutHandle=UO(cO.bind(null,m,u,Hr,gh,F0,a,oo,$a,Kl,Cs,S,"Throttled",-0,0),_);break e}cO(m,u,Hr,gh,F0,a,oo,$a,Kl,Cs,S,null,-0,0)}}break}while(!0);di(i)}function cO(i,a,u,m,_,S,N,U,J,de,ye,Ee,he,ge){if(i.timeoutHandle=-1,Ee=a.subtreeFlags,Ee&8192||(Ee&16785408)===16785408){Ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ni},tO(a,S,Ee);var Ve=(S&62914560)===S?ph-Z():(S&4194048)===S?iO-Z():0;if(Ve=pj(Ee,Ve),Ve!==null){Zi=S,i.cancelPendingCommit=Ve(vO.bind(null,i,a,S,u,m,_,N,U,J,ye,Ee,null,he,ge)),Ps(i,S,N,!de);return}}vO(i,a,S,u,m,_,N,U,J)}function I$(i){for(var a=i;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var m=0;m<u.length;m++){var _=u[m],S=_.getSnapshot;_=_.value;try{if(!Jr(S(),_))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ps(i,a,u,m){a&=~z0,a&=~$a,i.suspendedLanes|=a,i.pingedLanes&=~a,m&&(i.warmLanes|=a),m=i.expirationTimes;for(var _=a;0<_;){var S=31-Ln(_),N=1<<S;m[S]=-1,_&=~N}u!==0&&wo(i,u,a)}function vh(){return(zt&6)===0?(ju(0),!1):!0}function q0(){if(bt!==null){if(Vt===0)var i=bt.return;else i=bt,$i=Ca=null,a0(i),Ul=null,bu=0,i=bt;for(;i!==null;)zR(i.alternate,i),i=i.return;bt=null}}function Yl(i,a){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,W$(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),Zi=0,q0(),en=i,bt=u=Di(i.current,null),Rt=a,Vt=0,ro=null,Cs=!1,Gl=ct(i,a),U0=!1,Kl=oo=z0=$a=As=Rn=0,Hr=Lu=null,F0=!1,(a&8)!==0&&(a|=a&32);var m=i.entangledLanes;if(m!==0)for(i=i.entanglements,m&=a;0<m;){var _=31-Ln(m),S=1<<_;a|=i[_],m&=~S}return Ki=a,jf(),u}function uO(i,a){st=null,q.H=Cu,a===jl||a===Gf?(a=Ox(),Vt=3):a===Yv?(a=Ox(),Vt=4):Vt=a===E0?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,ro=a,bt===null&&(Rn=1,sh(i,Ro(a,i.current)))}function dO(){var i=to.current;return i===null?!0:(Rt&4194048)===Rt?Ao===null:(Rt&62914560)===Rt||(Rt&536870912)!==0?i===Ao:!1}function fO(){var i=q.H;return q.H=Cu,i===null?Cu:i}function hO(){var i=q.A;return q.A=C$,i}function _h(){Rn=4,Cs||(Rt&4194048)!==Rt&&to.current!==null||(Gl=!0),(As&134217727)===0&&($a&134217727)===0||en===null||Ps(en,Rt,oo,!1)}function G0(i,a,u){var m=zt;zt|=2;var _=fO(),S=hO();(en!==i||Rt!==a)&&(gh=null,Yl(i,a)),a=!1;var N=Rn;e:do try{if(Vt!==0&&bt!==null){var U=bt,J=ro;switch(Vt){case 8:q0(),N=6;break e;case 3:case 2:case 9:case 6:to.current===null&&(a=!0);var de=Vt;if(Vt=0,ro=null,Wl(i,U,J,de),u&&Gl){N=0;break e}break;default:de=Vt,Vt=0,ro=null,Wl(i,U,J,de)}}M$(),N=Rn;break}catch(ye){uO(i,ye)}while(!0);return a&&i.shellSuspendCounter++,$i=Ca=null,zt=m,q.H=_,q.A=S,bt===null&&(en=null,Rt=0,jf()),N}function M$(){for(;bt!==null;)pO(bt)}function P$(i,a){var u=zt;zt|=2;var m=fO(),_=hO();en!==i||Rt!==a?(gh=null,mh=Z()+500,Yl(i,a)):Gl=ct(i,a);e:do try{if(Vt!==0&&bt!==null){a=bt;var S=ro;t:switch(Vt){case 1:Vt=0,ro=null,Wl(i,a,S,1);break;case 2:case 9:if(xx(S)){Vt=0,ro=null,mO(a);break}a=function(){Vt!==2&&Vt!==9||en!==i||(Vt=7),di(i)},S.then(a,a);break e;case 3:Vt=7;break e;case 4:Vt=5;break e;case 7:xx(S)?(Vt=0,ro=null,mO(a)):(Vt=0,ro=null,Wl(i,a,S,7));break;case 5:var N=null;switch(bt.tag){case 26:N=bt.memoizedState;case 5:case 27:var U=bt;if(N?e2(N):U.stateNode.complete){Vt=0,ro=null;var J=U.sibling;if(J!==null)bt=J;else{var de=U.return;de!==null?(bt=de,yh(de)):bt=null}break t}}Vt=0,ro=null,Wl(i,a,S,5);break;case 6:Vt=0,ro=null,Wl(i,a,S,6);break;case 8:q0(),Rn=6;break e;default:throw Error(r(462))}}N$();break}catch(ye){uO(i,ye)}while(!0);return $i=Ca=null,q.H=m,q.A=_,zt=u,bt!==null?0:(en=null,Rt=0,jf(),Rn)}function N$(){for(;bt!==null&&!Me();)pO(bt)}function pO(i){var a=jR(i.alternate,i,Ki);i.memoizedProps=i.pendingProps,a===null?yh(i):bt=a}function mO(i){var a=i,u=a.alternate;switch(a.tag){case 15:case 0:a=PR(u,a,a.pendingProps,a.type,void 0,Rt);break;case 11:a=PR(u,a,a.pendingProps,a.type.render,a.ref,Rt);break;case 5:a0(a);default:zR(u,a),a=bt=hx(a,Ki),a=jR(u,a,Ki)}i.memoizedProps=i.pendingProps,a===null?yh(i):bt=a}function Wl(i,a,u,m){$i=Ca=null,a0(a),Ul=null,bu=0;var _=a.return;try{if(w$(i,_,a,u,Rt)){Rn=1,sh(i,Ro(u,i.current)),bt=null;return}}catch(S){if(_!==null)throw bt=_,S;Rn=1,sh(i,Ro(u,i.current)),bt=null;return}a.flags&32768?(At||m===1?i=!0:Gl||(Rt&536870912)!==0?i=!1:(Cs=i=!0,(m===2||m===9||m===3||m===6)&&(m=to.current,m!==null&&m.tag===13&&(m.flags|=16384))),gO(a,i)):yh(a)}function yh(i){var a=i;do{if((a.flags&32768)!==0){gO(a,Cs);return}i=a.return;var u=x$(a.alternate,a,Ki);if(u!==null){bt=u;return}if(a=a.sibling,a!==null){bt=a;return}bt=a=i}while(a!==null);Rn===0&&(Rn=5)}function gO(i,a){do{var u=R$(i.alternate,i);if(u!==null){u.flags&=32767,bt=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(i=i.sibling,i!==null)){bt=i;return}bt=i=u}while(i!==null);Rn=6,bt=null}function vO(i,a,u,m,_,S,N,U,J){i.cancelPendingCommit=null;do bh();while(qn!==0);if((zt&6)!==0)throw Error(r(327));if(a!==null){if(a===i.current)throw Error(r(177));if(S=a.lanes|a.childLanes,S|=kv,sn(i,u,S,N,U,J),i===en&&(bt=en=null,Rt=0),Zl=a,Ms=i,Zi=u,B0=S,V0=_,sO=m,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,$$(Ce,function(){return SO(),null})):(i.callbackNode=null,i.callbackPriority=0),m=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||m){m=q.T,q.T=null,_=W.p,W.p=2,N=zt,zt|=4;try{O$(i,a,u)}finally{zt=N,W.p=_,q.T=m}}qn=1,_O(),yO(),bO()}}function _O(){if(qn===1){qn=0;var i=Ms,a=Zl,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=q.T,q.T=null;var m=W.p;W.p=2;var _=zt;zt|=4;try{XR(a,i);var S=o_,N=ox(i.containerInfo),U=S.focusedElem,J=S.selectionRange;if(N!==U&&U&&U.ownerDocument&&rx(U.ownerDocument.documentElement,U)){if(J!==null&&Av(U)){var de=J.start,ye=J.end;if(ye===void 0&&(ye=de),"selectionStart"in U)U.selectionStart=de,U.selectionEnd=Math.min(ye,U.value.length);else{var Ee=U.ownerDocument||document,he=Ee&&Ee.defaultView||window;if(he.getSelection){var ge=he.getSelection(),Ve=U.textContent.length,nt=Math.min(J.start,Ve),Wt=J.end===void 0?nt:Math.min(J.end,Ve);!ge.extend&&nt>Wt&&(N=Wt,Wt=nt,nt=N);var ce=nx(U,nt),ie=nx(U,Wt);if(ce&&ie&&(ge.rangeCount!==1||ge.anchorNode!==ce.node||ge.anchorOffset!==ce.offset||ge.focusNode!==ie.node||ge.focusOffset!==ie.offset)){var ue=Ee.createRange();ue.setStart(ce.node,ce.offset),ge.removeAllRanges(),nt>Wt?(ge.addRange(ue),ge.extend(ie.node,ie.offset)):(ue.setEnd(ie.node,ie.offset),ge.addRange(ue))}}}}for(Ee=[],ge=U;ge=ge.parentNode;)ge.nodeType===1&&Ee.push({element:ge,left:ge.scrollLeft,top:ge.scrollTop});for(typeof U.focus=="function"&&U.focus(),U=0;U<Ee.length;U++){var be=Ee[U];be.element.scrollLeft=be.left,be.element.scrollTop=be.top}}Ph=!!r_,o_=r_=null}finally{zt=_,W.p=m,q.T=u}}i.current=a,qn=2}}function yO(){if(qn===2){qn=0;var i=Ms,a=Zl,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=q.T,q.T=null;var m=W.p;W.p=2;var _=zt;zt|=4;try{KR(i,a.alternate,a)}finally{zt=_,W.p=m,q.T=u}}qn=3}}function bO(){if(qn===4||qn===3){qn=0,ze();var i=Ms,a=Zl,u=Zi,m=sO;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?qn=5:(qn=0,Zl=Ms=null,wO(i,i.pendingLanes));var _=i.pendingLanes;if(_===0&&(Is=null),qo(u),a=a.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(_t,a,void 0,(a.current.flags&128)===128)}catch{}if(m!==null){a=q.T,_=W.p,W.p=2,q.T=null;try{for(var S=i.onRecoverableError,N=0;N<m.length;N++){var U=m[N];S(U.value,{componentStack:U.stack})}}finally{q.T=a,W.p=_}}(Zi&3)!==0&&bh(),di(i),_=i.pendingLanes,(u&261930)!==0&&(_&42)!==0?i===H0?$u++:($u=0,H0=i):$u=0,ju(0)}}function wO(i,a){(i.pooledCacheLanes&=a)===0&&(a=i.pooledCache,a!=null&&(i.pooledCache=null,_u(a)))}function bh(){return _O(),yO(),bO(),SO()}function SO(){if(qn!==5)return!1;var i=Ms,a=B0;B0=0;var u=qo(Zi),m=q.T,_=W.p;try{W.p=32>u?32:u,q.T=null,u=V0,V0=null;var S=Ms,N=Zi;if(qn=0,Zl=Ms=null,Zi=0,(zt&6)!==0)throw Error(r(331));var U=zt;if(zt|=4,rO(S.current),eO(S,S.current,N,u),zt=U,ju(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(_t,S)}catch{}return!0}finally{W.p=_,q.T=m,wO(i,a)}}function EO(i,a,u){a=Ro(u,a),a=S0(i.stateNode,a,2),i=xs(i,a,2),i!==null&&(Lt(i,2),di(i))}function Ht(i,a,u){if(i.tag===3)EO(i,i,u);else for(;a!==null;){if(a.tag===3){EO(a,i,u);break}else if(a.tag===1){var m=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Is===null||!Is.has(m))){i=Ro(u,i),u=xR(2),m=xs(a,u,2),m!==null&&(RR(u,m,a,i),Lt(m,2),di(m));break}}a=a.return}}function K0(i,a,u){var m=i.pingCache;if(m===null){m=i.pingCache=new A$;var _=new Set;m.set(a,_)}else _=m.get(a),_===void 0&&(_=new Set,m.set(a,_));_.has(u)||(U0=!0,_.add(u),i=k$.bind(null,i,a,u),a.then(i,i))}function k$(i,a,u){var m=i.pingCache;m!==null&&m.delete(a),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,en===i&&(Rt&u)===u&&(Rn===4||Rn===3&&(Rt&62914560)===Rt&&300>Z()-ph?(zt&2)===0&&Yl(i,0):z0|=u,Kl===Rt&&(Kl=0)),di(i)}function xO(i,a){a===0&&(a=Kt()),i=Ra(i,a),i!==null&&(Lt(i,a),di(i))}function D$(i){var a=i.memoizedState,u=0;a!==null&&(u=a.retryLane),xO(i,u)}function L$(i,a){var u=0;switch(i.tag){case 31:case 13:var m=i.stateNode,_=i.memoizedState;_!==null&&(u=_.retryLane);break;case 19:m=i.stateNode;break;case 22:m=i.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(a),xO(i,u)}function $$(i,a){return Qe(i,a)}var wh=null,Ql=null,Z0=!1,Sh=!1,Y0=!1,Ns=0;function di(i){i!==Ql&&i.next===null&&(Ql===null?wh=Ql=i:Ql=Ql.next=i),Sh=!0,Z0||(Z0=!0,U$())}function ju(i,a){if(!Y0&&Sh){Y0=!0;do for(var u=!1,m=wh;m!==null;){if(i!==0){var _=m.pendingLanes;if(_===0)var S=0;else{var N=m.suspendedLanes,U=m.pingedLanes;S=(1<<31-Ln(42|i)+1)-1,S&=_&~(N&~U),S=S&201326741?S&201326741|1:S?S|2:0}S!==0&&(u=!0,CO(m,S))}else S=Rt,S=Ke(m,m===en?S:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(S&3)===0||ct(m,S)||(u=!0,CO(m,S));m=m.next}while(u);Y0=!1}}function j$(){RO()}function RO(){Sh=Z0=!1;var i=0;Ns!==0&&Y$()&&(i=Ns);for(var a=Z(),u=null,m=wh;m!==null;){var _=m.next,S=OO(m,a);S===0?(m.next=null,u===null?wh=_:u.next=_,_===null&&(Ql=u)):(u=m,(i!==0||(S&3)!==0)&&(Sh=!0)),m=_}qn!==0&&qn!==5||ju(i),Ns!==0&&(Ns=0)}function OO(i,a){for(var u=i.suspendedLanes,m=i.pingedLanes,_=i.expirationTimes,S=i.pendingLanes&-62914561;0<S;){var N=31-Ln(S),U=1<<N,J=_[N];J===-1?((U&u)===0||(U&m)!==0)&&(_[N]=Jt(U,a)):J<=a&&(i.expiredLanes|=U),S&=~U}if(a=en,u=Rt,u=Ke(i,i===a?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m=i.callbackNode,u===0||i===a&&(Vt===2||Vt===9)||i.cancelPendingCommit!==null)return m!==null&&m!==null&&Pe(m),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||ct(i,u)){if(a=u&-u,a===i.callbackPriority)return a;switch(m!==null&&Pe(m),qo(u)){case 2:case 8:u=Re;break;case 32:u=Ce;break;case 268435456:u=ke;break;default:u=Ce}return m=TO.bind(null,i),u=Qe(u,m),i.callbackPriority=a,i.callbackNode=u,a}return m!==null&&m!==null&&Pe(m),i.callbackPriority=2,i.callbackNode=null,2}function TO(i,a){if(qn!==0&&qn!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(bh()&&i.callbackNode!==u)return null;var m=Rt;return m=Ke(i,i===en?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m===0?null:(lO(i,m,a),OO(i,Z()),i.callbackNode!=null&&i.callbackNode===u?TO.bind(null,i):null)}function CO(i,a){if(bh())return null;lO(i,a,!0)}function U$(){Q$(function(){(zt&6)!==0?Qe(ae,j$):RO()})}function W0(){if(Ns===0){var i=Ll;i===0&&(i=ft,ft<<=1,(ft&261888)===0&&(ft=256)),Ns=i}return Ns}function AO(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:If(""+i)}function IO(i,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,i.id&&u.setAttribute("form",i.id),a.parentNode.insertBefore(u,a),i=new FormData(i),u.parentNode.removeChild(u),i}function z$(i,a,u,m,_){if(a==="submit"&&u&&u.stateNode===_){var S=AO((_[Ur]||null).action),N=m.submitter;N&&(a=(a=N[Ur]||null)?AO(a.formAction):N.getAttribute("formAction"),a!==null&&(S=a,N=null));var U=new kf("action","action",null,m,_);i.push({event:U,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Ns!==0){var J=N?IO(_,N):new FormData(_);g0(u,{pending:!0,data:J,method:_.method,action:S},null,J)}}else typeof S=="function"&&(U.preventDefault(),J=N?IO(_,N):new FormData(_),g0(u,{pending:!0,data:J,method:_.method,action:S},S,J))},currentTarget:_}]})}}for(var Q0=0;Q0<Nv.length;Q0++){var X0=Nv[Q0],F$=X0.toLowerCase(),B$=X0[0].toUpperCase()+X0.slice(1);Go(F$,"on"+B$)}Go(ax,"onAnimationEnd"),Go(lx,"onAnimationIteration"),Go(cx,"onAnimationStart"),Go("dblclick","onDoubleClick"),Go("focusin","onFocus"),Go("focusout","onBlur"),Go(o$,"onTransitionRun"),Go(i$,"onTransitionStart"),Go(s$,"onTransitionCancel"),Go(ux,"onTransitionEnd"),Sl("onMouseEnter",["mouseout","mouseover"]),Sl("onMouseLeave",["mouseout","mouseover"]),Sl("onPointerEnter",["pointerout","pointerover"]),Sl("onPointerLeave",["pointerout","pointerover"]),wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Uu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),V$=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Uu));function MO(i,a){a=(a&4)!==0;for(var u=0;u<i.length;u++){var m=i[u],_=m.event;m=m.listeners;e:{var S=void 0;if(a)for(var N=m.length-1;0<=N;N--){var U=m[N],J=U.instance,de=U.currentTarget;if(U=U.listener,J!==S&&_.isPropagationStopped())break e;S=U,_.currentTarget=de;try{S(_)}catch(ye){$f(ye)}_.currentTarget=null,S=J}else for(N=0;N<m.length;N++){if(U=m[N],J=U.instance,de=U.currentTarget,U=U.listener,J!==S&&_.isPropagationStopped())break e;S=U,_.currentTarget=de;try{S(_)}catch(ye){$f(ye)}_.currentTarget=null,S=J}}}}function wt(i,a){var u=a[dv];u===void 0&&(u=a[dv]=new Set);var m=i+"__bubble";u.has(m)||(PO(a,i,2,!1),u.add(m))}function J0(i,a,u){var m=0;a&&(m|=4),PO(u,i,m,a)}var Eh="_reactListening"+Math.random().toString(36).slice(2);function e_(i){if(!i[Eh]){i[Eh]=!0,RE.forEach(function(u){u!=="selectionchange"&&(V$.has(u)||J0(u,!1,i),J0(u,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[Eh]||(a[Eh]=!0,J0("selectionchange",!1,a))}}function PO(i,a,u,m){switch(a2(a)){case 2:var _=vj;break;case 8:_=_j;break;default:_=m_}u=_.bind(null,a,u,i),_=void 0,!bv||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(_=!0),m?_!==void 0?i.addEventListener(a,u,{capture:!0,passive:_}):i.addEventListener(a,u,!0):_!==void 0?i.addEventListener(a,u,{passive:_}):i.addEventListener(a,u,!1)}function t_(i,a,u,m,_){var S=m;if((a&1)===0&&(a&2)===0&&m!==null)e:for(;;){if(m===null)return;var N=m.tag;if(N===3||N===4){var U=m.stateNode.containerInfo;if(U===_)break;if(N===4)for(N=m.return;N!==null;){var J=N.tag;if((J===3||J===4)&&N.stateNode.containerInfo===_)return;N=N.return}for(;U!==null;){if(N=yl(U),N===null)return;if(J=N.tag,J===5||J===6||J===26||J===27){m=S=N;continue e}U=U.parentNode}}m=m.return}$E(function(){var de=S,ye=_v(u),Ee=[];e:{var he=dx.get(i);if(he!==void 0){var ge=kf,Ve=i;switch(i){case"keypress":if(Pf(u)===0)break e;case"keydown":case"keyup":ge=LL;break;case"focusin":Ve="focus",ge=xv;break;case"focusout":Ve="blur",ge=xv;break;case"beforeblur":case"afterblur":ge=xv;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ge=zE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ge=xL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ge=UL;break;case ax:case lx:case cx:ge=TL;break;case ux:ge=FL;break;case"scroll":case"scrollend":ge=SL;break;case"wheel":ge=VL;break;case"copy":case"cut":case"paste":ge=AL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ge=BE;break;case"toggle":case"beforetoggle":ge=qL}var nt=(a&4)!==0,Wt=!nt&&(i==="scroll"||i==="scrollend"),ce=nt?he!==null?he+"Capture":null:he;nt=[];for(var ie=de,ue;ie!==null;){var be=ie;if(ue=be.stateNode,be=be.tag,be!==5&&be!==26&&be!==27||ue===null||ce===null||(be=au(ie,ce),be!=null&&nt.push(zu(ie,be,ue))),Wt)break;ie=ie.return}0<nt.length&&(he=new ge(he,Ve,null,u,ye),Ee.push({event:he,listeners:nt}))}}if((a&7)===0){e:{if(he=i==="mouseover"||i==="pointerover",ge=i==="mouseout"||i==="pointerout",he&&u!==vv&&(Ve=u.relatedTarget||u.fromElement)&&(yl(Ve)||Ve[_l]))break e;if((ge||he)&&(he=ye.window===ye?ye:(he=ye.ownerDocument)?he.defaultView||he.parentWindow:window,ge?(Ve=u.relatedTarget||u.toElement,ge=de,Ve=Ve?yl(Ve):null,Ve!==null&&(Wt=s(Ve),nt=Ve.tag,Ve!==Wt||nt!==5&&nt!==27&&nt!==6)&&(Ve=null)):(ge=null,Ve=de),ge!==Ve)){if(nt=zE,be="onMouseLeave",ce="onMouseEnter",ie="mouse",(i==="pointerout"||i==="pointerover")&&(nt=BE,be="onPointerLeave",ce="onPointerEnter",ie="pointer"),Wt=ge==null?he:su(ge),ue=Ve==null?he:su(Ve),he=new nt(be,ie+"leave",ge,u,ye),he.target=Wt,he.relatedTarget=ue,be=null,yl(ye)===de&&(nt=new nt(ce,ie+"enter",Ve,u,ye),nt.target=ue,nt.relatedTarget=Wt,be=nt),Wt=be,ge&&Ve)t:{for(nt=H$,ce=ge,ie=Ve,ue=0,be=ce;be;be=nt(be))ue++;be=0;for(var Xe=ie;Xe;Xe=nt(Xe))be++;for(;0<ue-be;)ce=nt(ce),ue--;for(;0<be-ue;)ie=nt(ie),be--;for(;ue--;){if(ce===ie||ie!==null&&ce===ie.alternate){nt=ce;break t}ce=nt(ce),ie=nt(ie)}nt=null}else nt=null;ge!==null&&NO(Ee,he,ge,nt,!1),Ve!==null&&Wt!==null&&NO(Ee,Wt,Ve,nt,!0)}}e:{if(he=de?su(de):window,ge=he.nodeName&&he.nodeName.toLowerCase(),ge==="select"||ge==="input"&&he.type==="file")var $t=WE;else if(ZE(he))if(QE)$t=t$;else{$t=JL;var Ze=XL}else ge=he.nodeName,!ge||ge.toLowerCase()!=="input"||he.type!=="checkbox"&&he.type!=="radio"?de&&gv(de.elementType)&&($t=WE):$t=e$;if($t&&($t=$t(i,de))){YE(Ee,$t,u,ye);break e}Ze&&Ze(i,he,de),i==="focusout"&&de&&he.type==="number"&&de.memoizedProps.value!=null&&mv(he,"number",he.value)}switch(Ze=de?su(de):window,i){case"focusin":(ZE(Ze)||Ze.contentEditable==="true")&&(Cl=Ze,Iv=de,mu=null);break;case"focusout":mu=Iv=Cl=null;break;case"mousedown":Mv=!0;break;case"contextmenu":case"mouseup":case"dragend":Mv=!1,ix(Ee,u,ye);break;case"selectionchange":if(r$)break;case"keydown":case"keyup":ix(Ee,u,ye)}var at;if(Ov)e:{switch(i){case"compositionstart":var Ot="onCompositionStart";break e;case"compositionend":Ot="onCompositionEnd";break e;case"compositionupdate":Ot="onCompositionUpdate";break e}Ot=void 0}else Tl?GE(i,u)&&(Ot="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(Ot="onCompositionStart");Ot&&(VE&&u.locale!=="ko"&&(Tl||Ot!=="onCompositionStart"?Ot==="onCompositionEnd"&&Tl&&(at=jE()):(vs=ye,wv="value"in vs?vs.value:vs.textContent,Tl=!0)),Ze=xh(de,Ot),0<Ze.length&&(Ot=new FE(Ot,i,null,u,ye),Ee.push({event:Ot,listeners:Ze}),at?Ot.data=at:(at=KE(u),at!==null&&(Ot.data=at)))),(at=KL?ZL(i,u):YL(i,u))&&(Ot=xh(de,"onBeforeInput"),0<Ot.length&&(Ze=new FE("onBeforeInput","beforeinput",null,u,ye),Ee.push({event:Ze,listeners:Ot}),Ze.data=at)),z$(Ee,i,de,u,ye)}MO(Ee,a)})}function zu(i,a,u){return{instance:i,listener:a,currentTarget:u}}function xh(i,a){for(var u=a+"Capture",m=[];i!==null;){var _=i,S=_.stateNode;if(_=_.tag,_!==5&&_!==26&&_!==27||S===null||(_=au(i,u),_!=null&&m.unshift(zu(i,_,S)),_=au(i,a),_!=null&&m.push(zu(i,_,S))),i.tag===3)return m;i=i.return}return[]}function H$(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function NO(i,a,u,m,_){for(var S=a._reactName,N=[];u!==null&&u!==m;){var U=u,J=U.alternate,de=U.stateNode;if(U=U.tag,J!==null&&J===m)break;U!==5&&U!==26&&U!==27||de===null||(J=de,_?(de=au(u,S),de!=null&&N.unshift(zu(u,de,J))):_||(de=au(u,S),de!=null&&N.push(zu(u,de,J)))),u=u.return}N.length!==0&&i.push({event:a,listeners:N})}var q$=/\r\n?/g,G$=/\u0000|\uFFFD/g;function kO(i){return(typeof i=="string"?i:""+i).replace(q$,`
|
|
10
|
-
`).replace(G$,"")}function DO(i,a){return a=kO(a),kO(i)===a}function Yt(i,a,u,m,_,S){switch(u){case"children":typeof m=="string"?a==="body"||a==="textarea"&&m===""||xl(i,m):(typeof m=="number"||typeof m=="bigint")&&a!=="body"&&xl(i,""+m);break;case"className":Cf(i,"class",m);break;case"tabIndex":Cf(i,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Cf(i,u,m);break;case"style":DE(i,m,S);break;case"data":if(a!=="object"){Cf(i,"data",m);break}case"src":case"href":if(m===""&&(a!=="a"||u!=="href")){i.removeAttribute(u);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(u);break}m=If(""+m),i.setAttribute(u,m);break;case"action":case"formAction":if(typeof m=="function"){i.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof S=="function"&&(u==="formAction"?(a!=="input"&&Yt(i,a,"name",_.name,_,null),Yt(i,a,"formEncType",_.formEncType,_,null),Yt(i,a,"formMethod",_.formMethod,_,null),Yt(i,a,"formTarget",_.formTarget,_,null)):(Yt(i,a,"encType",_.encType,_,null),Yt(i,a,"method",_.method,_,null),Yt(i,a,"target",_.target,_,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(u);break}m=If(""+m),i.setAttribute(u,m);break;case"onClick":m!=null&&(i.onclick=Ni);break;case"onScroll":m!=null&&wt("scroll",i);break;case"onScrollEnd":m!=null&&wt("scrollend",i);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(_.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":i.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){i.removeAttribute("xlink:href");break}u=If(""+m),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(u,""+m):i.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":m===!0?i.setAttribute(u,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(u,m):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?i.setAttribute(u,m):i.removeAttribute(u);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?i.removeAttribute(u):i.setAttribute(u,m);break;case"popover":wt("beforetoggle",i),wt("toggle",i),Tf(i,"popover",m);break;case"xlinkActuate":Pi(i,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Pi(i,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Pi(i,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Pi(i,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Pi(i,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Pi(i,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Pi(i,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Pi(i,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Pi(i,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Tf(i,"is",m);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=bL.get(u)||u,Tf(i,u,m))}}function n_(i,a,u,m,_,S){switch(u){case"style":DE(i,m,S);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(_.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof m=="string"?xl(i,m):(typeof m=="number"||typeof m=="bigint")&&xl(i,""+m);break;case"onScroll":m!=null&&wt("scroll",i);break;case"onScrollEnd":m!=null&&wt("scrollend",i);break;case"onClick":m!=null&&(i.onclick=Ni);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!OE.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(_=u.endsWith("Capture"),a=u.slice(2,_?u.length-7:void 0),S=i[Ur]||null,S=S!=null?S[u]:null,typeof S=="function"&&i.removeEventListener(a,S,_),typeof m=="function")){typeof S!="function"&&S!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(a,m,_);break e}u in i?i[u]=m:m===!0?i.setAttribute(u,""):Tf(i,u,m)}}}function dr(i,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":wt("error",i),wt("load",i);var m=!1,_=!1,S;for(S in u)if(u.hasOwnProperty(S)){var N=u[S];if(N!=null)switch(S){case"src":m=!0;break;case"srcSet":_=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Yt(i,a,S,N,u,null)}}_&&Yt(i,a,"srcSet",u.srcSet,u,null),m&&Yt(i,a,"src",u.src,u,null);return;case"input":wt("invalid",i);var U=S=N=_=null,J=null,de=null;for(m in u)if(u.hasOwnProperty(m)){var ye=u[m];if(ye!=null)switch(m){case"name":_=ye;break;case"type":N=ye;break;case"checked":J=ye;break;case"defaultChecked":de=ye;break;case"value":S=ye;break;case"defaultValue":U=ye;break;case"children":case"dangerouslySetInnerHTML":if(ye!=null)throw Error(r(137,a));break;default:Yt(i,a,m,ye,u,null)}}ME(i,S,U,J,de,N,_,!1);return;case"select":wt("invalid",i),m=N=S=null;for(_ in u)if(u.hasOwnProperty(_)&&(U=u[_],U!=null))switch(_){case"value":S=U;break;case"defaultValue":N=U;break;case"multiple":m=U;default:Yt(i,a,_,U,u,null)}a=S,u=N,i.multiple=!!m,a!=null?El(i,!!m,a,!1):u!=null&&El(i,!!m,u,!0);return;case"textarea":wt("invalid",i),S=_=m=null;for(N in u)if(u.hasOwnProperty(N)&&(U=u[N],U!=null))switch(N){case"value":m=U;break;case"defaultValue":_=U;break;case"children":S=U;break;case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(91));break;default:Yt(i,a,N,U,u,null)}NE(i,m,_,S);return;case"option":for(J in u)u.hasOwnProperty(J)&&(m=u[J],m!=null)&&(J==="selected"?i.selected=m&&typeof m!="function"&&typeof m!="symbol":Yt(i,a,J,m,u,null));return;case"dialog":wt("beforetoggle",i),wt("toggle",i),wt("cancel",i),wt("close",i);break;case"iframe":case"object":wt("load",i);break;case"video":case"audio":for(m=0;m<Uu.length;m++)wt(Uu[m],i);break;case"image":wt("error",i),wt("load",i);break;case"details":wt("toggle",i);break;case"embed":case"source":case"link":wt("error",i),wt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in u)if(u.hasOwnProperty(de)&&(m=u[de],m!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Yt(i,a,de,m,u,null)}return;default:if(gv(a)){for(ye in u)u.hasOwnProperty(ye)&&(m=u[ye],m!==void 0&&n_(i,a,ye,m,u,void 0));return}}for(U in u)u.hasOwnProperty(U)&&(m=u[U],m!=null&&Yt(i,a,U,m,u,null))}function K$(i,a,u,m){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var _=null,S=null,N=null,U=null,J=null,de=null,ye=null;for(ge in u){var Ee=u[ge];if(u.hasOwnProperty(ge)&&Ee!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":J=Ee;default:m.hasOwnProperty(ge)||Yt(i,a,ge,null,m,Ee)}}for(var he in m){var ge=m[he];if(Ee=u[he],m.hasOwnProperty(he)&&(ge!=null||Ee!=null))switch(he){case"type":S=ge;break;case"name":_=ge;break;case"checked":de=ge;break;case"defaultChecked":ye=ge;break;case"value":N=ge;break;case"defaultValue":U=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(r(137,a));break;default:ge!==Ee&&Yt(i,a,he,ge,m,Ee)}}pv(i,N,U,J,de,ye,S,_);return;case"select":ge=N=U=he=null;for(S in u)if(J=u[S],u.hasOwnProperty(S)&&J!=null)switch(S){case"value":break;case"multiple":ge=J;default:m.hasOwnProperty(S)||Yt(i,a,S,null,m,J)}for(_ in m)if(S=m[_],J=u[_],m.hasOwnProperty(_)&&(S!=null||J!=null))switch(_){case"value":he=S;break;case"defaultValue":U=S;break;case"multiple":N=S;default:S!==J&&Yt(i,a,_,S,m,J)}a=U,u=N,m=ge,he!=null?El(i,!!u,he,!1):!!m!=!!u&&(a!=null?El(i,!!u,a,!0):El(i,!!u,u?[]:"",!1));return;case"textarea":ge=he=null;for(U in u)if(_=u[U],u.hasOwnProperty(U)&&_!=null&&!m.hasOwnProperty(U))switch(U){case"value":break;case"children":break;default:Yt(i,a,U,null,m,_)}for(N in m)if(_=m[N],S=u[N],m.hasOwnProperty(N)&&(_!=null||S!=null))switch(N){case"value":he=_;break;case"defaultValue":ge=_;break;case"children":break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(91));break;default:_!==S&&Yt(i,a,N,_,m,S)}PE(i,he,ge);return;case"option":for(var Ve in u)he=u[Ve],u.hasOwnProperty(Ve)&&he!=null&&!m.hasOwnProperty(Ve)&&(Ve==="selected"?i.selected=!1:Yt(i,a,Ve,null,m,he));for(J in m)he=m[J],ge=u[J],m.hasOwnProperty(J)&&he!==ge&&(he!=null||ge!=null)&&(J==="selected"?i.selected=he&&typeof he!="function"&&typeof he!="symbol":Yt(i,a,J,he,m,ge));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var nt in u)he=u[nt],u.hasOwnProperty(nt)&&he!=null&&!m.hasOwnProperty(nt)&&Yt(i,a,nt,null,m,he);for(de in m)if(he=m[de],ge=u[de],m.hasOwnProperty(de)&&he!==ge&&(he!=null||ge!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,a));break;default:Yt(i,a,de,he,m,ge)}return;default:if(gv(a)){for(var Wt in u)he=u[Wt],u.hasOwnProperty(Wt)&&he!==void 0&&!m.hasOwnProperty(Wt)&&n_(i,a,Wt,void 0,m,he);for(ye in m)he=m[ye],ge=u[ye],!m.hasOwnProperty(ye)||he===ge||he===void 0&&ge===void 0||n_(i,a,ye,he,m,ge);return}}for(var ce in u)he=u[ce],u.hasOwnProperty(ce)&&he!=null&&!m.hasOwnProperty(ce)&&Yt(i,a,ce,null,m,he);for(Ee in m)he=m[Ee],ge=u[Ee],!m.hasOwnProperty(Ee)||he===ge||he==null&&ge==null||Yt(i,a,Ee,he,m,ge)}function LO(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Z$(){if(typeof performance.getEntriesByType=="function"){for(var i=0,a=0,u=performance.getEntriesByType("resource"),m=0;m<u.length;m++){var _=u[m],S=_.transferSize,N=_.initiatorType,U=_.duration;if(S&&U&&LO(N)){for(N=0,U=_.responseEnd,m+=1;m<u.length;m++){var J=u[m],de=J.startTime;if(de>U)break;var ye=J.transferSize,Ee=J.initiatorType;ye&&LO(Ee)&&(J=J.responseEnd,N+=ye*(J<U?1:(U-de)/(J-de)))}if(--m,a+=8*(S+N)/(_.duration/1e3),i++,10<i)break}}if(0<i)return a/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var r_=null,o_=null;function Rh(i){return i.nodeType===9?i:i.ownerDocument}function $O(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jO(i,a){if(i===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&a==="foreignObject"?0:i}function i_(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var s_=null;function Y$(){var i=window.event;return i&&i.type==="popstate"?i===s_?!1:(s_=i,!0):(s_=null,!1)}var UO=typeof setTimeout=="function"?setTimeout:void 0,W$=typeof clearTimeout=="function"?clearTimeout:void 0,zO=typeof Promise=="function"?Promise:void 0,Q$=typeof queueMicrotask=="function"?queueMicrotask:typeof zO<"u"?function(i){return zO.resolve(null).then(i).catch(X$)}:UO;function X$(i){setTimeout(function(){throw i})}function ks(i){return i==="head"}function FO(i,a){var u=a,m=0;do{var _=u.nextSibling;if(i.removeChild(u),_&&_.nodeType===8)if(u=_.data,u==="/$"||u==="/&"){if(m===0){i.removeChild(_),tc(a);return}m--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")m++;else if(u==="html")Fu(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,Fu(u);for(var S=u.firstChild;S;){var N=S.nextSibling,U=S.nodeName;S[iu]||U==="SCRIPT"||U==="STYLE"||U==="LINK"&&S.rel.toLowerCase()==="stylesheet"||u.removeChild(S),S=N}}else u==="body"&&Fu(i.ownerDocument.body);u=_}while(u);tc(a)}function BO(i,a){var u=i;i=0;do{var m=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=m}while(u)}function a_(i){var a=i.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":a_(u),fv(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function J$(i,a,u,m){for(;i.nodeType===1;){var _=u;if(i.nodeName.toLowerCase()!==a.toLowerCase()){if(!m&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(m){if(!i[iu])switch(a){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(S=i.getAttribute("rel"),S==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(S!==_.rel||i.getAttribute("href")!==(_.href==null||_.href===""?null:_.href)||i.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin)||i.getAttribute("title")!==(_.title==null?null:_.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(S=i.getAttribute("src"),(S!==(_.src==null?null:_.src)||i.getAttribute("type")!==(_.type==null?null:_.type)||i.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin))&&S&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(a==="input"&&i.type==="hidden"){var S=_.name==null?null:""+_.name;if(_.type==="hidden"&&i.getAttribute("name")===S)return i}else return i;if(i=Io(i.nextSibling),i===null)break}return null}function ej(i,a,u){if(a==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Io(i.nextSibling),i===null))return null;return i}function VO(i,a){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!a||(i=Io(i.nextSibling),i===null))return null;return i}function l_(i){return i.data==="$?"||i.data==="$~"}function c_(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function tj(i,a){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=a;else if(i.data!=="$?"||u.readyState!=="loading")a();else{var m=function(){a(),u.removeEventListener("DOMContentLoaded",m)};u.addEventListener("DOMContentLoaded",m),i._reactRetry=m}}function Io(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return i}var u_=null;function HO(i){i=i.nextSibling;for(var a=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(a===0)return Io(i.nextSibling);a--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||a++}i=i.nextSibling}return null}function qO(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(a===0)return i;a--}else u!=="/$"&&u!=="/&"||a++}i=i.previousSibling}return null}function GO(i,a,u){switch(a=Rh(u),i){case"html":if(i=a.documentElement,!i)throw Error(r(452));return i;case"head":if(i=a.head,!i)throw Error(r(453));return i;case"body":if(i=a.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Fu(i){for(var a=i.attributes;a.length;)i.removeAttributeNode(a[0]);fv(i)}var Mo=new Map,KO=new Set;function Oh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Yi=W.d;W.d={f:nj,r:rj,D:oj,C:ij,L:sj,m:aj,X:cj,S:lj,M:uj};function nj(){var i=Yi.f(),a=vh();return i||a}function rj(i){var a=bl(i);a!==null&&a.tag===5&&a.type==="form"?uR(a):Yi.r(i)}var Xl=typeof document>"u"?null:document;function ZO(i,a,u){var m=Xl;if(m&&typeof a=="string"&&a){var _=Eo(a);_='link[rel="'+i+'"][href="'+_+'"]',typeof u=="string"&&(_+='[crossorigin="'+u+'"]'),KO.has(_)||(KO.add(_),i={rel:i,crossOrigin:u,href:a},m.querySelector(_)===null&&(a=m.createElement("link"),dr(a,"link",i),er(a),m.head.appendChild(a)))}}function oj(i){Yi.D(i),ZO("dns-prefetch",i,null)}function ij(i,a){Yi.C(i,a),ZO("preconnect",i,a)}function sj(i,a,u){Yi.L(i,a,u);var m=Xl;if(m&&i&&a){var _='link[rel="preload"][as="'+Eo(a)+'"]';a==="image"&&u&&u.imageSrcSet?(_+='[imagesrcset="'+Eo(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(_+='[imagesizes="'+Eo(u.imageSizes)+'"]')):_+='[href="'+Eo(i)+'"]';var S=_;switch(a){case"style":S=Jl(i);break;case"script":S=ec(i)}Mo.has(S)||(i=h({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:i,as:a},u),Mo.set(S,i),m.querySelector(_)!==null||a==="style"&&m.querySelector(Bu(S))||a==="script"&&m.querySelector(Vu(S))||(a=m.createElement("link"),dr(a,"link",i),er(a),m.head.appendChild(a)))}}function aj(i,a){Yi.m(i,a);var u=Xl;if(u&&i){var m=a&&typeof a.as=="string"?a.as:"script",_='link[rel="modulepreload"][as="'+Eo(m)+'"][href="'+Eo(i)+'"]',S=_;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=ec(i)}if(!Mo.has(S)&&(i=h({rel:"modulepreload",href:i},a),Mo.set(S,i),u.querySelector(_)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Vu(S)))return}m=u.createElement("link"),dr(m,"link",i),er(m),u.head.appendChild(m)}}}function lj(i,a,u){Yi.S(i,a,u);var m=Xl;if(m&&i){var _=wl(m).hoistableStyles,S=Jl(i);a=a||"default";var N=_.get(S);if(!N){var U={loading:0,preload:null};if(N=m.querySelector(Bu(S)))U.loading=5;else{i=h({rel:"stylesheet",href:i,"data-precedence":a},u),(u=Mo.get(S))&&d_(i,u);var J=N=m.createElement("link");er(J),dr(J,"link",i),J._p=new Promise(function(de,ye){J.onload=de,J.onerror=ye}),J.addEventListener("load",function(){U.loading|=1}),J.addEventListener("error",function(){U.loading|=2}),U.loading|=4,Th(N,a,m)}N={type:"stylesheet",instance:N,count:1,state:U},_.set(S,N)}}}function cj(i,a){Yi.X(i,a);var u=Xl;if(u&&i){var m=wl(u).hoistableScripts,_=ec(i),S=m.get(_);S||(S=u.querySelector(Vu(_)),S||(i=h({src:i,async:!0},a),(a=Mo.get(_))&&f_(i,a),S=u.createElement("script"),er(S),dr(S,"link",i),u.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},m.set(_,S))}}function uj(i,a){Yi.M(i,a);var u=Xl;if(u&&i){var m=wl(u).hoistableScripts,_=ec(i),S=m.get(_);S||(S=u.querySelector(Vu(_)),S||(i=h({src:i,async:!0,type:"module"},a),(a=Mo.get(_))&&f_(i,a),S=u.createElement("script"),er(S),dr(S,"link",i),u.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},m.set(_,S))}}function YO(i,a,u,m){var _=(_=X.current)?Oh(_):null;if(!_)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=Jl(u.href),u=wl(_).hoistableStyles,m=u.get(a),m||(m={type:"style",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=Jl(u.href);var S=wl(_).hoistableStyles,N=S.get(i);if(N||(_=_.ownerDocument||_,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(i,N),(S=_.querySelector(Bu(i)))&&!S._p&&(N.instance=S,N.state.loading=5),Mo.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Mo.set(i,u),S||dj(_,i,u,N.state))),a&&m===null)throw Error(r(528,""));return N}if(a&&m!==null)throw Error(r(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=ec(u),u=wl(_).hoistableScripts,m=u.get(a),m||(m={type:"script",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Jl(i){return'href="'+Eo(i)+'"'}function Bu(i){return'link[rel="stylesheet"]['+i+"]"}function WO(i){return h({},i,{"data-precedence":i.precedence,precedence:null})}function dj(i,a,u,m){i.querySelector('link[rel="preload"][as="style"]['+a+"]")?m.loading=1:(a=i.createElement("link"),m.preload=a,a.addEventListener("load",function(){return m.loading|=1}),a.addEventListener("error",function(){return m.loading|=2}),dr(a,"link",u),er(a),i.head.appendChild(a))}function ec(i){return'[src="'+Eo(i)+'"]'}function Vu(i){return"script[async]"+i}function QO(i,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var m=i.querySelector('style[data-href~="'+Eo(u.href)+'"]');if(m)return a.instance=m,er(m),m;var _=h({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return m=(i.ownerDocument||i).createElement("style"),er(m),dr(m,"style",_),Th(m,u.precedence,i),a.instance=m;case"stylesheet":_=Jl(u.href);var S=i.querySelector(Bu(_));if(S)return a.state.loading|=4,a.instance=S,er(S),S;m=WO(u),(_=Mo.get(_))&&d_(m,_),S=(i.ownerDocument||i).createElement("link"),er(S);var N=S;return N._p=new Promise(function(U,J){N.onload=U,N.onerror=J}),dr(S,"link",m),a.state.loading|=4,Th(S,u.precedence,i),a.instance=S;case"script":return S=ec(u.src),(_=i.querySelector(Vu(S)))?(a.instance=_,er(_),_):(m=u,(_=Mo.get(S))&&(m=h({},u),f_(m,_)),i=i.ownerDocument||i,_=i.createElement("script"),er(_),dr(_,"link",m),i.head.appendChild(_),a.instance=_);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(m=a.instance,a.state.loading|=4,Th(m,u.precedence,i));return a.instance}function Th(i,a,u){for(var m=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),_=m.length?m[m.length-1]:null,S=_,N=0;N<m.length;N++){var U=m[N];if(U.dataset.precedence===a)S=U;else if(S!==_)break}S?S.parentNode.insertBefore(i,S.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(i,a.firstChild))}function d_(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.title==null&&(i.title=a.title)}function f_(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.integrity==null&&(i.integrity=a.integrity)}var Ch=null;function XO(i,a,u){if(Ch===null){var m=new Map,_=Ch=new Map;_.set(u,m)}else _=Ch,m=_.get(u),m||(m=new Map,_.set(u,m));if(m.has(i))return m;for(m.set(i,null),u=u.getElementsByTagName(i),_=0;_<u.length;_++){var S=u[_];if(!(S[iu]||S[ar]||i==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var N=S.getAttribute(a)||"";N=i+N;var U=m.get(N);U?U.push(S):m.set(N,[S])}}return m}function JO(i,a,u){i=i.ownerDocument||i,i.head.insertBefore(u,a==="title"?i.querySelector("head > title"):null)}function fj(i,a,u){if(u===1||a.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(i=a.disabled,typeof a.precedence=="string"&&i==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function e2(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function hj(i,a,u,m){if(u.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var _=Jl(m.href),S=a.querySelector(Bu(_));if(S){a=S._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(i.count++,i=Ah.bind(i),a.then(i,i)),u.state.loading|=4,u.instance=S,er(S);return}S=a.ownerDocument||a,m=WO(m),(_=Mo.get(_))&&d_(m,_),S=S.createElement("link"),er(S);var N=S;N._p=new Promise(function(U,J){N.onload=U,N.onerror=J}),dr(S,"link",m),u.instance=S}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=Ah.bind(i),a.addEventListener("load",u),a.addEventListener("error",u))}}var h_=0;function pj(i,a){return i.stylesheets&&i.count===0&&Mh(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var m=setTimeout(function(){if(i.stylesheets&&Mh(i,i.stylesheets),i.unsuspend){var S=i.unsuspend;i.unsuspend=null,S()}},6e4+a);0<i.imgBytes&&h_===0&&(h_=62500*Z$());var _=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&Mh(i,i.stylesheets),i.unsuspend)){var S=i.unsuspend;i.unsuspend=null,S()}},(i.imgBytes>h_?50:800)+a);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(m),clearTimeout(_)}}:null}function Ah(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Mh(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Ih=null;function Mh(i,a){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Ih=new Map,a.forEach(mj,i),Ih=null,Ah.call(i))}function mj(i,a){if(!(a.state.loading&4)){var u=Ih.get(i);if(u)var m=u.get(null);else{u=new Map,Ih.set(i,u);for(var _=i.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<_.length;S++){var N=_[S];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(u.set(N.dataset.precedence,N),m=N)}m&&u.set(null,m)}_=a.instance,N=_.getAttribute("data-precedence"),S=u.get(N)||m,S===m&&u.set(null,_),u.set(N,_),this.count++,m=Ah.bind(this),_.addEventListener("load",m),_.addEventListener("error",m),S?S.parentNode.insertBefore(_,S.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(_,i.firstChild)),a.state.loading|=4}}var Hu={$$typeof:T,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function gj(i,a,u,m,_,S,N,U,J){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=wr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wr(0),this.hiddenUpdates=wr(null),this.identifierPrefix=m,this.onUncaughtError=_,this.onCaughtError=S,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=J,this.incompleteTransitions=new Map}function t2(i,a,u,m,_,S,N,U,J,de,ye,Ee){return i=new gj(i,a,u,N,J,de,ye,Ee,U),a=1,S===!0&&(a|=24),S=eo(3,null,null,a),i.current=S,S.stateNode=i,a=Gv(),a.refCount++,i.pooledCache=a,a.refCount++,S.memoizedState={element:m,isDehydrated:u,cache:a},Wv(S),i}function n2(i){return i?(i=Ml,i):Ml}function r2(i,a,u,m,_,S){_=n2(_),m.context===null?m.context=_:m.pendingContext=_,m=Es(a),m.payload={element:u},S=S===void 0?null:S,S!==null&&(m.callback=S),u=xs(i,m,a),u!==null&&(qr(u,i,a),Su(u,i,a))}function o2(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<a?u:a}}function p_(i,a){o2(i,a),(i=i.alternate)&&o2(i,a)}function i2(i){if(i.tag===13||i.tag===31){var a=Ra(i,67108864);a!==null&&qr(a,i,67108864),p_(i,67108864)}}function s2(i){if(i.tag===13||i.tag===31){var a=io();a=vl(a);var u=Ra(i,a);u!==null&&qr(u,i,a),p_(i,a)}}var Ph=!0;function vj(i,a,u,m){var _=q.T;q.T=null;var S=W.p;try{W.p=2,m_(i,a,u,m)}finally{W.p=S,q.T=_}}function _j(i,a,u,m){var _=q.T;q.T=null;var S=W.p;try{W.p=8,m_(i,a,u,m)}finally{W.p=S,q.T=_}}function m_(i,a,u,m){if(Ph){var _=g_(m);if(_===null)t_(i,a,m,Nh,u),l2(i,m);else if(bj(_,i,a,u,m))m.stopPropagation();else if(l2(i,m),a&4&&-1<yj.indexOf(i)){for(;_!==null;){var S=bl(_);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var N=Dt(S.pendingLanes);if(N!==0){var U=S;for(U.pendingLanes|=2,U.entangledLanes|=2;N;){var J=1<<31-Ln(N);U.entanglements[1]|=J,N&=~J}di(S),(zt&6)===0&&(mh=Z()+500,ju(0))}}break;case 31:case 13:U=Ra(S,2),U!==null&&qr(U,S,2),vh(),p_(S,2)}if(S=g_(m),S===null&&t_(i,a,m,Nh,u),S===_)break;_=S}_!==null&&m.stopPropagation()}else t_(i,a,m,null,u)}}function g_(i){return i=_v(i),v_(i)}var Nh=null;function v_(i){if(Nh=null,i=yl(i),i!==null){var a=s(i);if(a===null)i=null;else{var u=a.tag;if(u===13){if(i=l(a),i!==null)return i;i=null}else if(u===31){if(i=c(a),i!==null)return i;i=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Nh=i,null}function a2(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ne()){case ae:return 2;case Re:return 8;case Ce:case Ae:return 32;case ke:return 268435456;default:return 32}default:return 32}}var __=!1,Ds=null,Ls=null,$s=null,qu=new Map,Gu=new Map,js=[],yj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function l2(i,a){switch(i){case"focusin":case"focusout":Ds=null;break;case"dragenter":case"dragleave":Ls=null;break;case"mouseover":case"mouseout":$s=null;break;case"pointerover":case"pointerout":qu.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gu.delete(a.pointerId)}}function Ku(i,a,u,m,_,S){return i===null||i.nativeEvent!==S?(i={blockedOn:a,domEventName:u,eventSystemFlags:m,nativeEvent:S,targetContainers:[_]},a!==null&&(a=bl(a),a!==null&&i2(a)),i):(i.eventSystemFlags|=m,a=i.targetContainers,_!==null&&a.indexOf(_)===-1&&a.push(_),i)}function bj(i,a,u,m,_){switch(a){case"focusin":return Ds=Ku(Ds,i,a,u,m,_),!0;case"dragenter":return Ls=Ku(Ls,i,a,u,m,_),!0;case"mouseover":return $s=Ku($s,i,a,u,m,_),!0;case"pointerover":var S=_.pointerId;return qu.set(S,Ku(qu.get(S)||null,i,a,u,m,_)),!0;case"gotpointercapture":return S=_.pointerId,Gu.set(S,Ku(Gu.get(S)||null,i,a,u,m,_)),!0}return!1}function c2(i){var a=yl(i.target);if(a!==null){var u=s(a);if(u!==null){if(a=u.tag,a===13){if(a=l(u),a!==null){i.blockedOn=a,EE(i.priority,function(){s2(u)});return}}else if(a===31){if(a=c(u),a!==null){i.blockedOn=a,EE(i.priority,function(){s2(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function kh(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var u=g_(i.nativeEvent);if(u===null){u=i.nativeEvent;var m=new u.constructor(u.type,u);vv=m,u.target.dispatchEvent(m),vv=null}else return a=bl(u),a!==null&&i2(a),i.blockedOn=u,!1;a.shift()}return!0}function u2(i,a,u){kh(i)&&u.delete(a)}function wj(){__=!1,Ds!==null&&kh(Ds)&&(Ds=null),Ls!==null&&kh(Ls)&&(Ls=null),$s!==null&&kh($s)&&($s=null),qu.forEach(u2),Gu.forEach(u2)}function Dh(i,a){i.blockedOn===a&&(i.blockedOn=null,__||(__=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,wj)))}var Lh=null;function d2(i){Lh!==i&&(Lh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Lh===i&&(Lh=null);for(var a=0;a<i.length;a+=3){var u=i[a],m=i[a+1],_=i[a+2];if(typeof m!="function"){if(v_(m||u)===null)continue;break}var S=bl(u);S!==null&&(i.splice(a,3),a-=3,g0(S,{pending:!0,data:_,method:u.method,action:m},m,_))}}))}function tc(i){function a(J){return Dh(J,i)}Ds!==null&&Dh(Ds,i),Ls!==null&&Dh(Ls,i),$s!==null&&Dh($s,i),qu.forEach(a),Gu.forEach(a);for(var u=0;u<js.length;u++){var m=js[u];m.blockedOn===i&&(m.blockedOn=null)}for(;0<js.length&&(u=js[0],u.blockedOn===null);)c2(u),u.blockedOn===null&&js.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(m=0;m<u.length;m+=3){var _=u[m],S=u[m+1],N=_[Ur]||null;if(typeof S=="function")N||d2(u);else if(N){var U=null;if(S&&S.hasAttribute("formAction")){if(_=S,N=S[Ur]||null)U=N.formAction;else if(v_(_)!==null)continue}else U=N.action;typeof U=="function"?u[m+1]=U:(u.splice(m,3),m-=3),d2(u)}}}function f2(){function i(S){S.canIntercept&&S.info==="react-transition"&&S.intercept({handler:function(){return new Promise(function(N){return _=N})},focusReset:"manual",scroll:"manual"})}function a(){_!==null&&(_(),_=null),m||setTimeout(u,20)}function u(){if(!m&&!navigation.transition){var S=navigation.currentEntry;S&&S.url!=null&&navigation.navigate(S.url,{state:S.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,_=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){m=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),_!==null&&(_(),_=null)}}}function y_(i){this._internalRoot=i}$h.prototype.render=y_.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(r(409));var u=a.current,m=io();r2(u,m,i,a,null,null)},$h.prototype.unmount=y_.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;r2(i.current,2,null,i,null,null),vh(),a[_l]=null}};function $h(i){this._internalRoot=i}$h.prototype.unstable_scheduleHydration=function(i){if(i){var a=uv();i={blockedOn:null,target:i,priority:a};for(var u=0;u<js.length&&a!==0&&a<js[u].priority;u++);js.splice(u,0,i),u===0&&c2(i)}};var h2=t.version;if(h2!=="19.2.6")throw Error(r(527,h2,"19.2.6"));W.findDOMNode=function(i){var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=f(a),i=i!==null?p(i):null,i=i===null?null:i.stateNode,i};var Sj={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jh.isDisabled&&jh.supportsFiber)try{_t=jh.inject(Sj),Tt=jh}catch{}}return Yu.createRoot=function(i,a){if(!o(i))throw Error(r(299));var u=!1,m="",_=bR,S=wR,N=SR;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onUncaughtError!==void 0&&(_=a.onUncaughtError),a.onCaughtError!==void 0&&(S=a.onCaughtError),a.onRecoverableError!==void 0&&(N=a.onRecoverableError)),a=t2(i,1,!1,null,null,u,m,null,_,S,N,f2),i[_l]=a.current,e_(i),new y_(a)},Yu.hydrateRoot=function(i,a,u){if(!o(i))throw Error(r(299));var m=!1,_="",S=bR,N=wR,U=SR,J=null;return u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(_=u.identifierPrefix),u.onUncaughtError!==void 0&&(S=u.onUncaughtError),u.onCaughtError!==void 0&&(N=u.onCaughtError),u.onRecoverableError!==void 0&&(U=u.onRecoverableError),u.formState!==void 0&&(J=u.formState)),a=t2(i,1,!0,a,u??null,m,_,J,S,N,U,f2),a.context=n2(null),u=a.current,m=io(),m=vl(m),_=Es(m),_.callback=null,xs(u,_,m),u=m,a.current.lanes=u,Lt(a,u),di(a),i[_l]=a.current,e_(i),new $h(a)},Yu.version="19.2.6",Yu}var x2;function kj(){if(x2)return w_.exports;x2=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(),w_.exports=Nj(),w_.exports}var Dj=kj(),M=ma();const ee=pa(M),hw=xj({__proto__:null,default:ee},[M]);var O_={exports:{}},T_={};var R2;function Lj(){if(R2)return T_;R2=1;var e=ma().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return T_.c=function(t){return e.H.useMemoCache(t)},T_}var O2;function $j(){return O2||(O2=1,O_.exports=Lj()),O_.exports}var Ri=$j(),Jc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jj=class extends Jc{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},pw=new jj,Uj={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},zj=class{#e=Uj;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Qa=new zj;function Fj(e){setTimeout(e,0)}var Bj=typeof window>"u"||"Deno"in globalThis;function Zn(){}function Vj(e,t){return typeof e=="function"?e(t):e}function Sb(e){return typeof e=="number"&&e>=0&&e!==1/0}function tP(e,t){return Math.max(e+(t||0)-Date.now(),0)}function oa(e,t){return typeof e=="function"?e(t):e}function co(e,t){return typeof e=="function"?e(t):e}function T2(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==mw(l,t.options))return!1}else if(!zd(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||s&&!s(t))}function C2(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(sl(t.options.mutationKey)!==sl(s))return!1}else if(!zd(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function mw(e,t){return(t?.queryKeyHashFn||sl)(e)}function sl(e){return JSON.stringify(e,(t,n)=>Eb(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function zd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>zd(e[n],t[n])):!1}var Hj=Object.prototype.hasOwnProperty;function nP(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=A2(e)&&A2(t);if(!r&&!(Eb(e)&&Eb(t)))return t;const s=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),c=l.length,d=r?new Array(c):{};let f=0;for(let p=0;p<c;p++){const h=r?p:l[p],g=e[h],v=t[h];if(g===v){d[h]=g,(r?p<s:Hj.call(e,h))&&f++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){d[h]=v;continue}const y=nP(g,v,n+1);d[h]=y,y===g&&f++}return s===c&&f===s?e:d}function Em(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function A2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Eb(e){if(!I2(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!I2(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function I2(e){return Object.prototype.toString.call(e)==="[object Object]"}function qj(e){return new Promise(t=>{Qa.setTimeout(t,e)})}function xb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?nP(e,t):t}function Ece(e){return e}function Gj(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Kj(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var gw=Symbol();function rP(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===gw?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function vw(e,t){return typeof e=="function"?e(...t):!!e}function Zj(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??=t(),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var Fd=(()=>{let e=()=>Bj;return{isServer(){return e()},setIsServer(t){e=t}}})();function Rb(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Yj(e){let t;if(e.then(n=>(t=n,n),Zn)?.catch(Zn),t!==void 0)return{data:t}}function oP(e){return e}function Wj(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function Qj(e,t,n){const r=()=>{const o=e.promise?.then(t).catch(s=>n(s)?Promise.reject(new Error("redacted")):Promise.reject(s));return o?.catch(Zn),o};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status==="pending"&&{promise:r()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function Xj(e){return e.state.isPaused}function Jj(e){return e.state.status==="success"}function e8(e){return!0}function t8(e,t={}){const n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??Xj,r=e.getMutationCache().getAll().flatMap(d=>n(d)?[Wj(d)]:[]),o=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??Jj,s=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??e8,l=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??oP,c=e.getQueryCache().getAll().flatMap(d=>o(d)?[Qj(d,l,s)]:[]);return{mutations:r,queries:c}}function n8(e,t,n){if(typeof t!="object"||t===null)return;const r=e.getMutationCache(),o=e.getQueryCache(),s=e.getDefaultOptions().hydrate?.deserializeData??oP,l=t.mutations||[],c=t.queries||[];l.forEach(({state:d,...f})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...f},d)}),c.forEach(({queryKey:d,state:f,queryHash:p,meta:h,promise:g,dehydratedAt:v,queryType:y})=>{const b=g?Yj(g):void 0,x=f.data===void 0?b?.data:f.data,w=x===void 0?x:s(x);let E=o.get(p);const T=E?.state.status==="pending",R=E?.state.fetchStatus==="fetching";if(E){const O=b&&v!==void 0&&v>E.state.dataUpdatedAt;if(f.dataUpdatedAt>E.state.dataUpdatedAt||O){const{fetchStatus:A,...I}=f;E.setState({...I,data:w,...f.status==="pending"&&w!==void 0&&{status:"success",...!R&&{fetchStatus:"idle"}}})}}else E=o.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:d,queryHash:p,meta:h,_type:y},{...f,data:w,fetchStatus:"idle",status:f.status==="pending"&&w!==void 0?"success":f.status});g&&!b&&!T&&!R&&(v===void 0||v>E.state.dataUpdatedAt)&&E.fetch(void 0,{initialPromise:Promise.resolve(g).then(s)}).catch(Zn)})}var r8=Fj;function o8(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=r8;const s=c=>{t?e.push(c):o(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{s(()=>{c(...d)})},schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var Wn=o8(),i8=class extends Jc{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},xm=new i8;function s8(e){return Math.min(1e3*2**e,3e4)}function iP(e){return(e??"online")==="online"?xm.isOnline():!0}var Ob=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function sP(e){let t=!1,n=0,r;const o=Rb(),s=()=>o.status!=="pending",l=b=>{if(!s()){const x=new Ob(b);g(x),e.onCancel?.(x)}},c=()=>{t=!0},d=()=>{t=!1},f=()=>pw.isFocused()&&(e.networkMode==="always"||xm.isOnline())&&e.canRun(),p=()=>iP(e.networkMode)&&e.canRun(),h=b=>{s()||(r?.(),o.resolve(b))},g=b=>{s()||(r?.(),o.reject(b))},v=()=>new Promise(b=>{r=x=>{(s()||f())&&b(x)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),y=()=>{if(s())return;let b;const x=n===0?e.initialPromise:void 0;try{b=x??e.fn()}catch(w){b=Promise.reject(w)}Promise.resolve(b).then(h).catch(w=>{if(s())return;const E=e.retry??(Fd.isServer()?0:3),T=e.retryDelay??s8,R=typeof T=="function"?T(n,w):T,O=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,w);if(t||!O){g(w);return}n++,e.onFail?.(n,w),qj(R).then(()=>f()?void 0:v()).then(()=>{t?g(w):y()})})};return{promise:o,status:()=>o.status,cancel:l,continue:()=>(r?.(),o),cancelRetry:c,continueRetry:d,canStart:p,start:()=>(p()?y():v().then(y),o)}}var aP=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sb(this.gcTime)&&(this.#e=Qa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Fd.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Qa.clearTimeout(this.#e),this.#e=void 0)}};function a8(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},d=0;const f=async()=>{let p=!1;const h=y=>{Zj(y,()=>t.signal,()=>p=!0)},g=rP(t.options,t.fetchOptions),v=async(y,b,x)=>{if(p)return Promise.reject(t.signal.reason);if(b==null&&y.pages.length)return Promise.resolve(y);const E=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:b,direction:x?"backward":"forward",meta:t.options.meta};return h(A),A})(),T=await g(E),{maxPages:R}=t.options,O=x?Kj:Gj;return{pages:O(y.pages,T,R),pageParams:O(y.pageParams,b,R)}};if(o&&s.length){const y=o==="backward",b=y?lP:Tb,x={pages:s,pageParams:l},w=b(r,x);c=await v(x,w,y)}else{const y=e??s.length;do{const b=d===0?l[0]??r.initialPageParam:Tb(r,c);if(d>0&&b==null)break;c=await v(c,b),d++}while(d<y)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function Tb(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function lP(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function xce(e,t){return t?Tb(e,t)!=null:!1}function Rce(e,t){return!t||!e.getPreviousPageParam?!1:lP(e,t)!=null}var l8=class extends aP{#e;#t;#n;#r;#i;#o;#a;#s;constructor(e){super(),this.#s=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=P2(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#a,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=P2(this.options);t.data!==void 0&&(this.setState(M2(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const n=xb(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:"setState",state:e})}cancel(e){const t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(Zn).catch(Zn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>co(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gw||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>oa(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!tP(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#s||this.#u()?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#o?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const d=rP(this.options,t),p=(()=>{const h={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(h),h})();return this.#s=!1,this.options.persister?this.options.persister(d,p,this):d(p)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:o};return r(d),d})();(this.#e==="infinite"?a8(this.options.pages):this.options.behavior)?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#l({type:"fetch",meta:l.fetchOptions?.meta}),this.#o=sP({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:d=>{d instanceof Ob&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(d,f)=>{this.#l({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const d=await this.#o.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#r.config.onSuccess?.(d,this),this.#r.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Ob){if(d.silent)return this.#o.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#l({type:"error",error:d}),this.#r.config.onError?.(d,this),this.#r.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#l(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...cP(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...M2(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Wn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function cP(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:iP(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function M2(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function P2(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var uP=class extends Jc{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#a=Rb(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#o;#a;#s;#u;#l;#p;#d;#f;#c;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),N2(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Cb(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Cb(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof co(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Em(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&k2(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||co(this.options.enabled,this.#t)!==co(t.enabled,this.#t)||oa(this.options.staleTime,this.#t)!==oa(t.staleTime,this.#t))&&this.#g();const o=this.#v();r&&(this.#t!==n||co(this.options.enabled,this.#t)!==co(t.enabled,this.#t)||o!==this.#c)&&this.#_(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return u8(this,n)&&(this.#r=n,this.#o=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Zn)),t}#g(){this.#b();const e=oa(this.options.staleTime,this.#t);if(Fd.isServer()||this.#r.isStale||!Sb(e))return;const n=tP(this.#r.dataUpdatedAt,e)+1;this.#d=Qa.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#_(e){this.#w(),this.#c=e,!(Fd.isServer()||co(this.options.enabled,this.#t)===!1||!Sb(this.#c)||this.#c===0)&&(this.#f=Qa.setInterval(()=>{(this.options.refetchIntervalInBackground||pw.isFocused())&&this.#h()},this.#c))}#y(){this.#g(),this.#_(this.#v())}#b(){this.#d!==void 0&&(Qa.clearTimeout(this.#d),this.#d=void 0)}#w(){this.#f!==void 0&&(Qa.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#r,s=this.#i,l=this.#o,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},h=!1,g;if(t._optimisticResults){const P=this.hasListeners(),L=!P&&N2(e,t),H=P&&k2(e,n,t,r);(L||H)&&(p={...p,...cP(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:v,errorUpdatedAt:y,status:b}=p;g=p.data;let x=!1;if(t.placeholderData!==void 0&&g===void 0&&b==="pending"){let P;o?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(P=o.data,x=!0):P=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,P!==void 0&&(b="success",g=xb(o?.data,P,t),h=!0)}if(t.select&&g!==void 0&&!x)if(o&&g===s?.data&&t.select===this.#u)g=this.#l;else try{this.#u=t.select,g=t.select(g),g=xb(o?.data,g,t),this.#l=g,this.#s=null}catch(P){this.#s=P}this.#s&&(v=this.#s,g=this.#l,y=Date.now(),b="error");const w=p.fetchStatus==="fetching",E=b==="pending",T=b==="error",R=E&&w,O=g!==void 0,I={status:b,fetchStatus:p.fetchStatus,isPending:E,isSuccess:b==="success",isError:T,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:p.dataUpdatedAt,error:v,errorUpdatedAt:y,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:w,isRefetching:w&&!E,isLoadingError:T&&!O,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:T&&O,isStale:_w(e,t),refetch:this.refetch,promise:this.#a,isEnabled:co(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const P=I.data!==void 0,L=I.status==="error"&&!P,H=z=>{L?z.reject(I.error):P&&z.resolve(I.data)},$=()=>{const z=this.#a=I.promise=Rb();H(z)},B=this.#a;switch(B.status){case"pending":e.queryHash===n.queryHash&&H(B);break;case"fulfilled":(L||I.data!==B.value)&&$();break;case"rejected":(!L||I.error!==B.reason)&&$();break}}return I}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#o=this.options,this.#i.data!==void 0&&(this.#p=this.#t),Em(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#m.size)return!0;const s=new Set(o??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#r).some(l=>{const c=l;return this.#r[c]!==e[c]&&s.has(c)})};this.#E({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#E(e){Wn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function c8(e,t){return co(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&co(t.retryOnMount,e)===!1)}function N2(e,t){return c8(e,t)||e.state.data!==void 0&&Cb(e,t,t.refetchOnMount)}function Cb(e,t,n){if(co(t.enabled,e)!==!1&&oa(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&_w(e,t)}return!1}function k2(e,t,n,r){return(e!==t||co(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&_w(e,n)}function _w(e,t){return co(t.enabled,e)!==!1&&e.isStaleByTime(oa(t.staleTime,e))}function u8(e,t){return!Em(e.getCurrentResult(),t)}var d8=class extends aP{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||dP(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=sP({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,l)=>{this.#i({type:"failed",failureCount:s,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#r.canStart();try{if(r)t();else{this.#i({type:"pending",variables:e,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#i({type:"pending",context:l,variables:e,isPaused:o})}const s=await this.#r.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#i({type:"success",data:s}),s}catch(s){try{await this.#n.config.onError?.(s,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(s,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,s,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#i({type:"error",error:s}),s}finally{this.#n.runNext(this)}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Wn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function dP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var f8=class extends Jc{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new d8({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Uh(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Uh(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Uh(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Uh(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Wn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>C2(t,n))}findAll(e={}){return this.getAll().filter(t=>C2(e,t))}notify(e){Wn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Wn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Zn))))}};function Uh(e){return e.options.scope?.id}var h8=class extends Jc{#e;#t=void 0;#n;#r;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),Em(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&sl(n.mutationKey)!==sl(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#i(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#o()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#i(){const t=this.#n?.state??dP();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){Wn.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#r.onSuccess?.(t.data,n,r,o)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(t.data,null,n,r,o)}catch(s){Promise.reject(s)}}else if(t?.type==="error"){try{this.#r.onError?.(t.error,n,r,o)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(void 0,t.error,n,r,o)}catch(s){Promise.reject(s)}}}this.listeners.forEach(n=>{n(this.#t)})})}},p8=class extends Jc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??mw(r,t);let s=this.get(o);return s||(s=new l8({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Wn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>T2(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>T2(e,n)):t}notify(e){Wn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Wn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Wn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},m8=class{#e;#t;#n;#r;#i;#o;#a;#s;constructor(e={}){this.#e=e.queryCache||new p8,this.#t=e.mutationCache||new f8,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#a=pw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=xm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#a?.(),this.#a=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(oa(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(r.queryHash)?.state.data,l=Vj(t,s);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Wn.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Wn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Wn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Wn.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Zn).catch(Zn)}invalidateQueries(e,t={}){return Wn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Wn.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Zn)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Zn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(oa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zn).catch(Zn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zn).catch(Zn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return xm.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(sl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{zd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(sl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{zd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mw(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===gw&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},fP=M.createContext(void 0),yw=e=>{const t=M.useContext(fP);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},g8=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(fP.Provider,{value:e,children:t})),hP=M.createContext(!1),v8=()=>M.useContext(hP);hP.Provider;function _8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var y8=M.createContext(_8()),b8=()=>M.useContext(y8),w8=(e,t,n)=>{const r=n?.state.error&&typeof e.throwOnError=="function"?vw(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},S8=e=>{M.useEffect(()=>{e.clearReset()},[e])},E8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||vw(n,[e.error,r])),x8=(e,t)=>t.state.data===void 0,R8=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},O8=(e,t)=>e.isLoading&&e.isFetching&&!t,T8=(e,t)=>e?.suspense&&t.isPending,D2=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function pP(e,t,n){const r=v8(),o=b8(),s=yw(n),l=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(l);const c=s.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",R8(l),w8(l,o,c),S8(o);const d=!s.getQueryCache().get(l.queryHash),[f]=M.useState(()=>new t(s,l)),p=f.getOptimisticResult(l),h=!r&&e.subscribed!==!1;if(M.useSyncExternalStore(M.useCallback(g=>{const v=h?f.subscribe(Wn.batchCalls(g)):Zn;return f.updateResult(),v},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),M.useEffect(()=>{f.setOptions(l)},[l,f]),T8(l,p))throw D2(l,f,o);if(E8({result:p,errorResetBoundary:o,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw p.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(l,p),l.experimental_prefetchInRender&&!Fd.isServer()&&O8(p,r)&&(d?D2(l,f,o):c?.promise)?.catch(Zn).finally(()=>{f.updateResult()}),l.notifyOnChangeProps?p:f.trackResult(p)}function C8(e,t){return pP(e,uP,t)}function mP(e,t){return pP({...e,enabled:!0,suspense:!0,throwOnError:x8,placeholderData:void 0},uP,t)}function A8(e,t){const n=yw(t),[r]=M.useState(()=>new h8(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);const o=M.useSyncExternalStore(M.useCallback(l=>r.subscribe(Wn.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=M.useCallback((l,c)=>{r.mutate(l,c).catch(Zn)},[r]);if(o.error&&vw(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const gP={publicConfig:()=>["publicConfig"],session:()=>["session"],messages:e=>["messages",e],organizations:()=>["organizations"],members:e=>[e,"members"],invitations:e=>[e,"invitations"],organizationRoles:e=>[e,"organization-roles"],connections:e=>[e,"connections"],connectionsByBinding:(e,t)=>[e,"connections",`binding:${t}`],connection:(e,t)=>[e,"connection",t],connectionActivity:(e,t,n)=>["monitoring","activity",e,t,n],isMCPAuthenticated:(e,t)=>["is-mcp-authenticated",e,t],mcpTools:(e,t)=>["mcp","tools",e,t],mcpClientPrefix:()=>["mcp","client"],organizationSettings:e=>["organization-settings",e],activeOrganization:e=>["activeOrganization",e],orgAccessStatus:e=>["org-access-status",e],modelsList:e=>["models-list",e],homeNextActions:e=>["home-next-actions",e],boardLayout:e=>["board-layout",e],agentSummary:(e,t)=>["agent-summary",e,t],agentSummaryDeadline:(e,t)=>["agent-summary-deadline",e,t],agentPrompts:(e,t)=>["agent-prompts",e,t],allowedModels:e=>[e,"allowed-models"],connectionCollections:e=>[e,"collections","discovery"],toolCall:(e,t,n)=>["tool-call",e,t,n],collectionItems:(e,t)=>["collection",e,t],collection:(e,t,n)=>[e,t,"collection",n],collectionItem:(e,t,n,r,o)=>[e,t,n,"collection",r,o],collectionList:(e,t,n,r,o)=>[e,t,n,"collection",r,"list",o],collectionListInfinite:(e,t,n,r,o)=>[e,t,n,"collection",r,"list-infinite",o],monitoringStats:()=>["monitoring","stats"],monitoringLogs:e=>["monitoring","logs",e],monitoringLogsInfinite:(e,t)=>["monitoring","logs-infinite",e,t],monitoringLogDetail:e=>["monitoring","log-detail",e],ensureTask:(e,t)=>["ensure-task",e,t],globalSearch:(e,t)=>["global-search",e,t],threadsInfinite:(e,t)=>["threads","list-infinite",e,t],threadMessages:(e,t)=>["threads","messages",e,t],threadModelLogs:(e,t)=>["threads","model-logs",e,t],threadSandbox:(e,t)=>["thread-sandbox","v2",e,t],threadOutputs:e=>["thread-outputs",e],virtualMcpTools:(e,t)=>["virtual-mcp",t,e??"default","tools"],toolDefinitionLookup:(e,t,n)=>["virtual-mcp",t,e??"default","tools","lookup",n],virtualMcpAgents:e=>["virtual-mcp",e,"agents"],virtualMcpPrompts:(e,t)=>["virtual-mcp",t,e??"default","prompts"],virtualMcpResources:(e,t)=>["virtual-mcp",t,e??"default","resources"],suggestionItems:(e,t,n)=>[...e,t,n],connectionPrompts:e=>["connection",e,"prompts"],connectionResources:e=>["connection",e,"resources"],user:e=>["user",e],storeReadmeUrl:e=>["store-readme-url",e],remoteMcpTools:e=>["remote-mcp-tools",e],tags:e=>[e,"tags"],memberTags:(e,t)=>[e,"member-tags",t],automationsAll:e=>["automations",e],automations:(e,t)=>["automations",e,t??null],automation:(e,t)=>["automation",e,t],automationRuns:(e,t,n)=>["automation-runs",e,t,...[...n??[]].sort()],projects:e=>["projects",e],project:(e,t)=>["project",e,t],virtualMcp:(e,t)=>["virtual-mcp",e,t],projectPluginConfigs:e=>["project-plugin-configs",e],projectPluginConfig:(e,t)=>["project-plugin-config",e,t],projectConnections:e=>["project-connections",e],projectConnectionDetails:(e,t)=>["project-connections",e,"details",t],aiProviders:e=>["ai-providers",e],aiProviderModels:(e,t)=>["ai-provider-models",e,t],aiProviderKeys:e=>["ai-provider-keys",e],secrets:e=>["secrets",e],fileConfigs:e=>["file-configs",e],filePickerObjects:(e,t)=>["file-picker-objects",e,t],aiProviderCredits:(e,t)=>["ai-provider-credits",e,t],orgSsoConfig:e=>["org-sso-config",e],orgSsoStatus:e=>["org-sso-status",e],storeDiscovery:(e,t)=>["store-discovery",e,t],organizationDomain:e=>["organization-domain",e],domainLookup:e=>["domain-lookup",e],brandContext:e=>["brand-context",e],defaultBrand:e=>["brand-context",e,"default"],decoProfile:e=>["deco-profile",e],decoSites:e=>["deco-sites",e],webSearchBlob:e=>["web-search-blob",e],decofile:e=>["decofile",e],liveMeta:e=>["live-meta",e],linkStatus:()=>["link-status"],currentLink:e=>["current-link",e],githubUserOrgs:(e,t)=>["github-user-orgs",e,t],githubOrgRepos:(e,t,n,r)=>["github-org-repos",e,t,n,r],vmEnv:(e,t,n)=>["vm-env",e,t,n]};function Tce(e,t){e.invalidateQueries({predicate:n=>{const r=n.queryKey;return(!t||r[1]===t)&&r[3]==="collection"&&r[4]==="VIRTUAL_MCP"}})}function vP(){const e=Ri.c(1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:gP.publicConfig(),queryFn:I8,staleTime:1/0},e[0]=t):t=e[0];const{data:n}=mP(t);return n}async function I8(){return(await(await fetch("/api/config")).json()).config}const Cce={light:"/logos/deco logo.svg",dark:"/logos/deco logo negative.svg"},_P=M.createContext(void 0);function M8(e){const t=Ri.c(3),{children:n}=e,r=vP();let o;return t[0]!==n||t[1]!==r.auth?(o=C.jsx(_P.Provider,{value:r.auth,children:n}),t[0]=n,t[1]=r.auth,t[2]=o):o=t[2],o}function Ace(){const e=M.useContext(_P);if(e===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return e}var L2=M.use,Ec=typeof window<"u"?M.useLayoutEffect:M.useEffect;function C_(e){const t=M.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function P8(e,t,n={},r={}){M.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([s])=>{t(s)},n);return o.observe(e.current),()=>{o.disconnect()}},[t,n,r.disabled,e])}function N8(e){const t=M.useRef(null);return M.useImperativeHandle(e,()=>t.current,[]),t}const yP=!1;function Bd(e){return e[e.length-1]}function k8(e){return typeof e=="function"}function ta(e,t){return k8(e)?e(t):e}const bP=Object.prototype.hasOwnProperty,$2=Object.prototype.propertyIsEnumerable;function wP(e){for(const t in e)if(bP.call(e,t))return!0;return!1}const D8=()=>Object.create(null),ja=(e,t)=>Xa(e,t,D8);function Xa(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;const o=t,s=z2(e)&&z2(o);if(!s&&!(zc(e)&&zc(o)))return o;const l=s?e:j2(e);if(!l)return o;const c=s?o:j2(o);if(!c)return o;const d=l.length,f=c.length,p=s?new Array(f):n();let h=0;for(let g=0;g<f;g++){const v=s?g:c[g],y=e[v],b=o[v];if(y===b){p[v]=y,(s?g<d:bP.call(e,v))&&h++;continue}if(y===null||b===null||typeof y!="object"||typeof b!="object"){p[v]=b;continue}const x=Xa(y,b,n,r+1);p[v]=x,x===y&&h++}return d===f&&h===d?e:p}function j2(e){const t=Object.getOwnPropertyNames(e);for(const o of t)if(!$2.call(e,o))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const r=t;for(const o of n){if(!$2.call(e,o))return!1;r.push(o)}return r}function zc(e){if(!U2(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!U2(n)||!n.hasOwnProperty("isPrototypeOf"))}function U2(e){return Object.prototype.toString.call(e)==="[object Object]"}function z2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nl(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r++)if(!nl(e[r],t[r],n))return!1;return!0}if(zc(e)&&zc(t)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const l in t)if((!r||t[l]!==void 0)&&!nl(e[l],t[l],n))return!1;return!0}let o=0;if(!r)o=Object.keys(e).length;else for(const l in e)e[l]!==void 0&&o++;let s=0;for(const l in t)if((!r||t[l]!==void 0)&&(s++,s>o||!nl(e[l],t[l],n)))return!1;return o===s}return!1}function Fc(e){let t,n;const r=new Promise((o,s)=>{t=o,n=s});return r.status="pending",r.resolve=o=>{r.status="resolved",r.value=o,t(o),e?.(o)},r.reject=o=>{r.status="rejected",n(o)},r}function L8(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Vd(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function $8(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function F2(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return $8(t)}const j8=["http:","https:","mailto:","tel:"];function Rm(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function Wu(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,r="",o;for(;(o=t.exec(e))!==null;)r+=F2(e.slice(n,o.index))+o[0],n=t.lastIndex;r=r+F2(n?e.slice(n):e);let s=!1;return r.startsWith("//")&&(s=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:s}}function U8(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function z8(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function ls(){throw new Error("Invariant failed")}function Hd(e){const t=new Map;let n,r;const o=s=>{s.next&&(s.prev?(s.prev.next=s.next,s.next.prev=s.prev,s.next=void 0,r&&(r.next=s,s.prev=r)):(s.next.prev=void 0,n=s.next,s.next=void 0,r&&(s.prev=r,r.next=s)),r=s)};return{get(s){const l=t.get(s);if(l)return o(l),l.value},set(s,l){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===r&&(r=void 0)}const c=t.get(s);if(c)c.value=l,o(c);else{const d={key:s,value:l,prev:r};r&&(r.next=d),r=d,n||(n=d),t.set(s,d)}},clear(){t.clear(),n=void 0,r=void 0}}}const na=4,SP=5;function F8(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function EP(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),o=r===-1?e.length:r,s=e.substring(t,o);if(!s||!s.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n;if(s==="$"){const c=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=c,n[4]=c,n[5]=c,n}if(s.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=o,n[4]=o,n[5]=o,n;const l=F8(s);if(l){const[c,d]=l,f=s.charCodeAt(c+1);if(f===45){if(c+2<s.length&&s.charCodeAt(c+2)===36){const p=c+3,h=d;if(p<h)return n[0]=3,n[1]=t+c,n[2]=t+p,n[3]=t+h,n[4]=t+d+1,n[5]=o,n}}else if(f===36){const p=c+1,h=c+2;return h===d?(n[0]=2,n[1]=t+c,n[2]=t+p,n[3]=t+h,n[4]=t+d+1,n[5]=e.length,n):(n[0]=1,n[1]=t+c,n[2]=t+h,n[3]=t+d,n[4]=t+d+1,n[5]=o,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n}function Og(e,t,n,r,o,s,l){l?.(n);let c=r;{const d=n.fullPath??n.from,f=d.length,p=n.options?.caseSensitive??e,h=n.options?.params?.parse??n.options?.parseParams;for(;c<f;){const v=EP(d,c,t);let y;const b=c,x=v[5];switch(c=x+1,s++,v[0]){case 0:{const w=d.substring(v[2],v[3]);if(p){const E=o.static?.get(w);if(E)y=E;else{o.static??=new Map;const T=Ja(n.fullPath??n.from);T.parent=o,T.depth=s,y=T,o.static.set(w,T)}}else{const E=w.toLowerCase(),T=o.staticInsensitive?.get(E);if(T)y=T;else{o.staticInsensitive??=new Map;const R=Ja(n.fullPath??n.from);R.parent=o,R.depth=s,y=R,o.staticInsensitive.set(E,R)}}break}case 1:{const w=d.substring(b,v[1]),E=d.substring(v[4],x),T=p&&!!(w||E),R=w?T?w:w.toLowerCase():void 0,O=E?T?E:E.toLowerCase():void 0,A=!h&&o.dynamic?.find(I=>!I.parse&&I.caseSensitive===T&&I.prefix===R&&I.suffix===O);if(A)y=A;else{const I=I_(1,n.fullPath??n.from,T,R,O);y=I,I.depth=s,I.parent=o,o.dynamic??=[],o.dynamic.push(I)}break}case 3:{const w=d.substring(b,v[1]),E=d.substring(v[4],x),T=p&&!!(w||E),R=w?T?w:w.toLowerCase():void 0,O=E?T?E:E.toLowerCase():void 0,A=!h&&o.optional?.find(I=>!I.parse&&I.caseSensitive===T&&I.prefix===R&&I.suffix===O);if(A)y=A;else{const I=I_(3,n.fullPath??n.from,T,R,O);y=I,I.parent=o,I.depth=s,o.optional??=[],o.optional.push(I)}break}case 2:{const w=d.substring(b,v[1]),E=d.substring(v[4],x),T=p&&!!(w||E),R=w?T?w:w.toLowerCase():void 0,O=E?T?E:E.toLowerCase():void 0,A=I_(2,n.fullPath??n.from,T,R,O);y=A,A.parent=o,A.depth=s,o.wildcard??=[],o.wildcard.push(A)}}o=y}if(h&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const v=Ja(n.fullPath??n.from);v.kind=SP,v.parent=o,s++,v.depth=s,o.pathless??=[],o.pathless.push(v),o=v}const g=(n.path||!n.children)&&!n.isRoot;if(g&&d.endsWith("/")){const v=Ja(n.fullPath??n.from);v.kind=na,v.parent=o,s++,v.depth=s,o.index=v,o=v}o.parse=h??null,g&&!o.route&&(o.route=n,o.fullPath=n.fullPath??n.from)}if(n.children)for(const d of n.children)Og(e,t,d,c,o,s,l)}function A_(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Qs(e){if(e.pathless)for(const t of e.pathless)Qs(t);if(e.static)for(const t of e.static.values())Qs(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Qs(t);if(e.dynamic?.length){e.dynamic.sort(A_);for(const t of e.dynamic)Qs(t)}if(e.optional?.length){e.optional.sort(A_);for(const t of e.optional)Qs(t)}if(e.wildcard?.length){e.wildcard.sort(A_);for(const t of e.wildcard)Qs(t)}}function Ja(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null}}function I_(e,t,n,r,o){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,caseSensitive:n,prefix:r,suffix:o}}function B8(e,t){const n=Ja("/"),r=new Uint16Array(6);for(const o of e)Og(!1,r,o,1,n,0);Qs(n),t.masksTree=n,t.flatCache=Hd(1e3)}function V8(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=bw(e,t.masksTree);return t.flatCache.set(e,r),r}function H8(e,t,n,r,o){e||="/",r||="/";const s=t?`case\0${e}`:e;let l=o.singleCache.get(s);return l||(l=Ja("/"),Og(t,new Uint16Array(6),{from:e},1,l,0),o.singleCache.set(s,l)),bw(r,l,n)}function q8(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,o=t.matchCache.get(r);if(o!==void 0)return o;e||="/";let s;try{s=bw(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)s=null;else throw l}return s&&(s.branch=RP(s.route)),t.matchCache.set(r,s),s}function G8(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function K8(e,t=!1,n){const r=Ja(e.fullPath),o=new Uint16Array(6),s={},l={};let c=0;return Og(t,o,e,1,r,0,d=>{if(n?.(d,c),d.id in s&&ls(),s[d.id]=d,c!==0&&d.path){const f=G8(d.fullPath);(!l[f]||d.fullPath.endsWith("/"))&&(l[f]=d)}c++}),Qs(r),{processedTree:{segmentTree:r,singleCache:Hd(1e3),matchCache:Hd(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:l}}function bw(e,t,n=!1){const r=e.split("/"),o=Y8(e,r,t,n);if(!o)return null;const[s]=xP(e,r,o);return{route:o.node.route,rawParams:s}}function xP(e,t,n){const r=Z8(n.node);let o=null;const s=Object.create(null);let l=n.extract?.part??0,c=n.extract?.node??0,d=n.extract?.path??0,f=n.extract?.segment??0;for(;c<r.length;l++,c++,d++,f++){const p=r[c];if(p.kind===na)break;if(p.kind===SP){f--,l--,d--;continue}const h=t[l],g=d;if(h&&(d+=h.length),p.kind===1){o??=n.node.fullPath.split("/");const v=o[f],y=p.prefix?.length??0;if(v.charCodeAt(y)===123){const b=p.suffix?.length??0,x=v.substring(y+2,v.length-b-1),w=h.substring(y,h.length-b);s[x]=decodeURIComponent(w)}else{const b=v.substring(1);s[b]=decodeURIComponent(h)}}else if(p.kind===3){if(n.skipped&1<<c){l--,d=g-1;continue}o??=n.node.fullPath.split("/");const v=o[f],y=p.prefix?.length??0,b=p.suffix?.length??0,x=v.substring(y+3,v.length-b-1),w=p.suffix||p.prefix?h.substring(y,h.length-b):h;w&&(s[x]=decodeURIComponent(w))}else if(p.kind===2){const v=p,y=e.substring(g+(v.prefix?.length??0),e.length-(v.suffix?.length??0)),b=decodeURIComponent(y);s["*"]=b,s._splat=b;break}}return n.rawParams&&Object.assign(s,n.rawParams),[s,{part:l,node:c,path:d,segment:f}]}function RP(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Z8(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Y8(e,t,n,r){if(e==="/"&&n.index)return{node:n.index,skipped:0};const o=!Bd(t),s=o&&e!=="/",l=t.length-(o?1:0),c=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let d=null,f=null;for(;c.length;){const p=c.pop(),{node:h,index:g,skipped:v,depth:y,statics:b,dynamics:x,optionals:w}=p;let{extract:E,rawParams:T}=p;if(h.kind===2&&h.route&&!Fh(f,p))continue;if(h.parse){if(!B2(e,t,p))continue;T=p.rawParams,E=p.extract}r&&h.route&&h.kind!==na&&Fh(d,p)&&(d=p);const R=g===l;if(R&&(h.route&&(!s||h.kind===na||h.kind===2)&&Fh(f,p)&&(f=p),!h.optional&&!h.wildcard&&!h.index&&!h.pathless))continue;const O=R?void 0:t[g];let A;if(R&&h.index){const I={node:h.index,index:g,skipped:v,depth:y+1,statics:b,dynamics:x,optionals:w,extract:E,rawParams:T};let P=!0;if(h.index.parse&&(B2(e,t,I)||(P=!1)),P){if(!x&&!w&&!v&&W8(b,l))return I;Fh(f,I)&&(f=I)}}if(h.wildcard)for(let I=h.wildcard.length-1;I>=0;I--){const P=h.wildcard[I],{prefix:L,suffix:H}=P;if(!(L&&(R||!(P.caseSensitive?O:A??=O.toLowerCase()).startsWith(L)))){if(H){if(R)continue;const $=t.slice(g).join("/").slice(-H.length);if((P.caseSensitive?$:$.toLowerCase())!==H)continue}c.push({node:P,index:l,skipped:v,depth:y+1,statics:b,dynamics:x,optionals:w,extract:E,rawParams:T})}}if(h.optional){const I=v|1<<y,P=y+1;for(let L=h.optional.length-1;L>=0;L--){const H=h.optional[L];c.push({node:H,index:g,skipped:I,depth:P,statics:b,dynamics:x,optionals:w,extract:E,rawParams:T})}if(!R)for(let L=h.optional.length-1;L>=0;L--){const H=h.optional[L],{prefix:$,suffix:B}=H;if($||B){const z=H.caseSensitive?O:A??=O.toLowerCase();if($&&!z.startsWith($)||B&&!z.endsWith(B))continue}c.push({node:H,index:g+1,skipped:v,depth:P,statics:b,dynamics:x,optionals:w+zh(l,g),extract:E,rawParams:T})}}if(!R&&h.dynamic&&O)for(let I=h.dynamic.length-1;I>=0;I--){const P=h.dynamic[I],{prefix:L,suffix:H}=P;if(L||H){const $=P.caseSensitive?O:A??=O.toLowerCase();if(L&&!$.startsWith(L)||H&&!$.endsWith(H))continue}c.push({node:P,index:g+1,skipped:v,depth:y+1,statics:b,dynamics:x+zh(l,g),optionals:w,extract:E,rawParams:T})}if(!R&&h.staticInsensitive){const I=h.staticInsensitive.get(A??=O.toLowerCase());I&&c.push({node:I,index:g+1,skipped:v,depth:y+1,statics:b+zh(l,g),dynamics:x,optionals:w,extract:E,rawParams:T})}if(!R&&h.static){const I=h.static.get(O);I&&c.push({node:I,index:g+1,skipped:v,depth:y+1,statics:b+zh(l,g),dynamics:x,optionals:w,extract:E,rawParams:T})}if(h.pathless){const I=y+1;for(let P=h.pathless.length-1;P>=0;P--){const L=h.pathless[P];c.push({node:L,index:g,skipped:v,depth:I,statics:b,dynamics:x,optionals:w,extract:E,rawParams:T})}}}if(f)return f;if(r&&d){let p=d.index;for(let g=0;g<d.index;g++)p+=t[g].length;const h=p===e.length?"/":e.slice(p);return d.rawParams??=Object.create(null),d.rawParams["**"]=decodeURIComponent(h),d}return null}function zh(e,t){return 2**(e-t-1)}function W8(e,t){return e===2**(t-1)-1}function B2(e,t,n){let r,o;try{[r,o]=xP(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=o,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Fh(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===na)>(e.node.kind===na)||t.node.kind===na==(e.node.kind===na)&&t.depth>e.depth))):!0}function am(e){return ww(e.filter(t=>t!==void 0).join("/"))}function ww(e){return e.replace(/\/{2,}/g,"/")}function OP(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ss(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function TP(e){return ss(OP(e))}function Om(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Q8(e,t,n){return Om(e,n)===Om(t,n)}function X8({base:e,to:t,trailingSlash:n="never",cache:r}){const o=t.startsWith("/"),s=!o&&t===".";let l;if(r){l=o?t:s?e:e+"\0"+t;const f=r.get(l);if(f)return f}let c;if(s)c=e.split("/");else if(o)c=t.split("/");else{for(c=e.split("/");c.length>1&&Bd(c)==="";)c.pop();const f=t.split("/");for(let p=0,h=f.length;p<h;p++){const g=f[p];g===""?p?p===h-1&&c.push(g):c=[g]:g===".."?c.pop():g==="."||c.push(g)}}c.length>1&&(Bd(c)===""?n==="never"&&c.pop():n==="always"&&c.push(""));const d=ww(c.join("/"))||"/";return l&&r&&r.set(l,d),d}function J8(e){const t=new Map(e.map(o=>[encodeURIComponent(o),o])),n=Array.from(t.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return o=>o.replace(r,s=>t.get(s)??s)}function M_(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(o=>H2(o,n)).join("/"):H2(r,n)}function V2({path:e,params:t,decoder:n,...r}){let o=!1;const s=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:o};if(!e.includes("$"))return{interpolatedPath:e,usedParams:s,isMissingParams:o};const l=e.length;let c=0,d,f="";for(;c<l;){const p=c;d=EP(e,p,d);const h=d[5];if(c=h+1,p===h)continue;const g=d[0];if(g===0){f+="/"+e.substring(p,h);continue}if(g===2){const v=t._splat;s._splat=v,s["*"]=v;const y=e.substring(p,d[1]),b=e.substring(d[4],h);if(!v){o=!0,(y||b)&&(f+="/"+y+b);continue}const x=M_("_splat",t,n);f+="/"+y+x+b;continue}if(g===1){const v=e.substring(d[2],d[3]);!o&&!(v in t)&&(o=!0),s[v]=t[v];const y=e.substring(p,d[1]),b=e.substring(d[4],h),x=M_(v,t,n)??"undefined";f+="/"+y+x+b;continue}if(g===3){const v=e.substring(d[2],d[3]),y=t[v];if(y==null)continue;s[v]=y;const b=e.substring(p,d[1]),x=e.substring(d[4],h),w=M_(v,t,n)??"";f+="/"+b+w+x;continue}}return e.endsWith("/")&&(f+="/"),{usedParams:s,interpolatedPath:f||"/",isMissingParams:o}}function H2(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function Tr(e){return e?.isNotFound===!0}function e7(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}const t7="tsr-scroll-restoration-v1_3";function n7(){const e=e7();if(!e)return null;let t={};try{const r=JSON.parse(e.getItem("tsr-scroll-restoration-v1_3")||"{}");zc(r)&&(t=r)}catch{}return{get state(){return t},set:r=>{t=ta(r,t)||t},persist:()=>{try{e.setItem(t7,JSON.stringify(t))}catch{}}}}const q2=n7(),r7=e=>e.state.__TSR_key||e.href;function o7(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let Bh=!1;const Qu="window",G2="data-scroll-restoration-id";function i7(e,t){if(!q2)return;const n=q2;if((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!n)return;e.isScrollRestorationSetup=!0,Bh=!1;const r=e.options.getScrollRestorationKey||r7,o=new Map;window.history.scrollRestoration="manual";const s=c=>{if(!(Bh||!e.isScrollRestoring))if(c.target===document||c.target===window)o.set(Qu,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const d=c.target;o.set(d,{scrollX:d.scrollLeft||0,scrollY:d.scrollTop||0})}},l=c=>{if(!e.isScrollRestoring||!c||o.size===0||!n)return;const d=n.state[c]||={};for(const[f,p]of o){let h;if(f===Qu)h=Qu;else if(f.isConnected){const g=f.getAttribute(G2);h=g?`[${G2}="${g}"]`:o7(f)}h&&(d[h]=p)}};document.addEventListener("scroll",s,!0),e.subscribe("onBeforeLoad",c=>{l(c.fromLocation?r(c.fromLocation):void 0),o.clear()}),window.addEventListener("pagehide",()=>{l(r(e.stores.resolvedLocation.get()??e.stores.location.get())),n.persist()}),e.subscribe("onRendered",c=>{const d=r(c.toLocation),f=e.options.scrollRestorationBehavior,p=e.options.scrollToTopSelectors;if(o.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))){Bh=!0;try{const h=e.isScrollRestoring?n.state[d]:void 0;let g=!1;if(h)for(const v in h){const y=h[v];if(!zc(y))continue;const{scrollX:b,scrollY:x}=y;if(!(!Number.isFinite(b)||!Number.isFinite(x))){if(v===Qu)window.scrollTo({top:x,left:b,behavior:f}),g=!0;else if(v){let w;try{w=document.querySelector(v)}catch{continue}w&&(w.scrollLeft=b,w.scrollTop=x,g=!0)}}}if(!g){const v=e.history.location.hash.slice(1);if(v){const y=window.history.state?.__hashScrollIntoViewOptions??!0;if(y){const b=document.getElementById(v);b&&b.scrollIntoView(y)}}else{const y={top:0,left:0,behavior:f};if(window.scrollTo(y),p)for(const b of p){if(b===Qu)continue;const x=typeof b=="function"?b():document.querySelector(b);x&&x.scrollTo(y)}}}}finally{Bh=!1}e.isScrollRestoring&&n.set(h=>(h[d]||={},h))}})}function s7(e,t=String){const n=new URLSearchParams;for(const r in e){const o=e[r];o!==void 0&&n.set(r,t(o))}return n.toString()}function P_(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function a7(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[r,o]of t.entries()){const s=n[r];s==null?n[r]=P_(o):Array.isArray(s)?s.push(P_(o)):n[r]=[s,P_(o)]}return n}const l7=u7(JSON.parse),c7=d7(JSON.stringify,JSON.parse);function u7(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=a7(t);for(const r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch{}}return n}}function d7(e,t){const n=typeof t=="function";function r(o){if(typeof o=="object"&&o!==null)try{return e(o)}catch{}else if(n&&typeof o=="string")try{return t(o),e(o)}catch{}return o}return o=>{const s=s7(o,r);return s?`?${s}`:""}}const rl="__root__";function Ic(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Wr(e){return e instanceof Response&&!!e.options}function f7(e){return{input:({url:t})=>{for(const n of e)t=Ab(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=CP(e[n],t);return t}}}function h7(e){const t=TP(e.basepath),n=`/${t}`,r=`${n}/`,o=e.caseSensitive?n:n.toLowerCase(),s=e.caseSensitive?r:r.toLowerCase();return{input:({url:l})=>{const c=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return c===o?l.pathname="/":c.startsWith(s)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=am(["/",t,l.pathname]),l)}}function Ab(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function CP(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function p7(e,t){const{createMutableStore:n,createReadonlyStore:r,batch:o,init:s}=t,l=new Map,c=new Map,d=new Map,f=n(e.status),p=n(e.loadedAt),h=n(e.isLoading),g=n(e.isTransitioning),v=n(e.location),y=n(e.resolvedLocation),b=n(e.statusCode),x=n(e.redirect),w=n([]),E=n([]),T=n([]),R=r(()=>N_(l,w.get())),O=r(()=>N_(c,E.get())),A=r(()=>N_(d,T.get())),I=r(()=>w.get()[0]),P=r(()=>w.get().some(W=>l.get(W)?.get().status==="pending")),L=r(()=>({locationHref:v.get().href,resolvedLocationHref:y.get()?.href,status:f.get()})),H=r(()=>({status:f.get(),loadedAt:p.get(),isLoading:h.get(),isTransitioning:g.get(),matches:R.get(),location:v.get(),resolvedLocation:y.get(),statusCode:b.get(),redirect:x.get()})),$=Hd(64);function B(W){let te=$.get(W);return te||(te=r(()=>{const le=w.get();for(const Q of le){const k=l.get(Q);if(k&&k.routeId===W)return k.get()}}),$.set(W,te)),te}const z={status:f,loadedAt:p,isLoading:h,isTransitioning:g,location:v,resolvedLocation:y,statusCode:b,redirect:x,matchesId:w,pendingIds:E,cachedIds:T,matches:R,pendingMatches:O,cachedMatches:A,firstId:I,hasPending:P,matchRouteDeps:L,matchStores:l,pendingMatchStores:c,cachedMatchStores:d,__store:H,getRouteMatchStore:B,setMatches:K,setPending:oe,setCached:q};K(e.matches),s?.(z);function K(W){k_(W,l,w,n,o)}function oe(W){k_(W,c,E,n,o)}function q(W){k_(W,d,T,n,o)}return z}function N_(e,t){const n=[];for(const r of t){const o=e.get(r);o&&n.push(o.get())}return n}function k_(e,t,n,r,o){const s=e.map(c=>c.id),l=new Set(s);o(()=>{for(const c of t.keys())l.has(c)||t.delete(c);for(const c of e){const d=t.get(c.id);if(!d){const f=r(c);f.routeId=c.routeId,t.set(c.id,f);continue}d.routeId=c.routeId,d.get()!==c&&d.set(c)}z8(n.get(),s)||n.set(s)})}const Ib=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},m7=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Tg=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),ol=(e,t,n=!0)=>{const r={...e.router.options.context??{}},o=n?t:t-1;for(let s=0;s<=o;s++){const l=e.matches[s];if(!l)continue;const c=e.router.getMatch(l.id);c&&Object.assign(r,c.__routeContext,c.__beforeLoadContext)}return r},K2=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,r=e.matches.findIndex(l=>l.routeId===e.router.routeTree.id),o=r>=0?r:0;let s=n?e.matches.findIndex(l=>l.routeId===n):e.firstBadMatchIndex??e.matches.length-1;s<0&&(s=o);for(let l=s;l>=0;l--){const c=e.matches[l];if(e.router.looseRoutesById[c.routeId].options.notFoundComponent)return l}return n?s:o},ra=(e,t,n)=>{if(!(!Wr(n)&&!Tr(n)))throw Wr(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Wr(n)?"redirected":Tr(n)?"notFound":r.status==="pending"?"success":r.status,context:ol(e,t.index),isFetching:!1,error:n})),Tr(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Wr(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},AP=(e,t)=>{const n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Z2=(e,t,n)=>{const r=ol(e,n);e.updateMatch(t,o=>({...o,context:r}))},Xu=(e,t,n,r)=>{const{id:o,routeId:s}=e.matches[t],l=e.router.looseRoutesById[s];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,ra(e,e.router.getMatch(o),n);try{l.options.onError?.(n)}catch(c){n=c,ra(e,e.router.getMatch(o),n)}e.updateMatch(o,c=>(c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,c._nonReactive.loadPromise?.resolve(),{...c,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Wr(n)&&!Tr(n)&&(e.serialError??=n)},IP=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const o=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Tg(e,t)&&(n.options.loader||n.options.beforeLoad||PP(n))&&typeof o=="number"&&o!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){const s=setTimeout(()=>{Ib(e)},o);r._nonReactive.pendingTimeout=s}},g7=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;IP(e,t,n,r);const o=()=>{const s=e.router.getMatch(t);s.preload&&(s.status==="redirected"||s.status==="notFound")&&ra(e,s,s.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(o):o()},v7=(e,t,n,r)=>{const o=e.router.getMatch(t);let s=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Fc(()=>{s?.resolve(),s=void 0});const{paramsError:l,searchError:c}=o;l&&Xu(e,n,l,"PARSE_PARAMS"),c&&Xu(e,n,c,"VALIDATE_SEARCH"),IP(e,t,r,o);const d=new AbortController;let f=!1;const p=()=>{f||(f=!0,e.updateMatch(t,R=>({...R,isFetching:"beforeLoad",fetchCount:R.fetchCount+1,abortController:d})))},h=()=>{o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,R=>({...R,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{p(),h()});return}o._nonReactive.beforeLoadPromise=Fc();const g={...ol(e,n,!1),...o.__routeContext},{search:v,params:y,cause:b}=o,x=Tg(e,t),w={search:v,abortController:d,params:y,preload:x,context:g,location:e.location,navigate:R=>e.router.navigate({...R,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:x?"preload":b,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},E=R=>{if(R===void 0){e.router.batch(()=>{p(),h()});return}(Wr(R)||Tr(R))&&(p(),Xu(e,n,R,"BEFORE_LOAD")),e.router.batch(()=>{p(),e.updateMatch(t,O=>({...O,__beforeLoadContext:R})),h()})};let T;try{if(T=r.options.beforeLoad(w),Vd(T))return p(),T.catch(R=>{Xu(e,n,R,"BEFORE_LOAD")}).then(E)}catch(R){p(),Xu(e,n,R,"BEFORE_LOAD")}E(T)},_7=(e,t)=>{const{id:n,routeId:r}=e.matches[t],o=e.router.looseRoutesById[r],s=()=>c(),l=()=>v7(e,n,t,o),c=()=>{if(AP(e,n))return;const d=g7(e,n,o);return Vd(d)?d.then(l):l()};return s()},y7=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const o={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(o),n.options.scripts?.(o),n.options.headers?.(o)]).then(([s,l,c])=>({meta:s?.meta,links:s?.links,headScripts:s?.scripts,headers:c,scripts:l,styles:s?.styles}))},MP=(e,t,n,r,o)=>{const s=t[r-1],{params:l,loaderDeps:c,abortController:d,cause:f}=e.router.getMatch(n),p=ol(e,r),h=Tg(e,n);return{params:l,deps:c,preload:!!h,parentMatchPromise:s,abortController:d,context:p,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:h?"preload":f,route:o,...e.router.options.additionalContext}},Y2=async(e,t,n,r,o)=>{try{const s=e.router.getMatch(n);try{(!(yP??e.router.isServer)||s.ssr===!0)&&qd(o);const l=o.options.loader,c=typeof l=="function"?l:l?.handler,d=c?.(MP(e,t,n,r,o)),f=!!c&&Vd(d);if((f||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(n,h=>({...h,isFetching:"loader"})),c){const h=f?await d:d;ra(e,e.router.getMatch(n),h),h!==void 0&&e.updateMatch(n,g=>({...g,loaderData:h}))}o._lazyPromise&&await o._lazyPromise;const p=s._nonReactive.minPendingPromise;p&&await p,o._componentsPromise&&await o._componentsPromise,e.updateMatch(n,h=>({...h,error:void 0,context:ol(e,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(l){let c=l;if(c?.name==="AbortError"){if(s.abortController.signal.aborted){s._nonReactive.loaderPromise?.resolve(),s._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,f=>({...f,status:f.status==="pending"?"success":f.status,isFetching:!1,context:ol(e,r)}));return}const d=s._nonReactive.minPendingPromise;d&&await d,Tr(l)&&await o.options.notFoundComponent?.preload?.(),ra(e,e.router.getMatch(n),l);try{o.options.onError?.(l)}catch(f){c=f,ra(e,e.router.getMatch(n),f)}!Wr(c)&&!Tr(c)&&await qd(o,["errorComponent"]),e.updateMatch(n,f=>({...f,error:c,context:ol(e,r),status:"error",isFetching:!1}))}}catch(s){const l=e.router.getMatch(n);l&&(l._nonReactive.loaderPromise=void 0),ra(e,l,s)}},b7=async(e,t,n)=>{async function r(v,y,b,x,w){const E=Date.now()-y.updatedAt,T=v?w.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:w.options.staleTime??e.router.options.defaultStaleTime??0,R=w.options.shouldReload,O=typeof R=="function"?R(MP(e,t,o,n,w)):R,{status:A,invalid:I}=x,P=E>=T&&(!!e.forceStaleReload||x.cause==="enter"||b!==void 0&&b!==x.id);l=A==="success"&&(I||(O??P)),v&&w.options.preload===!1||(l&&!e.sync&&p?(c=!0,(async()=>{try{await Y2(e,t,o,n,w);const L=e.router.getMatch(o);L._nonReactive.loaderPromise?.resolve(),L._nonReactive.loadPromise?.resolve(),L._nonReactive.loaderPromise=void 0,L._nonReactive.loadPromise=void 0}catch(L){Wr(L)&&await e.router.navigate(L.options)}})()):A!=="success"||l?await Y2(e,t,o,n,w):Z2(e,o,n))}const{id:o,routeId:s}=e.matches[n];let l=!1,c=!1;const d=e.router.looseRoutesById[s],f=d.options.loader,p=((typeof f=="function"?void 0:f?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(AP(e,o)){if(!e.router.getMatch(o))return e.matches[n];Z2(e,o,n)}else{const v=e.router.getMatch(o),y=e.router.stores.matchesId.get()[n],b=(y&&e.router.stores.matchStores.get(y)||null)?.routeId===s?y:e.router.stores.matches.get().find(w=>w.routeId===s)?.id,x=Tg(e,o);if(v._nonReactive.loaderPromise){if(v.status==="success"&&!e.sync&&!v.preload&&p)return v;await v._nonReactive.loaderPromise;const w=e.router.getMatch(o),E=w._nonReactive.error||w.error;E&&ra(e,w,E),w.status==="pending"&&await r(x,v,b,w,d)}else{const w=x&&!e.router.stores.matchStores.has(o),E=e.router.getMatch(o);E._nonReactive.loaderPromise=Fc(),w!==E.preload&&e.updateMatch(o,T=>({...T,preload:w})),await r(x,v,b,E,d)}}const h=e.router.getMatch(o);c||(h._nonReactive.loaderPromise?.resolve(),h._nonReactive.loadPromise?.resolve(),h._nonReactive.loadPromise=void 0),clearTimeout(h._nonReactive.pendingTimeout),h._nonReactive.pendingTimeout=void 0,c||(h._nonReactive.loaderPromise=void 0),h._nonReactive.dehydrated=void 0;const g=c?h.isFetching:!1;return g!==h.isFetching||h.invalid!==!1?(e.updateMatch(o,v=>({...v,isFetching:g,invalid:!1})),e.router.getMatch(o)):h};async function W2(e){const t=e,n=[];m7(t.router)&&Ib(t);let r;for(let g=0;g<t.matches.length;g++){try{const v=_7(t,g);Vd(v)&&await v}catch(v){if(Wr(v))throw v;if(Tr(v))r=v;else if(!t.preload)throw v;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const o=t.firstBadMatchIndex??t.matches.length,s=r&&!t.preload?K2(t,r):void 0,l=r&&t.preload?0:s!==void 0?Math.min(s+1,o):o;let c,d;for(let g=0;g<l;g++)n.push(b7(t,n,g));try{await Promise.all(n)}catch{const g=await Promise.allSettled(n);for(const v of g){if(v.status!=="rejected")continue;const y=v.reason;if(Wr(y))throw y;Tr(y)?c??=y:d??=y}if(d!==void 0)throw d}const f=c??(r&&!t.preload?r:void 0);let p=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!f&&r&&t.preload)return t.matches;if(f){const g=K2(t,f);g===void 0&&ls();const v=t.matches[g],y=t.router.looseRoutesById[v.routeId],b=t.router.options?.defaultNotFoundComponent;!y.options.notFoundComponent&&b&&(y.options.notFoundComponent=b),f.routeId=v.routeId;const x=v.routeId===t.router.routeTree.id;t.updateMatch(v.id,w=>({...w,...x?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:f},isFetching:!1})),p=g,await qd(y,["notFoundComponent"])}else if(!t.preload){const g=t.matches[0];g.globalNotFound||t.router.getMatch(g.id)?.globalNotFound&&t.updateMatch(g.id,v=>({...v,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const g=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await qd(g,["errorComponent"])}for(let g=0;g<=p;g++){const{id:v,routeId:y}=t.matches[g],b=t.router.looseRoutesById[y];try{const x=y7(t,v,b);if(x){const w=await x;t.updateMatch(v,E=>({...E,...w}))}}catch(x){console.error(`Error executing head for route ${y}:`,x)}}const h=Ib(t);if(Vd(h)&&await h,f)throw f;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Q2(e,t){const n=t.map(r=>e.options[r]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function qd(e,t=lm){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(r=>{const{id:o,...s}=r.options;Object.assign(e.options,s),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const n=()=>e._componentsLoaded?void 0:t===lm?(()=>{if(e._componentsPromise===void 0){const r=Q2(e,lm);r?e._componentsPromise=r.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Q2(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function PP(e){for(const t of lm)if(e.options[t]?.preload)return!0;return!1}const lm=["component","errorComponent","pendingComponent","notFoundComponent"];var ia="__TSR_index",X2="popstate",J2="beforeunload";function w7(e){let t=e.getLocation();const n=new Set,r=l=>{t=e.getLocation(),n.forEach(c=>c({location:t,action:l}))},o=l=>{e.notifyOnIndexChange??!0?r(l):t=e.getLocation()},s=async({task:l,navigateOpts:c,...d})=>{if(c?.ignoreBlocker??!1){l();return}const f=e.getBlockers?.()??[],p=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&f.length&&p)for(const h of f){const g=Tm(d.path,d.state);if(await h.blockerFn({currentLocation:t,nextLocation:g,action:d.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,c,d)=>{const f=t.state[ia];c=eT(f+1,c),s({task:()=>{e.pushState(l,c),r({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:l,state:c})},replace:(l,c,d)=>{const f=t.state[ia];c=eT(f,c),s({task:()=>{e.replaceState(l,c),r({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:l,state:c})},go:(l,c)=>{s({task:()=>{e.go(l),o({type:"GO",index:l})},navigateOpts:c,type:"GO"})},back:l=>{s({task:()=>{e.back(l?.ignoreBlocker??!1),o({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{s({task:()=>{e.forward(l?.ignoreBlocker??!1),o({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[ia]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const c=e.getBlockers?.()??[];return e.setBlockers([...c,l]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(f=>f!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function eT(e,t){t||(t={});const n=Sw();return{...t,key:n,__TSR_key:n,[ia]:e}}function S7(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let o=[];const s=()=>o,l=P=>o=P,c=(P=>P),d=(()=>Tm(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const P=Sw();t.history.replaceState({[ia]:0,key:P,__TSR_key:P},"")}let f=d(),p,h=!1,g=!1,v=!1,y=!1;const b=()=>f;let x,w;const E=()=>{x&&(I._ignoreSubscribers=!0,(x.isPush?t.history.pushState:t.history.replaceState)(x.state,"",x.href),I._ignoreSubscribers=!1,x=void 0,w=void 0,p=void 0)},T=(P,L,H)=>{const $=c(L);w||(p=f),f=Tm(L,H),x={href:$,state:H,isPush:x?.isPush||P==="push"},w||(w=Promise.resolve().then(()=>E()))},R=P=>{f=d(),I.notify({type:P})},O=async()=>{if(g){g=!1;return}const P=d(),L=P.state[ia]-f.state[ia],H=L===1,$=L===-1,B=!H&&!$||h;h=!1;const z=B?"GO":$?"BACK":"FORWARD",K=B?{type:"GO",index:L}:{type:$?"BACK":"FORWARD"};if(v)v=!1;else{const oe=s();if(typeof document<"u"&&oe.length){for(const q of oe)if(await q.blockerFn({currentLocation:f,nextLocation:P,action:z})){g=!0,t.history.go(1),I.notify(K);return}}}f=d(),I.notify(K)},A=P=>{if(y){y=!1;return}let L=!1;const H=s();if(typeof document<"u"&&H.length)for(const $ of H){const B=$.enableBeforeUnload??!0;if(B===!0){L=!0;break}if(typeof B=="function"&&B()===!0){L=!0;break}}if(L)return P.preventDefault(),P.returnValue=""},I=w7({getLocation:b,getLength:()=>t.history.length,pushState:(P,L)=>T("push",P,L),replaceState:(P,L)=>T("replace",P,L),back:P=>(P&&(v=!0),y=!0,t.history.back()),forward:P=>{P&&(v=!0),y=!0,t.history.forward()},go:P=>{h=!0,t.history.go(P)},createHref:P=>c(P),flush:E,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(J2,A,{capture:!0}),t.removeEventListener(X2,O)},onBlocked:()=>{p&&f!==p&&(f=p)},getBlockers:s,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(J2,A,{capture:!0}),t.addEventListener(X2,O),t.history.pushState=function(...P){const L=n.apply(t.history,P);return I._ignoreSubscribers||R("PUSH"),L},t.history.replaceState=function(...P){const L=r.apply(t.history,P);return I._ignoreSubscribers||R("REPLACE"),L},I}function E7(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Tm(e,t){const n=E7(e),r=n.indexOf("#"),o=n.indexOf("?"),s=Sw();return{href:n,pathname:n.substring(0,r>0?o>0?Math.min(r,o):r:o>0?o:n.length),hash:r>-1?n.substring(r):"",search:o>-1?n.slice(o,r===-1?void 0:r):"",state:t||{[ia]:0,key:s,__TSR_key:s}}}function Sw(){return(Math.random()+1).toString(36).substring(7)}function Mc(e,t){const n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var x7=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=n=>n(),this.update=n=>{const r=this.options,o=this.basepath??r?.basepath??"/",s=this.basepath===void 0,l=r?.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=J8(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=S7()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let p;this.resolvePathCache=Hd(1e3),p=this.buildRouteTree(),this.setRoutes(p)}if(!this.stores&&this.latestLocation){const p=this.getStoreConfig(this);this.batch=p.batch,this.stores=p7(O7(this.latestLocation),p),i7(this)}let c=!1;const d=this.options.basepath??"/",f=this.options.rewrite;if(s||o!==d||l!==f){this.basepath=d;const p=[],h=TP(d);h&&h!=="/"&&p.push(h7({basepath:d})),f&&p.push(f),this.rewrite=p.length===0?void 0:p.length===1?p[0]:f7(p),this.history&&this.updateLatestLocation(),c=!0}c&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=K8(this.routeTree,this.options.caseSensitive,(r,o)=>{r.init({originalIndex:o})});return this.options.routeMasks&&B8(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const o={eventType:n,fn:r};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const o=({pathname:d,search:f,hash:p,href:h,state:g})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(d)){const w=this.options.parseSearch(f),E=this.options.stringifySearch(w);return{href:d+E+p,publicHref:d+E+p,pathname:Wu(d).path,external:!1,searchStr:E,search:ja(r?.search,w),hash:Wu(p.slice(1)).path,state:Xa(r?.state,g)}}const v=new URL(h,this.origin),y=Ab(this.rewrite,v),b=this.options.parseSearch(y.search),x=this.options.stringifySearch(b);return y.search=x,{href:y.href.replace(y.origin,""),publicHref:h,pathname:Wu(y.pathname).path,external:!!this.rewrite&&y.origin!==this.origin,searchStr:x,search:ja(r?.search,b),hash:Wu(y.hash.slice(1)).path,state:Xa(r?.state,g)}},s=o(n),{__tempLocation:l,__tempKey:c}=s.state;if(l&&(!c||c===this.tempLocationKey)){const d=o(l);return d.state.key=s.state.key,d.state.__TSR_key=s.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:s}}return s},this.resolvePathWithBase=(n,r)=>X8({base:n,to:r.includes("//")?ww(r):r,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,o)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},o):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>T7({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(n=>{this.cancelMatch(n)}),this.stores.matchesId.get().forEach(n=>{if(this.stores.pendingMatchStores.has(n))return;const r=this.stores.matchStores.get(n)?.get();r&&(r.status==="pending"||r.isFetching==="loader")&&this.cancelMatch(n)})},this.buildLocation=n=>{const r=(s={})=>{const l=s._fromLocation||this.pendingBuiltLocation||this.latestLocation,c=this.matchRoutesLightweight(l);s.from;const d=s.unsafeRelative==="path"?l.pathname:s.from??c.fullPath,f=s.to?`${s.to}`:void 0,p=c.search,h=Object.assign(Object.create(null),c.params),g=f?.charCodeAt(0)===47?"/":this.resolvePathWithBase(d,"."),v=f?this.resolvePathWithBase(g,f):g,y=s.params===!1||s.params===null?Object.create(null):(s.params??!0)===!0?h:Object.assign(h,ta(s.params,h)),b=this.routesByPath[ss(v)];let x;if(b)x=this.getRouteBranch(b);else if(v.includes("$"))x=[];else{const $=this.getMatchedRoutes(v);x=$.matchedRoutes,this.options.notFoundRoute&&(!$.foundRoute||$.foundRoute.path!=="/"&&$.routeParams["**"])&&(x=[...x,this.options.notFoundRoute])}if(x.length&&wP(y))for(const $ of x){const B=$.options.params?.stringify??$.options.stringifyParams;if(B)try{Object.assign(y,B(y))}catch{}}const w=n.leaveParams?v:Wu(V2({path:v,params:y,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let E=p;if(n._includeValidateSearch&&this.options.search?.strict){const $={};x.forEach(B=>{if(B.options.validateSearch)try{Object.assign($,cm(B.options.validateSearch,{...$,...E}))}catch{}}),E=$}E=C7({search:E,dest:s,destRoutes:x,_includeValidateSearch:n._includeValidateSearch}),E=ja(p,E);const T=this.options.stringifySearch(E),R=s.hash===!0?l.hash:s.hash?ta(s.hash,l.hash):void 0,O=R?`#${R}`:"";let A=s.state===!0?l.state:s.state?ta(s.state,l.state):{};A=Xa(l.state,A);const I=`${w}${T}${O}`;let P,L,H=!1;if(this.rewrite){const $=new URL(I,this.origin),B=CP(this.rewrite,$);P=$.href.replace($.origin,""),B.origin!==this.origin?(L=B.href,H=!0):L=B.pathname+B.search+B.hash}else P=U8(I),L=P;return{publicHref:L,href:P,pathname:w,search:E,searchStr:T,state:A,hash:R??"",external:H,unmaskOnReload:s.unmaskOnReload}},o=(s={},l)=>{const c=r(s);let d=l?r(l):void 0;if(!d){const f=Object.create(null);if(this.options.routeMasks){const p=V8(c.pathname,this.processedTree);if(p){Object.assign(f,p.rawParams);const{from:h,params:g,...v}=p.route,y=g===!1||g===null?Object.create(null):(g??!0)===!0?f:Object.assign(f,ta(g,f));l={from:n.from,...v,params:y},d=r(l)}}}return d&&(c.maskedLocation=d),c};return n.mask?o(n,{from:n.from,...n.mask}):o(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...o})=>{const s=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(p=>{o.state[p]=this.latestLocation.state[p]});const f=nl(o.state,this.latestLocation.state);return d.forEach(p=>{delete o.state[p]}),f},l=ss(this.latestLocation.href)===ss(o.href);let c=this.commitLocationPromise;if(this.commitLocationPromise=Fc(()=>{c?.resolve(),c=void 0}),l&&s())this.load();else{let{maskedLocation:d,hashScrollIntoView:f,...p}=o;d&&(p={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...p,search:p.searchStr,state:{...p.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(p.unmaskOnReload??this.options.unmaskOnReload??!1)&&(p.state.__tempKey=this.tempLocationKey)),p.state.__hashScrollIntoViewOptions=f??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[o.replace?"replace":"push"](p.publicHref,p.state,{ignoreBlocker:r})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:o,viewTransition:s,ignoreBlocker:l,href:c,...d}={})=>{if(c){const h=this.history.location.state.__TSR_index,g=Tm(c,{__TSR_index:n?h:h+1}),v=new URL(g.pathname,this.origin);d.to=Ab(this.rewrite,v).pathname,d.search=this.options.parseSearch(g.search),d.hash=g.hash.slice(1)}const f=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=f;const p=this.commitLocation({...f,viewTransition:s,replace:n,resetScroll:r,hashScrollIntoView:o,ignoreBlocker:l});return Promise.resolve().then(()=>{this.pendingBuiltLocation===f&&(this.pendingBuiltLocation=void 0)}),p},this.navigate=async({to:n,reloadDocument:r,href:o,publicHref:s,...l})=>{let c=!1;if(o)try{new URL(`${o}`),c=!0}catch{}if(c&&!r&&(r=!0),r){if(n!==void 0||!o){const f=this.buildLocation({to:n,...l});o=o??f.publicHref,s=s??f.publicHref}const d=!c&&s?s:o;if(Rm(d,this.protocolAllowlist))return Promise.resolve();if(!l.ignoreBlocker){const f=this.history.getBlockers?.()??[];for(const p of f)if(p?.blockerFn&&await p.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return l.replace?window.location.replace(d):window.location.href=d,Promise.resolve()}return this.buildAndCommitLocation({...l,href:o,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation),r=this.stores.cachedMatches.get().filter(o=>!n.some(s=>s.id===o.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(n),this.stores.setCached(r)})},this.load=async n=>{let r,o,s;const l=this.stores.resolvedLocation.get()??this.stores.location.get();for(s=new Promise(d=>{this.startTransition(async()=>{try{this.beforeLoad();const f=this.latestLocation,p=Mc(f,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...p}),this.emit({type:"onBeforeLoad",...p}),await W2({router:this,sync:n?.sync,forceStaleReload:l.href===f.href,matches:this.stores.pendingMatches.get(),location:f,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let h=null,g=null,v=null,y=null;this.batch(()=>{const b=this.stores.pendingMatches.get(),x=b.length,w=this.stores.matches.get();h=x?w.filter(R=>!this.stores.pendingMatchStores.has(R.id)):null;const E=new Set;for(const R of this.stores.pendingMatchStores.values())R.routeId&&E.add(R.routeId);const T=new Set;for(const R of this.stores.matchStores.values())R.routeId&&T.add(R.routeId);g=x?w.filter(R=>!E.has(R.routeId)):null,v=x?b.filter(R=>!T.has(R.routeId)):null,y=x?b.filter(R=>T.has(R.routeId)):w,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),x&&(this.stores.setMatches(b),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...h.filter(R=>R.status!=="error"&&R.status!=="notFound"&&R.status!=="redirected")]),this.clearExpiredCache())});for(const[b,x]of[[g,"onLeave"],[v,"onEnter"],[y,"onStay"]])if(b)for(const w of b)this.looseRoutesById[w.routeId].options[x]?.(w)})})}})}catch(f){Wr(f)?(r=f,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):Tr(f)&&(o=f);const p=r?r.status:o?404:this.stores.matches.get().some(h=>h.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(p),this.stores.redirect.set(r)})}this.latestLoadPromise===s&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),d()})}),this.latestLoadPromise=s,await s;this.latestLoadPromise&&s!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.stores.matches.get().some(d=>d.status==="error")&&(c=500),c!==void 0&&this.stores.statusCode.set(c)},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const s=this.latestLocation,l=this.stores.resolvedLocation.get(),c=typeof r.types=="function"?r.types(Mc(s,l)):r.types;if(c===!1){n();return}o={update:n,types:c}}else o=n;document.startViewTransition(o)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStores.get(n);if(o){o.set(r);return}const s=this.stores.matchStores.get(n);if(s){s.set(r);return}const l=this.stores.cachedMatchStores.get(n);if(l){const c=r(l.get());c.status==="redirected"?this.stores.cachedMatchStores.delete(n)&&this.stores.cachedIds.set(d=>d.filter(f=>f!==n)):l.set(c)}})},this.getMatch=n=>this.stores.cachedMatchStores.get(n)?.get()??this.stores.pendingMatchStores.get(n)?.get()??this.stores.matchStores.get(n)?.get(),this.invalidate=n=>{const r=o=>n?.filter?.(o)??!0?{...o,invalid:!0,...n?.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(r)),this.stores.setCached(this.stores.cachedMatches.get().map(r)),this.stores.setPending(this.stores.pendingMatches.get().map(r))}),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const r=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const o=n.options._builtLocation??this.buildLocation(n.options),s=this.getParsedLocationHref(o);n.options.href=s,n.headers.set("Location",s)}else if(r)try{const o=new URL(r);if(this.origin&&o.origin===this.origin){const s=o.pathname+o.search+o.hash;n.options.href=s,n.headers.set("Location",s)}}catch{}if(n.options.href&&!n.options._builtLocation&&Rm(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(o=>!r(o))):this.stores.setCached([])},this.clearExpiredCache=()=>{const n=Date.now(),r=o=>{const s=this.looseRoutesById[o.routeId];if(!s.options.loader)return!0;const l=(o.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:n-o.updatedAt>=l};this.clearCache({filter:r})},this.loadRouteChunk=qd,this.preloadRoute=async n=>{const r=n._builtLocation??this.buildLocation(n);let o=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const s=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),l=new Set([...s,...this.stores.cachedIds.get()]),c=o.filter(d=>!l.has(d.id));if(c.length){const d=this.stores.cachedMatches.get();this.stores.setCached([...d,...c])}try{return o=await W2({router:this,matches:o,location:r,preload:!0,updateMatch:(d,f)=>{s.has(d)?o=o.map(p=>p.id===d?f(p):p):this.updateMatch(d,f)}}),o}catch(d){if(Wr(d))return d.options.reloadDocument?void 0:await this.preloadRoute({...d.options,_fromLocation:r});Tr(d)||console.error(d);return}},this.matchRoute=(n,r)=>{const o={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},s=this.buildLocation(o);if(r?.pending&&this.stores.status.get()!=="pending")return!1;const l=(r?.pending===void 0?!this.stores.isLoading.get():r.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),c=H8(s.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,l.pathname,this.processedTree);return!c||n.params&&!nl(c.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?nl(l.search,s.search,{partial:!0})?c.rawParams:!1:c.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(n=>n.status==="notFound"||n.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??c7,parseSearch:e.parseSearch??l7,protocolAllowlist:e.protocolAllowlist??j8}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=RP(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:o}=n;let{matchedRoutes:s}=n,l=!1;(r?r.path!=="/"&&o["**"]:ss(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:l=!0);const c=l?I7(this.options.notFoundMode,s):void 0,d=new Array(s.length),f=new Map;for(const p of this.stores.matchStores.values())p.routeId&&f.set(p.routeId,p.get());for(let p=0;p<s.length;p++){const h=s[p],g=d[p-1];let v,y,b;{const B=g?.search??e.search,z=g?._strictSearch??void 0;try{const K=cm(h.options.validateSearch,{...B})??void 0;v={...B,...K},y={...z,...K},b=void 0}catch(K){let oe=K;if(K instanceof Cm||(oe=new Cm(K.message,{cause:K})),t?.throwOnError)throw oe;v=B,y={},b=oe}}const x=h.options.loaderDeps?.({search:v})??"",w=x?JSON.stringify(x):"",{interpolatedPath:E,usedParams:T}=V2({path:h.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),R=h.id+E+w,O=this.getMatch(R),A=f.get(h.id),I=O?._strictParams??T;let P;if(!O)try{tT(h,I)}catch(B){if(Tr(B)||Wr(B)?P=B:P=new R7(B.message,{cause:B}),t?.throwOnError)throw P}Object.assign(o,I);const L=A?"stay":"enter";let H;if(O)H={...O,cause:L,params:A?.params??o,_strictParams:I,search:ja(A?A.search:O.search,v),_strictSearch:y};else{const B=h.options.loader||h.options.beforeLoad||h.lazyFn||PP(h)?"pending":"success";H={id:R,ssr:h.options.ssr,index:p,routeId:h.id,params:A?.params??o,_strictParams:I,pathname:E,updatedAt:Date.now(),search:A?ja(A.search,v):v,_strictSearch:y,searchError:void 0,status:B,isFetching:!1,error:void 0,paramsError:P,__routeContext:void 0,_nonReactive:{loadPromise:Fc()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:L,loaderDeps:A?Xa(A.loaderDeps,x):x,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:h.options.staticData||{},fullPath:h.fullPath}}t?.preload||(H.globalNotFound=c===h.id),H.searchError=b;const $=this.getParentContext(g);H.context={...$,...H.__routeContext,...H.__beforeLoadContext},d[p]=H}for(let p=0;p<d.length;p++){const h=d[p],g=this.looseRoutesById[h.routeId],v=this.getMatch(h.id),y=f.get(h.routeId);if(h.params=y?ja(y.params,o):o,!v){const b=d[p-1],x=this.getParentContext(b);if(g.options.context){const w={deps:h.loaderDeps,params:h.params,context:x??{},location:e,navigate:E=>this.navigate({...E,_fromLocation:e}),buildLocation:this.buildLocation,cause:h.cause,abortController:h.abortController,preload:!!h.preload,matches:d,routeId:g.id};h.__routeContext=g.options.context(w)??void 0}h.context={...x,...h.__routeContext,...h.__beforeLoadContext}}}return d}matchRoutesLightweight(e){const{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=Bd(t),o={...e.search};for(const f of t)try{Object.assign(o,cm(f.options.validateSearch,o))}catch{}const s=Bd(this.stores.matchesId.get()),l=s&&this.stores.matchStores.get(s)?.get(),c=l&&l.routeId===r.id&&l.pathname===e.pathname;let d;if(c)d=l.params;else{const f=Object.assign(Object.create(null),n);for(const p of t)try{tT(p,f)}catch{}d=f}return{matchedRoutes:t,fullPath:r.fullPath,search:o,params:d}}},Cm=class extends Error{},R7=class extends Error{};function O7(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function cm(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Cm("Async validation not supported");if(n.issues)throw new Cm(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function T7({pathname:e,routesById:t,processedTree:n}){const r=Object.create(null),o=ss(e);let s;const l=q8(o,n,!0);return l&&(s=l.route,Object.assign(r,l.rawParams)),{matchedRoutes:l?.branch||[t.__root__],routeParams:r,foundRoute:s}}function C7({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return A7(n)(e,t,r??!1)}function A7(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const o of e){if("search"in o.options)o.options.search?.middlewares&&t.middlewares.push(...o.options.search.middlewares);else if(o.options.preSearchFilters||o.options.postSearchFilters){const s=({search:l,next:c})=>{let d=l;"preSearchFilters"in o.options&&o.options.preSearchFilters&&(d=o.options.preSearchFilters.reduce((p,h)=>h(p),l));const f=c(d);return"postSearchFilters"in o.options&&o.options.postSearchFilters?o.options.postSearchFilters.reduce((p,h)=>h(p),f):f};t.middlewares.push(s)}if(o.options.validateSearch){const s=({search:l,next:c})=>{const d=c(l);if(!t._includeValidateSearch)return d;try{return{...d,...cm(o.options.validateSearch,d)??void 0}}catch{return d}};t.middlewares.push(s)}}const n=({search:o})=>{const s=t.dest;return s.search?s.search===!0?o:ta(s.search,o):{}};t.middlewares.push(n);const r=(o,s,l)=>{if(o>=l.length)return s;const c=l[o];return c({search:s,next:f=>r(o+1,f,l)})};return function(s,l,c){return t.dest=l,t._includeValidateSearch=c,r(0,s,t.middlewares)}}function I7(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return rl}function tT(e,t){const n=e.options.params?.parse??e.options.parseParams;if(n){const r=n(t);if(r===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,r)}}const M7="Error preloading route! ☝️";var NP=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,r=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=rl:this.parentRoute||ls();let o=r?rl:n?.path;o&&o!=="/"&&(o=OP(o));const s=n?.id||o;let l=r?rl:am([this.parentRoute.id==="__root__"?"":this.parentRoute.id,s]);o==="__root__"&&(o="/"),l!=="__root__"&&(l=am(["/",l]));const c=l==="__root__"?"/":am([this.parentRoute.fullPath,o]);this._path=o,this._id=l,this._fullPath=c,this._to=ss(c)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>Ic({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},P7=class extends NP{constructor(e){super(e)}};function N7(e){if(typeof document<"u"&&document.querySelector){const t=e.stores.location.get(),n=t.state.__hashScrollIntoViewOptions??!0;if(n&&t.hash!==""){const r=document.getElementById(t.hash);r&&r.scrollIntoView(n)}}}function Ew(e){const t=e.errorComponent??xw;return C.jsx(k7,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?M.createElement(t,{error:n,reset:r}):e.children})}var k7=class extends M.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function xw({error:e}){const[t,n]=M.useState(!1);return C.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[C.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),C.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),C.jsx("div",{style:{height:".25rem"}}),t?C.jsx("div",{children:C.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?C.jsx("code",{children:e.message}):null})}):null]})}function D7({children:e,fallback:t=null}){return kP()?C.jsx(ee.Fragment,{children:e}):C.jsx(ee.Fragment,{children:t})}function kP(){return ee.useSyncExternalStore(L7,()=>!0,()=>!1)}function L7(){return()=>{}}var DP=M.createContext(null);function yo(e){return M.useContext(DP)}var Cg=M.createContext(void 0),$7=M.createContext(void 0),hn=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(hn||{});function j7({update:e,notify:t,unwatched:n}){return{link:r,unlink:o,propagate:s,checkDirty:l,shallowPropagate:c};function r(f,p,h){const g=p.depsTail;if(g!==void 0&&g.dep===f)return;const v=g!==void 0?g.nextDep:p.deps;if(v!==void 0&&v.dep===f){v.version=h,p.depsTail=v;return}const y=f.subsTail;if(y!==void 0&&y.version===h&&y.sub===p)return;const b=p.depsTail=f.subsTail={version:h,dep:f,sub:p,prevDep:g,nextDep:v,prevSub:y,nextSub:void 0};v!==void 0&&(v.prevDep=b),g!==void 0?g.nextDep=b:p.deps=b,y!==void 0?y.nextSub=b:f.subs=b}function o(f,p=f.sub){const h=f.dep,g=f.prevDep,v=f.nextDep,y=f.nextSub,b=f.prevSub;return v!==void 0?v.prevDep=g:p.depsTail=g,g!==void 0?g.nextDep=v:p.deps=v,y!==void 0?y.prevSub=b:h.subsTail=b,b!==void 0?b.nextSub=y:(h.subs=y)===void 0&&n(h),v}function s(f){let p=f.nextSub,h;e:do{const g=f.sub;let v=g.flags;if(v&60?v&12?v&4?!(v&48)&&d(f,g)?(g.flags=v|40,v&=1):v=0:g.flags=v&-9|32:v=0:g.flags=v|32,v&2&&t(g),v&1){const y=g.subs;if(y!==void 0){const b=(f=y).nextSub;b!==void 0&&(h={value:p,prev:h},p=b);continue}}if((f=p)!==void 0){p=f.nextSub;continue}for(;h!==void 0;)if(f=h.value,h=h.prev,f!==void 0){p=f.nextSub;continue e}break}while(!0)}function l(f,p){let h,g=0,v=!1;e:do{const y=f.dep,b=y.flags;if(p.flags&16)v=!0;else if((b&17)===17){if(e(y)){const x=y.subs;x.nextSub!==void 0&&c(x),v=!0}}else if((b&33)===33){(f.nextSub!==void 0||f.prevSub!==void 0)&&(h={value:f,prev:h}),f=y.deps,p=y,++g;continue}if(!v){const x=f.nextDep;if(x!==void 0){f=x;continue}}for(;g--;){const x=p.subs,w=x.nextSub!==void 0;if(w?(f=h.value,h=h.prev):f=x,v){if(e(p)){w&&c(x),p=f.sub;continue}v=!1}else p.flags&=-33;p=f.sub;const E=f.nextDep;if(E!==void 0){f=E;continue e}}return v}while(!0)}function c(f){do{const p=f.sub,h=p.flags;(h&48)===32&&(p.flags=h|16,(h&6)===2&&t(p))}while((f=f.nextSub)!==void 0)}function d(f,p){let h=p.depsTail;for(;h!==void 0;){if(h===f)return!0;h=h.prevDep}return!1}}function U7(e,t,n){const r=typeof e=="object",o=r?e:void 0;return{next:(r?e.next:e)?.bind(o),error:(r?e.error:t)?.bind(o),complete:(r?e.complete:n)?.bind(o)}}const Mb=[];let um=0;const{link:nT,unlink:z7,propagate:F7,checkDirty:LP,shallowPropagate:rT}=j7({update(e){return e._update()},notify(e){Mb[Pb++]=e,e.flags&=~hn.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=hn.Mutable|hn.Dirty,Am(e))}});let Vh=0,Pb=0,pi,Nb=0;function $P(e){try{++Nb,e()}finally{--Nb||jP()}}function Am(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=z7(n,e)}function jP(){if(!(Nb>0)){for(;Vh<Pb;){const e=Mb[Vh];Mb[Vh++]=void 0,e.notify()}Vh=0,Pb=0}}function oT(e,t){const n=typeof e=="function",r=e,o={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?hn.None:hn.Mutable,get(){return pi!==void 0&&nT(o,pi,um),o._snapshot},subscribe(s){const l=U7(s),c={current:!1},d=B7(()=>{o.get(),c.current?l.next?.(o._snapshot):c.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(s){const l=pi,c=t?.compare??Object.is;if(n)pi=o,++um,o.depsTail=void 0;else if(s===void 0)return!1;n&&(o.flags=hn.Mutable|hn.RecursedCheck);try{const d=o._snapshot,f=typeof s=="function"?s(d):s===void 0&&n?r(d):s;return d===void 0||!c(d,f)?(o._snapshot=f,!0):!1}finally{pi=l,n&&(o.flags&=~hn.RecursedCheck),Am(o)}}};return n?(o.flags=hn.Mutable|hn.Dirty,o.get=function(){const s=o.flags;if(s&hn.Dirty||s&hn.Pending&&LP(o.deps,o)){if(o._update()){const l=o.subs;l!==void 0&&rT(l)}}else s&hn.Pending&&(o.flags=s&~hn.Pending);return pi!==void 0&&nT(o,pi,um),o._snapshot}):o.set=function(s){if(o._update(s)){const l=o.subs;l!==void 0&&(F7(l),rT(l),jP())}},o}function B7(e){const t=()=>{const r=pi;pi=n,++um,n.depsTail=void 0,n.flags=hn.Watching|hn.RecursedCheck;try{return e()}finally{pi=r,n.flags&=~hn.RecursedCheck,Am(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:hn.Watching|hn.RecursedCheck,notify(){const r=this.flags;r&hn.Dirty||r&hn.Pending&&LP(this.deps,this)?t():this.flags=hn.Watching},stop(){this.flags=hn.None,this.depsTail=void 0,Am(this)}};return t(),n}var D_={exports:{}},L_={},$_={exports:{}},j_={};var iT;function V7(){if(iT)return j_;iT=1;var e=ma();function t(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function c(h,g){var v=g(),y=r({inst:{value:v,getSnapshot:g}}),b=y[0].inst,x=y[1];return s(function(){b.value=v,b.getSnapshot=g,d(b)&&x({inst:b})},[h,v,g]),o(function(){return d(b)&&x({inst:b}),h(function(){d(b)&&x({inst:b})})},[h]),l(v),v}function d(h){var g=h.getSnapshot;h=h.value;try{var v=g();return!n(h,v)}catch{return!0}}function f(h,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:c;return j_.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,j_}var sT;function UP(){return sT||(sT=1,$_.exports=V7()),$_.exports}var aT;function H7(){if(aT)return L_;aT=1;var e=ma(),t=UP();function n(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,c=e.useMemo,d=e.useDebugValue;return L_.useSyncExternalStoreWithSelector=function(f,p,h,g,v){var y=s(null);if(y.current===null){var b={hasValue:!1,value:null};y.current=b}else b=y.current;y=c(function(){function w(A){if(!E){if(E=!0,T=A,A=g(A),v!==void 0&&b.hasValue){var I=b.value;if(v(I,A))return R=I}return R=A}if(I=R,r(T,A))return I;var P=g(A);return v!==void 0&&v(I,P)?(T=A,I):(T=A,R=P)}var E=!1,T,R,O=h===void 0?null:h;return[function(){return w(p())},O===null?void 0:function(){return w(O())}]},[p,h,g,v]);var x=o(f,y[0],y[1]);return l(function(){b.hasValue=!0,b.value=x},[x]),d(x),x},L_}var lT;function q7(){return lT||(lT=1,D_.exports=H7()),D_.exports}var zP=q7();const Ice=pa(zP);function G7(e,t){return e===t}function _o(e,t,n=G7){const r=M.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:c}=e.subscribe(l);return c},[e]),o=M.useCallback(()=>e?.get(),[e]);return zP.useSyncExternalStoreWithSelector(r,o,o,t,n)}var K7={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function ul(e){const t=yo(),n=M.useContext(e.from?$7:Cg),r=e.from??n,o=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,s=M.useRef(void 0);return _o(o??K7,l=>{if((e.shouldThrow??!0)&&!l&&ls(),l===void 0)return;const c=e.select?e.select(l):l;if(e.structuralSharing??t.options.defaultStructuralSharing){const d=Xa(s.current,c);return s.current=d,d}return c})}function FP(e){return ul({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function BP(e){const{select:t,...n}=e;return ul({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function VP(e){return ul({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function HP(e){return ul({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Ag(e){const t=yo();return M.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Mce(e){const t=yo(),n=Ag(),r=M.useRef(null);return Ec(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}function qP(e){return ul({...e,select:t=>e.select?e.select(t.context):t.context})}var Ig=eP();const GP=pa(Ig);function Z7(e,t){const n=yo(),r=N8(t),{activeProps:o,inactiveProps:s,activeOptions:l,to:c,preload:d,preloadDelay:f,preloadIntentProximity:p,hashScrollIntoView:h,replace:g,startTransition:v,resetScroll:y,viewTransition:b,children:x,target:w,disabled:E,style:T,className:R,onClick:O,onBlur:A,onFocus:I,onMouseEnter:P,onMouseLeave:L,onTouchStart:H,ignoreBlocker:$,params:B,search:z,hash:K,state:oe,mask:q,reloadDocument:W,unsafeRelative:te,from:le,_fromLocation:Q,...k}=e,G=kP(),V=M.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),D=_o(n.stores.location,ne=>ne,(ne,ae)=>ne.href===ae.href),F=M.useMemo(()=>{const ne={_fromLocation:D,...V};return n.buildLocation(ne)},[n,D,V]),X=F.maskedLocation?F.maskedLocation.publicHref:F.publicHref,fe=F.maskedLocation?F.maskedLocation.external:F.external,pe=M.useMemo(()=>eU(X,fe,n.history,E),[E,fe,X,n.history]),xe=M.useMemo(()=>{if(pe?.external)return Rm(pe.href,n.protocolAllowlist)?void 0:pe.href;if(!tU(c)&&!(typeof c!="string"||c.indexOf(":")===-1))try{return new URL(c),Rm(c,n.protocolAllowlist)?void 0:c}catch{}},[c,pe,n.protocolAllowlist]),je=M.useMemo(()=>{if(xe)return!1;if(l?.exact){if(!Q8(D.pathname,F.pathname,n.basepath))return!1}else{const ne=Om(D.pathname,n.basepath),ae=Om(F.pathname,n.basepath);if(!(ne.startsWith(ae)&&(ne.length===ae.length||ne[ae.length]==="/")))return!1}return(l?.includeSearch??!0)&&!nl(D.search,F.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?G&&D.hash===F.hash:!0},[l?.exact,l?.explicitUndefined,l?.includeHash,l?.includeSearch,D,xe,G,F.hash,F.pathname,F.search,n.basepath]),Y=je?ta(o,{})??Y7:U_,re=je?U_:ta(s,{})??U_,ve=[R,Y.className,re.className].filter(Boolean).join(" "),se=(T||Y.style||re.style)&&{...T,...Y.style,...re.style},[Se,Oe]=M.useState(!1),tt=M.useRef(!1),rt=e.reloadDocument||xe?!1:d??n.options.defaultPreload,Be=f??n.options.defaultPreloadDelay??0,Qe=M.useCallback(()=>{n.preloadRoute({...V,_builtLocation:F}).catch(ne=>{console.warn(ne),console.warn(M7)})},[n,V,F]);P8(r,M.useCallback(ne=>{ne?.isIntersecting&&Qe()},[Qe]),J7,{disabled:!!E||rt!=="viewport"}),M.useEffect(()=>{tt.current||!E&&rt==="render"&&(Qe(),tt.current=!0)},[E,Qe,rt]);const Pe=ne=>{const ae=ne.currentTarget.getAttribute("target"),Re=w!==void 0?w:ae;if(!E&&!nU(ne)&&!ne.defaultPrevented&&(!Re||Re==="_self")&&ne.button===0){ne.preventDefault(),Ig.flushSync(()=>{Oe(!0)});const Ce=n.subscribe("onResolved",()=>{Ce(),Oe(!1)});n.navigate({...V,replace:g,resetScroll:y,hashScrollIntoView:h,startTransition:v,viewTransition:b,ignoreBlocker:$})}};if(xe)return{...k,ref:r,href:xe,...x&&{children:x},...w&&{target:w},...E&&{disabled:E},...T&&{style:T},...R&&{className:R},...O&&{onClick:O},...A&&{onBlur:A},...I&&{onFocus:I},...P&&{onMouseEnter:P},...L&&{onMouseLeave:L},...H&&{onTouchStart:H}};const Me=ne=>{if(E||rt!=="intent")return;if(!Be){Qe();return}const ae=ne.currentTarget;if(Ju.has(ae))return;const Re=setTimeout(()=>{Ju.delete(ae),Qe()},Be);Ju.set(ae,Re)},ze=ne=>{E||rt!=="intent"||Qe()},Z=ne=>{if(E||!rt||!Be)return;const ae=ne.currentTarget,Re=Ju.get(ae);Re&&(clearTimeout(Re),Ju.delete(ae))};return{...k,...Y,...re,href:pe?.href,ref:r,onClick:nc([O,Pe]),onBlur:nc([A,Z]),onFocus:nc([I,Me]),onMouseEnter:nc([P,Me]),onMouseLeave:nc([L,Z]),onTouchStart:nc([H,ze]),disabled:!!E,target:w,...se&&{style:se},...ve&&{className:ve},...E&&W7,...je&&Q7,...G&&Se&&X7}}var U_={},Y7={className:"active"},W7={role:"link","aria-disabled":!0},Q7={"data-status":"active","aria-current":"page"},X7={"data-transitioning":"transitioning"},Ju=new WeakMap,J7={rootMargin:"100px"},nc=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function eU(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function tU(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Rw=M.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:o,...s}=Z7(r,t),l=typeof r.children=="function"?r.children({isActive:s["data-status"]==="active"}):r.children;if(!n){const{disabled:c,...d}=s;return M.createElement("a",d,l)}return M.createElement(n,s,l)});function nU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var rU=class extends NP{constructor(e){super(e),this.useMatch=t=>ul({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>qP({...t,from:this.id}),this.useSearch=t=>HP({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>VP({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>BP({...t,from:this.id}),this.useLoaderData=t=>FP({...t,from:this.id}),this.useNavigate=()=>Ag({from:this.fullPath}),this.Link=ee.forwardRef((t,n)=>C.jsx(Rw,{ref:n,from:this.fullPath,...t}))}};function dt(e){return new rU(e)}var oU=class extends P7{constructor(e){super(e),this.useMatch=t=>ul({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>qP({...t,from:this.id}),this.useSearch=t=>HP({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>VP({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>BP({...t,from:this.id}),this.useLoaderData=t=>FP({...t,from:this.id}),this.useNavigate=()=>Ag({from:this.fullPath}),this.Link=ee.forwardRef((t,n)=>C.jsx(Rw,{ref:n,from:this.fullPath,...t}))}};function iU(e){return new oU(e)}function xt(e,t){let n,r,o,s;const l=()=>(n||(n=e().then(d=>{n=void 0,r=d[t??"default"]}).catch(d=>{if(o=d,L8(o)&&o instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const f=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(f)||(sessionStorage.setItem(f,"1"),s=!0)}})),n),c=function(f){if(s)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!r)if(L2)L2(l());else throw l();return M.createElement(r,f)};return c.preload=l,c}function sU(e){const t=yo(),n=`not-found-${_o(t.stores.location,r=>r.pathname)}-${_o(t.stores.status,r=>r)}`;return C.jsx(Ew,{getResetKey:()=>n,onCatch:(r,o)=>{if(Tr(r))e.onCatch?.(r,o);else throw r},errorComponent:({error:r})=>{if(Tr(r))return e.fallback?.(r);throw r},children:e.children})}function aU(){return C.jsx("p",{children:"Not Found"})}function _c(e){return C.jsx(C.Fragment,{children:e.children})}function KP(e,t,n){return t.options.notFoundComponent?C.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?C.jsx(e.options.defaultNotFoundComponent,{...n}):C.jsx(aU,{})}function lU(e){return null}function cU(){return lU(yo()),null}var ZP=M.memo(function({matchId:t}){const n=yo(),r=n.stores.matchStores.get(t);r||ls();const o=_o(n.stores.loadedAt,l=>l),s=_o(r,l=>l);return C.jsx(uU,{router:n,matchId:t,resetKey:o,matchState:M.useMemo(()=>{const l=s.routeId,c=n.routesById[l].parentRoute?.id;return{routeId:l,ssr:s.ssr,_displayPending:s._displayPending,parentRouteId:c}},[s._displayPending,s.routeId,s.ssr,n.routesById])})});function uU({router:e,matchId:t,resetKey:n,matchState:r}){const o=e.routesById[r.routeId],s=o.options.pendingComponent??e.options.defaultPendingComponent,l=s?C.jsx(s,{}):null,c=o.options.errorComponent??e.options.defaultErrorComponent,d=o.options.onCatch??e.options.defaultOnCatch,f=o.isRoot?o.options.notFoundComponent??e.options.notFoundRoute?.options.component:o.options.notFoundComponent,p=r.ssr===!1||r.ssr==="data-only",h=(!o.isRoot||o.options.wrapInSuspense||p)&&(o.options.wrapInSuspense??s??(o.options.errorComponent?.preload||p))?M.Suspense:_c,g=c?Ew:_c,v=f?sU:_c;return C.jsxs(o.isRoot?o.options.shellComponent??_c:_c,{children:[C.jsx(Cg.Provider,{value:t,children:C.jsx(h,{fallback:l,children:C.jsx(g,{getResetKey:()=>n,errorComponent:c||xw,onCatch:(y,b)=>{if(Tr(y))throw y.routeId??=r.routeId,y;d?.(y,b)},children:C.jsx(v,{fallback:y=>{if(y.routeId??=r.routeId,!f||y.routeId&&y.routeId!==r.routeId||!y.routeId&&!o.isRoot)throw y;return M.createElement(f,y)},children:p||r._displayPending?C.jsx(D7,{fallback:l,children:C.jsx(cT,{matchId:t})}):C.jsx(cT,{matchId:t})})})})}),r.parentRouteId===rl?C.jsxs(C.Fragment,{children:[C.jsx(dU,{resetKey:n}),e.options.scrollRestoration&&yP?C.jsx(cU,{}):null]}):null]})}function dU({resetKey:e}){const t=yo(),n=M.useRef(void 0);return Ec(()=>{const r=t.latestLocation.href;(n.current===void 0||n.current!==r)&&(t.emit({type:"onRendered",...Mc(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=r)},[t.latestLocation.state.__TSR_key,e,t]),null}var cT=M.memo(function({matchId:t}){const n=yo(),r=(p,h)=>n.getMatch(p.id)?._nonReactive[h]??p._nonReactive[h],o=n.stores.matchStores.get(t);o||ls();const s=_o(o,p=>p),l=s.routeId,c=n.routesById[l],d=M.useMemo(()=>{const p=(n.routesById[l].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:l,loaderDeps:s.loaderDeps,params:s._strictParams,search:s._strictSearch});return p?JSON.stringify(p):void 0},[l,s.loaderDeps,s._strictParams,s._strictSearch,n.options.defaultRemountDeps,n.routesById]),f=M.useMemo(()=>{const p=c.options.component??n.options.defaultComponent;return p?C.jsx(p,{},d):C.jsx(YP,{})},[d,c.options.component,n.options.defaultComponent]);if(s._displayPending)throw r(s,"displayPendingPromise");if(s._forcePending)throw r(s,"minPendingPromise");if(s.status==="pending"){const p=c.options.pendingMinMs??n.options.defaultPendingMinMs;if(p){const h=n.getMatch(s.id);if(h&&!h._nonReactive.minPendingPromise){const g=Fc();h._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),h._nonReactive.minPendingPromise=void 0},p)}}throw r(s,"loadPromise")}if(s.status==="notFound")return Tr(s.error)||ls(),KP(n,c,s.error);if(s.status==="redirected")throw Wr(s.error)||ls(),r(s,"loadPromise");if(s.status==="error")throw s.error;return f}),YP=M.memo(function(){const t=yo(),n=M.useContext(Cg);let r,o=!1,s;{const f=n?t.stores.matchStores.get(n):void 0;[r,o]=_o(f,p=>[p?.routeId,p?.globalNotFound??!1]),s=_o(t.stores.matchesId,p=>p[p.findIndex(h=>h===n)+1])}const l=r?t.routesById[r]:void 0,c=t.options.defaultPendingComponent?C.jsx(t.options.defaultPendingComponent,{}):null;if(o)return l||ls(),KP(t,l,void 0);if(!s)return null;const d=C.jsx(ZP,{matchId:s});return r===rl?C.jsx(M.Suspense,{fallback:c,children:d}):d});function fU(){const e=yo(),t=M.useRef({router:e,mounted:!1}),[n,r]=M.useState(!1),o=_o(e.stores.isLoading,h=>h),s=_o(e.stores.hasPending,h=>h),l=C_(o),c=o||n||s,d=C_(c),f=o||s,p=C_(f);return e.startTransition=h=>{r(!0),M.startTransition(()=>{h(),r(!1)})},M.useEffect(()=>{const h=e.history.subscribe(e.load),g=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ss(e.latestLocation.publicHref)!==ss(g.publicHref)&&e.commitLocation({...g,replace:!0}),()=>{h()}},[e,e.history]),Ec(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(g){console.error(g)}})()},[e]),Ec(()=>{l&&!o&&e.emit({type:"onLoad",...Mc(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,e,o]),Ec(()=>{p&&!f&&e.emit({type:"onBeforeRouteMount",...Mc(e.stores.location.get(),e.stores.resolvedLocation.get())})},[f,p,e]),Ec(()=>{if(d&&!c){const h=Mc(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...h}),$P(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())}),h.hrefChanged&&N7(e)}},[c,d,e]),null}function hU(){const e=yo(),t=e.routesById[rl].options.pendingComponent??e.options.defaultPendingComponent,n=t?C.jsx(t,{}):null,r=C.jsxs(typeof document<"u"&&e.ssr?_c:M.Suspense,{fallback:n,children:[C.jsx(fU,{}),C.jsx(pU,{})]});return e.options.InnerWrap?C.jsx(e.options.InnerWrap,{children:r}):r}function pU(){const e=yo(),t=_o(e.stores.firstId,o=>o),n=_o(e.stores.loadedAt,o=>o),r=t?C.jsx(ZP,{matchId:t}):null;return C.jsx(Cg.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:C.jsx(Ew,{getResetKey:()=>n,errorComponent:xw,onCatch:void 0,children:r})})}var mU=e=>({createMutableStore:oT,createReadonlyStore:oT,batch:$P}),gU=e=>new vU(e),vU=class extends x7{constructor(e){super(e,mU)}};function _U({router:e,children:t,...n}){wP(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=C.jsx(DP.Provider,{value:e,children:t});return e.options.Wrap?C.jsx(e.options.Wrap,{children:r}):r}function yU({router:e,...t}){return C.jsx(_U,{router:e,...t,children:C.jsx(hU,{})})}var bU={},uT={};const dm=Object.create(null),ed=e=>bU||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?dm:globalThis),ko=new Proxy(dm,{get(e,t){return ed()[t]??dm[t]},has(e,t){return t in ed()||t in dm},set(e,t,n){const r=ed(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=ed(!0);return delete n[t],!0},ownKeys(){const e=ed(!0);return Object.keys(e)}});function Fn(e,t){return typeof process<"u"&&uT?uT[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const td=1,rr=4,vi=8,ho=24,dT={eterm:rr,cons25:rr,console:rr,cygwin:rr,dtterm:rr,gnome:rr,hurd:rr,jfbterm:rr,konsole:rr,kterm:rr,mlterm:rr,mosh:ho,putty:rr,st:rr,"rxvt-unicode-24bit":ho,terminator:ho,"xterm-kitty":ho},wU=new Map(Object.entries({APPVEYOR:vi,BUILDKITE:vi,CIRCLECI:ho,DRONE:vi,GITEA_ACTIONS:ho,GITHUB_ACTIONS:ho,GITLAB_CI:vi,TRAVIS:vi})),SU=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function EU(){if(Fn("FORCE_COLOR")!==void 0)switch(Fn("FORCE_COLOR")){case"":case"1":case"true":return rr;case"2":return vi;case"3":return ho;default:return td}if(Fn("NODE_DISABLE_COLORS")!==void 0&&Fn("NODE_DISABLE_COLORS")!==""||Fn("NO_COLOR")!==void 0&&Fn("NO_COLOR")!==""||Fn("TERM")==="dumb")return td;if(Fn("TMUX"))return ho;if("TF_BUILD"in ko&&"AGENT_NAME"in ko)return rr;if("CI"in ko){for(const{0:e,1:t}of wU)if(e in ko)return t;return Fn("CI_NAME")==="codeship"?vi:td}if("TEAMCITY_VERSION"in ko)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Fn("TEAMCITY_VERSION"))!==null?rr:td;switch(Fn("TERM_PROGRAM")){case"iTerm.app":return!Fn("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Fn("TERM_PROGRAM_VERSION"))!==null?vi:ho;case"HyperTerm":case"MacTerm":return ho;case"Apple_Terminal":return vi}if(Fn("COLORTERM")==="truecolor"||Fn("COLORTERM")==="24bit")return ho;if(Fn("TERM")){if(/truecolor/.exec(Fn("TERM"))!==null)return ho;if(/^xterm-256/.exec(Fn("TERM"))!==null)return vi;const e=Fn("TERM").toLowerCase();if(dT[e])return dT[e];if(SU.some(t=>t.exec(e)!==null))return rr}return Fn("COLORTERM")?rr:td}const _i={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},kb=["debug","info","success","warn","error"];function xU(e,t){return kb.indexOf(t)>=kb.indexOf(e)}const RU={info:_i.fg.blue,success:_i.fg.green,warn:_i.fg.yellow,error:_i.fg.red,debug:_i.fg.magenta},OU=(e,t,n)=>{const r=new Date().toISOString();return n?`${_i.dim}${r}${_i.reset} ${RU[e]}${e.toUpperCase()}${_i.reset} ${_i.bright}[Better Auth]:${_i.reset} ${t}`:`${r} ${e.toUpperCase()} [Better Auth]: ${t}`},TU=e=>{const t="warn",n=EU()!==1,r=(o,s,l=[])=>{if(!xU(t,o))return;const c=OU(o,s,n);{o==="error"?console.error(c,...l):o==="warn"?console.warn(c,...l):console.log(c,...l);return}};return{...Object.fromEntries(kb.map(o=>[o,(...[s,...l])=>r(o,s,l)])),get level(){return t}}};TU();const CU=Object.freeze({status:"aborted"});function _e(e,t,n){function r(c,d){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:d,constr:l,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,d);const f=l.prototype,p=Object.keys(f);for(let h=0;h<p.length;h++){const g=p[h];g in c||(c[g]=f[g].bind(c))}}const o=n?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function l(c){var d;const f=n?.Parent?new s:this;r(f,c),(d=f._zod).deferred??(d.deferred=[]);for(const p of f._zod.deferred)p();return f}return Object.defineProperty(l,"init",{value:r}),Object.defineProperty(l,Symbol.hasInstance,{value:c=>n?.Parent&&c instanceof n.Parent?!0:c?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class Pc extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class WP extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const QP={};function ca(e){return QP}function XP(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Db(e,t){return typeof t=="bigint"?t.toString():t}function Mg(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function lf(e){return e==null}function Ow(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function AU(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let o=(r.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(r)){const d=r.match(/\d?e-(\d?)/);d?.[1]&&(o=Number.parseInt(d[1]))}const s=n>o?n:o,l=Number.parseInt(e.toFixed(s).replace(".","")),c=Number.parseInt(t.toFixed(s).replace(".",""));return l%c/10**s}const fT=Symbol("evaluating");function It(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==fT)return r===void 0&&(r=fT,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function dl(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ga(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function hT(e){return JSON.stringify(e)}function IU(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const JP="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const MU=Mg(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Bc(e){if(Gd(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Gd(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function eN(e){return Bc(e)?{...e}:Array.isArray(e)?[...e]:e}const PU=new Set(["string","number","symbol"]);function Vc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function va(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Fe(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function NU(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const kU={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function DU(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=ga(e._zod.def,{get shape(){const l={};for(const c in t){if(!(c in n.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(l[c]=n.shape[c])}return dl(this,"shape",l),l},checks:[]});return va(e,s)}function LU(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=ga(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const c in t){if(!(c in n.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete l[c]}return dl(this,"shape",l),l},checks:[]});return va(e,s)}function $U(e,t){if(!Bc(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const s=e._zod.def.shape;for(const l in t)if(Object.getOwnPropertyDescriptor(s,l)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=ga(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return dl(this,"shape",s),s}});return va(e,o)}function jU(e,t){if(!Bc(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=ga(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return dl(this,"shape",r),r}});return va(e,n)}function UU(e,t){const n=ga(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return dl(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return va(e,n)}function zU(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const l=ga(t._zod.def,{get shape(){const c=t._zod.def.shape,d={...c};if(n)for(const f in n){if(!(f in c))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(d[f]=e?new e({type:"optional",innerType:c[f]}):c[f])}else for(const f in c)d[f]=e?new e({type:"optional",innerType:c[f]}):c[f];return dl(this,"shape",d),d},checks:[]});return va(t,l)}function FU(e,t,n){const r=ga(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const l in n){if(!(l in s))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(s[l]=new e({type:"nonoptional",innerType:o[l]}))}else for(const l in o)s[l]=new e({type:"nonoptional",innerType:o[l]});return dl(this,"shape",s),s}});return va(t,r)}function xc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function el(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Hh(e){return typeof e=="string"?e:e?.message}function ua(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=Hh(e.inst?._zod.def?.error?.(e))??Hh(t?.error?.(e))??Hh(n.customError?.(e))??Hh(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function tN(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Tw(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Kd(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const nN=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Db,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Cw=_e("$ZodError",nN),Pg=_e("$ZodError",nN,{Parent:Error});function BU(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function VU(e,t=n=>n.message){const n={_errors:[]},r=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(l=>r({issues:l}));else if(s.code==="invalid_key")r({issues:s.issues});else if(s.code==="invalid_element")r({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let l=n,c=0;for(;c<s.path.length;){const d=s.path[c];c===s.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(t(s))):l[d]=l[d]||{_errors:[]},l=l[d],c++}}};return r(e),n}const Ng=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new Pc;if(l.issues.length){const c=new(o?.Err??e)(l.issues.map(d=>ua(d,s,ca())));throw JP(c,o?.callee),c}return l.value},HU=Ng(Pg),kg=e=>async(t,n,r,o)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise&&(l=await l),l.issues.length){const c=new(o?.Err??e)(l.issues.map(d=>ua(d,s,ca())));throw JP(c,o?.callee),c}return l.value},qU=kg(Pg),Dg=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Pc;return s.issues.length?{success:!1,error:new(e??Cw)(s.issues.map(l=>ua(l,o,ca())))}:{success:!0,data:s.value}},GU=Dg(Pg),Lg=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(l=>ua(l,o,ca())))}:{success:!0,data:s.value}},KU=Lg(Pg),ZU=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ng(e)(t,n,o)},YU=e=>(t,n,r)=>Ng(e)(t,n,r),WU=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return kg(e)(t,n,o)},QU=e=>async(t,n,r)=>kg(e)(t,n,r),XU=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Dg(e)(t,n,o)},JU=e=>(t,n,r)=>Dg(e)(t,n,r),ez=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Lg(e)(t,n,o)},tz=e=>async(t,n,r)=>Lg(e)(t,n,r),nz=/^[cC][^\s-]{8,}$/,rz=/^[0-9a-z]+$/,oz=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,iz=/^[0-9a-vA-V]{20}$/,sz=/^[A-Za-z0-9]{27}$/,az=/^[a-zA-Z0-9_-]{21}$/,lz=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,cz=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,pT=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,uz=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,dz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function fz(){return new RegExp(dz,"u")}const hz=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,pz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,mz=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,gz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,vz=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,rN=/^[A-Za-z0-9_-]*$/,_z=/^\+[1-9]\d{6,14}$/,oN="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",yz=new RegExp(`^${oN}$`);function iN(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function bz(e){return new RegExp(`^${iN(e)}$`)}function wz(e){const t=iN({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${oN}T(?:${r})$`)}const Sz=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Ez=/^-?\d+$/,sN=/^-?\d+(?:\.\d+)?$/,xz=/^(?:true|false)$/i,Rz=/^null$/i,Oz=/^undefined$/i,Tz=/^[^A-Z]*$/,Cz=/^[^a-z]*$/,_r=_e("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),aN={number:"number",bigint:"bigint",object:"date"},lN=_e("$ZodCheckLessThan",(e,t)=>{_r.init(e,t);const n=aN[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cN=_e("$ZodCheckGreaterThan",(e,t)=>{_r.init(e,t);const n=aN[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Az=_e("$ZodCheckMultipleOf",(e,t)=>{_r.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):AU(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Iz=_e("$ZodCheckNumberFormat",(e,t)=>{_r.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[o,s]=kU[t.format];e._zod.onattach.push(l=>{const c=l._zod.bag;c.format=t.format,c.minimum=o,c.maximum=s,n&&(c.pattern=Ez)}),e._zod.check=l=>{const c=l.value;if(n){if(!Number.isInteger(c)){l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?l.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}c<o&&l.issues.push({origin:"number",input:c,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),c>s&&l.issues.push({origin:"number",input:c,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),Mz=_e("$ZodCheckMaxSize",(e,t)=>{var n;_r.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!lf(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;o.size<=t.maximum||r.issues.push({origin:tN(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Pz=_e("$ZodCheckMinSize",(e,t)=>{var n;_r.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!lf(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;o.size>=t.minimum||r.issues.push({origin:tN(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Nz=_e("$ZodCheckMaxLength",(e,t)=>{var n;_r.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!lf(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const l=Tw(o);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),kz=_e("$ZodCheckMinLength",(e,t)=>{var n;_r.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!lf(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const l=Tw(o);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Dz=_e("$ZodCheckLengthEquals",(e,t)=>{var n;_r.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!lf(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,s=o.length;if(s===t.length)return;const l=Tw(o),c=s>t.length;r.issues.push({origin:l,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),$g=_e("$ZodCheckStringFormat",(e,t)=>{var n,r;_r.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Lz=_e("$ZodCheckRegex",(e,t)=>{$g.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),$z=_e("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Tz),$g.init(e,t)}),jz=_e("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Cz),$g.init(e,t)}),Uz=_e("$ZodCheckIncludes",(e,t)=>{_r.init(e,t);const n=Vc(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),zz=_e("$ZodCheckStartsWith",(e,t)=>{_r.init(e,t);const n=new RegExp(`^${Vc(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Fz=_e("$ZodCheckEndsWith",(e,t)=>{_r.init(e,t);const n=new RegExp(`.*${Vc(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Bz=_e("$ZodCheckMimeType",(e,t)=>{_r.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Vz=_e("$ZodCheckOverwrite",(e,t)=>{_r.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Hz{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
10
|
+
`).replace(G$,"")}function DO(i,a){return a=kO(a),kO(i)===a}function Yt(i,a,u,m,_,S){switch(u){case"children":typeof m=="string"?a==="body"||a==="textarea"&&m===""||xl(i,m):(typeof m=="number"||typeof m=="bigint")&&a!=="body"&&xl(i,""+m);break;case"className":Cf(i,"class",m);break;case"tabIndex":Cf(i,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Cf(i,u,m);break;case"style":DE(i,m,S);break;case"data":if(a!=="object"){Cf(i,"data",m);break}case"src":case"href":if(m===""&&(a!=="a"||u!=="href")){i.removeAttribute(u);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(u);break}m=If(""+m),i.setAttribute(u,m);break;case"action":case"formAction":if(typeof m=="function"){i.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof S=="function"&&(u==="formAction"?(a!=="input"&&Yt(i,a,"name",_.name,_,null),Yt(i,a,"formEncType",_.formEncType,_,null),Yt(i,a,"formMethod",_.formMethod,_,null),Yt(i,a,"formTarget",_.formTarget,_,null)):(Yt(i,a,"encType",_.encType,_,null),Yt(i,a,"method",_.method,_,null),Yt(i,a,"target",_.target,_,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(u);break}m=If(""+m),i.setAttribute(u,m);break;case"onClick":m!=null&&(i.onclick=Ni);break;case"onScroll":m!=null&&wt("scroll",i);break;case"onScrollEnd":m!=null&&wt("scrollend",i);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(_.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":i.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){i.removeAttribute("xlink:href");break}u=If(""+m),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(u,""+m):i.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":m===!0?i.setAttribute(u,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(u,m):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?i.setAttribute(u,m):i.removeAttribute(u);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?i.removeAttribute(u):i.setAttribute(u,m);break;case"popover":wt("beforetoggle",i),wt("toggle",i),Tf(i,"popover",m);break;case"xlinkActuate":Pi(i,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Pi(i,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Pi(i,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Pi(i,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Pi(i,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Pi(i,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Pi(i,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Pi(i,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Pi(i,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Tf(i,"is",m);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=bL.get(u)||u,Tf(i,u,m))}}function n_(i,a,u,m,_,S){switch(u){case"style":DE(i,m,S);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(_.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof m=="string"?xl(i,m):(typeof m=="number"||typeof m=="bigint")&&xl(i,""+m);break;case"onScroll":m!=null&&wt("scroll",i);break;case"onScrollEnd":m!=null&&wt("scrollend",i);break;case"onClick":m!=null&&(i.onclick=Ni);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!OE.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(_=u.endsWith("Capture"),a=u.slice(2,_?u.length-7:void 0),S=i[Ur]||null,S=S!=null?S[u]:null,typeof S=="function"&&i.removeEventListener(a,S,_),typeof m=="function")){typeof S!="function"&&S!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(a,m,_);break e}u in i?i[u]=m:m===!0?i.setAttribute(u,""):Tf(i,u,m)}}}function dr(i,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":wt("error",i),wt("load",i);var m=!1,_=!1,S;for(S in u)if(u.hasOwnProperty(S)){var N=u[S];if(N!=null)switch(S){case"src":m=!0;break;case"srcSet":_=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Yt(i,a,S,N,u,null)}}_&&Yt(i,a,"srcSet",u.srcSet,u,null),m&&Yt(i,a,"src",u.src,u,null);return;case"input":wt("invalid",i);var U=S=N=_=null,J=null,de=null;for(m in u)if(u.hasOwnProperty(m)){var ye=u[m];if(ye!=null)switch(m){case"name":_=ye;break;case"type":N=ye;break;case"checked":J=ye;break;case"defaultChecked":de=ye;break;case"value":S=ye;break;case"defaultValue":U=ye;break;case"children":case"dangerouslySetInnerHTML":if(ye!=null)throw Error(r(137,a));break;default:Yt(i,a,m,ye,u,null)}}ME(i,S,U,J,de,N,_,!1);return;case"select":wt("invalid",i),m=N=S=null;for(_ in u)if(u.hasOwnProperty(_)&&(U=u[_],U!=null))switch(_){case"value":S=U;break;case"defaultValue":N=U;break;case"multiple":m=U;default:Yt(i,a,_,U,u,null)}a=S,u=N,i.multiple=!!m,a!=null?El(i,!!m,a,!1):u!=null&&El(i,!!m,u,!0);return;case"textarea":wt("invalid",i),S=_=m=null;for(N in u)if(u.hasOwnProperty(N)&&(U=u[N],U!=null))switch(N){case"value":m=U;break;case"defaultValue":_=U;break;case"children":S=U;break;case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(91));break;default:Yt(i,a,N,U,u,null)}NE(i,m,_,S);return;case"option":for(J in u)u.hasOwnProperty(J)&&(m=u[J],m!=null)&&(J==="selected"?i.selected=m&&typeof m!="function"&&typeof m!="symbol":Yt(i,a,J,m,u,null));return;case"dialog":wt("beforetoggle",i),wt("toggle",i),wt("cancel",i),wt("close",i);break;case"iframe":case"object":wt("load",i);break;case"video":case"audio":for(m=0;m<Uu.length;m++)wt(Uu[m],i);break;case"image":wt("error",i),wt("load",i);break;case"details":wt("toggle",i);break;case"embed":case"source":case"link":wt("error",i),wt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in u)if(u.hasOwnProperty(de)&&(m=u[de],m!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Yt(i,a,de,m,u,null)}return;default:if(gv(a)){for(ye in u)u.hasOwnProperty(ye)&&(m=u[ye],m!==void 0&&n_(i,a,ye,m,u,void 0));return}}for(U in u)u.hasOwnProperty(U)&&(m=u[U],m!=null&&Yt(i,a,U,m,u,null))}function K$(i,a,u,m){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var _=null,S=null,N=null,U=null,J=null,de=null,ye=null;for(ge in u){var Ee=u[ge];if(u.hasOwnProperty(ge)&&Ee!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":J=Ee;default:m.hasOwnProperty(ge)||Yt(i,a,ge,null,m,Ee)}}for(var he in m){var ge=m[he];if(Ee=u[he],m.hasOwnProperty(he)&&(ge!=null||Ee!=null))switch(he){case"type":S=ge;break;case"name":_=ge;break;case"checked":de=ge;break;case"defaultChecked":ye=ge;break;case"value":N=ge;break;case"defaultValue":U=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(r(137,a));break;default:ge!==Ee&&Yt(i,a,he,ge,m,Ee)}}pv(i,N,U,J,de,ye,S,_);return;case"select":ge=N=U=he=null;for(S in u)if(J=u[S],u.hasOwnProperty(S)&&J!=null)switch(S){case"value":break;case"multiple":ge=J;default:m.hasOwnProperty(S)||Yt(i,a,S,null,m,J)}for(_ in m)if(S=m[_],J=u[_],m.hasOwnProperty(_)&&(S!=null||J!=null))switch(_){case"value":he=S;break;case"defaultValue":U=S;break;case"multiple":N=S;default:S!==J&&Yt(i,a,_,S,m,J)}a=U,u=N,m=ge,he!=null?El(i,!!u,he,!1):!!m!=!!u&&(a!=null?El(i,!!u,a,!0):El(i,!!u,u?[]:"",!1));return;case"textarea":ge=he=null;for(U in u)if(_=u[U],u.hasOwnProperty(U)&&_!=null&&!m.hasOwnProperty(U))switch(U){case"value":break;case"children":break;default:Yt(i,a,U,null,m,_)}for(N in m)if(_=m[N],S=u[N],m.hasOwnProperty(N)&&(_!=null||S!=null))switch(N){case"value":he=_;break;case"defaultValue":ge=_;break;case"children":break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(91));break;default:_!==S&&Yt(i,a,N,_,m,S)}PE(i,he,ge);return;case"option":for(var Ve in u)he=u[Ve],u.hasOwnProperty(Ve)&&he!=null&&!m.hasOwnProperty(Ve)&&(Ve==="selected"?i.selected=!1:Yt(i,a,Ve,null,m,he));for(J in m)he=m[J],ge=u[J],m.hasOwnProperty(J)&&he!==ge&&(he!=null||ge!=null)&&(J==="selected"?i.selected=he&&typeof he!="function"&&typeof he!="symbol":Yt(i,a,J,he,m,ge));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var nt in u)he=u[nt],u.hasOwnProperty(nt)&&he!=null&&!m.hasOwnProperty(nt)&&Yt(i,a,nt,null,m,he);for(de in m)if(he=m[de],ge=u[de],m.hasOwnProperty(de)&&he!==ge&&(he!=null||ge!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,a));break;default:Yt(i,a,de,he,m,ge)}return;default:if(gv(a)){for(var Wt in u)he=u[Wt],u.hasOwnProperty(Wt)&&he!==void 0&&!m.hasOwnProperty(Wt)&&n_(i,a,Wt,void 0,m,he);for(ye in m)he=m[ye],ge=u[ye],!m.hasOwnProperty(ye)||he===ge||he===void 0&&ge===void 0||n_(i,a,ye,he,m,ge);return}}for(var ce in u)he=u[ce],u.hasOwnProperty(ce)&&he!=null&&!m.hasOwnProperty(ce)&&Yt(i,a,ce,null,m,he);for(Ee in m)he=m[Ee],ge=u[Ee],!m.hasOwnProperty(Ee)||he===ge||he==null&&ge==null||Yt(i,a,Ee,he,m,ge)}function LO(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Z$(){if(typeof performance.getEntriesByType=="function"){for(var i=0,a=0,u=performance.getEntriesByType("resource"),m=0;m<u.length;m++){var _=u[m],S=_.transferSize,N=_.initiatorType,U=_.duration;if(S&&U&&LO(N)){for(N=0,U=_.responseEnd,m+=1;m<u.length;m++){var J=u[m],de=J.startTime;if(de>U)break;var ye=J.transferSize,Ee=J.initiatorType;ye&&LO(Ee)&&(J=J.responseEnd,N+=ye*(J<U?1:(U-de)/(J-de)))}if(--m,a+=8*(S+N)/(_.duration/1e3),i++,10<i)break}}if(0<i)return a/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var r_=null,o_=null;function Rh(i){return i.nodeType===9?i:i.ownerDocument}function $O(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jO(i,a){if(i===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&a==="foreignObject"?0:i}function i_(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var s_=null;function Y$(){var i=window.event;return i&&i.type==="popstate"?i===s_?!1:(s_=i,!0):(s_=null,!1)}var UO=typeof setTimeout=="function"?setTimeout:void 0,W$=typeof clearTimeout=="function"?clearTimeout:void 0,zO=typeof Promise=="function"?Promise:void 0,Q$=typeof queueMicrotask=="function"?queueMicrotask:typeof zO<"u"?function(i){return zO.resolve(null).then(i).catch(X$)}:UO;function X$(i){setTimeout(function(){throw i})}function ks(i){return i==="head"}function FO(i,a){var u=a,m=0;do{var _=u.nextSibling;if(i.removeChild(u),_&&_.nodeType===8)if(u=_.data,u==="/$"||u==="/&"){if(m===0){i.removeChild(_),tc(a);return}m--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")m++;else if(u==="html")Fu(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,Fu(u);for(var S=u.firstChild;S;){var N=S.nextSibling,U=S.nodeName;S[iu]||U==="SCRIPT"||U==="STYLE"||U==="LINK"&&S.rel.toLowerCase()==="stylesheet"||u.removeChild(S),S=N}}else u==="body"&&Fu(i.ownerDocument.body);u=_}while(u);tc(a)}function BO(i,a){var u=i;i=0;do{var m=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=m}while(u)}function a_(i){var a=i.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":a_(u),fv(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function J$(i,a,u,m){for(;i.nodeType===1;){var _=u;if(i.nodeName.toLowerCase()!==a.toLowerCase()){if(!m&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(m){if(!i[iu])switch(a){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(S=i.getAttribute("rel"),S==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(S!==_.rel||i.getAttribute("href")!==(_.href==null||_.href===""?null:_.href)||i.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin)||i.getAttribute("title")!==(_.title==null?null:_.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(S=i.getAttribute("src"),(S!==(_.src==null?null:_.src)||i.getAttribute("type")!==(_.type==null?null:_.type)||i.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin))&&S&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(a==="input"&&i.type==="hidden"){var S=_.name==null?null:""+_.name;if(_.type==="hidden"&&i.getAttribute("name")===S)return i}else return i;if(i=Io(i.nextSibling),i===null)break}return null}function ej(i,a,u){if(a==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Io(i.nextSibling),i===null))return null;return i}function VO(i,a){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!a||(i=Io(i.nextSibling),i===null))return null;return i}function l_(i){return i.data==="$?"||i.data==="$~"}function c_(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function tj(i,a){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=a;else if(i.data!=="$?"||u.readyState!=="loading")a();else{var m=function(){a(),u.removeEventListener("DOMContentLoaded",m)};u.addEventListener("DOMContentLoaded",m),i._reactRetry=m}}function Io(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return i}var u_=null;function HO(i){i=i.nextSibling;for(var a=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(a===0)return Io(i.nextSibling);a--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||a++}i=i.nextSibling}return null}function qO(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(a===0)return i;a--}else u!=="/$"&&u!=="/&"||a++}i=i.previousSibling}return null}function GO(i,a,u){switch(a=Rh(u),i){case"html":if(i=a.documentElement,!i)throw Error(r(452));return i;case"head":if(i=a.head,!i)throw Error(r(453));return i;case"body":if(i=a.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Fu(i){for(var a=i.attributes;a.length;)i.removeAttributeNode(a[0]);fv(i)}var Mo=new Map,KO=new Set;function Oh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Yi=W.d;W.d={f:nj,r:rj,D:oj,C:ij,L:sj,m:aj,X:cj,S:lj,M:uj};function nj(){var i=Yi.f(),a=vh();return i||a}function rj(i){var a=bl(i);a!==null&&a.tag===5&&a.type==="form"?uR(a):Yi.r(i)}var Xl=typeof document>"u"?null:document;function ZO(i,a,u){var m=Xl;if(m&&typeof a=="string"&&a){var _=Eo(a);_='link[rel="'+i+'"][href="'+_+'"]',typeof u=="string"&&(_+='[crossorigin="'+u+'"]'),KO.has(_)||(KO.add(_),i={rel:i,crossOrigin:u,href:a},m.querySelector(_)===null&&(a=m.createElement("link"),dr(a,"link",i),er(a),m.head.appendChild(a)))}}function oj(i){Yi.D(i),ZO("dns-prefetch",i,null)}function ij(i,a){Yi.C(i,a),ZO("preconnect",i,a)}function sj(i,a,u){Yi.L(i,a,u);var m=Xl;if(m&&i&&a){var _='link[rel="preload"][as="'+Eo(a)+'"]';a==="image"&&u&&u.imageSrcSet?(_+='[imagesrcset="'+Eo(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(_+='[imagesizes="'+Eo(u.imageSizes)+'"]')):_+='[href="'+Eo(i)+'"]';var S=_;switch(a){case"style":S=Jl(i);break;case"script":S=ec(i)}Mo.has(S)||(i=h({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:i,as:a},u),Mo.set(S,i),m.querySelector(_)!==null||a==="style"&&m.querySelector(Bu(S))||a==="script"&&m.querySelector(Vu(S))||(a=m.createElement("link"),dr(a,"link",i),er(a),m.head.appendChild(a)))}}function aj(i,a){Yi.m(i,a);var u=Xl;if(u&&i){var m=a&&typeof a.as=="string"?a.as:"script",_='link[rel="modulepreload"][as="'+Eo(m)+'"][href="'+Eo(i)+'"]',S=_;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=ec(i)}if(!Mo.has(S)&&(i=h({rel:"modulepreload",href:i},a),Mo.set(S,i),u.querySelector(_)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Vu(S)))return}m=u.createElement("link"),dr(m,"link",i),er(m),u.head.appendChild(m)}}}function lj(i,a,u){Yi.S(i,a,u);var m=Xl;if(m&&i){var _=wl(m).hoistableStyles,S=Jl(i);a=a||"default";var N=_.get(S);if(!N){var U={loading:0,preload:null};if(N=m.querySelector(Bu(S)))U.loading=5;else{i=h({rel:"stylesheet",href:i,"data-precedence":a},u),(u=Mo.get(S))&&d_(i,u);var J=N=m.createElement("link");er(J),dr(J,"link",i),J._p=new Promise(function(de,ye){J.onload=de,J.onerror=ye}),J.addEventListener("load",function(){U.loading|=1}),J.addEventListener("error",function(){U.loading|=2}),U.loading|=4,Th(N,a,m)}N={type:"stylesheet",instance:N,count:1,state:U},_.set(S,N)}}}function cj(i,a){Yi.X(i,a);var u=Xl;if(u&&i){var m=wl(u).hoistableScripts,_=ec(i),S=m.get(_);S||(S=u.querySelector(Vu(_)),S||(i=h({src:i,async:!0},a),(a=Mo.get(_))&&f_(i,a),S=u.createElement("script"),er(S),dr(S,"link",i),u.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},m.set(_,S))}}function uj(i,a){Yi.M(i,a);var u=Xl;if(u&&i){var m=wl(u).hoistableScripts,_=ec(i),S=m.get(_);S||(S=u.querySelector(Vu(_)),S||(i=h({src:i,async:!0,type:"module"},a),(a=Mo.get(_))&&f_(i,a),S=u.createElement("script"),er(S),dr(S,"link",i),u.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},m.set(_,S))}}function YO(i,a,u,m){var _=(_=X.current)?Oh(_):null;if(!_)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=Jl(u.href),u=wl(_).hoistableStyles,m=u.get(a),m||(m={type:"style",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=Jl(u.href);var S=wl(_).hoistableStyles,N=S.get(i);if(N||(_=_.ownerDocument||_,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(i,N),(S=_.querySelector(Bu(i)))&&!S._p&&(N.instance=S,N.state.loading=5),Mo.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Mo.set(i,u),S||dj(_,i,u,N.state))),a&&m===null)throw Error(r(528,""));return N}if(a&&m!==null)throw Error(r(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=ec(u),u=wl(_).hoistableScripts,m=u.get(a),m||(m={type:"script",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Jl(i){return'href="'+Eo(i)+'"'}function Bu(i){return'link[rel="stylesheet"]['+i+"]"}function WO(i){return h({},i,{"data-precedence":i.precedence,precedence:null})}function dj(i,a,u,m){i.querySelector('link[rel="preload"][as="style"]['+a+"]")?m.loading=1:(a=i.createElement("link"),m.preload=a,a.addEventListener("load",function(){return m.loading|=1}),a.addEventListener("error",function(){return m.loading|=2}),dr(a,"link",u),er(a),i.head.appendChild(a))}function ec(i){return'[src="'+Eo(i)+'"]'}function Vu(i){return"script[async]"+i}function QO(i,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var m=i.querySelector('style[data-href~="'+Eo(u.href)+'"]');if(m)return a.instance=m,er(m),m;var _=h({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return m=(i.ownerDocument||i).createElement("style"),er(m),dr(m,"style",_),Th(m,u.precedence,i),a.instance=m;case"stylesheet":_=Jl(u.href);var S=i.querySelector(Bu(_));if(S)return a.state.loading|=4,a.instance=S,er(S),S;m=WO(u),(_=Mo.get(_))&&d_(m,_),S=(i.ownerDocument||i).createElement("link"),er(S);var N=S;return N._p=new Promise(function(U,J){N.onload=U,N.onerror=J}),dr(S,"link",m),a.state.loading|=4,Th(S,u.precedence,i),a.instance=S;case"script":return S=ec(u.src),(_=i.querySelector(Vu(S)))?(a.instance=_,er(_),_):(m=u,(_=Mo.get(S))&&(m=h({},u),f_(m,_)),i=i.ownerDocument||i,_=i.createElement("script"),er(_),dr(_,"link",m),i.head.appendChild(_),a.instance=_);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(m=a.instance,a.state.loading|=4,Th(m,u.precedence,i));return a.instance}function Th(i,a,u){for(var m=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),_=m.length?m[m.length-1]:null,S=_,N=0;N<m.length;N++){var U=m[N];if(U.dataset.precedence===a)S=U;else if(S!==_)break}S?S.parentNode.insertBefore(i,S.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(i,a.firstChild))}function d_(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.title==null&&(i.title=a.title)}function f_(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.integrity==null&&(i.integrity=a.integrity)}var Ch=null;function XO(i,a,u){if(Ch===null){var m=new Map,_=Ch=new Map;_.set(u,m)}else _=Ch,m=_.get(u),m||(m=new Map,_.set(u,m));if(m.has(i))return m;for(m.set(i,null),u=u.getElementsByTagName(i),_=0;_<u.length;_++){var S=u[_];if(!(S[iu]||S[ar]||i==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var N=S.getAttribute(a)||"";N=i+N;var U=m.get(N);U?U.push(S):m.set(N,[S])}}return m}function JO(i,a,u){i=i.ownerDocument||i,i.head.insertBefore(u,a==="title"?i.querySelector("head > title"):null)}function fj(i,a,u){if(u===1||a.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(i=a.disabled,typeof a.precedence=="string"&&i==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function e2(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function hj(i,a,u,m){if(u.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var _=Jl(m.href),S=a.querySelector(Bu(_));if(S){a=S._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(i.count++,i=Ah.bind(i),a.then(i,i)),u.state.loading|=4,u.instance=S,er(S);return}S=a.ownerDocument||a,m=WO(m),(_=Mo.get(_))&&d_(m,_),S=S.createElement("link"),er(S);var N=S;N._p=new Promise(function(U,J){N.onload=U,N.onerror=J}),dr(S,"link",m),u.instance=S}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=Ah.bind(i),a.addEventListener("load",u),a.addEventListener("error",u))}}var h_=0;function pj(i,a){return i.stylesheets&&i.count===0&&Mh(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var m=setTimeout(function(){if(i.stylesheets&&Mh(i,i.stylesheets),i.unsuspend){var S=i.unsuspend;i.unsuspend=null,S()}},6e4+a);0<i.imgBytes&&h_===0&&(h_=62500*Z$());var _=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&Mh(i,i.stylesheets),i.unsuspend)){var S=i.unsuspend;i.unsuspend=null,S()}},(i.imgBytes>h_?50:800)+a);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(m),clearTimeout(_)}}:null}function Ah(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Mh(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Ih=null;function Mh(i,a){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Ih=new Map,a.forEach(mj,i),Ih=null,Ah.call(i))}function mj(i,a){if(!(a.state.loading&4)){var u=Ih.get(i);if(u)var m=u.get(null);else{u=new Map,Ih.set(i,u);for(var _=i.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<_.length;S++){var N=_[S];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(u.set(N.dataset.precedence,N),m=N)}m&&u.set(null,m)}_=a.instance,N=_.getAttribute("data-precedence"),S=u.get(N)||m,S===m&&u.set(null,_),u.set(N,_),this.count++,m=Ah.bind(this),_.addEventListener("load",m),_.addEventListener("error",m),S?S.parentNode.insertBefore(_,S.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(_,i.firstChild)),a.state.loading|=4}}var Hu={$$typeof:T,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function gj(i,a,u,m,_,S,N,U,J){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=wr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wr(0),this.hiddenUpdates=wr(null),this.identifierPrefix=m,this.onUncaughtError=_,this.onCaughtError=S,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=J,this.incompleteTransitions=new Map}function t2(i,a,u,m,_,S,N,U,J,de,ye,Ee){return i=new gj(i,a,u,N,J,de,ye,Ee,U),a=1,S===!0&&(a|=24),S=eo(3,null,null,a),i.current=S,S.stateNode=i,a=Gv(),a.refCount++,i.pooledCache=a,a.refCount++,S.memoizedState={element:m,isDehydrated:u,cache:a},Wv(S),i}function n2(i){return i?(i=Ml,i):Ml}function r2(i,a,u,m,_,S){_=n2(_),m.context===null?m.context=_:m.pendingContext=_,m=Es(a),m.payload={element:u},S=S===void 0?null:S,S!==null&&(m.callback=S),u=xs(i,m,a),u!==null&&(qr(u,i,a),Su(u,i,a))}function o2(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<a?u:a}}function p_(i,a){o2(i,a),(i=i.alternate)&&o2(i,a)}function i2(i){if(i.tag===13||i.tag===31){var a=Ra(i,67108864);a!==null&&qr(a,i,67108864),p_(i,67108864)}}function s2(i){if(i.tag===13||i.tag===31){var a=io();a=vl(a);var u=Ra(i,a);u!==null&&qr(u,i,a),p_(i,a)}}var Ph=!0;function vj(i,a,u,m){var _=q.T;q.T=null;var S=W.p;try{W.p=2,m_(i,a,u,m)}finally{W.p=S,q.T=_}}function _j(i,a,u,m){var _=q.T;q.T=null;var S=W.p;try{W.p=8,m_(i,a,u,m)}finally{W.p=S,q.T=_}}function m_(i,a,u,m){if(Ph){var _=g_(m);if(_===null)t_(i,a,m,Nh,u),l2(i,m);else if(bj(_,i,a,u,m))m.stopPropagation();else if(l2(i,m),a&4&&-1<yj.indexOf(i)){for(;_!==null;){var S=bl(_);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var N=Dt(S.pendingLanes);if(N!==0){var U=S;for(U.pendingLanes|=2,U.entangledLanes|=2;N;){var J=1<<31-Ln(N);U.entanglements[1]|=J,N&=~J}di(S),(zt&6)===0&&(mh=Z()+500,ju(0))}}break;case 31:case 13:U=Ra(S,2),U!==null&&qr(U,S,2),vh(),p_(S,2)}if(S=g_(m),S===null&&t_(i,a,m,Nh,u),S===_)break;_=S}_!==null&&m.stopPropagation()}else t_(i,a,m,null,u)}}function g_(i){return i=_v(i),v_(i)}var Nh=null;function v_(i){if(Nh=null,i=yl(i),i!==null){var a=s(i);if(a===null)i=null;else{var u=a.tag;if(u===13){if(i=l(a),i!==null)return i;i=null}else if(u===31){if(i=c(a),i!==null)return i;i=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Nh=i,null}function a2(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ne()){case ae:return 2;case Re:return 8;case Ce:case Ae:return 32;case ke:return 268435456;default:return 32}default:return 32}}var __=!1,Ds=null,Ls=null,$s=null,qu=new Map,Gu=new Map,js=[],yj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function l2(i,a){switch(i){case"focusin":case"focusout":Ds=null;break;case"dragenter":case"dragleave":Ls=null;break;case"mouseover":case"mouseout":$s=null;break;case"pointerover":case"pointerout":qu.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gu.delete(a.pointerId)}}function Ku(i,a,u,m,_,S){return i===null||i.nativeEvent!==S?(i={blockedOn:a,domEventName:u,eventSystemFlags:m,nativeEvent:S,targetContainers:[_]},a!==null&&(a=bl(a),a!==null&&i2(a)),i):(i.eventSystemFlags|=m,a=i.targetContainers,_!==null&&a.indexOf(_)===-1&&a.push(_),i)}function bj(i,a,u,m,_){switch(a){case"focusin":return Ds=Ku(Ds,i,a,u,m,_),!0;case"dragenter":return Ls=Ku(Ls,i,a,u,m,_),!0;case"mouseover":return $s=Ku($s,i,a,u,m,_),!0;case"pointerover":var S=_.pointerId;return qu.set(S,Ku(qu.get(S)||null,i,a,u,m,_)),!0;case"gotpointercapture":return S=_.pointerId,Gu.set(S,Ku(Gu.get(S)||null,i,a,u,m,_)),!0}return!1}function c2(i){var a=yl(i.target);if(a!==null){var u=s(a);if(u!==null){if(a=u.tag,a===13){if(a=l(u),a!==null){i.blockedOn=a,EE(i.priority,function(){s2(u)});return}}else if(a===31){if(a=c(u),a!==null){i.blockedOn=a,EE(i.priority,function(){s2(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function kh(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var u=g_(i.nativeEvent);if(u===null){u=i.nativeEvent;var m=new u.constructor(u.type,u);vv=m,u.target.dispatchEvent(m),vv=null}else return a=bl(u),a!==null&&i2(a),i.blockedOn=u,!1;a.shift()}return!0}function u2(i,a,u){kh(i)&&u.delete(a)}function wj(){__=!1,Ds!==null&&kh(Ds)&&(Ds=null),Ls!==null&&kh(Ls)&&(Ls=null),$s!==null&&kh($s)&&($s=null),qu.forEach(u2),Gu.forEach(u2)}function Dh(i,a){i.blockedOn===a&&(i.blockedOn=null,__||(__=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,wj)))}var Lh=null;function d2(i){Lh!==i&&(Lh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Lh===i&&(Lh=null);for(var a=0;a<i.length;a+=3){var u=i[a],m=i[a+1],_=i[a+2];if(typeof m!="function"){if(v_(m||u)===null)continue;break}var S=bl(u);S!==null&&(i.splice(a,3),a-=3,g0(S,{pending:!0,data:_,method:u.method,action:m},m,_))}}))}function tc(i){function a(J){return Dh(J,i)}Ds!==null&&Dh(Ds,i),Ls!==null&&Dh(Ls,i),$s!==null&&Dh($s,i),qu.forEach(a),Gu.forEach(a);for(var u=0;u<js.length;u++){var m=js[u];m.blockedOn===i&&(m.blockedOn=null)}for(;0<js.length&&(u=js[0],u.blockedOn===null);)c2(u),u.blockedOn===null&&js.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(m=0;m<u.length;m+=3){var _=u[m],S=u[m+1],N=_[Ur]||null;if(typeof S=="function")N||d2(u);else if(N){var U=null;if(S&&S.hasAttribute("formAction")){if(_=S,N=S[Ur]||null)U=N.formAction;else if(v_(_)!==null)continue}else U=N.action;typeof U=="function"?u[m+1]=U:(u.splice(m,3),m-=3),d2(u)}}}function f2(){function i(S){S.canIntercept&&S.info==="react-transition"&&S.intercept({handler:function(){return new Promise(function(N){return _=N})},focusReset:"manual",scroll:"manual"})}function a(){_!==null&&(_(),_=null),m||setTimeout(u,20)}function u(){if(!m&&!navigation.transition){var S=navigation.currentEntry;S&&S.url!=null&&navigation.navigate(S.url,{state:S.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,_=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){m=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),_!==null&&(_(),_=null)}}}function y_(i){this._internalRoot=i}$h.prototype.render=y_.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(r(409));var u=a.current,m=io();r2(u,m,i,a,null,null)},$h.prototype.unmount=y_.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;r2(i.current,2,null,i,null,null),vh(),a[_l]=null}};function $h(i){this._internalRoot=i}$h.prototype.unstable_scheduleHydration=function(i){if(i){var a=uv();i={blockedOn:null,target:i,priority:a};for(var u=0;u<js.length&&a!==0&&a<js[u].priority;u++);js.splice(u,0,i),u===0&&c2(i)}};var h2=t.version;if(h2!=="19.2.6")throw Error(r(527,h2,"19.2.6"));W.findDOMNode=function(i){var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=f(a),i=i!==null?p(i):null,i=i===null?null:i.stateNode,i};var Sj={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jh.isDisabled&&jh.supportsFiber)try{_t=jh.inject(Sj),Tt=jh}catch{}}return Yu.createRoot=function(i,a){if(!o(i))throw Error(r(299));var u=!1,m="",_=bR,S=wR,N=SR;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onUncaughtError!==void 0&&(_=a.onUncaughtError),a.onCaughtError!==void 0&&(S=a.onCaughtError),a.onRecoverableError!==void 0&&(N=a.onRecoverableError)),a=t2(i,1,!1,null,null,u,m,null,_,S,N,f2),i[_l]=a.current,e_(i),new y_(a)},Yu.hydrateRoot=function(i,a,u){if(!o(i))throw Error(r(299));var m=!1,_="",S=bR,N=wR,U=SR,J=null;return u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(_=u.identifierPrefix),u.onUncaughtError!==void 0&&(S=u.onUncaughtError),u.onCaughtError!==void 0&&(N=u.onCaughtError),u.onRecoverableError!==void 0&&(U=u.onRecoverableError),u.formState!==void 0&&(J=u.formState)),a=t2(i,1,!0,a,u??null,m,_,J,S,N,U,f2),a.context=n2(null),u=a.current,m=io(),m=vl(m),_=Es(m),_.callback=null,xs(u,_,m),u=m,a.current.lanes=u,Lt(a,u),di(a),i[_l]=a.current,e_(i),new $h(a)},Yu.version="19.2.6",Yu}var x2;function kj(){if(x2)return w_.exports;x2=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(),w_.exports=Nj(),w_.exports}var Dj=kj(),M=ma();const ee=pa(M),hw=xj({__proto__:null,default:ee},[M]);var O_={exports:{}},T_={};var R2;function Lj(){if(R2)return T_;R2=1;var e=ma().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return T_.c=function(t){return e.H.useMemoCache(t)},T_}var O2;function $j(){return O2||(O2=1,O_.exports=Lj()),O_.exports}var Ri=$j(),Jc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jj=class extends Jc{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},pw=new jj,Uj={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},zj=class{#e=Uj;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Qa=new zj;function Fj(e){setTimeout(e,0)}var Bj=typeof window>"u"||"Deno"in globalThis;function Zn(){}function Vj(e,t){return typeof e=="function"?e(t):e}function Sb(e){return typeof e=="number"&&e>=0&&e!==1/0}function tP(e,t){return Math.max(e+(t||0)-Date.now(),0)}function oa(e,t){return typeof e=="function"?e(t):e}function co(e,t){return typeof e=="function"?e(t):e}function T2(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==mw(l,t.options))return!1}else if(!zd(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||s&&!s(t))}function C2(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(sl(t.options.mutationKey)!==sl(s))return!1}else if(!zd(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function mw(e,t){return(t?.queryKeyHashFn||sl)(e)}function sl(e){return JSON.stringify(e,(t,n)=>Eb(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function zd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>zd(e[n],t[n])):!1}var Hj=Object.prototype.hasOwnProperty;function nP(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=A2(e)&&A2(t);if(!r&&!(Eb(e)&&Eb(t)))return t;const s=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),c=l.length,d=r?new Array(c):{};let f=0;for(let p=0;p<c;p++){const h=r?p:l[p],g=e[h],v=t[h];if(g===v){d[h]=g,(r?p<s:Hj.call(e,h))&&f++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){d[h]=v;continue}const y=nP(g,v,n+1);d[h]=y,y===g&&f++}return s===c&&f===s?e:d}function Em(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function A2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Eb(e){if(!I2(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!I2(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function I2(e){return Object.prototype.toString.call(e)==="[object Object]"}function qj(e){return new Promise(t=>{Qa.setTimeout(t,e)})}function xb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?nP(e,t):t}function Ece(e){return e}function Gj(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Kj(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var gw=Symbol();function rP(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===gw?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function vw(e,t){return typeof e=="function"?e(...t):!!e}function Zj(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??=t(),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var Fd=(()=>{let e=()=>Bj;return{isServer(){return e()},setIsServer(t){e=t}}})();function Rb(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Yj(e){let t;if(e.then(n=>(t=n,n),Zn)?.catch(Zn),t!==void 0)return{data:t}}function oP(e){return e}function Wj(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function Qj(e,t,n){const r=()=>{const o=e.promise?.then(t).catch(s=>n(s)?Promise.reject(new Error("redacted")):Promise.reject(s));return o?.catch(Zn),o};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status==="pending"&&{promise:r()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function Xj(e){return e.state.isPaused}function Jj(e){return e.state.status==="success"}function e8(e){return!0}function t8(e,t={}){const n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??Xj,r=e.getMutationCache().getAll().flatMap(d=>n(d)?[Wj(d)]:[]),o=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??Jj,s=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??e8,l=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??oP,c=e.getQueryCache().getAll().flatMap(d=>o(d)?[Qj(d,l,s)]:[]);return{mutations:r,queries:c}}function n8(e,t,n){if(typeof t!="object"||t===null)return;const r=e.getMutationCache(),o=e.getQueryCache(),s=e.getDefaultOptions().hydrate?.deserializeData??oP,l=t.mutations||[],c=t.queries||[];l.forEach(({state:d,...f})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...f},d)}),c.forEach(({queryKey:d,state:f,queryHash:p,meta:h,promise:g,dehydratedAt:v,queryType:y})=>{const b=g?Yj(g):void 0,x=f.data===void 0?b?.data:f.data,w=x===void 0?x:s(x);let E=o.get(p);const T=E?.state.status==="pending",R=E?.state.fetchStatus==="fetching";if(E){const O=b&&v!==void 0&&v>E.state.dataUpdatedAt;if(f.dataUpdatedAt>E.state.dataUpdatedAt||O){const{fetchStatus:A,...I}=f;E.setState({...I,data:w,...f.status==="pending"&&w!==void 0&&{status:"success",...!R&&{fetchStatus:"idle"}}})}}else E=o.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:d,queryHash:p,meta:h,_type:y},{...f,data:w,fetchStatus:"idle",status:f.status==="pending"&&w!==void 0?"success":f.status});g&&!b&&!T&&!R&&(v===void 0||v>E.state.dataUpdatedAt)&&E.fetch(void 0,{initialPromise:Promise.resolve(g).then(s)}).catch(Zn)})}var r8=Fj;function o8(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=r8;const s=c=>{t?e.push(c):o(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{s(()=>{c(...d)})},schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var Wn=o8(),i8=class extends Jc{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},xm=new i8;function s8(e){return Math.min(1e3*2**e,3e4)}function iP(e){return(e??"online")==="online"?xm.isOnline():!0}var Ob=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function sP(e){let t=!1,n=0,r;const o=Rb(),s=()=>o.status!=="pending",l=b=>{if(!s()){const x=new Ob(b);g(x),e.onCancel?.(x)}},c=()=>{t=!0},d=()=>{t=!1},f=()=>pw.isFocused()&&(e.networkMode==="always"||xm.isOnline())&&e.canRun(),p=()=>iP(e.networkMode)&&e.canRun(),h=b=>{s()||(r?.(),o.resolve(b))},g=b=>{s()||(r?.(),o.reject(b))},v=()=>new Promise(b=>{r=x=>{(s()||f())&&b(x)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),y=()=>{if(s())return;let b;const x=n===0?e.initialPromise:void 0;try{b=x??e.fn()}catch(w){b=Promise.reject(w)}Promise.resolve(b).then(h).catch(w=>{if(s())return;const E=e.retry??(Fd.isServer()?0:3),T=e.retryDelay??s8,R=typeof T=="function"?T(n,w):T,O=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,w);if(t||!O){g(w);return}n++,e.onFail?.(n,w),qj(R).then(()=>f()?void 0:v()).then(()=>{t?g(w):y()})})};return{promise:o,status:()=>o.status,cancel:l,continue:()=>(r?.(),o),cancelRetry:c,continueRetry:d,canStart:p,start:()=>(p()?y():v().then(y),o)}}var aP=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sb(this.gcTime)&&(this.#e=Qa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Fd.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Qa.clearTimeout(this.#e),this.#e=void 0)}};function a8(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},d=0;const f=async()=>{let p=!1;const h=y=>{Zj(y,()=>t.signal,()=>p=!0)},g=rP(t.options,t.fetchOptions),v=async(y,b,x)=>{if(p)return Promise.reject(t.signal.reason);if(b==null&&y.pages.length)return Promise.resolve(y);const E=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:b,direction:x?"backward":"forward",meta:t.options.meta};return h(A),A})(),T=await g(E),{maxPages:R}=t.options,O=x?Kj:Gj;return{pages:O(y.pages,T,R),pageParams:O(y.pageParams,b,R)}};if(o&&s.length){const y=o==="backward",b=y?lP:Tb,x={pages:s,pageParams:l},w=b(r,x);c=await v(x,w,y)}else{const y=e??s.length;do{const b=d===0?l[0]??r.initialPageParam:Tb(r,c);if(d>0&&b==null)break;c=await v(c,b),d++}while(d<y)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function Tb(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function lP(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function xce(e,t){return t?Tb(e,t)!=null:!1}function Rce(e,t){return!t||!e.getPreviousPageParam?!1:lP(e,t)!=null}var l8=class extends aP{#e;#t;#n;#r;#i;#o;#a;#s;constructor(e){super(),this.#s=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=P2(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#a,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=P2(this.options);t.data!==void 0&&(this.setState(M2(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const n=xb(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:"setState",state:e})}cancel(e){const t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(Zn).catch(Zn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>co(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gw||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>oa(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!tP(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#s||this.#u()?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#o?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const d=rP(this.options,t),p=(()=>{const h={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(h),h})();return this.#s=!1,this.options.persister?this.options.persister(d,p,this):d(p)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:o};return r(d),d})();(this.#e==="infinite"?a8(this.options.pages):this.options.behavior)?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#l({type:"fetch",meta:l.fetchOptions?.meta}),this.#o=sP({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:d=>{d instanceof Ob&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(d,f)=>{this.#l({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const d=await this.#o.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#r.config.onSuccess?.(d,this),this.#r.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Ob){if(d.silent)return this.#o.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#l({type:"error",error:d}),this.#r.config.onError?.(d,this),this.#r.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#l(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...cP(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...M2(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Wn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function cP(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:iP(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function M2(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function P2(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var uP=class extends Jc{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#a=Rb(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#o;#a;#s;#u;#l;#p;#d;#f;#c;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),N2(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Cb(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Cb(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof co(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Em(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&k2(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||co(this.options.enabled,this.#t)!==co(t.enabled,this.#t)||oa(this.options.staleTime,this.#t)!==oa(t.staleTime,this.#t))&&this.#g();const o=this.#v();r&&(this.#t!==n||co(this.options.enabled,this.#t)!==co(t.enabled,this.#t)||o!==this.#c)&&this.#_(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return u8(this,n)&&(this.#r=n,this.#o=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Zn)),t}#g(){this.#b();const e=oa(this.options.staleTime,this.#t);if(Fd.isServer()||this.#r.isStale||!Sb(e))return;const n=tP(this.#r.dataUpdatedAt,e)+1;this.#d=Qa.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#_(e){this.#w(),this.#c=e,!(Fd.isServer()||co(this.options.enabled,this.#t)===!1||!Sb(this.#c)||this.#c===0)&&(this.#f=Qa.setInterval(()=>{(this.options.refetchIntervalInBackground||pw.isFocused())&&this.#h()},this.#c))}#y(){this.#g(),this.#_(this.#v())}#b(){this.#d!==void 0&&(Qa.clearTimeout(this.#d),this.#d=void 0)}#w(){this.#f!==void 0&&(Qa.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#r,s=this.#i,l=this.#o,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},h=!1,g;if(t._optimisticResults){const P=this.hasListeners(),L=!P&&N2(e,t),H=P&&k2(e,n,t,r);(L||H)&&(p={...p,...cP(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:v,errorUpdatedAt:y,status:b}=p;g=p.data;let x=!1;if(t.placeholderData!==void 0&&g===void 0&&b==="pending"){let P;o?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(P=o.data,x=!0):P=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,P!==void 0&&(b="success",g=xb(o?.data,P,t),h=!0)}if(t.select&&g!==void 0&&!x)if(o&&g===s?.data&&t.select===this.#u)g=this.#l;else try{this.#u=t.select,g=t.select(g),g=xb(o?.data,g,t),this.#l=g,this.#s=null}catch(P){this.#s=P}this.#s&&(v=this.#s,g=this.#l,y=Date.now(),b="error");const w=p.fetchStatus==="fetching",E=b==="pending",T=b==="error",R=E&&w,O=g!==void 0,I={status:b,fetchStatus:p.fetchStatus,isPending:E,isSuccess:b==="success",isError:T,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:p.dataUpdatedAt,error:v,errorUpdatedAt:y,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:w,isRefetching:w&&!E,isLoadingError:T&&!O,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:T&&O,isStale:_w(e,t),refetch:this.refetch,promise:this.#a,isEnabled:co(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const P=I.data!==void 0,L=I.status==="error"&&!P,H=z=>{L?z.reject(I.error):P&&z.resolve(I.data)},$=()=>{const z=this.#a=I.promise=Rb();H(z)},B=this.#a;switch(B.status){case"pending":e.queryHash===n.queryHash&&H(B);break;case"fulfilled":(L||I.data!==B.value)&&$();break;case"rejected":(!L||I.error!==B.reason)&&$();break}}return I}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#o=this.options,this.#i.data!==void 0&&(this.#p=this.#t),Em(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#m.size)return!0;const s=new Set(o??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#r).some(l=>{const c=l;return this.#r[c]!==e[c]&&s.has(c)})};this.#E({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#E(e){Wn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function c8(e,t){return co(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&co(t.retryOnMount,e)===!1)}function N2(e,t){return c8(e,t)||e.state.data!==void 0&&Cb(e,t,t.refetchOnMount)}function Cb(e,t,n){if(co(t.enabled,e)!==!1&&oa(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&_w(e,t)}return!1}function k2(e,t,n,r){return(e!==t||co(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&_w(e,n)}function _w(e,t){return co(t.enabled,e)!==!1&&e.isStaleByTime(oa(t.staleTime,e))}function u8(e,t){return!Em(e.getCurrentResult(),t)}var d8=class extends aP{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||dP(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=sP({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,l)=>{this.#i({type:"failed",failureCount:s,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#r.canStart();try{if(r)t();else{this.#i({type:"pending",variables:e,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#i({type:"pending",context:l,variables:e,isPaused:o})}const s=await this.#r.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#i({type:"success",data:s}),s}catch(s){try{await this.#n.config.onError?.(s,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(s,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,s,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#i({type:"error",error:s}),s}finally{this.#n.runNext(this)}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Wn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function dP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var f8=class extends Jc{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new d8({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Uh(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Uh(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Uh(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Uh(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Wn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>C2(t,n))}findAll(e={}){return this.getAll().filter(t=>C2(e,t))}notify(e){Wn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Wn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Zn))))}};function Uh(e){return e.options.scope?.id}var h8=class extends Jc{#e;#t=void 0;#n;#r;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),Em(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&sl(n.mutationKey)!==sl(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#i(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#o()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#i(){const t=this.#n?.state??dP();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){Wn.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#r.onSuccess?.(t.data,n,r,o)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(t.data,null,n,r,o)}catch(s){Promise.reject(s)}}else if(t?.type==="error"){try{this.#r.onError?.(t.error,n,r,o)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(void 0,t.error,n,r,o)}catch(s){Promise.reject(s)}}}this.listeners.forEach(n=>{n(this.#t)})})}},p8=class extends Jc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??mw(r,t);let s=this.get(o);return s||(s=new l8({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Wn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>T2(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>T2(e,n)):t}notify(e){Wn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Wn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Wn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},m8=class{#e;#t;#n;#r;#i;#o;#a;#s;constructor(e={}){this.#e=e.queryCache||new p8,this.#t=e.mutationCache||new f8,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#a=pw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=xm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#a?.(),this.#a=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(oa(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(r.queryHash)?.state.data,l=Vj(t,s);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Wn.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Wn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Wn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Wn.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Zn).catch(Zn)}invalidateQueries(e,t={}){return Wn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Wn.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Zn)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Zn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(oa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zn).catch(Zn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zn).catch(Zn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return xm.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(sl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{zd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(sl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{zd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mw(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===gw&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},fP=M.createContext(void 0),yw=e=>{const t=M.useContext(fP);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},g8=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),C.jsx(fP.Provider,{value:e,children:t})),hP=M.createContext(!1),v8=()=>M.useContext(hP);hP.Provider;function _8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var y8=M.createContext(_8()),b8=()=>M.useContext(y8),w8=(e,t,n)=>{const r=n?.state.error&&typeof e.throwOnError=="function"?vw(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},S8=e=>{M.useEffect(()=>{e.clearReset()},[e])},E8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||vw(n,[e.error,r])),x8=(e,t)=>t.state.data===void 0,R8=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},O8=(e,t)=>e.isLoading&&e.isFetching&&!t,T8=(e,t)=>e?.suspense&&t.isPending,D2=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function pP(e,t,n){const r=v8(),o=b8(),s=yw(n),l=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(l);const c=s.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",R8(l),w8(l,o,c),S8(o);const d=!s.getQueryCache().get(l.queryHash),[f]=M.useState(()=>new t(s,l)),p=f.getOptimisticResult(l),h=!r&&e.subscribed!==!1;if(M.useSyncExternalStore(M.useCallback(g=>{const v=h?f.subscribe(Wn.batchCalls(g)):Zn;return f.updateResult(),v},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),M.useEffect(()=>{f.setOptions(l)},[l,f]),T8(l,p))throw D2(l,f,o);if(E8({result:p,errorResetBoundary:o,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw p.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(l,p),l.experimental_prefetchInRender&&!Fd.isServer()&&O8(p,r)&&(d?D2(l,f,o):c?.promise)?.catch(Zn).finally(()=>{f.updateResult()}),l.notifyOnChangeProps?p:f.trackResult(p)}function C8(e,t){return pP(e,uP,t)}function mP(e,t){return pP({...e,enabled:!0,suspense:!0,throwOnError:x8,placeholderData:void 0},uP,t)}function A8(e,t){const n=yw(t),[r]=M.useState(()=>new h8(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);const o=M.useSyncExternalStore(M.useCallback(l=>r.subscribe(Wn.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=M.useCallback((l,c)=>{r.mutate(l,c).catch(Zn)},[r]);if(o.error&&vw(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const gP={publicConfig:()=>["publicConfig"],session:()=>["session"],messages:e=>["messages",e],organizations:()=>["organizations"],members:e=>[e,"members"],invitations:e=>[e,"invitations"],organizationRoles:e=>[e,"organization-roles"],connections:e=>[e,"connections"],connectionsByBinding:(e,t)=>[e,"connections",`binding:${t}`],connection:(e,t)=>[e,"connection",t],connectionActivity:(e,t,n)=>["monitoring","activity",e,t,n],isMCPAuthenticated:(e,t)=>["is-mcp-authenticated",e,t],mcpTools:(e,t)=>["mcp","tools",e,t],mcpClientPrefix:()=>["mcp","client"],organizationSettings:e=>["organization-settings",e],activeOrganization:e=>["activeOrganization",e],orgAccessStatus:e=>["org-access-status",e],modelsList:e=>["models-list",e],homeNextActions:e=>["home-next-actions",e],boardLayout:e=>["board-layout",e],agentPrompts:(e,t)=>["agent-prompts",e,t],allowedModels:e=>[e,"allowed-models"],connectionCollections:e=>[e,"collections","discovery"],toolCall:(e,t,n)=>["tool-call",e,t,n],collectionItems:(e,t)=>["collection",e,t],collection:(e,t,n)=>[e,t,"collection",n],collectionItem:(e,t,n,r,o)=>[e,t,n,"collection",r,o],collectionList:(e,t,n,r,o)=>[e,t,n,"collection",r,"list",o],collectionListInfinite:(e,t,n,r,o)=>[e,t,n,"collection",r,"list-infinite",o],monitoringStats:()=>["monitoring","stats"],monitoringLogs:e=>["monitoring","logs",e],monitoringLogsInfinite:(e,t)=>["monitoring","logs-infinite",e,t],monitoringLogDetail:e=>["monitoring","log-detail",e],ensureTask:(e,t)=>["ensure-task",e,t],globalSearch:(e,t)=>["global-search",e,t],threadsInfinite:(e,t)=>["threads","list-infinite",e,t],threadMessages:(e,t)=>["threads","messages",e,t],threadModelLogs:(e,t)=>["threads","model-logs",e,t],threadSandbox:(e,t)=>["thread-sandbox","v2",e,t],threadOutputs:e=>["thread-outputs",e],virtualMcpTools:(e,t)=>["virtual-mcp",t,e??"default","tools"],toolDefinitionLookup:(e,t,n)=>["virtual-mcp",t,e??"default","tools","lookup",n],virtualMcpAgents:e=>["virtual-mcp",e,"agents"],virtualMcpPrompts:(e,t)=>["virtual-mcp",t,e??"default","prompts"],virtualMcpResources:(e,t)=>["virtual-mcp",t,e??"default","resources"],suggestionItems:(e,t,n)=>[...e,t,n],connectionPrompts:e=>["connection",e,"prompts"],connectionResources:e=>["connection",e,"resources"],user:e=>["user",e],storeReadmeUrl:e=>["store-readme-url",e],remoteMcpTools:e=>["remote-mcp-tools",e],tags:e=>[e,"tags"],memberTags:(e,t)=>[e,"member-tags",t],automationsAll:e=>["automations",e],automations:(e,t)=>["automations",e,t??null],automation:(e,t)=>["automation",e,t],automationRuns:(e,t,n)=>["automation-runs",e,t,...[...n??[]].sort()],projects:e=>["projects",e],project:(e,t)=>["project",e,t],virtualMcp:(e,t)=>["virtual-mcp",e,t],projectPluginConfigs:e=>["project-plugin-configs",e],projectPluginConfig:(e,t)=>["project-plugin-config",e,t],projectConnections:e=>["project-connections",e],projectConnectionDetails:(e,t)=>["project-connections",e,"details",t],aiProviders:e=>["ai-providers",e],aiProviderModels:(e,t)=>["ai-provider-models",e,t],aiProviderKeys:e=>["ai-provider-keys",e],secrets:e=>["secrets",e],fileConfigs:e=>["file-configs",e],filePickerObjects:(e,t)=>["file-picker-objects",e,t],aiProviderCredits:(e,t)=>["ai-provider-credits",e,t],orgSsoConfig:e=>["org-sso-config",e],orgSsoStatus:e=>["org-sso-status",e],storeDiscovery:(e,t)=>["store-discovery",e,t],organizationDomain:e=>["organization-domain",e],domainLookup:e=>["domain-lookup",e],brandContext:e=>["brand-context",e],defaultBrand:e=>["brand-context",e,"default"],decoProfile:e=>["deco-profile",e],decoSites:e=>["deco-sites",e],webSearchBlob:e=>["web-search-blob",e],decofile:e=>["decofile",e],liveMeta:e=>["live-meta",e],linkStatus:()=>["link-status"],currentLink:e=>["current-link",e],githubUserOrgs:(e,t)=>["github-user-orgs",e,t],githubOrgRepos:(e,t,n,r)=>["github-org-repos",e,t,n,r],vmEnv:(e,t,n)=>["vm-env",e,t,n]};function Tce(e,t){e.invalidateQueries({predicate:n=>{const r=n.queryKey;return(!t||r[1]===t)&&r[3]==="collection"&&r[4]==="VIRTUAL_MCP"}})}function vP(){const e=Ri.c(1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:gP.publicConfig(),queryFn:I8,staleTime:1/0},e[0]=t):t=e[0];const{data:n}=mP(t);return n}async function I8(){return(await(await fetch("/api/config")).json()).config}const Cce={light:"/logos/deco logo.svg",dark:"/logos/deco logo negative.svg"},_P=M.createContext(void 0);function M8(e){const t=Ri.c(3),{children:n}=e,r=vP();let o;return t[0]!==n||t[1]!==r.auth?(o=C.jsx(_P.Provider,{value:r.auth,children:n}),t[0]=n,t[1]=r.auth,t[2]=o):o=t[2],o}function Ace(){const e=M.useContext(_P);if(e===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return e}var L2=M.use,Ec=typeof window<"u"?M.useLayoutEffect:M.useEffect;function C_(e){const t=M.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function P8(e,t,n={},r={}){M.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([s])=>{t(s)},n);return o.observe(e.current),()=>{o.disconnect()}},[t,n,r.disabled,e])}function N8(e){const t=M.useRef(null);return M.useImperativeHandle(e,()=>t.current,[]),t}const yP=!1;function Bd(e){return e[e.length-1]}function k8(e){return typeof e=="function"}function ta(e,t){return k8(e)?e(t):e}const bP=Object.prototype.hasOwnProperty,$2=Object.prototype.propertyIsEnumerable;function wP(e){for(const t in e)if(bP.call(e,t))return!0;return!1}const D8=()=>Object.create(null),ja=(e,t)=>Xa(e,t,D8);function Xa(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;const o=t,s=z2(e)&&z2(o);if(!s&&!(zc(e)&&zc(o)))return o;const l=s?e:j2(e);if(!l)return o;const c=s?o:j2(o);if(!c)return o;const d=l.length,f=c.length,p=s?new Array(f):n();let h=0;for(let g=0;g<f;g++){const v=s?g:c[g],y=e[v],b=o[v];if(y===b){p[v]=y,(s?g<d:bP.call(e,v))&&h++;continue}if(y===null||b===null||typeof y!="object"||typeof b!="object"){p[v]=b;continue}const x=Xa(y,b,n,r+1);p[v]=x,x===y&&h++}return d===f&&h===d?e:p}function j2(e){const t=Object.getOwnPropertyNames(e);for(const o of t)if(!$2.call(e,o))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const r=t;for(const o of n){if(!$2.call(e,o))return!1;r.push(o)}return r}function zc(e){if(!U2(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!U2(n)||!n.hasOwnProperty("isPrototypeOf"))}function U2(e){return Object.prototype.toString.call(e)==="[object Object]"}function z2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nl(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r++)if(!nl(e[r],t[r],n))return!1;return!0}if(zc(e)&&zc(t)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const l in t)if((!r||t[l]!==void 0)&&!nl(e[l],t[l],n))return!1;return!0}let o=0;if(!r)o=Object.keys(e).length;else for(const l in e)e[l]!==void 0&&o++;let s=0;for(const l in t)if((!r||t[l]!==void 0)&&(s++,s>o||!nl(e[l],t[l],n)))return!1;return o===s}return!1}function Fc(e){let t,n;const r=new Promise((o,s)=>{t=o,n=s});return r.status="pending",r.resolve=o=>{r.status="resolved",r.value=o,t(o),e?.(o)},r.reject=o=>{r.status="rejected",n(o)},r}function L8(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Vd(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function $8(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function F2(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return $8(t)}const j8=["http:","https:","mailto:","tel:"];function Rm(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function Wu(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,r="",o;for(;(o=t.exec(e))!==null;)r+=F2(e.slice(n,o.index))+o[0],n=t.lastIndex;r=r+F2(n?e.slice(n):e);let s=!1;return r.startsWith("//")&&(s=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:s}}function U8(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function z8(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function ls(){throw new Error("Invariant failed")}function Hd(e){const t=new Map;let n,r;const o=s=>{s.next&&(s.prev?(s.prev.next=s.next,s.next.prev=s.prev,s.next=void 0,r&&(r.next=s,s.prev=r)):(s.next.prev=void 0,n=s.next,s.next=void 0,r&&(s.prev=r,r.next=s)),r=s)};return{get(s){const l=t.get(s);if(l)return o(l),l.value},set(s,l){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===r&&(r=void 0)}const c=t.get(s);if(c)c.value=l,o(c);else{const d={key:s,value:l,prev:r};r&&(r.next=d),r=d,n||(n=d),t.set(s,d)}},clear(){t.clear(),n=void 0,r=void 0}}}const na=4,SP=5;function F8(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function EP(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),o=r===-1?e.length:r,s=e.substring(t,o);if(!s||!s.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n;if(s==="$"){const c=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=c,n[4]=c,n[5]=c,n}if(s.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=o,n[4]=o,n[5]=o,n;const l=F8(s);if(l){const[c,d]=l,f=s.charCodeAt(c+1);if(f===45){if(c+2<s.length&&s.charCodeAt(c+2)===36){const p=c+3,h=d;if(p<h)return n[0]=3,n[1]=t+c,n[2]=t+p,n[3]=t+h,n[4]=t+d+1,n[5]=o,n}}else if(f===36){const p=c+1,h=c+2;return h===d?(n[0]=2,n[1]=t+c,n[2]=t+p,n[3]=t+h,n[4]=t+d+1,n[5]=e.length,n):(n[0]=1,n[1]=t+c,n[2]=t+h,n[3]=t+d,n[4]=t+d+1,n[5]=o,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n}function Og(e,t,n,r,o,s,l){l?.(n);let c=r;{const d=n.fullPath??n.from,f=d.length,p=n.options?.caseSensitive??e,h=n.options?.params?.parse??n.options?.parseParams;for(;c<f;){const v=EP(d,c,t);let y;const b=c,x=v[5];switch(c=x+1,s++,v[0]){case 0:{const w=d.substring(v[2],v[3]);if(p){const E=o.static?.get(w);if(E)y=E;else{o.static??=new Map;const T=Ja(n.fullPath??n.from);T.parent=o,T.depth=s,y=T,o.static.set(w,T)}}else{const E=w.toLowerCase(),T=o.staticInsensitive?.get(E);if(T)y=T;else{o.staticInsensitive??=new Map;const R=Ja(n.fullPath??n.from);R.parent=o,R.depth=s,y=R,o.staticInsensitive.set(E,R)}}break}case 1:{const w=d.substring(b,v[1]),E=d.substring(v[4],x),T=p&&!!(w||E),R=w?T?w:w.toLowerCase():void 0,O=E?T?E:E.toLowerCase():void 0,A=!h&&o.dynamic?.find(I=>!I.parse&&I.caseSensitive===T&&I.prefix===R&&I.suffix===O);if(A)y=A;else{const I=I_(1,n.fullPath??n.from,T,R,O);y=I,I.depth=s,I.parent=o,o.dynamic??=[],o.dynamic.push(I)}break}case 3:{const w=d.substring(b,v[1]),E=d.substring(v[4],x),T=p&&!!(w||E),R=w?T?w:w.toLowerCase():void 0,O=E?T?E:E.toLowerCase():void 0,A=!h&&o.optional?.find(I=>!I.parse&&I.caseSensitive===T&&I.prefix===R&&I.suffix===O);if(A)y=A;else{const I=I_(3,n.fullPath??n.from,T,R,O);y=I,I.parent=o,I.depth=s,o.optional??=[],o.optional.push(I)}break}case 2:{const w=d.substring(b,v[1]),E=d.substring(v[4],x),T=p&&!!(w||E),R=w?T?w:w.toLowerCase():void 0,O=E?T?E:E.toLowerCase():void 0,A=I_(2,n.fullPath??n.from,T,R,O);y=A,A.parent=o,A.depth=s,o.wildcard??=[],o.wildcard.push(A)}}o=y}if(h&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const v=Ja(n.fullPath??n.from);v.kind=SP,v.parent=o,s++,v.depth=s,o.pathless??=[],o.pathless.push(v),o=v}const g=(n.path||!n.children)&&!n.isRoot;if(g&&d.endsWith("/")){const v=Ja(n.fullPath??n.from);v.kind=na,v.parent=o,s++,v.depth=s,o.index=v,o=v}o.parse=h??null,g&&!o.route&&(o.route=n,o.fullPath=n.fullPath??n.from)}if(n.children)for(const d of n.children)Og(e,t,d,c,o,s,l)}function A_(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Qs(e){if(e.pathless)for(const t of e.pathless)Qs(t);if(e.static)for(const t of e.static.values())Qs(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Qs(t);if(e.dynamic?.length){e.dynamic.sort(A_);for(const t of e.dynamic)Qs(t)}if(e.optional?.length){e.optional.sort(A_);for(const t of e.optional)Qs(t)}if(e.wildcard?.length){e.wildcard.sort(A_);for(const t of e.wildcard)Qs(t)}}function Ja(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null}}function I_(e,t,n,r,o){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,caseSensitive:n,prefix:r,suffix:o}}function B8(e,t){const n=Ja("/"),r=new Uint16Array(6);for(const o of e)Og(!1,r,o,1,n,0);Qs(n),t.masksTree=n,t.flatCache=Hd(1e3)}function V8(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=bw(e,t.masksTree);return t.flatCache.set(e,r),r}function H8(e,t,n,r,o){e||="/",r||="/";const s=t?`case\0${e}`:e;let l=o.singleCache.get(s);return l||(l=Ja("/"),Og(t,new Uint16Array(6),{from:e},1,l,0),o.singleCache.set(s,l)),bw(r,l,n)}function q8(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,o=t.matchCache.get(r);if(o!==void 0)return o;e||="/";let s;try{s=bw(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)s=null;else throw l}return s&&(s.branch=RP(s.route)),t.matchCache.set(r,s),s}function G8(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function K8(e,t=!1,n){const r=Ja(e.fullPath),o=new Uint16Array(6),s={},l={};let c=0;return Og(t,o,e,1,r,0,d=>{if(n?.(d,c),d.id in s&&ls(),s[d.id]=d,c!==0&&d.path){const f=G8(d.fullPath);(!l[f]||d.fullPath.endsWith("/"))&&(l[f]=d)}c++}),Qs(r),{processedTree:{segmentTree:r,singleCache:Hd(1e3),matchCache:Hd(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:l}}function bw(e,t,n=!1){const r=e.split("/"),o=Y8(e,r,t,n);if(!o)return null;const[s]=xP(e,r,o);return{route:o.node.route,rawParams:s}}function xP(e,t,n){const r=Z8(n.node);let o=null;const s=Object.create(null);let l=n.extract?.part??0,c=n.extract?.node??0,d=n.extract?.path??0,f=n.extract?.segment??0;for(;c<r.length;l++,c++,d++,f++){const p=r[c];if(p.kind===na)break;if(p.kind===SP){f--,l--,d--;continue}const h=t[l],g=d;if(h&&(d+=h.length),p.kind===1){o??=n.node.fullPath.split("/");const v=o[f],y=p.prefix?.length??0;if(v.charCodeAt(y)===123){const b=p.suffix?.length??0,x=v.substring(y+2,v.length-b-1),w=h.substring(y,h.length-b);s[x]=decodeURIComponent(w)}else{const b=v.substring(1);s[b]=decodeURIComponent(h)}}else if(p.kind===3){if(n.skipped&1<<c){l--,d=g-1;continue}o??=n.node.fullPath.split("/");const v=o[f],y=p.prefix?.length??0,b=p.suffix?.length??0,x=v.substring(y+3,v.length-b-1),w=p.suffix||p.prefix?h.substring(y,h.length-b):h;w&&(s[x]=decodeURIComponent(w))}else if(p.kind===2){const v=p,y=e.substring(g+(v.prefix?.length??0),e.length-(v.suffix?.length??0)),b=decodeURIComponent(y);s["*"]=b,s._splat=b;break}}return n.rawParams&&Object.assign(s,n.rawParams),[s,{part:l,node:c,path:d,segment:f}]}function RP(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Z8(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Y8(e,t,n,r){if(e==="/"&&n.index)return{node:n.index,skipped:0};const o=!Bd(t),s=o&&e!=="/",l=t.length-(o?1:0),c=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let d=null,f=null;for(;c.length;){const p=c.pop(),{node:h,index:g,skipped:v,depth:y,statics:b,dynamics:x,optionals:w}=p;let{extract:E,rawParams:T}=p;if(h.kind===2&&h.route&&!Fh(f,p))continue;if(h.parse){if(!B2(e,t,p))continue;T=p.rawParams,E=p.extract}r&&h.route&&h.kind!==na&&Fh(d,p)&&(d=p);const R=g===l;if(R&&(h.route&&(!s||h.kind===na||h.kind===2)&&Fh(f,p)&&(f=p),!h.optional&&!h.wildcard&&!h.index&&!h.pathless))continue;const O=R?void 0:t[g];let A;if(R&&h.index){const I={node:h.index,index:g,skipped:v,depth:y+1,statics:b,dynamics:x,optionals:w,extract:E,rawParams:T};let P=!0;if(h.index.parse&&(B2(e,t,I)||(P=!1)),P){if(!x&&!w&&!v&&W8(b,l))return I;Fh(f,I)&&(f=I)}}if(h.wildcard)for(let I=h.wildcard.length-1;I>=0;I--){const P=h.wildcard[I],{prefix:L,suffix:H}=P;if(!(L&&(R||!(P.caseSensitive?O:A??=O.toLowerCase()).startsWith(L)))){if(H){if(R)continue;const $=t.slice(g).join("/").slice(-H.length);if((P.caseSensitive?$:$.toLowerCase())!==H)continue}c.push({node:P,index:l,skipped:v,depth:y+1,statics:b,dynamics:x,optionals:w,extract:E,rawParams:T})}}if(h.optional){const I=v|1<<y,P=y+1;for(let L=h.optional.length-1;L>=0;L--){const H=h.optional[L];c.push({node:H,index:g,skipped:I,depth:P,statics:b,dynamics:x,optionals:w,extract:E,rawParams:T})}if(!R)for(let L=h.optional.length-1;L>=0;L--){const H=h.optional[L],{prefix:$,suffix:B}=H;if($||B){const z=H.caseSensitive?O:A??=O.toLowerCase();if($&&!z.startsWith($)||B&&!z.endsWith(B))continue}c.push({node:H,index:g+1,skipped:v,depth:P,statics:b,dynamics:x,optionals:w+zh(l,g),extract:E,rawParams:T})}}if(!R&&h.dynamic&&O)for(let I=h.dynamic.length-1;I>=0;I--){const P=h.dynamic[I],{prefix:L,suffix:H}=P;if(L||H){const $=P.caseSensitive?O:A??=O.toLowerCase();if(L&&!$.startsWith(L)||H&&!$.endsWith(H))continue}c.push({node:P,index:g+1,skipped:v,depth:y+1,statics:b,dynamics:x+zh(l,g),optionals:w,extract:E,rawParams:T})}if(!R&&h.staticInsensitive){const I=h.staticInsensitive.get(A??=O.toLowerCase());I&&c.push({node:I,index:g+1,skipped:v,depth:y+1,statics:b+zh(l,g),dynamics:x,optionals:w,extract:E,rawParams:T})}if(!R&&h.static){const I=h.static.get(O);I&&c.push({node:I,index:g+1,skipped:v,depth:y+1,statics:b+zh(l,g),dynamics:x,optionals:w,extract:E,rawParams:T})}if(h.pathless){const I=y+1;for(let P=h.pathless.length-1;P>=0;P--){const L=h.pathless[P];c.push({node:L,index:g,skipped:v,depth:I,statics:b,dynamics:x,optionals:w,extract:E,rawParams:T})}}}if(f)return f;if(r&&d){let p=d.index;for(let g=0;g<d.index;g++)p+=t[g].length;const h=p===e.length?"/":e.slice(p);return d.rawParams??=Object.create(null),d.rawParams["**"]=decodeURIComponent(h),d}return null}function zh(e,t){return 2**(e-t-1)}function W8(e,t){return e===2**(t-1)-1}function B2(e,t,n){let r,o;try{[r,o]=xP(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=o,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Fh(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===na)>(e.node.kind===na)||t.node.kind===na==(e.node.kind===na)&&t.depth>e.depth))):!0}function am(e){return ww(e.filter(t=>t!==void 0).join("/"))}function ww(e){return e.replace(/\/{2,}/g,"/")}function OP(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ss(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function TP(e){return ss(OP(e))}function Om(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Q8(e,t,n){return Om(e,n)===Om(t,n)}function X8({base:e,to:t,trailingSlash:n="never",cache:r}){const o=t.startsWith("/"),s=!o&&t===".";let l;if(r){l=o?t:s?e:e+"\0"+t;const f=r.get(l);if(f)return f}let c;if(s)c=e.split("/");else if(o)c=t.split("/");else{for(c=e.split("/");c.length>1&&Bd(c)==="";)c.pop();const f=t.split("/");for(let p=0,h=f.length;p<h;p++){const g=f[p];g===""?p?p===h-1&&c.push(g):c=[g]:g===".."?c.pop():g==="."||c.push(g)}}c.length>1&&(Bd(c)===""?n==="never"&&c.pop():n==="always"&&c.push(""));const d=ww(c.join("/"))||"/";return l&&r&&r.set(l,d),d}function J8(e){const t=new Map(e.map(o=>[encodeURIComponent(o),o])),n=Array.from(t.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return o=>o.replace(r,s=>t.get(s)??s)}function M_(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(o=>H2(o,n)).join("/"):H2(r,n)}function V2({path:e,params:t,decoder:n,...r}){let o=!1;const s=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:o};if(!e.includes("$"))return{interpolatedPath:e,usedParams:s,isMissingParams:o};const l=e.length;let c=0,d,f="";for(;c<l;){const p=c;d=EP(e,p,d);const h=d[5];if(c=h+1,p===h)continue;const g=d[0];if(g===0){f+="/"+e.substring(p,h);continue}if(g===2){const v=t._splat;s._splat=v,s["*"]=v;const y=e.substring(p,d[1]),b=e.substring(d[4],h);if(!v){o=!0,(y||b)&&(f+="/"+y+b);continue}const x=M_("_splat",t,n);f+="/"+y+x+b;continue}if(g===1){const v=e.substring(d[2],d[3]);!o&&!(v in t)&&(o=!0),s[v]=t[v];const y=e.substring(p,d[1]),b=e.substring(d[4],h),x=M_(v,t,n)??"undefined";f+="/"+y+x+b;continue}if(g===3){const v=e.substring(d[2],d[3]),y=t[v];if(y==null)continue;s[v]=y;const b=e.substring(p,d[1]),x=e.substring(d[4],h),w=M_(v,t,n)??"";f+="/"+b+w+x;continue}}return e.endsWith("/")&&(f+="/"),{usedParams:s,interpolatedPath:f||"/",isMissingParams:o}}function H2(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function Tr(e){return e?.isNotFound===!0}function e7(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}const t7="tsr-scroll-restoration-v1_3";function n7(){const e=e7();if(!e)return null;let t={};try{const r=JSON.parse(e.getItem("tsr-scroll-restoration-v1_3")||"{}");zc(r)&&(t=r)}catch{}return{get state(){return t},set:r=>{t=ta(r,t)||t},persist:()=>{try{e.setItem(t7,JSON.stringify(t))}catch{}}}}const q2=n7(),r7=e=>e.state.__TSR_key||e.href;function o7(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let Bh=!1;const Qu="window",G2="data-scroll-restoration-id";function i7(e,t){if(!q2)return;const n=q2;if((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!n)return;e.isScrollRestorationSetup=!0,Bh=!1;const r=e.options.getScrollRestorationKey||r7,o=new Map;window.history.scrollRestoration="manual";const s=c=>{if(!(Bh||!e.isScrollRestoring))if(c.target===document||c.target===window)o.set(Qu,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const d=c.target;o.set(d,{scrollX:d.scrollLeft||0,scrollY:d.scrollTop||0})}},l=c=>{if(!e.isScrollRestoring||!c||o.size===0||!n)return;const d=n.state[c]||={};for(const[f,p]of o){let h;if(f===Qu)h=Qu;else if(f.isConnected){const g=f.getAttribute(G2);h=g?`[${G2}="${g}"]`:o7(f)}h&&(d[h]=p)}};document.addEventListener("scroll",s,!0),e.subscribe("onBeforeLoad",c=>{l(c.fromLocation?r(c.fromLocation):void 0),o.clear()}),window.addEventListener("pagehide",()=>{l(r(e.stores.resolvedLocation.get()??e.stores.location.get())),n.persist()}),e.subscribe("onRendered",c=>{const d=r(c.toLocation),f=e.options.scrollRestorationBehavior,p=e.options.scrollToTopSelectors;if(o.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))){Bh=!0;try{const h=e.isScrollRestoring?n.state[d]:void 0;let g=!1;if(h)for(const v in h){const y=h[v];if(!zc(y))continue;const{scrollX:b,scrollY:x}=y;if(!(!Number.isFinite(b)||!Number.isFinite(x))){if(v===Qu)window.scrollTo({top:x,left:b,behavior:f}),g=!0;else if(v){let w;try{w=document.querySelector(v)}catch{continue}w&&(w.scrollLeft=b,w.scrollTop=x,g=!0)}}}if(!g){const v=e.history.location.hash.slice(1);if(v){const y=window.history.state?.__hashScrollIntoViewOptions??!0;if(y){const b=document.getElementById(v);b&&b.scrollIntoView(y)}}else{const y={top:0,left:0,behavior:f};if(window.scrollTo(y),p)for(const b of p){if(b===Qu)continue;const x=typeof b=="function"?b():document.querySelector(b);x&&x.scrollTo(y)}}}}finally{Bh=!1}e.isScrollRestoring&&n.set(h=>(h[d]||={},h))}})}function s7(e,t=String){const n=new URLSearchParams;for(const r in e){const o=e[r];o!==void 0&&n.set(r,t(o))}return n.toString()}function P_(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function a7(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[r,o]of t.entries()){const s=n[r];s==null?n[r]=P_(o):Array.isArray(s)?s.push(P_(o)):n[r]=[s,P_(o)]}return n}const l7=u7(JSON.parse),c7=d7(JSON.stringify,JSON.parse);function u7(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=a7(t);for(const r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch{}}return n}}function d7(e,t){const n=typeof t=="function";function r(o){if(typeof o=="object"&&o!==null)try{return e(o)}catch{}else if(n&&typeof o=="string")try{return t(o),e(o)}catch{}return o}return o=>{const s=s7(o,r);return s?`?${s}`:""}}const rl="__root__";function Ic(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Wr(e){return e instanceof Response&&!!e.options}function f7(e){return{input:({url:t})=>{for(const n of e)t=Ab(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=CP(e[n],t);return t}}}function h7(e){const t=TP(e.basepath),n=`/${t}`,r=`${n}/`,o=e.caseSensitive?n:n.toLowerCase(),s=e.caseSensitive?r:r.toLowerCase();return{input:({url:l})=>{const c=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return c===o?l.pathname="/":c.startsWith(s)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=am(["/",t,l.pathname]),l)}}function Ab(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function CP(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function p7(e,t){const{createMutableStore:n,createReadonlyStore:r,batch:o,init:s}=t,l=new Map,c=new Map,d=new Map,f=n(e.status),p=n(e.loadedAt),h=n(e.isLoading),g=n(e.isTransitioning),v=n(e.location),y=n(e.resolvedLocation),b=n(e.statusCode),x=n(e.redirect),w=n([]),E=n([]),T=n([]),R=r(()=>N_(l,w.get())),O=r(()=>N_(c,E.get())),A=r(()=>N_(d,T.get())),I=r(()=>w.get()[0]),P=r(()=>w.get().some(W=>l.get(W)?.get().status==="pending")),L=r(()=>({locationHref:v.get().href,resolvedLocationHref:y.get()?.href,status:f.get()})),H=r(()=>({status:f.get(),loadedAt:p.get(),isLoading:h.get(),isTransitioning:g.get(),matches:R.get(),location:v.get(),resolvedLocation:y.get(),statusCode:b.get(),redirect:x.get()})),$=Hd(64);function B(W){let te=$.get(W);return te||(te=r(()=>{const le=w.get();for(const Q of le){const k=l.get(Q);if(k&&k.routeId===W)return k.get()}}),$.set(W,te)),te}const z={status:f,loadedAt:p,isLoading:h,isTransitioning:g,location:v,resolvedLocation:y,statusCode:b,redirect:x,matchesId:w,pendingIds:E,cachedIds:T,matches:R,pendingMatches:O,cachedMatches:A,firstId:I,hasPending:P,matchRouteDeps:L,matchStores:l,pendingMatchStores:c,cachedMatchStores:d,__store:H,getRouteMatchStore:B,setMatches:K,setPending:oe,setCached:q};K(e.matches),s?.(z);function K(W){k_(W,l,w,n,o)}function oe(W){k_(W,c,E,n,o)}function q(W){k_(W,d,T,n,o)}return z}function N_(e,t){const n=[];for(const r of t){const o=e.get(r);o&&n.push(o.get())}return n}function k_(e,t,n,r,o){const s=e.map(c=>c.id),l=new Set(s);o(()=>{for(const c of t.keys())l.has(c)||t.delete(c);for(const c of e){const d=t.get(c.id);if(!d){const f=r(c);f.routeId=c.routeId,t.set(c.id,f);continue}d.routeId=c.routeId,d.get()!==c&&d.set(c)}z8(n.get(),s)||n.set(s)})}const Ib=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},m7=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Tg=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),ol=(e,t,n=!0)=>{const r={...e.router.options.context??{}},o=n?t:t-1;for(let s=0;s<=o;s++){const l=e.matches[s];if(!l)continue;const c=e.router.getMatch(l.id);c&&Object.assign(r,c.__routeContext,c.__beforeLoadContext)}return r},K2=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,r=e.matches.findIndex(l=>l.routeId===e.router.routeTree.id),o=r>=0?r:0;let s=n?e.matches.findIndex(l=>l.routeId===n):e.firstBadMatchIndex??e.matches.length-1;s<0&&(s=o);for(let l=s;l>=0;l--){const c=e.matches[l];if(e.router.looseRoutesById[c.routeId].options.notFoundComponent)return l}return n?s:o},ra=(e,t,n)=>{if(!(!Wr(n)&&!Tr(n)))throw Wr(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Wr(n)?"redirected":Tr(n)?"notFound":r.status==="pending"?"success":r.status,context:ol(e,t.index),isFetching:!1,error:n})),Tr(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Wr(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},AP=(e,t)=>{const n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Z2=(e,t,n)=>{const r=ol(e,n);e.updateMatch(t,o=>({...o,context:r}))},Xu=(e,t,n,r)=>{const{id:o,routeId:s}=e.matches[t],l=e.router.looseRoutesById[s];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,ra(e,e.router.getMatch(o),n);try{l.options.onError?.(n)}catch(c){n=c,ra(e,e.router.getMatch(o),n)}e.updateMatch(o,c=>(c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,c._nonReactive.loadPromise?.resolve(),{...c,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Wr(n)&&!Tr(n)&&(e.serialError??=n)},IP=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const o=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Tg(e,t)&&(n.options.loader||n.options.beforeLoad||PP(n))&&typeof o=="number"&&o!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){const s=setTimeout(()=>{Ib(e)},o);r._nonReactive.pendingTimeout=s}},g7=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;IP(e,t,n,r);const o=()=>{const s=e.router.getMatch(t);s.preload&&(s.status==="redirected"||s.status==="notFound")&&ra(e,s,s.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(o):o()},v7=(e,t,n,r)=>{const o=e.router.getMatch(t);let s=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Fc(()=>{s?.resolve(),s=void 0});const{paramsError:l,searchError:c}=o;l&&Xu(e,n,l,"PARSE_PARAMS"),c&&Xu(e,n,c,"VALIDATE_SEARCH"),IP(e,t,r,o);const d=new AbortController;let f=!1;const p=()=>{f||(f=!0,e.updateMatch(t,R=>({...R,isFetching:"beforeLoad",fetchCount:R.fetchCount+1,abortController:d})))},h=()=>{o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,R=>({...R,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{p(),h()});return}o._nonReactive.beforeLoadPromise=Fc();const g={...ol(e,n,!1),...o.__routeContext},{search:v,params:y,cause:b}=o,x=Tg(e,t),w={search:v,abortController:d,params:y,preload:x,context:g,location:e.location,navigate:R=>e.router.navigate({...R,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:x?"preload":b,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},E=R=>{if(R===void 0){e.router.batch(()=>{p(),h()});return}(Wr(R)||Tr(R))&&(p(),Xu(e,n,R,"BEFORE_LOAD")),e.router.batch(()=>{p(),e.updateMatch(t,O=>({...O,__beforeLoadContext:R})),h()})};let T;try{if(T=r.options.beforeLoad(w),Vd(T))return p(),T.catch(R=>{Xu(e,n,R,"BEFORE_LOAD")}).then(E)}catch(R){p(),Xu(e,n,R,"BEFORE_LOAD")}E(T)},_7=(e,t)=>{const{id:n,routeId:r}=e.matches[t],o=e.router.looseRoutesById[r],s=()=>c(),l=()=>v7(e,n,t,o),c=()=>{if(AP(e,n))return;const d=g7(e,n,o);return Vd(d)?d.then(l):l()};return s()},y7=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const o={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(o),n.options.scripts?.(o),n.options.headers?.(o)]).then(([s,l,c])=>({meta:s?.meta,links:s?.links,headScripts:s?.scripts,headers:c,scripts:l,styles:s?.styles}))},MP=(e,t,n,r,o)=>{const s=t[r-1],{params:l,loaderDeps:c,abortController:d,cause:f}=e.router.getMatch(n),p=ol(e,r),h=Tg(e,n);return{params:l,deps:c,preload:!!h,parentMatchPromise:s,abortController:d,context:p,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:h?"preload":f,route:o,...e.router.options.additionalContext}},Y2=async(e,t,n,r,o)=>{try{const s=e.router.getMatch(n);try{(!(yP??e.router.isServer)||s.ssr===!0)&&qd(o);const l=o.options.loader,c=typeof l=="function"?l:l?.handler,d=c?.(MP(e,t,n,r,o)),f=!!c&&Vd(d);if((f||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(n,h=>({...h,isFetching:"loader"})),c){const h=f?await d:d;ra(e,e.router.getMatch(n),h),h!==void 0&&e.updateMatch(n,g=>({...g,loaderData:h}))}o._lazyPromise&&await o._lazyPromise;const p=s._nonReactive.minPendingPromise;p&&await p,o._componentsPromise&&await o._componentsPromise,e.updateMatch(n,h=>({...h,error:void 0,context:ol(e,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(l){let c=l;if(c?.name==="AbortError"){if(s.abortController.signal.aborted){s._nonReactive.loaderPromise?.resolve(),s._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,f=>({...f,status:f.status==="pending"?"success":f.status,isFetching:!1,context:ol(e,r)}));return}const d=s._nonReactive.minPendingPromise;d&&await d,Tr(l)&&await o.options.notFoundComponent?.preload?.(),ra(e,e.router.getMatch(n),l);try{o.options.onError?.(l)}catch(f){c=f,ra(e,e.router.getMatch(n),f)}!Wr(c)&&!Tr(c)&&await qd(o,["errorComponent"]),e.updateMatch(n,f=>({...f,error:c,context:ol(e,r),status:"error",isFetching:!1}))}}catch(s){const l=e.router.getMatch(n);l&&(l._nonReactive.loaderPromise=void 0),ra(e,l,s)}},b7=async(e,t,n)=>{async function r(v,y,b,x,w){const E=Date.now()-y.updatedAt,T=v?w.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:w.options.staleTime??e.router.options.defaultStaleTime??0,R=w.options.shouldReload,O=typeof R=="function"?R(MP(e,t,o,n,w)):R,{status:A,invalid:I}=x,P=E>=T&&(!!e.forceStaleReload||x.cause==="enter"||b!==void 0&&b!==x.id);l=A==="success"&&(I||(O??P)),v&&w.options.preload===!1||(l&&!e.sync&&p?(c=!0,(async()=>{try{await Y2(e,t,o,n,w);const L=e.router.getMatch(o);L._nonReactive.loaderPromise?.resolve(),L._nonReactive.loadPromise?.resolve(),L._nonReactive.loaderPromise=void 0,L._nonReactive.loadPromise=void 0}catch(L){Wr(L)&&await e.router.navigate(L.options)}})()):A!=="success"||l?await Y2(e,t,o,n,w):Z2(e,o,n))}const{id:o,routeId:s}=e.matches[n];let l=!1,c=!1;const d=e.router.looseRoutesById[s],f=d.options.loader,p=((typeof f=="function"?void 0:f?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(AP(e,o)){if(!e.router.getMatch(o))return e.matches[n];Z2(e,o,n)}else{const v=e.router.getMatch(o),y=e.router.stores.matchesId.get()[n],b=(y&&e.router.stores.matchStores.get(y)||null)?.routeId===s?y:e.router.stores.matches.get().find(w=>w.routeId===s)?.id,x=Tg(e,o);if(v._nonReactive.loaderPromise){if(v.status==="success"&&!e.sync&&!v.preload&&p)return v;await v._nonReactive.loaderPromise;const w=e.router.getMatch(o),E=w._nonReactive.error||w.error;E&&ra(e,w,E),w.status==="pending"&&await r(x,v,b,w,d)}else{const w=x&&!e.router.stores.matchStores.has(o),E=e.router.getMatch(o);E._nonReactive.loaderPromise=Fc(),w!==E.preload&&e.updateMatch(o,T=>({...T,preload:w})),await r(x,v,b,E,d)}}const h=e.router.getMatch(o);c||(h._nonReactive.loaderPromise?.resolve(),h._nonReactive.loadPromise?.resolve(),h._nonReactive.loadPromise=void 0),clearTimeout(h._nonReactive.pendingTimeout),h._nonReactive.pendingTimeout=void 0,c||(h._nonReactive.loaderPromise=void 0),h._nonReactive.dehydrated=void 0;const g=c?h.isFetching:!1;return g!==h.isFetching||h.invalid!==!1?(e.updateMatch(o,v=>({...v,isFetching:g,invalid:!1})),e.router.getMatch(o)):h};async function W2(e){const t=e,n=[];m7(t.router)&&Ib(t);let r;for(let g=0;g<t.matches.length;g++){try{const v=_7(t,g);Vd(v)&&await v}catch(v){if(Wr(v))throw v;if(Tr(v))r=v;else if(!t.preload)throw v;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const o=t.firstBadMatchIndex??t.matches.length,s=r&&!t.preload?K2(t,r):void 0,l=r&&t.preload?0:s!==void 0?Math.min(s+1,o):o;let c,d;for(let g=0;g<l;g++)n.push(b7(t,n,g));try{await Promise.all(n)}catch{const g=await Promise.allSettled(n);for(const v of g){if(v.status!=="rejected")continue;const y=v.reason;if(Wr(y))throw y;Tr(y)?c??=y:d??=y}if(d!==void 0)throw d}const f=c??(r&&!t.preload?r:void 0);let p=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!f&&r&&t.preload)return t.matches;if(f){const g=K2(t,f);g===void 0&&ls();const v=t.matches[g],y=t.router.looseRoutesById[v.routeId],b=t.router.options?.defaultNotFoundComponent;!y.options.notFoundComponent&&b&&(y.options.notFoundComponent=b),f.routeId=v.routeId;const x=v.routeId===t.router.routeTree.id;t.updateMatch(v.id,w=>({...w,...x?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:f},isFetching:!1})),p=g,await qd(y,["notFoundComponent"])}else if(!t.preload){const g=t.matches[0];g.globalNotFound||t.router.getMatch(g.id)?.globalNotFound&&t.updateMatch(g.id,v=>({...v,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const g=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await qd(g,["errorComponent"])}for(let g=0;g<=p;g++){const{id:v,routeId:y}=t.matches[g],b=t.router.looseRoutesById[y];try{const x=y7(t,v,b);if(x){const w=await x;t.updateMatch(v,E=>({...E,...w}))}}catch(x){console.error(`Error executing head for route ${y}:`,x)}}const h=Ib(t);if(Vd(h)&&await h,f)throw f;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Q2(e,t){const n=t.map(r=>e.options[r]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function qd(e,t=lm){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(r=>{const{id:o,...s}=r.options;Object.assign(e.options,s),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const n=()=>e._componentsLoaded?void 0:t===lm?(()=>{if(e._componentsPromise===void 0){const r=Q2(e,lm);r?e._componentsPromise=r.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Q2(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function PP(e){for(const t of lm)if(e.options[t]?.preload)return!0;return!1}const lm=["component","errorComponent","pendingComponent","notFoundComponent"];var ia="__TSR_index",X2="popstate",J2="beforeunload";function w7(e){let t=e.getLocation();const n=new Set,r=l=>{t=e.getLocation(),n.forEach(c=>c({location:t,action:l}))},o=l=>{e.notifyOnIndexChange??!0?r(l):t=e.getLocation()},s=async({task:l,navigateOpts:c,...d})=>{if(c?.ignoreBlocker??!1){l();return}const f=e.getBlockers?.()??[],p=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&f.length&&p)for(const h of f){const g=Tm(d.path,d.state);if(await h.blockerFn({currentLocation:t,nextLocation:g,action:d.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,c,d)=>{const f=t.state[ia];c=eT(f+1,c),s({task:()=>{e.pushState(l,c),r({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:l,state:c})},replace:(l,c,d)=>{const f=t.state[ia];c=eT(f,c),s({task:()=>{e.replaceState(l,c),r({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:l,state:c})},go:(l,c)=>{s({task:()=>{e.go(l),o({type:"GO",index:l})},navigateOpts:c,type:"GO"})},back:l=>{s({task:()=>{e.back(l?.ignoreBlocker??!1),o({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{s({task:()=>{e.forward(l?.ignoreBlocker??!1),o({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[ia]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const c=e.getBlockers?.()??[];return e.setBlockers([...c,l]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(f=>f!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function eT(e,t){t||(t={});const n=Sw();return{...t,key:n,__TSR_key:n,[ia]:e}}function S7(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let o=[];const s=()=>o,l=P=>o=P,c=(P=>P),d=(()=>Tm(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const P=Sw();t.history.replaceState({[ia]:0,key:P,__TSR_key:P},"")}let f=d(),p,h=!1,g=!1,v=!1,y=!1;const b=()=>f;let x,w;const E=()=>{x&&(I._ignoreSubscribers=!0,(x.isPush?t.history.pushState:t.history.replaceState)(x.state,"",x.href),I._ignoreSubscribers=!1,x=void 0,w=void 0,p=void 0)},T=(P,L,H)=>{const $=c(L);w||(p=f),f=Tm(L,H),x={href:$,state:H,isPush:x?.isPush||P==="push"},w||(w=Promise.resolve().then(()=>E()))},R=P=>{f=d(),I.notify({type:P})},O=async()=>{if(g){g=!1;return}const P=d(),L=P.state[ia]-f.state[ia],H=L===1,$=L===-1,B=!H&&!$||h;h=!1;const z=B?"GO":$?"BACK":"FORWARD",K=B?{type:"GO",index:L}:{type:$?"BACK":"FORWARD"};if(v)v=!1;else{const oe=s();if(typeof document<"u"&&oe.length){for(const q of oe)if(await q.blockerFn({currentLocation:f,nextLocation:P,action:z})){g=!0,t.history.go(1),I.notify(K);return}}}f=d(),I.notify(K)},A=P=>{if(y){y=!1;return}let L=!1;const H=s();if(typeof document<"u"&&H.length)for(const $ of H){const B=$.enableBeforeUnload??!0;if(B===!0){L=!0;break}if(typeof B=="function"&&B()===!0){L=!0;break}}if(L)return P.preventDefault(),P.returnValue=""},I=w7({getLocation:b,getLength:()=>t.history.length,pushState:(P,L)=>T("push",P,L),replaceState:(P,L)=>T("replace",P,L),back:P=>(P&&(v=!0),y=!0,t.history.back()),forward:P=>{P&&(v=!0),y=!0,t.history.forward()},go:P=>{h=!0,t.history.go(P)},createHref:P=>c(P),flush:E,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(J2,A,{capture:!0}),t.removeEventListener(X2,O)},onBlocked:()=>{p&&f!==p&&(f=p)},getBlockers:s,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(J2,A,{capture:!0}),t.addEventListener(X2,O),t.history.pushState=function(...P){const L=n.apply(t.history,P);return I._ignoreSubscribers||R("PUSH"),L},t.history.replaceState=function(...P){const L=r.apply(t.history,P);return I._ignoreSubscribers||R("REPLACE"),L},I}function E7(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Tm(e,t){const n=E7(e),r=n.indexOf("#"),o=n.indexOf("?"),s=Sw();return{href:n,pathname:n.substring(0,r>0?o>0?Math.min(r,o):r:o>0?o:n.length),hash:r>-1?n.substring(r):"",search:o>-1?n.slice(o,r===-1?void 0:r):"",state:t||{[ia]:0,key:s,__TSR_key:s}}}function Sw(){return(Math.random()+1).toString(36).substring(7)}function Mc(e,t){const n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var x7=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=n=>n(),this.update=n=>{const r=this.options,o=this.basepath??r?.basepath??"/",s=this.basepath===void 0,l=r?.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=J8(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=S7()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let p;this.resolvePathCache=Hd(1e3),p=this.buildRouteTree(),this.setRoutes(p)}if(!this.stores&&this.latestLocation){const p=this.getStoreConfig(this);this.batch=p.batch,this.stores=p7(O7(this.latestLocation),p),i7(this)}let c=!1;const d=this.options.basepath??"/",f=this.options.rewrite;if(s||o!==d||l!==f){this.basepath=d;const p=[],h=TP(d);h&&h!=="/"&&p.push(h7({basepath:d})),f&&p.push(f),this.rewrite=p.length===0?void 0:p.length===1?p[0]:f7(p),this.history&&this.updateLatestLocation(),c=!0}c&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=K8(this.routeTree,this.options.caseSensitive,(r,o)=>{r.init({originalIndex:o})});return this.options.routeMasks&&B8(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const o={eventType:n,fn:r};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const o=({pathname:d,search:f,hash:p,href:h,state:g})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(d)){const w=this.options.parseSearch(f),E=this.options.stringifySearch(w);return{href:d+E+p,publicHref:d+E+p,pathname:Wu(d).path,external:!1,searchStr:E,search:ja(r?.search,w),hash:Wu(p.slice(1)).path,state:Xa(r?.state,g)}}const v=new URL(h,this.origin),y=Ab(this.rewrite,v),b=this.options.parseSearch(y.search),x=this.options.stringifySearch(b);return y.search=x,{href:y.href.replace(y.origin,""),publicHref:h,pathname:Wu(y.pathname).path,external:!!this.rewrite&&y.origin!==this.origin,searchStr:x,search:ja(r?.search,b),hash:Wu(y.hash.slice(1)).path,state:Xa(r?.state,g)}},s=o(n),{__tempLocation:l,__tempKey:c}=s.state;if(l&&(!c||c===this.tempLocationKey)){const d=o(l);return d.state.key=s.state.key,d.state.__TSR_key=s.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:s}}return s},this.resolvePathWithBase=(n,r)=>X8({base:n,to:r.includes("//")?ww(r):r,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,o)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},o):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>T7({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(n=>{this.cancelMatch(n)}),this.stores.matchesId.get().forEach(n=>{if(this.stores.pendingMatchStores.has(n))return;const r=this.stores.matchStores.get(n)?.get();r&&(r.status==="pending"||r.isFetching==="loader")&&this.cancelMatch(n)})},this.buildLocation=n=>{const r=(s={})=>{const l=s._fromLocation||this.pendingBuiltLocation||this.latestLocation,c=this.matchRoutesLightweight(l);s.from;const d=s.unsafeRelative==="path"?l.pathname:s.from??c.fullPath,f=s.to?`${s.to}`:void 0,p=c.search,h=Object.assign(Object.create(null),c.params),g=f?.charCodeAt(0)===47?"/":this.resolvePathWithBase(d,"."),v=f?this.resolvePathWithBase(g,f):g,y=s.params===!1||s.params===null?Object.create(null):(s.params??!0)===!0?h:Object.assign(h,ta(s.params,h)),b=this.routesByPath[ss(v)];let x;if(b)x=this.getRouteBranch(b);else if(v.includes("$"))x=[];else{const $=this.getMatchedRoutes(v);x=$.matchedRoutes,this.options.notFoundRoute&&(!$.foundRoute||$.foundRoute.path!=="/"&&$.routeParams["**"])&&(x=[...x,this.options.notFoundRoute])}if(x.length&&wP(y))for(const $ of x){const B=$.options.params?.stringify??$.options.stringifyParams;if(B)try{Object.assign(y,B(y))}catch{}}const w=n.leaveParams?v:Wu(V2({path:v,params:y,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let E=p;if(n._includeValidateSearch&&this.options.search?.strict){const $={};x.forEach(B=>{if(B.options.validateSearch)try{Object.assign($,cm(B.options.validateSearch,{...$,...E}))}catch{}}),E=$}E=C7({search:E,dest:s,destRoutes:x,_includeValidateSearch:n._includeValidateSearch}),E=ja(p,E);const T=this.options.stringifySearch(E),R=s.hash===!0?l.hash:s.hash?ta(s.hash,l.hash):void 0,O=R?`#${R}`:"";let A=s.state===!0?l.state:s.state?ta(s.state,l.state):{};A=Xa(l.state,A);const I=`${w}${T}${O}`;let P,L,H=!1;if(this.rewrite){const $=new URL(I,this.origin),B=CP(this.rewrite,$);P=$.href.replace($.origin,""),B.origin!==this.origin?(L=B.href,H=!0):L=B.pathname+B.search+B.hash}else P=U8(I),L=P;return{publicHref:L,href:P,pathname:w,search:E,searchStr:T,state:A,hash:R??"",external:H,unmaskOnReload:s.unmaskOnReload}},o=(s={},l)=>{const c=r(s);let d=l?r(l):void 0;if(!d){const f=Object.create(null);if(this.options.routeMasks){const p=V8(c.pathname,this.processedTree);if(p){Object.assign(f,p.rawParams);const{from:h,params:g,...v}=p.route,y=g===!1||g===null?Object.create(null):(g??!0)===!0?f:Object.assign(f,ta(g,f));l={from:n.from,...v,params:y},d=r(l)}}}return d&&(c.maskedLocation=d),c};return n.mask?o(n,{from:n.from,...n.mask}):o(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...o})=>{const s=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(p=>{o.state[p]=this.latestLocation.state[p]});const f=nl(o.state,this.latestLocation.state);return d.forEach(p=>{delete o.state[p]}),f},l=ss(this.latestLocation.href)===ss(o.href);let c=this.commitLocationPromise;if(this.commitLocationPromise=Fc(()=>{c?.resolve(),c=void 0}),l&&s())this.load();else{let{maskedLocation:d,hashScrollIntoView:f,...p}=o;d&&(p={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...p,search:p.searchStr,state:{...p.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(p.unmaskOnReload??this.options.unmaskOnReload??!1)&&(p.state.__tempKey=this.tempLocationKey)),p.state.__hashScrollIntoViewOptions=f??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[o.replace?"replace":"push"](p.publicHref,p.state,{ignoreBlocker:r})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:o,viewTransition:s,ignoreBlocker:l,href:c,...d}={})=>{if(c){const h=this.history.location.state.__TSR_index,g=Tm(c,{__TSR_index:n?h:h+1}),v=new URL(g.pathname,this.origin);d.to=Ab(this.rewrite,v).pathname,d.search=this.options.parseSearch(g.search),d.hash=g.hash.slice(1)}const f=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=f;const p=this.commitLocation({...f,viewTransition:s,replace:n,resetScroll:r,hashScrollIntoView:o,ignoreBlocker:l});return Promise.resolve().then(()=>{this.pendingBuiltLocation===f&&(this.pendingBuiltLocation=void 0)}),p},this.navigate=async({to:n,reloadDocument:r,href:o,publicHref:s,...l})=>{let c=!1;if(o)try{new URL(`${o}`),c=!0}catch{}if(c&&!r&&(r=!0),r){if(n!==void 0||!o){const f=this.buildLocation({to:n,...l});o=o??f.publicHref,s=s??f.publicHref}const d=!c&&s?s:o;if(Rm(d,this.protocolAllowlist))return Promise.resolve();if(!l.ignoreBlocker){const f=this.history.getBlockers?.()??[];for(const p of f)if(p?.blockerFn&&await p.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return l.replace?window.location.replace(d):window.location.href=d,Promise.resolve()}return this.buildAndCommitLocation({...l,href:o,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation),r=this.stores.cachedMatches.get().filter(o=>!n.some(s=>s.id===o.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(n),this.stores.setCached(r)})},this.load=async n=>{let r,o,s;const l=this.stores.resolvedLocation.get()??this.stores.location.get();for(s=new Promise(d=>{this.startTransition(async()=>{try{this.beforeLoad();const f=this.latestLocation,p=Mc(f,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...p}),this.emit({type:"onBeforeLoad",...p}),await W2({router:this,sync:n?.sync,forceStaleReload:l.href===f.href,matches:this.stores.pendingMatches.get(),location:f,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let h=null,g=null,v=null,y=null;this.batch(()=>{const b=this.stores.pendingMatches.get(),x=b.length,w=this.stores.matches.get();h=x?w.filter(R=>!this.stores.pendingMatchStores.has(R.id)):null;const E=new Set;for(const R of this.stores.pendingMatchStores.values())R.routeId&&E.add(R.routeId);const T=new Set;for(const R of this.stores.matchStores.values())R.routeId&&T.add(R.routeId);g=x?w.filter(R=>!E.has(R.routeId)):null,v=x?b.filter(R=>!T.has(R.routeId)):null,y=x?b.filter(R=>T.has(R.routeId)):w,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),x&&(this.stores.setMatches(b),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...h.filter(R=>R.status!=="error"&&R.status!=="notFound"&&R.status!=="redirected")]),this.clearExpiredCache())});for(const[b,x]of[[g,"onLeave"],[v,"onEnter"],[y,"onStay"]])if(b)for(const w of b)this.looseRoutesById[w.routeId].options[x]?.(w)})})}})}catch(f){Wr(f)?(r=f,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):Tr(f)&&(o=f);const p=r?r.status:o?404:this.stores.matches.get().some(h=>h.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(p),this.stores.redirect.set(r)})}this.latestLoadPromise===s&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),d()})}),this.latestLoadPromise=s,await s;this.latestLoadPromise&&s!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.stores.matches.get().some(d=>d.status==="error")&&(c=500),c!==void 0&&this.stores.statusCode.set(c)},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const s=this.latestLocation,l=this.stores.resolvedLocation.get(),c=typeof r.types=="function"?r.types(Mc(s,l)):r.types;if(c===!1){n();return}o={update:n,types:c}}else o=n;document.startViewTransition(o)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStores.get(n);if(o){o.set(r);return}const s=this.stores.matchStores.get(n);if(s){s.set(r);return}const l=this.stores.cachedMatchStores.get(n);if(l){const c=r(l.get());c.status==="redirected"?this.stores.cachedMatchStores.delete(n)&&this.stores.cachedIds.set(d=>d.filter(f=>f!==n)):l.set(c)}})},this.getMatch=n=>this.stores.cachedMatchStores.get(n)?.get()??this.stores.pendingMatchStores.get(n)?.get()??this.stores.matchStores.get(n)?.get(),this.invalidate=n=>{const r=o=>n?.filter?.(o)??!0?{...o,invalid:!0,...n?.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(r)),this.stores.setCached(this.stores.cachedMatches.get().map(r)),this.stores.setPending(this.stores.pendingMatches.get().map(r))}),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const r=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const o=n.options._builtLocation??this.buildLocation(n.options),s=this.getParsedLocationHref(o);n.options.href=s,n.headers.set("Location",s)}else if(r)try{const o=new URL(r);if(this.origin&&o.origin===this.origin){const s=o.pathname+o.search+o.hash;n.options.href=s,n.headers.set("Location",s)}}catch{}if(n.options.href&&!n.options._builtLocation&&Rm(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(o=>!r(o))):this.stores.setCached([])},this.clearExpiredCache=()=>{const n=Date.now(),r=o=>{const s=this.looseRoutesById[o.routeId];if(!s.options.loader)return!0;const l=(o.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:n-o.updatedAt>=l};this.clearCache({filter:r})},this.loadRouteChunk=qd,this.preloadRoute=async n=>{const r=n._builtLocation??this.buildLocation(n);let o=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const s=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),l=new Set([...s,...this.stores.cachedIds.get()]),c=o.filter(d=>!l.has(d.id));if(c.length){const d=this.stores.cachedMatches.get();this.stores.setCached([...d,...c])}try{return o=await W2({router:this,matches:o,location:r,preload:!0,updateMatch:(d,f)=>{s.has(d)?o=o.map(p=>p.id===d?f(p):p):this.updateMatch(d,f)}}),o}catch(d){if(Wr(d))return d.options.reloadDocument?void 0:await this.preloadRoute({...d.options,_fromLocation:r});Tr(d)||console.error(d);return}},this.matchRoute=(n,r)=>{const o={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},s=this.buildLocation(o);if(r?.pending&&this.stores.status.get()!=="pending")return!1;const l=(r?.pending===void 0?!this.stores.isLoading.get():r.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),c=H8(s.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,l.pathname,this.processedTree);return!c||n.params&&!nl(c.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?nl(l.search,s.search,{partial:!0})?c.rawParams:!1:c.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(n=>n.status==="notFound"||n.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??c7,parseSearch:e.parseSearch??l7,protocolAllowlist:e.protocolAllowlist??j8}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=RP(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:o}=n;let{matchedRoutes:s}=n,l=!1;(r?r.path!=="/"&&o["**"]:ss(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:l=!0);const c=l?I7(this.options.notFoundMode,s):void 0,d=new Array(s.length),f=new Map;for(const p of this.stores.matchStores.values())p.routeId&&f.set(p.routeId,p.get());for(let p=0;p<s.length;p++){const h=s[p],g=d[p-1];let v,y,b;{const B=g?.search??e.search,z=g?._strictSearch??void 0;try{const K=cm(h.options.validateSearch,{...B})??void 0;v={...B,...K},y={...z,...K},b=void 0}catch(K){let oe=K;if(K instanceof Cm||(oe=new Cm(K.message,{cause:K})),t?.throwOnError)throw oe;v=B,y={},b=oe}}const x=h.options.loaderDeps?.({search:v})??"",w=x?JSON.stringify(x):"",{interpolatedPath:E,usedParams:T}=V2({path:h.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),R=h.id+E+w,O=this.getMatch(R),A=f.get(h.id),I=O?._strictParams??T;let P;if(!O)try{tT(h,I)}catch(B){if(Tr(B)||Wr(B)?P=B:P=new R7(B.message,{cause:B}),t?.throwOnError)throw P}Object.assign(o,I);const L=A?"stay":"enter";let H;if(O)H={...O,cause:L,params:A?.params??o,_strictParams:I,search:ja(A?A.search:O.search,v),_strictSearch:y};else{const B=h.options.loader||h.options.beforeLoad||h.lazyFn||PP(h)?"pending":"success";H={id:R,ssr:h.options.ssr,index:p,routeId:h.id,params:A?.params??o,_strictParams:I,pathname:E,updatedAt:Date.now(),search:A?ja(A.search,v):v,_strictSearch:y,searchError:void 0,status:B,isFetching:!1,error:void 0,paramsError:P,__routeContext:void 0,_nonReactive:{loadPromise:Fc()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:L,loaderDeps:A?Xa(A.loaderDeps,x):x,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:h.options.staticData||{},fullPath:h.fullPath}}t?.preload||(H.globalNotFound=c===h.id),H.searchError=b;const $=this.getParentContext(g);H.context={...$,...H.__routeContext,...H.__beforeLoadContext},d[p]=H}for(let p=0;p<d.length;p++){const h=d[p],g=this.looseRoutesById[h.routeId],v=this.getMatch(h.id),y=f.get(h.routeId);if(h.params=y?ja(y.params,o):o,!v){const b=d[p-1],x=this.getParentContext(b);if(g.options.context){const w={deps:h.loaderDeps,params:h.params,context:x??{},location:e,navigate:E=>this.navigate({...E,_fromLocation:e}),buildLocation:this.buildLocation,cause:h.cause,abortController:h.abortController,preload:!!h.preload,matches:d,routeId:g.id};h.__routeContext=g.options.context(w)??void 0}h.context={...x,...h.__routeContext,...h.__beforeLoadContext}}}return d}matchRoutesLightweight(e){const{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=Bd(t),o={...e.search};for(const f of t)try{Object.assign(o,cm(f.options.validateSearch,o))}catch{}const s=Bd(this.stores.matchesId.get()),l=s&&this.stores.matchStores.get(s)?.get(),c=l&&l.routeId===r.id&&l.pathname===e.pathname;let d;if(c)d=l.params;else{const f=Object.assign(Object.create(null),n);for(const p of t)try{tT(p,f)}catch{}d=f}return{matchedRoutes:t,fullPath:r.fullPath,search:o,params:d}}},Cm=class extends Error{},R7=class extends Error{};function O7(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function cm(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Cm("Async validation not supported");if(n.issues)throw new Cm(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function T7({pathname:e,routesById:t,processedTree:n}){const r=Object.create(null),o=ss(e);let s;const l=q8(o,n,!0);return l&&(s=l.route,Object.assign(r,l.rawParams)),{matchedRoutes:l?.branch||[t.__root__],routeParams:r,foundRoute:s}}function C7({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return A7(n)(e,t,r??!1)}function A7(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const o of e){if("search"in o.options)o.options.search?.middlewares&&t.middlewares.push(...o.options.search.middlewares);else if(o.options.preSearchFilters||o.options.postSearchFilters){const s=({search:l,next:c})=>{let d=l;"preSearchFilters"in o.options&&o.options.preSearchFilters&&(d=o.options.preSearchFilters.reduce((p,h)=>h(p),l));const f=c(d);return"postSearchFilters"in o.options&&o.options.postSearchFilters?o.options.postSearchFilters.reduce((p,h)=>h(p),f):f};t.middlewares.push(s)}if(o.options.validateSearch){const s=({search:l,next:c})=>{const d=c(l);if(!t._includeValidateSearch)return d;try{return{...d,...cm(o.options.validateSearch,d)??void 0}}catch{return d}};t.middlewares.push(s)}}const n=({search:o})=>{const s=t.dest;return s.search?s.search===!0?o:ta(s.search,o):{}};t.middlewares.push(n);const r=(o,s,l)=>{if(o>=l.length)return s;const c=l[o];return c({search:s,next:f=>r(o+1,f,l)})};return function(s,l,c){return t.dest=l,t._includeValidateSearch=c,r(0,s,t.middlewares)}}function I7(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return rl}function tT(e,t){const n=e.options.params?.parse??e.options.parseParams;if(n){const r=n(t);if(r===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,r)}}const M7="Error preloading route! ☝️";var NP=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,r=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=rl:this.parentRoute||ls();let o=r?rl:n?.path;o&&o!=="/"&&(o=OP(o));const s=n?.id||o;let l=r?rl:am([this.parentRoute.id==="__root__"?"":this.parentRoute.id,s]);o==="__root__"&&(o="/"),l!=="__root__"&&(l=am(["/",l]));const c=l==="__root__"?"/":am([this.parentRoute.fullPath,o]);this._path=o,this._id=l,this._fullPath=c,this._to=ss(c)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>Ic({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},P7=class extends NP{constructor(e){super(e)}};function N7(e){if(typeof document<"u"&&document.querySelector){const t=e.stores.location.get(),n=t.state.__hashScrollIntoViewOptions??!0;if(n&&t.hash!==""){const r=document.getElementById(t.hash);r&&r.scrollIntoView(n)}}}function Ew(e){const t=e.errorComponent??xw;return C.jsx(k7,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?M.createElement(t,{error:n,reset:r}):e.children})}var k7=class extends M.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function xw({error:e}){const[t,n]=M.useState(!1);return C.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[C.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),C.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),C.jsx("div",{style:{height:".25rem"}}),t?C.jsx("div",{children:C.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?C.jsx("code",{children:e.message}):null})}):null]})}function D7({children:e,fallback:t=null}){return kP()?C.jsx(ee.Fragment,{children:e}):C.jsx(ee.Fragment,{children:t})}function kP(){return ee.useSyncExternalStore(L7,()=>!0,()=>!1)}function L7(){return()=>{}}var DP=M.createContext(null);function yo(e){return M.useContext(DP)}var Cg=M.createContext(void 0),$7=M.createContext(void 0),hn=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(hn||{});function j7({update:e,notify:t,unwatched:n}){return{link:r,unlink:o,propagate:s,checkDirty:l,shallowPropagate:c};function r(f,p,h){const g=p.depsTail;if(g!==void 0&&g.dep===f)return;const v=g!==void 0?g.nextDep:p.deps;if(v!==void 0&&v.dep===f){v.version=h,p.depsTail=v;return}const y=f.subsTail;if(y!==void 0&&y.version===h&&y.sub===p)return;const b=p.depsTail=f.subsTail={version:h,dep:f,sub:p,prevDep:g,nextDep:v,prevSub:y,nextSub:void 0};v!==void 0&&(v.prevDep=b),g!==void 0?g.nextDep=b:p.deps=b,y!==void 0?y.nextSub=b:f.subs=b}function o(f,p=f.sub){const h=f.dep,g=f.prevDep,v=f.nextDep,y=f.nextSub,b=f.prevSub;return v!==void 0?v.prevDep=g:p.depsTail=g,g!==void 0?g.nextDep=v:p.deps=v,y!==void 0?y.prevSub=b:h.subsTail=b,b!==void 0?b.nextSub=y:(h.subs=y)===void 0&&n(h),v}function s(f){let p=f.nextSub,h;e:do{const g=f.sub;let v=g.flags;if(v&60?v&12?v&4?!(v&48)&&d(f,g)?(g.flags=v|40,v&=1):v=0:g.flags=v&-9|32:v=0:g.flags=v|32,v&2&&t(g),v&1){const y=g.subs;if(y!==void 0){const b=(f=y).nextSub;b!==void 0&&(h={value:p,prev:h},p=b);continue}}if((f=p)!==void 0){p=f.nextSub;continue}for(;h!==void 0;)if(f=h.value,h=h.prev,f!==void 0){p=f.nextSub;continue e}break}while(!0)}function l(f,p){let h,g=0,v=!1;e:do{const y=f.dep,b=y.flags;if(p.flags&16)v=!0;else if((b&17)===17){if(e(y)){const x=y.subs;x.nextSub!==void 0&&c(x),v=!0}}else if((b&33)===33){(f.nextSub!==void 0||f.prevSub!==void 0)&&(h={value:f,prev:h}),f=y.deps,p=y,++g;continue}if(!v){const x=f.nextDep;if(x!==void 0){f=x;continue}}for(;g--;){const x=p.subs,w=x.nextSub!==void 0;if(w?(f=h.value,h=h.prev):f=x,v){if(e(p)){w&&c(x),p=f.sub;continue}v=!1}else p.flags&=-33;p=f.sub;const E=f.nextDep;if(E!==void 0){f=E;continue e}}return v}while(!0)}function c(f){do{const p=f.sub,h=p.flags;(h&48)===32&&(p.flags=h|16,(h&6)===2&&t(p))}while((f=f.nextSub)!==void 0)}function d(f,p){let h=p.depsTail;for(;h!==void 0;){if(h===f)return!0;h=h.prevDep}return!1}}function U7(e,t,n){const r=typeof e=="object",o=r?e:void 0;return{next:(r?e.next:e)?.bind(o),error:(r?e.error:t)?.bind(o),complete:(r?e.complete:n)?.bind(o)}}const Mb=[];let um=0;const{link:nT,unlink:z7,propagate:F7,checkDirty:LP,shallowPropagate:rT}=j7({update(e){return e._update()},notify(e){Mb[Pb++]=e,e.flags&=~hn.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=hn.Mutable|hn.Dirty,Am(e))}});let Vh=0,Pb=0,pi,Nb=0;function $P(e){try{++Nb,e()}finally{--Nb||jP()}}function Am(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=z7(n,e)}function jP(){if(!(Nb>0)){for(;Vh<Pb;){const e=Mb[Vh];Mb[Vh++]=void 0,e.notify()}Vh=0,Pb=0}}function oT(e,t){const n=typeof e=="function",r=e,o={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?hn.None:hn.Mutable,get(){return pi!==void 0&&nT(o,pi,um),o._snapshot},subscribe(s){const l=U7(s),c={current:!1},d=B7(()=>{o.get(),c.current?l.next?.(o._snapshot):c.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(s){const l=pi,c=t?.compare??Object.is;if(n)pi=o,++um,o.depsTail=void 0;else if(s===void 0)return!1;n&&(o.flags=hn.Mutable|hn.RecursedCheck);try{const d=o._snapshot,f=typeof s=="function"?s(d):s===void 0&&n?r(d):s;return d===void 0||!c(d,f)?(o._snapshot=f,!0):!1}finally{pi=l,n&&(o.flags&=~hn.RecursedCheck),Am(o)}}};return n?(o.flags=hn.Mutable|hn.Dirty,o.get=function(){const s=o.flags;if(s&hn.Dirty||s&hn.Pending&&LP(o.deps,o)){if(o._update()){const l=o.subs;l!==void 0&&rT(l)}}else s&hn.Pending&&(o.flags=s&~hn.Pending);return pi!==void 0&&nT(o,pi,um),o._snapshot}):o.set=function(s){if(o._update(s)){const l=o.subs;l!==void 0&&(F7(l),rT(l),jP())}},o}function B7(e){const t=()=>{const r=pi;pi=n,++um,n.depsTail=void 0,n.flags=hn.Watching|hn.RecursedCheck;try{return e()}finally{pi=r,n.flags&=~hn.RecursedCheck,Am(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:hn.Watching|hn.RecursedCheck,notify(){const r=this.flags;r&hn.Dirty||r&hn.Pending&&LP(this.deps,this)?t():this.flags=hn.Watching},stop(){this.flags=hn.None,this.depsTail=void 0,Am(this)}};return t(),n}var D_={exports:{}},L_={},$_={exports:{}},j_={};var iT;function V7(){if(iT)return j_;iT=1;var e=ma();function t(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function c(h,g){var v=g(),y=r({inst:{value:v,getSnapshot:g}}),b=y[0].inst,x=y[1];return s(function(){b.value=v,b.getSnapshot=g,d(b)&&x({inst:b})},[h,v,g]),o(function(){return d(b)&&x({inst:b}),h(function(){d(b)&&x({inst:b})})},[h]),l(v),v}function d(h){var g=h.getSnapshot;h=h.value;try{var v=g();return!n(h,v)}catch{return!0}}function f(h,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:c;return j_.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,j_}var sT;function UP(){return sT||(sT=1,$_.exports=V7()),$_.exports}var aT;function H7(){if(aT)return L_;aT=1;var e=ma(),t=UP();function n(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,c=e.useMemo,d=e.useDebugValue;return L_.useSyncExternalStoreWithSelector=function(f,p,h,g,v){var y=s(null);if(y.current===null){var b={hasValue:!1,value:null};y.current=b}else b=y.current;y=c(function(){function w(A){if(!E){if(E=!0,T=A,A=g(A),v!==void 0&&b.hasValue){var I=b.value;if(v(I,A))return R=I}return R=A}if(I=R,r(T,A))return I;var P=g(A);return v!==void 0&&v(I,P)?(T=A,I):(T=A,R=P)}var E=!1,T,R,O=h===void 0?null:h;return[function(){return w(p())},O===null?void 0:function(){return w(O())}]},[p,h,g,v]);var x=o(f,y[0],y[1]);return l(function(){b.hasValue=!0,b.value=x},[x]),d(x),x},L_}var lT;function q7(){return lT||(lT=1,D_.exports=H7()),D_.exports}var zP=q7();const Ice=pa(zP);function G7(e,t){return e===t}function _o(e,t,n=G7){const r=M.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:c}=e.subscribe(l);return c},[e]),o=M.useCallback(()=>e?.get(),[e]);return zP.useSyncExternalStoreWithSelector(r,o,o,t,n)}var K7={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function ul(e){const t=yo(),n=M.useContext(e.from?$7:Cg),r=e.from??n,o=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,s=M.useRef(void 0);return _o(o??K7,l=>{if((e.shouldThrow??!0)&&!l&&ls(),l===void 0)return;const c=e.select?e.select(l):l;if(e.structuralSharing??t.options.defaultStructuralSharing){const d=Xa(s.current,c);return s.current=d,d}return c})}function FP(e){return ul({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function BP(e){const{select:t,...n}=e;return ul({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function VP(e){return ul({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function HP(e){return ul({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Ag(e){const t=yo();return M.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Mce(e){const t=yo(),n=Ag(),r=M.useRef(null);return Ec(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}function qP(e){return ul({...e,select:t=>e.select?e.select(t.context):t.context})}var Ig=eP();const GP=pa(Ig);function Z7(e,t){const n=yo(),r=N8(t),{activeProps:o,inactiveProps:s,activeOptions:l,to:c,preload:d,preloadDelay:f,preloadIntentProximity:p,hashScrollIntoView:h,replace:g,startTransition:v,resetScroll:y,viewTransition:b,children:x,target:w,disabled:E,style:T,className:R,onClick:O,onBlur:A,onFocus:I,onMouseEnter:P,onMouseLeave:L,onTouchStart:H,ignoreBlocker:$,params:B,search:z,hash:K,state:oe,mask:q,reloadDocument:W,unsafeRelative:te,from:le,_fromLocation:Q,...k}=e,G=kP(),V=M.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),D=_o(n.stores.location,ne=>ne,(ne,ae)=>ne.href===ae.href),F=M.useMemo(()=>{const ne={_fromLocation:D,...V};return n.buildLocation(ne)},[n,D,V]),X=F.maskedLocation?F.maskedLocation.publicHref:F.publicHref,fe=F.maskedLocation?F.maskedLocation.external:F.external,pe=M.useMemo(()=>eU(X,fe,n.history,E),[E,fe,X,n.history]),xe=M.useMemo(()=>{if(pe?.external)return Rm(pe.href,n.protocolAllowlist)?void 0:pe.href;if(!tU(c)&&!(typeof c!="string"||c.indexOf(":")===-1))try{return new URL(c),Rm(c,n.protocolAllowlist)?void 0:c}catch{}},[c,pe,n.protocolAllowlist]),je=M.useMemo(()=>{if(xe)return!1;if(l?.exact){if(!Q8(D.pathname,F.pathname,n.basepath))return!1}else{const ne=Om(D.pathname,n.basepath),ae=Om(F.pathname,n.basepath);if(!(ne.startsWith(ae)&&(ne.length===ae.length||ne[ae.length]==="/")))return!1}return(l?.includeSearch??!0)&&!nl(D.search,F.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?G&&D.hash===F.hash:!0},[l?.exact,l?.explicitUndefined,l?.includeHash,l?.includeSearch,D,xe,G,F.hash,F.pathname,F.search,n.basepath]),Y=je?ta(o,{})??Y7:U_,re=je?U_:ta(s,{})??U_,ve=[R,Y.className,re.className].filter(Boolean).join(" "),se=(T||Y.style||re.style)&&{...T,...Y.style,...re.style},[Se,Oe]=M.useState(!1),tt=M.useRef(!1),rt=e.reloadDocument||xe?!1:d??n.options.defaultPreload,Be=f??n.options.defaultPreloadDelay??0,Qe=M.useCallback(()=>{n.preloadRoute({...V,_builtLocation:F}).catch(ne=>{console.warn(ne),console.warn(M7)})},[n,V,F]);P8(r,M.useCallback(ne=>{ne?.isIntersecting&&Qe()},[Qe]),J7,{disabled:!!E||rt!=="viewport"}),M.useEffect(()=>{tt.current||!E&&rt==="render"&&(Qe(),tt.current=!0)},[E,Qe,rt]);const Pe=ne=>{const ae=ne.currentTarget.getAttribute("target"),Re=w!==void 0?w:ae;if(!E&&!nU(ne)&&!ne.defaultPrevented&&(!Re||Re==="_self")&&ne.button===0){ne.preventDefault(),Ig.flushSync(()=>{Oe(!0)});const Ce=n.subscribe("onResolved",()=>{Ce(),Oe(!1)});n.navigate({...V,replace:g,resetScroll:y,hashScrollIntoView:h,startTransition:v,viewTransition:b,ignoreBlocker:$})}};if(xe)return{...k,ref:r,href:xe,...x&&{children:x},...w&&{target:w},...E&&{disabled:E},...T&&{style:T},...R&&{className:R},...O&&{onClick:O},...A&&{onBlur:A},...I&&{onFocus:I},...P&&{onMouseEnter:P},...L&&{onMouseLeave:L},...H&&{onTouchStart:H}};const Me=ne=>{if(E||rt!=="intent")return;if(!Be){Qe();return}const ae=ne.currentTarget;if(Ju.has(ae))return;const Re=setTimeout(()=>{Ju.delete(ae),Qe()},Be);Ju.set(ae,Re)},ze=ne=>{E||rt!=="intent"||Qe()},Z=ne=>{if(E||!rt||!Be)return;const ae=ne.currentTarget,Re=Ju.get(ae);Re&&(clearTimeout(Re),Ju.delete(ae))};return{...k,...Y,...re,href:pe?.href,ref:r,onClick:nc([O,Pe]),onBlur:nc([A,Z]),onFocus:nc([I,Me]),onMouseEnter:nc([P,Me]),onMouseLeave:nc([L,Z]),onTouchStart:nc([H,ze]),disabled:!!E,target:w,...se&&{style:se},...ve&&{className:ve},...E&&W7,...je&&Q7,...G&&Se&&X7}}var U_={},Y7={className:"active"},W7={role:"link","aria-disabled":!0},Q7={"data-status":"active","aria-current":"page"},X7={"data-transitioning":"transitioning"},Ju=new WeakMap,J7={rootMargin:"100px"},nc=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function eU(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function tU(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Rw=M.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:o,...s}=Z7(r,t),l=typeof r.children=="function"?r.children({isActive:s["data-status"]==="active"}):r.children;if(!n){const{disabled:c,...d}=s;return M.createElement("a",d,l)}return M.createElement(n,s,l)});function nU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var rU=class extends NP{constructor(e){super(e),this.useMatch=t=>ul({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>qP({...t,from:this.id}),this.useSearch=t=>HP({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>VP({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>BP({...t,from:this.id}),this.useLoaderData=t=>FP({...t,from:this.id}),this.useNavigate=()=>Ag({from:this.fullPath}),this.Link=ee.forwardRef((t,n)=>C.jsx(Rw,{ref:n,from:this.fullPath,...t}))}};function dt(e){return new rU(e)}var oU=class extends P7{constructor(e){super(e),this.useMatch=t=>ul({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>qP({...t,from:this.id}),this.useSearch=t=>HP({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>VP({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>BP({...t,from:this.id}),this.useLoaderData=t=>FP({...t,from:this.id}),this.useNavigate=()=>Ag({from:this.fullPath}),this.Link=ee.forwardRef((t,n)=>C.jsx(Rw,{ref:n,from:this.fullPath,...t}))}};function iU(e){return new oU(e)}function xt(e,t){let n,r,o,s;const l=()=>(n||(n=e().then(d=>{n=void 0,r=d[t??"default"]}).catch(d=>{if(o=d,L8(o)&&o instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const f=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(f)||(sessionStorage.setItem(f,"1"),s=!0)}})),n),c=function(f){if(s)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!r)if(L2)L2(l());else throw l();return M.createElement(r,f)};return c.preload=l,c}function sU(e){const t=yo(),n=`not-found-${_o(t.stores.location,r=>r.pathname)}-${_o(t.stores.status,r=>r)}`;return C.jsx(Ew,{getResetKey:()=>n,onCatch:(r,o)=>{if(Tr(r))e.onCatch?.(r,o);else throw r},errorComponent:({error:r})=>{if(Tr(r))return e.fallback?.(r);throw r},children:e.children})}function aU(){return C.jsx("p",{children:"Not Found"})}function _c(e){return C.jsx(C.Fragment,{children:e.children})}function KP(e,t,n){return t.options.notFoundComponent?C.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?C.jsx(e.options.defaultNotFoundComponent,{...n}):C.jsx(aU,{})}function lU(e){return null}function cU(){return lU(yo()),null}var ZP=M.memo(function({matchId:t}){const n=yo(),r=n.stores.matchStores.get(t);r||ls();const o=_o(n.stores.loadedAt,l=>l),s=_o(r,l=>l);return C.jsx(uU,{router:n,matchId:t,resetKey:o,matchState:M.useMemo(()=>{const l=s.routeId,c=n.routesById[l].parentRoute?.id;return{routeId:l,ssr:s.ssr,_displayPending:s._displayPending,parentRouteId:c}},[s._displayPending,s.routeId,s.ssr,n.routesById])})});function uU({router:e,matchId:t,resetKey:n,matchState:r}){const o=e.routesById[r.routeId],s=o.options.pendingComponent??e.options.defaultPendingComponent,l=s?C.jsx(s,{}):null,c=o.options.errorComponent??e.options.defaultErrorComponent,d=o.options.onCatch??e.options.defaultOnCatch,f=o.isRoot?o.options.notFoundComponent??e.options.notFoundRoute?.options.component:o.options.notFoundComponent,p=r.ssr===!1||r.ssr==="data-only",h=(!o.isRoot||o.options.wrapInSuspense||p)&&(o.options.wrapInSuspense??s??(o.options.errorComponent?.preload||p))?M.Suspense:_c,g=c?Ew:_c,v=f?sU:_c;return C.jsxs(o.isRoot?o.options.shellComponent??_c:_c,{children:[C.jsx(Cg.Provider,{value:t,children:C.jsx(h,{fallback:l,children:C.jsx(g,{getResetKey:()=>n,errorComponent:c||xw,onCatch:(y,b)=>{if(Tr(y))throw y.routeId??=r.routeId,y;d?.(y,b)},children:C.jsx(v,{fallback:y=>{if(y.routeId??=r.routeId,!f||y.routeId&&y.routeId!==r.routeId||!y.routeId&&!o.isRoot)throw y;return M.createElement(f,y)},children:p||r._displayPending?C.jsx(D7,{fallback:l,children:C.jsx(cT,{matchId:t})}):C.jsx(cT,{matchId:t})})})})}),r.parentRouteId===rl?C.jsxs(C.Fragment,{children:[C.jsx(dU,{resetKey:n}),e.options.scrollRestoration&&yP?C.jsx(cU,{}):null]}):null]})}function dU({resetKey:e}){const t=yo(),n=M.useRef(void 0);return Ec(()=>{const r=t.latestLocation.href;(n.current===void 0||n.current!==r)&&(t.emit({type:"onRendered",...Mc(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=r)},[t.latestLocation.state.__TSR_key,e,t]),null}var cT=M.memo(function({matchId:t}){const n=yo(),r=(p,h)=>n.getMatch(p.id)?._nonReactive[h]??p._nonReactive[h],o=n.stores.matchStores.get(t);o||ls();const s=_o(o,p=>p),l=s.routeId,c=n.routesById[l],d=M.useMemo(()=>{const p=(n.routesById[l].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:l,loaderDeps:s.loaderDeps,params:s._strictParams,search:s._strictSearch});return p?JSON.stringify(p):void 0},[l,s.loaderDeps,s._strictParams,s._strictSearch,n.options.defaultRemountDeps,n.routesById]),f=M.useMemo(()=>{const p=c.options.component??n.options.defaultComponent;return p?C.jsx(p,{},d):C.jsx(YP,{})},[d,c.options.component,n.options.defaultComponent]);if(s._displayPending)throw r(s,"displayPendingPromise");if(s._forcePending)throw r(s,"minPendingPromise");if(s.status==="pending"){const p=c.options.pendingMinMs??n.options.defaultPendingMinMs;if(p){const h=n.getMatch(s.id);if(h&&!h._nonReactive.minPendingPromise){const g=Fc();h._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),h._nonReactive.minPendingPromise=void 0},p)}}throw r(s,"loadPromise")}if(s.status==="notFound")return Tr(s.error)||ls(),KP(n,c,s.error);if(s.status==="redirected")throw Wr(s.error)||ls(),r(s,"loadPromise");if(s.status==="error")throw s.error;return f}),YP=M.memo(function(){const t=yo(),n=M.useContext(Cg);let r,o=!1,s;{const f=n?t.stores.matchStores.get(n):void 0;[r,o]=_o(f,p=>[p?.routeId,p?.globalNotFound??!1]),s=_o(t.stores.matchesId,p=>p[p.findIndex(h=>h===n)+1])}const l=r?t.routesById[r]:void 0,c=t.options.defaultPendingComponent?C.jsx(t.options.defaultPendingComponent,{}):null;if(o)return l||ls(),KP(t,l,void 0);if(!s)return null;const d=C.jsx(ZP,{matchId:s});return r===rl?C.jsx(M.Suspense,{fallback:c,children:d}):d});function fU(){const e=yo(),t=M.useRef({router:e,mounted:!1}),[n,r]=M.useState(!1),o=_o(e.stores.isLoading,h=>h),s=_o(e.stores.hasPending,h=>h),l=C_(o),c=o||n||s,d=C_(c),f=o||s,p=C_(f);return e.startTransition=h=>{r(!0),M.startTransition(()=>{h(),r(!1)})},M.useEffect(()=>{const h=e.history.subscribe(e.load),g=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ss(e.latestLocation.publicHref)!==ss(g.publicHref)&&e.commitLocation({...g,replace:!0}),()=>{h()}},[e,e.history]),Ec(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(g){console.error(g)}})()},[e]),Ec(()=>{l&&!o&&e.emit({type:"onLoad",...Mc(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,e,o]),Ec(()=>{p&&!f&&e.emit({type:"onBeforeRouteMount",...Mc(e.stores.location.get(),e.stores.resolvedLocation.get())})},[f,p,e]),Ec(()=>{if(d&&!c){const h=Mc(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...h}),$P(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())}),h.hrefChanged&&N7(e)}},[c,d,e]),null}function hU(){const e=yo(),t=e.routesById[rl].options.pendingComponent??e.options.defaultPendingComponent,n=t?C.jsx(t,{}):null,r=C.jsxs(typeof document<"u"&&e.ssr?_c:M.Suspense,{fallback:n,children:[C.jsx(fU,{}),C.jsx(pU,{})]});return e.options.InnerWrap?C.jsx(e.options.InnerWrap,{children:r}):r}function pU(){const e=yo(),t=_o(e.stores.firstId,o=>o),n=_o(e.stores.loadedAt,o=>o),r=t?C.jsx(ZP,{matchId:t}):null;return C.jsx(Cg.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:C.jsx(Ew,{getResetKey:()=>n,errorComponent:xw,onCatch:void 0,children:r})})}var mU=e=>({createMutableStore:oT,createReadonlyStore:oT,batch:$P}),gU=e=>new vU(e),vU=class extends x7{constructor(e){super(e,mU)}};function _U({router:e,children:t,...n}){wP(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=C.jsx(DP.Provider,{value:e,children:t});return e.options.Wrap?C.jsx(e.options.Wrap,{children:r}):r}function yU({router:e,...t}){return C.jsx(_U,{router:e,...t,children:C.jsx(hU,{})})}var bU={},uT={};const dm=Object.create(null),ed=e=>bU||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?dm:globalThis),ko=new Proxy(dm,{get(e,t){return ed()[t]??dm[t]},has(e,t){return t in ed()||t in dm},set(e,t,n){const r=ed(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=ed(!0);return delete n[t],!0},ownKeys(){const e=ed(!0);return Object.keys(e)}});function Fn(e,t){return typeof process<"u"&&uT?uT[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const td=1,rr=4,vi=8,ho=24,dT={eterm:rr,cons25:rr,console:rr,cygwin:rr,dtterm:rr,gnome:rr,hurd:rr,jfbterm:rr,konsole:rr,kterm:rr,mlterm:rr,mosh:ho,putty:rr,st:rr,"rxvt-unicode-24bit":ho,terminator:ho,"xterm-kitty":ho},wU=new Map(Object.entries({APPVEYOR:vi,BUILDKITE:vi,CIRCLECI:ho,DRONE:vi,GITEA_ACTIONS:ho,GITHUB_ACTIONS:ho,GITLAB_CI:vi,TRAVIS:vi})),SU=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function EU(){if(Fn("FORCE_COLOR")!==void 0)switch(Fn("FORCE_COLOR")){case"":case"1":case"true":return rr;case"2":return vi;case"3":return ho;default:return td}if(Fn("NODE_DISABLE_COLORS")!==void 0&&Fn("NODE_DISABLE_COLORS")!==""||Fn("NO_COLOR")!==void 0&&Fn("NO_COLOR")!==""||Fn("TERM")==="dumb")return td;if(Fn("TMUX"))return ho;if("TF_BUILD"in ko&&"AGENT_NAME"in ko)return rr;if("CI"in ko){for(const{0:e,1:t}of wU)if(e in ko)return t;return Fn("CI_NAME")==="codeship"?vi:td}if("TEAMCITY_VERSION"in ko)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Fn("TEAMCITY_VERSION"))!==null?rr:td;switch(Fn("TERM_PROGRAM")){case"iTerm.app":return!Fn("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Fn("TERM_PROGRAM_VERSION"))!==null?vi:ho;case"HyperTerm":case"MacTerm":return ho;case"Apple_Terminal":return vi}if(Fn("COLORTERM")==="truecolor"||Fn("COLORTERM")==="24bit")return ho;if(Fn("TERM")){if(/truecolor/.exec(Fn("TERM"))!==null)return ho;if(/^xterm-256/.exec(Fn("TERM"))!==null)return vi;const e=Fn("TERM").toLowerCase();if(dT[e])return dT[e];if(SU.some(t=>t.exec(e)!==null))return rr}return Fn("COLORTERM")?rr:td}const _i={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},kb=["debug","info","success","warn","error"];function xU(e,t){return kb.indexOf(t)>=kb.indexOf(e)}const RU={info:_i.fg.blue,success:_i.fg.green,warn:_i.fg.yellow,error:_i.fg.red,debug:_i.fg.magenta},OU=(e,t,n)=>{const r=new Date().toISOString();return n?`${_i.dim}${r}${_i.reset} ${RU[e]}${e.toUpperCase()}${_i.reset} ${_i.bright}[Better Auth]:${_i.reset} ${t}`:`${r} ${e.toUpperCase()} [Better Auth]: ${t}`},TU=e=>{const t="warn",n=EU()!==1,r=(o,s,l=[])=>{if(!xU(t,o))return;const c=OU(o,s,n);{o==="error"?console.error(c,...l):o==="warn"?console.warn(c,...l):console.log(c,...l);return}};return{...Object.fromEntries(kb.map(o=>[o,(...[s,...l])=>r(o,s,l)])),get level(){return t}}};TU();const CU=Object.freeze({status:"aborted"});function _e(e,t,n){function r(c,d){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:d,constr:l,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,d);const f=l.prototype,p=Object.keys(f);for(let h=0;h<p.length;h++){const g=p[h];g in c||(c[g]=f[g].bind(c))}}const o=n?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function l(c){var d;const f=n?.Parent?new s:this;r(f,c),(d=f._zod).deferred??(d.deferred=[]);for(const p of f._zod.deferred)p();return f}return Object.defineProperty(l,"init",{value:r}),Object.defineProperty(l,Symbol.hasInstance,{value:c=>n?.Parent&&c instanceof n.Parent?!0:c?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class Pc extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class WP extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const QP={};function ca(e){return QP}function XP(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Db(e,t){return typeof t=="bigint"?t.toString():t}function Mg(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function lf(e){return e==null}function Ow(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function AU(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let o=(r.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(r)){const d=r.match(/\d?e-(\d?)/);d?.[1]&&(o=Number.parseInt(d[1]))}const s=n>o?n:o,l=Number.parseInt(e.toFixed(s).replace(".","")),c=Number.parseInt(t.toFixed(s).replace(".",""));return l%c/10**s}const fT=Symbol("evaluating");function It(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==fT)return r===void 0&&(r=fT,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function dl(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ga(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function hT(e){return JSON.stringify(e)}function IU(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const JP="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const MU=Mg(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Bc(e){if(Gd(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Gd(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function eN(e){return Bc(e)?{...e}:Array.isArray(e)?[...e]:e}const PU=new Set(["string","number","symbol"]);function Vc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function va(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Fe(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function NU(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const kU={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function DU(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=ga(e._zod.def,{get shape(){const l={};for(const c in t){if(!(c in n.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(l[c]=n.shape[c])}return dl(this,"shape",l),l},checks:[]});return va(e,s)}function LU(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=ga(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const c in t){if(!(c in n.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete l[c]}return dl(this,"shape",l),l},checks:[]});return va(e,s)}function $U(e,t){if(!Bc(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const s=e._zod.def.shape;for(const l in t)if(Object.getOwnPropertyDescriptor(s,l)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=ga(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return dl(this,"shape",s),s}});return va(e,o)}function jU(e,t){if(!Bc(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=ga(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return dl(this,"shape",r),r}});return va(e,n)}function UU(e,t){const n=ga(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return dl(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return va(e,n)}function zU(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const l=ga(t._zod.def,{get shape(){const c=t._zod.def.shape,d={...c};if(n)for(const f in n){if(!(f in c))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(d[f]=e?new e({type:"optional",innerType:c[f]}):c[f])}else for(const f in c)d[f]=e?new e({type:"optional",innerType:c[f]}):c[f];return dl(this,"shape",d),d},checks:[]});return va(t,l)}function FU(e,t,n){const r=ga(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const l in n){if(!(l in s))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(s[l]=new e({type:"nonoptional",innerType:o[l]}))}else for(const l in o)s[l]=new e({type:"nonoptional",innerType:o[l]});return dl(this,"shape",s),s}});return va(t,r)}function xc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function el(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Hh(e){return typeof e=="string"?e:e?.message}function ua(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=Hh(e.inst?._zod.def?.error?.(e))??Hh(t?.error?.(e))??Hh(n.customError?.(e))??Hh(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function tN(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Tw(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Kd(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const nN=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Db,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Cw=_e("$ZodError",nN),Pg=_e("$ZodError",nN,{Parent:Error});function BU(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function VU(e,t=n=>n.message){const n={_errors:[]},r=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(l=>r({issues:l}));else if(s.code==="invalid_key")r({issues:s.issues});else if(s.code==="invalid_element")r({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let l=n,c=0;for(;c<s.path.length;){const d=s.path[c];c===s.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(t(s))):l[d]=l[d]||{_errors:[]},l=l[d],c++}}};return r(e),n}const Ng=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new Pc;if(l.issues.length){const c=new(o?.Err??e)(l.issues.map(d=>ua(d,s,ca())));throw JP(c,o?.callee),c}return l.value},HU=Ng(Pg),kg=e=>async(t,n,r,o)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise&&(l=await l),l.issues.length){const c=new(o?.Err??e)(l.issues.map(d=>ua(d,s,ca())));throw JP(c,o?.callee),c}return l.value},qU=kg(Pg),Dg=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Pc;return s.issues.length?{success:!1,error:new(e??Cw)(s.issues.map(l=>ua(l,o,ca())))}:{success:!0,data:s.value}},GU=Dg(Pg),Lg=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(l=>ua(l,o,ca())))}:{success:!0,data:s.value}},KU=Lg(Pg),ZU=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ng(e)(t,n,o)},YU=e=>(t,n,r)=>Ng(e)(t,n,r),WU=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return kg(e)(t,n,o)},QU=e=>async(t,n,r)=>kg(e)(t,n,r),XU=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Dg(e)(t,n,o)},JU=e=>(t,n,r)=>Dg(e)(t,n,r),ez=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Lg(e)(t,n,o)},tz=e=>async(t,n,r)=>Lg(e)(t,n,r),nz=/^[cC][^\s-]{8,}$/,rz=/^[0-9a-z]+$/,oz=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,iz=/^[0-9a-vA-V]{20}$/,sz=/^[A-Za-z0-9]{27}$/,az=/^[a-zA-Z0-9_-]{21}$/,lz=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,cz=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,pT=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,uz=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,dz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function fz(){return new RegExp(dz,"u")}const hz=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,pz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,mz=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,gz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,vz=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,rN=/^[A-Za-z0-9_-]*$/,_z=/^\+[1-9]\d{6,14}$/,oN="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",yz=new RegExp(`^${oN}$`);function iN(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function bz(e){return new RegExp(`^${iN(e)}$`)}function wz(e){const t=iN({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${oN}T(?:${r})$`)}const Sz=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Ez=/^-?\d+$/,sN=/^-?\d+(?:\.\d+)?$/,xz=/^(?:true|false)$/i,Rz=/^null$/i,Oz=/^undefined$/i,Tz=/^[^A-Z]*$/,Cz=/^[^a-z]*$/,_r=_e("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),aN={number:"number",bigint:"bigint",object:"date"},lN=_e("$ZodCheckLessThan",(e,t)=>{_r.init(e,t);const n=aN[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cN=_e("$ZodCheckGreaterThan",(e,t)=>{_r.init(e,t);const n=aN[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Az=_e("$ZodCheckMultipleOf",(e,t)=>{_r.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):AU(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Iz=_e("$ZodCheckNumberFormat",(e,t)=>{_r.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[o,s]=kU[t.format];e._zod.onattach.push(l=>{const c=l._zod.bag;c.format=t.format,c.minimum=o,c.maximum=s,n&&(c.pattern=Ez)}),e._zod.check=l=>{const c=l.value;if(n){if(!Number.isInteger(c)){l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?l.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}c<o&&l.issues.push({origin:"number",input:c,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),c>s&&l.issues.push({origin:"number",input:c,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),Mz=_e("$ZodCheckMaxSize",(e,t)=>{var n;_r.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!lf(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;o.size<=t.maximum||r.issues.push({origin:tN(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Pz=_e("$ZodCheckMinSize",(e,t)=>{var n;_r.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!lf(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;o.size>=t.minimum||r.issues.push({origin:tN(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Nz=_e("$ZodCheckMaxLength",(e,t)=>{var n;_r.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!lf(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const l=Tw(o);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),kz=_e("$ZodCheckMinLength",(e,t)=>{var n;_r.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!lf(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const l=Tw(o);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Dz=_e("$ZodCheckLengthEquals",(e,t)=>{var n;_r.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!lf(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,s=o.length;if(s===t.length)return;const l=Tw(o),c=s>t.length;r.issues.push({origin:l,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),$g=_e("$ZodCheckStringFormat",(e,t)=>{var n,r;_r.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Lz=_e("$ZodCheckRegex",(e,t)=>{$g.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),$z=_e("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Tz),$g.init(e,t)}),jz=_e("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Cz),$g.init(e,t)}),Uz=_e("$ZodCheckIncludes",(e,t)=>{_r.init(e,t);const n=Vc(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),zz=_e("$ZodCheckStartsWith",(e,t)=>{_r.init(e,t);const n=new RegExp(`^${Vc(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Fz=_e("$ZodCheckEndsWith",(e,t)=>{_r.init(e,t);const n=new RegExp(`.*${Vc(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Bz=_e("$ZodCheckMimeType",(e,t)=>{_r.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Vz=_e("$ZodCheckOverwrite",(e,t)=>{_r.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Hz{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
11
11
|
`).filter(l=>l),o=Math.min(...r.map(l=>l.length-l.trimStart().length)),s=r.map(l=>l.slice(o)).map(l=>" ".repeat(this.indent*2)+l);for(const l of s)this.content.push(l)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,o.join(`
|
|
12
12
|
`))}}const qz={major:4,minor:3,patch:6},Bt=_e("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=qz;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const s of o._zod.onattach)s(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(l,c,d)=>{let f=xc(l),p;for(const h of c){if(h._zod.def.when){if(!h._zod.def.when(l))continue}else if(f)continue;const g=l.issues.length,v=h._zod.check(l);if(v instanceof Promise&&d?.async===!1)throw new Pc;if(p||v instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await v,l.issues.length!==g&&(f||(f=xc(l,g)))});else{if(l.issues.length===g)continue;f||(f=xc(l,g))}}return p?p.then(()=>l):l},s=(l,c,d)=>{if(xc(l))return l.aborted=!0,l;const f=o(c,r,d);if(f instanceof Promise){if(d.async===!1)throw new Pc;return f.then(p=>e._zod.parse(p,d))}return e._zod.parse(f,d)};e._zod.run=(l,c)=>{if(c.skipChecks)return e._zod.parse(l,c);if(c.direction==="backward"){const f=e._zod.parse({value:l.value,issues:[]},{...c,skipChecks:!0});return f instanceof Promise?f.then(p=>s(p,l,c)):s(f,l,c)}const d=e._zod.parse(l,c);if(d instanceof Promise){if(c.async===!1)throw new Pc;return d.then(f=>o(f,r,c))}return o(d,r,c)}}It(e,"~standard",()=>({validate:o=>{try{const s=GU(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return KU(e,o).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}))}),Aw=_e("$ZodString",(e,t)=>{Bt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Sz(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),gn=_e("$ZodStringFormat",(e,t)=>{$g.init(e,t),Aw.init(e,t)}),Gz=_e("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=cz),gn.init(e,t)}),Kz=_e("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=pT(r))}else t.pattern??(t.pattern=pT());gn.init(e,t)}),Zz=_e("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=uz),gn.init(e,t)}),Yz=_e("$ZodURL",(e,t)=>{gn.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Wz=_e("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=fz()),gn.init(e,t)}),Qz=_e("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=az),gn.init(e,t)}),Xz=_e("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=nz),gn.init(e,t)}),Jz=_e("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=rz),gn.init(e,t)}),e9=_e("$ZodULID",(e,t)=>{t.pattern??(t.pattern=oz),gn.init(e,t)}),t9=_e("$ZodXID",(e,t)=>{t.pattern??(t.pattern=iz),gn.init(e,t)}),n9=_e("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=sz),gn.init(e,t)}),r9=_e("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=wz(t)),gn.init(e,t)}),o9=_e("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=yz),gn.init(e,t)}),i9=_e("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=bz(t)),gn.init(e,t)}),s9=_e("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=lz),gn.init(e,t)}),a9=_e("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=hz),gn.init(e,t),e._zod.bag.format="ipv4"}),l9=_e("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=pz),gn.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),c9=_e("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=mz),gn.init(e,t)}),u9=_e("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=gz),gn.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,s]=r;if(!s)throw new Error;const l=Number(s);if(`${l}`!==s)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function uN(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const d9=_e("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=vz),gn.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{uN(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function f9(e){if(!rN.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return uN(n)}const h9=_e("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=rN),gn.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{f9(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),p9=_e("$ZodE164",(e,t)=>{t.pattern??(t.pattern=_z),gn.init(e,t)});function m9(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const g9=_e("$ZodJWT",(e,t)=>{gn.init(e,t),e._zod.check=n=>{m9(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),dN=_e("$ZodNumber",(e,t)=>{Bt.init(e,t),e._zod.pattern=e._zod.bag.pattern??sN,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const s=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...s?{received:s}:{}}),n}}),v9=_e("$ZodNumberFormat",(e,t)=>{Iz.init(e,t),dN.init(e,t)}),_9=_e("$ZodBoolean",(e,t)=>{Bt.init(e,t),e._zod.pattern=xz,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),y9=_e("$ZodUndefined",(e,t)=>{Bt.init(e,t),e._zod.pattern=Oz,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,r)=>{const o=n.value;return typeof o>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),n}}),b9=_e("$ZodNull",(e,t)=>{Bt.init(e,t),e._zod.pattern=Rz,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),w9=_e("$ZodAny",(e,t)=>{Bt.init(e,t),e._zod.parse=n=>n}),S9=_e("$ZodUnknown",(e,t)=>{Bt.init(e,t),e._zod.parse=n=>n}),E9=_e("$ZodNever",(e,t)=>{Bt.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function mT(e,t,n){e.issues.length&&t.issues.push(...el(n,e.issues)),t.value[n]=e.value}const x9=_e("$ZodArray",(e,t)=>{Bt.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let l=0;l<o.length;l++){const c=o[l],d=t.element._zod.run({value:c,issues:[]},r);d instanceof Promise?s.push(d.then(f=>mT(f,n,l))):mT(d,n,l)}return s.length?Promise.all(s).then(()=>n):n}});function Im(e,t,n,r,o){if(e.issues.length){if(o&&!(n in r))return;t.issues.push(...el(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function fN(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=NU(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function hN(e,t,n,r,o,s){const l=[],c=o.keySet,d=o.catchall._zod,f=d.def.type,p=d.optout==="optional";for(const h in t){if(c.has(h))continue;if(f==="never"){l.push(h);continue}const g=d.run({value:t[h],issues:[]},r);g instanceof Promise?e.push(g.then(v=>Im(v,n,h,t,p))):Im(g,n,h,t,p)}return l.length&&n.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const R9=_e("$ZodObject",(e,t)=>{if(Bt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const c=t.shape;Object.defineProperty(t,"shape",{get:()=>{const d={...c};return Object.defineProperty(t,"shape",{value:d}),d}})}const r=Mg(()=>fN(t));It(e._zod,"propValues",()=>{const c=t.shape,d={};for(const f in c){const p=c[f]._zod;if(p.values){d[f]??(d[f]=new Set);for(const h of p.values)d[f].add(h)}}return d});const o=Gd,s=t.catchall;let l;e._zod.parse=(c,d)=>{l??(l=r.value);const f=c.value;if(!o(f))return c.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),c;c.value={};const p=[],h=l.shape;for(const g of l.keys){const v=h[g],y=v._zod.optout==="optional",b=v._zod.run({value:f[g],issues:[]},d);b instanceof Promise?p.push(b.then(x=>Im(x,c,g,f,y))):Im(b,c,g,f,y)}return s?hN(p,f,c,d,r.value,e):p.length?Promise.all(p).then(()=>c):c}}),O9=_e("$ZodObjectJIT",(e,t)=>{R9.init(e,t);const n=e._zod.parse,r=Mg(()=>fN(t)),o=g=>{const v=new Hz(["shape","payload","ctx"]),y=r.value,b=T=>{const R=hT(T);return`shape[${R}]._zod.run({ value: input[${R}], issues: [] }, ctx)`};v.write("const input = payload.value;");const x=Object.create(null);let w=0;for(const T of y.keys)x[T]=`key_${w++}`;v.write("const newResult = {};");for(const T of y.keys){const R=x[T],O=hT(T),I=g[T]?._zod?.optout==="optional";v.write(`const ${R} = ${b(T)};`),I?v.write(`
|
|
13
13
|
if (${R}.issues.length) {
|
|
@@ -153,7 +153,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
153
153
|
display: none;
|
|
154
154
|
}
|
|
155
155
|
`})]})]})}function Ii({redirectTo:e}){const{redirectTo:t}=M.useContext(mt),[n,r]=M.useState(!1),{navigate:o,hooks:{useSession:s},onSessionChange:l}=M.useContext(mt),{refetch:c}=s();return{onSuccess:M.useCallback(async()=>{r(!0),await c?.(),l&&await l(),r(!1);const f=e||pl("redirectTo")||t;o(f)},[c,l,o,e,t]),isPending:n}}function J5({redirectTo:e}){const{hooks:{useIsRestoring:t},persistClient:n}=M.useContext(mt),r=t?.(),o=M.useRef(!1),{onSuccess:s}=Ii({redirectTo:e});return M.useEffect(()=>{if(!o.current){if(!n){o.current=!0,s();return}r||(o.current=!0,s())}},[r,n,s]),C.jsx(Cr,{className:"animate-spin"})}function AS({className:e,containerClassName:t,...n}){return C.jsx(j5,{"data-slot":"input-otp",containerClassName:Te("flex items-center gap-2 has-disabled:opacity-50",t),className:Te("disabled:cursor-not-allowed",e),...n})}function uc({className:e,...t}){return C.jsx("div",{"data-slot":"input-otp-group",className:Te("flex items-center",e),...t})}function nr({index:e,className:t,...n}){const r=M.useContext($5),{char:o,hasFakeCaret:s,isActive:l}=r?.slots[e]??{};return C.jsxs("div",{"data-slot":"input-otp-slot","data-active":l,className:Te("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...n,children:[o,s&&C.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:C.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function $y({...e}){return C.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:C.jsx(rK,{})})}function IS({otpSeparators:e=0}){return e===0?C.jsxs(uc,{children:[C.jsx(nr,{index:0}),C.jsx(nr,{index:1}),C.jsx(nr,{index:2}),C.jsx(nr,{index:3}),C.jsx(nr,{index:4}),C.jsx(nr,{index:5})]}):e===1?C.jsxs(C.Fragment,{children:[C.jsxs(uc,{children:[C.jsx(nr,{index:0}),C.jsx(nr,{index:1}),C.jsx(nr,{index:2})]}),C.jsx($y,{}),C.jsxs(uc,{children:[C.jsx(nr,{index:3}),C.jsx(nr,{index:4}),C.jsx(nr,{index:5})]})]}):C.jsxs(C.Fragment,{children:[C.jsxs(uc,{children:[C.jsx(nr,{index:0}),C.jsx(nr,{index:1})]}),C.jsx($y,{}),C.jsxs(uc,{children:[C.jsx(nr,{index:2}),C.jsx(nr,{index:3})]}),C.jsx($y,{}),C.jsxs(uc,{children:[C.jsx(nr,{index:4}),C.jsx(nr,{index:5})]})]})}function bA(e){const[t,n]=M.useState();return t?C.jsx(Lte,{...e,email:t}):C.jsx(Dte,{...e,setEmail:n})}function Dte({className:e,classNames:t,isSubmitting:n,localization:r,setIsSubmitting:o,setEmail:s}){const l=ds(),{captchaRef:c,getCaptchaHeaders:d}=yf({localization:r}),{authClient:f,localization:p,toast:h,localizeErrors:g}=M.useContext(mt);r={...p,...r};const v=we({email:j().email({message:`${r.EMAIL} ${r.IS_INVALID}`})}),y=Oi({resolver:Ti(v),defaultValues:{email:""}});n=n||y.formState.isSubmitting,M.useEffect(()=>{o?.(y.formState.isSubmitting)},[y.formState.isSubmitting,o]);async function b({email:x}){const w={throw:!0,headers:await d("/email-otp/send-verification-otp")};try{await f.emailOtp.sendVerificationOtp({email:x,type:"sign-in",fetchOptions:w}),h({variant:"success",message:r.EMAIL_OTP_VERIFICATION_SENT}),s(x)}catch(E){h({variant:"error",message:Dn({error:E,localization:r,localizeErrors:g})})}}return C.jsx(Ai,{...y,children:C.jsxs("form",{method:"POST",onSubmit:y.handleSubmit(b),noValidate:l,className:Te("grid w-full gap-6",e,t?.base),children:[C.jsx(Mn,{control:y.control,name:"email",render:({field:x})=>C.jsxs(Pn,{children:[C.jsx(Nn,{className:t?.label,children:r.EMAIL}),C.jsx(Hn,{children:C.jsx(ti,{className:t?.input,type:"email",placeholder:r.EMAIL_PLACEHOLDER,disabled:n,...x})}),C.jsx(Yn,{className:t?.error})]})}),C.jsx(bf,{ref:c,localization:r,action:"/email-otp/send-verification-otp"}),C.jsx(rn,{type:"submit",disabled:n,className:Te("w-full",t?.button,t?.primaryButton),children:n?C.jsx(Cr,{className:"animate-spin"}):r.EMAIL_OTP_SEND_ACTION})]})})}function Lte({className:e,classNames:t,isSubmitting:n,localization:r,otpSeparators:o=0,redirectTo:s,setIsSubmitting:l,email:c}){const{authClient:d,localization:f,toast:p,localizeErrors:h}=M.useContext(mt);r={...f,...r};const{onSuccess:g,isPending:v}=Ii({redirectTo:s}),y=we({code:j().min(1,{message:`${r.EMAIL_OTP} ${r.IS_REQUIRED}`}).min(6,{message:`${r.EMAIL_OTP} ${r.IS_INVALID}`})}),b=Oi({resolver:Ti(y),defaultValues:{code:""}});n=n||b.formState.isSubmitting||v,M.useEffect(()=>{l?.(b.formState.isSubmitting||v)},[b.formState.isSubmitting,v,l]);async function x({code:w}){try{await d.signIn.emailOtp({email:c,otp:w,fetchOptions:{throw:!0}}),await g()}catch(E){p({variant:"error",message:Dn({error:E,localization:r,localizeErrors:h})}),b.reset()}}return C.jsx(Ai,{...b,children:C.jsxs("form",{method:"POST",onSubmit:b.handleSubmit(x),className:Te("grid w-full gap-6",e,t?.base),children:[C.jsx(Mn,{control:b.control,name:"code",render:({field:w})=>C.jsxs(Pn,{children:[C.jsx(Nn,{className:t?.label,children:r.EMAIL_OTP}),C.jsx(Hn,{children:C.jsx(AS,{...w,maxLength:6,onChange:E=>{w.onChange(E),E.length===6&&b.handleSubmit(x)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:n,children:C.jsx(IS,{otpSeparators:o})})}),C.jsx(Yn,{className:t?.error})]})}),C.jsx("div",{className:"grid gap-4",children:C.jsxs(rn,{type:"submit",disabled:n,className:Te(t?.button,t?.primaryButton),children:[n&&C.jsx(Cr,{className:"animate-spin"}),r.EMAIL_OTP_VERIFY_ACTION]})})]})})}function $te({onCancel:e,localization:t,className:n,classNames:r,otpSeparators:o,callbackURL:s,isSubmitting:l,redirectTo:c,setIsSubmitting:d}){const[f,p]=M.useState(!0),[h,g]=M.useState(30),{authClient:v,localization:y,toast:b,localizeErrors:x,navigate:w,basePath:E,viewPaths:T}=M.useContext(mt);t={...y,...t};const R=typeof window<"u"&&new URLSearchParams(window.location.search).get("email")||"",{onSuccess:O,isPending:A}=Ii({redirectTo:c}),I=we({code:j().min(1,{message:`${t.EMAIL_OTP} ${t.IS_REQUIRED}`}).min(6,{message:`${t.EMAIL_OTP} ${t.IS_INVALID}`})}),P=Oi({resolver:Ti(I),defaultValues:{code:""}}),L=l||P.formState.isSubmitting||A;M.useEffect(()=>{d?.(P.formState.isSubmitting||A)},[P.formState.isSubmitting,A,d]),M.useEffect(()=>{if(h>0){const B=setTimeout(()=>g(h-1),1e3);return()=>clearTimeout(B)}else p(!1)},[h]);async function H({code:B}){try{const z=await v.emailOtp.verifyEmail({email:R,otp:B,fetchOptions:{throw:!0}});"token"in z&&z.token?await O():(w(`${E}/${T.SIGN_IN}${window.location.search}`),b({variant:"success",message:t.EMAIL_VERIFICATION_SUCCESS}))}catch(z){b({variant:"error",message:Dn({error:z,localization:t,localizeErrors:x})}),P.reset()}}async function $(){if(!f){p(!0),g(30);try{await v.emailOtp.sendVerificationOtp({email:R,type:"email-verification",fetchOptions:{throw:!0}}),b({variant:"success",message:t.EMAIL_OTP_VERIFICATION_SENT})}catch(B){b({variant:"error",message:Dn({error:B,localization:t,localizeErrors:x})}),p(!1),g(0)}}}return R?C.jsx(Ai,{...P,children:C.jsxs("form",{method:"POST",onSubmit:P.handleSubmit(H),className:Te("grid w-full gap-6",n,r?.base),children:[C.jsx(Mn,{control:P.control,name:"code",render:({field:B})=>C.jsxs(Pn,{children:[C.jsx(Nn,{className:r?.label,children:t.EMAIL_OTP}),C.jsx(Hn,{children:C.jsx(AS,{...B,maxLength:6,onChange:z=>{B.onChange(z),z.length===6&&P.handleSubmit(H)()},containerClassName:r?.otpInputContainer,className:r?.otpInput,disabled:L,children:C.jsx(IS,{otpSeparators:o})})}),C.jsx(Yn,{className:r?.error})]})}),C.jsxs("div",{className:"grid gap-4",children:[C.jsxs(rn,{type:"submit",disabled:L,className:Te(r?.button,r?.primaryButton),children:[L&&C.jsx(Cr,{className:"animate-spin"}),t.EMAIL_OTP_VERIFY_ACTION]}),C.jsx(rn,{type:"button",variant:"outline",onClick:$,disabled:f||L,className:Te("w-full",r?.button),children:f?`${t.RESEND_VERIFICATION_EMAIL} (${h}s)`:t.RESEND_VERIFICATION_EMAIL}),e&&C.jsx(rn,{type:"button",variant:"ghost",onClick:e,disabled:L,className:"w-full",children:t.CANCEL})]})]})}):C.jsx("div",{className:Te("grid w-full gap-6",n),children:C.jsxs("div",{className:"text-center",children:[C.jsx("h2",{className:"font-semibold text-destructive text-lg",children:"Invalid Request"}),C.jsx("p",{className:"text-muted-foreground text-sm",children:t.EMAIL_REQUIRED||"Email address is required"})]})})}function jte({className:e,classNames:t,isSubmitting:n,localization:r,setIsSubmitting:o}){const s=ds(),{captchaRef:l,getCaptchaHeaders:c,resetCaptcha:d}=yf({localization:r}),{authClient:f,basePath:p,baseURL:h,localization:g,navigate:v,toast:y,viewPaths:b,localizeErrors:x}=M.useContext(mt);r={...g,...r};const w=we({email:j().email({message:`${r.EMAIL} ${r.IS_INVALID}`}).min(1,{message:`${r.EMAIL} ${r.IS_REQUIRED}`})}),E=Oi({resolver:Ti(w),defaultValues:{email:""}});n=n||E.formState.isSubmitting,M.useEffect(()=>{o?.(E.formState.isSubmitting)},[E.formState.isSubmitting,o]);async function T({email:R}){try{const O={throw:!0,headers:await c("/forget-password")};await f.requestPasswordReset({email:R,redirectTo:`${h}${p}/${b.RESET_PASSWORD}`,fetchOptions:O}),y({variant:"success",message:r.FORGOT_PASSWORD_EMAIL}),v(`${p}/${b.SIGN_IN}${window.location.search}`)}catch(O){y({variant:"error",message:Dn({error:O,localization:r,localizeErrors:x})}),d()}}return C.jsx(Ai,{...E,children:C.jsxs("form",{method:"POST",onSubmit:E.handleSubmit(T),noValidate:s,className:Te("grid w-full gap-6",e,t?.base),children:[C.jsx(Mn,{control:E.control,name:"email",render:({field:R})=>C.jsxs(Pn,{children:[C.jsx(Nn,{className:t?.label,children:r.EMAIL}),C.jsx(Hn,{children:C.jsx(ti,{className:t?.input,type:"email",placeholder:r.EMAIL_PLACEHOLDER,disabled:n,...R})}),C.jsx(Yn,{className:t?.error})]})}),C.jsx(bf,{ref:l,localization:r,action:"/forget-password"}),C.jsx(rn,{type:"submit",disabled:n,className:Te("w-full",t?.button,t?.primaryButton),children:n?C.jsx(Cr,{className:"animate-spin"}):r.FORGOT_PASSWORD_ACTION})]})})}function wA({className:e,classNames:t,callbackURL:n,isSubmitting:r,localization:o,redirectTo:s,setIsSubmitting:l}){const c=ds(),{captchaRef:d,getCaptchaHeaders:f,resetCaptcha:p}=yf({localization:o}),{authClient:h,basePath:g,baseURL:v,persistClient:y,localization:b,redirectTo:x,viewPaths:w,toast:E,localizeErrors:T}=M.useContext(mt);o={...b,...o};const R=M.useCallback(()=>s||pl("redirectTo")||x,[s,x]),O=M.useCallback(()=>`${v}${n||(y?`${g}/${w.CALLBACK}?redirectTo=${encodeURIComponent(R())}`:R())}`,[n,y,g,w,v,R]),A=we({email:j().email({message:`${o.EMAIL} ${o.IS_INVALID}`})}),I=Oi({resolver:Ti(A),defaultValues:{email:""}});r=r||I.formState.isSubmitting,M.useEffect(()=>{l?.(I.formState.isSubmitting)},[I.formState.isSubmitting,l]);async function P({email:L}){try{const H={throw:!0,headers:await f("/sign-in/magic-link")};await h.signIn.magicLink({email:L,callbackURL:O(),fetchOptions:H}),E({variant:"success",message:o.MAGIC_LINK_EMAIL}),I.reset()}catch(H){E({variant:"error",message:Dn({error:H,localization:o,localizeErrors:T})}),p()}}return C.jsx(Ai,{...I,children:C.jsxs("form",{method:"POST",onSubmit:I.handleSubmit(P),noValidate:c,className:Te("grid w-full gap-6",e,t?.base),children:[C.jsx(Mn,{control:I.control,name:"email",render:({field:L})=>C.jsxs(Pn,{children:[C.jsx(Nn,{className:t?.label,children:o.EMAIL}),C.jsx(Hn,{children:C.jsx(ti,{className:t?.input,type:"email",placeholder:o.EMAIL_PLACEHOLDER,disabled:r,...L})}),C.jsx(Yn,{className:t?.error})]})}),C.jsx(bf,{ref:d,localization:o,action:"/sign-in/magic-link"}),C.jsx(rn,{type:"submit",disabled:r,className:Te("w-full",t?.button,t?.primaryButton),children:r?C.jsx(Cr,{className:"animate-spin"}):o.MAGIC_LINK_ACTION})]})})}function Ute({className:e,classNames:t,isSubmitting:n,localization:r,redirectTo:o,setIsSubmitting:s}){const{authClient:l,localization:c,toast:d,localizeErrors:f}=M.useContext(mt);r={...c,...r};const{onSuccess:p,isPending:h}=Ii({redirectTo:o}),g=we({code:j().min(1,{message:r.BACKUP_CODE_REQUIRED})}),v=Oi({resolver:Ti(g),defaultValues:{code:""}});n=n||v.formState.isSubmitting||h,M.useEffect(()=>{s?.(v.formState.isSubmitting||h)},[v.formState.isSubmitting,h,s]);async function y({code:b}){try{await l.twoFactor.verifyBackupCode({code:b,fetchOptions:{throw:!0}}),await p()}catch(x){d({variant:"error",message:Dn({error:x,localization:r,localizeErrors:f})}),v.reset()}}return C.jsx(Ai,{...v,children:C.jsxs("form",{method:"POST",onSubmit:v.handleSubmit(y),className:Te("grid gap-6",e,t?.base),children:[C.jsx(Mn,{control:v.control,name:"code",render:({field:b})=>C.jsxs(Pn,{children:[C.jsx(Nn,{className:t?.label,children:r.BACKUP_CODE}),C.jsx(Hn,{children:C.jsx(ti,{placeholder:r.BACKUP_CODE_PLACEHOLDER,autoComplete:"off",className:t?.input,disabled:n,...b})}),C.jsx(Yn,{className:t?.error})]})}),C.jsx(rn,{type:"submit",disabled:n,className:Te(t?.button,t?.primaryButton),children:n?C.jsx(Cr,{className:"animate-spin"}):r.RECOVER_ACCOUNT_ACTION})]})})}function zte({className:e,classNames:t,localization:n,passwordValidation:r}){const o=M.useRef(!1),{authClient:s,basePath:l,credentials:c,localization:d,viewPaths:f,navigate:p,toast:h,localizeErrors:g}=M.useContext(mt),v=c?.confirmPassword,y=c?.passwordValidation;n={...d,...n},r={...y,...r};const b=we({newPassword:Zd(r,{PASSWORD_REQUIRED:n.NEW_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:n.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:n.PASSWORD_TOO_LONG,INVALID_PASSWORD:n.INVALID_PASSWORD}),confirmPassword:v?Zd(r,{PASSWORD_REQUIRED:n.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:n.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:n.PASSWORD_TOO_LONG,INVALID_PASSWORD:n.INVALID_PASSWORD}):j().optional()}).refine(T=>!v||T.newPassword===T.confirmPassword,{message:n.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),x=Oi({resolver:Ti(b),defaultValues:{newPassword:"",confirmPassword:""}}),w=x.formState.isSubmitting;M.useEffect(()=>{if(o.current)return;o.current=!0;const R=new URLSearchParams(window.location.search).get("token");(!R||R==="INVALID_TOKEN")&&(p(`${l}/${f.SIGN_IN}${window.location.search}`),h({variant:"error",message:n.INVALID_TOKEN}))},[l,p,h,f,n]);async function E({newPassword:T}){try{const O=new URLSearchParams(window.location.search).get("token");await s.resetPassword({newPassword:T,token:O,fetchOptions:{throw:!0}}),h({variant:"success",message:n.RESET_PASSWORD_SUCCESS}),p(`${l}/${f.SIGN_IN}${window.location.search}`)}catch(R){h({variant:"error",message:Dn({error:R,localization:n,localizeErrors:g})}),x.reset()}}return C.jsx(Ai,{...x,children:C.jsxs("form",{method:"POST",onSubmit:x.handleSubmit(E),className:Te("grid w-full gap-6",e,t?.base),children:[C.jsx(Mn,{control:x.control,name:"newPassword",render:({field:T})=>C.jsxs(Pn,{children:[C.jsx(Nn,{className:t?.label,children:n.NEW_PASSWORD}),C.jsx(Hn,{children:C.jsx(tf,{autoComplete:"new-password",className:t?.input,placeholder:n.NEW_PASSWORD_PLACEHOLDER,disabled:w,...T})}),C.jsx(Yn,{className:t?.error})]})}),v&&C.jsx(Mn,{control:x.control,name:"confirmPassword",render:({field:T})=>C.jsxs(Pn,{children:[C.jsx(Nn,{className:t?.label,children:n.CONFIRM_PASSWORD}),C.jsx(Hn,{children:C.jsx(tf,{autoComplete:"new-password",className:t?.input,placeholder:n.CONFIRM_PASSWORD_PLACEHOLDER,disabled:w,...T})}),C.jsx(Yn,{className:t?.error})]})}),C.jsx(rn,{type:"submit",disabled:w,className:Te("w-full",t?.button,t?.primaryButton),children:w?C.jsx(Cr,{className:"animate-spin"}):n.RESET_PASSWORD_ACTION})]})})}function Fte({className:e,classNames:t,isSubmitting:n,localization:r,redirectTo:o,setIsSubmitting:s,passwordValidation:l,callbackURL:c}){const d=ds(),{captchaRef:f,getCaptchaHeaders:p,resetCaptcha:h}=yf({localization:r}),{authClient:g,basePath:v,credentials:y,localization:b,viewPaths:x,navigate:w,toast:E,Link:T,localizeErrors:R,emailVerification:O}=M.useContext(mt),A=y?.rememberMe,I=y?.username,P=y?.passwordValidation;r={...b,...r},l={...P,...l};const{onSuccess:L,isPending:H}=Ii({redirectTo:o}),$=we({email:I?j().min(1,{message:`${r.USERNAME} ${r.IS_REQUIRED}`}):j().email({message:`${r.EMAIL} ${r.IS_INVALID}`}),password:Zd(l,r),rememberMe:Nt().optional()}),B=Oi({resolver:Ti($),defaultValues:{email:"",password:"",rememberMe:!A}});n=n||B.formState.isSubmitting||H,M.useEffect(()=>{s?.(B.formState.isSubmitting||H)},[B.formState.isSubmitting,H,s]);async function z({email:K,password:oe,rememberMe:q}){var W;try{let te={};if(I&&!Iq(K)){const le={throw:!0,headers:await p("/sign-in/username")};te=await g.signIn.username({username:K,password:oe,rememberMe:q,fetchOptions:le,callbackURL:c})}else{const le={throw:!0,headers:await p("/sign-in/email")};te=await g.signIn.email({email:K,password:oe,rememberMe:q,fetchOptions:le,callbackURL:c})}te.twoFactorRedirect?w(`${v}/${x.TWO_FACTOR}${window.location.search}`):await L()}catch(te){B.resetField("password"),h(),E({variant:"error",message:Dn({error:te,localization:r,localizeErrors:R})}),O?.otp&&((W=te?.error)==null?void 0:W.code)==="EMAIL_NOT_VERIFIED"&&w(`${v}/${x.EMAIL_VERIFICATION}?email=${encodeURIComponent(K)}`)}}return C.jsx(Ai,{...B,children:C.jsxs("form",{method:"POST",onSubmit:B.handleSubmit(z),noValidate:d,className:Te("grid w-full gap-6",e,t?.base),children:[C.jsx(Mn,{control:B.control,name:"email",render:({field:K})=>C.jsxs(Pn,{children:[C.jsx(Nn,{className:t?.label,children:I?r.USERNAME:r.EMAIL}),C.jsx(Hn,{children:C.jsx(ti,{autoComplete:I?"username":"email",className:t?.input,type:I?"text":"email",placeholder:I?r.SIGN_IN_USERNAME_PLACEHOLDER:r.EMAIL_PLACEHOLDER,disabled:n,...K})}),C.jsx(Yn,{className:t?.error})]})}),C.jsx(Mn,{control:B.control,name:"password",render:({field:K})=>C.jsxs(Pn,{children:[C.jsxs("div",{className:"flex items-center justify-between",children:[C.jsx(Nn,{className:t?.label,children:r.PASSWORD}),y?.forgotPassword&&C.jsx(T,{className:Te("text-sm hover:underline",t?.forgotPasswordLink),href:`${v}/${x.FORGOT_PASSWORD}${d?window.location.search:""}`,children:r.FORGOT_PASSWORD_LINK})]}),C.jsx(Hn,{children:C.jsx(tf,{autoComplete:"current-password",className:t?.input,placeholder:r.PASSWORD_PLACEHOLDER,disabled:n,...K})}),C.jsx(Yn,{className:t?.error})]})}),A&&C.jsx(Mn,{control:B.control,name:"rememberMe",render:({field:K})=>C.jsxs(Pn,{className:"flex",children:[C.jsx(Hn,{children:C.jsx(CS,{checked:K.value,onCheckedChange:K.onChange,disabled:n})}),C.jsx(Nn,{children:r.REMEMBER_ME})]})}),C.jsx(bf,{ref:f,localization:r,action:"/sign-in/email"}),C.jsx(rn,{type:"submit",disabled:n,className:Te("w-full",t?.button,t?.primaryButton),children:n?C.jsx(Cr,{className:"animate-spin"}):r.SIGN_IN_ACTION})]})})}function Bte({className:e,classNames:t,callbackURL:n,isSubmitting:r,localization:o,redirectTo:s,setIsSubmitting:l,passwordValidation:c}){var d,f,p,h,g,v;const y=ds(),{captchaRef:b,getCaptchaHeaders:x,resetCaptcha:w}=yf({localization:o}),{additionalFields:E,authClient:T,basePath:R,baseURL:O,credentials:A,localization:I,nameRequired:P,persistClient:L,redirectTo:H,signUp:$,viewPaths:B,navigate:z,toast:K,avatar:oe,localizeErrors:q,emailVerification:W}=M.useContext(mt),te=A?.confirmPassword,le=A?.username,Q=A?.usernameRequired??!0,k=A?.passwordValidation,G=$?.fields;o={...I,...o},c={...k,...c};const V=M.useRef(null),[D,F]=M.useState(null),[X,fe]=M.useState(!1),pe=M.useCallback(()=>s||pl("redirectTo")||H,[s,H]),xe=M.useCallback(()=>`${O}${n||(L?`${R}/${B.CALLBACK}?redirectTo=${encodeURIComponent(pe())}`:pe())}`,[n,L,R,B,O,pe]),{onSuccess:je,isPending:Y}=Ii({redirectTo:s}),re={email:j().email({message:`${o.EMAIL} ${o.IS_INVALID}`}),password:Zd(c,o),name:G?.includes("name")&&P?j().min(1,{message:`${o.NAME} ${o.IS_REQUIRED}`}):j().optional(),image:j().optional(),username:le&&Q?j().min(1,{message:`${o.USERNAME} ${o.IS_REQUIRED}`}):j().optional(),confirmPassword:te?Zd(c,{PASSWORD_REQUIRED:o.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:o.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:o.PASSWORD_TOO_LONG,INVALID_PASSWORD:o.INVALID_PASSWORD}):j().optional()},ve={};if(G)for(const Pe of G){if(Pe==="name"||Pe==="image")continue;const Me=E?.[Pe];if(!Me)continue;let ze;Me.type==="number"?ze=Me.required?Lw(Z=>Z?Number(Z):void 0,ut({message:((d=Me.errorMessage)==null?void 0:d.invalid)??`${Me.label} ${o.IS_INVALID}`})):t3({message:((f=Me.errorMessage)==null?void 0:f.invalid)??`${Me.label} ${o.IS_INVALID}`}).optional():Me.type==="boolean"?ze=Me.required?PT({message:((p=Me.errorMessage)==null?void 0:p.invalid)??`${Me.label} ${o.IS_INVALID}`}).refine(Z=>Z===!0,{message:((h=Me.errorMessage)==null?void 0:h.required)??`${Me.label} ${o.IS_REQUIRED}`}):PT({message:((g=Me.errorMessage)==null?void 0:g.invalid)??`${Me.label} ${o.IS_INVALID}`}).optional():ze=Me.required?j().min(1,((v=Me.errorMessage)==null?void 0:v.required)??`${Me.label} ${o.IS_REQUIRED}`):j().optional(),ve[Pe]=ze}const se=we(re).extend(ve).refine(Pe=>te?Pe.password===Pe.confirmPassword:!0,{message:o.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),Se={email:"",password:"",...te&&{confirmPassword:""},...G?.includes("name")?{name:""}:{},...le?{username:""}:{},...G?.includes("image")&&oe?{image:""}:{}};if(G)for(const Pe of G){if(Pe==="name"||Pe==="image")continue;const Me=E?.[Pe];Me&&(Se[Pe]=Me.type==="boolean"?!1:"")}const Oe=Oi({resolver:Ti(se),defaultValues:Se});r=r||Oe.formState.isSubmitting||Y,M.useEffect(()=>{l?.(Oe.formState.isSubmitting||Y)},[Oe.formState.isSubmitting,Y,l]);const tt=async Pe=>{if(oe){fe(!0);try{const Me=await Yee(Pe,crypto.randomUUID(),oe.size,oe.extension);let ze;oe.upload?ze=await oe.upload(Me):ze=await Qee(Me),ze?(F(ze),Oe.setValue("image",ze)):(F(null),Oe.setValue("image",""))}catch(Me){console.error(Me),K({variant:"error",message:Dn({error:Me,localization:o,localizeErrors:q})})}fe(!1)}},rt=()=>{F(null),Oe.setValue("image","")},Be=()=>{var Pe;return(Pe=V.current)==null?void 0:Pe.click()};async function Qe({email:Pe,password:Me,name:ze,username:Z,confirmPassword:ne,image:ae,...Re}){var Ce,Ae;try{for(const[_t,Tt]of Object.entries(Re)){const yt=E?.[_t];if(yt?.validate&&typeof Tt=="string"&&!await yt.validate(Tt)){Oe.setError(_t,{message:((Ce=yt.errorMessage)==null?void 0:Ce.validate)??((Ae=yt.errorMessage)==null?void 0:Ae.invalid)??`${yt.label} ${o.IS_INVALID}`});return}}const ke={throw:!0,headers:await x("/sign-up/email")},Je={};Z!==void 0&&(!Q&&(Z===null||Z===""||typeof Z=="string"&&Z.trim()==="")||(Je.username=Z)),ae!==void 0&&(Je.image=ae);const et=await T.signUp.email({email:Pe,password:Me,name:ze||"",...Je,...Re,callbackURL:xe(),fetchOptions:ke});"token"in et&&et.token?await je():W?.otp?z(`${R}/${B.EMAIL_VERIFICATION}?email=${encodeURIComponent(Pe)}`):(z(`${R}/${B.SIGN_IN}${window.location.search}`),K({variant:"success",message:o.SIGN_UP_EMAIL}))}catch(ke){K({variant:"error",message:Dn({error:ke,localization:o,localizeErrors:q})}),Oe.resetField("password"),Oe.resetField("confirmPassword"),w()}}return C.jsx(Ai,{...Oe,children:C.jsxs("form",{method:"POST",onSubmit:Oe.handleSubmit(Qe),noValidate:y,className:Te("grid w-full gap-6",e,t?.base),children:[G?.includes("image")&&oe&&C.jsxs(C.Fragment,{children:[C.jsx("input",{ref:V,accept:"image/*",disabled:X,hidden:!0,type:"file",onChange:Pe=>{var Me;const ze=(Me=Pe.target.files)==null?void 0:Me.item(0);ze&&tt(ze),Pe.target.value=""}}),C.jsx(Mn,{control:Oe.control,name:"image",render:()=>C.jsxs(Pn,{children:[C.jsx(Nn,{children:o.AVATAR}),C.jsxs("div",{className:"flex items-center gap-4",children:[C.jsxs(Xee,{children:[C.jsx(Jee,{asChild:!0,children:C.jsx(rn,{className:"size-fit rounded-full",size:"icon",variant:"ghost",type:"button",children:C.jsx(rte,{isPending:X,className:"size-16",user:D?{name:Oe.watch("name"),email:Oe.watch("email"),image:D}:null,localization:o})})}),C.jsxs(ete,{align:"start",onCloseAutoFocus:Pe=>Pe.preventDefault(),children:[C.jsxs(yA,{onClick:Be,disabled:X,children:[C.jsx(JG,{}),o.UPLOAD_AVATAR]}),D&&C.jsxs(yA,{onClick:rt,disabled:X,variant:"destructive",children:[C.jsx(iK,{}),o.DELETE_AVATAR]})]})]}),C.jsxs(rn,{type:"button",variant:"outline",onClick:Be,disabled:X,children:[X&&C.jsx(Cr,{className:"animate-spin"}),o.UPLOAD]})]}),C.jsx(Yn,{})]})})]}),G?.includes("name")&&C.jsx(Mn,{control:Oe.control,name:"name",render:({field:Pe})=>C.jsxs(Pn,{children:[C.jsxs(Nn,{className:t?.label,children:[o.NAME,!P&&C.jsx("span",{className:"ml-1 text-muted-foreground",children:o.OPTIONAL_BRACKETS})]}),C.jsx(Hn,{children:C.jsx(ti,{autoComplete:"name",className:t?.input,placeholder:o.NAME_PLACEHOLDER,disabled:r,...Pe,value:Pe.value})}),C.jsx(Yn,{className:t?.error})]})}),le&&C.jsx(Mn,{control:Oe.control,name:"username",render:({field:Pe})=>C.jsxs(Pn,{children:[C.jsxs(Nn,{className:t?.label,children:[o.USERNAME,!Q&&C.jsx("span",{className:"ml-1 text-muted-foreground",children:o.OPTIONAL_BRACKETS})]}),C.jsx(Hn,{children:C.jsx(ti,{autoComplete:"username",className:t?.input,placeholder:o.USERNAME_PLACEHOLDER,disabled:r,...Pe,value:Pe.value})}),C.jsx(Yn,{className:t?.error})]})}),C.jsx(Mn,{control:Oe.control,name:"email",render:({field:Pe})=>C.jsxs(Pn,{children:[C.jsx(Nn,{className:t?.label,children:o.EMAIL}),C.jsx(Hn,{children:C.jsx(ti,{autoComplete:"email",className:t?.input,type:"email",placeholder:o.EMAIL_PLACEHOLDER,disabled:r,...Pe,value:Pe.value})}),C.jsx(Yn,{className:t?.error})]})}),C.jsx(Mn,{control:Oe.control,name:"password",render:({field:Pe})=>C.jsxs(Pn,{children:[C.jsx(Nn,{className:t?.label,children:o.PASSWORD}),C.jsx(Hn,{children:C.jsx(tf,{autoComplete:"new-password",className:t?.input,placeholder:o.PASSWORD_PLACEHOLDER,disabled:r,enableToggle:!0,...Pe,value:Pe.value})}),C.jsx(Yn,{className:t?.error})]})}),te&&C.jsx(Mn,{control:Oe.control,name:"confirmPassword",render:({field:Pe})=>C.jsxs(Pn,{children:[C.jsx(Nn,{className:t?.label,children:o.CONFIRM_PASSWORD}),C.jsx(Hn,{children:C.jsx(tf,{autoComplete:"new-password",className:t?.input,placeholder:o.CONFIRM_PASSWORD_PLACEHOLDER,disabled:r,enableToggle:!0,...Pe,value:Pe.value})}),C.jsx(Yn,{className:t?.error})]})}),G?.filter(Pe=>Pe!=="name"&&Pe!=="image").map(Pe=>{const Me=E?.[Pe];return Me?Me.type==="boolean"?C.jsx(Mn,{control:Oe.control,name:Pe,render:({field:ze})=>C.jsxs(Pn,{className:"flex",children:[C.jsx(Hn,{children:C.jsx(CS,{checked:ze.value,onCheckedChange:ze.onChange,disabled:r})}),C.jsx(Nn,{className:t?.label,children:Me.label}),C.jsx(Yn,{className:t?.error})]})},Pe):C.jsx(Mn,{control:Oe.control,name:Pe,render:({field:ze})=>C.jsxs(Pn,{children:[C.jsx(Nn,{className:t?.label,children:Me.label}),C.jsx(Hn,{children:Me.type==="number"?C.jsx(ti,{className:t?.input,type:"number",placeholder:Me.placeholder||(typeof Me.label=="string"?Me.label:""),disabled:r,...ze,value:ze.value}):Me.multiline?C.jsx(ite,{className:t?.input,placeholder:Me.placeholder||(typeof Me.label=="string"?Me.label:""),disabled:r,...ze,value:ze.value}):C.jsx(ti,{className:t?.input,type:"text",placeholder:Me.placeholder||(typeof Me.label=="string"?Me.label:""),disabled:r,...ze,value:ze.value})}),C.jsx(Yn,{className:t?.error})]})},Pe):(console.error(`Additional field ${Pe} not found`),null)}),C.jsx(bf,{ref:b,localization:o,action:"/sign-up/email"}),C.jsx(rn,{type:"submit",disabled:r,className:Te("w-full",t?.button,t?.primaryButton),children:r?C.jsx(Cr,{className:"animate-spin"}):o.SIGN_UP_ACTION})]})})}function Vte({className:e,classNames:t,isSubmitting:n,localization:r,otpSeparators:o=0,redirectTo:s,setIsSubmitting:l}){var c;const d=ds(),f=d?pl("totpURI"):null,p=M.useRef(!1),{authClient:h,basePath:g,hooks:{useSession:v},localization:y,twoFactor:b,viewPaths:x,toast:w,Link:E,localizeErrors:T}=M.useContext(mt);r={...y,...r};const{onSuccess:R,isPending:O}=Ii({redirectTo:s}),{data:A}=v(),I=(c=A?.user)==null?void 0:c.twoFactorEnabled,[P,L]=M.useState(b?.length===1?b[0]:null),[H,$]=M.useState(!1),[B,z]=M.useState(0),K=we({code:j().min(1,{message:`${r.ONE_TIME_PASSWORD} ${r.IS_REQUIRED}`}).min(6,{message:`${r.ONE_TIME_PASSWORD} ${r.IS_INVALID}`}),trustDevice:Nt().optional()}),oe=Oi({resolver:Ti(K),defaultValues:{code:""}});n=n||oe.formState.isSubmitting||O,M.useEffect(()=>{l?.(oe.formState.isSubmitting||O)},[oe.formState.isSubmitting,O,l]),M.useEffect(()=>{P==="otp"&&B<=0&&!p.current&&(p.current=!0,q())},[P]),M.useEffect(()=>{if(B<=0)return;const te=setTimeout(()=>{z(le=>le-1)},1e3);return()=>clearTimeout(te)},[B]);const q=async()=>{if(!(H||B>0)){try{$(!0),await h.twoFactor.sendOtp({fetchOptions:{throw:!0}}),z(60)}catch(te){w({variant:"error",message:Dn({error:te,localization:r,localizeErrors:T})}),te.error.code==="INVALID_TWO_FACTOR_COOKIE"&&history.back()}p.current=!1,$(!1)}};async function W({code:te,trustDevice:le}){try{await(P==="totp"?h.twoFactor.verifyTotp:h.twoFactor.verifyOtp)({code:te,trustDevice:le,fetchOptions:{throw:!0}}),await R(),A&&!I&&w({variant:"success",message:r?.TWO_FACTOR_ENABLED})}catch(Q){w({variant:"error",message:Dn({error:Q,localization:r,localizeErrors:T})}),oe.reset()}}return C.jsx(Ai,{...oe,children:C.jsxs("form",{method:"POST",onSubmit:oe.handleSubmit(W),className:Te("grid w-full gap-6",e,t?.base),children:[b?.includes("totp")&&f&&P==="totp"&&C.jsxs("div",{className:"space-y-3",children:[C.jsx(G5,{className:t?.label,children:r.TWO_FACTOR_TOTP_LABEL}),C.jsx(Bee,{className:Te("border shadow-xs",t?.qrCode),value:f})]}),P!==null&&C.jsxs(C.Fragment,{children:[C.jsx(Mn,{control:oe.control,name:"code",render:({field:te})=>C.jsxs(Pn,{children:[C.jsxs("div",{className:"flex items-center justify-between",children:[C.jsx(Nn,{className:t?.label,children:r.ONE_TIME_PASSWORD}),C.jsx(E,{className:Te("text-sm hover:underline",t?.forgotPasswordLink),href:`${g}/${x.RECOVER_ACCOUNT}${d?window.location.search:""}`,children:r.FORGOT_AUTHENTICATOR})]}),C.jsx(Hn,{children:C.jsx(AS,{...te,maxLength:6,onChange:le=>{te.onChange(le),le.length===6&&oe.handleSubmit(W)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:n,children:C.jsx(IS,{otpSeparators:o})})}),C.jsx(Yn,{className:t?.error})]})}),C.jsx(Mn,{control:oe.control,name:"trustDevice",render:({field:te})=>C.jsxs(Pn,{className:"flex",children:[C.jsx(Hn,{children:C.jsx(CS,{checked:te.value,onCheckedChange:te.onChange,disabled:n,className:t?.checkbox})}),C.jsx(Nn,{className:t?.label,children:r.TRUST_DEVICE})]})})]}),C.jsxs("div",{className:"grid gap-4",children:[P!==null&&C.jsxs(rn,{type:"submit",disabled:n,className:Te(t?.button,t?.primaryButton),children:[n&&C.jsx(Cr,{className:"animate-spin"}),r.TWO_FACTOR_ACTION]}),P==="otp"&&b?.includes("otp")&&C.jsxs(rn,{type:"button",variant:"outline",onClick:q,disabled:B>0||H||n,className:Te(t?.button,t?.outlineButton),children:[H?C.jsx(Cr,{className:"animate-spin"}):C.jsx(JT,{className:t?.icon}),r.RESEND_CODE,B>0&&` (${B})`]}),P!=="otp"&&b?.includes("otp")&&C.jsxs(rn,{type:"button",variant:"secondary",className:Te(t?.button,t?.secondaryButton),onClick:()=>L("otp"),disabled:n,children:[C.jsx(JT,{className:t?.icon}),r.SEND_VERIFICATION_CODE]}),P!=="totp"&&b?.includes("totp")&&C.jsxs(rn,{type:"button",variant:"secondary",className:Te(t?.button,t?.secondaryButton),onClick:()=>L("totp"),disabled:n,children:[C.jsx(oK,{className:t?.icon}),r.CONTINUE_WITH_AUTHENTICATOR]})]})]})})}function eD({redirectTo:e}){const t=M.useRef(!1),{authClient:n,basePath:r,viewPaths:o}=M.useContext(mt),{onSuccess:s}=Ii({redirectTo:e||`${r}/${o.SIGN_IN}`});return M.useEffect(()=>{t.current||(t.current=!0,n.signOut().finally(s))},[n,s]),C.jsx(Cr,{className:"animate-spin"})}function Hte({className:e,classNames:t,callbackURL:n,isSubmitting:r,localization:o,pathname:s,redirectTo:l,view:c,otpSeparators:d=0,setIsSubmitting:f}){const{basePath:p,credentials:h,localization:g,magicLink:v,emailOTP:y,signUp:b,twoFactor:x,viewPaths:w,replace:E}=M.useContext(mt),T=!!b;if(o={...g,...o},M.useEffect(()=>{s&&!Vb(w,s)&&(console.error(`Invalid auth view: ${s}`),E(`${p}/${w.SIGN_IN}${window.location.search}`))},[s,w,p,E]),c=c||Vb(w,s)||"SIGN_IN",M.useEffect(()=>{let R=!1;c==="MAGIC_LINK"&&(!v||!h&&!y)&&(R=!0),c==="EMAIL_OTP"&&(!y||!h&&!v)&&(R=!0),c==="SIGN_UP"&&!T&&(R=!0),!h&&["SIGN_UP","FORGOT_PASSWORD","RESET_PASSWORD","TWO_FACTOR","RECOVER_ACCOUNT"].includes(c)&&(R=!0),["TWO_FACTOR","RECOVER_ACCOUNT"].includes(c)&&!x&&(R=!0),R&&E(`${p}/${w.SIGN_IN}${window.location.search}`)},[p,c,w,h,E,y,T,v,x]),c==="SIGN_OUT")return C.jsx(eD,{redirectTo:l});if(c==="CALLBACK")return C.jsx(J5,{redirectTo:l});if(c==="SIGN_IN")return h?C.jsx(Fte,{className:e,classNames:t,localization:o,redirectTo:l,isSubmitting:r,setIsSubmitting:f,callbackURL:n}):v?C.jsx(wA,{className:e,classNames:t,callbackURL:n,localization:o,redirectTo:l,isSubmitting:r,setIsSubmitting:f}):y?C.jsx(bA,{className:e,classNames:t,callbackURL:n,localization:o,redirectTo:l,isSubmitting:r,setIsSubmitting:f}):null;if(c==="TWO_FACTOR")return C.jsx(Vte,{className:e,classNames:t,localization:o,otpSeparators:d,redirectTo:l,isSubmitting:r,setIsSubmitting:f});if(c==="RECOVER_ACCOUNT")return C.jsx(Ute,{className:e,classNames:t,localization:o,redirectTo:l,isSubmitting:r,setIsSubmitting:f});if(c==="MAGIC_LINK")return C.jsx(wA,{className:e,classNames:t,callbackURL:n,localization:o,redirectTo:l,isSubmitting:r,setIsSubmitting:f});if(c==="EMAIL_OTP")return C.jsx(bA,{className:e,classNames:t,callbackURL:n,localization:o,redirectTo:l,isSubmitting:r,setIsSubmitting:f});if(c==="EMAIL_VERIFICATION")return C.jsx($te,{className:e,classNames:t,callbackURL:n,localization:o,otpSeparators:d,redirectTo:l,isSubmitting:r,setIsSubmitting:f});if(c==="FORGOT_PASSWORD")return C.jsx(jte,{className:e,classNames:t,localization:o,isSubmitting:r,setIsSubmitting:f});if(c==="RESET_PASSWORD")return C.jsx(zte,{className:e,classNames:t,localization:o});if(c==="SIGN_UP")return T&&C.jsx(Bte,{className:e,classNames:t,callbackURL:n,localization:o,redirectTo:l,isSubmitting:r,setIsSubmitting:f})}function qte({className:e,classNames:t,localization:n}){const{localization:r,redirectTo:o,replace:s,toast:l}=M.useContext(mt),c=M.useMemo(()=>({...r,...n}),[r,n]),{data:d}=Kee(),[f,p]=M.useState(null);return M.useEffect(()=>{const h=pl("invitationId");if(!h){l({variant:"error",message:c.INVITATION_NOT_FOUND}),s(o);return}p(h)},[c.INVITATION_NOT_FOUND,l,s,o]),!d||!f?C.jsx(tD,{className:e,classNames:t}):C.jsx(Gte,{className:e,classNames:t,localization:c,invitationId:f})}function Gte({className:e,classNames:t,localization:n,invitationId:r}){var o;const{authClient:s,hooks:{useInvitation:l},localization:c,organization:d,redirectTo:f,replace:p,toast:h,localizeErrors:g}=M.useContext(mt),v=M.useMemo(()=>({...c,...n}),[c,n]),[y,b]=M.useState(!1),[x,w]=M.useState(!1),E=y||x,{data:T,isPending:R}=l({query:{id:r}}),O=M.useCallback(()=>pl("redirectTo")||f,[f]);M.useEffect(()=>{if(!(R||!r)){if(!T){h({variant:"error",message:v.INVITATION_NOT_FOUND}),p(f);return}(T.status!=="pending"||new Date(T.expiresAt)<new Date)&&(h({variant:"error",message:new Date(T.expiresAt)<new Date?v.INVITATION_EXPIRED:v.INVITATION_NOT_FOUND}),p(f))}},[T,R,r,v,h,p,f]);const A=async()=>{w(!0);try{await s.organization.acceptInvitation({invitationId:r,fetchOptions:{throw:!0}}),h({variant:"success",message:v.INVITATION_ACCEPTED||"Invitation accepted"}),p(O())}catch($){h({variant:"error",message:Dn({error:$,localization:v,localizeErrors:g})}),w(!1)}},I=async()=>{b(!0);try{await s.organization.rejectInvitation({invitationId:r,fetchOptions:{throw:!0}}),h({variant:"success",message:v.INVITATION_REJECTED}),p(f)}catch($){h({variant:"error",message:Dn({error:$,localization:v,localizeErrors:g})}),b(!1)}},H=((o=[...[{role:"owner",label:v.OWNER},{role:"admin",label:v.ADMIN},{role:"member",label:v.MEMBER}],...d?.customRoles||[]].find($=>$.role===T?.role))==null?void 0:o.label)||T?.role;return T?C.jsxs(ef,{className:Te("w-full max-w-sm",e,t?.base),children:[C.jsxs(RS,{className:Te("justify-items-center text-center",t?.header),children:[C.jsx(H5,{className:Te("text-lg md:text-xl",t?.title),children:v.ACCEPT_INVITATION}),C.jsx(q5,{className:Te("text-xs md:text-sm",t?.description),children:v.ACCEPT_INVITATION_DESCRIPTION})]}),C.jsxs(OS,{className:Te("flex flex-col gap-6 truncate",t?.content),children:[C.jsxs(ef,{className:Te("flex-row items-center p-4"),children:[C.jsx(X5,{organization:{id:T.organizationId,name:T.organizationName,slug:T.organizationSlug,logo:T.organizationLogo,createdAt:new Date},localization:v}),C.jsx("p",{className:"ml-auto text-muted-foreground text-sm",children:H})]}),C.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[C.jsxs(rn,{variant:"outline",className:Te(t?.button,t?.outlineButton),onClick:I,disabled:E,children:[y?C.jsx(Cr,{className:"animate-spin"}):C.jsx(aK,{}),v.REJECT]}),C.jsxs(rn,{className:Te(t?.button,t?.primaryButton),onClick:A,disabled:E,children:[x?C.jsx(Cr,{className:"animate-spin"}):C.jsx(k3,{}),v.ACCEPT]})]})]})]}):C.jsx(tD,{className:e,classNames:t})}var tD=({className:e,classNames:t,localization:n})=>C.jsxs(ef,{className:Te("w-full max-w-sm",e,t?.base),children:[C.jsxs(RS,{className:Te("justify-items-center",t?.header),children:[C.jsx(os,{className:Te("my-1 h-5 w-full max-w-32 md:h-5.5 md:w-40",t?.skeleton)}),C.jsx(os,{className:Te("my-0.5 h-3 w-full max-w-56 md:h-3.5 md:w-64",t?.skeleton)})]}),C.jsxs(OS,{className:Te("flex flex-col gap-6 truncate",t?.content),children:[C.jsxs(ef,{className:Te("flex-row items-center p-4"),children:[C.jsx(X5,{isPending:!0,localization:n}),C.jsx(os,{className:"mt-0.5 ml-auto h-4 w-full max-w-14 shrink-2"})]}),C.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[C.jsx(os,{className:"h-9 w-full"}),C.jsx(os,{className:"h-9 w-full"})]})]})]});function SA({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return C.jsx(Gee,{"data-slot":"separator",decorative:n,orientation:t,className:Te("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}function Kte({classNames:e,isSubmitting:t,localization:n,view:r}){var o,s,l,c;const{viewPaths:d,navigate:f,basePath:p}=M.useContext(mt);return C.jsxs(rn,{className:Te("w-full",(o=e?.form)==null?void 0:o.button,(s=e?.form)==null?void 0:s.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>f(`${p}/${r==="EMAIL_OTP"?d.SIGN_IN:d.EMAIL_OTP}${window.location.search}`),children:[r==="EMAIL_OTP"?C.jsx(D3,{className:(l=e?.form)==null?void 0:l.icon}):C.jsx(L3,{className:(c=e?.form)==null?void 0:c.icon}),n.SIGN_IN_WITH," ",r==="EMAIL_OTP"?n.PASSWORD:n.EMAIL_OTP]})}function Zte({classNames:e,isSubmitting:t,localization:n,view:r}){var o,s,l,c;const{viewPaths:d,navigate:f,basePath:p,credentials:h}=M.useContext(mt);return C.jsxs(rn,{className:Te("w-full",(o=e?.form)==null?void 0:o.button,(s=e?.form)==null?void 0:s.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>f(`${p}/${r==="MAGIC_LINK"||!h?d.SIGN_IN:d.MAGIC_LINK}${window.location.search}`),children:[r==="MAGIC_LINK"?C.jsx(D3,{className:(l=e?.form)==null?void 0:l.icon}):C.jsx(L3,{className:(c=e?.form)==null?void 0:c.icon}),n.SIGN_IN_WITH," ",r==="MAGIC_LINK"?n.PASSWORD:n.MAGIC_LINK]})}function Yte({localization:e,redirectTo:t}){const{authClient:n,localization:r,toast:o,localizeErrors:s}=M.useContext(mt),l=M.useRef(!1);e=M.useMemo(()=>({...r,...e}),[r,e]);const{onSuccess:c}=Ii({redirectTo:t});return M.useEffect(()=>{if(!l.current){l.current=!0;try{n.oneTap({fetchOptions:{throw:!0,onSuccess:c}})}catch(d){o({variant:"error",message:Dn({error:d,localization:e,localizeErrors:s})})}}},[n,e,s,c,o]),null}function Wte({classNames:e,isSubmitting:t,localization:n,redirectTo:r,setIsSubmitting:o}){var s,l;const{authClient:c,localization:d,toast:f,localizeErrors:p}=M.useContext(mt);n={...d,...n};const{onSuccess:h}=Ii({redirectTo:r}),g=async()=>{o?.(!0);try{const v=await c.signIn.passkey({fetchOptions:{throw:!0}});v?.error?(f({variant:"error",message:Dn({error:v.error,localization:n,localizeErrors:p})}),o?.(!1)):h()}catch(v){f({variant:"error",message:Dn({error:v,localization:n,localizeErrors:p})}),o?.(!1)}};return C.jsxs(rn,{className:Te("w-full",(s=e?.form)==null?void 0:s.button,(l=e?.form)==null?void 0:l.secondaryButton),disabled:t,formNoValidate:!0,name:"passkey",value:"true",variant:"secondary",onClick:g,children:[C.jsx(nK,{}),n.SIGN_IN_WITH," ",n.PASSKEY]})}function EA({className:e,classNames:t,callbackURL:n,isSubmitting:r,localization:o,other:s,provider:l,redirectTo:c,socialLayout:d,setIsSubmitting:f}){var p,h,g,v;const{authClient:y,basePath:b,baseURL:x,persistClient:w,redirectTo:E,viewPaths:T,social:R,genericOAuth:O,toast:A,localizeErrors:I}=M.useContext(mt),P=M.useCallback(()=>c||pl("redirectTo")||E,[c,E]),L=M.useCallback(()=>`${x}${n||(w?`${b}/${T.CALLBACK}?redirectTo=${encodeURIComponent(P())}`:P())}`,[n,w,b,T,x,P]),H=async()=>{f(!0);try{if(s){const $={providerId:l.provider,callbackURL:L(),fetchOptions:{throw:!0}};O?.signIn?(await O.signIn($),setTimeout(()=>{f(!1)},1e4)):await y.signIn.oauth2($)}else{const $={provider:l.provider,callbackURL:L(),fetchOptions:{throw:!0}};R?.signIn?(await R.signIn($),setTimeout(()=>{f(!1)},1e4)):await y.signIn.social($)}}catch($){A({variant:"error",message:Dn({error:$,localization:o,localizeErrors:I})}),f(!1)}};return C.jsxs(rn,{className:Te(d==="vertical"?"w-full":"grow",e,(p=t?.form)==null?void 0:p.button,(h=t?.form)==null?void 0:h.outlineButton,(g=t?.form)==null?void 0:g.providerButton),disabled:r,variant:"outline",onClick:H,children:[l.icon&&C.jsx(l.icon,{className:(v=t?.form)==null?void 0:v.icon}),d==="grid"&&l.name,d==="vertical"&&`${o.SIGN_IN_WITH} ${l.name}`]})}function eue({className:e,classNames:t,callbackURL:n,cardHeader:r,cardFooter:o,localization:s,path:l,pathname:c,redirectTo:d,socialLayout:f="auto",view:p,otpSeparators:h=0}){var g,v,y,b,x,w;const E=ds(),{basePath:T,credentials:R,localization:O,magicLink:A,emailOTP:I,oneTap:P,passkey:L,signUp:H,social:$,genericOAuth:B,viewPaths:z,Link:K}=M.useContext(mt);s={...O,...s};let oe=f;oe==="auto"&&(oe=R&&$?.providers&&$.providers.length>2?"horizontal":"vertical");const q=l??c?.split("/").pop(),W=p||Vb(z,q)||"SIGN_IN",[te,le]=M.useState(!1);if(M.useEffect(()=>{const k=()=>le(!1);return window.addEventListener("pagehide",k),()=>{le(!1),window.removeEventListener("pagehide",k)}},[]),W==="CALLBACK")return C.jsx(J5,{redirectTo:d});if(W==="SIGN_OUT")return C.jsx(eD,{redirectTo:d});if(W==="ACCEPT_INVITATION")return C.jsx(qte,{className:e,classNames:t});const Q=!R&&!A&&!I?s.DISABLED_CREDENTIALS_DESCRIPTION:s[`${W}_DESCRIPTION`];return C.jsxs(ef,{className:Te("w-full max-w-sm",e,t?.base),children:[C.jsx(RS,{className:t?.header,children:r||C.jsxs(C.Fragment,{children:[C.jsx(H5,{className:Te("text-lg md:text-xl",t?.title),children:s[W]}),Q&&C.jsx(q5,{className:Te("text-xs md:text-sm",t?.description),children:Q})]})}),C.jsxs(OS,{className:Te("grid gap-6",t?.content),children:[P&&["SIGN_IN","SIGN_UP","MAGIC_LINK","EMAIL_OTP"].includes(W)&&C.jsx(Yte,{localization:s,redirectTo:d}),(R||A||I)&&C.jsxs("div",{className:"grid gap-4",children:[C.jsx(Hte,{classNames:t?.form,callbackURL:n,isSubmitting:te,localization:s,otpSeparators:h,view:W,redirectTo:d,setIsSubmitting:le}),A&&(R&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(W)||I&&W==="EMAIL_OTP")&&C.jsx(Zte,{classNames:t,localization:s,view:W,isSubmitting:te}),I&&(R&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(W)||A&&["SIGN_IN","MAGIC_LINK"].includes(W))&&C.jsx(Kte,{classNames:t,localization:s,view:W,isSubmitting:te})]}),W!=="RESET_PASSWORD"&&W!=="EMAIL_VERIFICATION"&&(((g=$?.providers)==null?void 0:g.length)||((v=B?.providers)==null?void 0:v.length)||W==="SIGN_IN"&&L)&&C.jsxs(C.Fragment,{children:[(R||A||I)&&C.jsxs("div",{className:Te("flex items-center gap-2",t?.continueWith),children:[C.jsx(SA,{className:Te("!w-auto grow",t?.separator)}),C.jsx("span",{className:"flex-shrink-0 text-muted-foreground text-sm",children:s.OR_CONTINUE_WITH}),C.jsx(SA,{className:Te("!w-auto grow",t?.separator)})]}),C.jsxs("div",{className:"grid gap-4",children:[(((y=$?.providers)==null?void 0:y.length)||((b=B?.providers)==null?void 0:b.length))&&C.jsxs("div",{className:Te("flex w-full items-center justify-between gap-4",oe==="horizontal"&&"flex-wrap",oe==="vertical"&&"flex-col",oe==="grid"&&"grid grid-cols-2"),children:[(x=$?.providers)==null?void 0:x.map(k=>{const G=Ate.find(V=>V.provider===k);return G?C.jsx(EA,{classNames:t,callbackURL:n,isSubmitting:te,localization:s,provider:G,redirectTo:d,setIsSubmitting:le,socialLayout:oe},k):null}),(w=B?.providers)==null?void 0:w.map(k=>C.jsx(EA,{classNames:t,callbackURL:n,isSubmitting:te,localization:s,provider:k,redirectTo:d,setIsSubmitting:le,socialLayout:oe,other:!0},k.provider))]}),L&&["SIGN_IN","MAGIC_LINK","EMAIL_OTP","RECOVER_ACCOUNT","TWO_FACTOR","FORGOT_PASSWORD"].includes(W)&&C.jsx(Wte,{classNames:t,isSubmitting:te,localization:s,redirectTo:d,setIsSubmitting:le})]})]})]}),o&&C.jsx(_A,{className:t?.footer,children:o}),R&&H&&C.jsxs(_A,{className:Te("justify-center gap-1.5 text-muted-foreground text-sm",t?.footer),children:[W==="SIGN_IN"||W==="MAGIC_LINK"||W==="EMAIL_OTP"?s.DONT_HAVE_AN_ACCOUNT:W==="SIGN_UP"?s.ALREADY_HAVE_AN_ACCOUNT:C.jsx(QG,{className:"size-3"}),W==="SIGN_IN"||W==="MAGIC_LINK"||W==="EMAIL_OTP"||W==="SIGN_UP"?C.jsx(K,{className:Te("text-foreground underline",t?.footerLink),href:`${T}/${z[W==="SIGN_IN"||W==="MAGIC_LINK"||W==="EMAIL_OTP"?"SIGN_UP":"SIGN_IN"]}${E?window.location.search:""}`,children:C.jsx(rn,{variant:"link",size:"sm",className:Te("px-0 text-foreground underline",t?.footerLink),children:W==="SIGN_IN"||W==="MAGIC_LINK"||W==="EMAIL_OTP"?s.SIGN_UP:s.SIGN_IN})}):C.jsx(rn,{variant:"link",size:"sm",className:Te("px-0 text-foreground underline",t?.footerLink),onClick:()=>window.history.back(),children:s.GO_BACK})]})]})}function tue({children:e}){const{hooks:{useSession:t}}=M.useContext(mt),{isPending:n}=t();return n?e:null}function nue({children:e}){const{hooks:{useSession:t}}=M.useContext(mt),{data:n}=t();return n?e:null}function rue({children:e}){const{hooks:{useSession:t}}=M.useContext(mt),{data:n,isPending:r}=t();return!n&&!r?e:null}function Qte(e){const t=Ri.c(8),{children:n}=e,r=Ag();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={basePath:"/",pathMode:"slug"},t[0]=o):o=t[0];let s,l;t[1]!==r?(s=d=>r({to:d}),l=d=>r({to:d,replace:!0}),t[1]=r,t[2]=s,t[3]=l):(s=t[2],l=t[3]);let c;return t[4]!==n||t[5]!==s||t[6]!==l?(c=C.jsx(KG,{authClient:jw,redirectTo:"/",organization:o,navigate:s,replace:l,Link:Xte,children:n}),t[4]=n,t[5]=s,t[6]=l,t[7]=c):c=t[7],c}function Xte(e){const{href:t,className:n,children:r,...o}=e;return C.jsx(Rw,{to:t,className:n,...o,children:r})}var me=typeof window<"u"?window:void 0,Qn=typeof globalThis<"u"?globalThis:me;typeof self>"u"&&(Qn.self=Qn),typeof File>"u"&&(Qn.File=function(){});var mo=Qn?.navigator,Le=Qn?.document,pr=Qn?.location,p1=Qn?.fetch,m1=Qn!=null&&Qn.XMLHttpRequest&&"withCredentials"in new Qn.XMLHttpRequest?Qn.XMLHttpRequest:void 0,xA=Qn?.AbortController,Jte=Qn?.CompressionStream,Zr=mo?.userAgent,We=me??{},RA="1.372.3",Lr={DEBUG:!1,LIB_VERSION:RA,LIB_NAME:"web",JS_SDK_VERSION:RA};function OA(e,t,n,r,o,s,l){try{var c=e[s](l),d=c.value}catch(f){return void n(f)}c.done?t(d):Promise.resolve(d).then(r,o)}function Do(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function l(d){OA(s,r,o,l,c,"next",d)}function c(d){OA(s,r,o,l,c,"throw",d)}l(void 0)}))}}function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ne.apply(null,arguments)}function nD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function g1(){return g1=Do((function*(e,t,n){t===void 0&&(t=!0);try{var r=new CompressionStream("gzip"),o=r.writable.getWriter(),s=o.write(new TextEncoder().encode(e)).then((()=>o.close())).catch((function(){var d=Do((function*(f){try{yield o.abort(f)}catch{}throw f}));return function(f){return d.apply(this,arguments)}})()),l=new Response(r.readable).blob(),[c]=yield Promise.all([l,s]);return c}catch(d){if(n!=null&&n.rethrow)throw d;return t&&console.error("Failed to gzip compress data",d),null}})),g1.apply(this,arguments)}var ene=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],TA=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var n=e.toLowerCase();return ene.concat(t).some((r=>{var o=r.toLowerCase();return n.indexOf(o)!==-1}))},tne=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function St(e,t){return e.indexOf(t)!==-1}var Xg=function(e){return e.trim()},v1=function(e){return e.replace(/^\$/,"")},rD=Object.prototype,oD=rD.hasOwnProperty,Jg=rD.toString,Pt=Array.isArray||function(e){return Jg.call(e)==="[object Array]"},rs=e=>typeof e=="function",In=e=>e===Object(e)&&!Pt(e),Tc=e=>{if(In(e)){for(var t in e)if(oD.call(e,t))return!1;return!0}return!1},Ue=e=>e===void 0,yn=e=>Jg.call(e)=="[object String]",_m=e=>yn(e)&&e.trim().length===0,ps=e=>e===null,Et=e=>Ue(e)||ps(e),zo=e=>Jg.call(e)=="[object Number]"&&e==e,yc=e=>zo(e)&&e>0,Si=e=>Jg.call(e)==="[object Boolean]",nne=e=>e instanceof FormData,rne=e=>St(tne,e);function iD(e){return e===null||typeof e!="object"}function Qm(e,t){return{}.toString.call(e)==="[object "+t+"]"}function MS(e){return typeof Event<"u"&&(function(t,n){try{return t instanceof n}catch{return!1}})(e,Event)}var one=[!0,"true",1,"1","yes"],jy=e=>St(one,e),ine=[!1,"false",0,"0","no"];function Ei(e,t,n,r,o){return t>n&&(r.warn("min cannot be greater than max."),t=n),zo(e)?e>n?(r.warn(" cannot be greater than max: "+n+". Using max value instead."),n):t>e?(r.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+o),Ei(o||n,t,n,r))}class sne{constructor(t){this.$t={},this.zt=t.zt,this.Ut=Ei(t.bucketSize,0,100,t.Gt),this.Wt=Ei(t.refillRate,0,this.Ut,t.Gt),this.Xt=Ei(t.refillInterval,0,864e5,t.Gt)}Jt(t,n){var r=Math.floor((n-t.lastAccess)/this.Xt);r>0&&(t.tokens=Math.min(t.tokens+r*this.Wt,this.Ut),t.lastAccess=t.lastAccess+r*this.Xt)}consumeRateLimit(t){var n,r=Date.now(),o=String(t),s=this.$t[o];return s?this.Jt(s,r):this.$t[o]=s={tokens:this.Ut,lastAccess:r},s.tokens===0||(s.tokens--,s.tokens===0&&((n=this.zt)==null||n.call(this,t)),s.tokens===0)}stop(){this.$t={}}}var hp,CA,Uy,vo="Mobile",Xm="iOS",as="Android",Gc="Tablet",sD=as+" "+Gc,aD="iPad",lD="Apple",cD=lD+" Watch",Dd="Safari",Kc="BlackBerry",uD="Samsung",dD=uD+"Browser",fD=uD+" Internet",il="Chrome",ane=il+" OS",hD=il+" "+Xm,PS="Internet Explorer",pD=PS+" "+vo,NS="Opera",lne=NS+" Mini",kS="Edge",mD="Microsoft "+kS,jc="Firefox",gD=jc+" "+Xm,nf="Nintendo",rf="PlayStation",Uc="Xbox",vD=as+" "+vo,_D=vo+" "+Dd,xd="Windows",_1=xd+" Phone",AA="Nokia",y1="Ouya",yD="Generic",cne=yD+" "+vo.toLowerCase(),bD=yD+" "+Gc.toLowerCase(),b1="Konqueror",Dr="(\\d+(\\.\\d+)?)",zy=new RegExp("Version/"+Dr),une=new RegExp(Uc,"i"),dne=new RegExp(rf+" \\w+","i"),fne=new RegExp(nf+" \\w+","i"),DS=new RegExp(Kc+"|PlayBook|BB10","i"),hne={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},wD=function(e,t){return t=t||"",St(e," OPR/")&&St(e,"Mini")?lne:St(e," OPR/")?NS:DS.test(e)?Kc:St(e,"IE"+vo)||St(e,"WPDesktop")?pD:St(e,dD)?fD:St(e,kS)||St(e,"Edg/")?mD:St(e,"FBIOS")?"Facebook "+vo:St(e,"UCWEB")||St(e,"UCBrowser")?"UC Browser":St(e,"CriOS")?hD:St(e,"CrMo")||St(e,il)?il:St(e,as)&&St(e,Dd)?vD:St(e,"FxiOS")?gD:St(e.toLowerCase(),b1.toLowerCase())?b1:((n,r)=>r&&St(r,lD)||(function(o){return St(o,Dd)&&!St(o,il)&&!St(o,as)})(n))(e,t)?St(e,vo)?_D:Dd:St(e,jc)?jc:St(e,"MSIE")||St(e,"Trident/")?PS:St(e,"Gecko")?jc:""},pne={[pD]:[new RegExp("rv:"+Dr)],[mD]:[new RegExp(kS+"?\\/"+Dr)],[il]:[new RegExp("("+il+"|CrMo)\\/"+Dr)],[hD]:[new RegExp("CriOS\\/"+Dr)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Dr)],[Dd]:[zy],[_D]:[zy],[NS]:[new RegExp("(Opera|OPR)\\/"+Dr)],[jc]:[new RegExp(jc+"\\/"+Dr)],[gD]:[new RegExp("FxiOS\\/"+Dr)],[b1]:[new RegExp("Konqueror[:/]?"+Dr,"i")],[Kc]:[new RegExp(Kc+" "+Dr),zy],[vD]:[new RegExp("android\\s"+Dr,"i")],[fD]:[new RegExp(dD+"\\/"+Dr)],[PS]:[new RegExp("(rv:|MSIE )"+Dr)],Mozilla:[new RegExp("rv:"+Dr)]},mne=function(e,t){var n=wD(e,t),r=pne[n];if(Ue(r))return null;for(var o=0;r.length>o;o++){var s=e.match(r[o]);if(s)return parseFloat(s[s.length-2])}return null},IA=[[new RegExp(Uc+"; "+Uc+" (.*?)[);]","i"),e=>[Uc,e&&e[1]||""]],[new RegExp(nf,"i"),[nf,""]],[new RegExp(rf,"i"),[rf,""]],[DS,[Kc,""]],[new RegExp(xd,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[_1,""];if(new RegExp(vo).test(t)&&!/IEMobile\b/.test(t))return[xd+" "+vo,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=hne[n[1]]||"";return/arm/i.test(t)&&(r="RT"),[xd,r]}return[xd,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[Xm,[e[3],e[4],e[5]||"0"].join(".")]:[Xm,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=Ue(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+as+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+as+")","i"),e=>e&&e[2]?[as,[e[2],e[3],e[4]||"0"].join(".")]:[as,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[ane,""]],[/Linux|debian/i,["Linux",""]]],MA=function(e){return fne.test(e)?nf:dne.test(e)?rf:une.test(e)?Uc:new RegExp(y1,"i").test(e)?y1:new RegExp("("+_1+"|WPDesktop)","i").test(e)?_1:/iPad/.test(e)?aD:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?cD:DS.test(e)?Kc:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(AA,"i").test(e)?AA:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(vo).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?as:sD:new RegExp("(pda|"+vo+")","i").test(e)?cne:new RegExp(Gc,"i").test(e)&&!new RegExp(Gc+" pc","i").test(e)?bD:""},gne=e=>e instanceof Error,SD={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},vne=SD.info;function ED(e){if(Si(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(Pt(e))return{arrayValue:{values:e.map((t=>ED(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function PA(e){var t=[];for(var n in e){var r=e[n];ps(r)||Ue(r)||t.push({key:n,value:ED(r)})}return t}function _ne(e){var t=globalThis._posthogChunkIds;if(t){var n=Object.keys(t);return Uy&&n.length===CA||(CA=n.length,Uy=n.reduce(((r,o)=>{hp||(hp={});var s=hp[o];if(s)r[s[0]]=s[1];else for(var l=e(o),c=l.length-1;c>=0;c--){var d=l[c],f=d?.filename,p=t[o];if(f&&p){r[f]=p,hp[o]=[f,p];break}}return r}),{})),Uy}}class yne{constructor(t,n,r){r===void 0&&(r=[]),this.coercers=t,this.stackParser=n,this.modifiers=r}buildFromUnknown(t,n){n===void 0&&(n={});var r=n&&n.mechanism||{handled:!0,type:"generic"},o=this.buildCoercingContext(r,n,0).apply(t),s=this.buildParsingContext(n),l=this.parseStacktrace(o,s);return{$exception_list:this.convertToExceptionList(l,r),$exception_level:"error"}}modifyFrames(t){var n=this;return Do((function*(){for(var r of t)r.stacktrace&&r.stacktrace.frames&&Pt(r.stacktrace.frames)&&(r.stacktrace.frames=yield n.applyModifiers(r.stacktrace.frames));return t}))()}coerceFallback(t){var n;return{type:"Error",value:"Unknown error",stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}parseStacktrace(t,n){var r,o;return t.cause!=null&&(r=this.parseStacktrace(t.cause,n)),t.stack!=""&&t.stack!=null&&(o=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?n.skipFirstLines:0),n.chunkIdMap)),Ne({},t,{cause:r,stack:o})}applyChunkIds(t,n){return t.map((r=>(r.filename&&n&&(r.chunk_id=n[r.filename]),r)))}applyCoercers(t,n){for(var r of this.coercers)if(r.match(t))return r.coerce(t,n);return this.coerceFallback(n)}applyModifiers(t){var n=this;return Do((function*(){var r=t;for(var o of n.modifiers)r=yield o(r);return r}))()}convertToExceptionList(t,n){var r,o,s,l={type:t.type,value:t.value,mechanism:{type:(r=n.type)!==null&&r!==void 0?r:"generic",handled:(o=n.handled)===null||o===void 0||o,synthetic:(s=t.synthetic)!==null&&s!==void 0&&s}};t.stack&&(l.stacktrace={type:"raw",frames:t.stack});var c=[l];return t.cause!=null&&c.push(...this.convertToExceptionList(t.cause,Ne({},n,{handled:!0}))),c}buildParsingContext(t){var n;return{chunkIdMap:_ne(this.stackParser),skipFirstLines:(n=t.skipFirstLines)!==null&&n!==void 0?n:1}}buildCoercingContext(t,n,r){r===void 0&&(r=0);var o=(s,l)=>{if(4>=l){var c=this.buildCoercingContext(t,n,l);return this.applyCoercers(s,c)}};return Ne({},n,{syntheticException:r==0?n.syntheticException:void 0,mechanism:t,apply:s=>o(s,r),next:s=>o(s,r+1)})}}var Zc="?";function w1(e,t,n,r,o){var s={platform:e,filename:t,function:n==="<anonymous>"?Zc:n,in_app:!0};return Ue(r)||(s.lineno=r),Ue(o)||(s.colno=o),s}var xD=(e,t)=>{var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Zc,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},bne=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,wne=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Sne=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ene=(e,t)=>{var n=bne.exec(e);if(n){var[,r,o,s]=n;return w1(t,r,Zc,+o,+s)}var l=wne.exec(e);if(l){if(l[2]&&l[2].indexOf("eval")===0){var c=Sne.exec(l[2]);c&&(l[2]=c[1],l[3]=c[2],l[4]=c[3])}var[d,f]=xD(l[1]||Zc,l[2]);return w1(t,f,d,l[3]?+l[3]:void 0,l[4]?+l[4]:void 0)}},xne=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Rne=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,One=(e,t)=>{var n=xne.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=Rne.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var o=n[3],s=n[1]||Zc;return[s,o]=xD(s,o),w1(t,o,s,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},NA=/\(error: (.*)\)/;class Tne{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,n){var r=yn(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:r?t.stack:void 0,cause:t.cause?n.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var n=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?n+": "+t.message:n}isDOMException(t){return Qm(t,"DOMException")}isDOMError(t){return Qm(t,"DOMError")}}class Cne{match(t){return(n=>n instanceof Error)(t)}coerce(t,n){return{type:this.getType(t),value:this.getMessage(t,n),stack:this.getStack(t),cause:t.cause?n.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,n){var r=t.message;return String(r.error&&typeof r.error.message=="string"?r.error.message:r)}getStack(t){return t.stacktrace||t.stack||void 0}}class Ane{constructor(){}match(t){return Qm(t,"ErrorEvent")&&t.error!=null}coerce(t,n){var r;return n.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}var Ine=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class Mne{match(t){return typeof t=="string"}coerce(t,n){var r,[o,s]=this.getInfos(t);return{type:o??"Error",value:s??t,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}getInfos(t){var n="Error",r=t,o=t.match(Ine);return o&&(n=o[1],r=o[2]),[n,r]}}var Pne=["fatal","error","warning","log","info","debug"];function RD(e,t){t===void 0&&(t=40);var n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(t>=o.length)return r===n.length?o:o.length>t?o.slice(0,t)+"...":o}return""}class Nne{match(t){return typeof t=="object"&&t!==null}coerce(t,n){var r,o=this.getErrorPropertyFromObject(t);return o?n.apply(o):{type:this.getType(t),value:this.getValue(t),stack:(r=n.syntheticException)==null?void 0:r.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return MS(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var n="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(n+=" with message: '"+t.message+"'"),n}if("message"in t&&typeof t.message=="string")return t.message;var r=this.getObjectClassName(t);return(r&&r!=="Object"?"'"+r+"'":"Object")+" captured as exception with keys: "+RD(t)}isSeverityLevel(t){return yn(t)&&!_m(t)&&Pne.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var n in t)if({}.hasOwnProperty.call(t,n)){var r=t[n];if(gne(r))return r}}getObjectClassName(t){try{var n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{return}}}class kne{match(t){return MS(t)}coerce(t,n){var r,o=t.constructor.name;return{type:o,value:o+" captured as exception with keys: "+RD(t),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class Dne{match(t){return iD(t)}coerce(t,n){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class Lne{match(t){return Qm(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!MS(t))return!1;try{var n=t.detail;return n!=null&&typeof n=="object"&&"reason"in n}catch{return!1}}coerce(t,n){var r,o=this.getUnhandledRejectionReason(t);return iD(o)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(o),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}:n.apply(o)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}}var Jm="$message",eg="$timestamp",$ne=new Set([Jm,eg]),Fy={enabled:!0,max_bytes:32768};function tg(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:Fy.enabled,max_bytes:Une(e.max_bytes,Fy.max_bytes)}:Ne({},Fy)}class jne{constructor(t){this.Kt=[],this.Qt=0,this.Bt=tg(t)}setConfig(t){this.Bt=tg(t),this.er()}add(t){var n=(function(o){var s=(function(p){var h=new WeakSet;try{return JSON.stringify(p,((g,v)=>{if(typeof v=="bigint")return v.toString();if(typeof v!="function"&&typeof v!="symbol"){if(v instanceof Date)return v.toISOString();if(v instanceof Error)return{name:v.name,message:v.message,stack:v.stack};if(v&&typeof v=="object"){if(h.has(v))return"[Circular]";h.add(v)}return v}}))}catch{return}})(o);if(s)try{var l=JSON.parse(s);if(!In(l))return;var c=l,d=c[Jm],f=c[eg];return!yn(d)||d.trim().length===0||!yn(f)&&!zo(f)?void 0:{step:c,json:s}}catch{return}})(t);if(n){var r=(function(o){if(typeof TextEncoder<"u")return new TextEncoder().encode(o).length;for(var s=encodeURIComponent(o),l=0,c=0;s.length>c;c++)s[c]==="%"?(l+=1,c+=2):l+=1;return l})(n.json);r>this.Bt.max_bytes||(this.Kt.push({step:n.step,bytes:r}),this.Qt+=r,this.er())}}getAttachable(){return this.Kt.map((t=>t.step))}clear(){this.Kt=[],this.Qt=0}size(){return this.Kt.length}er(){for(;this.Qt>this.Bt.max_bytes&&this.Kt.length>0;){var t=this.Kt.shift();t&&(this.Qt-=t.bytes)}}}function Une(e,t){if(!zo(e)||e===1/0||e===-1/0)return t;var n=Math.floor(e);return 0>n?t:n}var OD=function(e,t){var{debugEnabled:n}=t===void 0?{}:t,r={C(o){if(me&&(Lr.DEBUG||We.POSTHOG_DEBUG||n)&&!Ue(me.console)&&me.console){for(var s=("__rrweb_original__"in me.console[o])?me.console[o].__rrweb_original__:me.console[o],l=arguments.length,c=new Array(l>1?l-1:0),d=1;l>d;d++)c[d-1]=arguments[d];s(e,...c)}},info(){for(var o=arguments.length,s=new Array(o),l=0;o>l;l++)s[l]=arguments[l];r.C("log",...s)},warn(){for(var o=arguments.length,s=new Array(o),l=0;o>l;l++)s[l]=arguments[l];r.C("warn",...s)},error(){for(var o=arguments.length,s=new Array(o),l=0;o>l;l++)s[l]=arguments[l];r.C("error",...s)},critical(){for(var o=arguments.length,s=new Array(o),l=0;o>l;l++)s[l]=arguments[l];console.error(e,...s)},uninitializedWarning(o){r.error("You must initialize PostHog before calling "+o)},createLogger:(o,s)=>OD(e+" "+o,s)};return r},$e=OD("[PostHog.js]"),mn=$e.createLogger,zne=mn("[ExternalScriptsLoader]"),By=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return zne.warn(t+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=Le?.querySelectorAll("script");if(r){for(var o,s=function(){if(r[l].src===t){var d=r[l];return d.__posthog_loading_callback_fired?{v:n()}:(d.addEventListener("load",(f=>{d.__posthog_loading_callback_fired=!0,n(void 0,f)})),d.onerror=f=>n(f),{v:void 0})}},l=0;r.length>l;l++)if(o=s())return o.v}var c=()=>{if(!Le)return n("document not found");var d=Le.createElement("script");if(d.type="text/javascript",d.crossOrigin="anonymous",d.src=t,d.onload=h=>{d.__posthog_loading_callback_fired=!0,n(void 0,h)},d.onerror=h=>n(h),e.config.prepare_external_dependency_script&&(d=e.config.prepare_external_dependency_script(d)),!d)return n("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")Le.head.appendChild(d);else{var f,p=Le.querySelectorAll("body > script");p.length>0?(f=p[0].parentNode)==null||f.insertBefore(d,p[0]):Le.body.appendChild(d)}};Le!=null&&Le.body?c():Le?.addEventListener("DOMContentLoaded",c)};We.__PosthogExtensions__=We.__PosthogExtensions__||{},We.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{if(t!=="remote-config"){var r;if(e.config.__preview_external_dependency_versioned_paths)r=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var o="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var s=3e5;o=o+"&t="+Math.floor(Date.now()/s)*s}r=e.requestRouter.endpointFor("assets",o)}By(e,r,n)}else{var l=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");By(e,l,n)}},We.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{var r=e.requestRouter.endpointFor("api",t);By(e,r,n)};var TD="$people_distinct_id",ng="$device_id",Rd="__alias",Od="__timers",S1="$autocapture_disabled_server_side",E1="$heatmaps_enabled_server_side",x1="$exception_capture_enabled_server_side",R1="$error_tracking_suppression_rules",O1="$error_tracking_capture_extension_exceptions",T1="$web_vitals_enabled_server_side",LS="$dead_clicks_enabled_server_side",C1="$product_tours_enabled_server_side",A1="$web_vitals_allowed_metrics",Td="$session_recording_remote_config",CD="$replay_override_sampling",AD="$replay_override_linked_flag",ID="$replay_override_url_trigger",MD="$replay_override_event_trigger",rg="$sesid",$S="$session_is_sampled",Cc="$enabled_feature_flags",ym="$active_feature_flags",Cd="$early_access_features",I1="$feature_flag_details",M1="$feature_flag_payloads",P1="$feature_flag_request_id",ns="$override_feature_flags",bc="$override_feature_flag_payloads",Ad="$stored_person_properties",Ya="$stored_group_properties",N1="$surveys",k1="$surveys_activated",bm="ph_product_tours",Ld="$flag_call_reported",D1="$flag_call_reported_session_id",L1="$feature_flag_errors",og="$feature_flag_evaluated_at",Jo="$user_state",$1="$client_session_props",j1="$capture_rate_limit",U1="$initial_campaign_params",z1="$initial_referrer_info",ig="$initial_person_info",sg="$epp",PD="__POSTHOG_TOOLBAR__",pp="$posthog_cookieless",ND="$sdk_debug_extensions_init_method",kD="$sdk_debug_extensions_init_time_ms",DD="$sdk_debug_recording_script_not_loaded",jS="PostHog loadExternalDependency extension not found.",Wa="on_reject",is="always",dc="anonymous",fc="identified",F1="identified_only",ag="visibilitychange",lg="beforeunload",wc="$pageview",Vy="$pageleave",Hy="$identify",kA="$groupidentify";function mp(e,t){Pt(e)&&e.forEach(t)}function cn(e,t){if(!Et(e))if(Pt(e))e.forEach(t);else if(nne(e))e.forEach(((r,o)=>t(r,o)));else for(var n in e)oD.call(e,n)&&t(e[n],n)}var On=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];for(var o of n)for(var s in o)o[s]!==void 0&&(e[s]=o[s]);return e};function wm(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var DA=function(e){try{return e()}catch{return}},Fne=function(e){return function(){try{for(var t=arguments.length,n=new Array(t),r=0;t>r;r++)n[r]=arguments[r];return e.apply(this,n)}catch(o){$e.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),$e.critical(o)}}},US=function(e){var t={};return cn(e,(function(n,r){(yn(n)&&n.length>0||zo(n))&&(t[r]=n)})),t},Bne=["herokuapp.com","vercel.app","netlify.app"];function Vne(e){var t=e?.hostname;if(!yn(t))return!1;var n=t.split(".").slice(-2).join(".");for(var r of Bne)if(n===r)return!1;return!0}function Vn(e,t,n,r){var{capture:o=!1,passive:s=!0}=r??{};e?.addEventListener(t,n,{capture:o,passive:s})}function LD(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return zo(e)&&isFinite(e)&&Math.floor(e)===e});class cg{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,n,r,o){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(o)||0>t||0>n||0>r||0>o||t>0xffffffffffff||n>4095||r>1073741823||o>4294967295)throw new RangeError("invalid field value");var s=new Uint8Array(16);return s[0]=t/Math.pow(2,40),s[1]=t/Math.pow(2,32),s[2]=t/Math.pow(2,24),s[3]=t/Math.pow(2,16),s[4]=t/Math.pow(2,8),s[5]=t,s[6]=112|n>>>8,s[7]=n,s[8]=128|r>>>24,s[9]=r>>>16,s[10]=r>>>8,s[11]=r,s[12]=o>>>24,s[13]=o>>>16,s[14]=o>>>8,s[15]=o,new cg(s)}toString(){for(var t="",n=0;this.bytes.length>n;n++)t=t+(this.bytes[n]>>>4).toString(16)+(15&this.bytes[n]).toString(16),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new cg(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var n=0;16>n;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}class Hne{constructor(){this.I=0,this.S=0,this.k=new qne}generate(){var t=this.generateOrAbort();if(Ue(t)){this.I=0;var n=this.generateOrAbort();if(Ue(n))throw new Error("Could not generate UUID after timestamp reset");return n}return t}generateOrAbort(){var t=Date.now();if(t>this.I)this.I=t,this.A();else{if(this.I>=t+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return cg.fromFieldsV7(this.I,Math.trunc(this.S/Math.pow(2,30)),this.S&Math.pow(2,30)-1,this.k.nextUint32())}A(){this.S=1024*this.k.nextUint32()+(1023&this.k.nextUint32())}}var LA,$D=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};me&&!Ue(me.crypto)&&crypto.getRandomValues&&($D=e=>crypto.getRandomValues(e));class qne{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||($D(this.T),this.N=0),this.T[this.N++]}}var ea=()=>Gne().toString(),Gne=()=>(LA||(LA=new Hne)).generate(),ld="",Kne=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,bi={R:()=>!!Le,B(e){$e.error("cookieStore error: "+e)},O(e){if(Le){try{for(var t=e+"=",n=Le.cookie.split(";").filter((s=>s.length)),r=0;n.length>r;r++){for(var o=n[r];o.charAt(0)==" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return decodeURIComponent(o.substring(t.length,o.length))}}catch{}return null}},Z(e){var t;try{t=JSON.parse(bi.O(e))||{}}catch{}return t},M(e,t,n,r,o){if(Le)try{var s="",l="",c=(function(p,h){if(h){var g=(function(y,b){if(b===void 0&&(b=Le),ld)return ld;if(!b||["localhost","127.0.0.1"].includes(y))return"";for(var x=y.split("."),w=Math.min(x.length,8),E="dmn_chk_"+ea();!ld&&w--;){var T=x.slice(w).join("."),R=E+"=1;domain=."+T+";path=/";b.cookie=R+";max-age=3",b.cookie.includes(E)&&(b.cookie=R+";max-age=0",ld=T)}return ld})(p);if(!g){var v=(y=>{var b=y.match(Kne);return b?b[0]:""})(p);v!==g&&$e.info("Warning: cookie subdomain discovery mismatch",v,g),g=v}return g?"; domain=."+g:""}return""})(Le.location.hostname,r);if(n){var d=new Date;d.setTime(d.getTime()+864e5*n),s="; expires="+d.toUTCString()}o&&(l="; secure");var f=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+c+l;return f.length>3686.4&&$e.warn("cookieStore warning: large cookie, len="+f.length),Le.cookie=f,f}catch{return}},F(e,t){if(Le!=null&&Le.cookie)try{bi.M(e,"",-1,t)}catch{return}}},qy=null,_n={R(){if(!ps(qy))return qy;var e=!0;if(Ue(me))e=!1;else try{var t="__mplssupport__";_n.M(t,"xyz"),_n.O(t)!=='"xyz"'&&(e=!1),_n.F(t)}catch{e=!1}return e||$e.error("localStorage unsupported; falling back to cookie store"),qy=e,e},B(e){$e.error("localStorage error: "+e)},O(e){try{return me?.localStorage.getItem(e)}catch(t){_n.B(t)}return null},Z(e){try{return JSON.parse(_n.O(e))||{}}catch{}return null},M(e,t){try{me?.localStorage.setItem(e,JSON.stringify(t))}catch(n){_n.B(n)}},F(e){try{me?.localStorage.removeItem(e)}catch(t){_n.B(t)}}},Zne=[ng,"distinct_id",rg,$S,sg,ig,Jo],gp={},Yne={R:()=>!0,B(e){$e.error("memoryStorage error: "+e)},O:e=>gp[e]||null,Z:e=>gp[e]||null,M(e,t){gp[e]=t},F(e){delete gp[e]}},Va=null,mr={R(){if(!ps(Va))return Va;if(Va=!0,Ue(me))Va=!1;else try{var e="__support__";mr.M(e,"xyz"),mr.O(e)!=='"xyz"'&&(Va=!1),mr.F(e)}catch{Va=!1}return Va},B(e){$e.error("sessionStorage error: ",e)},O(e){try{return me?.sessionStorage.getItem(e)}catch(t){mr.B(t)}return null},Z(e){try{return JSON.parse(mr.O(e))||null}catch{}return null},M(e,t){try{me?.sessionStorage.setItem(e,JSON.stringify(t))}catch(n){mr.B(n)}},F(e){try{me?.sessionStorage.removeItem(e)}catch(t){mr.B(t)}}};class Wne{constructor(t){this._instance=t}get Bt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.Bt.cookieless_mode===is||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===Wa}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Bt.opt_out_capturing_by_default}optInOut(t){this.nr.M(this.sr,t?1:0,this.Bt.cookie_expiration,this.Bt.cross_subdomain_cookie,this.Bt.secure_cookie)}reset(){this.nr.F(this.sr,this.Bt.cross_subdomain_cookie)}get sr(){var{token:t,opt_out_capturing_cookie_prefix:n,consent_persistence_name:r}=this._instance.config;return r||(n?n+t:"__ph_opt_in_out_"+t)}get ir(){var t=this.nr.O(this.sr);return jy(t)?1:St(ine,t)?0:-1}get nr(){var t=this.Bt.opt_out_capturing_persistence_type,n=t==="localStorage"?_n:bi;if(!this.ar||this.ar!==n){this.ar=n;var r=t==="localStorage"?bi:_n;r.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(jy(r.O(this.sr))),r.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[mo?.doNotTrack,mo?.msDoNotTrack,We.doNotTrack].some((t=>jy(t)))}}var vp=mn("[Dead Clicks]"),Qne=()=>!0,Xne=e=>{var t,n=!((t=e.instance.persistence)==null||!t.get_property(LS)),r=e.instance.config.capture_dead_clicks;return Si(r)?r:!!In(r)||n};class $A{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(t,n,r){this.instance=t,this.isEnabled=n,this.onCapture=r,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[LS]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(t){var n,r;(n=We.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture&&t(),(r=We.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",(o=>{o?vp.error("failed to load script",o):t()}))}hr(){var t;if(Le){if(!this.lr&&(t=We.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var n=In(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};n.__onCapture=this.onCapture,this.lr=We.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.lr.start(Le),vp.info("starting...")}}else vp.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,vp.info("stopping..."))}}var Gy=mn("[SegmentIntegration]"),jD="posthog-js";function UD(e,t){var{organization:n,projectId:r,prefix:o,severityAllowList:s=["error"],sendExceptionsToPostHog:l=!0}=t===void 0?{}:t;return c=>{var d,f,p,h,g;if(s!=="*"&&!s.includes(c.level)||!e.__loaded)return c;c.tags||(c.tags={});var v=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());c.tags["PostHog Person URL"]=v,e.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var y,b=((d=c.exception)==null?void 0:d.values)||[],x=b.map((E=>Ne({},E,{stacktrace:E.stacktrace?Ne({},E.stacktrace,{type:"raw",frames:(E.stacktrace.frames||[]).map((T=>Ne({},T,{platform:"web:javascript"})))}):void 0}))),w={$exception_message:((f=b[0])==null?void 0:f.value)||c.message,$exception_type:(p=b[0])==null?void 0:p.type,$exception_level:c.level,$exception_list:x,$sentry_event_id:c.event_id,$sentry_exception:c.exception,$sentry_exception_message:((h=b[0])==null?void 0:h.value)||c.message,$sentry_exception_type:(g=b[0])==null?void 0:g.type,$sentry_tags:c.tags};return n&&r&&(w.$sentry_url=(o||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+c.event_id),l&&((y=e.exceptions)==null||y.sendExceptionEvent(w)),c}}class Jne{constructor(t,n,r,o,s,l){this.name=jD,this.setupOnce=function(c){c(UD(t,{organization:n,projectId:r,prefix:o,severityAllowList:s,sendExceptionsToPostHog:l==null||l}))}}}class jA{constructor(t){this.cr=(n,r,o)=>{o&&(o.noSessionId||o.activityTimeout||o.sessionPastMaximumLength)&&($e.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:n,changeReason:o}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.vr()}vr(){var t;this.pr=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.cr)}destroy(){var t;(t=this.pr)==null||t.call(this),this.pr=void 0}doPageView(t,n){var r,o=this.gr(t,n);return this.dr={pathname:(r=me?.location.pathname)!==null&&r!==void 0?r:"",pageViewId:n,timestamp:t},this._instance.scrollManager.resetContext(),o}doPageLeave(t){var n;return this.gr(t,(n=this.dr)==null?void 0:n.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.dr)==null?void 0:t.pageViewId}}gr(t,n){var r=this.dr;if(!r)return{$pageview_id:n};var o={$pageview_id:n,$prev_pageview_id:r.pageViewId},s=this._instance.scrollManager.getContext();if(s&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:l,lastScrollY:c,maxScrollY:d,maxContentHeight:f,lastContentY:p,maxContentY:h}=s;if(!(Ue(l)||Ue(c)||Ue(d)||Ue(f)||Ue(p)||Ue(h))){l=Math.ceil(l),c=Math.ceil(c),d=Math.ceil(d),f=Math.ceil(f),p=Math.ceil(p),h=Math.ceil(h);var g=l>1?Ei(c/l,0,1,$e):1,v=l>1?Ei(d/l,0,1,$e):1,y=f>1?Ei(p/f,0,1,$e):1,b=f>1?Ei(h/f,0,1,$e):1;o=On(o,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:g,$prev_pageview_max_scroll:d,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:p,$prev_pageview_last_content_percentage:y,$prev_pageview_max_content:h,$prev_pageview_max_content_percentage:b})}}return r.pathname&&(o.$prev_pageview_pathname=r.pathname),r.timestamp&&(o.$prev_pageview_duration=(t.getTime()-r.timestamp.getTime())/1e3),o}}var ere={[TD]:{exposure:"hidden"},[Rd]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[Od]:{exposure:"hidden"},[S1]:{exposure:"event"},[E1]:{exposure:"hidden"},[x1]:{exposure:"event"},[R1]:{exposure:"hidden"},[O1]:{exposure:"event"},[T1]:{exposure:"event"},[LS]:{exposure:"event"},[C1]:{exposure:"hidden"},[A1]:{exposure:"event"},[Td]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[rg]:{exposure:"hidden"},[$S]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[Cc]:{exposure:"derived",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!In(e))return{};for(var t={},n=Object.keys(e),r=0;n.length>r;r++)t["$feature/"+n[r]]=e[n[r]];return t}},[ym]:{exposure:"event"},[Cd]:{exposure:"hidden"},[I1]:{exposure:"hidden"},[M1]:{exposure:"event"},[P1]:{exposure:"event"},[ns]:{exposure:"event"},[bc]:{exposure:"hidden"},[Ad]:{exposure:"hidden"},[Ya]:{exposure:"hidden"},[N1]:{exposure:"hidden"},[k1]:{exposure:"event"},[bm]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[Ld]:{exposure:"hidden"},[D1]:{exposure:"hidden"},[L1]:{exposure:"hidden"},[og]:{exposure:"hidden"},[Jo]:{exposure:"hidden"},[$1]:{exposure:"hidden"},[j1]:{exposure:"hidden"},[U1]:{exposure:"hidden"},[z1]:{exposure:"hidden"},[ig]:{exposure:"hidden"},[sg]:{exposure:"hidden"},[CD]:{exposure:"event"},[AD]:{exposure:"event"},[ID]:{exposure:"event"},[MD]:{exposure:"event"},[ND]:{exposure:"event"},[kD]:{exposure:"event"},[DD]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},tre=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],ug=e=>{var t=Le?.createElement("a");return Ue(t)?null:(t.href=e,t)},dg=function(e,t){for(var n,r=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),o=0;r.length>o;o++){var s=r[o].split("=");if(s[0]===t){n=s;break}}if(!Pt(n)||2>n.length)return"";var l=n[1];try{l=decodeURIComponent(l)}catch{$e.error("Skipping decoding for malformed query param: "+l)}return l.replace(/\+/g," ")},of=function(e,t,n){if(!e||!t||!t.length)return e;for(var r=e.split("#"),o=r[1],s=(r[0]||"").split("?"),l=s[1],c=s[0],d=(l||"").split("&"),f=[],p=0;d.length>p;p++){var h=d[p].split("=");Pt(h)&&(t.includes(h[0])?f.push(h[0]+"="+n):f.push(d[p]))}var g=c;return l!=null&&(g+="?"+f.join("&")),o!=null&&(g+="#"+o),g},fg=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},_p="https?://(.*)",Yc=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],nre=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Yc],sf="<masked>",rre=["li_fat_id"];function zD(e,t,n){if(!Le)return{};var r,o=t?[...Yc,...n||[]]:[],s=FD(of(Le.URL,o,sf),e),l=(r={},cn(rre,(function(c){var d=bi.O(c);r[c]=d||null})),r);return On(l,s)}function FD(e,t){var n=nre.concat(t||[]),r={};return cn(n,(function(o){var s=dg(e,o);r[o]=s||null})),r}function BD(e){var t=(function(s){return s?s.search(_p+"google.([^/?]*)")===0?"google":s.search(_p+"bing.com")===0?"bing":s.search(_p+"yahoo.com")===0?"yahoo":s.search(_p+"duckduckgo.com")===0?"duckduckgo":null:null})(e),n=t!="yahoo"?"q":"p",r={};if(!ps(t)){r.$search_engine=t;var o=Le?dg(Le.referrer,n):"";o.length&&(r.ph_keyword=o)}return r}function UA(){return navigator.language||navigator.userLanguage}var hg="$direct";function VD(){return Le?.referrer||hg}function HD(e,t){var n=e?[...Yc,...t||[]]:[],r=pr?.href.substring(0,1e3);return{r:VD().substring(0,1e3),u:r?of(r,n,sf):void 0}}function qD(e){var t,{r:n,u:r}=e,o={$referrer:n,$referring_domain:n==null?void 0:n==hg?hg:(t=ug(n))==null?void 0:t.host};if(r){o.$current_url=r;var s=ug(r);o.$host=s?.host,o.$pathname=s?.pathname;var l=FD(r);On(o,l)}if(n){var c=BD(n);On(o,c)}return o}function GD(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function ore(){try{return new Date().getTimezoneOffset()}catch{return}}var ire=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class Ky{constructor(t,n){this.Bt=t,this.props={},this.mr=!1,this.yr=(r=>{var o="";return r.token&&(o=r.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),r.persistence_name?"ph_"+r.persistence_name:"ph_"+o+"_posthog"})(t),this.nr=this.br(t),this.load(),t.debug&&$e.info("Persistence loaded",t.persistence,Ne({},this.props)),this.update_config(t,t,n),this.save()}isDisabled(){return!!this._r}br(t){ire.indexOf(t.persistence.toLowerCase())===-1&&($e.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var n=(function(o){o===void 0&&(o=[]);var s=[...Zne,...o];return Ne({},_n,{Z(l){try{var c={};try{c=bi.Z(l)||{}}catch{}var d=On(c,JSON.parse(_n.O(l)||"{}"));return _n.M(l,d),d}catch{}return null},M(l,c,d,f,p,h){try{_n.M(l,c,void 0,void 0,h);var g={};s.forEach((v=>{c[v]&&(g[v]=c[v])})),Object.keys(g).length&&bi.M(l,g,d,f,p,h)}catch(v){_n.B(v)}},F(l,c){try{me?.localStorage.removeItem(l),bi.F(l,c)}catch(d){_n.B(d)}}})})(t.cookie_persisted_properties||[]),r=t.persistence.toLowerCase();return r==="localstorage"&&_n.R()?_n:r==="localstorage+cookie"&&n.R()?n:r==="sessionstorage"&&mr.R()?mr:r==="memory"?Yne:r==="cookie"?bi:n.R()?n:bi}wr(t){var n=t??this.Bt.feature_flag_cache_ttl_ms;if(!n||0>=n)return!1;var r=this.props[og];return!r||typeof r!="number"||Date.now()-r>n}properties(){var t={};return cn(this.props,((n,r)=>{var o=(s=>{var l=ere[s];if(l)return l;for(var[c,d]of tre)if(s.indexOf(c)===0)return d})(r);if(o?.exposure==="derived"){if(o.shouldSkipFromEventProperties!=null&&o.shouldSkipFromEventProperties(n,r===Cc?()=>this.wr():()=>!1))return;o.transformToEventProperties&&On(t,o.transformToEventProperties(n))}else o&&o.exposure!=="event"||(t[r]=n)})),t}load(){if(!this._r){var t=this.nr.Z(this.yr);t&&(this.props=On({},t))}}save(){this._r||this.nr.M(this.yr,this.props,this.Ir,this.Cr,this.Sr,this.Bt.debug)}remove(){this.nr.F(this.yr,!1),this.nr.F(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(t,n,r){if(In(t)){Ue(n)&&(n="None"),this.Ir=Ue(r)?this.kr:r;var o=!1;if(cn(t,((s,l)=>{this.props.hasOwnProperty(l)&&this.props[l]!==n||(this.Tr(l,s),o=!0)})),o)return this.save(),!0}return!1}register(t,n){if(In(t)){this.Ir=Ue(n)?this.kr:n;var r=!1;if(cn(t,((o,s)=>{t.hasOwnProperty(s)&&this.props[s]!==o&&(this.Tr(s,o),r=!0)})),r)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.Ar(t),this.save())}update_campaign_params(){if(!this.mr){var t=zD(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);Tc(US(t))||this.register(t),this.mr=!0}}update_search_keyword(){var t;this.register((t=Le?.referrer)?BD(t):{})}update_referrer_info(){var t;this.register_once({$referrer:VD(),$referring_domain:Le!=null&&Le.referrer&&((t=ug(Le.referrer))==null?void 0:t.host)||hg},void 0)}set_initial_person_info(){this.props[U1]||this.props[z1]||this.register_once({[ig]:HD(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};cn([z1,U1],(l=>{var c=this.props[l];c&&cn(c,(function(d,f){t["$initial_"+v1(f)]=d}))}));var n,r,o=this.props[ig];if(o){var s=(n=qD(o),r={},cn(n,(function(l,c){r["$initial_"+v1(c)]=l})),r);On(t,s)}return t}safe_merge(t){return cn(this.props,(function(n,r){r in t||(t[r]=n)})),t}update_config(t,n,r){if(this.kr=this.Ir=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!r),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==n.persistence||!((l,c)=>{if(l.length!==c.length)return!1;var d=[...l].sort(),f=[...c].sort();return d.every(((p,h)=>p===f[h]))})(t.cookie_persisted_properties||[],n.cookie_persisted_properties||[])){var o=this.br(t),s=this.props;this.clear(),this.nr=o,this.props=s,this.save()}}set_disabled(t){this._r=t,this._r?this.remove():this.save()}set_cross_subdomain(t){t!==this.Cr&&(this.Cr=t,this.remove(),this.save())}set_secure(t){t!==this.Sr&&(this.Sr=t,this.remove(),this.save())}set_event_timer(t,n){var r=this.props[Od]||{};r[t]=n,this.Tr(Od,r),this.save()}remove_event_timer(t){var n=this.props[Od]||{},r=n[t];return Ue(r)||(delete n[t],this.Tr(Od,n),this.save()),r}get_property(t){return this.props[t]}set_property(t,n){this.Tr(t,n),this.save()}Tr(t,n){this.props[t]=n}Ar(t){delete this.props[t]}}var cd={Activation:"events",Cancellation:"cancelEvents"},Zy={Popover:"popover",API:"api",Widget:"widget"},Id={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},Yy={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},B1={Popover:"popover",Inline:"inline"},sre={SHOWN:"product tour shown"},zA={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},FA=mn("[RateLimiter]");class are{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=n=>{var r=n.text;if(r&&r.length)try{(JSON.parse(r).quota_limited||[]).forEach((o=>{FA.info((o||"events")+" is quota limited."),this.serverLimits[o]=new Date().getTime()+6e4}))}catch(o){return void FA.warn('could not rate limit - continuing. Error: "'+o?.message+'"',{text:r})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var n,r,o;t===void 0&&(t=!1);var{captureEventsBurstLimit:s,captureEventsPerSecond:l}=this,c=new Date().getTime(),d=(n=(r=this.instance.persistence)==null?void 0:r.get_property(j1))!==null&&n!==void 0?n:{tokens:s,last:c};d.tokens+=(c-d.last)/1e3*l,d.last=c,d.tokens>s&&(d.tokens=s);var f=1>d.tokens;return f||t||(d.tokens=Math.max(0,d.tokens-1)),!f||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+l+" events per second and "+s+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=f,(o=this.instance.persistence)==null||o.set_property(j1,d),{isRateLimited:f,remainingTokens:d.tokens}}isServerRateLimited(t){var n=this.serverLimits[t||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var ud=mn("[RemoteConfig]");class KD{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=We._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}Er(t){var n,r;(n=We.__PosthogExtensions__)!=null&&n.loadExternalDependency?(r=We.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):t()}Rr(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(n){t(n.json)}})}load(){try{if(this.remoteConfig)return ud.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void ud.warn("Remote config is disabled. Falling back to local config.");this.Er((t=>{if(!t)return ud.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((n=>{this.Nr(n),this.Mr()}));this.Nr(t),this.Mr()}))}catch(t){ud.error("Error loading remote config",t)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||Le?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var t;if(!this.Or){var n=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;n!==0&&(this.Or=setInterval((()=>{this.refresh()}),n))}}Nr(t){var n;t||ud.error("Failed to fetch remote config from PostHog."),this._instance.Nr(t??{}),t?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(n=this._instance.featureFlags)==null||n.ensureFlagsLoaded())}}var gi={GZipJS:"gzip-js",Base64:"base64"},Uo=Uint8Array,Xr=Uint16Array,Wc=Uint32Array,zS=new Uo([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),FS=new Uo([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),BA=new Uo([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ZD=function(e,t){for(var n=new Xr(31),r=0;31>r;++r)n[r]=t+=1<<e[r-1];var o=new Wc(n[30]);for(r=1;30>r;++r)for(var s=n[r];n[r+1]>s;++s)o[s]=s-n[r]<<5|r;return[n,o]},YD=ZD(zS,2),V1=YD[1];YD[0][28]=258,V1[258]=28;for(var VA=ZD(FS,0)[1],WD=new Xr(32768),un=0;32768>un;++un){var hc=(43690&un)>>>1|(21845&un)<<1;WD[un]=((65280&(hc=(61680&(hc=(52428&hc)>>>2|(13107&hc)<<2))>>>4|(3855&hc)<<4))>>>8|(255&hc)<<8)>>>1}var $d=function(e,t,n){for(var r=e.length,o=0,s=new Xr(t);r>o;++o)++s[e[o]-1];var l,c=new Xr(t);for(o=0;t>o;++o)c[o]=c[o-1]+s[o-1]<<1;for(l=new Xr(r),o=0;r>o;++o)l[o]=WD[c[e[o]-1]++]>>>15-e[o];return l},cl=new Uo(288);for(un=0;144>un;++un)cl[un]=8;for(un=144;256>un;++un)cl[un]=9;for(un=256;280>un;++un)cl[un]=7;for(un=280;288>un;++un)cl[un]=8;var pg=new Uo(32);for(un=0;32>un;++un)pg[un]=5;var lre=$d(cl,9),cre=$d(pg,5),QD=function(e){return(e/8>>0)+(7&e&&1)},XD=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof Xr?Xr:e instanceof Wc?Wc:Uo)(n-t);return r.set(e.subarray(t,n)),r},Qi=function(e,t,n){var r=t/8>>0;e[r]|=n<<=7&t,e[r+1]|=n>>>8},dd=function(e,t,n){var r=t/8>>0;e[r]|=n<<=7&t,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Wy=function(e,t){for(var n=[],r=0;e.length>r;++r)e[r]&&n.push({s:r,f:e[r]});var o=n.length,s=n.slice();if(!o)return[new Uo(0),0];if(o==1){var l=new Uo(n[0].s+1);return l[n[0].s]=1,[l,1]}n.sort((function(O,A){return O.f-A.f})),n.push({s:-1,f:25001});var c=n[0],d=n[1],f=0,p=1,h=2;for(n[0]={s:-1,f:c.f+d.f,l:c,r:d};p!=o-1;)c=n[n[h].f>n[f].f?f++:h++],d=n[f!=p&&n[h].f>n[f].f?f++:h++],n[p++]={s:-1,f:c.f+d.f,l:c,r:d};var g=s[0].s;for(r=1;o>r;++r)s[r].s>g&&(g=s[r].s);var v=new Xr(g+1),y=H1(n[p-1],v,0);if(y>t){r=0;var b=0,x=y-t,w=1<<x;for(s.sort((function(O,A){return v[A.s]-v[O.s]||O.f-A.f}));o>r;++r){var E=s[r].s;if(t>=v[E])break;b+=w-(1<<y-v[E]),v[E]=t}for(b>>>=x;b>0;){var T=s[r].s;t>v[T]?b-=1<<t-v[T]++-1:++r}for(;r>=0&&b;--r){var R=s[r].s;v[R]==t&&(--v[R],++b)}y=t}return[new Uo(v),y]},H1=function(e,t,n){return e.s==-1?Math.max(H1(e.l,t,n+1),H1(e.r,t,n+1)):t[e.s]=n},HA=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Xr(++t),r=0,o=e[0],s=1,l=function(d){n[r++]=d},c=1;t>=c;++c)if(e[c]==o&&c!=t)++s;else{if(!o&&s>2){for(;s>138;s-=138)l(32754);s>2&&(l(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(l(o),--s;s>6;s-=6)l(8304);s>2&&(l(s-3<<5|8208),s=0)}for(;s--;)l(o);s=1,o=e[c]}return[n.subarray(0,r),t]},fd=function(e,t){for(var n=0,r=0;t.length>r;++r)n+=e[r]*t[r];return n},q1=function(e,t,n){var r=n.length,o=QD(t+2);e[o]=255&r,e[o+1]=r>>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var s=0;r>s;++s)e[o+s+4]=n[s];return 8*(o+4+r)},qA=function(e,t,n,r,o,s,l,c,d,f,p){Qi(t,p++,n),++o[256];for(var h=Wy(o,15),g=h[0],v=h[1],y=Wy(s,15),b=y[0],x=y[1],w=HA(g),E=w[0],T=w[1],R=HA(b),O=R[0],A=R[1],I=new Xr(19),P=0;E.length>P;++P)I[31&E[P]]++;for(P=0;O.length>P;++P)I[31&O[P]]++;for(var L=Wy(I,7),H=L[0],$=L[1],B=19;B>4&&!H[BA[B-1]];--B);var z,K,oe,q,W=f+5<<3,te=fd(o,cl)+fd(s,pg)+l,le=fd(o,g)+fd(s,b)+l+14+3*B+fd(I,H)+(2*I[16]+3*I[17]+7*I[18]);if(te>=W&&le>=W)return q1(t,p,e.subarray(d,d+f));if(Qi(t,p,1+(te>le)),p+=2,te>le){z=$d(g,v),K=g,oe=$d(b,x),q=b;var Q=$d(H,$);for(Qi(t,p,T-257),Qi(t,p+5,A-1),Qi(t,p+10,B-4),p+=14,P=0;B>P;++P)Qi(t,p+3*P,H[BA[P]]);p+=3*B;for(var k=[E,O],G=0;2>G;++G){var V=k[G];for(P=0;V.length>P;++P)Qi(t,p,Q[D=31&V[P]]),p+=H[D],D>15&&(Qi(t,p,V[P]>>>5&127),p+=V[P]>>>12)}}else z=lre,K=cl,oe=cre,q=pg;for(P=0;c>P;++P)if(r[P]>255){var D;dd(t,p,z[257+(D=r[P]>>>18&31)]),p+=K[D+257],D>7&&(Qi(t,p,r[P]>>>23&31),p+=zS[D]);var F=31&r[P];dd(t,p,oe[F]),p+=q[F],F>3&&(dd(t,p,r[P]>>>5&8191),p+=FS[F])}else dd(t,p,z[r[P]]),p+=K[r[P]];return dd(t,p,z[256]),p+K[256]},ure=new Wc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),dre=(function(){for(var e=new Wc(256),t=0;256>t;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e})(),Qy=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function fre(e,t){t===void 0&&(t={});var n=(function(){var h=4294967295;return{p(g){for(var v=h,y=0;g.length>y;++y)v=dre[255&v^g[y]]^v>>>8;h=v},d(){return 4294967295^h}}})(),r=e.length;n.p(e);var o,s,l,c,d,f=(c=10+((o=t).filename&&o.filename.length+1||0),d=8,(function(h,g,v,y,b,x){var w=h.length,E=new Uo(y+w+5*(1+Math.floor(w/7e3))+b),T=E.subarray(y,E.length-b),R=0;if(!g||8>w)for(var O=0;w>=O;O+=65535){var A=O+65535;w>A?R=q1(T,R,h.subarray(O,A)):(T[O]=!0,R=q1(T,R,h.subarray(O,w)))}else{for(var I=ure[g-1],P=I>>>13,L=8191&I,H=(1<<v)-1,$=new Xr(32768),B=new Xr(H+1),z=Math.ceil(v/3),K=2*z,oe=function(ze){return(h[ze]^h[ze+1]<<z^h[ze+2]<<K)&H},q=new Wc(25e3),W=new Xr(288),te=new Xr(32),le=0,Q=0,k=(O=0,0),G=0,V=0;w>O;++O){var D=oe(O),F=32767&O,X=B[D];if($[F]=X,B[D]=F,O>=G){var fe=w-O;if((le>7e3||k>24576)&&fe>423){R=qA(h,T,0,q,W,te,Q,k,V,O-V,R),k=le=Q=0,V=O;for(var pe=0;286>pe;++pe)W[pe]=0;for(pe=0;30>pe;++pe)te[pe]=0}var xe=2,je=0,Y=L,re=F-X&32767;if(fe>2&&D==oe(O-re))for(var ve=Math.min(P,fe)-1,se=Math.min(32767,O),Se=Math.min(258,fe);se>=re&&--Y&&F!=X;){if(h[O+xe]==h[O+xe-re]){for(var Oe=0;Se>Oe&&h[O+Oe]==h[O+Oe-re];++Oe);if(Oe>xe){if(xe=Oe,je=re,Oe>ve)break;var tt=Math.min(re,Oe-2),rt=0;for(pe=0;tt>pe;++pe){var Be=O-re+pe+32768&32767,Qe=Be-$[Be]+32768&32767;Qe>rt&&(rt=Qe,X=Be)}}}re+=(F=X)-(X=$[F])+32768&32767}if(je){q[k++]=268435456|V1[xe]<<18|VA[je];var Pe=31&V1[xe],Me=31&VA[je];Q+=zS[Pe]+FS[Me],++W[257+Pe],++te[Me],G=O+xe,++le}else q[k++]=h[O],++W[h[O]]}}R=qA(h,T,!0,q,W,te,Q,k,V,O-V,R)}return XD(E,0,y+QD(R)+b)})(s=e,(l=t).level==null?6:l.level,l.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):12+l.mem,c,d)),p=f.length;return(function(h,g){var v=g.filename;if(h[0]=31,h[1]=139,h[2]=8,h[8]=2>g.level?4:g.level==9?2:0,h[9]=3,g.mtime!=0&&Qy(h,4,Math.floor(new Date(g.mtime||Date.now())/1e3)),v){h[3]=8;for(var y=0;v.length>=y;++y)h[y+10]=v.charCodeAt(y)}})(f,t),Qy(f,p-8,n.d()),Qy(f,p-4,r),f}var hre=!!m1||!!p1,JD="text/plain",GA=!1,ev=function(e,t,n){var r;n===void 0&&(n=!0);var[o,s]=e.split("?"),l=Ne({},t),c=(r=s?.split("&").map((f=>{var p,[h,g]=f.split("="),v=n&&(p=l[h])!==null&&p!==void 0?p:g;return delete l[h],h+"="+v})))!==null&&r!==void 0?r:[],d=(function(f,p){var h,g;p===void 0&&(p="&");var v=[];return cn(f,(function(y,b){Ue(y)||Ue(b)||b==="undefined"||(h=encodeURIComponent((x=>x instanceof File)(y)?y.name:y.toString()),g=encodeURIComponent(b),v[v.length]=g+"="+h)})),v.join(p)})(l);return d&&c.push(d),o+"?"+c.join("&")},Ac=(e,t)=>JSON.stringify(e,((n,r)=>typeof r=="bigint"?r.toString():r),t),Xy=e=>{if(e.tr)return e.tr;var{data:t,compression:n}=e;if(t){if(n===gi.GZipJS){var r=fre((function(c,d){var f=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var p=new Uo(c.length+(c.length>>>1)),h=0,g=function(x){p[h++]=x},v=0;f>v;++v){if(h+5>p.length){var y=new Uo(h+8+(f-v<<1));y.set(p),p=y}var b=c.charCodeAt(v);128>b?g(b):2048>b?(g(192|b>>>6),g(128|63&b)):b>55295&&57344>b?(g(240|(b=65536+(1047552&b)|1023&c.charCodeAt(++v))>>>18),g(128|b>>>12&63),g(128|b>>>6&63),g(128|63&b)):(g(224|b>>>12),g(128|b>>>6&63),g(128|63&b))}return XD(p,0,h)})(Ac(t)),{mtime:0});return{contentType:JD,body:r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength),estimatedSize:r.byteLength}}if(n===gi.Base64){var o=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,f)=>String.fromCharCode(parseInt(f,16)))))})(Ac(t)),s=(c=>"data="+encodeURIComponent(typeof c=="string"?c:Ac(c)))(o);return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var l=Ac(t);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},pre=(function(){var e=Do((function*(t){var n=Ac(t.data),r=yield(function(s,l,c){return g1.apply(this,arguments)})(n,Lr.DEBUG,{rethrow:!0});if(!r)return t;var o=yield r.arrayBuffer();return Ne({},t,{tr:{contentType:JD,body:o,estimatedSize:o.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),KA=(e,t)=>ev(e,{_:new Date().getTime().toString(),ver:Lr.JS_SDK_VERSION,compression:t}),Sm=[];p1&&Sm.push({transport:"fetch",method(e){var t,n,{contentType:r,body:o,estimatedSize:s}=(t=Xy(e))!==null&&t!==void 0?t:{},l=new Headers;cn(e.headers,(function(p,h){l.append(h,p)})),r&&l.append("Content-Type",r);var c=e.url,d=null;if(xA){var f=new xA;d={signal:f.signal,timeout:setTimeout((()=>f.abort()),e.timeout)}}p1(c,Ne({method:e?.method||"GET",headers:l,keepalive:e.method==="POST"&&52428.8>(s||0),body:o,signal:(n=d)==null?void 0:n.signal},e.fetchOptions)).then((p=>p.text().then((h=>{var g={statusCode:p.status,text:h};if(p.status===200)try{g.json=JSON.parse(h)}catch(v){$e.error(v)}e.callback==null||e.callback(g)})))).catch((p=>{$e.error(p),e.callback==null||e.callback({statusCode:0,error:p})})).finally((()=>d?clearTimeout(d.timeout):null))}}),m1&&Sm.push({transport:"XHR",method(e){var t,n=new m1;n.open(e.method||"GET",e.url,!0);var{contentType:r,body:o}=(t=Xy(e))!==null&&t!==void 0?t:{};cn(e.headers,(function(s,l){n.setRequestHeader(l,s)})),r&&n.setRequestHeader("Content-Type",r),e.timeout&&(n.timeout=e.timeout),e.disableXHRCredentials||(n.withCredentials=!0),n.onreadystatechange=()=>{if(n.readyState===4){var s={statusCode:n.status,text:n.responseText};if(n.status===200)try{s.json=JSON.parse(n.responseText)}catch{}e.callback==null||e.callback(s)}},n.send(o)}}),mo!=null&&mo.sendBeacon&&Sm.push({transport:"sendBeacon",method(e){var t=ev(e.url,{beacon:"1"});try{var n,{contentType:r,body:o}=(n=Xy(e))!==null&&n!==void 0?n:{};if(!o)return;var s=o instanceof Blob?o:new Blob([o],{type:r});mo.sendBeacon(t,s)}catch{}}});var G1=3e3;class mre{constructor(t,n){this.Pr=!0,this.Lr=[],this.Dr=Ei(n?.flush_interval_ms||G1,250,5e3,$e.createLogger("flush interval"),G1),this.Br=t}enqueue(t){this.Lr.push(t),this.jr||this.$r()}unload(){this.qr();var t=this.Lr.length>0?this.Zr():{},n=Object.values(t);[...n.filter((r=>r.url.indexOf("/e")===0)),...n.filter((r=>r.url.indexOf("/e")!==0))].map((r=>{this.Br(Ne({},r,{transport:"sendBeacon"}))}))}enable(){this.Pr=!1,this.$r()}$r(){var t=this;this.Pr||(this.jr=setTimeout((()=>{if(this.qr(),this.Lr.length>0){var n=this.Zr(),r=function(){var s=n[o],l=new Date().getTime();s.data&&Pt(s.data)&&cn(s.data,(c=>{c.offset=Math.abs(c.timestamp-l),delete c.timestamp})),t.Br(s)};for(var o in n)r()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var t={};return cn(this.Lr,(n=>{var r,o=n,s=(o?o.batchKey:null)||o.url;Ue(t[s])&&(t[s]=Ne({},o,{data:[]})),(r=t[s].data)==null||r.push(o.data)})),this.Lr=[],t}}var gre=["retriesPerformedSoFar"];class vre{constructor(t){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=t,this.Lr=[],this.zr=!0,!Ue(me)&&"onLine"in me.navigator&&(this.zr=me.navigator.onLine,this.Ur=()=>{this.zr=!0,this.Yr()},this.Gr=()=>{this.zr=!1},Vn(me,"online",this.Ur),Vn(me,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(t){var{retriesPerformedSoFar:n}=t,r=nD(t,gre);yc(n)&&(r.url=ev(r.url,{retry_count:n})),this._instance._send_request(Ne({},r,{callback:o=>{o.statusCode===200||o.statusCode>=400&&500>o.statusCode||(n??0)>=10?r.callback==null||r.callback(o):this.Wr(Ne({retriesPerformedSoFar:n},r))}}))}Wr(t){var n=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=n+1;var r=(function(l){var c=3e3*Math.pow(2,l),d=c/2,f=Math.min(18e5,c),p=Math.random()-.5;return Math.ceil(f+p*(f-d))})(n),o=Date.now()+r;this.Lr.push({retryAt:o,requestOptions:t});var s="Enqueued failed request for retry in "+r;navigator.onLine||(s+=" (Browser is offline)"),$e.warn(s),this.Vr||(this.Vr=!0,this.Xr())}Xr(){if(this.Jr&&clearTimeout(this.Jr),this.Lr.length===0)return this.Vr=!1,void(this.Jr=void 0);this.Jr=setTimeout((()=>{this.zr&&this.Lr.length>0&&this.Yr(),this.Xr()}),this.Hr)}Yr(){var t=Date.now(),n=[],r=this.Lr.filter((s=>t>s.retryAt||(n.push(s),!1)));if(this.Lr=n,r.length>0)for(var{requestOptions:o}of r)this.retriableRequest(o)}unload(){for(var{requestOptions:t}of(this.Jr&&(clearTimeout(this.Jr),this.Jr=void 0),this.Vr=!1,Ue(me)||(this.Ur&&(me.removeEventListener("online",this.Ur),this.Ur=void 0),this.Gr&&(me.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Lr))try{this._instance._send_request(Ne({},t,{transport:"sendBeacon"}))}catch(n){$e.error(n)}this.Lr=[]}}class _re{constructor(t){this.Kr=()=>{var n,r,o,s;this.Qr||(this.Qr={});var l=this.scrollElement(),c=this.scrollY(),d=l?Math.max(0,l.scrollHeight-l.clientHeight):0,f=c+(l?.clientHeight||0),p=l?.scrollHeight||0;this.Qr.lastScrollY=Math.ceil(c),this.Qr.maxScrollY=Math.max(c,(n=this.Qr.maxScrollY)!==null&&n!==void 0?n:0),this.Qr.maxScrollHeight=Math.max(d,(r=this.Qr.maxScrollHeight)!==null&&r!==void 0?r:0),this.Qr.lastContentY=f,this.Qr.maxContentY=Math.max(f,(o=this.Qr.maxContentY)!==null&&o!==void 0?o:0),this.Qr.maxContentHeight=Math.max(p,(s=this.Qr.maxContentHeight)!==null&&s!==void 0?s:0)},this._instance=t}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var t=this.Qr;return setTimeout(this.Kr,0),t}startMeasuringScrollPosition(){Vn(me,"scroll",this.Kr,{capture:!0}),Vn(me,"scrollend",this.Kr,{capture:!0}),Vn(me,"resize",this.Kr)}scrollElement(){if(!this.ei)return me?.document.documentElement;var t=Pt(this.ei)?this.ei:[this.ei];for(var n of t){var r=me?.document.querySelector(n);if(r)return r}}scrollY(){if(this.ei){var t=this.scrollElement();return t&&t.scrollTop||0}return me&&(me.scrollY||me.pageYOffset||me.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var t=this.scrollElement();return t&&t.scrollLeft||0}return me&&(me.scrollX||me.pageXOffset||me.document.documentElement.scrollLeft)||0}}var yre=e=>HD(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);class ZA{constructor(t,n,r,o){this.ti=s=>{var l=this.ri();if(!l||l.sessionId!==s){var c={sessionId:s,props:this.ii(this._instance)};this.ni.register({[$1]:c})}},this._instance=t,this.si=n,this.ni=r,this.ii=o||yre,this.si.onSessionId(this.ti)}ri(){return this.ni.props[$1]}getSetOnceProps(){var t,n=(t=this.ri())==null?void 0:t.props;return n?"r"in n?qD(n):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var t={};return cn(US(this.getSetOnceProps()),((n,r)=>{r==="$current_url"&&(r="url"),t["$session_entry_"+v1(r)]=n})),t}}class BS{constructor(){this.oi={}}on(t,n){return this.oi[t]||(this.oi[t]=[]),this.oi[t].push(n),()=>{this.oi[t]=this.oi[t].filter((r=>r!==n))}}emit(t,n){for(var r of this.oi[t]||[])r(n);for(var o of this.oi["*"]||[])o(t,n)}}var Jy=mn("[SessionId]");class YA{on(t,n){return this.ai.on(t,n)}constructor(t,n,r){var o;if(this.li=[],this.ui=void 0,this.ai=new BS,this.hi=(f,p)=>!(!yc(f)||!yc(p))&&Math.abs(f-p)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===is)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Bt=t.config,this.ni=t.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=n||ea,this.fi=r||ea;var s=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*Ei(this.Bt.session_idle_timeout_seconds||1800,60,36e3,Jy.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+s+"_window_id",this.mi="ph_"+s+"_primary_window_exists",this.yi()){var l=mr.Z(this.gi),c=mr.Z(this.mi);l&&!c?this.ci=l:mr.F(this.gi),mr.M(this.mi,!0)}if((o=this.Bt.bootstrap)!=null&&o.sessionID)try{var d=(f=>{var p=this.Bt.bootstrap.sessionID.replace(/-/g,"");if(p.length!==32)throw new Error("Not a valid UUID");if(p[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(p.substring(0,12),16)})();this.bi(this.Bt.bootstrap.sessionID,new Date().getTime(),d)}catch(f){Jy.error("Invalid sessionID in bootstrap",f)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return Ue(this.li)&&(this.li=[]),this.li.push(t),this.di&&t(this.di,this.ci),()=>{this.li=this.li.filter((n=>n!==t))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&mr.R()}Ii(t){t!==this.ci&&(this.ci=t,this.yi()&&mr.M(this.gi,t))}Ci(){return this.ci?this.ci:this.yi()?mr.Z(this.gi):null}bi(t,n,r){t===this.di&&n===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this.di=t,this.ni.register({[rg]:[n,t,r]}))}Si(){var t=this.ni.props[rg];return Pt(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&me&&(me.removeEventListener(lg,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&mr.F(this.mi)},Vn(me,lg,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(t,n){if(t===void 0&&(t=!1),n===void 0&&(n=null),this.Bt.cookieless_mode===is)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=n||new Date().getTime(),[o,s,l]=this.Si(),c=this.Ci(),d=yc(l)&&Math.abs(r-l)>864e5,f=!1,p=!s,h=!p&&!t&&this.hi(r,o);p||h||d?(s=this.vi(),c=this.fi(),Jy.info("new session ID generated",{sessionId:s,windowId:c,changeReason:{noSessionId:p,activityTimeout:h,sessionPastMaximumLength:d}}),l=r,f=!0):c||(c=this.fi(),f=!0);var g=yc(o)&&t&&!d?o:r,v=yc(l)?l:new Date().getTime();return this.Ii(c),this.bi(s,g,v),t||this.pi(),f&&this.li.forEach((y=>y(s,c,f?{noSessionId:p,activityTimeout:h,sessionPastMaximumLength:d}:void 0))),{sessionId:s,windowId:c,sessionStartTimestamp:v,changeReason:f?{noSessionId:p,activityTimeout:h,sessionPastMaximumLength:d}:void 0,lastActivityTimestamp:o}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[t]=this.Si();if(this.hi(new Date().getTime(),t)){var n=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:n})}}),1.1*this.sessionTimeoutMs)}}var e6=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&TA(n,t))return!0;try{var r=e?.userAgentData;if(r!=null&&r.brands&&r.brands.some((o=>TA(o?.brand,t))))return!0}catch{}return!!e.webdriver},mg=function(e,t){if(!(function(n){try{new RegExp(n)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function WA(e,t,n){return Ac({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var t6={exact:(e,t)=>t.some((n=>e.some((r=>n===r)))),is_not:(e,t)=>t.every((n=>e.every((r=>n!==r)))),regex:(e,t)=>t.some((n=>e.some((r=>mg(n,r))))),not_regex:(e,t)=>t.every((n=>e.every((r=>!mg(n,r))))),icontains:(e,t)=>t.map(yp).some((n=>e.map(yp).some((r=>n.includes(r))))),not_icontains:(e,t)=>t.map(yp).every((n=>e.map(yp).every((r=>!n.includes(r))))),gt:(e,t)=>t.some((n=>{var r=parseFloat(n);return!isNaN(r)&&e.some((o=>r>parseFloat(o)))})),lt:(e,t)=>t.some((n=>{var r=parseFloat(n);return!isNaN(r)&&e.some((o=>r<parseFloat(o)))}))},yp=e=>e.toLowerCase();function n6(e,t){return!e||Object.entries(e).every((n=>{var[r,o]=n,s=t?.[r];if(Ue(s)||ps(s))return!1;var l=[String(s)],c=t6[o.operator];return!!c&&c(o.values,l)}))}var K1="custom",QA="i.posthog.com",bre=/^\/static\//;class wre{constructor(t){this.ki={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,n=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+QA,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}get region(){return this.ki[this.apiHost]||(this.ki[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":K1),this.ki[this.apiHost]}Ti(t){var n=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof n=="string"&&bre.test(t))return n.trim().replace(/\/$/,"")||void 0}endpointFor(t,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),t==="ui")return this.uiHost+n;if(t==="flags")return this.flagsApiHost+n;if(t==="assets"){var r=this.Ti(n);if(r)return""+r+n}if(this.region===K1)return this.apiHost+n;var o=QA+n;switch(t){case"assets":return"https://"+this.region+"-assets."+o;case"api":return"https://"+this.region+"."+o}}}var Qt=mn("[Surveys]"),Z1="seenSurvey_",Sre=[Zy.Popover,Zy.Widget,Zy.API],Ere={ignoreConditions:!1,ignoreDelay:!1,displayType:B1.Popover},xre=mn("[PostHog ExternalIntegrations]"),Rre={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class Ore{constructor(t){this._instance=t}ur(t,n){var r;(r=We.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,t,(o=>{if(o)return xre.error("failed to load script",o);n()}))}startIfEnabledOrStop(){var t=this,n=function(l){var c,d,f;!o||(c=We.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[l]||t.ur(Rre[l],(()=>{var p;(p=We.__PosthogExtensions__)==null||(p=p.integrations)==null||(p=p[l])==null||p.start(t._instance)})),!o&&(d=We.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[l]&&((f=We.__PosthogExtensions__)==null||(f=f.integrations)==null||(f=f[l])==null||f.stop())};for(var[r,o]of Object.entries((s=this._instance.config.integrations)!==null&&s!==void 0?s:{})){var s;n(r)}}}var pc,jd={},eb=0,Y1=()=>{},XA='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',hd="Surveys module not available",JA="sanitize_properties is deprecated. Use before_send instead",r6="Invalid value for property_denylist config: ",Sc="posthog",o6=!hre&&Zr?.indexOf("MSIE")===-1&&Zr?.indexOf("Mozilla")===-1,eI=e=>{var t;return Ne({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:Vne(Le?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:Y1,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:pr&&yn(pr?.search)&&pr.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(me==null||(t=me.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(n){$e.error("Bad HTTP status: "+n.statusCode+" "+n.text)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:F1,before_send:void 0,request_queue_config:{flush_interval_ms:G1},error_tracking:{},_onCapture:Y1,__preview_eager_load_replay:!1},(n=>({rageclick:!n||"2025-11-30">n||{content_ignorelist:!0},capture_pageview:!n||"2025-05-24">n||"history_change",session_recording:n&&n>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:n&&n>="2026-01-30"?"head":"body",internal_or_test_user_hostname:n&&n>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(e))},Tre=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],tI=e=>{var t={};for(var[n,r]of Tre)Ue(e[n])||(t[r]=e[n]);var o=On({},t,e);return Pt(e.property_blacklist)&&(Ue(e.property_denylist)?o.property_denylist=e.property_blacklist:Pt(e.property_denylist)?o.property_denylist=[...e.property_blacklist,...e.property_denylist]:$e.error(r6+e.property_denylist)),o};class Cre{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(t){$e.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class Lo{Ei(t,n){if(t){var r=this.Ri.indexOf(t);r!==-1&&this.Ri.splice(r,1)}return this.Ri.push(n),n.initialize==null||n.initialize(),n}Ni(){return this.config.cookieless_mode===is||this.config.cookieless_mode===Wa&&this.consent.isRejected()}get decideEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new Cre,this.Mi=!1,this.version=Lr.LIB_VERSION,this.Fi=new BS,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=eI(),this.SentryIntegration=Jne,this.sentryIntegration=r=>(function(o,s){var l=UD(o,s);return{name:jD,processEvent:c=>l(c)}})(this,r),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Oi=!1,this.Pi=null,this.Li=null,this.Di=null,this.scrollManager=new _re(this),this.pageViewManager=new jA(this),this.rateLimiter=new are(this),this.requestRouter=new wre(this),this.consent=new Wne(this),this.externalIntegrations=new Ore(this);var n=(t=Lo.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=n.featureFlags&&new n.featureFlags(this),this.toolbar=n.toolbar&&new n.toolbar(this),this.surveys=n.surveys&&new n.surveys(this),this.conversations=n.conversations&&new n.conversations(this),this.logs=n.logs&&new n.logs(this),this.experiments=n.experiments&&new n.experiments(this),this.exceptions=n.exceptions&&new n.exceptions(this),this.people={set:(r,o,s)=>{var l=yn(r)?{[r]:o}:r;this.setPersonProperties(l),s?.({})},set_once:(r,o,s)=>{var l=yn(r)?{[r]:o}:r;this.setPersonProperties(void 0,l),s?.({})}},this.on("eventCaptured",(r=>$e.info('send "'+r?.event+'"',r)))}init(t,n,r){if(r&&r!==Sc){var o,s=(o=jd[r])!==null&&o!==void 0?o:new Lo;return s._init(t,n,r),jd[r]=s,jd[Sc][r]=s,s}return this._init(t,n,r)}_init(t,n,r){var o,s;if(n===void 0&&(n={}),Ue(t)||_m(t))return $e.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},n.debug=this.Bi(n.debug),this.ji=n,this.$i=[],n.person_profiles?this.Li=n.person_profiles:n.process_person&&(this.Li=n.process_person),this.set_config(On({},eI(n.defaults),tI(n),{name:r,token:t})),this.config.on_xhr_error&&$e.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:gi.GZipJS;var l=this.qi();this.persistence=new Ky(this.config,l),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new Ky(Ne({},this.config,{persistence:"sessionStorage"}),l);var c=Ne({},this.persistence.props),d=Ne({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new mre((x=>this.Vi(x)),this.config.request_queue_config),this.Hi=new vre(this),this.__request_queue=[];var f=this.Ni();if(f||(this.sessionManager=new YA(this),this.sessionPropsManager=new ZA(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?($e.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(f)}),0)):($e.info("Initializing extensions synchronously"),this.zi(f)),Lr.DEBUG=Lr.DEBUG||this.config.debug,Lr.DEBUG&&$e.info("Starting in debug mode",{this:this,config:n,thisC:Ne({},this.config),p:c,s:d}),!this.config.identity_distinct_id||(o=n.bootstrap)!=null&&o.distinctID||(n.bootstrap=Ne({},n.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((s=n.bootstrap)==null?void 0:s.distinctID)!==void 0){var p=n.bootstrap.distinctID,h=this.get_distinct_id(),g=this.persistence.get_property(Jo);if(n.bootstrap.isIdentifiedID&&h!=null&&h!==p&&g===dc)this.identify(p);else if(n.bootstrap.isIdentifiedID&&h!=null&&h!==p&&g===fc)$e.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var v=this.config.get_device_id(ea()),y=n.bootstrap.isIdentifiedID?v:p;this.persistence.set_property(Jo,n.bootstrap.isIdentifiedID?fc:dc),this.register({distinct_id:p,$device_id:y})}}if(f)this.register_once({distinct_id:pp,$device_id:null},"");else if(!this.get_distinct_id()){var b=this.config.get_device_id(ea());this.register_once({distinct_id:b,$device_id:b},""),this.persistence.set_property(Jo,dc)}return Vn(me,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),n.segment?(function(x,w){var E=x.config.segment;if(!E)return w();(function(T,R){var O=T.config.segment;if(!O)return R();var A=P=>{var L=()=>P.anonymousId()||ea();T.config.get_device_id=L,P.id()&&(T.register({distinct_id:P.id(),$device_id:L()}),T.persistence.set_property(Jo,fc)),R()},I=O.user();"then"in I&&rs(I.then)?I.then(A):A(I)})(x,(()=>{E.register((T=>{Promise&&Promise.resolve||Gy.warn("This browser does not have Promise support, and can not use the segment integration");var R=(O,A)=>{if(!A)return O;O.event.userId||O.event.anonymousId===T.get_distinct_id()||(Gy.info("No userId set, resetting PostHog"),T.reset()),O.event.userId&&O.event.userId!==T.get_distinct_id()&&(Gy.info("UserId set, identifying with PostHog"),T.identify(O.event.userId));var I=T.calculateEventProperties(A,O.event.properties);return O.event.properties=Object.assign({},I,O.event.properties),O};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:O=>R(O,O.event.event),page:O=>R(O,wc),identify:O=>R(O,Hy),screen:O=>R(O,"$screen")}})(x)).then((()=>{w()}))}))})(this,(()=>this.Ui())):this.Ui(),rs(this.config._onCapture)&&this.config._onCapture!==Y1&&($e.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(x=>this.config._onCapture(x.event,x)))),this.config.ip&&$e.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}zi(t){var n,r,o,s,l,c,d,f=performance.now(),p=Ne({},Lo.__defaultExtensionClasses,this.config.__extensionClasses),h=[];p.featureFlags&&this.Ri.push(this.featureFlags=(n=this.featureFlags)!==null&&n!==void 0?n:new p.featureFlags(this)),p.exceptions&&this.Ri.push(this.exceptions=(r=this.exceptions)!==null&&r!==void 0?r:new p.exceptions(this)),p.historyAutocapture&&this.Ri.push(this.historyAutocapture=new p.historyAutocapture(this)),p.tracingHeaders&&this.Ri.push(new p.tracingHeaders(this)),p.siteApps&&this.Ri.push(this.siteApps=new p.siteApps(this)),p.sessionRecording&&!t&&this.Ri.push(this.sessionRecording=new p.sessionRecording(this)),this.config.disable_scroll_properties||h.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),p.autocapture&&this.Ri.push(this.autocapture=new p.autocapture(this)),p.surveys&&this.Ri.push(this.surveys=(o=this.surveys)!==null&&o!==void 0?o:new p.surveys(this)),p.logs&&this.Ri.push(this.logs=(s=this.logs)!==null&&s!==void 0?s:new p.logs(this)),p.conversations&&this.Ri.push(this.conversations=(l=this.conversations)!==null&&l!==void 0?l:new p.conversations(this)),p.productTours&&this.Ri.push(this.productTours=new p.productTours(this)),p.heatmaps&&this.Ri.push(this.heatmaps=new p.heatmaps(this)),p.webVitalsAutocapture&&this.Ri.push(this.webVitalsAutocapture=new p.webVitalsAutocapture(this)),p.exceptionObserver&&this.Ri.push(this.exceptionObserver=new p.exceptionObserver(this)),p.deadClicksAutocapture&&this.Ri.push(this.deadClicksAutocapture=new p.deadClicksAutocapture(this,Xne)),p.toolbar&&this.Ri.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new p.toolbar(this)),p.experiments&&this.Ri.push(this.experiments=(d=this.experiments)!==null&&d!==void 0?d:new p.experiments(this)),this.Ri.forEach((g=>{g.initialize&&h.push((()=>{g.initialize==null||g.initialize()}))})),h.push((()=>{if(this.Yi){var g=this.Yi;this.Yi=void 0,this.Nr(g)}})),this.Gi(h,f)}Gi(t,n){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&t.length>0)return void setTimeout((()=>{this.Gi(t,n)}),0);var r=t.shift();if(r)try{r()}catch(s){$e.error("Error initializing extension:",s)}}var o=Math.round(performance.now()-n);this.register_for_session({[ND]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[kD]:o}),this.config.__preview_deferred_init_extensions&&$e.info("PostHog extensions initialized ("+o+"ms)")}Nr(t){var n;if(!Le||!Le.body)return $e.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=t),this.Wi=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=St(t.supportedCompression,gi.GZipJS)?gi.GZipJS:St(t.supportedCompression,gi.Base64)?gi.Base64:void 0),(n=t.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:F1}),this.Ri.forEach((r=>r.onRemoteConfig==null?void 0:r.onRemoteConfig(t)))}Ui(){try{this.config.loaded(this)}catch(r){$e.critical("`loaded` function failed",r)}if(this.Xi(),this.config.internal_or_test_user_hostname&&pr!=null&&pr.hostname){var t=pr.hostname,n=this.config.internal_or_test_user_hostname;(typeof n=="string"?t===n:n.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ni())&&this.Ji()}),1),this.Ki=new KD(this),this.Ki.load()}Xi(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Zi)==null||t.enable())}_dom_loaded(){this.is_capturing()&&mp(this.__request_queue,(t=>this.Vi(t))),this.__request_queue=[],this.Xi()}_handle_unload(){var t,n,r,o;(t=this.surveys)==null||t.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(Vy),(n=this.logs)==null||n.flushLogs("sendBeacon"),(r=this.Zi)==null||r.unload(),(o=this.Hi)==null||o.unload()):this.Qi()&&this.capture(Vy,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(o6?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=ev(t.url,{ip:this.config.ip?1:0}),t.headers=Ne({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(n=>{var r,o,s,l=Ne({},n);l.timeout=l.timeout||6e4,l.url=KA(l.url,l.compression);var c=(r=l.transport)!==null&&r!==void 0?r:"fetch",d=Sm.filter((p=>!l.disableTransport||!p.transport||!l.disableTransport.includes(p.transport))),f=(o=(s=(function(p,h){for(var g=0;p.length>g;g++)if(p[g].transport===c)return p[g]})(d))==null?void 0:s.method)!==null&&o!==void 0?o:d[0].method;if(!f)throw new Error("No available transport method");c!=="sendBeacon"&&l.data&&l.compression===gi.GZipJS&&Jte&&!GA?pre(l).then((p=>{f(p)})).catch((p=>{if((h=>!(!h||typeof h!="object")&&("name"in h?String(h.name):"")==="NotReadableError")(p))return GA=!0,void f(Ne({},l,{compression:void 0,url:KA(n.url,void 0)}));f(l)})):f(l)})(Ne({},t,{callback:n=>{var r,o;this.rateLimiter.checkForLimiting(n),400>n.statusCode||(r=(o=this.config).on_request_error)==null||r.call(o,n),t.callback==null||t.callback(n)}}))))}Vi(t){this.Hi?this.Hi.retriableRequest(t):this._send_request(t)}_execute_array(t){eb++;try{var n,r=[],o=[],s=[];mp(t,(c=>{c&&(Pt(n=c[0])?s.push(c):rs(c)?c.call(this):Pt(c)&&n==="alias"?r.push(c):Pt(c)&&n.indexOf("capture")!==-1&&rs(this[n])?s.push(c):o.push(c))}));var l=function(c,d){mp(c,(function(f){if(Pt(f[0])){var p=d;cn(f,(function(h){p=p[h[0]].apply(p,h.slice(1))}))}else d[f[0]].apply(d,f.slice(1))}))};l(r,this),l(o,this),l(s,this)}finally{eb--}}push(t){if(eb>0&&Pt(t)&&yn(t[0])){var n=Lo.prototype[t[0]];rs(n)&&n.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,n,r){var o,s,l,c,d;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!Ue(t)&&yn(t)){var f=!this.config.opt_out_useragent_filter&&this._is_bot();if(!f||this.config.__preview_capture_bot_pageviews){var p=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(p==null||!p.isRateLimited){n!=null&&n.$current_url&&!yn(n?.$current_url)&&($e.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),t!=="$exception"||r!=null&&r.en||$e.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var h=new Date,g=r?.timestamp||h,v=ea(),y={uuid:v,event:t,properties:this.calculateEventProperties(t,n||{},g,v)};t===wc&&this.config.__preview_capture_bot_pageviews&&f&&(y.event="$bot_pageview",y.properties.$browser_type="bot"),p&&(y.properties.$lib_rate_limit_remaining_tokens=p.remainingTokens),r?.$set&&(y.$set=r?.$set);var b,x,w,E=this.tn(r?.$set_once,t!==kA,t===Hy);if(E&&(y.$set_once=E),r!=null&&r._noTruncate||(s=this.config.properties_string_max_length,l=y,c=L=>yn(L)?L.slice(0,s):L,d=new Set,y=(function L(H,$){return H!==Object(H)?c?c(H):H:d.has(H)?void 0:(d.add(H),Pt(H)?(B=[],mp(H,(z=>{B.push(L(z))}))):(B={},cn(H,((z,K)=>{d.has(z)||(B[K]=L(z))}))),B);var B})(l)),y.timestamp=g,Ue(r?.timestamp)||(y.properties.$event_time_override_provided=!0,y.properties.$event_time_override_system_time=h),t===Id.DISMISSED||t===Id.SENT){var T=n?.[Yy.SURVEY_ID],R=n?.[Yy.SURVEY_ITERATION];(L=>{try{var H=($=>((B,z)=>{var K=""+Z1+z.id;return z.current_iteration&&z.current_iteration>0&&(K=""+Z1+z.id+"_"+z.current_iteration),K})(0,$))(L);if(localStorage.getItem(H))return;localStorage.setItem(H,"true")}catch($){Qt.error("Failed to persist survey seen state",$)}})({id:T,current_iteration:R}),y.$set=Ne({},y.$set,{[(b={id:T,current_iteration:R},x=t===Id.SENT?"responded":"dismissed",w="$survey_"+x+"/"+b.id,b.current_iteration&&b.current_iteration>0&&(w="$survey_"+x+"/"+b.id+"/"+b.current_iteration),w)]:!0})}else t===Id.SHOWN&&(y.$set=Ne({},y.$set,{[Yy.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===sre.SHOWN){var O=n?.[zA.TOUR_TYPE];O&&(y.$set=Ne({},y.$set,{[zA.TOUR_LAST_SEEN_DATE+"/"+O]:new Date().toISOString()}))}var A=Ne({},y.properties.$set,y.$set);if(Tc(A)||this.setPersonPropertiesForFlags(A),!Et(this.config.before_send)){var I=this.rn(y);if(!I)return;y=I}this.Fi.emit("eventCaptured",y);var P={method:"POST",url:(o=r?._url)!==null&&o!==void 0?o:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:y,compression:"best-available",batchKey:r?._batchKey};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this.Vi(P):this.Zi.enqueue(P),y}$e.critical("This capture call is ignored due to client rate limiting.")}}else $e.error("No event name provided to posthog.capture")}else $e.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",(n=>t(n.event,n)))}calculateEventProperties(t,n,r,o,s){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;var l=s?void 0:this.persistence.remove_event_timer(t),c=Ne({},n);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),t==="$snapshot"){var d=Ne({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!yn(c.distinct_id)&&!zo(c.distinct_id)||_m(c.distinct_id))&&$e.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var f,p=(function(w,E){var T,R,O,A;if(!Zr)return{};var I,P,L,H,$,B,z,K,oe=w?[...Yc,...E||[]]:[],[q,W]=(function(te){for(var le=0;IA.length>le;le++){var[Q,k]=IA[le],G=Q.exec(te),V=G&&(rs(k)?k(G,te):k);if(V)return V}return["",""]})(Zr);return On(US({$os:q,$os_version:W,$browser:wD(Zr,navigator.vendor),$device:MA(Zr),$device_type:(P=Zr,L={userAgentDataPlatform:(T=navigator)==null||(T=T.userAgentData)==null?void 0:T.platform,maxTouchPoints:(R=navigator)==null?void 0:R.maxTouchPoints,screenWidth:me==null||(O=me.screen)==null?void 0:O.width,screenHeight:me==null||(A=me.screen)==null?void 0:A.height,devicePixelRatio:me?.devicePixelRatio},K=MA(P),K===aD||K===sD||K==="Kobo"||K==="Kindle Fire"||K===bD?Gc:K===nf||K===Uc||K===rf||K===y1?"Console":K===cD?"Wearable":K?vo:L?.userAgentDataPlatform==="Android"&&((H=L?.maxTouchPoints)!==null&&H!==void 0?H:0)>0?600>Math.min(($=L?.screenWidth)!==null&&$!==void 0?$:0,(B=L?.screenHeight)!==null&&B!==void 0?B:0)/((z=L?.devicePixelRatio)!==null&&z!==void 0?z:1)?vo:Gc:"Desktop"),$timezone:GD(),$timezone_offset:ore()}),{$current_url:of(pr?.href,oe,sf),$host:pr?.host,$pathname:pr?.pathname,$raw_user_agent:Zr.length>1e3?Zr.substring(0,997)+"...":Zr,$browser_version:mne(Zr,navigator.vendor),$browser_language:UA(),$browser_language_prefix:(I=UA(),typeof I=="string"?I.split("-")[0]:void 0),$screen_height:me?.screen.height,$screen_width:me?.screen.width,$viewport_height:me?.innerHeight,$viewport_width:me?.innerWidth,$lib:Lr.LIB_NAME,$lib_version:Lr.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:h,windowId:g}=this.sessionManager.checkAndGetSessionAndWindowId(s,r.getTime());c.$session_id=h,c.$window_id=g}this.sessionPropsManager&&On(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&On(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(v=this.Hi)==null?void 0:v.length}catch(w){c.$sdk_debug_error_capturing_properties=String(w)}if(this.requestRouter.region===K1&&(c.$lib_custom_api_host=this.config.api_host),f=t!==wc||s?t!==Vy||s?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,o),c=On(c,f),t===wc&&Le&&(c.title=Le.title),!Ue(l)){var y=r.getTime()-l;c.$duration=parseFloat((y/1e3).toFixed(3))}Zr&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=On({},p,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Pt(this.config.property_denylist)?cn(this.config.property_denylist,(function(w){delete c[w]})):$e.error(r6+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var b=this.config.sanitize_properties;b&&($e.error(JA),c=b(c,t));var x=this.nn();return c.$process_person_profile=x,x&&!s&&this.sn("_calculate_event_properties"),c}tn(t,n,r){var o;if(n===void 0&&(n=!0),r===void 0&&(r=!1),!this.persistence||!this.nn()||this.Mi&&!r)return t;var s=this.persistence.get_initial_props(),l=(o=this.sessionPropsManager)==null?void 0:o.getSetOnceProps(),c=On({},s,l||{},t||{}),d=this.config.sanitize_properties;return d&&($e.error(JA),c=d(c,"$set_once")),n&&(this.Mi=!0),Tc(c)?void 0:c}register(t,n){var r;(r=this.persistence)==null||r.register(t,n)}register_once(t,n,r){var o;(o=this.persistence)==null||o.register_once(t,n,r)}register_for_session(t){var n;(n=this.sessionPersistence)==null||n.register(t)}unregister(t){var n;(n=this.persistence)==null||n.unregister(t)}unregister_for_session(t){var n;(n=this.sessionPersistence)==null||n.unregister(t)}an(t,n){this.register({[t]:n})}getFeatureFlag(t,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlag(t,n)}getFeatureFlagPayload(t){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagPayload(t)}getFeatureFlagResult(t,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlagResult(t,n)}isFeatureEnabled(t,n){var r;return(r=this.featureFlags)==null?void 0:r.isFeatureEnabled(t,n)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,n,r){var o;(o=this.featureFlags)==null||o.updateFlags(t,n,r)}updateEarlyAccessFeatureEnrollment(t,n,r){var o;(o=this.featureFlags)==null||o.updateEarlyAccessFeatureEnrollment(t,n,r)}getEarlyAccessFeatures(t,n,r){var o;return n===void 0&&(n=!1),(o=this.featureFlags)==null?void 0:o.getEarlyAccessFeatures(t,n,r)}on(t,n){return this.Fi.on(t,n)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:hd}),()=>{})}onSessionId(t){var n,r;return(n=(r=this.sessionManager)==null?void 0:r.onSessionId(t))!==null&&n!==void 0?n:()=>{}}getSurveys(t,n){n===void 0&&(n=!1),this.surveys?this.surveys.getSurveys(t,n):t([],{isLoaded:!1,error:hd})}getActiveMatchingSurveys(t,n){n===void 0&&(n=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,n):t([],{isLoaded:!1,error:hd})}renderSurvey(t,n){var r;(r=this.surveys)==null||r.renderSurvey(t,n)}displaySurvey(t,n){var r;n===void 0&&(n=Ere),(r=this.surveys)==null||r.displaySurvey(t,n)}cancelPendingSurvey(t){var n;(n=this.surveys)==null||n.cancelPendingSurvey(t)}canRenderSurvey(t){var n,r;return(n=(r=this.surveys)==null?void 0:r.canRenderSurvey(t))!==null&&n!==void 0?n:{visible:!1,disabledReason:hd}}canRenderSurveyAsync(t,n){var r,o;return n===void 0&&(n=!1),(r=(o=this.surveys)==null?void 0:o.canRenderSurveyAsync(t,n))!==null&&r!==void 0?r:Promise.resolve({visible:!1,disabledReason:hd})}ln(t){return!t||_m(t)?($e.critical("Unique user id has not been set in posthog.identify"),!1):t===pp?($e.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||($e.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(t,n,r){if(!this.__loaded||!this.persistence)return $e.uninitializedWarning("posthog.identify");if(zo(t)&&(t=t.toString(),$e.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.ln(t)&&this.sn("posthog.identify")){var o=this.get_distinct_id();this.register({$user_id:t}),this.get_property(ng)||this.register_once({$had_persisted_distinct_id:!0,$device_id:o},""),t!==o&&t!==this.get_property(Rd)&&(this.unregister(Rd),this.register({distinct_id:t}));var s,l=(this.persistence.get_property(Jo)||dc)===dc;t!==o&&l?(this.persistence.set_property(Jo,fc),this.setPersonPropertiesForFlags({$set:n||{},$set_once:r||{}},!1),this.capture(Hy,{distinct_id:t,$anon_distinct_id:o},{$set:n||{},$set_once:r||{}}),this.Di=WA(t,n,r),(s=this.featureFlags)==null||s.setAnonymousDistinctId(o)):(n||r)&&this.setPersonProperties(n,r),t!==o&&(this.reloadFeatureFlags(),this.unregister(Ld))}}setPersonProperties(t,n){if((t||n)&&this.sn("posthog.setPersonProperties")){var r=WA(this.get_distinct_id(),t,n);this.Di!==r?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:n||{}},!0),this.capture("$set",{$set:t||{},$set_once:n||{}}),this.Di=r):$e.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,n,r){if(t&&n){var o=this.getGroups(),s=o[t]!==n;if(s&&this.resetGroupPropertiesForFlags(t),this.register({$groups:Ne({},o,{[t]:n})}),s||r){var l={$group_type:t,$group_key:n};r&&(l.$group_set=r),this.capture(kA,l)}r&&this.setGroupPropertiesForFlags({[t]:r}),s&&!r&&this.reloadFeatureFlags()}else $e.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,n){var r;n===void 0&&(n=!0),(r=this.featureFlags)==null||r.setPersonPropertiesForFlags(t,n)}resetPersonPropertiesForFlags(){var t;(t=this.featureFlags)==null||t.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,n){var r;n===void 0&&(n=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((r=this.featureFlags)==null||r.setGroupPropertiesForFlags(t,n))}resetGroupPropertiesForFlags(t){var n;(n=this.featureFlags)==null||n.resetGroupPropertiesForFlags(t)}reset(t){var n,r,o,s,l,c,d,f;if($e.info("reset"),!this.__loaded)return $e.uninitializedWarning("posthog.reset");var p=this.get_property(ng);if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(r=this.sessionPersistence)==null||r.clear(),(o=this.surveys)==null||o.reset(),(s=this.Ki)==null||s.stop(),(l=this.featureFlags)==null||l.reset(),(c=this.conversations)==null||c.reset(),(d=this.persistence)==null||d.set_property(Jo,dc),(f=this.sessionManager)==null||f.resetSessionId(),this.Di=null,this.config.cookieless_mode===is)this.register_once({distinct_id:pp,$device_id:null},"");else{var h=this.config.get_device_id(ea());this.register_once({distinct_id:h,$device_id:t?h:p},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(t,n){var r;this.config.identity_distinct_id=t,this.config.identity_hash=n,this.alias(t),(r=this.conversations)==null||r.un()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,n;return(t=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:n,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),o=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n);if(t!=null&&t.withTimestamp&&r){var s,l=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!r)return o;o+="?t="+Math.max(Math.floor((new Date().getTime()-r)/1e3)-l,0)}return o}alias(t,n){return t===this.get_property(TD)?($e.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?(Ue(n)&&(n=this.get_distinct_id()),t!==n?(this.an(Rd,t),this.capture("$create_alias",{alias:t,distinct_id:n})):($e.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var n=Ne({},this.config);if(In(t)){var r,o,s,l,c,d,f,p,h,g;On(this.config,tI(t));var v=this.qi();(r=this.persistence)==null||r.update_config(this.config,n,v),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new Ky(Ne({},this.config,{persistence:"sessionStorage"}),v);var y=this.Bi(this.config.debug);Si(y)&&(this.config.debug=y),Si(this.config.debug)&&(this.config.debug?(Lr.DEBUG=!0,_n.R()&&_n.M("ph_debug",!0),$e.info("set_config",{config:t,oldConfig:n,newConfig:Ne({},this.config)})):(Lr.DEBUG=!1,_n.R()&&_n.F("ph_debug"))),(o=this.exceptionObserver)==null||o.onConfigChange(),(s=this.exceptions)==null||s.onConfigChange(),(l=this.sessionRecording)==null||l.startIfEnabledOrStop(),(c=this.autocapture)==null||c.startIfEnabled(),(d=this.heatmaps)==null||d.startIfEnabled(),(f=this.exceptionObserver)==null||f.startIfEnabledOrStop(),(p=this.deadClicksAutocapture)==null||p.startIfEnabledOrStop(),(h=this.surveys)==null||h.loadIfEnabled(),this.cn(),(g=this.externalIntegrations)==null||g.startIfEnabledOrStop()}}_overrideSDKInfo(t,n){Lr.LIB_NAME=t,Lr.LIB_VERSION=n}startSessionRecording(t){var n,r,o,s,l,c=t===!0,d={sampling:c||!(t==null||!t.sampling),linked_flag:c||!(t==null||!t.linked_flag),url_trigger:c||!(t==null||!t.url_trigger),event_trigger:c||!(t==null||!t.event_trigger)};Object.values(d).some(Boolean)&&((n=this.sessionManager)==null||n.checkAndGetSessionAndWindowId(),d.sampling&&((r=this.sessionRecording)==null||r.overrideSampling()),d.linked_flag&&((o=this.sessionRecording)==null||o.overrideLinkedFlag()),d.url_trigger&&((s=this.sessionRecording)==null||s.overrideTrigger("url")),d.event_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,n){if(this.exceptions){var r=new Error("PostHog syntheticException"),o=this.exceptions.buildProperties(t,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(Ne({},o,n))}}addExceptionStep(t,n){var r;(r=this.exceptions)==null||r.addExceptionStep(t,n)}captureLog(t){var n;(n=this.logs)==null||n.captureLog(t)}get logger(){var t,n;return(t=(n=this.logs)==null?void 0:n.logger)!==null&&t!==void 0?t:Lo.dn}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var n,r;return(n=(r=this.toolbar)==null?void 0:r.loadToolbar(t))!==null&&n!==void 0&&n}get_property(t){var n;return(n=this.persistence)==null?void 0:n.props[t]}getSessionProperty(t){var n;return(n=this.sessionPersistence)==null?void 0:n.props[t]}toString(){var t,n=(t=this.config.name)!==null&&t!==void 0?t:Sc;return n!==Sc&&(n=Sc+"."+n),n}_isIdentified(){var t,n;return((t=this.persistence)==null?void 0:t.get_property(Jo))===fc||((n=this.sessionPersistence)==null?void 0:n.get_property(Jo))===fc}nn(){var t,n;return!(this.config.person_profiles==="never"||this.config.person_profiles===F1&&!this._isIdentified()&&Tc(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[Rd])&&((n=this.persistence)==null||(n=n.props)==null||!n[sg]))}Qi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(t){return this.config.person_profiles==="never"?($e.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(sg,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==Wa)}cn(){var t,n,r,o,s=this.qi();return((t=this.persistence)==null?void 0:t._r)!==s&&((r=this.persistence)==null||r.set_disabled(s)),((n=this.sessionPersistence)==null?void 0:n._r)!==s&&((o=this.sessionPersistence)==null||o.set_disabled(s)),s}opt_in_capturing(t){var n;if(this.config.cookieless_mode!==is){if(this.Ni()){var r,o,s,l,c;this.reset(!0),(r=this.sessionManager)==null||r.destroy(),(o=this.pageViewManager)==null||o.destroy(),this.sessionManager=new YA(this),this.pageViewManager=new jA(this),this.persistence&&(this.sessionPropsManager=new ZA(this,this.sessionManager,this.persistence));var d,f=(s=(l=this.config.__extensionClasses)==null?void 0:l.sessionRecording)!==null&&s!==void 0?s:(c=Lo.__defaultExtensionClasses)==null?void 0:c.sessionRecording;f&&(this.sessionRecording=this.Ei(this.sessionRecording,new f(this)),this.Wi&&((d=this.sessionRecording)==null||d.onRemoteConfig==null||d.onRemoteConfig(this.Wi)))}var p,h;this.consent.optInOut(!0),this.cn(),this.Xi(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode==Wa&&((p=this.surveys)==null||p.loadIfEnabled()),(Ue(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((h=t?.captureEventName)!==null&&h!==void 0?h:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else $e.warn(XA)}opt_out_capturing(){var t,n,r;this.config.cookieless_mode!==is?(this.config.cookieless_mode===Wa&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===Wa&&(this.register({distinct_id:pp,$device_id:null}),(t=this.sessionManager)==null||t.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(r=this.sessionRecording)==null||r.stopRecording(),this.sessionRecording=void 0,this.Ji())):$e.warn(XA)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===is||(this.config.cookieless_mode===Wa?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return mo?e6(mo,this.config.custom_blocked_useragents):void 0}Ji(){Le&&(Le.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(wc,{title:Le.title},{send_instantly:!0}),this.Pi&&(Le.removeEventListener(ag,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Vn(Le,ag,this.Pi)))}debug(t){t===!1?(me?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(me?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Fr(){var t,n,r,o,s,l,c=this.ji||{};return"advanced_disable_flags"in c?!!c.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?($e.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(r="advanced_disable_decide",o=$e,s=(n="advanced_disable_flags")in(t=c)&&!Et(t[n]),l=r in t&&!Et(t[r]),s?t[n]:!!l&&(o&&o.warn("Config field '"+r+"' is deprecated. Please use '"+n+"' instead. The old field will be removed in a future major version."),t[r]))}rn(t){if(Et(this.config.before_send))return t;var n=Pt(this.config.before_send)?this.config.before_send:[this.config.before_send],r=t;for(var o of n){if(r=o(r),Et(r)){var s="Event '"+t.event+"' was rejected in beforeSend function";return rne(t.event)?$e.warn(s+". This can cause unexpected behavior."):$e.info(s),null}r.properties&&!Tc(r.properties)||$e.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var t;return(t=this.pageViewManager.dr)==null?void 0:t.pageViewId}captureTraceFeedback(t,n){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:n})}captureTraceMetric(t,n,r){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:n,$ai_metric_value:String(r)})}Bi(t){var n=Si(t)&&!t,r=_n.R()&&_n.O("ph_debug")==="true";return!n&&(!!r||t)}}function nI(e){return e instanceof Element&&(e.id===PD||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function tv(e){return!!e&&e.nodeType===1}function la(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function i6(e){return!!e&&e.nodeType===3}function s6(e){return!!e&&e.nodeType===11}function VS(e){return e?Xg(e).split(/\s+/):[]}function rI(e){var t=me?.location.href;return!!(t&&e&&e.some((n=>t.match(n))))}function gg(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return VS(t)}function a6(e){return Et(e)?null:Xg(e).split(/(\s+)/).filter((t=>Ud(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function af(e){var t="";return Q1(e)&&!c6(e)&&e.childNodes&&e.childNodes.length&&cn(e.childNodes,(function(n){var r;i6(n)&&n.textContent&&(t+=(r=a6(n.textContent))!==null&&r!==void 0?r:"")})),Xg(t)}function oI(e){return Ue(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}Lo.__defaultExtensionClasses={},Lo.dn={trace:pc=()=>{},debug:pc,info:pc,warn:pc,error:pc,fatal:pc},(function(e,t){for(var n=0;t.length>n;n++)e.prototype[t[n]]=Fne(e.prototype[t[n]])})(Lo,["identify"]);var HS=["a","button","form","input","select","textarea","label"];function iI(e,t){if(Ue(t))return!0;var n,r=function(s){if(t.some((l=>s.matches(l))))return{v:!0}};for(var o of e)if(n=r(o))return n.v;return!1}function l6(e){var t=e.parentNode;return!(!t||!tv(t))&&t}var Are=["next","previous","prev",">","<"],sI=[".ph-no-rageclick",".ph-no-capture"],W1=e=>!e||la(e,"html")||!tv(e),aI=(e,t)=>{if(!me||W1(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[e],o=e;o.parentNode&&!la(o,"body");)if(s6(o.parentNode))r.push(o.parentNode.host),o=o.parentNode.host;else{var s=l6(o);if(!s)break;if(t||HS.indexOf(s.tagName.toLowerCase())>-1)n=!0;else{var l=me.getComputedStyle(s);l&&l.getPropertyValue("cursor")==="pointer"&&(n=!0)}r.push(s),o=s}return{parentIsUsefulElement:n,targetElementList:r}};function Q1(e){for(var t=e;t.parentNode&&!la(t,"body");t=t.parentNode){var n=gg(t);if(St(n,"ph-sensitive")||St(n,"ph-no-capture"))return!1}if(St(gg(e),"ph-include"))return!0;var r=e.type||"";if(yn(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var o=e.name||e.id||"";return!yn(o)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(o.replace(/[^a-zA-Z0-9]/g,""))}function c6(e){return!!(la(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||la(e,"select")||la(e,"textarea")||e.getAttribute("contenteditable")==="true")}var u6="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",Ire=new RegExp("^(?:"+u6+")$"),Mre=new RegExp(u6),d6="\\d{3}-?\\d{2}-?\\d{4}",Pre=new RegExp("^("+d6+")$"),Nre=new RegExp("("+d6+")");function Ud(e,t){return t===void 0&&(t=!0),!(Et(e)||yn(e)&&(e=Xg(e),(t?Ire:Mre).test((e||"").replace(/[- ]/g,""))||(t?Pre:Nre).test(e)))}function lI(e){var t=af(e);return Ud(t=(t+" "+f6(e)).trim())?t:""}function f6(e){var t="";return e&&e.childNodes&&e.childNodes.length&&cn(e.childNodes,(function(n){var r;if(n&&((r=n.tagName)==null?void 0:r.toLowerCase())==="span")try{var o=af(n);t=(t+" "+o).trim(),n.childNodes&&n.childNodes.length&&(t=(t+" "+f6(n)).trim())}catch(s){$e.error("[AutoCapture]",s)}})),t}function cI(e){return e.replace(/"|\\"/g,'\\"')}function kre(e){var t=e.attr__class;return t?Pt(t)?t:VS(t):void 0}class uI{constructor(t){this.disabled=t===!1;var n=In(t)?t:{};this.thresholdPx=n.threshold_px||30,this.timeoutMs=n.timeout_ms||1e3,this.clickCount=n.click_count||3,this.clicks=[]}isRageClick(t,n,r){if(this.disabled)return!1;var o=this.clicks[this.clicks.length-1];if(o&&Math.abs(t-o.x)+Math.abs(n-o.y)<this.thresholdPx&&this.timeoutMs>r-o.timestamp){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}var tb="$copy_autocapture",dI=mn("[AutoCapture]");function nb(e,t){return t.length>e?t.slice(0,e)+"...":t}function Dre(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!tv(t));return t}function Lre(e,t){for(var n,r,{e:o,maskAllElementAttributes:s,maskAllText:l,elementAttributeIgnoreList:c,elementsChainAsString:d}=t,f=[e],p=e;p.parentNode&&!la(p,"body");)s6(p.parentNode)?(f.push(p.parentNode.host),p=p.parentNode.host):(f.push(p.parentNode),p=p.parentNode);var h,g,v=[],y={},b=!1,x=!1;if(cn(f,(O=>{var A=Q1(O);O.tagName.toLowerCase()==="a"&&(b=O.getAttribute("href"),b=A&&b&&Ud(b)&&b),St(gg(O),"ph-no-capture")&&(x=!0),v.push((function(P,L,H,$){var B=P.tagName.toLowerCase(),z={tag_name:B};HS.indexOf(B)>-1&&!H&&(z.$el_text=B.toLowerCase()==="a"||B.toLowerCase()==="button"?nb(1024,lI(P)):nb(1024,af(P)));var K=gg(P);K.length>0&&(z.classes=K.filter((function(te){return te!==""}))),cn(P.attributes,(function(te){var le;if((!c6(P)||["name","id","class","aria-label"].indexOf(te.name)!==-1)&&($==null||!$.includes(te.name))&&!L&&Ud(te.value)&&(!yn(le=te.name)||le.substring(0,10)!=="_ngcontent"&&le.substring(0,7)!=="_nghost")){var Q=te.value;te.name==="class"&&(Q=VS(Q).join(" ")),z["attr__"+te.name]=nb(1024,Q)}}));for(var oe=1,q=1,W=P;W=Dre(W);)oe++,W.tagName===P.tagName&&q++;return z.nth_child=oe,z.nth_of_type=q,z})(O,s,l,c));var I=(function(P){if(!Q1(P))return{};var L={};return cn(P.attributes,(function(H){if(H.name&&H.name.indexOf("data-ph-capture-attribute")===0){var $=H.name.replace("data-ph-capture-attribute-",""),B=H.value;$&&B&&Ud(B)&&(L[$]=B)}})),L})(O);On(y,I)})),x)return{props:{},explicitNoCapture:x};if(l||(v[0].$el_text=e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?lI(e):af(e)),b){var w,E;v[0].attr__href=b;var T=(w=ug(b))==null?void 0:w.host,R=me==null||(E=me.location)==null?void 0:E.host;T&&R&&T!==R&&(h=b)}return{props:On({$event_type:o.type,$ce_version:1},d?{}:{$elements:v},{$elements_chain:(g=v,(function(O){return O.map((A=>{var I,P,L="";if(A.tag_name&&(L+=A.tag_name),A.attr_class)for(var H of(A.attr_class.sort(),A.attr_class))L+="."+H.replace(/"/g,"");var $=Ne({},A.text?{text:A.text}:{},{"nth-child":(I=A.nth_child)!==null&&I!==void 0?I:0,"nth-of-type":(P=A.nth_of_type)!==null&&P!==void 0?P:0},A.href?{href:A.href}:{},A.attr_id?{attr_id:A.attr_id}:{},A.attributes),B={};return wm($).sort(((z,K)=>{var[oe]=z,[q]=K;return oe.localeCompare(q)})).forEach((z=>{var[K,oe]=z;return B[cI(K.toString())]=cI(oe.toString())})),(L+=":")+wm(B).map((z=>{var[K,oe]=z;return K+'="'+oe+'"'})).join("")})).join(";")})((function(O){return O.map((A=>{var I,P,L={text:(I=A.$el_text)==null?void 0:I.slice(0,400),tag_name:A.tag_name,href:(P=A.attr__href)==null?void 0:P.slice(0,2048),attr_class:kre(A),attr_id:A.attr__id,nth_child:A.nth_child,nth_of_type:A.nth_of_type,attributes:{}};return wm(A).filter((H=>{var[$]=H;return $.indexOf("attr__")===0})).forEach((H=>{var[$,B]=H;return L.attributes[$]=B})),L}))})(g)))},(n=v[0])!=null&&n.$el_text?{$el_text:(r=v[0])==null?void 0:r.$el_text}:{},h&&o.type==="click"?{$external_click_url:h}:{},y)}}var pd=mn("[ExceptionAutocapture]");function fI(e,t,n){try{if(!(t in e))return()=>{};var r=e[t],o=n(r);return rs(o)&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}var $re=mn("[TracingHeaders]"),Gs=mn("[Web Vitals]"),hI=9e5,pI="disabled",mI="lazy_loading",md="awaiting_config",bp="missing_config";mn("[SessionRecording]"),mn("[SessionRecording]");var X1="[SessionRecording]",Ks=mn(X1),jre=mn("[Heatmaps]");function gI(e){return In(e)&&"clientX"in e&&"clientY"in e&&zo(e.clientX)&&zo(e.clientY)}var vI=mn("[Product Tours]"),Ure=["$set_once","$set"],Zs=mn("[SiteApps]"),_I="Error while initializing PostHog app with config id ";function mc(e,t,n){if(Et(e))return!1;switch(n){case"exact":return e===t;case"contains":var r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(r,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class zre{constructor(t){this.vn=new BS,this.fn=(n,r)=>this.pn(n,r)&&this.gn(n,r)&&this.mn(n,r)&&this.yn(n,r),this.pn=(n,r)=>r==null||!r.event||n?.event===r?.event,this._instance=t,this.bn=new Set,this._n=new Set}init(){var t,n;Ue((t=this._instance)==null?void 0:t._addCaptureHook)||(n=this._instance)==null||n._addCaptureHook(((r,o)=>{this.on(r,o)}))}register(t){var n,r;if(!Ue((n=this._instance)==null?void 0:n._addCaptureHook)&&(t.forEach((l=>{var c,d;(c=this._n)==null||c.add(l),(d=l.steps)==null||d.forEach((f=>{var p;(p=this.bn)==null||p.add(f?.event||"")}))})),(r=this._instance)!=null&&r.autocapture)){var o,s=new Set;t.forEach((l=>{var c;(c=l.steps)==null||c.forEach((d=>{d!=null&&d.selector&&s.add(d?.selector)}))})),(o=this._instance)==null||o.autocapture.setElementSelectors(s)}}on(t,n){var r;n!=null&&t.length!=0&&(this.bn.has(t)||this.bn.has(n?.event))&&this._n&&((r=this._n)==null?void 0:r.size)>0&&this._n.forEach((o=>{this.wn(n,o)&&this.vn.emit("actionCaptured",o.name)}))}In(t){this.onAction("actionCaptured",(n=>t(n)))}wn(t,n){if(n?.steps==null)return!1;for(var r of n.steps)if(this.fn(t,r))return!0;return!1}onAction(t,n){return this.vn.on(t,n)}gn(t,n){if(n!=null&&n.url){var r,o=t==null||(r=t.properties)==null?void 0:r.$current_url;if(!o||typeof o!="string"||!mc(o,n.url,n.url_matching||"contains"))return!1}return!0}mn(t,n){return!!this.Cn(t,n)&&!!this.Sn(t,n)&&!!this.xn(t,n)}Cn(t,n){var r;if(n==null||!n.href)return!0;var o=this.kn(t);if(o.length>0)return o.some((c=>mc(c.href,n.href,n.href_matching||"exact")));var s,l=(t==null||(r=t.properties)==null?void 0:r.$elements_chain)||"";return!!l&&mc((s=l.match(/(?::|")href="(.*?)"/))?s[1]:"",n.href,n.href_matching||"exact")}Sn(t,n){var r;if(n==null||!n.text)return!0;var o=this.kn(t);if(o.length>0)return o.some((f=>mc(f.text,n.text,n.text_matching||"exact")||mc(f.$el_text,n.text,n.text_matching||"exact")));var s,l,c,d=(t==null||(r=t.properties)==null?void 0:r.$elements_chain)||"";return!!d&&(s=(function(f){for(var p,h=[],g=/(?::|")text="(.*?)"/g;!Et(p=g.exec(f));)h.includes(p[1])||h.push(p[1]);return h})(d),l=n.text,c=n.text_matching||"exact",s.some((f=>mc(f,l,c))))}xn(t,n){var r,o;if(n==null||!n.selector)return!0;var s=t==null||(r=t.properties)==null?void 0:r.$element_selectors;if(s!=null&&s.includes(n.selector))return!0;var l=(t==null||(o=t.properties)==null?void 0:o.$elements_chain)||"";if(n.selector_regex&&l)try{return new RegExp(n.selector_regex).test(l)}catch{return!1}return!1}kn(t){var n;return(t==null||(n=t.properties)==null?void 0:n.$elements)==null?[]:t?.properties.$elements}yn(t,n){return n==null||!n.properties||n.properties.length===0||n6(n.properties.reduce(((r,o)=>{var s=Pt(o.value)?o.value.map(String):o.value!=null?[String(o.value)]:[];return r[o.key]={values:s,operator:o.operator||"exact"},r}),{}),t?.properties)}}class Fre{constructor(t){this._instance=t,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(t,n){return!!t&&n6(t.propertyFilters,n?.properties)}Nn(t,n){var r=new Map;return t.forEach((o=>{var s;(s=o.conditions)==null||(s=s[n])==null||(s=s.values)==null||s.forEach((l=>{if(l!=null&&l.name){var c=r.get(l.name)||[];c.push(o.id),r.set(l.name,c)}}))})),r}Mn(t,n,r){var o=(r===cd.Activation?this.Tn:this.An).get(t),s=[];return this.Fn((l=>{s=l.filter((c=>o?.includes(c.id)))})),s.filter((l=>{var c,d=(c=l.conditions)==null||(c=c[r])==null||(c=c.values)==null?void 0:c.find((f=>f.name===t));return this.Rn(d,n)}))}register(t){var n;Ue((n=this._instance)==null?void 0:n._addCaptureHook)||(this.On(t),this.Pn(t))}Pn(t){var n=t.filter((r=>{var o,s;return((o=r.conditions)==null?void 0:o.actions)&&((s=r.conditions)==null||(s=s.actions)==null||(s=s.values)==null?void 0:s.length)>0}));n.length!==0&&(this.Ln==null&&(this.Ln=new zre(this._instance),this.Ln.init(),this.Ln.In((r=>{this.onAction(r)}))),n.forEach((r=>{var o,s,l,c,d;r.conditions&&(o=r.conditions)!=null&&o.actions&&(s=r.conditions)!=null&&(s=s.actions)!=null&&s.values&&((l=r.conditions)==null||(l=l.actions)==null||(l=l.values)==null?void 0:l.length)>0&&((c=this.Ln)==null||c.register(r.conditions.actions.values),(d=r.conditions)==null||(d=d.actions)==null||(d=d.values)==null||d.forEach((f=>{if(f&&f.name){var p=this.En.get(f.name);p&&p.push(r.id),this.En.set(f.name,p||[r.id])}})))})))}On(t){var n,r=t.filter((s=>{var l,c;return((l=s.conditions)==null?void 0:l.events)&&((c=s.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),o=t.filter((s=>{var l,c;return((l=s.conditions)==null?void 0:l.cancelEvents)&&((c=s.conditions)==null||(c=c.cancelEvents)==null||(c=c.values)==null?void 0:c.length)>0}));r.length===0&&o.length===0||((n=this._instance)==null||n._addCaptureHook(((s,l)=>{this.onEvent(s,l)})),this.Tn=this.Nn(t,cd.Activation),this.An=this.Nn(t,cd.Cancellation))}onEvent(t,n){var r,o=this.le(),s=this.Dn(),l=this.Bn(),c=((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[s])||[];if(l===t&&n&&c.length>0){var d,f;o.info("event matched, removing item from activated items",{event:t,eventPayload:n,existingActivatedItems:c});var p=(n==null||(d=n.properties)==null?void 0:d.$survey_id)||(n==null||(f=n.properties)==null?void 0:f.$product_tour_id);if(p){var h=c.indexOf(p);0>h||(c.splice(h,1),this.jn(c))}}else{if(this.An.has(t)){var g=this.Mn(t,n,cd.Cancellation);g.length>0&&(o.info("cancel event matched, cancelling items",{event:t,itemsToCancel:g.map((y=>y.id))}),g.forEach((y=>{var b=c.indexOf(y.id);0>b||c.splice(b,1),this.$n(y.id)})),this.jn(c))}if(this.Tn.has(t)){o.info("event name matched",{event:t,eventPayload:n,items:this.Tn.get(t)});var v=this.Mn(t,n,cd.Activation);this.jn(c.concat(v.map((y=>y.id))||[]))}}}onAction(t){var n,r=this.Dn(),o=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[r])||[];this.En.has(t)&&this.jn(o.concat(this.En.get(t)||[]))}jn(t){var n=this.le(),r=[...new Set(t)].filter((o=>!this.qn(o)));n.info("updating activated items",{activatedItems:r}),this.Zn(r)}getActivatedIds(){var t,n=this.Dn();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[n])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class Bre extends Fre{constructor(t){super(t)}Dn(){return k1}Bn(){return Id.SHOWN}Fn(t){var n;(n=this._instance)==null||n.getSurveys(t)}$n(t){var n;(n=this._instance)==null||n.cancelPendingSurvey(t)}le(){return Qt}Zn(t){var n;(n=this._instance)==null||(n=n.persistence)==null||n.register({[k1]:t})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var rb="SDK is not enabled or survey functionality is not yet loaded",yI="Disabled. Not loading surveys.",Vre=me!=null&&me.location?fg(me.location.hash,"__posthog")||fg(location.hash,"state"):null,bI="_postHogToolbarParams",wI=mn("[Toolbar]"),Pr=mn("[FeatureFlags]"),Ha=mn("[FeatureFlags]",{debugEnabled:!0}),ob=`" failed. Feature flags didn't load in time.`,SI=e=>{for(var t={},n=0;e.length>n;n++)t[e[n]]=!0;return t},EI=e=>{var t={};for(var[n,r]of wm(e||{}))r&&(t[n]=r);return t},Xi=mn("[Error tracking]"),xI="Refusing to render web experiment since the viewer is a likely bot",Hre={icontains:(e,t)=>!!me&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!me&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!me&&mg(t.href,e),not_regex:(e,t)=>!!me&&!mg(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class xr{get Bt(){return this._instance.config}constructor(t){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(r){r===void 0&&(r=!1),n.getWebExperiments((o=>{xr.Hn("retrieved web experiments from the server"),n.zn=new Map,o.forEach((s=>{if(s.feature_flag_key){var l;n.zn&&(xr.Hn("setting flag key ",s.feature_flag_key," to web experiment ",s),(l=n.zn)==null||l.set(s.feature_flag_key,s));var c=n._instance.getFeatureFlag(s.feature_flag_key);yn(c)&&s.variants[c]&&n.Un(s.name,c,s.variants[c].transforms)}else if(s.variants)for(var d in s.variants){var f=s.variants[d];xr.Yn(f)&&n.Un(s.name,d,f.transforms)}}))}),r)},this._instance=t,this._instance.onFeatureFlags((r=>{this.onFeatureFlags(r)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())xr.Hn(xI);else if(!this.Bt.disable_web_experiments){if(Et(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();xr.Hn("applying feature flags",t),t.forEach((n=>{var r;if(this.zn&&(r=this.zn)!=null&&r.has(n)){var o,s=this._instance.getFeatureFlag(n),l=(o=this.zn)==null?void 0:o.get(n);s&&l!=null&&l.variants[s]&&this.Un(l.name,s,l.variants[s].transforms)}}))}}previewWebExperiment(){var t=xr.getWindowLocation();if(t!=null&&t.search){var n=dg(t?.search,"__experiment_id"),r=dg(t?.search,"__experiment_variant");n&&r&&(xr.Hn("previewing web experiments "+n+" && "+r),this.getWebExperiments((o=>{this.Gn(parseInt(n),r,o)}),!1,!0))}}loadIfEnabled(){this.Bt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,n,r){if(this.Bt.disable_web_experiments&&!r)return t([]);var o=this._instance.get_property("$web_experiments");if(o&&!n)return t(o);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:s=>t(s.statusCode===200&&s.json&&s.json.experiments||[])})}Gn(t,n,r){var o=r.filter((s=>s.id===t));o&&o.length>0&&(xr.Hn("Previewing web experiment ["+o[0].name+"] with variant ["+n+"]"),this.Un(o[0].name,n,o[0].variants[n].transforms))}static Yn(t){return!Et(t.conditions)&&xr.Wn(t)&&xr.Xn(t)}static Wn(t){var n;if(Et(t.conditions)||Et((n=t.conditions)==null?void 0:n.url))return!0;var r,o,s,l=xr.getWindowLocation();return!!l&&((r=t.conditions)==null||!r.url||Hre[(o=(s=t.conditions)==null?void 0:s.urlMatchType)!==null&&o!==void 0?o:"icontains"](t.conditions.url,l))}static getWindowLocation(){return me?.location}static Xn(t){var n;if(Et(t.conditions)||Et((n=t.conditions)==null?void 0:n.utm))return!0;var r=zD();if(r.utm_source){var o,s,l,c,d,f,p,h,g=(o=t.conditions)==null||(o=o.utm)==null||!o.utm_campaign||((s=t.conditions)==null||(s=s.utm)==null?void 0:s.utm_campaign)==r.utm_campaign,v=(l=t.conditions)==null||(l=l.utm)==null||!l.utm_source||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==r.utm_source,y=(d=t.conditions)==null||(d=d.utm)==null||!d.utm_medium||((f=t.conditions)==null||(f=f.utm)==null?void 0:f.utm_medium)==r.utm_medium,b=(p=t.conditions)==null||(p=p.utm)==null||!p.utm_term||((h=t.conditions)==null||(h=h.utm)==null?void 0:h.utm_term)==r.utm_term;return g&&y&&b&&v}return!1}static Hn(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;n>o;o++)r[o-1]=arguments[o];$e.info("[WebExperiments] "+t,r)}Un(t,n,r){this._is_bot()?xr.Hn(xI):n!=="control"?r.forEach((o=>{if(o.selector){var s;xr.Hn("applying transform of variant "+n+" for experiment "+t+" ",o);var l=(s=document)==null?void 0:s.querySelectorAll(o.selector);l?.forEach((c=>{var d=c;o.html&&(d.innerHTML=o.html),o.css&&d.setAttribute("style",o.css)}))}})):xr.Hn("Control variants leave the page unmodified.")}_is_bot(){return mo&&this._instance?e6(mo,this.Bt.custom_blocked_useragents):void 0}}var No=mn("[Conversations]"),qa="Conversations not available yet.",nv={featureFlags:class{constructor(e){this.Jn=!1,this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=e,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(e){return this._instance.get_property(e)}ls(){var e,t;return(e=(t=this.ni)==null?void 0:t.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,Pr.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var e,t=(e=this.Bt.evaluation_contexts)!==null&&e!==void 0?e:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(Pr.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),t!=null&&t.length?t.filter((n=>{var r=n&&typeof n=="string"&&n.trim().length>0;return r||Pr.error("Invalid evaluation context found:",n,"Expected non-empty string"),r})):[]}cs(){return this.hs().length>0}initialize(){var e,t,{config:n}=this._instance,r=(e=(t=n.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(r).length){var o,s,l=(o=(s=n.bootstrap)==null?void 0:s.featureFlagPayloads)!==null&&o!==void 0?o:{},c=Object.keys(r).filter((f=>!!r[f])).reduce(((f,p)=>(f[p]=r[p]||!1,f)),{}),d=Object.keys(l).filter((f=>c[f])).reduce(((f,p)=>(l[p]&&(f[p]=l[p]),f)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:d})}}updateFlags(e,t,n){var r=n!=null&&n.merge?this.getFlagVariants():{},o=n!=null&&n.merge?this.getFlagPayloads():{},s=Ne({},r,e),l=Ne({},o,t),c={};for(var[d,f]of Object.entries(s)){var p=typeof f=="string";c[d]={key:d,enabled:!!p||!!f,variant:p?f:void 0,reason:void 0,metadata:Ue(l?.[d])?void 0:{id:0,version:void 0,description:void 0,payload:l[d]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.os(I1),t=this.os(ns),n=this.os(bc);if(!n&&!t)return e||{};var r=On({},e||{}),o=[...new Set([...Object.keys(n||{}),...Object.keys(t||{})])];for(var s of o){var l,c,d=r[s],f=t?.[s],p=Ue(f)?(l=d?.enabled)!==null&&l!==void 0&&l:!!f,h=Ue(f)?d.variant:typeof f=="string"?f:void 0,g=n?.[s],v=Ne({},d,{enabled:p,variant:p?h??d?.variant:void 0});p!==d?.enabled&&(v.original_enabled=d?.enabled),h!==d?.variant&&(v.original_variant=d?.variant),g&&(v.metadata=Ne({},d?.metadata,{payload:g,original_payload:d==null||(c=d.metadata)==null?void 0:c.payload})),r[s]=v}return this.Jn||(Pr.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:n,finalDetails:r}),this.Jn=!0),r}getFlagVariants(){var e=this.os(Cc),t=this.os(ns);if(!t)return e||{};for(var n=On({},e),r=Object.keys(t),o=0;r.length>o;o++)n[r[o]]=t[r[o]];return this.Jn||(Pr.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this.Jn=!0),n}getFlagPayloads(){var e=this.os(M1),t=this.os(bc);if(!t)return e||{};for(var n=On({},e||{}),r=Object.keys(t),o=0;r.length>o;o++)n[r[o]]=t[r[o]];return this.Jn||(Pr.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:n}),this.Jn=!0),n}reloadFeatureFlags(){this.es||this.Bt.advanced_disable_feature_flags||this.ds||(this._instance.Fi.emit("featureFlagsReloading",!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Kn||this.Qn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.es=e}vs(e){var t;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var n=this.Bt.token,r=this.os(ng),o={token:n,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Ne({},((t=this.ni)==null?void 0:t.get_initial_props())||{},this.os(Ad)||{}),group_properties:this.os(Ya),timezone:GD()};ps(r)||Ue(r)||(o.$device_id=r),(e!=null&&e.disableFlags||this.Bt.advanced_disable_feature_flags)&&(o.disable_flags=!0),this.cs()&&(o.evaluation_contexts=this.hs());var s=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Bt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Qn=!0,this._instance._send_request({method:"POST",url:s,data:o,compression:this.Bt.disable_compression?void 0:gi.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:l=>{var c,d,f,p=!0;if(l.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),p=!1),this.Qn=!1,!o.disable_flags||this.ts){this.rs=!p;var h=[];l.error?l.error instanceof Error?h.push(l.error.name==="AbortError"?"timeout":"connection_error"):h.push("unknown_error"):l.statusCode!==200&&h.push("api_error_"+l.statusCode),(c=l.json)!=null&&c.errorsWhileComputingFlags&&h.push("errors_while_computing_flags");var g,v=!((d=l.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));v&&h.push("quota_limited"),(f=this.ni)==null||f.register({[L1]:h}),v?Pr.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(o.disable_flags||this.receivedFeatureFlags((g=l.json)!==null&&g!==void 0?g:{},p,{partialResponse:!!this.Bt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(e,t){var n;if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var r=this.getFeatureFlagResult(e,t);return(n=r?.variant)!==null&&n!==void 0?n:r?.enabled}}else Pr.warn('getFeatureFlag for key "'+e+ob)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var n=this.getFlagVariants(),r=e in n,o=n[e],s=this.getFlagPayloads()[e],l=String(o),c=this.os(P1)||void 0,d=this.os(og)||void 0,f=this.os(Ld)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var p,h=this._instance.get_session_id(),g=this.os(D1);h&&h!==g&&(f={},(p=this.ni)==null||p.register({[Ld]:f,[D1]:h}))}if((t.send_event||!("send_event"in t))&&(!(e in f)||!f[e].includes(l))){var v,y,b,x,w,E,T,R,O,A;Pt(f[e])?f[e].push(l):f[e]=[l],(v=this.ni)==null||v.register({[Ld]:f});var I=this.getFeatureFlagDetails(e),P=[...(y=this.os(L1))!==null&&y!==void 0?y:[]];Ue(o)&&P.push("flag_missing");var L={$feature_flag:e,$feature_flag_response:o,$feature_flag_payload:s||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:d,$feature_flag_bootstrapped_response:((b=this.Bt.bootstrap)==null||(b=b.featureFlags)==null?void 0:b[e])||null,$feature_flag_bootstrapped_payload:((x=this.Bt.bootstrap)==null||(x=x.featureFlagPayloads)==null?void 0:x[e])||null,$used_bootstrap_value:!this.rs};Ue(I==null||(w=I.metadata)==null?void 0:w.version)||(L.$feature_flag_version=I.metadata.version);var H,$=(E=I==null||(T=I.reason)==null?void 0:T.description)!==null&&E!==void 0?E:I==null||(R=I.reason)==null?void 0:R.code;$&&(L.$feature_flag_reason=$),I!=null&&(O=I.metadata)!=null&&O.id&&(L.$feature_flag_id=I.metadata.id),Ue(I?.original_variant)&&Ue(I?.original_enabled)||(L.$feature_flag_original_response=Ue(I.original_variant)?I.original_enabled:I.original_variant),I!=null&&(A=I.metadata)!=null&&A.original_payload&&(L.$feature_flag_original_payload=I==null||(H=I.metadata)==null?void 0:H.original_payload),P.length&&(L.$feature_flag_error=P.join(",")),this._instance.capture("$feature_flag_called",L)}if(r){var B=s;if(!Ue(s))try{B=JSON.parse(s)}catch{}return{key:e,enabled:!!o,variant:typeof o=="string"?o:void 0,payload:B}}}}else Pr.warn('getFeatureFlagResult for key "'+e+ob)}getRemoteConfigPayload(e,t){var n=this.Bt.token,r={distinct_id:this._instance.get_distinct_id(),token:n};this.cs()&&(r.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:r,compression:this.Bt.disable_compression?void 0:gi.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(o){var s,l=(s=o.json)==null?void 0:s.featureFlagPayloads;t(l?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(e,t);return Ue(n)?void 0:!!n}Pr.warn('isFeatureEnabled for key "'+e+ob)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}receivedFeatureFlags(e,t,n){if(this.ni){this.Kn=!0;var r=this.getFlagVariants(),o=this.getFlagPayloads(),s=this.getFlagsWithDetails();(function(l,c,d,f,p,h){d===void 0&&(d={}),f===void 0&&(f={}),p===void 0&&(p={});var g=(P=>{var L=P.flags;return L?(P.featureFlags=Object.fromEntries(Object.keys(L).map((H=>{var $;return[H,($=L[H].variant)!==null&&$!==void 0?$:L[H].enabled]}))),P.featureFlagPayloads=Object.fromEntries(Object.keys(L).filter((H=>L[H].enabled)).filter((H=>{var $;return($=L[H].metadata)==null?void 0:$.payload})).map((H=>{var $;return[H,($=L[H].metadata)==null?void 0:$.payload]})))):Pr.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),P})(l),v=g.flags,y=g.featureFlags,b=g.featureFlagPayloads;if(y){var x=l.requestId,w=l.evaluatedAt;if(Pt(y)){Pr.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var E={};if(y)for(var T=0;y.length>T;T++)E[y[T]]=!0;c&&c.register({[ym]:y,[Cc]:E})}else{var R=y,O=b,A=v;if(h!=null&&h.partialResponse)R=Ne({},d,R),O=Ne({},f,O),A=Ne({},p,A);else if(l.errorsWhileComputingFlags)if(v){var I=new Set(Object.keys(v).filter((P=>{var L;return!((L=v[P])!=null&&L.failed)})));R=Ne({},d,Object.fromEntries(Object.entries(R).filter((P=>{var[L]=P;return I.has(L)})))),O=Ne({},f,Object.fromEntries(Object.entries(O||{}).filter((P=>{var[L]=P;return I.has(L)})))),A=Ne({},p,Object.fromEntries(Object.entries(A||{}).filter((P=>{var[L]=P;return I.has(L)}))))}else R=Ne({},d,R),O=Ne({},f,O),A=Ne({},p,A);c&&c.register(Ne({[ym]:Object.keys(EI(R)),[Cc]:R||{},[M1]:O||{},[I1]:A||{}},x?{[P1]:x}:{},w?{[og]:w}:{}))}}})(e,this.ni,r,o,s,n),t||(this.ss=!1),this.ps(t)}}override(e,t){t===void 0&&(t=!1),Pr.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ni)return Pr.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.ni.unregister(ns),this.ni.unregister(bc),this.ps(),Ha.info("All overrides cleared");if(Pt(e)){var t=SI(e);return this.ni.register({[ns]:t}),this.ps(),Ha.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var n,r=e;if(this.Jn=!!((n=r.suppressWarning)!==null&&n!==void 0&&n),"flags"in r){if(r.flags===!1)this.ni.unregister(ns),Ha.info("Flag overrides cleared");else if(r.flags){if(Pt(r.flags)){var o=SI(r.flags);this.ni.register({[ns]:o})}else this.ni.register({[ns]:r.flags});Ha.info("Flag overrides set",{flags:r.flags})}}return"payloads"in r&&(r.payloads===!1?(this.ni.unregister(bc),Ha.info("Payload overrides cleared")):r.payloads&&(this.ni.register({[bc]:r.payloads}),Ha.info("Payload overrides set",{payloads:r.payloads}))),void this.ps()}if(e&&typeof e=="object")return this.ni.register({[ns]:e}),this.ps(),Ha.info("Flag overrides set",{flags:e});Pr.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Kn){var{flags:t,flagVariants:n}=this.gs();e(t,n)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,n){var r,o=(this.os(Cd)||[]).find((d=>d.flagKey===e)),s={["$feature_enrollment/"+e]:t},l={$feature_flag:e,$feature_enrollment:t,$set:s};o&&(l.$early_access_feature_name=o.name),n&&(l.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",l),this.setPersonPropertiesForFlags(s,!1);var c=Ne({},this.getFlagVariants(),{[e]:t});(r=this.ni)==null||r.register({[ym]:Object.keys(EI(c)),[Cc]:c}),this.ps()}getEarlyAccessFeatures(e,t,n){t===void 0&&(t=!1);var r=this.os(Cd),o=n?"&"+n.map((s=>"stage="+s)).join("&"):"";if(r&&!t)return e(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Bt.token+o),method:"GET",callback:s=>{var l,c;if(s.json){var d=s.json.earlyAccessFeatures;return(l=this.ni)==null||l.unregister(Cd),(c=this.ni)==null||c.register({[Cd]:d}),e(d)}}})}gs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((n=>t[n])),flagVariants:Object.keys(t).filter((n=>t[n])).reduce(((n,r)=>(n[r]=t[r],n)),{})}}ps(e){var{flags:t,flagVariants:n}=this.gs();this.featureFlagEventHandlers.forEach((r=>r(t,n,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this.os(Ad)||{},r=e?.$set||(e!=null&&e.$set_once?{}:e),o=e?.$set_once,s={};if(o)for(var l in o)({}).hasOwnProperty.call(o,l)&&(l in n||(s[l]=o[l]));this._instance.register({[Ad]:Ne({},n,s,r)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Ad)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this.os(Ya)||{};Object.keys(n).length!==0&&Object.keys(n).forEach((r=>{n[r]=Ne({},n[r],e[r]),delete e[r]})),this._instance.register({[Ya]:Ne({},n,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.os(Ya)||{};this._instance.register({[Ya]:Ne({},t,{[e]:{}})})}else this._instance.unregister(Ya)}reset(){this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.$anon_distinct_id=void 0,this.fs(),this.Jn=!1}}},qre={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var e;return!((e=this.ys)==null||!e.isStarted)}get status(){var e,t;return this.bs===md||this.bs===bp?this.bs:(e=(t=this.ys)==null?void 0:t.status)!==null&&e!==void 0?e:this.bs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=pI,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw Ks.error("started without valid sessionManager"),new Error(X1+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===is)throw new Error(X1+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var e,t=!((e=this._instance.get_property(Td))==null||!e.enabled),n=!this.Bt.disable_session_recording,r=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return me&&t&&n&&!r}startIfEnabledOrStop(e){var t;if(!this.ws||(t=this.ys)==null||!t.isStarted){var n=!Ue(Object.assign)&&!Ue(Array.from);this.ws&&n?(this.Is(e),Ks.info("starting")):(this.bs=pI,this.stopRecording())}}Is(e){var t,n,r;this.ws&&(this.bs!==md&&this.bs!==bp&&(this.bs=mI),We!=null&&(t=We.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(n=We.__PosthogExtensions__)!=null&&n.initSessionRecording?this.Cs(e):(r=We.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,this.Ss,(o=>{if(o)return Ks.error("could not load recorder",o);this.Cs(e)})))}stopRecording(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.stop()}xs(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.discard()}ks(){var e;(e=this.ni)==null||e.unregister($S)}Ts(e,t){if(Et(e))return null;var n,r=zo(e)?e:parseFloat(e);return typeof(n=r)!="number"||!Number.isFinite(n)||0>n||n>1?(Ks.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):r}As(e){if(this.ni){var t,n,r=this.ni,o=()=>{var s,l=e.sessionRecording===!1?void 0:e.sessionRecording,c=this.Ts((s=this.Bt.session_recording)==null?void 0:s.sampleRate,"session_recording.sampleRate"),d=this.Ts(l?.sampleRate,"remote config sampleRate"),f=c??d;Et(f)&&this.ks();var p=l?.minimumDurationMilliseconds;r.register({[Td]:Ne({cache_timestamp:Date.now(),enabled:!!l},l,{networkPayloadCapture:Ne({capturePerformance:e.capturePerformance},l?.networkPayloadCapture),canvasRecording:{enabled:l?.recordCanvas,fps:l?.canvasFps,quality:l?.canvasQuality},sampleRate:f,minimumDurationMilliseconds:Ue(p)?null:p,endpoint:l?.endpoint,triggerMatchType:l?.triggerMatchType,masking:l?.masking,urlTriggers:l?.urlTriggers,version:l?.version,triggerGroups:l?.triggerGroups})})};o(),(t=this._s)==null||t.call(this),this._s=(n=this._instance.sessionManager)==null?void 0:n.onSessionId(o)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.As(e),void this.xs()):(this.As(e),void this.startIfEnabledOrStop()):(this.bs===md&&(this.bs=bp,Ks.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var n;t===void 0&&(t="log"),(n=this.ys)!=null&&n.log?this.ys.log(e,t):Ks.warn("log called before recorder was ready")}get Ss(){var e,t,n=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(Td);return(n==null||(t=n.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}Es(){var e,t=this._instance.get_property(Td);if(!t)return!1;var n=(e=(typeof t=="object"?t:JSON.parse(t)).cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-n}Cs(e){var t,n;if((t=We.__PosthogExtensions__)==null||!t.initSessionRecording)return Ks.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[DD]:!0});if(this.ys||(this.ys=(n=We.__PosthogExtensions__)==null?void 0:n.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===bp||this.bs===md?void 0:(this.bs=md,Ks.info("persisted remote config is stale, requesting fresh config before starting"),void new KD(this._instance).load());this.bs=mI,this.ys.start(e)}onRRwebEmit(e){var t;(t=this.ys)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.ys||(t=this.ni)==null||t.register({[AD]:!0}),(e=this.ys)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||(t=this.ni)==null||t.register({[CD]:!0}),(e=this.ys)==null||e.overrideSampling()}overrideTrigger(e){var t,n;this.ys||(n=this.ni)==null||n.register({[e==="url"?ID:MD]:!0}),(t=this.ys)==null||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.ys)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var n;return!((n=this.ys)==null||!n.tryAddCustomEvent(e,t))}}},Gre={autocapture:class{constructor(e){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=e,this.rageclicks=new uI(e.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var e,t,n=In(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=(e=n.url_allowlist)==null?void 0:e.map((r=>new RegExp(r))),n.url_ignorelist=(t=n.url_ignorelist)==null?void 0:t.map((r=>new RegExp(r))),n}Os(){if(this.isBrowserSupported()){if(me&&Le){var e=n=>{n=n||me?.event;try{this.Ps(n)}catch(r){dI.error("Failed to capture event",r)}};if(Vn(Le,"submit",e,{capture:!0}),Vn(Le,"change",e,{capture:!0}),Vn(Le,"click",e,{capture:!0}),this.Bt.capture_copied_text){var t=n=>{this.Ps(n=n||me?.event,tb)};Vn(Le,"copy",t,{capture:!0}),Vn(Le,"cut",t,{capture:!0})}}}else dI.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Rs&&(this.Os(),this.Rs=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Ms=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[S1]:!!e.autocapture_opt_out}),this.Ns=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Fs=e}getElementSelectors(e){var t,n=[];return(t=this.Fs)==null||t.forEach((r=>{var o=Le?.querySelectorAll(r);o?.forEach((s=>{e===s&&n.push(r)}))})),n}get isEnabled(){var e,t,n=(e=this.instance.persistence)==null?void 0:e.props[S1];if(ps(this.Ns)&&!Si(n)&&!this.instance.Fr())return!1;var r=(t=this.Ns)!==null&&t!==void 0?t:!!n;return!!this.instance.config.autocapture&&!r}Ps(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var n,r=oI(e);i6(r)&&(r=r.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&(function(h,g){if(!me||W1(h))return!1;var v,y,b;if(Si(g)?(v=!!g&&sI,y=void 0):(v=(b=g?.css_selector_ignorelist)!==null&&b!==void 0?b:sI,y=g?.content_ignorelist),v===!1)return!1;var{targetElementList:x}=aI(h,!1);return!(function(w,E){if(w===!1||Ue(w))return!1;var T;if(w===!0)T=Are;else{if(!Pt(w))return!1;if(w.length>10)return $e.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;T=w.map((R=>R.toLowerCase()))}return E.some((R=>{var{safeText:O,ariaLabel:A}=R;return T.some((I=>O.includes(I)||A.includes(I)))}))})(y,x.map((w=>{var E;return{safeText:af(w).toLowerCase(),ariaLabel:((E=w.getAttribute("aria-label"))==null?void 0:E.toLowerCase().trim())||""}})))&&!iI(x,v)})(r,this.instance.config.rageclick)&&this.Ps(e,"$rageclick");var o=t===tb;if(r&&(function(h,g,v,y,b){var x,w,E,T;if(v===void 0&&(v=void 0),!me||W1(h)||(x=v)!=null&&x.url_allowlist&&!rI(v.url_allowlist)||(w=v)!=null&&w.url_ignorelist&&rI(v.url_ignorelist))return!1;if((E=v)!=null&&E.dom_event_allowlist){var R=v.dom_event_allowlist;if(R&&!R.some((L=>g.type===L)))return!1}var{parentIsUsefulElement:O,targetElementList:A}=aI(h,y);if(!(function(L,H){var $=H?.element_allowlist;if(Ue($))return!0;var B,z=function(oe){if($.some((q=>oe.tagName.toLowerCase()===q)))return{v:!0}};for(var K of L)if(B=z(K))return B.v;return!1})(A,v)||!iI(A,(T=v)==null?void 0:T.css_selector_allowlist))return!1;var I=me.getComputedStyle(h);if(I&&I.getPropertyValue("cursor")==="pointer"&&g.type==="click")return!0;var P=h.tagName.toLowerCase();switch(P){case"html":return!1;case"form":return(b||["submit"]).indexOf(g.type)>=0;case"input":case"select":case"textarea":return(b||["change","click"]).indexOf(g.type)>=0;default:return O?(b||["click"]).indexOf(g.type)>=0:(b||["click"]).indexOf(g.type)>=0&&(HS.indexOf(P)>-1||h.getAttribute("contenteditable")==="true")}})(r,e,this.Bt,o,o?["copy","cut"]:void 0)){var{props:s,explicitNoCapture:l}=Lre(r,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Bt.element_attribute_ignorelist,elementsChainAsString:this.Ms});if(l)return!1;var c=this.getElementSelectors(r);if(c&&c.length>0&&(s.$element_selectors=c),t===tb){var d,f=a6(me==null||(d=me.getSelection())==null?void 0:d.toString()),p=e.type||"clipboard";if(!f)return!1;s.$selected_content=f,s.$copy_type=p}return this.instance.capture(t,s),!0}}}isBrowserSupported(){return rs(Le?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ls=(me==null||(t=me.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&($e.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,$e.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(me&&me.history){var n=this;(e=me.history.pushState)!=null&&e.__posthog_wrapped__||fI(me.history,"pushState",(r=>function(o,s,l){r.call(this,o,s,l),n.Bs("pushState")})),(t=me.history.replaceState)!=null&&t.__posthog_wrapped__||fI(me.history,"replaceState",(r=>function(o,s,l){r.call(this,o,s,l),n.Bs("replaceState")})),this.js()}}Bs(e){try{var t,n=me==null||(t=me.location)==null?void 0:t.pathname;if(!n)return;n!==this.Ls&&this.isEnabled&&this._instance.capture(wc,{navigation_type:e}),this.Ls=n}catch(r){$e.error("Error capturing "+e+" pageview",r)}}js(){if(!this.Ds){var e=()=>{this.Bs("popstate")};Vn(me,"popstate",e),this.Ds=()=>{me&&me.removeEventListener("popstate",e)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(e){var t;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=e,this.$s=!((t=this.instance.persistence)==null||!t.props[E1]),this.rageclicks=new uI(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return In(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(e=this.Bt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Et(this.Bt.capture_heatmaps)?Et(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;jre.info("starting..."),this.Zs(),this.Ft()}else{var e;clearInterval((e=this.qs)!==null&&e!==void 0?e:void 0),this.Vs(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[E1]:t}),this.$s=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.T;return this.T=void 0,e}Hs(e){this.Tt(e.originalEvent,"deadclick")}Ft(){this.qs&&clearInterval(this.qs),this.qs=Le?.visibilityState==="visible"?setInterval(this.Yr.bind(this),this.flushIntervalMilliseconds):null}Zs(){me&&Le&&(this.zs=this.Yr.bind(this),Vn(me,lg,this.zs),this.Us=e=>this.Tt(e||me?.event),Vn(Le,"click",this.Us,{capture:!0}),this.Ys=e=>this.Gs(e||me?.event),Vn(Le,"mousemove",this.Ys,{capture:!0}),this.Ws=new $A(this.instance,Qne,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Vn(Le,ag,this.Xs),this.Rs=!0)}Vs(){var e;me&&Le&&(this.zs&&me.removeEventListener(lg,this.zs),this.Us&&Le.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&Le.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&Le.removeEventListener(ag,this.Xs),clearTimeout(this.Js),(e=this.Ws)==null||e.stop(),this.Rs=!1)}Ks(e,t){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),o=this.instance.scrollManager.scrollElement(),s=(function(l,c,d){for(var f=l;f&&tv(f)&&!la(f,"body");){if(f===d)return!1;if(St(c,me?.getComputedStyle(f).position))return!0;f=l6(f)}return!1})(oI(e),["fixed","sticky"],o);return{x:e.clientX+(s?0:r),y:e.clientY+(s?0:n),target_fixed:s,type:t}}Tt(e,t){var n;if(t===void 0&&(t="click"),!nI(e.target)&&gI(e)){var r=this.Ks(e,t);(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Qs(Ne({},r,{type:"rageclick"})),this.Qs(r)}}Gs(e){!nI(e.target)&&gI(e)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(e,"mousemove"))}),500))}Qs(e){if(me){var t=me.location.href,n=this.Bt.custom_personal_data_properties,r=this.Bt.mask_personal_data_properties?[...Yc,...n||[]]:[],o=of(t,r,sf);this.T=this.T||{},this.T[o]||(this.T[o]=[]),this.T[o].push(e)}}Yr(){this.T&&!Tc(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:$A,webVitalsAutocapture:class{constructor(e){var t;this.$s=!1,this.Rs=!1,this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.T.metrics.length!==0&&(this._instance.capture("$web_vitals",this.T.metrics.reduce(((n,r)=>Ne({},n,{["$web_vitals_"+r.name+"_event"]:Ne({},r),["$web_vitals_"+r.name+"_value"]:r.value})),{})),this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=n=>{var r,o=(r=this._instance.sessionManager)==null?void 0:r.checkAndGetSessionAndWindowId(!0);if(Ue(o))Gs.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var s=this.io();Ue(s)||(Et(n?.name)||Et(n?.value)?Gs.error("Invalid metric received",n):!this.no||this.no>n.value?(this.T.url!==s&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),Ue(this.T.url)&&(this.T.url=s),this.T.firstMetricTimestamp=Ue(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,n.attribution&&n.attribution.interactionTargetElement&&(n.attribution.interactionTargetElement=void 0),this.T.metrics.push(Ne({},n,{$current_url:s,$session_id:o.sessionId,$window_id:o.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):Gs.error("Ignoring metric with value >= "+this.no,n))}},this.so=()=>{if(!this.Rs){var n,r,o,s,l=We.__PosthogExtensions__;Ue(l)||Ue(l.postHogWebVitalsCallbacks)||({onLCP:n,onCLS:r,onFCP:o,onINP:s}=l.postHogWebVitalsCallbacks),n&&r&&o&&s?(this.allowedMetrics.indexOf("LCP")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&r(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&o(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&s(this.ht.bind(this)),this.Rs=!0):Gs.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.$s=!((t=this._instance.persistence)==null||!t.props[T1]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,n=In(this.oo)?(e=this.oo)==null?void 0:e.web_vitals_allowed_metrics:void 0;return Et(n)?((t=this._instance.persistence)==null?void 0:t.props[A1])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(In(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=In(this.oo)?this.oo.web_vitals_attribution:void 0;return e!=null&&e}get no(){var e=In(this.oo)&&zo(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:hI;return e>0&&6e4>=e?hI:e}get isEnabled(){var e=pr?.protocol;if(e!=="http:"&&e!=="https:")return Gs.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=In(this.oo)?this.oo.web_vitals:Si(this.oo)?this.oo:void 0;return Si(t)?t:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(Gs.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(e){if("capturePerformance"in e){var t=In(e.capturePerformance)&&!!e.capturePerformance.web_vitals,n=In(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[T1]:t}),this._instance.persistence.register({[A1]:n})),this.$s=t,this.startIfEnabled()}}ur(e){var t,n;(t=We.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(n=We.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(r=>{r?Gs.error("failed to load script",r):e()}))}io(){var e=me?me.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,n=this._instance.config.mask_personal_data_properties?[...Yc,...t||[]]:[];return of(e,n,sf)}Gs.error("Could not determine current URL")}}},Kre={exceptionObserver:class{constructor(e){var t,n,r;this.so=()=>{var o;if(me&&this.isEnabled&&(o=We.__PosthogExtensions__)!=null&&o.errorWrappingFunctions){var s=We.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,l=We.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=We.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.Bt.capture_unhandled_errors&&(this.ao=s(this.captureException.bind(this))),!this.lo&&this.Bt.capture_unhandled_rejections&&(this.lo=l(this.captureException.bind(this))),!this.uo&&this.Bt.capture_console_errors&&(this.uo=c(this.captureException.bind(this)))}catch(d){pd.error("failed to start",d),this.ho()}}},this._instance=e,this.co=!((t=this._instance.persistence)==null||!t.props[x1]),this.do=new sne({refillRate:(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&n!==void 0?n:1,bucketSize:(r=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&r!==void 0?r:10,refillInterval:1e4,Gt:pd}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return In(e)?t=Ne({},t,e):(Ue(e)?this.co:e)&&(t=Ne({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(pd.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(e){var t,n;(t=We.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(n=We.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"exception-autocapture",(r=>{if(r)return pd.error("failed to load script",r);e()}))}ho(){var e,t,n;(e=this.ao)==null||e.call(this),this.ao=void 0,(t=this.lo)==null||t.call(this),this.lo=void 0,(n=this.uo)==null||n.call(this),this.uo=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.co=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[x1]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(e){var t,n,r,o=(t=e==null||(n=e.$exception_list)==null||(n=n[0])==null?void 0:n.type)!==null&&t!==void 0?t:"Exception";this.do.consumeRateLimit(o)?pd.info("Skipping exception capture because of client rate limiting.",{exception:o}):(r=this._instance.exceptions)==null||r.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,n;this.fo=[],this.po=new yne([new Tne,new Lne,new Ane,new Cne,new kne,new Nne,new Mne,new Dne],(function(r){for(var o=arguments.length,s=new Array(o>1?o-1:0),l=1;o>l;l++)s[l-1]=arguments[l];return function(c,d){d===void 0&&(d=0);for(var f=[],p=c.split(`
|
|
156
|
-
`),h=d;p.length>h;h++){var g=p[h];if(1024>=g.length){var v=NA.test(g)?g.replace(NA,"$1"):g;if(!v.match(/\S*Error: /)){for(var y of s){var b=y(v,r);if(b){f.push(b);break}}if(f.length>=50)break}}}return(function(x){if(!x.length)return[];var w=Array.from(x);return w.reverse(),w.slice(0,50).map((E=>{return Ne({},E,{filename:E.filename||(T=w,T[T.length-1]||{}).filename,function:E.function||Zc});var T}))})(f)}})("web:javascript",Ene,One)),this._instance=e,this.fo=(t=(n=this._instance.persistence)==null?void 0:n.get_property(R1))!==null&&t!==void 0?t:[],this.mo=tg(this.yo()),this.bo=new jne(this.mo)}onConfigChange(){this.mo=tg(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,n,r;if("errorTracking"in e){var o=(t=(n=e.errorTracking)==null?void 0:n.suppressionRules)!==null&&t!==void 0?t:[],s=(r=e.errorTracking)==null?void 0:r.captureExtensionExceptions;this.fo=o,this._instance.persistence&&this._instance.persistence.register({[R1]:this.fo,[O1]:s})}}get _o(){var e,t=!!this._instance.get_property(O1),n=this._instance.config.error_tracking.captureExtensionExceptions;return(e=n??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!yn(e)||e.trim().length===0)return void Xi.warn("Ignoring exception step because message must be a non-empty string");var n=this.wo(t),{sanitizedProperties:r,droppedKeys:o}=(function(s){if(!s)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(s).reduce(((c,d)=>$ne.has(d)?(l.push(d),c):(c[d]=s[d],c)),{}),droppedKeys:l}})(n);o.length>0&&Xi.warn("Ignoring reserved exception step fields",{droppedKeys:o}),this.bo.add(Ne({[Jm]:e,[eg]:new Date().toISOString()},r))}catch(s){Xi.error("Failed to add exception step. Ignoring breadcrumb.",s)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void Xi.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void Xi.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void Xi.info("Skipping exception capture because it was thrown by the PostHog SDK")}var n=this.mo.enabled&&Et(e.$exception_steps)?this.To(e):e;try{var r=this._instance.capture("$exception",n,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return r&&this.bo.clear(),r}catch(o){return Xi.error("Failed to capture exception event. Dropping this exception.",o),void this.bo.clear()}}catch(o){return void Xi.error("Failed to process exception event. Ignoring this exception.",o)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Ne({},e,{$exception_steps:t})}catch(n){return Xi.error("Failed to read buffered exception steps. Capturing exception without steps.",n),e}}So(e){this.mo.enabled&&this.bo.add({[Jm]:e,[eg]:new Date().toISOString()})}wo(e){return In(e)?Ne({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((n,r)=>{var{type:o,value:s}=r;return yn(o)&&o.length>0&&n.$exception_types.push(o),yn(s)&&s.length>0&&n.$exception_values.push(s),n}),{$exception_types:[],$exception_values:[]});return this.fo.some((n=>{var r=n.values.map((o=>{var s,l=t6[o.operator],c=Pt(o.value)?o.value:[o.value],d=(s=t[o.key])!==null&&s!==void 0?s:[];return c.length>0&&l(c,d)}));return n.type==="OR"?r.some(Boolean):r.every(Boolean)}))}xo(e){return e.flatMap((t=>{var n,r;return(n=(r=t.stacktrace)==null?void 0:r.frames)!==null&&n!==void 0?n:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,n,r,o,s=(t=(n=e[0].stacktrace)==null?void 0:n.frames)!==null&&t!==void 0?t:[],l=s[s.length-1];return(r=l==null||(o=l.filename)==null?void 0:o.includes("posthog.com/static"))!==null&&r!==void 0&&r}return!1}Io(e){return!Et(e)&&Pt(e)}}},Zre=Ne({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[C1]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(C1)||this.ur((()=>this.Ro()))}ur(e){var t,n;(t=We.__PosthogExtensions__)!=null&&t.generateProductTours?e():(n=We.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"product-tours",(r=>{r?vI.error("Could not load product tours script",r):e()}))}Ro(){var e;!this.Ao&&(e=We.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=We.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Pt(this.Eo)||t){var n=this.ni;if(n){var r=n.props[bm];if(Pt(r)&&!t)return this.Eo=r,void e(r,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:o=>{var s=o.statusCode;if(s!==200||!o.json){var l="Product Tours API could not be loaded, status: "+s;return vI.error(l),void e([],{isLoaded:!1,error:l})}var c=Pt(o.json.product_tours)?o.json.product_tours:[];this.Eo=c,n&&n.register({[bm]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Et(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(bm)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},nv),Yre={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var n=this.globalsForEvent(t);this.No.push(n),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=We._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,n,r,o,s,l,c;if(!e)throw new Error("Event payload is required");var d={},f=this._instance.get_property("$groups")||[],p=this._instance.get_property("$stored_group_properties")||{};for(var[h,g]of Object.entries(p))d[h]={id:f[h],type:h,properties:g};var{$set_once:v,$set:y}=e;return{event:Ne({},nD(e,Ure),{properties:Ne({},e.properties,y?{$set:Ne({},(t=(n=e.properties)==null?void 0:n.$set)!==null&&t!==void 0?t:{},y)}:{},v?{$set_once:Ne({},(r=(o=e.properties)==null?void 0:o.$set_once)!==null&&r!==void 0?r:{},v)}:{}),elements_chain:(s=(l=e.properties)==null?void 0:l.$elements_chain)!==null&&s!==void 0?s:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(e){var t=this.apps[e.id],n=()=>{var l;!t.errored&&this.No.length&&(Zs.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((l=this.Fo)==null||l.call(this))},r=!1,o=l=>{t.errored=!l,t.loaded=!0,Zs.info("Site app with id "+e.id+" "+(l?"loaded":"errored")),r&&n()};try{var{processEvent:s}=e.init({posthog:this._instance,callback(l){o(l)}});s&&(t.processEvent=s),r=!0}catch(l){Zs.error(_I+e.id,l),o(!1)}if(r&&t.loaded)try{n()}catch(l){Zs.error("Error while processing buffered events PostHog app with config id "+e.id,l),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of e)this.setupSiteApp(n)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var n of Object.values(this.apps))try{n.processEvent==null||n.processEvent(t)}catch(r){Zs.error("Error while processing event "+e.event+" for site app "+n.id,r)}}}onRemoteConfig(e){var t,n,r,o=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Zs.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this.Fo)==null||n.call(this),(r=e.siteApps)!=null&&r.length)if(this.isEnabled){var s=function(d){var f;We["__$$ph_site_app_"+d]=o._instance,(f=We.__PosthogExtensions__)==null||f.loadSiteApp==null||f.loadSiteApp(o._instance,c,(p=>{if(p)return Zs.error(_I+d,p)}))};for(var{id:l,url:c}of e.siteApps)s(l)}else Zs.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Wre={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,n,r=this.Bo()||[];Ue(this.Lo)&&((t=We.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(r,this._instance.get_distinct_id(),this._instance.sessionManager)),Ue(this.Do)&&((n=We.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null||n._patchFetch(r,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,n;(t=We.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(n=We.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"tracing-headers",(r=>{if(r)return $re.error("failed to load script",r);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},Qre=Ne({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(Et(t))return Qt.warn("Flags not loaded yet. Not loading surveys.");var n=Pt(t);this.jo=n?t.length>0:t,Qt.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(n!=null&&n.startsWith(Z1)||n!=null&&n.startsWith("inProgressSurvey_"))&&e.push(n)}e.forEach((r=>localStorage.removeItem(r)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)Qt.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)Qt.info(yI);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())Qt.info("Not loading surveys in cookieless mode without consent.");else{var e=We?.__PosthogExtensions__;if(e){if(!Ue(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var n=e.generateSurveys;if(n)return void this.Vo(n,t);var r=e.loadExternalDependency;if(!r)return void this.Ho(jS);r(this._instance,"surveys",(o=>{o||!e.generateSurveys?this.Ho("Could not load surveys script",o):this.Vo(e.generateSurveys,t)}))}catch(o){throw this.Ho("Error initializing surveys",o),o}finally{this.$o=!1}}}else Qt.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Bre(this._instance),Qt.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){Qt.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return Qt.info(yI),e([]);var n,r=this._instance.get_property(N1);if(r&&!t)return e(r,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((o=>{var{surveys:s,context:l}=o;return e(s,l)})):(typeof Promise<"u"&&(this.Zo=new Promise((o=>{n=o}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:o=>{var s;this.Zo=null;var l=o.statusCode;if(l!==200||!o.json){var c="Surveys API could not be loaded, status: "+l;Qt.error(c);var d={isLoaded:!1,error:c};return e([],d),void(n==null||n({surveys:[],context:d}))}var f,p=o.json.surveys||[],h=p.filter((v=>(function(y){return!(!y.start_date||y.end_date)})(v)&&((function(y){var b;return!((b=y.conditions)==null||(b=b.events)==null||(b=b.values)==null||!b.length)})(v)||(function(y){var b;return!((b=y.conditions)==null||(b=b.actions)==null||(b=b.values)==null||!b.length)})(v))));h.length>0&&((f=this._surveyEventReceiver)==null||f.register(h)),(s=this._instance.persistence)==null||s.register({[N1]:p});var g={isLoaded:!0};e(p,g),n?.({surveys:p,context:g})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(n){Qt.error("Error in survey callback",n)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Et(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Qt.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((n=>{var r;t=(r=n.find((o=>o.id===e)))!==null&&r!==void 0?r:null})),t}Yo(e){if(Et(this._surveyManager))return{eligible:!1,reason:rb};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Et(this._surveyManager))return Qt.warn("init was not called"),{visible:!1,disabledReason:rb};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Et(this._surveyManager)?(Qt.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:rb})):new Promise((n=>{this.getSurveys((r=>{var o,s=(o=r.find((c=>c.id===e)))!==null&&o!==void 0?o:null;if(s){var l=this.Yo(s);n({visible:l.eligible,disabledReason:l.reason})}else n({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,n){var r;if(Et(this._surveyManager))Qt.warn("init was not called");else{var o=typeof e=="string"?this.Uo(e):e;if(o!=null&&o.id)if(Sre.includes(o.type)){var s=Le?.querySelector(t);if(s)return(r=o.appearance)!=null&&r.surveyPopupDelaySeconds?(Qt.info("Rendering survey "+o.id+" with delay of "+o.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;Qt.info("Rendering survey "+o.id+" with delay of "+((l=o.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(o,s,n),Qt.info("Survey "+o.id+" rendered")}),1e3*o.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(o,s,n);Qt.warn("Survey element not found")}else Qt.warn("Surveys of type "+o.type+" cannot be rendered in the app");else Qt.warn("Survey not found")}}displaySurvey(e,t){var n;if(Et(this._surveyManager))Qt.warn("init was not called");else{var r=this.Uo(e);if(r){var o=r;if((n=r.appearance)!=null&&n.surveyPopupDelaySeconds&&t.ignoreDelay&&(o=Ne({},r,{appearance:Ne({},r.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==B1.Popover&&t.initialResponses&&Qt.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var s=this.canRenderSurvey(r);if(!s.visible)return void Qt.warn("Survey is not eligible to be displayed: ",s.disabledReason)}t.displayType!==B1.Inline?this._surveyManager.handlePopoverSurvey(o,t):this.renderSurvey(o,t.selector,t.properties)}else Qt.warn("Survey not found")}}cancelPendingSurvey(e){Et(this._surveyManager)?Qt.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},nv),Xre={toolbar:class{constructor(e){this.instance=e}Go(e){We.ph_toolbar_state=e}Wo(){var e;return(e=We.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,n){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),LD(this.instance.config)||!me||!Le)return!1;e=e??me.location,n=n??me.history;try{if(!t){try{me.localStorage.setItem("test","test"),me.localStorage.removeItem("test")}catch{return!1}t=me?.localStorage}var r,o=Vre||fg(e.hash,"__posthog")||fg(e.hash,"state"),s=o?DA((()=>JSON.parse(atob(decodeURIComponent(o)))))||DA((()=>JSON.parse(decodeURIComponent(o)))):null;return s&&s.action==="ph_authorize"?((r=s).source="url",r&&Object.keys(r).length>0&&(s.desiredHash?e.hash=s.desiredHash:n?n.replaceState(n.state,"",e.pathname+e.search):e.hash="")):((r=JSON.parse(t.getItem(bI)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch{return!1}}Xo(e){var t=We.ph_load_toolbar||We.ph_load_editor;!Et(t)&&rs(t)?t(e,this.instance):wI.warn("No toolbar load function found")}loadToolbar(e){var t=!(Le==null||!Le.getElementById(PD));if(!me||t)return!1;var n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,r=Ne({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(me.localStorage.setItem(bI,JSON.stringify(Ne({},r,{source:void 0}))),this.Wo()===2)this.Xo(r);else if(this.Wo()===0){var o;this.Go(1),(o=We.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this.instance,"toolbar",(s=>{if(s)return wI.error("[Toolbar] Failed to load",s),void this.Go(0);this.Go(2),this.Xo(r)})),Vn(me,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(r)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,n){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(e,t,n)}}},Jre=Ne({experiments:xr},nv),eoe={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Et(t)||(Si(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||LD(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=We?.__PosthogExtensions__;if(e&&!Ue(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var n=e.loadExternalDependency;if(!n)return void this.ra(jS);n(this._instance,"conversations",(r=>{r||!e.initConversations?this.ra("Could not load conversations script",r):this.ta(e.initConversations),this.Qo=!1}))}catch(r){this.ra("Error initializing conversations",r),this.Qo=!1}}else No.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),No.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else No.error("Cannot complete initialization: remote config is null")}ra(e,t){No.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():No.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!ps(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,n){var r=this;return Do((function*(){return r._conversationsManager?r._conversationsManager.sendMessage(e,t,n):(No.warn(qa),null)}))()}getMessages(e,t){var n=this;return Do((function*(){return n._conversationsManager?n._conversationsManager.getMessages(e,t):(No.warn(qa),null)}))()}markAsRead(e){var t=this;return Do((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(No.warn(qa),null)}))()}getTickets(e){var t=this;return Do((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(No.warn(qa),null)}))()}requestRestoreLink(e){var t=this;return Do((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(No.warn(qa),null)}))()}restoreFromToken(e){var t=this;return Do((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(No.warn(qa),null)}))()}restoreFromUrlToken(){var e=this;return Do((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(No.warn(qa),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},toe={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=mn("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,n=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Et(n)&&n&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=We?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(n=>{var r;n||(r=e.logs)==null||!r.initializeLogs?this.Gt.error("Could not load logs script",n):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(jS)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,n,r,o,s,l;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(n=this._instance.config.logs)==null?void 0:n.flushIntervalMs)!==null&&t!==void 0?t:3e3,d=(r=(o=this._instance.config.logs)==null?void 0:o.maxLogsPerInterval)!==null&&r!==void 0?r:1e3,f=Date.now();if(c>f-this.aa||(this.aa=f,this.oa=0,this.la=!1),d>this.oa){this.oa++;var p=(function(h,g){var v=h.level||"info",{text:y,number:b}=SD[v]||vne,x=String(Date.now())+"000000",w={};g.distinctId&&(w.posthogDistinctId=g.distinctId),g.sessionId&&(w.sessionId=g.sessionId),g.currentUrl&&(w["url.full"]=g.currentUrl),g.screenName&&(w["screen.name"]=g.screenName),g.appState&&(w["app.state"]=g.appState),g.activeFeatureFlags&&g.activeFeatureFlags.length>0&&(w.feature_flags=g.activeFeatureFlags);var E=Ne({},w,h.attributes||{}),T={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:b,severityText:y,body:{stringValue:h.body},attributes:PA(E)};return h.trace_id&&(T.traceId=h.trace_id),h.span_id&&(T.spanId=h.span_id),Ue(h.trace_flags)||(T.flags=h.trace_flags),T})(e,this.ua());this.sa.push({record:p}),((s=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&s!==void 0?s:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var n=this._instance.config.logs,r=Ne({"service.name":n?.serviceName||"unknown_service"},n?.environment&&{"deployment.environment":n.environment},n?.serviceVersion&&{"service.version":n.serviceVersion},n?.resourceAttributes),o=(function(l,c,d,f){return{resourceLogs:[{resource:{attributes:PA(c)},scopeLogs:[{scope:{name:d,version:f},logRecords:l}]}]}})(t.map((l=>l.record)),r,Lr.LIB_NAME,Lr.LIB_VERSION),s=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:s,data:o,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:n}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=n}if(We!=null&&(e=We.location)!=null&&e.href&&(t.currentUrl=We.location.href),this._instance.featureFlags){var r=this._instance.featureFlags.getFlags();r&&r.length>0&&(t.activeFeatureFlags=r)}return t}}},noe=Ne({},nv,qre,Gre,Kre,Zre,Yre,Qre,Wre,Xre,Jre,eoe,toe);Lo.__defaultExtensionClasses=Ne({},noe);var RI,ru=(RI=jd[Sc]=new Lo,(function(){function e(){e.done||(e.done=!0,o6=!1,cn(jd,(function(t){t._dom_loaded()})))}Le!=null&&Le.addEventListener?Le.readyState==="complete"?e():Vn(Le,"DOMContentLoaded",e,{capture:!1}):me&&$e.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),RI);const vg="mesh:rq-cache",h6=1440*60*1e3,roe=1e3,ooe=new Set(["publicConfig"]);let p6=!1,m6=!1;function ioe(e){const t=e[0];return typeof t=="string"&&ooe.has(t)}function soe(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(vg);if(!t)return;const n=JSON.parse(t),r=!n.timestamp||Date.now()-n.timestamp>h6;if(n.buster!=="2.380.0"||r||!n.state){window.localStorage.removeItem(vg);return}n8(e,n.state),p6=!0}catch{loe()}}function aoe(e){if(typeof window>"u")return()=>{};let t=null;const n=()=>{t=null;try{const r=t8(e,{shouldDehydrateQuery:o=>o.state.status==="success"&&ioe(o.queryKey)});window.localStorage.setItem(vg,JSON.stringify({buster:"2.380.0",timestamp:Date.now(),state:r}))}catch{}};return e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(n,roe))})}const g6="studio:org-cache:";function v6(e){return`${g6}${e}`}function oue(e,t){if(typeof window>"u")return null;try{const n=window.localStorage.getItem(v6(e));if(!n)return null;const r=JSON.parse(n)[t];return!r||Date.now()-r.updatedAt>h6?null:(m6=!0,r)}catch{return null}}function iue(e,t,n){if(!(typeof window>"u"))try{const r=v6(e),o=window.localStorage.getItem(r),s=o?JSON.parse(o):{};s[t]={data:n,updatedAt:Date.now()},window.localStorage.setItem(r,JSON.stringify(s))}catch{}}function loe(){if(!(typeof window>"u"))try{window.localStorage.removeItem(vg);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(g6)&&window.localStorage.removeItem(t)}}catch{}}function coe(){return p6}function uoe(){return m6}let ha=!1,J1=null,OI=!1;function doe(e,t){ha||typeof window>"u"||(ru.init(e,{api_host:t,capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture"},person_profiles:"identified_only"}),ha=!0)}function foe(e,t){ha&&ru.identify(e,t)}function hoe(){ha&&(ru.reset(),J1=null)}function poe(e,t){ha&&ru.capture(e,t)}function sue(){if(!ha||OI||typeof performance>"u")return;OI=!0;const e=performance.getEntriesByType("navigation")[0],t=n=>{const r=performance.getEntriesByName(n,"measure")[0];return r?Math.round(r.duration):void 0};poe("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("mesh:config-fetch"),active_org_fetch_ms:t("mesh:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:coe(),org_cache_restored:uoe()})}function aue(e,t){ha&&e!==J1&&(ru.group("organization",e,t),J1=e)}function _6(e,t){if(ha)try{ru.captureException(e,t)}catch{}}let wp=null;function moe({children:e}){const t=vP(),{data:n}=jw.useSession();if(t.posthog){doe(t.posthog.key,t.posthog.host);const r=n?.user?.id??null;r&&r!==wp?(foe(r,{email:n?.user?.email,name:n?.user?.name}),wp=r):!r&&wp&&(hoe(),wp=null)}return C.jsx(C.Fragment,{children:e})}const qS=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));qS.displayName="AlertTriangle";const y6=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M11 4.5h7.3c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874c.218.428.218.988.218 2.108V9c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C19.898 12 19.432 12 18.5 12M13 19.5H5.7c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C2.5 17.98 2.5 17.42 2.5 16.3V15c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C4.102 12 4.568 12 5.5 12m4.8 2.5h3.4c.28 0 .42 0 .527-.055a.5.5 0 0 0 .218-.218c.055-.107.055-.247.055-.527v-3.4c0-.28 0-.42-.055-.527a.5.5 0 0 0-.218-.218C14.12 9.5 13.98 9.5 13.7 9.5h-3.4c-.28 0-.42 0-.527.055a.5.5 0 0 0-.218.218c-.055.107-.055.247-.055.527v3.4c0 .28 0 .42.055.527a.5.5 0 0 0 .218.218c.107.055.247.055.527.055Zm7.5 7.5h3.4c.28 0 .42 0 .527-.055a.5.5 0 0 0 .218-.218C22 21.62 22 21.48 22 21.2v-3.4c0-.28 0-.42-.055-.527a.5.5 0 0 0-.218-.218C21.62 17 21.48 17 21.2 17h-3.4c-.28 0-.42 0-.527.055a.5.5 0 0 0-.218.218C17 17.38 17 17.52 17 17.8v3.4c0 .28 0 .42.055.527a.5.5 0 0 0 .218.218c.107.055.247.055.527.055ZM2.8 7h3.4c.28 0 .42 0 .527-.054a.5.5 0 0 0 .218-.219C7 6.62 7 6.48 7 6.2V2.8c0-.28 0-.42-.054-.527a.5.5 0 0 0-.219-.219C6.62 2 6.48 2 6.2 2H2.8c-.28 0-.42 0-.527.054a.5.5 0 0 0-.219.219C2 2.38 2 2.52 2 2.8v3.4c0 .28 0 .42.054.527a.5.5 0 0 0 .219.218C2.38 7 2.52 7 2.8 7Z"}));y6.displayName="Dataflow03";const b6=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));b6.displayName="Loading01";const w6=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));w6.displayName="RefreshCw01";function GS(){const e=Ri.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=C.jsx("div",{className:"flex items-center justify-center min-h-screen",children:C.jsx(b6,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}const goe={from({org:e,project:t}){return`${e}/${t}`},parse(e){e.startsWith("/")&&(e=e.slice(1));const[t,n]=e.split("/");if(!t||!n)throw new Error("Invalid locator");return{org:t,project:n}}},S6=M.createContext(void 0),voe=()=>{const e=M.useContext(S6);if(!e)throw new Error("useProjectContext must be used within a ProjectContextProvider");return e},lue=()=>voe().org,cue=e=>{const t=Ri.c(10),{children:n,org:r,project:o}=e;let s;t[0]!==r.id||t[1]!==o.id?(s=goe.from({org:r.id,project:o.id}),t[0]=r.id,t[1]=o.id,t[2]=s):s=t[2];const l=s;let c;t[3]!==l||t[4]!==r||t[5]!==o?(c={org:r,project:o,locator:l},t[3]=l,t[4]=r,t[5]=o,t[6]=c):c=t[6];const d=c;let f;return t[7]!==n||t[8]!==d?(f=C.jsx(S6.Provider,{value:d,children:n}),t[7]=n,t[8]=d,t[9]=f):f=t[9],f},KS="2025-11-25",uue=[KS,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],_oe="io.modelcontextprotocol/related-task",rv="2.0",Xn=wV(e=>e!==null&&(typeof e=="object"||typeof e=="function")),E6=dn([j(),ut().int()]),x6=j();vr({ttl:ut().optional(),pollInterval:ut().optional()});const yoe=we({ttl:ut().optional()}),boe=we({taskId:j()}),ZS=vr({progressToken:E6.optional(),[_oe]:boe.optional()}),bo=we({_meta:ZS.optional()}),wf=bo.extend({task:yoe.optional()}),due=e=>wf.safeParse(e).success,yr=we({method:j(),params:bo.loose().optional()}),Bo=we({_meta:ZS.optional()}),Vo=we({method:j(),params:Bo.loose().optional()}),br=vr({_meta:ZS.optional()}),ov=dn([j(),ut().int()]),R6=we({jsonrpc:Ge(rv),id:ov,...yr.shape}).strict(),fue=e=>R6.safeParse(e).success,O6=we({jsonrpc:Ge(rv),...Vo.shape}).strict(),hue=e=>O6.safeParse(e).success,YS=we({jsonrpc:Ge(rv),id:ov,result:br}).strict(),pue=e=>YS.safeParse(e).success;var _g;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(_g||(_g={}));const WS=we({jsonrpc:Ge(rv),id:ov.optional(),error:we({code:ut().int(),message:j(),data:Xt().optional()})}).strict(),mue=e=>WS.safeParse(e).success,gue=dn([R6,O6,YS,WS]);dn([YS,WS]);const T6=br.strict(),woe=Bo.extend({requestId:ov.optional(),reason:j().optional()}),C6=Vo.extend({method:Ge("notifications/cancelled"),params:woe}),Soe=we({src:j(),mimeType:j().optional(),sizes:Ie(j()).optional(),theme:pn(["light","dark"]).optional()}),Sf=we({icons:Ie(Soe).optional()}),Qc=we({name:j(),title:j().optional()}),A6=Qc.extend({...Qc.shape,...Sf.shape,version:j(),websiteUrl:j().optional(),description:j().optional()}),Eoe=kw(we({applyDefaults:Nt().optional()}),Mt(j(),Xt())),xoe=Lw(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,kw(we({form:Eoe.optional(),url:Xn.optional()}),Mt(j(),Xt()).optional())),Roe=vr({list:Xn.optional(),cancel:Xn.optional(),requests:vr({sampling:vr({createMessage:Xn.optional()}).optional(),elicitation:vr({create:Xn.optional()}).optional()}).optional()}),Ooe=vr({list:Xn.optional(),cancel:Xn.optional(),requests:vr({tools:vr({call:Xn.optional()}).optional()}).optional()}),Toe=we({experimental:Mt(j(),Xn).optional(),sampling:we({context:Xn.optional(),tools:Xn.optional()}).optional(),elicitation:xoe.optional(),roots:we({listChanged:Nt().optional()}).optional(),tasks:Roe.optional(),extensions:Mt(j(),Xn).optional()}),Coe=bo.extend({protocolVersion:j(),capabilities:Toe,clientInfo:A6}),Aoe=yr.extend({method:Ge("initialize"),params:Coe}),Ioe=we({experimental:Mt(j(),Xn).optional(),logging:Xn.optional(),completions:Xn.optional(),prompts:we({listChanged:Nt().optional()}).optional(),resources:we({subscribe:Nt().optional(),listChanged:Nt().optional()}).optional(),tools:we({listChanged:Nt().optional()}).optional(),tasks:Ooe.optional(),extensions:Mt(j(),Xn).optional()}),Moe=br.extend({protocolVersion:j(),capabilities:Ioe,serverInfo:A6,instructions:j().optional()}),I6=Vo.extend({method:Ge("notifications/initialized"),params:Bo.optional()}),vue=e=>I6.safeParse(e).success,M6=yr.extend({method:Ge("ping"),params:bo.optional()}),Poe=we({progress:ut(),total:bn(ut()),message:bn(j())}),Noe=we({...Bo.shape,...Poe.shape,progressToken:E6}),P6=Vo.extend({method:Ge("notifications/progress"),params:Noe}),koe=bo.extend({cursor:x6.optional()}),Ef=yr.extend({params:koe.optional()}),xf=br.extend({nextCursor:x6.optional()}),Doe=pn(["working","input_required","completed","failed","cancelled"]),Rf=we({taskId:j(),status:Doe,ttl:dn([ut(),ZB()]),createdAt:j(),lastUpdatedAt:j(),pollInterval:bn(ut()),statusMessage:bn(j())}),N6=br.extend({task:Rf}),Loe=Bo.merge(Rf),k6=Vo.extend({method:Ge("notifications/tasks/status"),params:Loe}),D6=yr.extend({method:Ge("tasks/get"),params:bo.extend({taskId:j()})}),L6=br.merge(Rf),$6=yr.extend({method:Ge("tasks/result"),params:bo.extend({taskId:j()})});br.loose();const j6=Ef.extend({method:Ge("tasks/list")}),U6=xf.extend({tasks:Ie(Rf)}),z6=yr.extend({method:Ge("tasks/cancel"),params:bo.extend({taskId:j()})}),_ue=br.merge(Rf),F6=we({uri:j(),mimeType:bn(j()),_meta:Mt(j(),Xt()).optional()}),B6=F6.extend({text:j()}),QS=j().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),V6=F6.extend({blob:QS}),Of=pn(["user","assistant"]),ou=we({audience:Ie(Of).optional(),priority:ut().min(0).max(1).optional(),lastModified:GN({offset:!0}).optional()}),H6=we({...Qc.shape,...Sf.shape,uri:j(),description:bn(j()),mimeType:bn(j()),size:bn(ut()),annotations:ou.optional(),_meta:bn(vr({}))}),$oe=we({...Qc.shape,...Sf.shape,uriTemplate:j(),description:bn(j()),mimeType:bn(j()),annotations:ou.optional(),_meta:bn(vr({}))}),joe=Ef.extend({method:Ge("resources/list")}),Uoe=xf.extend({resources:Ie(H6)}),zoe=Ef.extend({method:Ge("resources/templates/list")}),Foe=xf.extend({resourceTemplates:Ie($oe)}),XS=bo.extend({uri:j()}),Boe=XS,Voe=yr.extend({method:Ge("resources/read"),params:Boe}),Hoe=br.extend({contents:Ie(dn([B6,V6]))}),qoe=Vo.extend({method:Ge("notifications/resources/list_changed"),params:Bo.optional()}),Goe=XS,Koe=yr.extend({method:Ge("resources/subscribe"),params:Goe}),Zoe=XS,Yoe=yr.extend({method:Ge("resources/unsubscribe"),params:Zoe}),Woe=Bo.extend({uri:j()}),Qoe=Vo.extend({method:Ge("notifications/resources/updated"),params:Woe}),Xoe=we({name:j(),description:bn(j()),required:bn(Nt())}),Joe=we({...Qc.shape,...Sf.shape,description:bn(j()),arguments:bn(Ie(Xoe)),_meta:bn(vr({}))}),eie=Ef.extend({method:Ge("prompts/list")}),tie=xf.extend({prompts:Ie(Joe)}),nie=bo.extend({name:j(),arguments:Mt(j(),j()).optional()}),rie=yr.extend({method:Ge("prompts/get"),params:nie}),JS=we({type:Ge("text"),text:j(),annotations:ou.optional(),_meta:Mt(j(),Xt()).optional()}),eE=we({type:Ge("image"),data:QS,mimeType:j(),annotations:ou.optional(),_meta:Mt(j(),Xt()).optional()}),tE=we({type:Ge("audio"),data:QS,mimeType:j(),annotations:ou.optional(),_meta:Mt(j(),Xt()).optional()}),oie=we({type:Ge("tool_use"),name:j(),id:j(),input:Mt(j(),Xt()),_meta:Mt(j(),Xt()).optional()}),iie=we({type:Ge("resource"),resource:dn([B6,V6]),annotations:ou.optional(),_meta:Mt(j(),Xt()).optional()}),sie=H6.extend({type:Ge("resource_link")}),nE=dn([JS,eE,tE,sie,iie]),aie=we({role:Of,content:nE}),lie=br.extend({description:j().optional(),messages:Ie(aie)}),cie=Vo.extend({method:Ge("notifications/prompts/list_changed"),params:Bo.optional()}),uie=we({title:j().optional(),readOnlyHint:Nt().optional(),destructiveHint:Nt().optional(),idempotentHint:Nt().optional(),openWorldHint:Nt().optional()}),die=we({taskSupport:pn(["required","optional","forbidden"]).optional()}),rE=we({...Qc.shape,...Sf.shape,description:j().optional(),inputSchema:we({type:Ge("object"),properties:Mt(j(),Xn).optional(),required:Ie(j()).optional()}).catchall(Xt()),outputSchema:we({type:Ge("object"),properties:Mt(j(),Xn).optional(),required:Ie(j()).optional()}).catchall(Xt()).optional(),annotations:uie.optional(),execution:die.optional(),_meta:Mt(j(),Xt()).optional()}),fie=Ef.extend({method:Ge("tools/list")}),hie=xf.extend({tools:Ie(rE)}),q6=br.extend({content:Ie(nE).default([]),structuredContent:Mt(j(),Xt()).optional(),isError:Nt().optional()});q6.or(br.extend({toolResult:Xt()}));const pie=wf.extend({name:j(),arguments:Mt(j(),Xt()).optional()}),mie=yr.extend({method:Ge("tools/call"),params:pie}),gie=Vo.extend({method:Ge("notifications/tools/list_changed"),params:Bo.optional()}),yue=we({autoRefresh:Nt().default(!0),debounceMs:ut().int().nonnegative().default(300)}),G6=pn(["debug","info","notice","warning","error","critical","alert","emergency"]),vie=bo.extend({level:G6}),_ie=yr.extend({method:Ge("logging/setLevel"),params:vie}),yie=Bo.extend({level:G6,logger:j().optional(),data:Xt()}),bie=Vo.extend({method:Ge("notifications/message"),params:yie}),wie=we({name:j().optional()}),Sie=we({hints:Ie(wie).optional(),costPriority:ut().min(0).max(1).optional(),speedPriority:ut().min(0).max(1).optional(),intelligencePriority:ut().min(0).max(1).optional()}),Eie=we({mode:pn(["auto","required","none"]).optional()}),xie=we({type:Ge("tool_result"),toolUseId:j().describe("The unique identifier for the corresponding tool call."),content:Ie(nE).default([]),structuredContent:we({}).loose().optional(),isError:Nt().optional(),_meta:Mt(j(),Xt()).optional()}),Rie=Nw("type",[JS,eE,tE]),yg=Nw("type",[JS,eE,tE,oie,xie]),Oie=we({role:Of,content:dn([yg,Ie(yg)]),_meta:Mt(j(),Xt()).optional()}),Tie=wf.extend({messages:Ie(Oie),modelPreferences:Sie.optional(),systemPrompt:j().optional(),includeContext:pn(["none","thisServer","allServers"]).optional(),temperature:ut().optional(),maxTokens:ut().int(),stopSequences:Ie(j()).optional(),metadata:Xn.optional(),tools:Ie(rE).optional(),toolChoice:Eie.optional()}),Cie=yr.extend({method:Ge("sampling/createMessage"),params:Tie}),Aie=br.extend({model:j(),stopReason:bn(pn(["endTurn","stopSequence","maxTokens"]).or(j())),role:Of,content:Rie}),Iie=br.extend({model:j(),stopReason:bn(pn(["endTurn","stopSequence","maxTokens","toolUse"]).or(j())),role:Of,content:dn([yg,Ie(yg)])}),Mie=we({type:Ge("boolean"),title:j().optional(),description:j().optional(),default:Nt().optional()}),Pie=we({type:Ge("string"),title:j().optional(),description:j().optional(),minLength:ut().optional(),maxLength:ut().optional(),format:pn(["email","uri","date","date-time"]).optional(),default:j().optional()}),Nie=we({type:pn(["number","integer"]),title:j().optional(),description:j().optional(),minimum:ut().optional(),maximum:ut().optional(),default:ut().optional()}),kie=we({type:Ge("string"),title:j().optional(),description:j().optional(),enum:Ie(j()),default:j().optional()}),Die=we({type:Ge("string"),title:j().optional(),description:j().optional(),oneOf:Ie(we({const:j(),title:j()})),default:j().optional()}),Lie=we({type:Ge("string"),title:j().optional(),description:j().optional(),enum:Ie(j()),enumNames:Ie(j()).optional(),default:j().optional()}),$ie=dn([kie,Die]),jie=we({type:Ge("array"),title:j().optional(),description:j().optional(),minItems:ut().optional(),maxItems:ut().optional(),items:we({type:Ge("string"),enum:Ie(j())}),default:Ie(j()).optional()}),Uie=we({type:Ge("array"),title:j().optional(),description:j().optional(),minItems:ut().optional(),maxItems:ut().optional(),items:we({anyOf:Ie(we({const:j(),title:j()}))}),default:Ie(j()).optional()}),zie=dn([jie,Uie]),Fie=dn([Lie,$ie,zie]),Bie=dn([Fie,Mie,Pie,Nie]),Vie=wf.extend({mode:Ge("form").optional(),message:j(),requestedSchema:we({type:Ge("object"),properties:Mt(j(),Bie),required:Ie(j()).optional()})}),Hie=wf.extend({mode:Ge("url"),message:j(),elicitationId:j(),url:j().url()}),qie=dn([Vie,Hie]),Gie=yr.extend({method:Ge("elicitation/create"),params:qie}),Kie=Bo.extend({elicitationId:j()}),Zie=Vo.extend({method:Ge("notifications/elicitation/complete"),params:Kie}),Yie=br.extend({action:pn(["accept","decline","cancel"]),content:Lw(e=>e===null?void 0:e,Mt(j(),dn([j(),ut(),Nt(),Ie(j())])).optional())}),Wie=we({type:Ge("ref/resource"),uri:j()}),Qie=we({type:Ge("ref/prompt"),name:j()}),Xie=bo.extend({ref:dn([Qie,Wie]),argument:we({name:j(),value:j()}),context:we({arguments:Mt(j(),j()).optional()}).optional()}),Jie=yr.extend({method:Ge("completion/complete"),params:Xie}),ese=br.extend({completion:vr({values:Ie(j()).max(100),total:bn(ut().int()),hasMore:bn(Nt())})}),tse=we({uri:j().startsWith("file://"),name:j().optional(),_meta:Mt(j(),Xt()).optional()}),nse=yr.extend({method:Ge("roots/list"),params:bo.optional()}),rse=br.extend({roots:Ie(tse)}),ose=Vo.extend({method:Ge("notifications/roots/list_changed"),params:Bo.optional()});dn([M6,Aoe,Jie,_ie,rie,eie,joe,zoe,Voe,Koe,Yoe,mie,fie,D6,$6,j6,z6]);dn([C6,P6,I6,ose,k6]);dn([T6,Aie,Iie,Yie,rse,L6,U6,N6]);dn([M6,Cie,Gie,nse,D6,$6,j6,z6]);dn([C6,P6,bie,Qoe,qoe,gie,cie,k6,Zie]);dn([T6,Moe,ese,lie,tie,Uoe,Foe,Hoe,q6,hie,L6,U6,N6]);class oE extends Error{constructor(t,n,r){super(`MCP error ${t}: ${n}`),this.code=t,this.data=r,this.name="McpError"}static fromError(t,n,r){if(t===_g.UrlElicitationRequired&&r){const o=r;if(o.elicitations)return new ise(o.elicitations,n)}return new oE(t,n,r)}}class ise extends oE{constructor(t,n=`URL elicitation${t.length>1?"s":""} required`){super(_g.UrlElicitationRequired,n,{elicitations:t})}get elicitations(){return this.data?.elicitations??[]}}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");var Sp={exports:{}},ib={},Ji={},Ga={},sb={},ab={},lb={},TI;function bg(){return TI||(TI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(E){if(super(),!e.IDENTIFIER.test(E))throw new Error("CodeGen: name must be a valid identifier");this.str=E}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(E){super(),this._items=typeof E=="string"?[E]:E}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const E=this._items[0];return E===""||E==='""'}get str(){var E;return(E=this._str)!==null&&E!==void 0?E:this._str=this._items.reduce((T,R)=>`${T}${R}`,"")}get names(){var E;return(E=this._names)!==null&&E!==void 0?E:this._names=this._items.reduce((T,R)=>(R instanceof n&&(T[R.str]=(T[R.str]||0)+1),T),{})}}e._Code=r,e.nil=new r("");function o(w,...E){const T=[w[0]];let R=0;for(;R<E.length;)c(T,E[R]),T.push(w[++R]);return new r(T)}e._=o;const s=new r("+");function l(w,...E){const T=[v(w[0])];let R=0;for(;R<E.length;)T.push(s),c(T,E[R]),T.push(s,v(w[++R]));return d(T),new r(T)}e.str=l;function c(w,E){E instanceof r?w.push(...E._items):E instanceof n?w.push(E):w.push(h(E))}e.addCodeArg=c;function d(w){let E=1;for(;E<w.length-1;){if(w[E]===s){const T=f(w[E-1],w[E+1]);if(T!==void 0){w.splice(E-1,3,T);continue}w[E++]="+"}E++}}function f(w,E){if(E==='""')return w;if(w==='""')return E;if(typeof w=="string")return E instanceof n||w[w.length-1]!=='"'?void 0:typeof E!="string"?`${w.slice(0,-1)}${E}"`:E[0]==='"'?w.slice(0,-1)+E.slice(1):void 0;if(typeof E=="string"&&E[0]==='"'&&!(w instanceof n))return`"${w}${E.slice(1)}`}function p(w,E){return E.emptyStr()?w:w.emptyStr()?E:l`${w}${E}`}e.strConcat=p;function h(w){return typeof w=="number"||typeof w=="boolean"||w===null?w:v(Array.isArray(w)?w.join(","):w)}function g(w){return new r(v(w))}e.stringify=g;function v(w){return JSON.stringify(w).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=v;function y(w){return typeof w=="string"&&e.IDENTIFIER.test(w)?new r(`.${w}`):o`[${w}]`}e.getProperty=y;function b(w){if(typeof w=="string"&&e.IDENTIFIER.test(w))return new r(`${w}`);throw new Error(`CodeGen: invalid export name: ${w}, use explicit $id name mapping`)}e.getEsmExportName=b;function x(w){return new r(w.toString())}e.regexpCode=x})(lb)),lb}var cb={},CI;function AI(){return CI||(CI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=bg();class n extends Error{constructor(f){super(`CodeGen: "code" for ${f} not defined`),this.value=f.value}}var r;(function(d){d[d.Started=0]="Started",d[d.Completed=1]="Completed"})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:f,parent:p}={}){this._names={},this._prefixes=f,this._parent=p}toName(f){return f instanceof t.Name?f:this.name(f)}name(f){return new t.Name(this._newName(f))}_newName(f){const p=this._names[f]||this._nameGroup(f);return`${f}${p.index++}`}_nameGroup(f){var p,h;if(!((h=(p=this._parent)===null||p===void 0?void 0:p._prefixes)===null||h===void 0)&&h.has(f)||this._prefixes&&!this._prefixes.has(f))throw new Error(`CodeGen: prefix "${f}" is not allowed in this scope`);return this._names[f]={prefix:f,index:0}}}e.Scope=o;class s extends t.Name{constructor(f,p){super(p),this.prefix=f}setValue(f,{property:p,itemIndex:h}){this.value=f,this.scopePath=(0,t._)`.${new t.Name(p)}[${h}]`}}e.ValueScopeName=s;const l=(0,t._)`\n`;class c extends o{constructor(f){super(f),this._values={},this._scope=f.scope,this.opts={...f,_n:f.lines?l:t.nil}}get(){return this._scope}name(f){return new s(f,this._newName(f))}value(f,p){var h;if(p.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const g=this.toName(f),{prefix:v}=g,y=(h=p.key)!==null&&h!==void 0?h:p.ref;let b=this._values[v];if(b){const E=b.get(y);if(E)return E}else b=this._values[v]=new Map;b.set(y,g);const x=this._scope[v]||(this._scope[v]=[]),w=x.length;return x[w]=p.ref,g.setValue(p,{property:v,itemIndex:w}),g}getValue(f,p){const h=this._values[f];if(h)return h.get(p)}scopeRefs(f,p=this._values){return this._reduceValues(p,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,t._)`${f}${h.scopePath}`})}scopeCode(f=this._values,p,h){return this._reduceValues(f,g=>{if(g.value===void 0)throw new Error(`CodeGen: name "${g}" has no value`);return g.value.code},p,h)}_reduceValues(f,p,h={},g){let v=t.nil;for(const y in f){const b=f[y];if(!b)continue;const x=h[y]=h[y]||new Map;b.forEach(w=>{if(x.has(w))return;x.set(w,r.Started);let E=p(w);if(E){const T=this.opts.es5?e.varKinds.var:e.varKinds.const;v=(0,t._)`${v}${T} ${w} = ${E};${this.opts._n}`}else if(E=g?.(w))v=(0,t._)`${v}${E}${this.opts._n}`;else throw new n(w);x.set(w,r.Completed)})}return v}}e.ValueScope=c})(cb)),cb}var II;function gt(){return II||(II=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=bg(),n=AI();var r=bg();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=AI();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(D,F){return this}}class l extends s{constructor(D,F,X){super(),this.varKind=D,this.name=F,this.rhs=X}render({es5:D,_n:F}){const X=D?n.varKinds.var:this.varKind,fe=this.rhs===void 0?"":` = ${this.rhs}`;return`${X} ${this.name}${fe};`+F}optimizeNames(D,F){if(D[this.name.str])return this.rhs&&(this.rhs=K(this.rhs,D,F)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(D,F,X){super(),this.lhs=D,this.rhs=F,this.sideEffects=X}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,F){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=K(this.rhs,D,F),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return z(D,this.rhs)}}class d extends c{constructor(D,F,X,fe){super(D,X,fe),this.op=F}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class f extends s{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class p extends s{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class h extends s{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class g extends s{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,F){return this.code=K(this.code,D,F),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class v extends s{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((F,X)=>F+X.render(D),"")}optimizeNodes(){const{nodes:D}=this;let F=D.length;for(;F--;){const X=D[F].optimizeNodes();Array.isArray(X)?D.splice(F,1,...X):X?D[F]=X:D.splice(F,1)}return D.length>0?this:void 0}optimizeNames(D,F){const{nodes:X}=this;let fe=X.length;for(;fe--;){const pe=X[fe];pe.optimizeNames(D,F)||(oe(D,pe.names),X.splice(fe,1))}return X.length>0?this:void 0}get names(){return this.nodes.reduce((D,F)=>B(D,F.names),{})}}class y extends v{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class b extends v{}class x extends y{}x.kind="else";class w extends y{constructor(D,F){super(F),this.condition=D}render(D){let F=`if(${this.condition})`+super.render(D);return this.else&&(F+="else "+this.else.render(D)),F}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let F=this.else;if(F){const X=F.optimizeNodes();F=this.else=Array.isArray(X)?new x(X):X}if(F)return D===!1?F instanceof w?F:F.nodes:this.nodes.length?this:new w(q(D),F instanceof w?[F]:F.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,F){var X;if(this.else=(X=this.else)===null||X===void 0?void 0:X.optimizeNames(D,F),!!(super.optimizeNames(D,F)||this.else))return this.condition=K(this.condition,D,F),this}get names(){const D=super.names;return z(D,this.condition),this.else&&B(D,this.else.names),D}}w.kind="if";class E extends y{}E.kind="for";class T extends E{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,F){if(super.optimizeNames(D,F))return this.iteration=K(this.iteration,D,F),this}get names(){return B(super.names,this.iteration.names)}}class R extends E{constructor(D,F,X,fe){super(),this.varKind=D,this.name=F,this.from=X,this.to=fe}render(D){const F=D.es5?n.varKinds.var:this.varKind,{name:X,from:fe,to:pe}=this;return`for(${F} ${X}=${fe}; ${X}<${pe}; ${X}++)`+super.render(D)}get names(){const D=z(super.names,this.from);return z(D,this.to)}}class O extends E{constructor(D,F,X,fe){super(),this.loop=D,this.varKind=F,this.name=X,this.iterable=fe}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,F){if(super.optimizeNames(D,F))return this.iterable=K(this.iterable,D,F),this}get names(){return B(super.names,this.iterable.names)}}class A extends y{constructor(D,F,X){super(),this.name=D,this.args=F,this.async=X}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}A.kind="func";class I extends v{render(D){return"return "+super.render(D)}}I.kind="return";class P extends y{render(D){let F="try"+super.render(D);return this.catch&&(F+=this.catch.render(D)),this.finally&&(F+=this.finally.render(D)),F}optimizeNodes(){var D,F;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(F=this.finally)===null||F===void 0||F.optimizeNodes(),this}optimizeNames(D,F){var X,fe;return super.optimizeNames(D,F),(X=this.catch)===null||X===void 0||X.optimizeNames(D,F),(fe=this.finally)===null||fe===void 0||fe.optimizeNames(D,F),this}get names(){const D=super.names;return this.catch&&B(D,this.catch.names),this.finally&&B(D,this.finally.names),D}}class L extends y{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}L.kind="catch";class H extends y{render(D){return"finally"+super.render(D)}}H.kind="finally";class ${constructor(D,F={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...F,_n:F.lines?`
|
|
156
|
+
`),h=d;p.length>h;h++){var g=p[h];if(1024>=g.length){var v=NA.test(g)?g.replace(NA,"$1"):g;if(!v.match(/\S*Error: /)){for(var y of s){var b=y(v,r);if(b){f.push(b);break}}if(f.length>=50)break}}}return(function(x){if(!x.length)return[];var w=Array.from(x);return w.reverse(),w.slice(0,50).map((E=>{return Ne({},E,{filename:E.filename||(T=w,T[T.length-1]||{}).filename,function:E.function||Zc});var T}))})(f)}})("web:javascript",Ene,One)),this._instance=e,this.fo=(t=(n=this._instance.persistence)==null?void 0:n.get_property(R1))!==null&&t!==void 0?t:[],this.mo=tg(this.yo()),this.bo=new jne(this.mo)}onConfigChange(){this.mo=tg(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,n,r;if("errorTracking"in e){var o=(t=(n=e.errorTracking)==null?void 0:n.suppressionRules)!==null&&t!==void 0?t:[],s=(r=e.errorTracking)==null?void 0:r.captureExtensionExceptions;this.fo=o,this._instance.persistence&&this._instance.persistence.register({[R1]:this.fo,[O1]:s})}}get _o(){var e,t=!!this._instance.get_property(O1),n=this._instance.config.error_tracking.captureExtensionExceptions;return(e=n??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!yn(e)||e.trim().length===0)return void Xi.warn("Ignoring exception step because message must be a non-empty string");var n=this.wo(t),{sanitizedProperties:r,droppedKeys:o}=(function(s){if(!s)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(s).reduce(((c,d)=>$ne.has(d)?(l.push(d),c):(c[d]=s[d],c)),{}),droppedKeys:l}})(n);o.length>0&&Xi.warn("Ignoring reserved exception step fields",{droppedKeys:o}),this.bo.add(Ne({[Jm]:e,[eg]:new Date().toISOString()},r))}catch(s){Xi.error("Failed to add exception step. Ignoring breadcrumb.",s)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void Xi.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void Xi.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void Xi.info("Skipping exception capture because it was thrown by the PostHog SDK")}var n=this.mo.enabled&&Et(e.$exception_steps)?this.To(e):e;try{var r=this._instance.capture("$exception",n,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return r&&this.bo.clear(),r}catch(o){return Xi.error("Failed to capture exception event. Dropping this exception.",o),void this.bo.clear()}}catch(o){return void Xi.error("Failed to process exception event. Ignoring this exception.",o)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Ne({},e,{$exception_steps:t})}catch(n){return Xi.error("Failed to read buffered exception steps. Capturing exception without steps.",n),e}}So(e){this.mo.enabled&&this.bo.add({[Jm]:e,[eg]:new Date().toISOString()})}wo(e){return In(e)?Ne({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((n,r)=>{var{type:o,value:s}=r;return yn(o)&&o.length>0&&n.$exception_types.push(o),yn(s)&&s.length>0&&n.$exception_values.push(s),n}),{$exception_types:[],$exception_values:[]});return this.fo.some((n=>{var r=n.values.map((o=>{var s,l=t6[o.operator],c=Pt(o.value)?o.value:[o.value],d=(s=t[o.key])!==null&&s!==void 0?s:[];return c.length>0&&l(c,d)}));return n.type==="OR"?r.some(Boolean):r.every(Boolean)}))}xo(e){return e.flatMap((t=>{var n,r;return(n=(r=t.stacktrace)==null?void 0:r.frames)!==null&&n!==void 0?n:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,n,r,o,s=(t=(n=e[0].stacktrace)==null?void 0:n.frames)!==null&&t!==void 0?t:[],l=s[s.length-1];return(r=l==null||(o=l.filename)==null?void 0:o.includes("posthog.com/static"))!==null&&r!==void 0&&r}return!1}Io(e){return!Et(e)&&Pt(e)}}},Zre=Ne({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[C1]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(C1)||this.ur((()=>this.Ro()))}ur(e){var t,n;(t=We.__PosthogExtensions__)!=null&&t.generateProductTours?e():(n=We.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"product-tours",(r=>{r?vI.error("Could not load product tours script",r):e()}))}Ro(){var e;!this.Ao&&(e=We.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=We.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Pt(this.Eo)||t){var n=this.ni;if(n){var r=n.props[bm];if(Pt(r)&&!t)return this.Eo=r,void e(r,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:o=>{var s=o.statusCode;if(s!==200||!o.json){var l="Product Tours API could not be loaded, status: "+s;return vI.error(l),void e([],{isLoaded:!1,error:l})}var c=Pt(o.json.product_tours)?o.json.product_tours:[];this.Eo=c,n&&n.register({[bm]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Et(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(bm)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},nv),Yre={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var n=this.globalsForEvent(t);this.No.push(n),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=We._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,n,r,o,s,l,c;if(!e)throw new Error("Event payload is required");var d={},f=this._instance.get_property("$groups")||[],p=this._instance.get_property("$stored_group_properties")||{};for(var[h,g]of Object.entries(p))d[h]={id:f[h],type:h,properties:g};var{$set_once:v,$set:y}=e;return{event:Ne({},nD(e,Ure),{properties:Ne({},e.properties,y?{$set:Ne({},(t=(n=e.properties)==null?void 0:n.$set)!==null&&t!==void 0?t:{},y)}:{},v?{$set_once:Ne({},(r=(o=e.properties)==null?void 0:o.$set_once)!==null&&r!==void 0?r:{},v)}:{}),elements_chain:(s=(l=e.properties)==null?void 0:l.$elements_chain)!==null&&s!==void 0?s:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(e){var t=this.apps[e.id],n=()=>{var l;!t.errored&&this.No.length&&(Zs.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((l=this.Fo)==null||l.call(this))},r=!1,o=l=>{t.errored=!l,t.loaded=!0,Zs.info("Site app with id "+e.id+" "+(l?"loaded":"errored")),r&&n()};try{var{processEvent:s}=e.init({posthog:this._instance,callback(l){o(l)}});s&&(t.processEvent=s),r=!0}catch(l){Zs.error(_I+e.id,l),o(!1)}if(r&&t.loaded)try{n()}catch(l){Zs.error("Error while processing buffered events PostHog app with config id "+e.id,l),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of e)this.setupSiteApp(n)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var n of Object.values(this.apps))try{n.processEvent==null||n.processEvent(t)}catch(r){Zs.error("Error while processing event "+e.event+" for site app "+n.id,r)}}}onRemoteConfig(e){var t,n,r,o=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Zs.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this.Fo)==null||n.call(this),(r=e.siteApps)!=null&&r.length)if(this.isEnabled){var s=function(d){var f;We["__$$ph_site_app_"+d]=o._instance,(f=We.__PosthogExtensions__)==null||f.loadSiteApp==null||f.loadSiteApp(o._instance,c,(p=>{if(p)return Zs.error(_I+d,p)}))};for(var{id:l,url:c}of e.siteApps)s(l)}else Zs.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Wre={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,n,r=this.Bo()||[];Ue(this.Lo)&&((t=We.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(r,this._instance.get_distinct_id(),this._instance.sessionManager)),Ue(this.Do)&&((n=We.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null||n._patchFetch(r,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,n;(t=We.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(n=We.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"tracing-headers",(r=>{if(r)return $re.error("failed to load script",r);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},Qre=Ne({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(Et(t))return Qt.warn("Flags not loaded yet. Not loading surveys.");var n=Pt(t);this.jo=n?t.length>0:t,Qt.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(n!=null&&n.startsWith(Z1)||n!=null&&n.startsWith("inProgressSurvey_"))&&e.push(n)}e.forEach((r=>localStorage.removeItem(r)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)Qt.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)Qt.info(yI);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())Qt.info("Not loading surveys in cookieless mode without consent.");else{var e=We?.__PosthogExtensions__;if(e){if(!Ue(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var n=e.generateSurveys;if(n)return void this.Vo(n,t);var r=e.loadExternalDependency;if(!r)return void this.Ho(jS);r(this._instance,"surveys",(o=>{o||!e.generateSurveys?this.Ho("Could not load surveys script",o):this.Vo(e.generateSurveys,t)}))}catch(o){throw this.Ho("Error initializing surveys",o),o}finally{this.$o=!1}}}else Qt.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Bre(this._instance),Qt.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){Qt.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return Qt.info(yI),e([]);var n,r=this._instance.get_property(N1);if(r&&!t)return e(r,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((o=>{var{surveys:s,context:l}=o;return e(s,l)})):(typeof Promise<"u"&&(this.Zo=new Promise((o=>{n=o}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:o=>{var s;this.Zo=null;var l=o.statusCode;if(l!==200||!o.json){var c="Surveys API could not be loaded, status: "+l;Qt.error(c);var d={isLoaded:!1,error:c};return e([],d),void(n==null||n({surveys:[],context:d}))}var f,p=o.json.surveys||[],h=p.filter((v=>(function(y){return!(!y.start_date||y.end_date)})(v)&&((function(y){var b;return!((b=y.conditions)==null||(b=b.events)==null||(b=b.values)==null||!b.length)})(v)||(function(y){var b;return!((b=y.conditions)==null||(b=b.actions)==null||(b=b.values)==null||!b.length)})(v))));h.length>0&&((f=this._surveyEventReceiver)==null||f.register(h)),(s=this._instance.persistence)==null||s.register({[N1]:p});var g={isLoaded:!0};e(p,g),n?.({surveys:p,context:g})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(n){Qt.error("Error in survey callback",n)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Et(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Qt.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((n=>{var r;t=(r=n.find((o=>o.id===e)))!==null&&r!==void 0?r:null})),t}Yo(e){if(Et(this._surveyManager))return{eligible:!1,reason:rb};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Et(this._surveyManager))return Qt.warn("init was not called"),{visible:!1,disabledReason:rb};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Et(this._surveyManager)?(Qt.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:rb})):new Promise((n=>{this.getSurveys((r=>{var o,s=(o=r.find((c=>c.id===e)))!==null&&o!==void 0?o:null;if(s){var l=this.Yo(s);n({visible:l.eligible,disabledReason:l.reason})}else n({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,n){var r;if(Et(this._surveyManager))Qt.warn("init was not called");else{var o=typeof e=="string"?this.Uo(e):e;if(o!=null&&o.id)if(Sre.includes(o.type)){var s=Le?.querySelector(t);if(s)return(r=o.appearance)!=null&&r.surveyPopupDelaySeconds?(Qt.info("Rendering survey "+o.id+" with delay of "+o.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;Qt.info("Rendering survey "+o.id+" with delay of "+((l=o.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(o,s,n),Qt.info("Survey "+o.id+" rendered")}),1e3*o.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(o,s,n);Qt.warn("Survey element not found")}else Qt.warn("Surveys of type "+o.type+" cannot be rendered in the app");else Qt.warn("Survey not found")}}displaySurvey(e,t){var n;if(Et(this._surveyManager))Qt.warn("init was not called");else{var r=this.Uo(e);if(r){var o=r;if((n=r.appearance)!=null&&n.surveyPopupDelaySeconds&&t.ignoreDelay&&(o=Ne({},r,{appearance:Ne({},r.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==B1.Popover&&t.initialResponses&&Qt.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var s=this.canRenderSurvey(r);if(!s.visible)return void Qt.warn("Survey is not eligible to be displayed: ",s.disabledReason)}t.displayType!==B1.Inline?this._surveyManager.handlePopoverSurvey(o,t):this.renderSurvey(o,t.selector,t.properties)}else Qt.warn("Survey not found")}}cancelPendingSurvey(e){Et(this._surveyManager)?Qt.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},nv),Xre={toolbar:class{constructor(e){this.instance=e}Go(e){We.ph_toolbar_state=e}Wo(){var e;return(e=We.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,n){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),LD(this.instance.config)||!me||!Le)return!1;e=e??me.location,n=n??me.history;try{if(!t){try{me.localStorage.setItem("test","test"),me.localStorage.removeItem("test")}catch{return!1}t=me?.localStorage}var r,o=Vre||fg(e.hash,"__posthog")||fg(e.hash,"state"),s=o?DA((()=>JSON.parse(atob(decodeURIComponent(o)))))||DA((()=>JSON.parse(decodeURIComponent(o)))):null;return s&&s.action==="ph_authorize"?((r=s).source="url",r&&Object.keys(r).length>0&&(s.desiredHash?e.hash=s.desiredHash:n?n.replaceState(n.state,"",e.pathname+e.search):e.hash="")):((r=JSON.parse(t.getItem(bI)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch{return!1}}Xo(e){var t=We.ph_load_toolbar||We.ph_load_editor;!Et(t)&&rs(t)?t(e,this.instance):wI.warn("No toolbar load function found")}loadToolbar(e){var t=!(Le==null||!Le.getElementById(PD));if(!me||t)return!1;var n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,r=Ne({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(me.localStorage.setItem(bI,JSON.stringify(Ne({},r,{source:void 0}))),this.Wo()===2)this.Xo(r);else if(this.Wo()===0){var o;this.Go(1),(o=We.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this.instance,"toolbar",(s=>{if(s)return wI.error("[Toolbar] Failed to load",s),void this.Go(0);this.Go(2),this.Xo(r)})),Vn(me,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(r)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,n){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(e,t,n)}}},Jre=Ne({experiments:xr},nv),eoe={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Et(t)||(Si(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||LD(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=We?.__PosthogExtensions__;if(e&&!Ue(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var n=e.loadExternalDependency;if(!n)return void this.ra(jS);n(this._instance,"conversations",(r=>{r||!e.initConversations?this.ra("Could not load conversations script",r):this.ta(e.initConversations),this.Qo=!1}))}catch(r){this.ra("Error initializing conversations",r),this.Qo=!1}}else No.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),No.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else No.error("Cannot complete initialization: remote config is null")}ra(e,t){No.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():No.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!ps(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,n){var r=this;return Do((function*(){return r._conversationsManager?r._conversationsManager.sendMessage(e,t,n):(No.warn(qa),null)}))()}getMessages(e,t){var n=this;return Do((function*(){return n._conversationsManager?n._conversationsManager.getMessages(e,t):(No.warn(qa),null)}))()}markAsRead(e){var t=this;return Do((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(No.warn(qa),null)}))()}getTickets(e){var t=this;return Do((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(No.warn(qa),null)}))()}requestRestoreLink(e){var t=this;return Do((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(No.warn(qa),null)}))()}restoreFromToken(e){var t=this;return Do((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(No.warn(qa),null)}))()}restoreFromUrlToken(){var e=this;return Do((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(No.warn(qa),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},toe={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=mn("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,n=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Et(n)&&n&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=We?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(n=>{var r;n||(r=e.logs)==null||!r.initializeLogs?this.Gt.error("Could not load logs script",n):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(jS)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,n,r,o,s,l;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(n=this._instance.config.logs)==null?void 0:n.flushIntervalMs)!==null&&t!==void 0?t:3e3,d=(r=(o=this._instance.config.logs)==null?void 0:o.maxLogsPerInterval)!==null&&r!==void 0?r:1e3,f=Date.now();if(c>f-this.aa||(this.aa=f,this.oa=0,this.la=!1),d>this.oa){this.oa++;var p=(function(h,g){var v=h.level||"info",{text:y,number:b}=SD[v]||vne,x=String(Date.now())+"000000",w={};g.distinctId&&(w.posthogDistinctId=g.distinctId),g.sessionId&&(w.sessionId=g.sessionId),g.currentUrl&&(w["url.full"]=g.currentUrl),g.screenName&&(w["screen.name"]=g.screenName),g.appState&&(w["app.state"]=g.appState),g.activeFeatureFlags&&g.activeFeatureFlags.length>0&&(w.feature_flags=g.activeFeatureFlags);var E=Ne({},w,h.attributes||{}),T={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:b,severityText:y,body:{stringValue:h.body},attributes:PA(E)};return h.trace_id&&(T.traceId=h.trace_id),h.span_id&&(T.spanId=h.span_id),Ue(h.trace_flags)||(T.flags=h.trace_flags),T})(e,this.ua());this.sa.push({record:p}),((s=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&s!==void 0?s:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var n=this._instance.config.logs,r=Ne({"service.name":n?.serviceName||"unknown_service"},n?.environment&&{"deployment.environment":n.environment},n?.serviceVersion&&{"service.version":n.serviceVersion},n?.resourceAttributes),o=(function(l,c,d,f){return{resourceLogs:[{resource:{attributes:PA(c)},scopeLogs:[{scope:{name:d,version:f},logRecords:l}]}]}})(t.map((l=>l.record)),r,Lr.LIB_NAME,Lr.LIB_VERSION),s=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:s,data:o,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:n}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=n}if(We!=null&&(e=We.location)!=null&&e.href&&(t.currentUrl=We.location.href),this._instance.featureFlags){var r=this._instance.featureFlags.getFlags();r&&r.length>0&&(t.activeFeatureFlags=r)}return t}}},noe=Ne({},nv,qre,Gre,Kre,Zre,Yre,Qre,Wre,Xre,Jre,eoe,toe);Lo.__defaultExtensionClasses=Ne({},noe);var RI,ru=(RI=jd[Sc]=new Lo,(function(){function e(){e.done||(e.done=!0,o6=!1,cn(jd,(function(t){t._dom_loaded()})))}Le!=null&&Le.addEventListener?Le.readyState==="complete"?e():Vn(Le,"DOMContentLoaded",e,{capture:!1}):me&&$e.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),RI);const vg="mesh:rq-cache",h6=1440*60*1e3,roe=1e3,ooe=new Set(["publicConfig"]);let p6=!1,m6=!1;function ioe(e){const t=e[0];return typeof t=="string"&&ooe.has(t)}function soe(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(vg);if(!t)return;const n=JSON.parse(t),r=!n.timestamp||Date.now()-n.timestamp>h6;if(n.buster!=="2.380.1"||r||!n.state){window.localStorage.removeItem(vg);return}n8(e,n.state),p6=!0}catch{loe()}}function aoe(e){if(typeof window>"u")return()=>{};let t=null;const n=()=>{t=null;try{const r=t8(e,{shouldDehydrateQuery:o=>o.state.status==="success"&&ioe(o.queryKey)});window.localStorage.setItem(vg,JSON.stringify({buster:"2.380.1",timestamp:Date.now(),state:r}))}catch{}};return e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(n,roe))})}const g6="studio:org-cache:";function v6(e){return`${g6}${e}`}function oue(e,t){if(typeof window>"u")return null;try{const n=window.localStorage.getItem(v6(e));if(!n)return null;const r=JSON.parse(n)[t];return!r||Date.now()-r.updatedAt>h6?null:(m6=!0,r)}catch{return null}}function iue(e,t,n){if(!(typeof window>"u"))try{const r=v6(e),o=window.localStorage.getItem(r),s=o?JSON.parse(o):{};s[t]={data:n,updatedAt:Date.now()},window.localStorage.setItem(r,JSON.stringify(s))}catch{}}function loe(){if(!(typeof window>"u"))try{window.localStorage.removeItem(vg);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(g6)&&window.localStorage.removeItem(t)}}catch{}}function coe(){return p6}function uoe(){return m6}let ha=!1,J1=null,OI=!1;function doe(e,t){ha||typeof window>"u"||(ru.init(e,{api_host:t,capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture"},person_profiles:"identified_only"}),ha=!0)}function foe(e,t){ha&&ru.identify(e,t)}function hoe(){ha&&(ru.reset(),J1=null)}function poe(e,t){ha&&ru.capture(e,t)}function sue(){if(!ha||OI||typeof performance>"u")return;OI=!0;const e=performance.getEntriesByType("navigation")[0],t=n=>{const r=performance.getEntriesByName(n,"measure")[0];return r?Math.round(r.duration):void 0};poe("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("mesh:config-fetch"),active_org_fetch_ms:t("mesh:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:coe(),org_cache_restored:uoe()})}function aue(e,t){ha&&e!==J1&&(ru.group("organization",e,t),J1=e)}function _6(e,t){if(ha)try{ru.captureException(e,t)}catch{}}let wp=null;function moe({children:e}){const t=vP(),{data:n}=jw.useSession();if(t.posthog){doe(t.posthog.key,t.posthog.host);const r=n?.user?.id??null;r&&r!==wp?(foe(r,{email:n?.user?.email,name:n?.user?.name}),wp=r):!r&&wp&&(hoe(),wp=null)}return C.jsx(C.Fragment,{children:e})}const qS=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));qS.displayName="AlertTriangle";const y6=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M11 4.5h7.3c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874c.218.428.218.988.218 2.108V9c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C19.898 12 19.432 12 18.5 12M13 19.5H5.7c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C2.5 17.98 2.5 17.42 2.5 16.3V15c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C4.102 12 4.568 12 5.5 12m4.8 2.5h3.4c.28 0 .42 0 .527-.055a.5.5 0 0 0 .218-.218c.055-.107.055-.247.055-.527v-3.4c0-.28 0-.42-.055-.527a.5.5 0 0 0-.218-.218C14.12 9.5 13.98 9.5 13.7 9.5h-3.4c-.28 0-.42 0-.527.055a.5.5 0 0 0-.218.218c-.055.107-.055.247-.055.527v3.4c0 .28 0 .42.055.527a.5.5 0 0 0 .218.218c.107.055.247.055.527.055Zm7.5 7.5h3.4c.28 0 .42 0 .527-.055a.5.5 0 0 0 .218-.218C22 21.62 22 21.48 22 21.2v-3.4c0-.28 0-.42-.055-.527a.5.5 0 0 0-.218-.218C21.62 17 21.48 17 21.2 17h-3.4c-.28 0-.42 0-.527.055a.5.5 0 0 0-.218.218C17 17.38 17 17.52 17 17.8v3.4c0 .28 0 .42.055.527a.5.5 0 0 0 .218.218c.107.055.247.055.527.055ZM2.8 7h3.4c.28 0 .42 0 .527-.054a.5.5 0 0 0 .218-.219C7 6.62 7 6.48 7 6.2V2.8c0-.28 0-.42-.054-.527a.5.5 0 0 0-.219-.219C6.62 2 6.48 2 6.2 2H2.8c-.28 0-.42 0-.527.054a.5.5 0 0 0-.219.219C2 2.38 2 2.52 2 2.8v3.4c0 .28 0 .42.054.527a.5.5 0 0 0 .219.218C2.38 7 2.52 7 2.8 7Z"}));y6.displayName="Dataflow03";const b6=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));b6.displayName="Loading01";const w6=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));w6.displayName="RefreshCw01";function GS(){const e=Ri.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=C.jsx("div",{className:"flex items-center justify-center min-h-screen",children:C.jsx(b6,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}const goe={from({org:e,project:t}){return`${e}/${t}`},parse(e){e.startsWith("/")&&(e=e.slice(1));const[t,n]=e.split("/");if(!t||!n)throw new Error("Invalid locator");return{org:t,project:n}}},S6=M.createContext(void 0),voe=()=>{const e=M.useContext(S6);if(!e)throw new Error("useProjectContext must be used within a ProjectContextProvider");return e},lue=()=>voe().org,cue=e=>{const t=Ri.c(10),{children:n,org:r,project:o}=e;let s;t[0]!==r.id||t[1]!==o.id?(s=goe.from({org:r.id,project:o.id}),t[0]=r.id,t[1]=o.id,t[2]=s):s=t[2];const l=s;let c;t[3]!==l||t[4]!==r||t[5]!==o?(c={org:r,project:o,locator:l},t[3]=l,t[4]=r,t[5]=o,t[6]=c):c=t[6];const d=c;let f;return t[7]!==n||t[8]!==d?(f=C.jsx(S6.Provider,{value:d,children:n}),t[7]=n,t[8]=d,t[9]=f):f=t[9],f},KS="2025-11-25",uue=[KS,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],_oe="io.modelcontextprotocol/related-task",rv="2.0",Xn=wV(e=>e!==null&&(typeof e=="object"||typeof e=="function")),E6=dn([j(),ut().int()]),x6=j();vr({ttl:ut().optional(),pollInterval:ut().optional()});const yoe=we({ttl:ut().optional()}),boe=we({taskId:j()}),ZS=vr({progressToken:E6.optional(),[_oe]:boe.optional()}),bo=we({_meta:ZS.optional()}),wf=bo.extend({task:yoe.optional()}),due=e=>wf.safeParse(e).success,yr=we({method:j(),params:bo.loose().optional()}),Bo=we({_meta:ZS.optional()}),Vo=we({method:j(),params:Bo.loose().optional()}),br=vr({_meta:ZS.optional()}),ov=dn([j(),ut().int()]),R6=we({jsonrpc:Ge(rv),id:ov,...yr.shape}).strict(),fue=e=>R6.safeParse(e).success,O6=we({jsonrpc:Ge(rv),...Vo.shape}).strict(),hue=e=>O6.safeParse(e).success,YS=we({jsonrpc:Ge(rv),id:ov,result:br}).strict(),pue=e=>YS.safeParse(e).success;var _g;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(_g||(_g={}));const WS=we({jsonrpc:Ge(rv),id:ov.optional(),error:we({code:ut().int(),message:j(),data:Xt().optional()})}).strict(),mue=e=>WS.safeParse(e).success,gue=dn([R6,O6,YS,WS]);dn([YS,WS]);const T6=br.strict(),woe=Bo.extend({requestId:ov.optional(),reason:j().optional()}),C6=Vo.extend({method:Ge("notifications/cancelled"),params:woe}),Soe=we({src:j(),mimeType:j().optional(),sizes:Ie(j()).optional(),theme:pn(["light","dark"]).optional()}),Sf=we({icons:Ie(Soe).optional()}),Qc=we({name:j(),title:j().optional()}),A6=Qc.extend({...Qc.shape,...Sf.shape,version:j(),websiteUrl:j().optional(),description:j().optional()}),Eoe=kw(we({applyDefaults:Nt().optional()}),Mt(j(),Xt())),xoe=Lw(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,kw(we({form:Eoe.optional(),url:Xn.optional()}),Mt(j(),Xt()).optional())),Roe=vr({list:Xn.optional(),cancel:Xn.optional(),requests:vr({sampling:vr({createMessage:Xn.optional()}).optional(),elicitation:vr({create:Xn.optional()}).optional()}).optional()}),Ooe=vr({list:Xn.optional(),cancel:Xn.optional(),requests:vr({tools:vr({call:Xn.optional()}).optional()}).optional()}),Toe=we({experimental:Mt(j(),Xn).optional(),sampling:we({context:Xn.optional(),tools:Xn.optional()}).optional(),elicitation:xoe.optional(),roots:we({listChanged:Nt().optional()}).optional(),tasks:Roe.optional(),extensions:Mt(j(),Xn).optional()}),Coe=bo.extend({protocolVersion:j(),capabilities:Toe,clientInfo:A6}),Aoe=yr.extend({method:Ge("initialize"),params:Coe}),Ioe=we({experimental:Mt(j(),Xn).optional(),logging:Xn.optional(),completions:Xn.optional(),prompts:we({listChanged:Nt().optional()}).optional(),resources:we({subscribe:Nt().optional(),listChanged:Nt().optional()}).optional(),tools:we({listChanged:Nt().optional()}).optional(),tasks:Ooe.optional(),extensions:Mt(j(),Xn).optional()}),Moe=br.extend({protocolVersion:j(),capabilities:Ioe,serverInfo:A6,instructions:j().optional()}),I6=Vo.extend({method:Ge("notifications/initialized"),params:Bo.optional()}),vue=e=>I6.safeParse(e).success,M6=yr.extend({method:Ge("ping"),params:bo.optional()}),Poe=we({progress:ut(),total:bn(ut()),message:bn(j())}),Noe=we({...Bo.shape,...Poe.shape,progressToken:E6}),P6=Vo.extend({method:Ge("notifications/progress"),params:Noe}),koe=bo.extend({cursor:x6.optional()}),Ef=yr.extend({params:koe.optional()}),xf=br.extend({nextCursor:x6.optional()}),Doe=pn(["working","input_required","completed","failed","cancelled"]),Rf=we({taskId:j(),status:Doe,ttl:dn([ut(),ZB()]),createdAt:j(),lastUpdatedAt:j(),pollInterval:bn(ut()),statusMessage:bn(j())}),N6=br.extend({task:Rf}),Loe=Bo.merge(Rf),k6=Vo.extend({method:Ge("notifications/tasks/status"),params:Loe}),D6=yr.extend({method:Ge("tasks/get"),params:bo.extend({taskId:j()})}),L6=br.merge(Rf),$6=yr.extend({method:Ge("tasks/result"),params:bo.extend({taskId:j()})});br.loose();const j6=Ef.extend({method:Ge("tasks/list")}),U6=xf.extend({tasks:Ie(Rf)}),z6=yr.extend({method:Ge("tasks/cancel"),params:bo.extend({taskId:j()})}),_ue=br.merge(Rf),F6=we({uri:j(),mimeType:bn(j()),_meta:Mt(j(),Xt()).optional()}),B6=F6.extend({text:j()}),QS=j().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),V6=F6.extend({blob:QS}),Of=pn(["user","assistant"]),ou=we({audience:Ie(Of).optional(),priority:ut().min(0).max(1).optional(),lastModified:GN({offset:!0}).optional()}),H6=we({...Qc.shape,...Sf.shape,uri:j(),description:bn(j()),mimeType:bn(j()),size:bn(ut()),annotations:ou.optional(),_meta:bn(vr({}))}),$oe=we({...Qc.shape,...Sf.shape,uriTemplate:j(),description:bn(j()),mimeType:bn(j()),annotations:ou.optional(),_meta:bn(vr({}))}),joe=Ef.extend({method:Ge("resources/list")}),Uoe=xf.extend({resources:Ie(H6)}),zoe=Ef.extend({method:Ge("resources/templates/list")}),Foe=xf.extend({resourceTemplates:Ie($oe)}),XS=bo.extend({uri:j()}),Boe=XS,Voe=yr.extend({method:Ge("resources/read"),params:Boe}),Hoe=br.extend({contents:Ie(dn([B6,V6]))}),qoe=Vo.extend({method:Ge("notifications/resources/list_changed"),params:Bo.optional()}),Goe=XS,Koe=yr.extend({method:Ge("resources/subscribe"),params:Goe}),Zoe=XS,Yoe=yr.extend({method:Ge("resources/unsubscribe"),params:Zoe}),Woe=Bo.extend({uri:j()}),Qoe=Vo.extend({method:Ge("notifications/resources/updated"),params:Woe}),Xoe=we({name:j(),description:bn(j()),required:bn(Nt())}),Joe=we({...Qc.shape,...Sf.shape,description:bn(j()),arguments:bn(Ie(Xoe)),_meta:bn(vr({}))}),eie=Ef.extend({method:Ge("prompts/list")}),tie=xf.extend({prompts:Ie(Joe)}),nie=bo.extend({name:j(),arguments:Mt(j(),j()).optional()}),rie=yr.extend({method:Ge("prompts/get"),params:nie}),JS=we({type:Ge("text"),text:j(),annotations:ou.optional(),_meta:Mt(j(),Xt()).optional()}),eE=we({type:Ge("image"),data:QS,mimeType:j(),annotations:ou.optional(),_meta:Mt(j(),Xt()).optional()}),tE=we({type:Ge("audio"),data:QS,mimeType:j(),annotations:ou.optional(),_meta:Mt(j(),Xt()).optional()}),oie=we({type:Ge("tool_use"),name:j(),id:j(),input:Mt(j(),Xt()),_meta:Mt(j(),Xt()).optional()}),iie=we({type:Ge("resource"),resource:dn([B6,V6]),annotations:ou.optional(),_meta:Mt(j(),Xt()).optional()}),sie=H6.extend({type:Ge("resource_link")}),nE=dn([JS,eE,tE,sie,iie]),aie=we({role:Of,content:nE}),lie=br.extend({description:j().optional(),messages:Ie(aie)}),cie=Vo.extend({method:Ge("notifications/prompts/list_changed"),params:Bo.optional()}),uie=we({title:j().optional(),readOnlyHint:Nt().optional(),destructiveHint:Nt().optional(),idempotentHint:Nt().optional(),openWorldHint:Nt().optional()}),die=we({taskSupport:pn(["required","optional","forbidden"]).optional()}),rE=we({...Qc.shape,...Sf.shape,description:j().optional(),inputSchema:we({type:Ge("object"),properties:Mt(j(),Xn).optional(),required:Ie(j()).optional()}).catchall(Xt()),outputSchema:we({type:Ge("object"),properties:Mt(j(),Xn).optional(),required:Ie(j()).optional()}).catchall(Xt()).optional(),annotations:uie.optional(),execution:die.optional(),_meta:Mt(j(),Xt()).optional()}),fie=Ef.extend({method:Ge("tools/list")}),hie=xf.extend({tools:Ie(rE)}),q6=br.extend({content:Ie(nE).default([]),structuredContent:Mt(j(),Xt()).optional(),isError:Nt().optional()});q6.or(br.extend({toolResult:Xt()}));const pie=wf.extend({name:j(),arguments:Mt(j(),Xt()).optional()}),mie=yr.extend({method:Ge("tools/call"),params:pie}),gie=Vo.extend({method:Ge("notifications/tools/list_changed"),params:Bo.optional()}),yue=we({autoRefresh:Nt().default(!0),debounceMs:ut().int().nonnegative().default(300)}),G6=pn(["debug","info","notice","warning","error","critical","alert","emergency"]),vie=bo.extend({level:G6}),_ie=yr.extend({method:Ge("logging/setLevel"),params:vie}),yie=Bo.extend({level:G6,logger:j().optional(),data:Xt()}),bie=Vo.extend({method:Ge("notifications/message"),params:yie}),wie=we({name:j().optional()}),Sie=we({hints:Ie(wie).optional(),costPriority:ut().min(0).max(1).optional(),speedPriority:ut().min(0).max(1).optional(),intelligencePriority:ut().min(0).max(1).optional()}),Eie=we({mode:pn(["auto","required","none"]).optional()}),xie=we({type:Ge("tool_result"),toolUseId:j().describe("The unique identifier for the corresponding tool call."),content:Ie(nE).default([]),structuredContent:we({}).loose().optional(),isError:Nt().optional(),_meta:Mt(j(),Xt()).optional()}),Rie=Nw("type",[JS,eE,tE]),yg=Nw("type",[JS,eE,tE,oie,xie]),Oie=we({role:Of,content:dn([yg,Ie(yg)]),_meta:Mt(j(),Xt()).optional()}),Tie=wf.extend({messages:Ie(Oie),modelPreferences:Sie.optional(),systemPrompt:j().optional(),includeContext:pn(["none","thisServer","allServers"]).optional(),temperature:ut().optional(),maxTokens:ut().int(),stopSequences:Ie(j()).optional(),metadata:Xn.optional(),tools:Ie(rE).optional(),toolChoice:Eie.optional()}),Cie=yr.extend({method:Ge("sampling/createMessage"),params:Tie}),Aie=br.extend({model:j(),stopReason:bn(pn(["endTurn","stopSequence","maxTokens"]).or(j())),role:Of,content:Rie}),Iie=br.extend({model:j(),stopReason:bn(pn(["endTurn","stopSequence","maxTokens","toolUse"]).or(j())),role:Of,content:dn([yg,Ie(yg)])}),Mie=we({type:Ge("boolean"),title:j().optional(),description:j().optional(),default:Nt().optional()}),Pie=we({type:Ge("string"),title:j().optional(),description:j().optional(),minLength:ut().optional(),maxLength:ut().optional(),format:pn(["email","uri","date","date-time"]).optional(),default:j().optional()}),Nie=we({type:pn(["number","integer"]),title:j().optional(),description:j().optional(),minimum:ut().optional(),maximum:ut().optional(),default:ut().optional()}),kie=we({type:Ge("string"),title:j().optional(),description:j().optional(),enum:Ie(j()),default:j().optional()}),Die=we({type:Ge("string"),title:j().optional(),description:j().optional(),oneOf:Ie(we({const:j(),title:j()})),default:j().optional()}),Lie=we({type:Ge("string"),title:j().optional(),description:j().optional(),enum:Ie(j()),enumNames:Ie(j()).optional(),default:j().optional()}),$ie=dn([kie,Die]),jie=we({type:Ge("array"),title:j().optional(),description:j().optional(),minItems:ut().optional(),maxItems:ut().optional(),items:we({type:Ge("string"),enum:Ie(j())}),default:Ie(j()).optional()}),Uie=we({type:Ge("array"),title:j().optional(),description:j().optional(),minItems:ut().optional(),maxItems:ut().optional(),items:we({anyOf:Ie(we({const:j(),title:j()}))}),default:Ie(j()).optional()}),zie=dn([jie,Uie]),Fie=dn([Lie,$ie,zie]),Bie=dn([Fie,Mie,Pie,Nie]),Vie=wf.extend({mode:Ge("form").optional(),message:j(),requestedSchema:we({type:Ge("object"),properties:Mt(j(),Bie),required:Ie(j()).optional()})}),Hie=wf.extend({mode:Ge("url"),message:j(),elicitationId:j(),url:j().url()}),qie=dn([Vie,Hie]),Gie=yr.extend({method:Ge("elicitation/create"),params:qie}),Kie=Bo.extend({elicitationId:j()}),Zie=Vo.extend({method:Ge("notifications/elicitation/complete"),params:Kie}),Yie=br.extend({action:pn(["accept","decline","cancel"]),content:Lw(e=>e===null?void 0:e,Mt(j(),dn([j(),ut(),Nt(),Ie(j())])).optional())}),Wie=we({type:Ge("ref/resource"),uri:j()}),Qie=we({type:Ge("ref/prompt"),name:j()}),Xie=bo.extend({ref:dn([Qie,Wie]),argument:we({name:j(),value:j()}),context:we({arguments:Mt(j(),j()).optional()}).optional()}),Jie=yr.extend({method:Ge("completion/complete"),params:Xie}),ese=br.extend({completion:vr({values:Ie(j()).max(100),total:bn(ut().int()),hasMore:bn(Nt())})}),tse=we({uri:j().startsWith("file://"),name:j().optional(),_meta:Mt(j(),Xt()).optional()}),nse=yr.extend({method:Ge("roots/list"),params:bo.optional()}),rse=br.extend({roots:Ie(tse)}),ose=Vo.extend({method:Ge("notifications/roots/list_changed"),params:Bo.optional()});dn([M6,Aoe,Jie,_ie,rie,eie,joe,zoe,Voe,Koe,Yoe,mie,fie,D6,$6,j6,z6]);dn([C6,P6,I6,ose,k6]);dn([T6,Aie,Iie,Yie,rse,L6,U6,N6]);dn([M6,Cie,Gie,nse,D6,$6,j6,z6]);dn([C6,P6,bie,Qoe,qoe,gie,cie,k6,Zie]);dn([T6,Moe,ese,lie,tie,Uoe,Foe,Hoe,q6,hie,L6,U6,N6]);class oE extends Error{constructor(t,n,r){super(`MCP error ${t}: ${n}`),this.code=t,this.data=r,this.name="McpError"}static fromError(t,n,r){if(t===_g.UrlElicitationRequired&&r){const o=r;if(o.elicitations)return new ise(o.elicitations,n)}return new oE(t,n,r)}}class ise extends oE{constructor(t,n=`URL elicitation${t.length>1?"s":""} required`){super(_g.UrlElicitationRequired,n,{elicitations:t})}get elicitations(){return this.data?.elicitations??[]}}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");var Sp={exports:{}},ib={},Ji={},Ga={},sb={},ab={},lb={},TI;function bg(){return TI||(TI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(E){if(super(),!e.IDENTIFIER.test(E))throw new Error("CodeGen: name must be a valid identifier");this.str=E}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(E){super(),this._items=typeof E=="string"?[E]:E}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const E=this._items[0];return E===""||E==='""'}get str(){var E;return(E=this._str)!==null&&E!==void 0?E:this._str=this._items.reduce((T,R)=>`${T}${R}`,"")}get names(){var E;return(E=this._names)!==null&&E!==void 0?E:this._names=this._items.reduce((T,R)=>(R instanceof n&&(T[R.str]=(T[R.str]||0)+1),T),{})}}e._Code=r,e.nil=new r("");function o(w,...E){const T=[w[0]];let R=0;for(;R<E.length;)c(T,E[R]),T.push(w[++R]);return new r(T)}e._=o;const s=new r("+");function l(w,...E){const T=[v(w[0])];let R=0;for(;R<E.length;)T.push(s),c(T,E[R]),T.push(s,v(w[++R]));return d(T),new r(T)}e.str=l;function c(w,E){E instanceof r?w.push(...E._items):E instanceof n?w.push(E):w.push(h(E))}e.addCodeArg=c;function d(w){let E=1;for(;E<w.length-1;){if(w[E]===s){const T=f(w[E-1],w[E+1]);if(T!==void 0){w.splice(E-1,3,T);continue}w[E++]="+"}E++}}function f(w,E){if(E==='""')return w;if(w==='""')return E;if(typeof w=="string")return E instanceof n||w[w.length-1]!=='"'?void 0:typeof E!="string"?`${w.slice(0,-1)}${E}"`:E[0]==='"'?w.slice(0,-1)+E.slice(1):void 0;if(typeof E=="string"&&E[0]==='"'&&!(w instanceof n))return`"${w}${E.slice(1)}`}function p(w,E){return E.emptyStr()?w:w.emptyStr()?E:l`${w}${E}`}e.strConcat=p;function h(w){return typeof w=="number"||typeof w=="boolean"||w===null?w:v(Array.isArray(w)?w.join(","):w)}function g(w){return new r(v(w))}e.stringify=g;function v(w){return JSON.stringify(w).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=v;function y(w){return typeof w=="string"&&e.IDENTIFIER.test(w)?new r(`.${w}`):o`[${w}]`}e.getProperty=y;function b(w){if(typeof w=="string"&&e.IDENTIFIER.test(w))return new r(`${w}`);throw new Error(`CodeGen: invalid export name: ${w}, use explicit $id name mapping`)}e.getEsmExportName=b;function x(w){return new r(w.toString())}e.regexpCode=x})(lb)),lb}var cb={},CI;function AI(){return CI||(CI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=bg();class n extends Error{constructor(f){super(`CodeGen: "code" for ${f} not defined`),this.value=f.value}}var r;(function(d){d[d.Started=0]="Started",d[d.Completed=1]="Completed"})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:f,parent:p}={}){this._names={},this._prefixes=f,this._parent=p}toName(f){return f instanceof t.Name?f:this.name(f)}name(f){return new t.Name(this._newName(f))}_newName(f){const p=this._names[f]||this._nameGroup(f);return`${f}${p.index++}`}_nameGroup(f){var p,h;if(!((h=(p=this._parent)===null||p===void 0?void 0:p._prefixes)===null||h===void 0)&&h.has(f)||this._prefixes&&!this._prefixes.has(f))throw new Error(`CodeGen: prefix "${f}" is not allowed in this scope`);return this._names[f]={prefix:f,index:0}}}e.Scope=o;class s extends t.Name{constructor(f,p){super(p),this.prefix=f}setValue(f,{property:p,itemIndex:h}){this.value=f,this.scopePath=(0,t._)`.${new t.Name(p)}[${h}]`}}e.ValueScopeName=s;const l=(0,t._)`\n`;class c extends o{constructor(f){super(f),this._values={},this._scope=f.scope,this.opts={...f,_n:f.lines?l:t.nil}}get(){return this._scope}name(f){return new s(f,this._newName(f))}value(f,p){var h;if(p.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const g=this.toName(f),{prefix:v}=g,y=(h=p.key)!==null&&h!==void 0?h:p.ref;let b=this._values[v];if(b){const E=b.get(y);if(E)return E}else b=this._values[v]=new Map;b.set(y,g);const x=this._scope[v]||(this._scope[v]=[]),w=x.length;return x[w]=p.ref,g.setValue(p,{property:v,itemIndex:w}),g}getValue(f,p){const h=this._values[f];if(h)return h.get(p)}scopeRefs(f,p=this._values){return this._reduceValues(p,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,t._)`${f}${h.scopePath}`})}scopeCode(f=this._values,p,h){return this._reduceValues(f,g=>{if(g.value===void 0)throw new Error(`CodeGen: name "${g}" has no value`);return g.value.code},p,h)}_reduceValues(f,p,h={},g){let v=t.nil;for(const y in f){const b=f[y];if(!b)continue;const x=h[y]=h[y]||new Map;b.forEach(w=>{if(x.has(w))return;x.set(w,r.Started);let E=p(w);if(E){const T=this.opts.es5?e.varKinds.var:e.varKinds.const;v=(0,t._)`${v}${T} ${w} = ${E};${this.opts._n}`}else if(E=g?.(w))v=(0,t._)`${v}${E}${this.opts._n}`;else throw new n(w);x.set(w,r.Completed)})}return v}}e.ValueScope=c})(cb)),cb}var II;function gt(){return II||(II=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=bg(),n=AI();var r=bg();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=AI();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(D,F){return this}}class l extends s{constructor(D,F,X){super(),this.varKind=D,this.name=F,this.rhs=X}render({es5:D,_n:F}){const X=D?n.varKinds.var:this.varKind,fe=this.rhs===void 0?"":` = ${this.rhs}`;return`${X} ${this.name}${fe};`+F}optimizeNames(D,F){if(D[this.name.str])return this.rhs&&(this.rhs=K(this.rhs,D,F)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(D,F,X){super(),this.lhs=D,this.rhs=F,this.sideEffects=X}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,F){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=K(this.rhs,D,F),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return z(D,this.rhs)}}class d extends c{constructor(D,F,X,fe){super(D,X,fe),this.op=F}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class f extends s{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class p extends s{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class h extends s{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class g extends s{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,F){return this.code=K(this.code,D,F),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class v extends s{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((F,X)=>F+X.render(D),"")}optimizeNodes(){const{nodes:D}=this;let F=D.length;for(;F--;){const X=D[F].optimizeNodes();Array.isArray(X)?D.splice(F,1,...X):X?D[F]=X:D.splice(F,1)}return D.length>0?this:void 0}optimizeNames(D,F){const{nodes:X}=this;let fe=X.length;for(;fe--;){const pe=X[fe];pe.optimizeNames(D,F)||(oe(D,pe.names),X.splice(fe,1))}return X.length>0?this:void 0}get names(){return this.nodes.reduce((D,F)=>B(D,F.names),{})}}class y extends v{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class b extends v{}class x extends y{}x.kind="else";class w extends y{constructor(D,F){super(F),this.condition=D}render(D){let F=`if(${this.condition})`+super.render(D);return this.else&&(F+="else "+this.else.render(D)),F}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let F=this.else;if(F){const X=F.optimizeNodes();F=this.else=Array.isArray(X)?new x(X):X}if(F)return D===!1?F instanceof w?F:F.nodes:this.nodes.length?this:new w(q(D),F instanceof w?[F]:F.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,F){var X;if(this.else=(X=this.else)===null||X===void 0?void 0:X.optimizeNames(D,F),!!(super.optimizeNames(D,F)||this.else))return this.condition=K(this.condition,D,F),this}get names(){const D=super.names;return z(D,this.condition),this.else&&B(D,this.else.names),D}}w.kind="if";class E extends y{}E.kind="for";class T extends E{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,F){if(super.optimizeNames(D,F))return this.iteration=K(this.iteration,D,F),this}get names(){return B(super.names,this.iteration.names)}}class R extends E{constructor(D,F,X,fe){super(),this.varKind=D,this.name=F,this.from=X,this.to=fe}render(D){const F=D.es5?n.varKinds.var:this.varKind,{name:X,from:fe,to:pe}=this;return`for(${F} ${X}=${fe}; ${X}<${pe}; ${X}++)`+super.render(D)}get names(){const D=z(super.names,this.from);return z(D,this.to)}}class O extends E{constructor(D,F,X,fe){super(),this.loop=D,this.varKind=F,this.name=X,this.iterable=fe}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,F){if(super.optimizeNames(D,F))return this.iterable=K(this.iterable,D,F),this}get names(){return B(super.names,this.iterable.names)}}class A extends y{constructor(D,F,X){super(),this.name=D,this.args=F,this.async=X}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}A.kind="func";class I extends v{render(D){return"return "+super.render(D)}}I.kind="return";class P extends y{render(D){let F="try"+super.render(D);return this.catch&&(F+=this.catch.render(D)),this.finally&&(F+=this.finally.render(D)),F}optimizeNodes(){var D,F;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(F=this.finally)===null||F===void 0||F.optimizeNodes(),this}optimizeNames(D,F){var X,fe;return super.optimizeNames(D,F),(X=this.catch)===null||X===void 0||X.optimizeNames(D,F),(fe=this.finally)===null||fe===void 0||fe.optimizeNames(D,F),this}get names(){const D=super.names;return this.catch&&B(D,this.catch.names),this.finally&&B(D,this.finally.names),D}}class L extends y{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}L.kind="catch";class H extends y{render(D){return"finally"+super.render(D)}}H.kind="finally";class ${constructor(D,F={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...F,_n:F.lines?`
|
|
157
157
|
`:""},this._extScope=D,this._scope=new n.Scope({parent:D}),this._nodes=[new b]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,F){const X=this._extScope.value(D,F);return(this._values[X.prefix]||(this._values[X.prefix]=new Set)).add(X),X}getScopeValue(D,F){return this._extScope.getValue(D,F)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,F,X,fe){const pe=this._scope.toName(F);return X!==void 0&&fe&&(this._constants[pe.str]=X),this._leafNode(new l(D,pe,X)),pe}const(D,F,X){return this._def(n.varKinds.const,D,F,X)}let(D,F,X){return this._def(n.varKinds.let,D,F,X)}var(D,F,X){return this._def(n.varKinds.var,D,F,X)}assign(D,F,X){return this._leafNode(new c(D,F,X))}add(D,F){return this._leafNode(new d(D,e.operators.ADD,F))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new g(D)),this}object(...D){const F=["{"];for(const[X,fe]of D)F.length>1&&F.push(","),F.push(X),(X!==fe||this.opts.es5)&&(F.push(":"),(0,t.addCodeArg)(F,fe));return F.push("}"),new t._Code(F)}if(D,F,X){if(this._blockNode(new w(D)),F&&X)this.code(F).else().code(X).endIf();else if(F)this.code(F).endIf();else if(X)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new w(D))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(w,x)}_for(D,F){return this._blockNode(D),F&&this.code(F).endFor(),this}for(D,F){return this._for(new T(D),F)}forRange(D,F,X,fe,pe=this.opts.es5?n.varKinds.var:n.varKinds.let){const xe=this._scope.toName(D);return this._for(new R(pe,xe,F,X),()=>fe(xe))}forOf(D,F,X,fe=n.varKinds.const){const pe=this._scope.toName(D);if(this.opts.es5){const xe=F instanceof t.Name?F:this.var("_arr",F);return this.forRange("_i",0,(0,t._)`${xe}.length`,je=>{this.var(pe,(0,t._)`${xe}[${je}]`),X(pe)})}return this._for(new O("of",fe,pe,F),()=>X(pe))}forIn(D,F,X,fe=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${F})`,X);const pe=this._scope.toName(D);return this._for(new O("in",fe,pe,F),()=>X(pe))}endFor(){return this._endBlockNode(E)}label(D){return this._leafNode(new f(D))}break(D){return this._leafNode(new p(D))}return(D){const F=new I;if(this._blockNode(F),this.code(D),F.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(I)}try(D,F,X){if(!F&&!X)throw new Error('CodeGen: "try" without "catch" and "finally"');const fe=new P;if(this._blockNode(fe),this.code(D),F){const pe=this.name("e");this._currNode=fe.catch=new L(pe),F(pe)}return X&&(this._currNode=fe.finally=new H,this.code(X)),this._endBlockNode(L,H)}throw(D){return this._leafNode(new h(D))}block(D,F){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(F),this}endBlock(D){const F=this._blockStarts.pop();if(F===void 0)throw new Error("CodeGen: not in self-balancing block");const X=this._nodes.length-F;if(X<0||D!==void 0&&X!==D)throw new Error(`CodeGen: wrong number of nodes: ${X} vs ${D} expected`);return this._nodes.length=F,this}func(D,F=t.nil,X,fe){return this._blockNode(new A(D,F,X)),fe&&this.code(fe).endFunc(),this}endFunc(){return this._endBlockNode(A)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,F){const X=this._currNode;if(X instanceof D||F&&X instanceof F)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${F?`${D.kind}/${F.kind}`:D.kind}"`)}_elseNode(D){const F=this._currNode;if(!(F instanceof w))throw new Error('CodeGen: "else" without "if"');return this._currNode=F.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const F=this._nodes;F[F.length-1]=D}}e.CodeGen=$;function B(V,D){for(const F in D)V[F]=(V[F]||0)+(D[F]||0);return V}function z(V,D){return D instanceof t._CodeOrName?B(V,D.names):V}function K(V,D,F){if(V instanceof t.Name)return X(V);if(!fe(V))return V;return new t._Code(V._items.reduce((pe,xe)=>(xe instanceof t.Name&&(xe=X(xe)),xe instanceof t._Code?pe.push(...xe._items):pe.push(xe),pe),[]));function X(pe){const xe=F[pe.str];return xe===void 0||D[pe.str]!==1?pe:(delete D[pe.str],xe)}function fe(pe){return pe instanceof t._Code&&pe._items.some(xe=>xe instanceof t.Name&&D[xe.str]===1&&F[xe.str]!==void 0)}}function oe(V,D){for(const F in D)V[F]=(V[F]||0)-(D[F]||0)}function q(V){return typeof V=="boolean"||typeof V=="number"||V===null?!V:(0,t._)`!${G(V)}`}e.not=q;const W=k(e.operators.AND);function te(...V){return V.reduce(W)}e.and=te;const le=k(e.operators.OR);function Q(...V){return V.reduce(le)}e.or=Q;function k(V){return(D,F)=>D===t.nil?F:F===t.nil?D:(0,t._)`${G(D)} ${V} ${G(F)}`}function G(V){return V instanceof t.Name?V:(0,t._)`(${V})`}})(ab)),ab}var ht={},MI;function kt(){if(MI)return ht;MI=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.checkStrictMode=ht.getErrorPath=ht.Type=ht.useFunc=ht.setEvaluated=ht.evaluatedPropsToName=ht.mergeEvaluated=ht.eachItem=ht.unescapeJsonPointer=ht.escapeJsonPointer=ht.escapeFragment=ht.unescapeFragment=ht.schemaRefOrVal=ht.schemaHasRulesButRef=ht.schemaHasRules=ht.checkUnknownRules=ht.alwaysValidSchema=ht.toHash=void 0;const e=gt(),t=bg();function n(O){const A={};for(const I of O)A[I]=!0;return A}ht.toHash=n;function r(O,A){return typeof A=="boolean"?A:Object.keys(A).length===0?!0:(o(O,A),!s(A,O.self.RULES.all))}ht.alwaysValidSchema=r;function o(O,A=O.schema){const{opts:I,self:P}=O;if(!I.strictSchema||typeof A=="boolean")return;const L=P.RULES.keywords;for(const H in A)L[H]||R(O,`unknown keyword: "${H}"`)}ht.checkUnknownRules=o;function s(O,A){if(typeof O=="boolean")return!O;for(const I in O)if(A[I])return!0;return!1}ht.schemaHasRules=s;function l(O,A){if(typeof O=="boolean")return!O;for(const I in O)if(I!=="$ref"&&A.all[I])return!0;return!1}ht.schemaHasRulesButRef=l;function c({topSchemaRef:O,schemaPath:A},I,P,L){if(!L){if(typeof I=="number"||typeof I=="boolean")return I;if(typeof I=="string")return(0,e._)`${I}`}return(0,e._)`${O}${A}${(0,e.getProperty)(P)}`}ht.schemaRefOrVal=c;function d(O){return h(decodeURIComponent(O))}ht.unescapeFragment=d;function f(O){return encodeURIComponent(p(O))}ht.escapeFragment=f;function p(O){return typeof O=="number"?`${O}`:O.replace(/~/g,"~0").replace(/\//g,"~1")}ht.escapeJsonPointer=p;function h(O){return O.replace(/~1/g,"/").replace(/~0/g,"~")}ht.unescapeJsonPointer=h;function g(O,A){if(Array.isArray(O))for(const I of O)A(I);else A(O)}ht.eachItem=g;function v({mergeNames:O,mergeToName:A,mergeValues:I,resultToName:P}){return(L,H,$,B)=>{const z=$===void 0?H:$ instanceof e.Name?(H instanceof e.Name?O(L,H,$):A(L,H,$),$):H instanceof e.Name?(A(L,$,H),H):I(H,$);return B===e.Name&&!(z instanceof e.Name)?P(L,z):z}}ht.mergeEvaluated={props:v({mergeNames:(O,A,I)=>O.if((0,e._)`${I} !== true && ${A} !== undefined`,()=>{O.if((0,e._)`${A} === true`,()=>O.assign(I,!0),()=>O.assign(I,(0,e._)`${I} || {}`).code((0,e._)`Object.assign(${I}, ${A})`))}),mergeToName:(O,A,I)=>O.if((0,e._)`${I} !== true`,()=>{A===!0?O.assign(I,!0):(O.assign(I,(0,e._)`${I} || {}`),b(O,I,A))}),mergeValues:(O,A)=>O===!0?!0:{...O,...A},resultToName:y}),items:v({mergeNames:(O,A,I)=>O.if((0,e._)`${I} !== true && ${A} !== undefined`,()=>O.assign(I,(0,e._)`${A} === true ? true : ${I} > ${A} ? ${I} : ${A}`)),mergeToName:(O,A,I)=>O.if((0,e._)`${I} !== true`,()=>O.assign(I,A===!0?!0:(0,e._)`${I} > ${A} ? ${I} : ${A}`)),mergeValues:(O,A)=>O===!0?!0:Math.max(O,A),resultToName:(O,A)=>O.var("items",A)})};function y(O,A){if(A===!0)return O.var("props",!0);const I=O.var("props",(0,e._)`{}`);return A!==void 0&&b(O,I,A),I}ht.evaluatedPropsToName=y;function b(O,A,I){Object.keys(I).forEach(P=>O.assign((0,e._)`${A}${(0,e.getProperty)(P)}`,!0))}ht.setEvaluated=b;const x={};function w(O,A){return O.scopeValue("func",{ref:A,code:x[A.code]||(x[A.code]=new t._Code(A.code))})}ht.useFunc=w;var E;(function(O){O[O.Num=0]="Num",O[O.Str=1]="Str"})(E||(ht.Type=E={}));function T(O,A,I){if(O instanceof e.Name){const P=A===E.Num;return I?P?(0,e._)`"[" + ${O} + "]"`:(0,e._)`"['" + ${O} + "']"`:P?(0,e._)`"/" + ${O}`:(0,e._)`"/" + ${O}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return I?(0,e.getProperty)(O).toString():"/"+p(O)}ht.getErrorPath=T;function R(O,A,I=O.opts.strictSchema){if(I){if(A=`strict mode: ${A}`,I===!0)throw new Error(A);O.self.logger.warn(A)}}return ht.checkStrictMode=R,ht}var Ep={},PI;function ba(){if(PI)return Ep;PI=1,Object.defineProperty(Ep,"__esModule",{value:!0});const e=gt(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Ep.default=t,Ep}var NI;function iv(){return NI||(NI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=gt(),n=kt(),r=ba();e.keywordError={message:({keyword:x})=>(0,t.str)`must pass "${x}" keyword validation`},e.keyword$DataError={message:({keyword:x,schemaType:w})=>w?(0,t.str)`"${x}" keyword must be ${w} ($data)`:(0,t.str)`"${x}" keyword is invalid ($data)`};function o(x,w=e.keywordError,E,T){const{it:R}=x,{gen:O,compositeRule:A,allErrors:I}=R,P=h(x,w,E);T??(A||I)?d(O,P):f(R,(0,t._)`[${P}]`)}e.reportError=o;function s(x,w=e.keywordError,E){const{it:T}=x,{gen:R,compositeRule:O,allErrors:A}=T,I=h(x,w,E);d(R,I),O||A||f(T,r.default.vErrors)}e.reportExtraError=s;function l(x,w){x.assign(r.default.errors,w),x.if((0,t._)`${r.default.vErrors} !== null`,()=>x.if(w,()=>x.assign((0,t._)`${r.default.vErrors}.length`,w),()=>x.assign(r.default.vErrors,null)))}e.resetErrorsCount=l;function c({gen:x,keyword:w,schemaValue:E,data:T,errsCount:R,it:O}){if(R===void 0)throw new Error("ajv implementation error");const A=x.name("err");x.forRange("i",R,r.default.errors,I=>{x.const(A,(0,t._)`${r.default.vErrors}[${I}]`),x.if((0,t._)`${A}.instancePath === undefined`,()=>x.assign((0,t._)`${A}.instancePath`,(0,t.strConcat)(r.default.instancePath,O.errorPath))),x.assign((0,t._)`${A}.schemaPath`,(0,t.str)`${O.errSchemaPath}/${w}`),O.opts.verbose&&(x.assign((0,t._)`${A}.schema`,E),x.assign((0,t._)`${A}.data`,T))})}e.extendErrors=c;function d(x,w){const E=x.const("err",w);x.if((0,t._)`${r.default.vErrors} === null`,()=>x.assign(r.default.vErrors,(0,t._)`[${E}]`),(0,t._)`${r.default.vErrors}.push(${E})`),x.code((0,t._)`${r.default.errors}++`)}function f(x,w){const{gen:E,validateName:T,schemaEnv:R}=x;R.$async?E.throw((0,t._)`new ${x.ValidationError}(${w})`):(E.assign((0,t._)`${T}.errors`,w),E.return(!1))}const p={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function h(x,w,E){const{createErrors:T}=x.it;return T===!1?(0,t._)`{}`:g(x,w,E)}function g(x,w,E={}){const{gen:T,it:R}=x,O=[v(R,E),y(x,E)];return b(x,w,O),T.object(...O)}function v({errorPath:x},{instancePath:w}){const E=w?(0,t.str)`${x}${(0,n.getErrorPath)(w,n.Type.Str)}`:x;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,E)]}function y({keyword:x,it:{errSchemaPath:w}},{schemaPath:E,parentSchema:T}){let R=T?w:(0,t.str)`${w}/${x}`;return E&&(R=(0,t.str)`${R}${(0,n.getErrorPath)(E,n.Type.Str)}`),[p.schemaPath,R]}function b(x,{params:w,message:E},T){const{keyword:R,data:O,schemaValue:A,it:I}=x,{opts:P,propertyName:L,topSchemaRef:H,schemaPath:$}=I;T.push([p.keyword,R],[p.params,typeof w=="function"?w(x):w||(0,t._)`{}`]),P.messages&&T.push([p.message,typeof E=="function"?E(x):E]),P.verbose&&T.push([p.schema,A],[p.parentSchema,(0,t._)`${H}${$}`],[r.default.data,O]),L&&T.push([p.propertyName,L])}})(sb)),sb}var kI;function sse(){if(kI)return Ga;kI=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.boolOrEmptySchema=Ga.topBoolOrEmptySchema=void 0;const e=iv(),t=gt(),n=ba(),r={message:"boolean schema is false"};function o(c){const{gen:d,schema:f,validateName:p}=c;f===!1?l(c,!1):typeof f=="object"&&f.$async===!0?d.return(n.default.data):(d.assign((0,t._)`${p}.errors`,null),d.return(!0))}Ga.topBoolOrEmptySchema=o;function s(c,d){const{gen:f,schema:p}=c;p===!1?(f.var(d,!1),l(c)):f.var(d,!0)}Ga.boolOrEmptySchema=s;function l(c,d){const{gen:f,data:p}=c,h={gen:f,keyword:"false schema",data:p,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(h,r,void 0,d)}return Ga}var fr={},Ka={},DI;function K6(){if(DI)return Ka;DI=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.getRules=Ka.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function n(o){return typeof o=="string"&&t.has(o)}Ka.isJSONType=n;function r(){const o={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...o,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},o.number,o.string,o.array,o.object],post:{rules:[]},all:{},keywords:{}}}return Ka.getRules=r,Ka}var es={},LI;function Z6(){if(LI)return es;LI=1,Object.defineProperty(es,"__esModule",{value:!0}),es.shouldUseRule=es.shouldUseGroup=es.schemaHasRulesForType=void 0;function e({schema:r,self:o},s){const l=o.RULES.types[s];return l&&l!==!0&&t(r,l)}es.schemaHasRulesForType=e;function t(r,o){return o.rules.some(s=>n(r,s))}es.shouldUseGroup=t;function n(r,o){var s;return r[o.keyword]!==void 0||((s=o.definition.implements)===null||s===void 0?void 0:s.some(l=>r[l]!==void 0))}return es.shouldUseRule=n,es}var $I;function wg(){if($I)return fr;$I=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.reportTypeError=fr.checkDataTypes=fr.checkDataType=fr.coerceAndCheckDataType=fr.getJSONTypes=fr.getSchemaTypes=fr.DataType=void 0;const e=K6(),t=Z6(),n=iv(),r=gt(),o=kt();var s;(function(E){E[E.Correct=0]="Correct",E[E.Wrong=1]="Wrong"})(s||(fr.DataType=s={}));function l(E){const T=c(E.type);if(T.includes("null")){if(E.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!T.length&&E.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');E.nullable===!0&&T.push("null")}return T}fr.getSchemaTypes=l;function c(E){const T=Array.isArray(E)?E:E?[E]:[];if(T.every(e.isJSONType))return T;throw new Error("type must be JSONType or JSONType[]: "+T.join(","))}fr.getJSONTypes=c;function d(E,T){const{gen:R,data:O,opts:A}=E,I=p(T,A.coerceTypes),P=T.length>0&&!(I.length===0&&T.length===1&&(0,t.schemaHasRulesForType)(E,T[0]));if(P){const L=y(T,O,A.strictNumbers,s.Wrong);R.if(L,()=>{I.length?h(E,T,I):x(E)})}return P}fr.coerceAndCheckDataType=d;const f=new Set(["string","number","integer","boolean","null"]);function p(E,T){return T?E.filter(R=>f.has(R)||T==="array"&&R==="array"):[]}function h(E,T,R){const{gen:O,data:A,opts:I}=E,P=O.let("dataType",(0,r._)`typeof ${A}`),L=O.let("coerced",(0,r._)`undefined`);I.coerceTypes==="array"&&O.if((0,r._)`${P} == 'object' && Array.isArray(${A}) && ${A}.length == 1`,()=>O.assign(A,(0,r._)`${A}[0]`).assign(P,(0,r._)`typeof ${A}`).if(y(T,A,I.strictNumbers),()=>O.assign(L,A))),O.if((0,r._)`${L} !== undefined`);for(const $ of R)(f.has($)||$==="array"&&I.coerceTypes==="array")&&H($);O.else(),x(E),O.endIf(),O.if((0,r._)`${L} !== undefined`,()=>{O.assign(A,L),g(E,L)});function H($){switch($){case"string":O.elseIf((0,r._)`${P} == "number" || ${P} == "boolean"`).assign(L,(0,r._)`"" + ${A}`).elseIf((0,r._)`${A} === null`).assign(L,(0,r._)`""`);return;case"number":O.elseIf((0,r._)`${P} == "boolean" || ${A} === null
|
|
158
158
|
|| (${P} == "string" && ${A} && ${A} == +${A})`).assign(L,(0,r._)`+${A}`);return;case"integer":O.elseIf((0,r._)`${P} === "boolean" || ${A} === null
|
|
159
159
|
|| (${P} === "string" && ${A} && ${A} == +${A} && !(${A} % 1))`).assign(L,(0,r._)`+${A}`);return;case"boolean":O.elseIf((0,r._)`${A} === "false" || ${A} === 0 || ${A} === null`).assign(L,!1).elseIf((0,r._)`${A} === "true" || ${A} === 1`).assign(L,!0);return;case"null":O.elseIf((0,r._)`${A} === "" || ${A} === 0 || ${A} === false`),O.assign(L,null);return;case"array":O.elseIf((0,r._)`${P} === "string" || ${P} === "number"
|
|
@@ -168,4 +168,4 @@ ${r}
|
|
|
168
168
|
${r}
|
|
169
169
|
}`)}if(n.length>0){const r=document.createElement("style");r.id="mesh-theme-overrides",r.textContent=n.join(`
|
|
170
170
|
|
|
171
|
-
`),document.head.appendChild(r)}}function yle(e){const t=Ri.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:gP.publicConfig(),queryFn:vle,staleTime:1/0},t[0]=r):r=t[0];const{data:o}=mP(r),[s]=mle();o.internalUrl&&ile(o.internalUrl);let l,c;t[1]!==o.theme?(l=()=>{_le(o.theme)},c=[o.theme],t[1]=o.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),M.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const h=document.documentElement,g=()=>{const x=document.querySelector('meta[name="theme-color"]');if(!x)return;const w=getComputedStyle(h).getPropertyValue("--sidebar").trim();if(!w)return;const E=document.createElement("canvas").getContext("2d");if(!E)return;E.fillStyle="#010203";const T=E.fillStyle;E.fillStyle=w;const R=E.fillStyle;R!==T&&(x.content=R)};if(s.theme==="dark"){h.classList.add("dark"),g();return}if(s.theme==="light"){h.classList.remove("dark"),g();return}const v=window.matchMedia("(prefers-color-scheme: dark)"),y=x=>{h.classList.toggle("dark",x),g()};y(v.matches);const b=x=>y(x.matches);return v.addEventListener("change",b),()=>v.removeEventListener("change",b)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),M.useLayoutEffect(d,f);let p;return t[7]!==n?(p=C.jsx(C.Fragment,{children:n}),t[7]=n,t[8]=p):p=t[8],p}const _E=new m8({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});soe(_E);aoe(_E);function ble(e){const t=Ri.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx(EG,{}),t[0]=r):r=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=C.jsx(GS,{}),t[1]=o):o=t[1];let s;return t[2]!==n?(s=C.jsxs(g8,{client:_E,children:[r,C.jsx(M.Suspense,{fallback:o,children:C.jsx(yle,{children:C.jsx(M8,{children:C.jsx(Qte,{children:C.jsx(moe,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function wle(...e){return C3(Uw(e))}const Sle=X3("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",xl:"h-12 px-4 has-[>svg]:px-3.5",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function fw(e){const t=Ri.c(14);let n,r,o,s,l;t[0]!==e?({className:n,variant:l,size:o,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=l):(n=t[1],r=t[2],o=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?Ww:"button";let f;t[6]!==n||t[7]!==o||t[8]!==l?(f=wle(Sle({variant:l,size:o,className:n})),t[6]=n,t[7]=o,t[8]=l,t[9]=f):f=t[9];let p;return t[10]!==d||t[11]!==r||t[12]!==f?(p=C.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=p):p=t[13],p}const XM="__mesh_chunk_reload_ts";function JM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class Nue extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),_6(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:C.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(qS,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(fw,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class Ele extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=JM(t);if(_6(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const o=sessionStorage.getItem(XM),s=Date.now();(!o||s-Number(o)>1e4)&&(sessionStorage.setItem(XM,String(s)),window.location.reload())}render(){return this.state.hasError&&JM(this.state.error)?C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:C.jsx(w6,{className:"h-6 w-6 text-primary"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),C.jsx(fw,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(qS,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(fw,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const xle="MCP Workflows",Rle="Create workflows using your MCP tools",Ole=M.lazy(()=>vt(()=>import("./plugin-header-BHp06mc6.js"),__vite__mapDeps([0,1,2]))),Tle=M.lazy(()=>vt(()=>import("./plugin-empty-state-BFLQdsKv.js"),[])),Cle={id:xle,description:Rle,bindingName:"WORKFLOW",renderHeader:e=>C.jsx(Ole,{...e}),renderEmptyState:()=>C.jsx(Tle,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:C.jsx(y6,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},Ale=[Cle],ms=iU({component:()=>C.jsx(Ele,{children:C.jsx(ble,{children:C.jsx(M.Suspense,{fallback:C.jsx(GS,{}),children:C.jsx(YP,{})})})})}),Ile=dt({getParentRoute:()=>ms,path:"/login",component:xt(()=>vt(()=>import("./login-BrjqfruI.js"),__vite__mapDeps([3,4,5]))),validateSearch:fl(()=>we({next:j().optional(),client_id:j().optional(),redirect_uri:j().optional(),response_type:j().optional(),state:j().optional(),scope:j().optional(),code_challenge:j().optional(),code_challenge_method:j().optional()}))}),Mle=dt({getParentRoute:()=>ms,path:"/cli/auth-success",component:xt(()=>vt(()=>import("./cli-auth-success-C_XhTbkx.js"),__vite__mapDeps([6,5])))}),Ple=dt({getParentRoute:()=>ms,path:"/reset-password",component:xt(()=>vt(()=>import("./reset-password-BS4hJPw5.js"),__vite__mapDeps([7,4]))),validateSearch:fl(()=>we({token:j().optional(),error:j().optional()}))}),Nle=dt({getParentRoute:()=>ms,path:"/auth/$pathname",component:xt(()=>vt(()=>import("./auth-catchall-o10U7cQc.js"),[]))}),kle=dt({getParentRoute:()=>ms,path:"/oauth/callback",component:xt(()=>vt(()=>import("./oauth-callback-DNQyVrA4.js"),[]))}),Dle=dt({getParentRoute:()=>ms,path:"/oauth/callback/ai-provider",component:xt(()=>vt(()=>import("./oauth-callback-ai-provider-8n7wua_J.js"),[]))}),yE=dt({getParentRoute:()=>ms,id:"shell",component:xt(()=>vt(()=>import("./shell-layout-PUWh0yKq.js").then(e=>e.s),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])))}),Lle=dt({getParentRoute:()=>yE,path:"/",beforeLoad:async()=>{const e=localStorage.getItem(vE.lastOrgSlug());if(e)throw Ic({to:"/$org",params:{org:e}});const{data:t}=await f3();if(!t)return;const r=t.filter(o=>!o.metadata?.archived)[0];throw Ic(r?{to:"/$org",params:{org:r.slug}}:{to:"/onboarding"})}}),$le=dt({getParentRoute:()=>ms,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await f3(),t=e?.filter(n=>!n.metadata?.archived);if(t&&t.length>0)throw Ic({to:"/"})},component:xt(()=>vt(()=>import("./onboarding-BXZxw1PA.js"),__vite__mapDeps([28,20,21,5,9,10,4,29,30,11,15,31,32])))}),bE=dt({getParentRoute:()=>yE,path:"/$org",component:xt(()=>vt(()=>import("./org-layout-Dpf8xJ0K.js"),[]))}),wE=dt({getParentRoute:()=>bE,id:"org-shell",component:xt(()=>vt(()=>import("./index-BiCpFplG.js"),__vite__mapDeps([33,34,35,19,36,37,21,38,39,40,13,41,42,43,44,45,11,15,1,2,46,47,48,49,16,50,31,51,52,53,12,54,55,56,57,58,59,60,61,32,10,62,14,17,63,64,65,66,67,68,23,69,70,71,72,73,18,74,75,76,77,78,79,80,22,24,25,8,9,20,26,27,81,82,29,4,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111])))}),SE=dt({getParentRoute:()=>wE,id:"agent-shell",component:xt(()=>vt(()=>import("./index-D-Ox4LhG.js").then(e=>e.X),__vite__mapDeps([112,113,108,22,23,24,25,69,70,100,26,114,38,39,40,13,41,42,43,44,45,11,15,1,2,46,47,48,49,16,50,31,51,52,35,19,53,12,54,55,56,57,58,59,60,61,32,10,62,14,17,115,95,36,116,106,107,18,117,118,8,9,20,21,27,92,119,82,29,4,83,66,74,120,121,122,75,64,123,124,91,109,110,65,125,126,127,85,86,87,88,76,89,90,78,79,80,93,94,96,97,98,99,37,34,63,67,68,71,72,73,77,81,84,101,102,103,104,105,128,129,130,131,132,30,133,134,135,136,137,138,139,140,141])))}),jle=we({virtualmcpid:j().optional(),tab:j().optional(),main:j().optional(),id:j().optional(),toolName:j().optional(),tasks:ut().optional(),mainOpen:ut().optional(),chat:ut().optional(),autosend:j().optional(),runLocally:j().optional()}),uL=dt({getParentRoute:()=>SE,path:"/$taskId",validateSearch:jle,component:()=>null}),Ule=dt({getParentRoute:()=>wE,path:"/",component:xt(()=>vt(()=>import("./index-CUgtN10Z.js"),__vite__mapDeps([142,36,23,69,70,1,38,39,40,13,41,42,43,44,45,11,15,2,46,47,48,49,16,50,31,51,52,35,19,53,12,54,55,56,57,58,59,60,61,32,10,62,14,17,113,108,22,24,25,100,26,114,115,95,116,106,107,18,117,118,8,9,20,21,27,92,119,82,29,4,83,66,74,120,121,122,75,64,123,124,91,109,110,65,125,126,127,85,86,87,88,76,89,90,78,79,80,93,94,96,97,98,99,68,63])))}),En=dt({getParentRoute:()=>bE,path:"/settings",component:xt(()=>vt(()=>import("./settings-layout-DqSj9nkj.js"),__vite__mapDeps([143,21,34,35,19,36,134,45,11,51,52,12,60,10,17,128,127,24,25,63,46,111])))}),zle=dt({getParentRoute:()=>En,path:"/",beforeLoad:({params:e})=>{throw Ic({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),Fle=dt({getParentRoute:()=>En,path:"/connections",component:xt(()=>vt(()=>import("./connections-mvOMgCdw.js"),__vite__mapDeps([144,79,80,145,126,1,46,48,41,36,138,94,140,58,93,87,86,88,76,70,23,26,89,90,78,91,92,49,38,39,40,13,42,43,44,45,11,15,2,47,16,50,31,51,52,35,19,53,12,54,55,56,57,59,60,61,32,10,62,14,17,129,134,34,146,81,98,147,148,75,18,66,82,29,4,95,96,69,97]))),validateSearch:fl(()=>we({action:pn(["create"]).optional(),tab:pn(["all","connected"]).optional()}))}),Ble=dt({getParentRoute:()=>En,path:"/connections/$appSlug",component:xt(()=>vt(()=>import("./connection-detail-BkhtJXTy.js"),__vite__mapDeps([149,79,80,129,97,4,57,61,150,23,77,38,39,40,13,41,42,43,44,45,11,15,1,2,46,47,48,49,16,50,31,51,52,35,19,53,12,54,55,56,58,59,60,32,10,62,14,17,76,70,151,152,78,88,26,95,36,102,65,69,71,72,132,94,118,153,103,9,119,92,82,29,146,81,154,134,34,155,120,86,74,91,126]))),validateSearch:fl(()=>we({tab:j().optional()}))}),Vle=dt({getParentRoute:()=>En,path:"/connections/$appSlug/$collectionName/$itemId",component:xt(()=>vt(()=>import("./collection-detail-BhrYRt8L.js"),__vite__mapDeps([156,129,70,23,82,29,4,96,154,134,34,35,19,36,157,151,80,152,69,137,83,130,38,39,40,13,41,42,43,44,45,11,15,1,2,46,47,48,49,16,50,31,51,52,53,12,54,55,56,57,58,59,60,61,32,10,62,14,17,115,95,94,138,76,77,18,125,104,126,92,84,158,25,118,159,150,78,79,88,26,102,65,71,72,86,132,117,108,22,24,100,8,9,20,21,27]))),validateSearch:fl(()=>we({replayId:j().optional()}))}),Hle=dt({getParentRoute:()=>En,path:"/monitor",component:xt(()=>vt(()=>import("./index-pIlTviXZ.js"),__vite__mapDeps([160,140,58,134,34,35,19,36,129,94,65,1,42,43,16,52,56,38,39,40,13,41,44,45,11,15,2,46,47,48,49,50,31,51,53,12,54,55,57,59,60,61,32,10,62,14,17,137,83,153,103,76,70,23,69,4,75,101,102,18,95,115,161,96,93,30,29,92,9,159,91,155,152,86,99,90,162,98,89,114,116,106,107,117,118,108,22,24,25,100,26,8,20,21,27,119,82,105]))),validateSearch:fl(()=>we({tab:pn(["overview","audit","threads"]).default("overview"),from:j().default("now-30m"),to:j().default("now"),connectionId:Ie(j()).optional().default([]),virtualMcpId:Ie(j()).optional().default([]),tool:j().default(""),status:pn(["all","success","errors"]).default("all"),search:j().default(""),page:ut().optional(),streaming:Nt().default(!0),propertyFilters:j().default(""),hideSystem:Nt().default(!1)}))}),qle=dt({getParentRoute:()=>En,path:"/general",component:xt(()=>vt(()=>import("./general-QMcs11_T.js"),__vite__mapDeps([163,134,34,35,19,36,103,133,9,10,4,124,91,44,164,110,23,30,68,67,58,69,70,65,64,38,39,40,13,41,42,43,45,11,15,1,2,46,47,48,49,16,50,31,51,52,53,12,54,55,56,57,59,60,61,32,62,14,17,92,26,81])))}),Gle=dt({getParentRoute:()=>En,path:"/features",component:xt(()=>vt(()=>import("./features-DlLfjwgm.js"),__vite__mapDeps([165,134,34,35,19,36,26,23,30,49,124,91,44])))}),Kle=dt({getParentRoute:()=>En,path:"/brand-context",component:xt(()=>vt(()=>import("./brand-context-DXd7UyRk.js"),__vite__mapDeps([166,23,2,46,50,53,57,61,17,81,4,96,134,34,35,19,36,110,133])))}),Zle=dt({getParentRoute:()=>En,path:"/ai-providers",component:xt(()=>vt(()=>import("./ai-providers-ClQzDgay.js"),__vite__mapDeps([167,39,134,34,35,19,36,64,124,91,44,100,23,15,108,22,24,25,69,70,26,18,66,122,75,1,4,95,2,47,42,40,52,58,59,123,54,83,46,9,10,109,110,133,121,81,57,61,136,107])))}),Yle=dt({getParentRoute:()=>En,path:"/secrets",component:xt(()=>vt(()=>import("./secrets-CaRFVe-l.js"),__vite__mapDeps([168,39,12,57,10,62,18,19,4,29,95,36,1,2,47,64,96,134,34,35,124,91,44,135,23,110])))}),Wle=dt({getParentRoute:()=>En,path:"/files",component:xt(()=>vt(()=>import("./files-CRdQ2qx1.js"),__vite__mapDeps([169,39,51,57,61,81,18,19,4,29,30,64,96,134,34,35,36,124,91,44,170,23,110])))}),Qle=dt({getParentRoute:()=>En,path:"/members",component:xt(()=>vt(()=>import("./members-BK9vhliY.js"),__vite__mapDeps([171,145,126,1,46,48,41,36,138,94,140,58,134,34,35,19,172,162,129,18,82,29,95,2,47,96,103,173,153,23,81,9,10,91,52,60,61,14,75,101,102,65,57])))}),Xle=dt({getParentRoute:()=>En,path:"/roles",component:xt(()=>vt(()=>import("./roles-Cfh7nGNs.js"),__vite__mapDeps([174,173,103,94,81,126,1,46,48,12,57,61,172,162,41,134,34,35,19,36,129,140,58,123,92,49,38,39,40,13,42,43,44,45,11,15,2,47,16,50,31,51,52,53,54,55,56,59,60,32,10,62,14,17,98,75,99,90,23,74,153,76,70,100,9,30,124,91]))),validateSearch:fl(()=>we({role:j().optional()}))}),Jle=dt({getParentRoute:()=>En,path:"/sso",component:xt(()=>vt(()=>import("./sso-ClQaSmKv.js"),__vite__mapDeps([175,164,110,23,30,124,91,44,134,34,35,19,36,4,27,61])))}),ece=dt({getParentRoute:()=>En,path:"/profile",component:xt(()=>vt(()=>import("./profile-Cc_w8fow.js"),__vite__mapDeps([176,134,34,35,19,36,9,10,30,95,1,2,47,121,4,54,55,56,133,127,84,124,91,44])))}),tce=dt({getParentRoute:()=>En,path:"/store",component:xt(()=>vt(()=>import("./store-BZdkFmV_.js"),__vite__mapDeps([177,39,46,57,61,4,30,64,9,10,65,76,70,23,134,34,35,19,36,88,26,124,91,44])))}),nce=dt({getParentRoute:()=>En,path:"/registry",component:xt(()=>vt(()=>import("./registry-BVvaIs1y.js"),[]))}),rce=dt({getParentRoute:()=>En,path:"/store/registry",component:xt(()=>vt(()=>import("./store-registry-G4hAFaoc.js"),[]))}),oce=dt({getParentRoute:()=>En,path:"/workflows",component:xt(()=>vt(()=>import("./workflow-B2VMz9gG.js"),__vite__mapDeps([178,23,79,80,145,126,1,46,48,41,36,138,94,74,58,91,92,49,38,39,40,13,42,43,44,45,11,15,2,47,16,50,31,51,52,35,19,53,12,54,55,56,57,59,60,61,32,10,62,14,17,172,162,158,131,9,129,147,148,86,81,70,76,154,134,34])))}),ice=dt({getParentRoute:()=>En,path:"/workflows/$itemId",component:xt(()=>vt(()=>import("./workflow-detail-DNtgtjWJ.js"),__vite__mapDeps([179,157,151,23,80,152,69,70,137,83,130,38,39,40,13,41,42,43,44,45,11,15,1,2,46,47,48,49,16,50,31,51,52,35,19,53,12,54,55,56,57,58,59,60,61,32,10,62,14,17,115,95,36,94,138,154,134,34,76,77,18,125,104,126,92,84,158,25,4])))}),sce=dt({getParentRoute:()=>SE,path:"/plugins/$pluginId",component:xt(()=>vt(()=>import("./org-plugin-layout-DFdNNNj_.js"),__vite__mapDeps([180,181,76,70,23,59,134,34,35,19,36])))}),ace=dt({getParentRoute:()=>En,path:"/agents",component:xt(()=>vt(()=>import("./agents-list-DetE43Ib.js"),__vite__mapDeps([182,126,1,46,48,50,11,73,69,70,23,72,18,19,42,74,58,75,76,12,38,39,40,13,41,43,44,45,15,2,47,49,16,31,51,52,35,53,54,55,56,57,59,60,61,32,10,62,14,17,77,78,79,80,134,34,36,91,136,107,129,71,81,140])))}),lce=dt({getParentRoute:()=>En,path:"/automations",component:xt(()=>vt(()=>import("./automations-Dn1ZgH32.js"),__vite__mapDeps([183,57,17,140,58,134,34,35,19,36,129,139,81,126,1,46,48,38,39,40,13,41,42,43,44,45,11,15,2,47,49,16,50,31,51,52,53,12,54,55,56,59,60,61,32,10,62,14,69,70,23,72])))}),dL=dt({getParentRoute:()=>uL,path:"/$pluginId",component:xt(()=>vt(()=>import("./dynamic-plugin-layout-BJGFR1sh.js"),__vite__mapDeps([184,181,76,70,23,59,134,34,35,19,36])))}),cce=[],uce=[],dce=[],fL=[];Ale.forEach(e=>{if(!e.setup)return;const t={parentRoute:dL,routing:{createRoute:dt,lazyRouteComponent:xt},registerRootSidebarItem:n=>cce.push({pluginId:e.id,...n}),registerSidebarGroup:n=>uce.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>dce.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{fL.push(...n)}};e.setup(t)});const fce=dL.addChildren(fL),hce=En.addChildren([zle,Fle,Ble,Vle,ace,lce,Hle,qle,Gle,Kle,Zle,Yle,Wle,Qle,Xle,Jle,ece,tce,rce,nce,oce,ice]),pce=uL.addChildren([fce]),mce=SE.addChildren([pce,sce]),gce=wE.addChildren([Ule,mce]),vce=bE.addChildren([gce,hce]),_ce=yE.addChildren([Lle,vce]),yce=ms.addChildren([_ce,$le,Ile,Mle,Ple,Nle,kle,Dle]),bce=gU({routeTree:yce,defaultPendingComponent:GS,defaultPendingMs:200,defaultNotFoundComponent:()=>C.jsx("div",{className:"flex h-full items-center justify-center",children:C.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[C.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),C.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),C.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),wce=document.getElementById("root");Dj.createRoot(wce).render(C.jsx(M.StrictMode,{children:C.jsx(yU,{router:bce})}));export{ute as $,tue as A,fw as B,dK as C,yw as D,Nue as E,Oi as F,Ti as G,Cue as H,Iue as I,we as J,gP as K,Rw as L,ut as M,Mce as N,YP as O,j as P,Oue as Q,Tce as R,GS as S,mle as T,vE as U,Tue as V,vP as W,Gee as X,Cce as Y,ul as Z,vt as _,A8 as a,Xt as a$,loe as a0,jce as a1,mt as a2,bQ as a3,Sn as a4,lt as a5,ck as a6,ml as a7,SQ as a8,EQ as a9,E8 as aA,Rue as aB,Ie as aC,pn as aD,Mt as aE,Nt as aF,Mue as aG,uK as aH,Pue as aI,NC as aJ,hw as aK,pW as aL,oi as aM,Qd as aN,Ig as aO,lS as aP,Hc as aQ,fa as aR,hs as aS,ii as aT,k4 as aU,gW as aV,yW as aW,vW as aX,oW as aY,dce as aZ,Ece as a_,xQ as aa,RQ as ab,OQ as ac,TQ as ad,CQ as ae,AQ as af,IQ as ag,MQ as ah,NQ as ai,kQ as aj,wQ as ak,ri as al,yQ as am,Jc as an,Wn as ao,Em as ap,nP as aq,uP as ar,v8 as as,b8 as at,R8 as au,w8 as av,S8 as aw,Zn as ax,T8 as ay,D2 as az,jw as b,tie as b$,xue as b0,Eue as b1,qW as b2,rk as b3,M4 as b4,df as b5,sa as b6,HW as b7,fs as b8,Ww as b9,cue as bA,_o as bB,Xa as bC,dn as bD,Nce as bE,WN as bF,iie as bG,sie as bH,nE as bI,q6 as bJ,rE as bK,ov as bL,A6 as bM,bie as bN,M6 as bO,mie as bP,Cie as bQ,joe as bR,zoe as bS,Voe as bT,eie as bU,hie as bV,gie as bW,Uoe as bX,Foe as bY,Hoe as bZ,qoe as b_,yo as ba,Ge as bb,AB as bc,C3 as bd,Uw as be,X3 as bf,o5 as bg,s5 as bh,iX as bi,Jn as bj,MX as bk,H4 as bl,I4 as bm,pa as bn,ee as bo,Sce as bp,pY as bq,lue as br,zP as bs,ma as bt,oE as bu,_g as bv,aue as bw,sue as bx,oue as by,iue as bz,wle as c,T6 as c$,cie as c0,gue as c1,Ale as c2,uce as c3,Jce as c4,_B as c5,Pce as c6,$ce as c7,wV as c8,fl as c9,y6 as cA,mX as cB,gX as cC,pX as cD,GU as cE,C6 as cF,P6 as cG,D6 as cH,$6 as cI,j6 as cJ,z6 as cK,pue as cL,mue as cM,fue as cN,hue as cO,_oe as cP,due as cQ,N6 as cR,L6 as cS,U6 as cT,_ue as cU,k6 as cV,uae as cW,bue as cX,KS as cY,Moe as cZ,uue as c_,ZB as ca,Nw as cb,kce as cc,vf as cd,uY as ce,fY as cf,hY as cg,uf as ch,hK as ci,fK as cj,B3 as ck,pP as cl,x8 as cm,tk as cn,MW as co,Jw as cp,G4 as cq,h4 as cr,eS as cs,Wd as ct,o4 as cu,Xw as cv,Qw as cw,PW as cx,NW as cy,xle as cz,HP as d,ese as d0,lie as d1,yue as d2,Gie as d3,Yie as d4,Iie as d5,Aie as d6,wue as d7,$ae as d8,Sue as d9,qce as dA,Gce as dB,Kce as dC,WB as dD,Mw as dE,TB as dF,Dce as dG,JB as dH,kw as dI,Pw as dJ,rV as dK,Lce as dL,yse as dM,gt as dN,Ar as dO,Ice as dP,aK as dQ,iK as dR,tK as dS,k3 as dT,vue as da,mY as db,gY as dc,dY as dd,vY as de,zce as df,ni as dg,Bce as dh,Fce as di,Sle as dj,Rce as dk,xce as dl,lX as dm,GP as dn,XQ as dp,JQ as dq,nX as dr,eX as ds,tX as dt,Vce as du,Hce as dv,Zce as dw,Yce as dx,Wce as dy,Qce as dz,Ri as e,Ag as f,VP as g,nue as h,eue as i,C as j,rue as k,b6 as l,Aue as m,C8 as n,ZT as o,fle as p,voe as q,M as r,mP as s,poe as t,Ace as u,qS as v,cK as w,Uce as x,rle as y,w6 as z};
|
|
171
|
+
`),document.head.appendChild(r)}}function yle(e){const t=Ri.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:gP.publicConfig(),queryFn:vle,staleTime:1/0},t[0]=r):r=t[0];const{data:o}=mP(r),[s]=mle();o.internalUrl&&ile(o.internalUrl);let l,c;t[1]!==o.theme?(l=()=>{_le(o.theme)},c=[o.theme],t[1]=o.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),M.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const h=document.documentElement,g=()=>{const x=document.querySelector('meta[name="theme-color"]');if(!x)return;const w=getComputedStyle(h).getPropertyValue("--sidebar").trim();if(!w)return;const E=document.createElement("canvas").getContext("2d");if(!E)return;E.fillStyle="#010203";const T=E.fillStyle;E.fillStyle=w;const R=E.fillStyle;R!==T&&(x.content=R)};if(s.theme==="dark"){h.classList.add("dark"),g();return}if(s.theme==="light"){h.classList.remove("dark"),g();return}const v=window.matchMedia("(prefers-color-scheme: dark)"),y=x=>{h.classList.toggle("dark",x),g()};y(v.matches);const b=x=>y(x.matches);return v.addEventListener("change",b),()=>v.removeEventListener("change",b)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),M.useLayoutEffect(d,f);let p;return t[7]!==n?(p=C.jsx(C.Fragment,{children:n}),t[7]=n,t[8]=p):p=t[8],p}const _E=new m8({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});soe(_E);aoe(_E);function ble(e){const t=Ri.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx(EG,{}),t[0]=r):r=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=C.jsx(GS,{}),t[1]=o):o=t[1];let s;return t[2]!==n?(s=C.jsxs(g8,{client:_E,children:[r,C.jsx(M.Suspense,{fallback:o,children:C.jsx(yle,{children:C.jsx(M8,{children:C.jsx(Qte,{children:C.jsx(moe,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function wle(...e){return C3(Uw(e))}const Sle=X3("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",xl:"h-12 px-4 has-[>svg]:px-3.5",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function fw(e){const t=Ri.c(14);let n,r,o,s,l;t[0]!==e?({className:n,variant:l,size:o,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=l):(n=t[1],r=t[2],o=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?Ww:"button";let f;t[6]!==n||t[7]!==o||t[8]!==l?(f=wle(Sle({variant:l,size:o,className:n})),t[6]=n,t[7]=o,t[8]=l,t[9]=f):f=t[9];let p;return t[10]!==d||t[11]!==r||t[12]!==f?(p=C.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=p):p=t[13],p}const XM="__mesh_chunk_reload_ts";function JM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class Nue extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),_6(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:C.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(qS,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(fw,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class Ele extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=JM(t);if(_6(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const o=sessionStorage.getItem(XM),s=Date.now();(!o||s-Number(o)>1e4)&&(sessionStorage.setItem(XM,String(s)),window.location.reload())}render(){return this.state.hasError&&JM(this.state.error)?C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:C.jsx(w6,{className:"h-6 w-6 text-primary"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),C.jsx(fw,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(qS,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(fw,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const xle="MCP Workflows",Rle="Create workflows using your MCP tools",Ole=M.lazy(()=>vt(()=>import("./plugin-header-wKILHxzj.js"),__vite__mapDeps([0,1,2]))),Tle=M.lazy(()=>vt(()=>import("./plugin-empty-state-Cbptz82z.js"),[])),Cle={id:xle,description:Rle,bindingName:"WORKFLOW",renderHeader:e=>C.jsx(Ole,{...e}),renderEmptyState:()=>C.jsx(Tle,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:C.jsx(y6,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},Ale=[Cle],ms=iU({component:()=>C.jsx(Ele,{children:C.jsx(ble,{children:C.jsx(M.Suspense,{fallback:C.jsx(GS,{}),children:C.jsx(YP,{})})})})}),Ile=dt({getParentRoute:()=>ms,path:"/login",component:xt(()=>vt(()=>import("./login-DCm1I5uh.js"),__vite__mapDeps([3,4,5]))),validateSearch:fl(()=>we({next:j().optional(),client_id:j().optional(),redirect_uri:j().optional(),response_type:j().optional(),state:j().optional(),scope:j().optional(),code_challenge:j().optional(),code_challenge_method:j().optional()}))}),Mle=dt({getParentRoute:()=>ms,path:"/cli/auth-success",component:xt(()=>vt(()=>import("./cli-auth-success-DqkJGjQs.js"),__vite__mapDeps([6,5])))}),Ple=dt({getParentRoute:()=>ms,path:"/reset-password",component:xt(()=>vt(()=>import("./reset-password-DeSIFr_Y.js"),__vite__mapDeps([7,4]))),validateSearch:fl(()=>we({token:j().optional(),error:j().optional()}))}),Nle=dt({getParentRoute:()=>ms,path:"/auth/$pathname",component:xt(()=>vt(()=>import("./auth-catchall-BiDv8K0T.js"),[]))}),kle=dt({getParentRoute:()=>ms,path:"/oauth/callback",component:xt(()=>vt(()=>import("./oauth-callback-CienXiq4.js"),[]))}),Dle=dt({getParentRoute:()=>ms,path:"/oauth/callback/ai-provider",component:xt(()=>vt(()=>import("./oauth-callback-ai-provider-D62PzASM.js"),[]))}),yE=dt({getParentRoute:()=>ms,id:"shell",component:xt(()=>vt(()=>import("./shell-layout-DXlDoddI.js").then(e=>e.s),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])))}),Lle=dt({getParentRoute:()=>yE,path:"/",beforeLoad:async()=>{const e=localStorage.getItem(vE.lastOrgSlug());if(e)throw Ic({to:"/$org",params:{org:e}});const{data:t}=await f3();if(!t)return;const r=t.filter(o=>!o.metadata?.archived)[0];throw Ic(r?{to:"/$org",params:{org:r.slug}}:{to:"/onboarding"})}}),$le=dt({getParentRoute:()=>ms,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await f3(),t=e?.filter(n=>!n.metadata?.archived);if(t&&t.length>0)throw Ic({to:"/"})},component:xt(()=>vt(()=>import("./onboarding-BiSeyp1L.js"),__vite__mapDeps([28,20,21,5,9,10,4,29,30,11,15,31,32])))}),bE=dt({getParentRoute:()=>yE,path:"/$org",component:xt(()=>vt(()=>import("./org-layout-DrIxFkkl.js"),[]))}),wE=dt({getParentRoute:()=>bE,id:"org-shell",component:xt(()=>vt(()=>import("./index-SD835vpA.js"),__vite__mapDeps([33,34,35,19,36,37,21,38,39,40,13,41,42,43,44,45,11,15,1,2,46,47,48,49,16,50,31,51,52,53,12,54,55,56,57,58,59,60,61,32,10,62,14,17,63,64,65,66,23,67,68,69,70,71,18,72,73,74,75,76,77,78,22,24,25,8,9,20,26,27,79,80,29,4,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109])))}),SE=dt({getParentRoute:()=>wE,id:"agent-shell",component:xt(()=>vt(()=>import("./index-CdGWl6_V.js").then(e=>e.X),__vite__mapDeps([110,111,106,22,23,24,25,67,68,98,26,112,38,39,40,13,41,42,43,44,45,11,15,1,2,46,47,48,49,16,50,31,51,52,35,19,53,12,54,55,56,57,58,59,60,61,32,10,62,14,17,113,93,36,114,104,105,18,115,116,8,9,20,21,27,90,117,80,29,4,81,66,72,118,119,120,73,64,121,122,89,107,108,65,123,124,125,83,84,85,86,74,87,88,76,77,78,91,92,94,95,96,97,37,34,63,69,70,71,75,79,82,99,100,101,102,103,126,127,128,129,130,30,131,132,133,134,135,136,137,138,139])))}),jle=we({virtualmcpid:j().optional(),tab:j().optional(),main:j().optional(),id:j().optional(),toolName:j().optional(),tasks:ut().optional(),mainOpen:ut().optional(),chat:ut().optional(),autosend:j().optional(),runLocally:j().optional()}),uL=dt({getParentRoute:()=>SE,path:"/$taskId",validateSearch:jle,component:()=>null}),Ule=dt({getParentRoute:()=>wE,path:"/",component:xt(()=>vt(()=>import("./index-DHL9MFaW.js"),__vite__mapDeps([140,36,23,67,68,1,38,39,40,13,41,42,43,44,45,11,15,2,46,47,48,49,16,50,31,51,52,35,19,53,12,54,55,56,57,58,59,60,61,32,10,62,14,17,111,106,22,24,25,98,26,112,113,93,114,104,105,18,115,116,8,9,20,21,27,90,117,80,29,4,81,66,72,118,119,120,73,64,121,122,89,107,108,65,123,124,125,83,84,85,86,74,87,88,76,77,78,91,92,94,95,96,97,63])))}),En=dt({getParentRoute:()=>bE,path:"/settings",component:xt(()=>vt(()=>import("./settings-layout-DaGY3SeQ.js"),__vite__mapDeps([141,21,34,35,19,36,132,45,11,51,52,12,60,10,17,126,125,24,25,63,46,109])))}),zle=dt({getParentRoute:()=>En,path:"/",beforeLoad:({params:e})=>{throw Ic({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),Fle=dt({getParentRoute:()=>En,path:"/connections",component:xt(()=>vt(()=>import("./connections-CJ4ZFCE_.js"),__vite__mapDeps([142,77,78,143,124,1,46,48,41,36,136,92,138,58,91,85,84,86,74,68,23,26,87,88,76,89,90,49,38,39,40,13,42,43,44,45,11,15,2,47,16,50,31,51,52,35,19,53,12,54,55,56,57,59,60,61,32,10,62,14,17,127,132,34,144,79,96,145,146,73,18,66,80,29,4,93,94,67,95]))),validateSearch:fl(()=>we({action:pn(["create"]).optional(),tab:pn(["all","connected"]).optional()}))}),Ble=dt({getParentRoute:()=>En,path:"/connections/$appSlug",component:xt(()=>vt(()=>import("./connection-detail-DyYYuIzV.js"),__vite__mapDeps([147,77,78,127,95,4,57,61,148,23,75,38,39,40,13,41,42,43,44,45,11,15,1,2,46,47,48,49,16,50,31,51,52,35,19,53,12,54,55,56,58,59,60,32,10,62,14,17,74,68,149,150,76,86,26,93,36,100,65,67,69,70,130,92,116,151,101,9,117,90,80,29,144,79,152,132,34,153,118,84,72,89,124]))),validateSearch:fl(()=>we({tab:j().optional()}))}),Vle=dt({getParentRoute:()=>En,path:"/connections/$appSlug/$collectionName/$itemId",component:xt(()=>vt(()=>import("./collection-detail-DxeN2fci.js"),__vite__mapDeps([154,127,68,23,80,29,4,94,152,132,34,35,19,36,155,149,78,150,67,135,81,128,38,39,40,13,41,42,43,44,45,11,15,1,2,46,47,48,49,16,50,31,51,52,53,12,54,55,56,57,58,59,60,61,32,10,62,14,17,113,93,92,136,74,75,18,123,102,124,90,82,156,25,116,157,148,76,77,86,26,100,65,69,70,84,130,115,106,22,24,98,8,9,20,21,27]))),validateSearch:fl(()=>we({replayId:j().optional()}))}),Hle=dt({getParentRoute:()=>En,path:"/monitor",component:xt(()=>vt(()=>import("./index-Ca-qE9hj.js"),__vite__mapDeps([158,138,58,132,34,35,19,36,127,92,65,1,42,43,16,52,56,38,39,40,13,41,44,45,11,15,2,46,47,48,49,50,31,51,53,12,54,55,57,59,60,61,32,10,62,14,17,135,81,151,101,74,68,23,67,4,73,99,100,18,93,113,159,94,91,30,29,90,9,157,89,153,150,84,97,88,160,96,87,112,114,104,105,115,116,106,22,24,25,98,26,8,20,21,27,117,80,103]))),validateSearch:fl(()=>we({tab:pn(["overview","audit","threads"]).default("overview"),from:j().default("now-30m"),to:j().default("now"),connectionId:Ie(j()).optional().default([]),virtualMcpId:Ie(j()).optional().default([]),tool:j().default(""),status:pn(["all","success","errors"]).default("all"),search:j().default(""),page:ut().optional(),streaming:Nt().default(!0),propertyFilters:j().default(""),hideSystem:Nt().default(!1)}))}),qle=dt({getParentRoute:()=>En,path:"/general",component:xt(()=>vt(()=>import("./general-ChqUzqsP.js"),__vite__mapDeps([161,132,34,35,19,36,101,131,9,10,4,122,89,44,162,108,23,30,79])))}),Gle=dt({getParentRoute:()=>En,path:"/features",component:xt(()=>vt(()=>import("./features-Cei0keTD.js"),__vite__mapDeps([163,132,34,35,19,36,26,23,30,49,122,89,44])))}),Kle=dt({getParentRoute:()=>En,path:"/brand-context",component:xt(()=>vt(()=>import("./brand-context-BWUtcphc.js"),__vite__mapDeps([164,23,2,46,50,53,57,61,17,79,4,94,132,34,35,19,36,108,131])))}),Zle=dt({getParentRoute:()=>En,path:"/ai-providers",component:xt(()=>vt(()=>import("./ai-providers-C8uRE05q.js"),__vite__mapDeps([165,39,132,34,35,19,36,64,122,89,44,98,23,15,106,22,24,25,67,68,26,18,66,120,73,1,4,93,2,47,42,40,52,58,59,121,54,81,46,9,10,107,108,131,119,79,57,61,134,105])))}),Yle=dt({getParentRoute:()=>En,path:"/secrets",component:xt(()=>vt(()=>import("./secrets-ChtarfZF.js"),__vite__mapDeps([166,39,12,57,10,62,18,19,4,29,93,36,1,2,47,64,94,132,34,35,122,89,44,133,23,108])))}),Wle=dt({getParentRoute:()=>En,path:"/files",component:xt(()=>vt(()=>import("./files-CxRgg-Jb.js"),__vite__mapDeps([167,39,51,57,61,79,18,19,4,29,30,64,94,132,34,35,36,122,89,44,168,23,108])))}),Qle=dt({getParentRoute:()=>En,path:"/members",component:xt(()=>vt(()=>import("./members-Dlsy_Jbh.js"),__vite__mapDeps([169,143,124,1,46,48,41,36,136,92,138,58,132,34,35,19,170,160,127,18,80,29,93,2,47,94,101,171,151,23,79,9,10,89,52,60,61,14,73,99,100,65,57])))}),Xle=dt({getParentRoute:()=>En,path:"/roles",component:xt(()=>vt(()=>import("./roles-DpUGXWnF.js"),__vite__mapDeps([172,171,101,92,79,124,1,46,48,12,57,61,170,160,41,132,34,35,19,36,127,138,58,121,90,49,38,39,40,13,42,43,44,45,11,15,2,47,16,50,31,51,52,53,54,55,56,59,60,32,10,62,14,17,96,73,97,88,23,72,151,74,68,98,9,30,122,89]))),validateSearch:fl(()=>we({role:j().optional()}))}),Jle=dt({getParentRoute:()=>En,path:"/sso",component:xt(()=>vt(()=>import("./sso-CDouAEMV.js"),__vite__mapDeps([173,162,108,23,30,122,89,44,132,34,35,19,36,4,27,61])))}),ece=dt({getParentRoute:()=>En,path:"/profile",component:xt(()=>vt(()=>import("./profile-DCvQmwIT.js"),__vite__mapDeps([174,132,34,35,19,36,9,10,30,93,1,2,47,119,4,54,55,56,131,125,82,122,89,44])))}),tce=dt({getParentRoute:()=>En,path:"/store",component:xt(()=>vt(()=>import("./store-BIf7SHc_.js"),__vite__mapDeps([175,39,46,57,61,4,30,64,9,10,65,74,68,23,132,34,35,19,36,86,26,122,89,44])))}),nce=dt({getParentRoute:()=>En,path:"/registry",component:xt(()=>vt(()=>import("./registry-BUapxfDk.js"),[]))}),rce=dt({getParentRoute:()=>En,path:"/store/registry",component:xt(()=>vt(()=>import("./store-registry-Bawa4wUK.js"),[]))}),oce=dt({getParentRoute:()=>En,path:"/workflows",component:xt(()=>vt(()=>import("./workflow-BuvQYBnd.js"),__vite__mapDeps([176,23,77,78,143,124,1,46,48,41,36,136,92,72,58,89,90,49,38,39,40,13,42,43,44,45,11,15,2,47,16,50,31,51,52,35,19,53,12,54,55,56,57,59,60,61,32,10,62,14,17,170,160,156,129,9,127,145,146,84,79,68,74,152,132,34])))}),ice=dt({getParentRoute:()=>En,path:"/workflows/$itemId",component:xt(()=>vt(()=>import("./workflow-detail-B-fsShL4.js"),__vite__mapDeps([177,155,149,23,78,150,67,68,135,81,128,38,39,40,13,41,42,43,44,45,11,15,1,2,46,47,48,49,16,50,31,51,52,35,19,53,12,54,55,56,57,58,59,60,61,32,10,62,14,17,113,93,36,92,136,152,132,34,74,75,18,123,102,124,90,82,156,25,4])))}),sce=dt({getParentRoute:()=>SE,path:"/plugins/$pluginId",component:xt(()=>vt(()=>import("./org-plugin-layout-D_8PfeyI.js"),__vite__mapDeps([178,179,74,68,23,59,132,34,35,19,36])))}),ace=dt({getParentRoute:()=>En,path:"/agents",component:xt(()=>vt(()=>import("./agents-list-CcXnD9PS.js"),__vite__mapDeps([180,124,1,46,48,50,11,71,67,68,23,70,18,19,42,72,58,73,74,12,38,39,40,13,41,43,44,45,15,2,47,49,16,31,51,52,35,53,54,55,56,57,59,60,61,32,10,62,14,17,75,76,77,78,132,34,36,89,134,105,127,69,79,138])))}),lce=dt({getParentRoute:()=>En,path:"/automations",component:xt(()=>vt(()=>import("./automations-BYZ7MVDy.js"),__vite__mapDeps([181,57,17,138,58,132,34,35,19,36,127,137,79,124,1,46,48,38,39,40,13,41,42,43,44,45,11,15,2,47,49,16,50,31,51,52,53,12,54,55,56,59,60,61,32,10,62,14,67,68,23,70])))}),dL=dt({getParentRoute:()=>uL,path:"/$pluginId",component:xt(()=>vt(()=>import("./dynamic-plugin-layout-DCA5GFIr.js"),__vite__mapDeps([182,179,74,68,23,59,132,34,35,19,36])))}),cce=[],uce=[],dce=[],fL=[];Ale.forEach(e=>{if(!e.setup)return;const t={parentRoute:dL,routing:{createRoute:dt,lazyRouteComponent:xt},registerRootSidebarItem:n=>cce.push({pluginId:e.id,...n}),registerSidebarGroup:n=>uce.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>dce.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{fL.push(...n)}};e.setup(t)});const fce=dL.addChildren(fL),hce=En.addChildren([zle,Fle,Ble,Vle,ace,lce,Hle,qle,Gle,Kle,Zle,Yle,Wle,Qle,Xle,Jle,ece,tce,rce,nce,oce,ice]),pce=uL.addChildren([fce]),mce=SE.addChildren([pce,sce]),gce=wE.addChildren([Ule,mce]),vce=bE.addChildren([gce,hce]),_ce=yE.addChildren([Lle,vce]),yce=ms.addChildren([_ce,$le,Ile,Mle,Ple,Nle,kle,Dle]),bce=gU({routeTree:yce,defaultPendingComponent:GS,defaultPendingMs:200,defaultNotFoundComponent:()=>C.jsx("div",{className:"flex h-full items-center justify-center",children:C.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[C.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),C.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),C.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),wce=document.getElementById("root");Dj.createRoot(wce).render(C.jsx(M.StrictMode,{children:C.jsx(yU,{router:bce})}));export{ute as $,tue as A,fw as B,dK as C,yw as D,Nue as E,Oi as F,Ti as G,Cue as H,Iue as I,we as J,gP as K,Rw as L,ut as M,Mce as N,YP as O,j as P,Oue as Q,Tce as R,GS as S,mle as T,vE as U,Tue as V,vP as W,Gee as X,Cce as Y,ul as Z,vt as _,A8 as a,yo as a$,loe as a0,jce as a1,mt as a2,bQ as a3,Sn as a4,lt as a5,ck as a6,ml as a7,SQ as a8,EQ as a9,oi as aA,Qd as aB,Ig as aC,lS as aD,Hc as aE,fa as aF,hs as aG,ii as aH,k4 as aI,gW as aJ,yW as aK,vW as aL,oW as aM,ee as aN,dce as aO,Ece as aP,Xt as aQ,xue as aR,Eue as aS,qW as aT,rk as aU,M4 as aV,df as aW,sa as aX,HW as aY,fs as aZ,Ww as a_,xQ as aa,RQ as ab,OQ as ac,TQ as ad,CQ as ae,AQ as af,IQ as ag,MQ as ah,NQ as ai,kQ as aj,wQ as ak,ri as al,yQ as am,Rue as an,nP as ao,Wn as ap,Ie as aq,pn as ar,Mt as as,Nt as at,Mue as au,uK as av,Pue as aw,NC as ax,hw as ay,pW as az,jw as b,Nw as b$,Ge as b0,AB as b1,C3 as b2,Uw as b3,X3 as b4,o5 as b5,s5 as b6,iX as b7,Jn as b8,MX as b9,A6 as bA,bie as bB,M6 as bC,mie as bD,Cie as bE,joe as bF,zoe as bG,Voe as bH,eie as bI,hie as bJ,gie as bK,Uoe as bL,Foe as bM,Hoe as bN,qoe as bO,tie as bP,cie as bQ,gue as bR,Ale as bS,uce as bT,Jce as bU,_B as bV,Pce as bW,$ce as bX,wV as bY,fl as bZ,ZB as b_,H4 as ba,I4 as bb,pa as bc,Sce as bd,pY as be,lue as bf,zP as bg,ma as bh,oE as bi,_g as bj,aue as bk,sue as bl,oue as bm,iue as bn,cue as bo,_o as bp,Xa as bq,dn as br,Nce as bs,WN as bt,iie as bu,sie as bv,nE as bw,q6 as bx,rE as by,ov as bz,wle as c,mY as c$,kce as c0,vf as c1,uY as c2,fY as c3,hY as c4,uf as c5,hK as c6,fK as c7,B3 as c8,pP as c9,mue as cA,fue as cB,hue as cC,_oe as cD,due as cE,N6 as cF,L6 as cG,U6 as cH,_ue as cI,k6 as cJ,uae as cK,bue as cL,KS as cM,Moe as cN,uue as cO,T6 as cP,ese as cQ,lie as cR,yue as cS,Gie as cT,Yie as cU,Iie as cV,Aie as cW,wue as cX,$ae as cY,Sue as cZ,vue as c_,x8 as ca,tk as cb,MW as cc,Jw as cd,G4 as ce,h4 as cf,eS as cg,Wd as ch,o4 as ci,Xw as cj,Qw as ck,PW as cl,NW as cm,xle as cn,y6 as co,mX as cp,gX as cq,pX as cr,GU as cs,C6 as ct,P6 as cu,D6 as cv,$6 as cw,j6 as cx,z6 as cy,pue as cz,HP as d,gY as d0,dY as d1,vY as d2,zce as d3,ni as d4,Bce as d5,Fce as d6,Sle as d7,uP as d8,Rce as d9,Lce as dA,yse as dB,gt as dC,Ar as dD,Ice as dE,aK as dF,iK as dG,tK as dH,k3 as dI,xce as da,lX as db,GP as dc,XQ as dd,JQ as de,nX as df,eX as dg,tX as dh,Vce as di,Hce as dj,Zce as dk,Yce as dl,Wce as dm,Qce as dn,qce as dp,Gce as dq,Kce as dr,WB as ds,Mw as dt,TB as du,Dce as dv,JB as dw,kw as dx,Pw as dy,rV as dz,Ri as e,Ag as f,VP as g,nue as h,eue as i,C as j,rue as k,b6 as l,Aue as m,C8 as n,ZT as o,fle as p,voe as q,M as r,mP as s,poe as t,Ace as u,qS as v,cK as w,Uce as x,rle as y,w6 as z};
|