@antseed/gateway-console 0.1.5 → 0.1.6
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/assets/Activity-CoD1LZfl.js +1 -0
- package/dist/assets/{Audit-DqVdOhlJ.js → Audit-CNmmoaeN.js} +1 -1
- package/dist/assets/ChainGate-CeDu6YYJ.js +1 -0
- package/dist/assets/{ChannelClose-OIfxrL05.js → ChannelClose-C_SM1g28.js} +1 -1
- package/dist/assets/{Charts-C40fH8xu.js → Charts-Dm9j6cVy.js} +1 -1
- package/dist/assets/{Chat-BvGYJ5Y8.js → Chat-D1yVH5Y-.js} +3 -3
- package/dist/assets/{ConnectWallet-CIF1O-b8.js → ConnectWallet-phY-Bf7w.js} +1 -1
- package/dist/assets/{DataTable-sbVT8kP1.js → DataTable-D65CSQpj.js} +1 -1
- package/dist/assets/{Disclosure-Cx-awmr6.js → Disclosure-DrGE-NkF.js} +1 -1
- package/dist/assets/KeyHolder-CmffMcZD.js +1 -0
- package/dist/assets/Keys-BovEuhch.js +1 -0
- package/dist/assets/Logs-B-T-V-pM.js +1 -0
- package/dist/assets/Members-tWNaQdIJ.js +1 -0
- package/dist/assets/{Migrate-DSwqmuYZ.js → Migrate-IZJLx1xU.js} +1 -1
- package/dist/assets/Models-gJrRx-QV.js +1 -0
- package/dist/assets/OperatorActions-DfjEKPUD.js +1 -0
- package/dist/assets/{OperatorGateAlert-C3dHqq3P.js → OperatorGateAlert-Bq1ilVp6.js} +1 -1
- package/dist/assets/{Overview-zCE_XZV5.js → Overview-CAxieiTF.js} +1 -1
- package/dist/assets/PeerPicker-JK4q0ZO9.js +1 -0
- package/dist/assets/PolicyEditor-BLo1sheV.js +1 -0
- package/dist/assets/PolicyField-CNEZju4W.js +1 -0
- package/dist/assets/Presets-DBRoMTo4.js +4 -0
- package/dist/assets/Providers-B3qO68z-.js +1 -0
- package/dist/assets/RequestLog-vl46fVIZ.js +1 -0
- package/dist/assets/{Rewards-EtGJVAbO.js → Rewards-CRiw-wXO.js} +2 -2
- package/dist/assets/RewardsClaim-D6P8go-K.js +1 -0
- package/dist/assets/Routing-YpzgjNx_.js +1 -0
- package/dist/assets/{Segmented-D3p0uCs7.js → Segmented-YOSVapPh.js} +1 -1
- package/dist/assets/SelectField-Cog9tKMb.js +1 -0
- package/dist/assets/{Settings-mk_D9qwH.js → Settings-CSXJvDLz.js} +2 -2
- package/dist/assets/{Switch-C1JjKdQ3.js → Switch-CGhLd0Ay.js} +1 -1
- package/dist/assets/{Tabs-4vclgTgN.js → Tabs-DuL015VX.js} +1 -1
- package/dist/assets/TextAreaField-Cxpnr6YH.js +1 -0
- package/dist/assets/{UsageByModel-DrWRsB8W.js → UsageByModel-5QuGhD1d.js} +1 -1
- package/dist/assets/Wallet-BOMYI48H.js +9 -0
- package/dist/assets/{WalletConfirm-DR1uVQ0x.js → WalletConfirm-Dc0AMNYH.js} +1 -1
- package/dist/assets/WalletFunding-CsUmR_iR.js +1 -0
- package/dist/assets/WalletSignIn-_VjhsjCt.js +1 -0
- package/dist/assets/Workspaces-Da-rLWlz.js +1 -0
- package/dist/assets/{add-D-7UccYb.js → add-Btpjkoo6.js} +1 -1
- package/dist/assets/{all-wallets-BGxRkpcp.js → all-wallets-BfrjmkEM.js} +1 -1
- package/dist/assets/{app-store-s1uoA2ti.js → app-store-CjAKxMNO.js} +1 -1
- package/dist/assets/{apple-BRpXhQwe.js → apple-BcO7LcJZ.js} +1 -1
- package/dist/assets/{arrow-bottom-FKCC1_cZ.js → arrow-bottom-DYhsTHhV.js} +1 -1
- package/dist/assets/{arrow-bottom-circle-CJkzZmsc.js → arrow-bottom-circle-DH3-k8Pr.js} +1 -1
- package/dist/assets/{arrow-left-De1oRzmY.js → arrow-left-i-RgLGSY.js} +1 -1
- package/dist/assets/{arrow-right-2NX2NyRD.js → arrow-right-Byrj5OIH.js} +1 -1
- package/dist/assets/{arrow-top-CgrB8jyp.js → arrow-top-BvEWR8S0.js} +1 -1
- package/dist/assets/{bank-CMkHQ1al.js → bank-CqGqrPxl.js} +1 -1
- package/dist/assets/{basic-BkMqokQN.js → basic-DWDkRcdy.js} +1 -1
- package/dist/assets/{browser-7RnxNloE.js → browser-CQNym1bY.js} +1 -1
- package/dist/assets/{bundle-full-DUUqKkjA.js → bundle-full-C55tgBr2.js} +1 -1
- package/dist/assets/{card-B_HxJTZt.js → card-D2zVsWGG.js} +1 -1
- package/dist/assets/{ccip-Co0K3XbT.js → ccip-2-SkbDQO.js} +1 -1
- package/dist/assets/{checkmark-CFWVDR6z.js → checkmark-FRmQx2A8.js} +1 -1
- package/dist/assets/{checkmark-bold-CNBCmpUc.js → checkmark-bold-BQmDzpHv.js} +1 -1
- package/dist/assets/{chevron-bottom-CTGYD88S.js → chevron-bottom-iNshLmUE.js} +1 -1
- package/dist/assets/{chevron-left-mTki2Hbr.js → chevron-left-DZ-hTSFy.js} +1 -1
- package/dist/assets/{chevron-right-DayB9xK6.js → chevron-right-ftn9B4r7.js} +1 -1
- package/dist/assets/{chevron-top-9WSiSGRy.js → chevron-top-nKnnD3BB.js} +1 -1
- package/dist/assets/{chrome-store-CgM5Miz5.js → chrome-store-Jvo-YJCr.js} +1 -1
- package/dist/assets/{clock-BxY5-pG7.js → clock-J68M1oCn.js} +1 -1
- package/dist/assets/{close-CDUCKnVv.js → close-Bb5jO3su.js} +1 -1
- package/dist/assets/{code-block-D5n56Bu8.js → code-block-6bmX2qDf.js} +1 -1
- package/dist/assets/{coinPlaceholder-Ds_PtIse.js → coinPlaceholder-BzR2PaE2.js} +1 -1
- package/dist/assets/{compass-C649LqmC.js → compass-_xiCm8H2.js} +1 -1
- package/dist/assets/{copy-DYxsyU2w.js → copy-Cn8HQUQ0.js} +1 -1
- package/dist/assets/{core-CX6jme4T.js → core-z96MxYDt.js} +3 -3
- package/dist/assets/cursor-AmgDWaYf.js +3 -0
- package/dist/assets/{cursor-transparent-Dq6J5BgS.js → cursor-transparent-BtLB_SMp.js} +1 -1
- package/dist/assets/{desktop-Do922EUE.js → desktop-BbxKfMA_.js} +1 -1
- package/dist/assets/{disconnect-DUKdDBRk.js → disconnect-BLztvIUd.js} +1 -1
- package/dist/assets/{discord-JwdabNcm.js → discord-CHUWozPc.js} +1 -1
- package/dist/assets/{en_US-Y4ZOVFV4-CReY5kLU.js → en_US-Y4ZOVFV4-CAcvlKBB.js} +4 -4
- package/dist/assets/{etherscan-DTBHIFki.js → etherscan-D5vLd5La.js} +1 -1
- package/dist/assets/{exclamation-triangle-BpP327Fo.js → exclamation-triangle-qrQeSTv8.js} +1 -1
- package/dist/assets/{extension-j6JOf27o.js → extension-4gVUPN7H.js} +1 -1
- package/dist/assets/{external-link-KPnIyOs2.js → external-link-B14WJWrF.js} +1 -1
- package/dist/assets/{facebook-CUm5rmxi.js → facebook-CIMBt82S.js} +1 -1
- package/dist/assets/{farcaster-B0vG6PgN.js → farcaster-c2htRu7g.js} +1 -1
- package/dist/assets/{filters-lRsk33JN.js → filters-Bv71E2AR.js} +1 -1
- package/dist/assets/{github-CxYb478W.js → github-UYR2U4eW.js} +1 -1
- package/dist/assets/{google-AoLkuqHM.js → google-n2NyY3Dw.js} +1 -1
- package/dist/assets/{help-circle-B4PduW5F.js → help-circle-BLFRE_d4.js} +1 -1
- package/dist/assets/{highlighted-body-KQOG7T2V-tu6WaGd1.js → highlighted-body-KQOG7T2V-BPvcfizq.js} +1 -1
- package/dist/assets/{id-L7tAEkKG.js → id-Bx-RYygz.js} +1 -1
- package/dist/assets/{image-DOQYBepB.js → image-BOkMzreg.js} +1 -1
- package/dist/assets/{index-Bgrmz5Gh.js → index-BG30WuBG.js} +15 -15
- package/dist/assets/{index-DNT4SsKr.css → index-D8vXwUTI.css} +1 -1
- package/dist/assets/{index-DK7xhF9m.js → index-DUGIknuZ.js} +1 -1
- package/dist/assets/{index-y9ajgRFv.js → index-DzFVk9QK.js} +1 -1
- package/dist/assets/{index-BqGpfOnj.js → index-FSpcDkTF.js} +3 -3
- package/dist/assets/{index-17PEzKx_.js → index-RORHmLec.js} +1 -1
- package/dist/assets/{index.es-kR-uCv4P.js → index.es-CA2ape1X.js} +4 -4
- package/dist/assets/{info-uKWVCo_C.js → info-Cn0tJEtZ.js} +1 -1
- package/dist/assets/{info-circle-BvfVUJNy.js → info-circle-Bu4Zfbo-.js} +1 -1
- package/dist/assets/{lightbulb-DO32OYdV.js → lightbulb-CEuGFxl3.js} +1 -1
- package/dist/assets/{limits-I4Xri5kH.js → limits-Cv54gck6.js} +1 -1
- package/dist/assets/{mail-MlMfOV0O.js → mail-DTJ1wl6n.js} +1 -1
- package/dist/assets/{mermaid-MCJ5UELQ-CXGXvvLA.js → mermaid-MCJ5UELQ-BedJEojm.js} +3 -3
- package/dist/assets/{metamask-sdk-CZTQzdZy.js → metamask-sdk-CQV3kKmz.js} +1 -1
- package/dist/assets/{mobile-DxWEXY-d.js → mobile-D5XkpStI.js} +1 -1
- package/dist/assets/{models-DGQYrtKn.js → models-DMYWCgsM.js} +1 -1
- package/dist/assets/{more-CDCHQLT3.js → more-DdrXAXX1.js} +1 -1
- package/dist/assets/{network-placeholder-Bscumk_y.js → network-placeholder-DYxULQKf.js} +1 -1
- package/dist/assets/{nftPlaceholder-CZj8ym45.js → nftPlaceholder-DNCBtU2V.js} +1 -1
- package/dist/assets/{off-DZcfy0ut.js → off-x6tIm6IU.js} +1 -1
- package/dist/assets/{play-store-DMcFVzJl.js → play-store-DH_0xG8x.js} +1 -1
- package/dist/assets/{plus-CrMZIqkK.js → plus-D6bTrOQ5.js} +1 -1
- package/dist/assets/{qr-code-BmydgyiV.js → qr-code-nZ-ywovk.js} +1 -1
- package/dist/assets/{recycle-horizontal-CSrs8rul.js → recycle-horizontal-Dfef9bS8.js} +1 -1
- package/dist/assets/{refresh-Bghm7ATF.js → refresh-DjaTupr6.js} +1 -1
- package/dist/assets/{reown-logo-BE_YCUWl.js → reown-logo-8xfPxyEW.js} +1 -1
- package/dist/assets/{search-BVKO89aW.js → search-CTyg9yLr.js} +1 -1
- package/dist/assets/{secp256k1-BYFo74Iy.js → secp256k1-C3GZOk0r.js} +1 -1
- package/dist/assets/{send-pY0DB7x7.js → send-BRCwXyYl.js} +1 -1
- package/dist/assets/{swapHorizontal-DLJaB22K.js → swapHorizontal-DQysA-xv.js} +1 -1
- package/dist/assets/{swapHorizontalBold-DGAu8PHD.js → swapHorizontalBold-CfvpnhxX.js} +1 -1
- package/dist/assets/{swapHorizontalMedium-CgNljeNo.js → swapHorizontalMedium-Ei15IdQU.js} +1 -1
- package/dist/assets/{swapHorizontalRoundedBold-Cj5OUnOy.js → swapHorizontalRoundedBold-BrdyV7V9.js} +1 -1
- package/dist/assets/{swapVertical-BrZopBF4.js → swapVertical-Chu7IZEN.js} +1 -1
- package/dist/assets/{telegram-XorPgtmK.js → telegram-WX2YRbPh.js} +1 -1
- package/dist/assets/{three-dots-BJhNCCn5.js → three-dots-DxlCOrsx.js} +1 -1
- package/dist/assets/{twitch-BEbiCzO2.js → twitch-DnDwl6Wp.js} +1 -1
- package/dist/assets/{twitterIcon-CkcUz9fu.js → twitterIcon-BRzgYnIv.js} +1 -1
- package/dist/assets/{usage-D2MGES9n.js → usage-CSmvbieU.js} +1 -1
- package/dist/assets/{useInfiniteQuery-DWwzEQdC.js → useInfiniteQuery-Dd787Fyg.js} +1 -1
- package/dist/assets/{useTx-CIkBd_D3.js → useTx-BMOzJPjG.js} +1 -1
- package/dist/assets/{verify-9cqPQDU3.js → verify-BDEQw6N7.js} +1 -1
- package/dist/assets/{verify-filled-Da6z020R.js → verify-filled-4pi90YF-.js} +1 -1
- package/dist/assets/{w3m-modal-DYYWuCzk.js → w3m-modal-0lsUnIxD.js} +1 -1
- package/dist/assets/{wallet-ctGTkC8h.js → wallet-Cdj3wKM9.js} +1 -1
- package/dist/assets/{wallet-placeholder-CMKbW-yz.js → wallet-placeholder-9WrqEYA6.js} +1 -1
- package/dist/assets/{walletconnect-Cyg39b3w.js → walletconnect-Dxw2wfHl.js} +1 -1
- package/dist/assets/{warning-circle-D9mA3kC3.js → warning-circle-BS-8TEUR.js} +1 -1
- package/dist/assets/{x-DVGEd37g.js → x-BuEdoHYI.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +3 -3
- package/dist/assets/Activity-62ACSef_.js +0 -1
- package/dist/assets/ChainGate-B1xi2PsC.js +0 -1
- package/dist/assets/KeyHolder-CPmUp8lv.js +0 -1
- package/dist/assets/Keys-stljGmXA.js +0 -1
- package/dist/assets/Logs-C2h0OUd6.js +0 -1
- package/dist/assets/Members-CvRczTwo.js +0 -1
- package/dist/assets/Models-DRrQ0eaX.js +0 -1
- package/dist/assets/OperatorActions-CDFST6SU.js +0 -1
- package/dist/assets/PolicyEditor-B52YQzMa.js +0 -1
- package/dist/assets/PolicyField-Djk40GaH.js +0 -1
- package/dist/assets/Presets-MqSKjh0_.js +0 -4
- package/dist/assets/Providers-Deprr6b6.js +0 -1
- package/dist/assets/RequestLog-C5PR-cpV.js +0 -1
- package/dist/assets/RewardsClaim-DRzi4dnv.js +0 -1
- package/dist/assets/Routing-B4sVpf47.js +0 -1
- package/dist/assets/SelectField-BSkxMNGk.js +0 -1
- package/dist/assets/TextAreaField-CYcKNNwk.js +0 -1
- package/dist/assets/Wallet-B73Wye2M.js +0 -9
- package/dist/assets/WalletFunding-CctnzIgN.js +0 -1
- package/dist/assets/WalletSignIn-CE39ggEH.js +0 -1
- package/dist/assets/Workspaces-CmwBRhwh.js +0 -1
- package/dist/assets/cursor-BXlarUDb.js +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/WalletSignIn-
|
|
2
|
-
var iw=Object.defineProperty;var qh=t=>{throw TypeError(t)};var ow=(t,r,i)=>r in t?iw(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i;var gu=(t,r,i)=>ow(t,typeof r!="symbol"?r+"":r,i),yu=(t,r,i)=>r.has(t)||qh("Cannot "+i);var S=(t,r,i)=>(yu(t,r,"read from private field"),i?i.call(t):r.get(t)),ne=(t,r,i)=>r.has(t)?qh("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,i),q=(t,r,i,a)=>(yu(t,r,"write to private field"),a?a.call(t,i):r.set(t,i),i),ue=(t,r,i)=>(yu(t,r,"access private method"),i);var Ys=(t,r,i,a)=>({set _(u){q(t,r,u,i)},get _(){return S(t,r,a)}});function sw(t,r){for(var i=0;i<r.length;i++){const a=r[i];if(typeof a!="string"&&!Array.isArray(a)){for(const u in a)if(u!=="default"&&!(u in t)){const f=Object.getOwnPropertyDescriptor(a,u);f&&Object.defineProperty(t,u,f.get?f:{enumerable:!0,get:()=>a[u]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&a(m)}).observe(document,{childList:!0,subtree:!0});function i(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function a(u){if(u.ep)return;u.ep=!0;const f=i(u);fetch(u.href,f)}})();const aw="modulepreload",lw=function(t){return"/console/"+t},Kh={},Ue=function(r,i,a){let u=Promise.resolve();if(i&&i.length>0){let m=function(h){return Promise.all(h.map(
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/WalletSignIn-_VjhsjCt.js","assets/en_US-Y4ZOVFV4-CAcvlKBB.js","assets/clsx-B-dksMZM.js","assets/index-BwpQbdIU.js","assets/en_US-Y4ZOVFV4-CcVPgXVa.css","assets/WalletConfirm-Dc0AMNYH.js","assets/ConnectWallet-phY-Bf7w.js","assets/Overview-CAxieiTF.js","assets/UsageByModel-5QuGhD1d.js","assets/usage-CSmvbieU.js","assets/Charts-Dm9j6cVy.js","assets/Segmented-YOSVapPh.js","assets/roving-DkptacxO.js","assets/Chat-D1yVH5Y-.js","assets/Chat-Dtte195G.css","assets/Activity-CoD1LZfl.js","assets/PeerPicker-JK4q0ZO9.js","assets/SelectField-Cog9tKMb.js","assets/DataTable-D65CSQpj.js","assets/Logs-B-T-V-pM.js","assets/RequestLog-vl46fVIZ.js","assets/useInfiniteQuery-Dd787Fyg.js","assets/dates-Pi3-Ywng.js","assets/Keys-BovEuhch.js","assets/PolicyField-CNEZju4W.js","assets/PolicyEditor-BLo1sheV.js","assets/Switch-CGhLd0Ay.js","assets/Disclosure-DrGE-NkF.js","assets/Tabs-DuL015VX.js","assets/limits-Cv54gck6.js","assets/Members-tWNaQdIJ.js","assets/Workspaces-Da-rLWlz.js","assets/Wallet-BOMYI48H.js","assets/ChainGate-CeDu6YYJ.js","assets/dijkstra-COg3n3zL.js","assets/Rewards-CRiw-wXO.js","assets/ants-B38m9Phv.js","assets/Providers-B3qO68z-.js","assets/models-DMYWCgsM.js","assets/Presets-DBRoMTo4.js","assets/TextAreaField-Cxpnr6YH.js","assets/Models-gJrRx-QV.js","assets/Routing-YpzgjNx_.js","assets/Audit-CNmmoaeN.js","assets/Settings-CSXJvDLz.js","assets/KeyHolder-CmffMcZD.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var iw=Object.defineProperty;var qh=t=>{throw TypeError(t)};var ow=(t,r,i)=>r in t?iw(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i;var gu=(t,r,i)=>ow(t,typeof r!="symbol"?r+"":r,i),yu=(t,r,i)=>r.has(t)||qh("Cannot "+i);var S=(t,r,i)=>(yu(t,r,"read from private field"),i?i.call(t):r.get(t)),ne=(t,r,i)=>r.has(t)?qh("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,i),q=(t,r,i,a)=>(yu(t,r,"write to private field"),a?a.call(t,i):r.set(t,i),i),ue=(t,r,i)=>(yu(t,r,"access private method"),i);var Ys=(t,r,i,a)=>({set _(u){q(t,r,u,i)},get _(){return S(t,r,a)}});function sw(t,r){for(var i=0;i<r.length;i++){const a=r[i];if(typeof a!="string"&&!Array.isArray(a)){for(const u in a)if(u!=="default"&&!(u in t)){const f=Object.getOwnPropertyDescriptor(a,u);f&&Object.defineProperty(t,u,f.get?f:{enumerable:!0,get:()=>a[u]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&a(m)}).observe(document,{childList:!0,subtree:!0});function i(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function a(u){if(u.ep)return;u.ep=!0;const f=i(u);fetch(u.href,f)}})();const aw="modulepreload",lw=function(t){return"/console/"+t},Kh={},Ue=function(r,i,a){let u=Promise.resolve();if(i&&i.length>0){let m=function(h){return Promise.all(h.map(y=>Promise.resolve(y).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const v=document.querySelector("meta[property=csp-nonce]"),g=(v==null?void 0:v.nonce)||(v==null?void 0:v.getAttribute("nonce"));u=m(i.map(h=>{if(h=lw(h),h in Kh)return;Kh[h]=!0;const y=h.endsWith(".css"),x=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${x}`))return;const C=document.createElement("link");if(C.rel=y?"stylesheet":aw,y||(C.as="script"),C.crossOrigin="",C.href=h,g&&C.setAttribute("nonce",g),document.head.appendChild(C),y)return new Promise((N,A)=>{C.addEventListener("load",N),C.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${h}`)))})}))}function f(m){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=m,window.dispatchEvent(v),!v.defaultPrevented)throw m}return u.then(m=>{for(const v of m||[])v.status==="rejected"&&f(v.reason);return r().catch(f)})};var dk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function fk(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var r=t.default;if(typeof r=="function"){var i=function a(){return this instanceof a?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};i.prototype=r.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(a){var u=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(i,a,u.get?u:{enumerable:!0,get:function(){return t[a]}})}),i}var wu={exports:{}},xo={},xu={exports:{}},he={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@ var iw=Object.defineProperty;var qh=t=>{throw TypeError(t)};var ow=(t,r,i)=>r in
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Qh;function cw(){if(Qh)return he;Qh=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),
|
|
10
|
+
*/var Qh;function cw(){if(Qh)return he;Qh=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.iterator;function C(b){return b===null||typeof b!="object"?null:(b=x&&b[x]||b["@@iterator"],typeof b=="function"?b:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,E={};function M(b,$,le){this.props=b,this.context=$,this.refs=E,this.updater=le||N}M.prototype.isReactComponent={},M.prototype.setState=function(b,$){if(typeof b!="object"&&typeof b!="function"&&b!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,b,$,"setState")},M.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function L(){}L.prototype=M.prototype;function F(b,$,le){this.props=b,this.context=$,this.refs=E,this.updater=le||N}var P=F.prototype=new L;P.constructor=F,A(P,M.prototype),P.isPureReactComponent=!0;var j=Array.isArray,D=Object.prototype.hasOwnProperty,W={current:null},te={key:!0,ref:!0,__self:!0,__source:!0};function Z(b,$,le){var de,ve={},ge=null,Ce=null;if($!=null)for(de in $.ref!==void 0&&(Ce=$.ref),$.key!==void 0&&(ge=""+$.key),$)D.call($,de)&&!te.hasOwnProperty(de)&&(ve[de]=$[de]);var xe=arguments.length-2;if(xe===1)ve.children=le;else if(1<xe){for(var _e=Array(xe),ct=0;ct<xe;ct++)_e[ct]=arguments[ct+2];ve.children=_e}if(b&&b.defaultProps)for(de in xe=b.defaultProps,xe)ve[de]===void 0&&(ve[de]=xe[de]);return{$$typeof:t,type:b,key:ge,ref:Ce,props:ve,_owner:W.current}}function se(b,$){return{$$typeof:t,type:b.type,key:$,ref:b.ref,props:b.props,_owner:b._owner}}function ce(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function X(b){var $={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(le){return $[le]})}var Te=/\/+/g;function Be(b,$){return typeof b=="object"&&b!==null&&b.key!=null?X(""+b.key):$.toString(36)}function qe(b,$,le,de,ve){var ge=typeof b;(ge==="undefined"||ge==="boolean")&&(b=null);var Ce=!1;if(b===null)Ce=!0;else switch(ge){case"string":case"number":Ce=!0;break;case"object":switch(b.$$typeof){case t:case r:Ce=!0}}if(Ce)return Ce=b,ve=ve(Ce),b=de===""?"."+Be(Ce,0):de,j(ve)?(le="",b!=null&&(le=b.replace(Te,"$&/")+"/"),qe(ve,$,le,"",function(ct){return ct})):ve!=null&&(ce(ve)&&(ve=se(ve,le+(!ve.key||Ce&&Ce.key===ve.key?"":(""+ve.key).replace(Te,"$&/")+"/")+b)),$.push(ve)),1;if(Ce=0,de=de===""?".":de+":",j(b))for(var xe=0;xe<b.length;xe++){ge=b[xe];var _e=de+Be(ge,xe);Ce+=qe(ge,$,le,_e,ve)}else if(_e=C(b),typeof _e=="function")for(b=_e.call(b),xe=0;!(ge=b.next()).done;)ge=ge.value,_e=de+Be(ge,xe++),Ce+=qe(ge,$,le,_e,ve);else if(ge==="object")throw $=String(b),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return Ce}function Ke(b,$,le){if(b==null)return b;var de=[],ve=0;return qe(b,de,"","",function(ge){return $.call(le,ge,ve++)}),de}function nt(b){if(b._status===-1){var $=b._result;$=$(),$.then(function(le){(b._status===0||b._status===-1)&&(b._status=1,b._result=le)},function(le){(b._status===0||b._status===-1)&&(b._status=2,b._result=le)}),b._status===-1&&(b._status=0,b._result=$)}if(b._status===1)return b._result.default;throw b._result}var Re={current:null},V={transition:null},re={ReactCurrentDispatcher:Re,ReactCurrentBatchConfig:V,ReactCurrentOwner:W};function Q(){throw Error("act(...) is not supported in production builds of React.")}return he.Children={map:Ke,forEach:function(b,$,le){Ke(b,function(){$.apply(this,arguments)},le)},count:function(b){var $=0;return Ke(b,function(){$++}),$},toArray:function(b){return Ke(b,function($){return $})||[]},only:function(b){if(!ce(b))throw Error("React.Children.only expected to receive a single React element child.");return b}},he.Component=M,he.Fragment=i,he.Profiler=u,he.PureComponent=F,he.StrictMode=a,he.Suspense=g,he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,he.act=Q,he.cloneElement=function(b,$,le){if(b==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+b+".");var de=A({},b.props),ve=b.key,ge=b.ref,Ce=b._owner;if($!=null){if($.ref!==void 0&&(ge=$.ref,Ce=W.current),$.key!==void 0&&(ve=""+$.key),b.type&&b.type.defaultProps)var xe=b.type.defaultProps;for(_e in $)D.call($,_e)&&!te.hasOwnProperty(_e)&&(de[_e]=$[_e]===void 0&&xe!==void 0?xe[_e]:$[_e])}var _e=arguments.length-2;if(_e===1)de.children=le;else if(1<_e){xe=Array(_e);for(var ct=0;ct<_e;ct++)xe[ct]=arguments[ct+2];de.children=xe}return{$$typeof:t,type:b.type,key:ve,ref:ge,props:de,_owner:Ce}},he.createContext=function(b){return b={$$typeof:m,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},b.Provider={$$typeof:f,_context:b},b.Consumer=b},he.createElement=Z,he.createFactory=function(b){var $=Z.bind(null,b);return $.type=b,$},he.createRef=function(){return{current:null}},he.forwardRef=function(b){return{$$typeof:v,render:b}},he.isValidElement=ce,he.lazy=function(b){return{$$typeof:y,_payload:{_status:-1,_result:b},_init:nt}},he.memo=function(b,$){return{$$typeof:h,type:b,compare:$===void 0?null:$}},he.startTransition=function(b){var $=V.transition;V.transition={};try{b()}finally{V.transition=$}},he.unstable_act=Q,he.useCallback=function(b,$){return Re.current.useCallback(b,$)},he.useContext=function(b){return Re.current.useContext(b)},he.useDebugValue=function(){},he.useDeferredValue=function(b){return Re.current.useDeferredValue(b)},he.useEffect=function(b,$){return Re.current.useEffect(b,$)},he.useId=function(){return Re.current.useId()},he.useImperativeHandle=function(b,$,le){return Re.current.useImperativeHandle(b,$,le)},he.useInsertionEffect=function(b,$){return Re.current.useInsertionEffect(b,$)},he.useLayoutEffect=function(b,$){return Re.current.useLayoutEffect(b,$)},he.useMemo=function(b,$){return Re.current.useMemo(b,$)},he.useReducer=function(b,$,le){return Re.current.useReducer(b,$,le)},he.useRef=function(b){return Re.current.useRef(b)},he.useState=function(b){return Re.current.useState(b)},he.useSyncExternalStore=function(b,$,le){return Re.current.useSyncExternalStore(b,$,le)},he.useTransition=function(){return Re.current.useTransition()},he.version="18.3.1",he}var Gh;function mc(){return Gh||(Gh=1,xu.exports=cw()),xu.exports}/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.production.min.js
|
|
13
13
|
*
|
|
@@ -15,7 +15,7 @@ var iw=Object.defineProperty;var qh=t=>{throw TypeError(t)};var ow=(t,r,i)=>r in
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Yh;function dw(){if(Yh)return xo;Yh=1;var t=mc(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,u=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function m(v,g,h){var
|
|
18
|
+
*/var Yh;function dw(){if(Yh)return xo;Yh=1;var t=mc(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,u=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function m(v,g,h){var y,x={},C=null,N=null;h!==void 0&&(C=""+h),g.key!==void 0&&(C=""+g.key),g.ref!==void 0&&(N=g.ref);for(y in g)a.call(g,y)&&!f.hasOwnProperty(y)&&(x[y]=g[y]);if(v&&v.defaultProps)for(y in g=v.defaultProps,g)x[y]===void 0&&(x[y]=g[y]);return{$$typeof:r,type:v,key:C,ref:N,props:x,_owner:u.current}}return xo.Fragment=i,xo.jsx=m,xo.jsxs=m,xo}var Zh;function fw(){return Zh||(Zh=1,wu.exports=dw()),wu.exports}var d=fw(),I=mc();const Jt=uw(I),hk=sw({__proto__:null,default:Jt},[I]);var Zs={},Su={exports:{}},xt={},ku={exports:{}},Cu={};/**
|
|
19
19
|
* @license React
|
|
20
20
|
* scheduler.production.min.js
|
|
21
21
|
*
|
|
@@ -23,7 +23,7 @@ var iw=Object.defineProperty;var qh=t=>{throw TypeError(t)};var ow=(t,r,i)=>r in
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var Xh;function hw(){return Xh||(Xh=1,(function(t){function r(V,re){var Q=V.length;V.push(re);e:for(;0<Q;){var b=Q-1>>>1,$=V[b];if(0<u($,re))V[b]=re,V[Q]=$,Q=b;else break e}}function i(V){return V.length===0?null:V[0]}function a(V){if(V.length===0)return null;var re=V[0],Q=V.pop();if(Q!==re){V[0]=Q;e:for(var b=0,$=V.length,le=$>>>1;b<le;){var de=2*(b+1)-1,ve=V[de],ge=de+1,Ce=V[ge];if(0>u(ve,Q))ge<$&&0>u(Ce,ve)?(V[b]=Ce,V[ge]=Q,b=ge):(V[b]=ve,V[de]=Q,b=de);else if(ge<$&&0>u(Ce,Q))V[b]=Ce,V[ge]=Q,b=ge;else break e}}return re}function u(V,re){var Q=V.sortIndex-re.sortIndex;return Q!==0?Q:V.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;t.unstable_now=function(){return f.now()}}else{var m=Date,v=m.now();t.unstable_now=function(){return m.now()-v}}var g=[],h=[],
|
|
26
|
+
*/var Xh;function hw(){return Xh||(Xh=1,(function(t){function r(V,re){var Q=V.length;V.push(re);e:for(;0<Q;){var b=Q-1>>>1,$=V[b];if(0<u($,re))V[b]=re,V[Q]=$,Q=b;else break e}}function i(V){return V.length===0?null:V[0]}function a(V){if(V.length===0)return null;var re=V[0],Q=V.pop();if(Q!==re){V[0]=Q;e:for(var b=0,$=V.length,le=$>>>1;b<le;){var de=2*(b+1)-1,ve=V[de],ge=de+1,Ce=V[ge];if(0>u(ve,Q))ge<$&&0>u(Ce,ve)?(V[b]=Ce,V[ge]=Q,b=ge):(V[b]=ve,V[de]=Q,b=de);else if(ge<$&&0>u(Ce,Q))V[b]=Ce,V[ge]=Q,b=ge;else break e}}return re}function u(V,re){var Q=V.sortIndex-re.sortIndex;return Q!==0?Q:V.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;t.unstable_now=function(){return f.now()}}else{var m=Date,v=m.now();t.unstable_now=function(){return m.now()-v}}var g=[],h=[],y=1,x=null,C=3,N=!1,A=!1,E=!1,M=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(V){for(var re=i(h);re!==null;){if(re.callback===null)a(h);else if(re.startTime<=V)a(h),re.sortIndex=re.expirationTime,r(g,re);else break;re=i(h)}}function j(V){if(E=!1,P(V),!A)if(i(g)!==null)A=!0,nt(D);else{var re=i(h);re!==null&&Re(j,re.startTime-V)}}function D(V,re){A=!1,E&&(E=!1,L(Z),Z=-1),N=!0;var Q=C;try{for(P(re),x=i(g);x!==null&&(!(x.expirationTime>re)||V&&!X());){var b=x.callback;if(typeof b=="function"){x.callback=null,C=x.priorityLevel;var $=b(x.expirationTime<=re);re=t.unstable_now(),typeof $=="function"?x.callback=$:x===i(g)&&a(g),P(re)}else a(g);x=i(g)}if(x!==null)var le=!0;else{var de=i(h);de!==null&&Re(j,de.startTime-re),le=!1}return le}finally{x=null,C=Q,N=!1}}var W=!1,te=null,Z=-1,se=5,ce=-1;function X(){return!(t.unstable_now()-ce<se)}function Te(){if(te!==null){var V=t.unstable_now();ce=V;var re=!0;try{re=te(!0,V)}finally{re?Be():(W=!1,te=null)}}else W=!1}var Be;if(typeof F=="function")Be=function(){F(Te)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,Ke=qe.port2;qe.port1.onmessage=Te,Be=function(){Ke.postMessage(null)}}else Be=function(){M(Te,0)};function nt(V){te=V,W||(W=!0,Be())}function Re(V,re){Z=M(function(){V(t.unstable_now())},re)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(V){V.callback=null},t.unstable_continueExecution=function(){A||N||(A=!0,nt(D))},t.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<V?Math.floor(1e3/V):5},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_getFirstCallbackNode=function(){return i(g)},t.unstable_next=function(V){switch(C){case 1:case 2:case 3:var re=3;break;default:re=C}var Q=C;C=re;try{return V()}finally{C=Q}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(V,re){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var Q=C;C=V;try{return re()}finally{C=Q}},t.unstable_scheduleCallback=function(V,re,Q){var b=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?b+Q:b):Q=b,V){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=Q+$,V={id:y++,callback:re,priorityLevel:V,startTime:Q,expirationTime:$,sortIndex:-1},Q>b?(V.sortIndex=Q,r(h,V),i(g)===null&&V===i(h)&&(E?(L(Z),Z=-1):E=!0,Re(j,Q-b))):(V.sortIndex=$,r(g,V),A||N||(A=!0,nt(D))),V},t.unstable_shouldYield=X,t.unstable_wrapCallback=function(V){var re=C;return function(){var Q=C;C=re;try{return V.apply(this,arguments)}finally{C=Q}}}})(Cu)),Cu}var Jh;function pw(){return Jh||(Jh=1,ku.exports=hw()),ku.exports}/**
|
|
27
27
|
* @license React
|
|
28
28
|
* react-dom.production.min.js
|
|
29
29
|
*
|
|
@@ -31,14 +31,14 @@ var iw=Object.defineProperty;var qh=t=>{throw TypeError(t)};var ow=(t,r,i)=>r in
|
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var ep;function mw(){if(ep)return xt;ep=1;var t=mc(),r=pw();function i(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,u={};function f(e,n){m(e,n),m(e+"Capture",n)}function m(e,n){for(u[e]=n,e=0;e<n.length;e++)a.add(n[e])}var v=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,h=/^[: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]*$/,
|
|
34
|
+
*/var ep;function mw(){if(ep)return xt;ep=1;var t=mc(),r=pw();function i(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,u={};function f(e,n){m(e,n),m(e+"Capture",n)}function m(e,n){for(u[e]=n,e=0;e<n.length;e++)a.add(n[e])}var v=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,h=/^[: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]*$/,y={},x={};function C(e){return g.call(x,e)?!0:g.call(y,e)?!1:h.test(e)?x[e]=!0:(y[e]=!0,!1)}function N(e,n,o,s){if(o!==null&&o.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return s?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function A(e,n,o,s){if(n===null||typeof n>"u"||N(e,n,o,s))return!0;if(s)return!1;if(o!==null)switch(o.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function E(e,n,o,s,l,c,p){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=s,this.attributeNamespace=l,this.mustUseProperty=o,this.propertyName=e,this.type=n,this.sanitizeURL=c,this.removeEmptyString=p}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new E(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];M[n]=new E(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new E(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new E(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){M[e]=new E(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new E(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new E(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new E(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new E(e,5,!1,e.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function F(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(L,F);M[n]=new E(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(L,F);M[n]=new E(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(L,F);M[n]=new E(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new E(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new E(e,1,!1,e.toLowerCase(),null,!0,!0)});function P(e,n,o,s){var l=M.hasOwnProperty(n)?M[n]:null;(l!==null?l.type!==0:s||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(A(n,o,l,s)&&(o=null),s||l===null?C(n)&&(o===null?e.removeAttribute(n):e.setAttribute(n,""+o)):l.mustUseProperty?e[l.propertyName]=o===null?l.type===3?!1:"":o:(n=l.attributeName,s=l.attributeNamespace,o===null?e.removeAttribute(n):(l=l.type,o=l===3||l===4&&o===!0?"":""+o,s?e.setAttributeNS(s,n,o):e.setAttribute(n,o))))}var j=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),W=Symbol.for("react.portal"),te=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),ce=Symbol.for("react.provider"),X=Symbol.for("react.context"),Te=Symbol.for("react.forward_ref"),Be=Symbol.for("react.suspense"),qe=Symbol.for("react.suspense_list"),Ke=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),Re=Symbol.for("react.offscreen"),V=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=V&&e[V]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Object.assign,b;function $(e){if(b===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);b=n&&n[1]||""}return`
|
|
35
35
|
`+b+e}var le=!1;function de(e,n){if(!e||le)return"";le=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(O){var s=O}Reflect.construct(e,[],n)}else{try{n.call()}catch(O){s=O}e.call(n.prototype)}else{try{throw Error()}catch(O){s=O}e()}}catch(O){if(O&&s&&typeof O.stack=="string"){for(var l=O.stack.split(`
|
|
36
36
|
`),c=s.stack.split(`
|
|
37
|
-
`),p=l.length-1,
|
|
38
|
-
`+l[p].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=p&&0<=y);break}}}finally{le=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?$(e):""}function ve(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return e=de(e.type,!1),e;case 11:return e=de(e.type.render,!1),e;case 1:return e=de(e.type,!0),e;default:return""}}function ge(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case te:return"Fragment";case W:return"Portal";case se:return"Profiler";case Z:return"StrictMode";case Be:return"Suspense";case qe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X:return(e.displayName||"Context")+".Consumer";case ce:return(e._context.displayName||"Context")+".Provider";case Te:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ke:return n=e.displayName||null,n!==null?n:ge(e.type)||"Memo";case nt:n=e._payload,e=e._init;try{return ge(e(n))}catch{}}return null}function Ce(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ge(n);case 8:return n===Z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function xe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _e(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ct(e){var n=_e(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),s=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var l=o.get,c=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(p){s=""+p,c.call(this,p)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(p){s=""+p},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Or(e){e._valueTracker||(e._valueTracker=ct(e))}function Mi(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),s="";return e&&(s=_e(e)?e.checked?"true":"false":e.value),e=s,e!==o?(n.setValue(e),!0):!1}function Ar(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Li(e,n){var o=n.checked;return Q({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function Uo(e,n){var o=n.defaultValue==null?"":n.defaultValue,s=n.checked!=null?n.checked:n.defaultChecked;o=xe(n.value!=null?n.value:o),e._wrapperState={initialChecked:s,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Tt(e,n){n=n.checked,n!=null&&P(e,"checked",n,!1)}function Kt(e,n){Tt(e,n);var o=xe(n.value),s=n.type;if(o!=null)s==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Ft(e,n.type,o):n.hasOwnProperty("defaultValue")&&Ft(e,n.type,xe(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function un(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var s=n.type;if(!(s!=="submit"&&s!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function Ft(e,n,o){(n!=="number"||Ar(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Pn=Array.isArray;function Dr(e,n,o,s){if(e=e.options,n){n={};for(var l=0;l<o.length;l++)n["$"+o[l]]=!0;for(o=0;o<e.length;o++)l=n.hasOwnProperty("$"+e[o].value),e[o].selected!==l&&(e[o].selected=l),l&&s&&(e[o].defaultSelected=!0)}else{for(o=""+xe(o),n=null,l=0;l<e.length;l++){if(e[l].value===o){e[l].selected=!0,s&&(e[l].defaultSelected=!0);return}n!==null||e[l].disabled||(n=e[l])}n!==null&&(n.selected=!0)}}function ba(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return Q({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function td(e,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(i(92));if(Pn(o)){if(1<o.length)throw Error(i(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:xe(o)}}function nd(e,n){var o=xe(n.value),s=xe(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),s!=null&&(e.defaultValue=""+s)}function rd(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function id(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ja(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?id(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bo,od=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,s,l){MSApp.execUnsafeLocalFunction(function(){return e(n,o,s,l)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Bo=Bo||document.createElement("div"),Bo.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Bo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Oi(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var Ai={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lg=["Webkit","ms","Moz","O"];Object.keys(Ai).forEach(function(e){lg.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Ai[n]=Ai[e]})});function sd(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||Ai.hasOwnProperty(e)&&Ai[e]?(""+n).trim():n+"px"}function ad(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var s=o.indexOf("--")===0,l=sd(o,n[o],s);o==="float"&&(o="cssFloat"),s?e.setProperty(o,l):e[o]=l}}var ug=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ta(e,n){if(n){if(ug[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(i(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(i(61))}if(n.style!=null&&typeof n.style!="object")throw Error(i(62))}}function Ra(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){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 Na=null;function Ia(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ma=null,Fr=null,$r=null;function ld(e){if(e=io(e)){if(typeof Ma!="function")throw Error(i(280));var n=e.stateNode;n&&(n=ds(n),Ma(e.stateNode,e.type,n))}}function ud(e){Fr?$r?$r.push(e):$r=[e]:Fr=e}function cd(){if(Fr){var e=Fr,n=$r;if($r=Fr=null,ld(e),n)for(e=0;e<n.length;e++)ld(n[e])}}function dd(e,n){return e(n)}function fd(){}var La=!1;function hd(e,n,o){if(La)return e(n,o);La=!0;try{return dd(e,n,o)}finally{La=!1,(Fr!==null||$r!==null)&&(fd(),cd())}}function Di(e,n){var o=e.stateNode;if(o===null)return null;var s=ds(o);if(s===null)return null;o=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,n,typeof o));return o}var Oa=!1;if(v)try{var Fi={};Object.defineProperty(Fi,"passive",{get:function(){Oa=!0}}),window.addEventListener("test",Fi,Fi),window.removeEventListener("test",Fi,Fi)}catch{Oa=!1}function cg(e,n,o,s,l,c,p,y,k){var O=Array.prototype.slice.call(arguments,3);try{n.apply(o,O)}catch(U){this.onError(U)}}var $i=!1,Ho=null,Wo=!1,Aa=null,dg={onError:function(e){$i=!0,Ho=e}};function fg(e,n,o,s,l,c,p,y,k){$i=!1,Ho=null,cg.apply(dg,arguments)}function hg(e,n,o,s,l,c,p,y,k){if(fg.apply(this,arguments),$i){if($i){var O=Ho;$i=!1,Ho=null}else throw Error(i(198));Wo||(Wo=!0,Aa=O)}}function or(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function pd(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function md(e){if(or(e)!==e)throw Error(i(188))}function pg(e){var n=e.alternate;if(!n){if(n=or(e),n===null)throw Error(i(188));return n!==e?null:e}for(var o=e,s=n;;){var l=o.return;if(l===null)break;var c=l.alternate;if(c===null){if(s=l.return,s!==null){o=s;continue}break}if(l.child===c.child){for(c=l.child;c;){if(c===o)return md(l),e;if(c===s)return md(l),n;c=c.sibling}throw Error(i(188))}if(o.return!==s.return)o=l,s=c;else{for(var p=!1,y=l.child;y;){if(y===o){p=!0,o=l,s=c;break}if(y===s){p=!0,s=l,o=c;break}y=y.sibling}if(!p){for(y=c.child;y;){if(y===o){p=!0,o=c,s=l;break}if(y===s){p=!0,s=c,o=l;break}y=y.sibling}if(!p)throw Error(i(189))}}if(o.alternate!==s)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:n}function vd(e){return e=pg(e),e!==null?gd(e):null}function gd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=gd(e);if(n!==null)return n;e=e.sibling}return null}var yd=r.unstable_scheduleCallback,wd=r.unstable_cancelCallback,mg=r.unstable_shouldYield,vg=r.unstable_requestPaint,Fe=r.unstable_now,gg=r.unstable_getCurrentPriorityLevel,Da=r.unstable_ImmediatePriority,xd=r.unstable_UserBlockingPriority,Vo=r.unstable_NormalPriority,yg=r.unstable_LowPriority,Sd=r.unstable_IdlePriority,qo=null,Qt=null;function wg(e){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(qo,e,void 0,(e.current.flags&128)===128)}catch{}}var $t=Math.clz32?Math.clz32:kg,xg=Math.log,Sg=Math.LN2;function kg(e){return e>>>=0,e===0?32:31-(xg(e)/Sg|0)|0}var Ko=64,Qo=4194304;function zi(e){switch(e&-e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Go(e,n){var o=e.pendingLanes;if(o===0)return 0;var s=0,l=e.suspendedLanes,c=e.pingedLanes,p=o&268435455;if(p!==0){var y=p&~l;y!==0?s=zi(y):(c&=p,c!==0&&(s=zi(c)))}else p=o&~l,p!==0?s=zi(p):c!==0&&(s=zi(c));if(s===0)return 0;if(n!==0&&n!==s&&(n&l)===0&&(l=s&-s,c=n&-n,l>=c||l===16&&(c&4194240)!==0))return n;if((s&4)!==0&&(s|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=s;0<n;)o=31-$t(n),l=1<<o,s|=e[o],n&=~l;return s}function Cg(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _g(e,n){for(var o=e.suspendedLanes,s=e.pingedLanes,l=e.expirationTimes,c=e.pendingLanes;0<c;){var p=31-$t(c),y=1<<p,k=l[p];k===-1?((y&o)===0||(y&s)!==0)&&(l[p]=Cg(y,n)):k<=n&&(e.expiredLanes|=y),c&=~y}}function Fa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function kd(){var e=Ko;return Ko<<=1,(Ko&4194240)===0&&(Ko=64),e}function $a(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Ui(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-$t(n),e[n]=o}function Eg(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<o;){var l=31-$t(o),c=1<<l;n[l]=0,s[l]=-1,e[l]=-1,o&=~c}}function za(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var s=31-$t(o),l=1<<s;l&n|e[s]&n&&(e[s]|=n),o&=~l}}var ke=0;function Cd(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var _d,Ua,Ed,Pd,bd,Ba=!1,Yo=[],bn=null,jn=null,Tn=null,Bi=new Map,Hi=new Map,Rn=[],Pg="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 submit".split(" ");function jd(e,n){switch(e){case"focusin":case"focusout":bn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Tn=null;break;case"pointerover":case"pointerout":Bi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hi.delete(n.pointerId)}}function Wi(e,n,o,s,l,c){return e===null||e.nativeEvent!==c?(e={blockedOn:n,domEventName:o,eventSystemFlags:s,nativeEvent:c,targetContainers:[l]},n!==null&&(n=io(n),n!==null&&Ua(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,l!==null&&n.indexOf(l)===-1&&n.push(l),e)}function bg(e,n,o,s,l){switch(n){case"focusin":return bn=Wi(bn,e,n,o,s,l),!0;case"dragenter":return jn=Wi(jn,e,n,o,s,l),!0;case"mouseover":return Tn=Wi(Tn,e,n,o,s,l),!0;case"pointerover":var c=l.pointerId;return Bi.set(c,Wi(Bi.get(c)||null,e,n,o,s,l)),!0;case"gotpointercapture":return c=l.pointerId,Hi.set(c,Wi(Hi.get(c)||null,e,n,o,s,l)),!0}return!1}function Td(e){var n=sr(e.target);if(n!==null){var o=or(n);if(o!==null){if(n=o.tag,n===13){if(n=pd(o),n!==null){e.blockedOn=n,bd(e.priority,function(){Ed(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=Wa(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var s=new o.constructor(o.type,o);Na=s,o.target.dispatchEvent(s),Na=null}else return n=io(o),n!==null&&Ua(n),e.blockedOn=o,!1;n.shift()}return!0}function Rd(e,n,o){Zo(e)&&o.delete(n)}function jg(){Ba=!1,bn!==null&&Zo(bn)&&(bn=null),jn!==null&&Zo(jn)&&(jn=null),Tn!==null&&Zo(Tn)&&(Tn=null),Bi.forEach(Rd),Hi.forEach(Rd)}function Vi(e,n){e.blockedOn===n&&(e.blockedOn=null,Ba||(Ba=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,jg)))}function qi(e){function n(l){return Vi(l,e)}if(0<Yo.length){Vi(Yo[0],e);for(var o=1;o<Yo.length;o++){var s=Yo[o];s.blockedOn===e&&(s.blockedOn=null)}}for(bn!==null&&Vi(bn,e),jn!==null&&Vi(jn,e),Tn!==null&&Vi(Tn,e),Bi.forEach(n),Hi.forEach(n),o=0;o<Rn.length;o++)s=Rn[o],s.blockedOn===e&&(s.blockedOn=null);for(;0<Rn.length&&(o=Rn[0],o.blockedOn===null);)Td(o),o.blockedOn===null&&Rn.shift()}var zr=j.ReactCurrentBatchConfig,Xo=!0;function Tg(e,n,o,s){var l=ke,c=zr.transition;zr.transition=null;try{ke=1,Ha(e,n,o,s)}finally{ke=l,zr.transition=c}}function Rg(e,n,o,s){var l=ke,c=zr.transition;zr.transition=null;try{ke=4,Ha(e,n,o,s)}finally{ke=l,zr.transition=c}}function Ha(e,n,o,s){if(Xo){var l=Wa(e,n,o,s);if(l===null)al(e,n,s,Jo,o),jd(e,s);else if(bg(l,e,n,o,s))s.stopPropagation();else if(jd(e,s),n&4&&-1<Pg.indexOf(e)){for(;l!==null;){var c=io(l);if(c!==null&&_d(c),c=Wa(e,n,o,s),c===null&&al(e,n,s,Jo,o),c===l)break;l=c}l!==null&&s.stopPropagation()}else al(e,n,s,null,o)}}var Jo=null;function Wa(e,n,o,s){if(Jo=null,e=Ia(s),e=sr(e),e!==null)if(n=or(e),n===null)e=null;else if(o=n.tag,o===13){if(e=pd(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Jo=e,null}function Nd(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(gg()){case Da:return 1;case xd:return 4;case Vo:case yg:return 16;case Sd:return 536870912;default:return 16}default:return 16}}var Nn=null,Va=null,es=null;function Id(){if(es)return es;var e,n=Va,o=n.length,s,l="value"in Nn?Nn.value:Nn.textContent,c=l.length;for(e=0;e<o&&n[e]===l[e];e++);var p=o-e;for(s=1;s<=p&&n[o-s]===l[c-s];s++);return es=l.slice(e,1<s?1-s:void 0)}function ts(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function ns(){return!0}function Md(){return!1}function _t(e){function n(o,s,l,c,p){this._reactName=o,this._targetInst=l,this.type=s,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(o=e[y],this[y]=o?o(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ns:Md,this.isPropagationStopped=Md,this}return Q(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ns)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ns)},persist:function(){},isPersistent:ns}),n}var Ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qa=_t(Ur),Ki=Q({},Ur,{view:0,detail:0}),Ng=_t(Ki),Ka,Qa,Qi,rs=Q({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ya,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qi&&(Qi&&e.type==="mousemove"?(Ka=e.screenX-Qi.screenX,Qa=e.screenY-Qi.screenY):Qa=Ka=0,Qi=e),Ka)},movementY:function(e){return"movementY"in e?e.movementY:Qa}}),Ld=_t(rs),Ig=Q({},rs,{dataTransfer:0}),Mg=_t(Ig),Lg=Q({},Ki,{relatedTarget:0}),Ga=_t(Lg),Og=Q({},Ur,{animationName:0,elapsedTime:0,pseudoElement:0}),Ag=_t(Og),Dg=Q({},Ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fg=_t(Dg),$g=Q({},Ur,{data:0}),Od=_t($g),zg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ug={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"},Bg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hg(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Bg[e])?!!n[e]:!1}function Ya(){return Hg}var Wg=Q({},Ki,{key:function(e){if(e.key){var n=zg[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=ts(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ug[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ya,charCode:function(e){return e.type==="keypress"?ts(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ts(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Vg=_t(Wg),qg=Q({},rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ad=_t(qg),Kg=Q({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ya}),Qg=_t(Kg),Gg=Q({},Ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yg=_t(Gg),Zg=Q({},rs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Xg=_t(Zg),Jg=[9,13,27,32],Za=v&&"CompositionEvent"in window,Gi=null;v&&"documentMode"in document&&(Gi=document.documentMode);var ey=v&&"TextEvent"in window&&!Gi,Dd=v&&(!Za||Gi&&8<Gi&&11>=Gi),Fd=" ",$d=!1;function zd(e,n){switch(e){case"keyup":return Jg.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ud(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Br=!1;function ty(e,n){switch(e){case"compositionend":return Ud(n);case"keypress":return n.which!==32?null:($d=!0,Fd);case"textInput":return e=n.data,e===Fd&&$d?null:e;default:return null}}function ny(e,n){if(Br)return e==="compositionend"||!Za&&zd(e,n)?(e=Id(),es=Va=Nn=null,Br=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Dd&&n.locale!=="ko"?null:n.data;default:return null}}var ry={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 Bd(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!ry[e.type]:n==="textarea"}function Hd(e,n,o,s){ud(s),n=ls(n,"onChange"),0<n.length&&(o=new qa("onChange","change",null,o,s),e.push({event:o,listeners:n}))}var Yi=null,Zi=null;function iy(e){lf(e,0)}function is(e){var n=Kr(e);if(Mi(n))return e}function oy(e,n){if(e==="change")return n}var Wd=!1;if(v){var Xa;if(v){var Ja="oninput"in document;if(!Ja){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),Ja=typeof Vd.oninput=="function"}Xa=Ja}else Xa=!1;Wd=Xa&&(!document.documentMode||9<document.documentMode)}function qd(){Yi&&(Yi.detachEvent("onpropertychange",Kd),Zi=Yi=null)}function Kd(e){if(e.propertyName==="value"&&is(Zi)){var n=[];Hd(n,Zi,e,Ia(e)),hd(iy,n)}}function sy(e,n,o){e==="focusin"?(qd(),Yi=n,Zi=o,Yi.attachEvent("onpropertychange",Kd)):e==="focusout"&&qd()}function ay(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return is(Zi)}function ly(e,n){if(e==="click")return is(n)}function uy(e,n){if(e==="input"||e==="change")return is(n)}function cy(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var zt=typeof Object.is=="function"?Object.is:cy;function Xi(e,n){if(zt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),s=Object.keys(n);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var l=o[s];if(!g.call(n,l)||!zt(e[l],n[l]))return!1}return!0}function Qd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gd(e,n){var o=Qd(e);e=0;for(var s;o;){if(o.nodeType===3){if(s=e+o.textContent.length,e<=n&&s>=n)return{node:o,offset:n-e};e=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Qd(o)}}function Yd(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Yd(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Zd(){for(var e=window,n=Ar();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=Ar(e.document)}return n}function el(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function dy(e){var n=Zd(),o=e.focusedElem,s=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&Yd(o.ownerDocument.documentElement,o)){if(s!==null&&el(o)){if(n=s.start,e=s.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=o.textContent.length,c=Math.min(s.start,l);s=s.end===void 0?c:Math.min(s.end,l),!e.extend&&c>s&&(l=s,s=c,c=l),l=Gd(o,c);var p=Gd(o,s);l&&p&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==p.node||e.focusOffset!==p.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),c>s?(e.addRange(n),e.extend(p.node,p.offset)):(n.setEnd(p.node,p.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)e=n[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fy=v&&"documentMode"in document&&11>=document.documentMode,Hr=null,tl=null,Ji=null,nl=!1;function Xd(e,n,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;nl||Hr==null||Hr!==Ar(s)||(s=Hr,"selectionStart"in s&&el(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Ji&&Xi(Ji,s)||(Ji=s,s=ls(tl,"onSelect"),0<s.length&&(n=new qa("onSelect","select",null,n,o),e.push({event:n,listeners:s}),n.target=Hr)))}function os(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var Wr={animationend:os("Animation","AnimationEnd"),animationiteration:os("Animation","AnimationIteration"),animationstart:os("Animation","AnimationStart"),transitionend:os("Transition","TransitionEnd")},rl={},Jd={};v&&(Jd=document.createElement("div").style,"AnimationEvent"in window||(delete Wr.animationend.animation,delete Wr.animationiteration.animation,delete Wr.animationstart.animation),"TransitionEvent"in window||delete Wr.transitionend.transition);function ss(e){if(rl[e])return rl[e];if(!Wr[e])return e;var n=Wr[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in Jd)return rl[e]=n[o];return e}var ef=ss("animationend"),tf=ss("animationiteration"),nf=ss("animationstart"),rf=ss("transitionend"),of=new Map,sf="abort auxClick 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(" ");function In(e,n){of.set(e,n),f(n,[e])}for(var il=0;il<sf.length;il++){var ol=sf[il],hy=ol.toLowerCase(),py=ol[0].toUpperCase()+ol.slice(1);In(hy,"on"+py)}In(ef,"onAnimationEnd"),In(tf,"onAnimationIteration"),In(nf,"onAnimationStart"),In("dblclick","onDoubleClick"),In("focusin","onFocus"),In("focusout","onBlur"),In(rf,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var eo="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(" "),my=new Set("cancel close invalid load scroll toggle".split(" ").concat(eo));function af(e,n,o){var s=e.type||"unknown-event";e.currentTarget=o,hg(s,n,void 0,e),e.currentTarget=null}function lf(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var s=e[o],l=s.event;s=s.listeners;e:{var c=void 0;if(n)for(var p=s.length-1;0<=p;p--){var y=s[p],k=y.instance,O=y.currentTarget;if(y=y.listener,k!==c&&l.isPropagationStopped())break e;af(l,y,O),c=k}else for(p=0;p<s.length;p++){if(y=s[p],k=y.instance,O=y.currentTarget,y=y.listener,k!==c&&l.isPropagationStopped())break e;af(l,y,O),c=k}}}if(Wo)throw e=Aa,Wo=!1,Aa=null,e}function be(e,n){var o=n[hl];o===void 0&&(o=n[hl]=new Set);var s=e+"__bubble";o.has(s)||(uf(n,e,2,!1),o.add(s))}function sl(e,n,o){var s=0;n&&(s|=4),uf(o,e,s,n)}var as="_reactListening"+Math.random().toString(36).slice(2);function to(e){if(!e[as]){e[as]=!0,a.forEach(function(o){o!=="selectionchange"&&(my.has(o)||sl(o,!1,e),sl(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[as]||(n[as]=!0,sl("selectionchange",!1,n))}}function uf(e,n,o,s){switch(Nd(n)){case 1:var l=Tg;break;case 4:l=Rg;break;default:l=Ha}o=l.bind(null,n,o,e),l=void 0,!Oa||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(l=!0),s?l!==void 0?e.addEventListener(n,o,{capture:!0,passive:l}):e.addEventListener(n,o,!0):l!==void 0?e.addEventListener(n,o,{passive:l}):e.addEventListener(n,o,!1)}function al(e,n,o,s,l){var c=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var p=s.tag;if(p===3||p===4){var y=s.stateNode.containerInfo;if(y===l||y.nodeType===8&&y.parentNode===l)break;if(p===4)for(p=s.return;p!==null;){var k=p.tag;if((k===3||k===4)&&(k=p.stateNode.containerInfo,k===l||k.nodeType===8&&k.parentNode===l))return;p=p.return}for(;y!==null;){if(p=sr(y),p===null)return;if(k=p.tag,k===5||k===6){s=c=p;continue e}y=y.parentNode}}s=s.return}hd(function(){var O=c,U=Ia(o),B=[];e:{var z=of.get(e);if(z!==void 0){var K=qa,Y=e;switch(e){case"keypress":if(ts(o)===0)break e;case"keydown":case"keyup":K=Vg;break;case"focusin":Y="focus",K=Ga;break;case"focusout":Y="blur",K=Ga;break;case"beforeblur":case"afterblur":K=Ga;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=Ld;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Mg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=Qg;break;case ef:case tf:case nf:K=Ag;break;case rf:K=Yg;break;case"scroll":K=Ng;break;case"wheel":K=Xg;break;case"copy":case"cut":case"paste":K=Fg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=Ad}var J=(n&4)!==0,$e=!J&&e==="scroll",T=J?z!==null?z+"Capture":null:z;J=[];for(var _=O,R;_!==null;){R=_;var H=R.stateNode;if(R.tag===5&&H!==null&&(R=H,T!==null&&(H=Di(_,T),H!=null&&J.push(no(_,H,R)))),$e)break;_=_.return}0<J.length&&(z=new K(z,Y,null,o,U),B.push({event:z,listeners:J}))}}if((n&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",K=e==="mouseout"||e==="pointerout",z&&o!==Na&&(Y=o.relatedTarget||o.fromElement)&&(sr(Y)||Y[cn]))break e;if((K||z)&&(z=U.window===U?U:(z=U.ownerDocument)?z.defaultView||z.parentWindow:window,K?(Y=o.relatedTarget||o.toElement,K=O,Y=Y?sr(Y):null,Y!==null&&($e=or(Y),Y!==$e||Y.tag!==5&&Y.tag!==6)&&(Y=null)):(K=null,Y=O),K!==Y)){if(J=Ld,H="onMouseLeave",T="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(J=Ad,H="onPointerLeave",T="onPointerEnter",_="pointer"),$e=K==null?z:Kr(K),R=Y==null?z:Kr(Y),z=new J(H,_+"leave",K,o,U),z.target=$e,z.relatedTarget=R,H=null,sr(U)===O&&(J=new J(T,_+"enter",Y,o,U),J.target=R,J.relatedTarget=$e,H=J),$e=H,K&&Y)t:{for(J=K,T=Y,_=0,R=J;R;R=Vr(R))_++;for(R=0,H=T;H;H=Vr(H))R++;for(;0<_-R;)J=Vr(J),_--;for(;0<R-_;)T=Vr(T),R--;for(;_--;){if(J===T||T!==null&&J===T.alternate)break t;J=Vr(J),T=Vr(T)}J=null}else J=null;K!==null&&cf(B,z,K,J,!1),Y!==null&&$e!==null&&cf(B,$e,Y,J,!0)}}e:{if(z=O?Kr(O):window,K=z.nodeName&&z.nodeName.toLowerCase(),K==="select"||K==="input"&&z.type==="file")var ee=oy;else if(Bd(z))if(Wd)ee=uy;else{ee=ay;var ie=sy}else(K=z.nodeName)&&K.toLowerCase()==="input"&&(z.type==="checkbox"||z.type==="radio")&&(ee=ly);if(ee&&(ee=ee(e,O))){Hd(B,ee,o,U);break e}ie&&ie(e,z,O),e==="focusout"&&(ie=z._wrapperState)&&ie.controlled&&z.type==="number"&&Ft(z,"number",z.value)}switch(ie=O?Kr(O):window,e){case"focusin":(Bd(ie)||ie.contentEditable==="true")&&(Hr=ie,tl=O,Ji=null);break;case"focusout":Ji=tl=Hr=null;break;case"mousedown":nl=!0;break;case"contextmenu":case"mouseup":case"dragend":nl=!1,Xd(B,o,U);break;case"selectionchange":if(fy)break;case"keydown":case"keyup":Xd(B,o,U)}var oe;if(Za)e:{switch(e){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else Br?zd(e,o)&&(ae="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(ae="onCompositionStart");ae&&(Dd&&o.locale!=="ko"&&(Br||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&Br&&(oe=Id()):(Nn=U,Va="value"in Nn?Nn.value:Nn.textContent,Br=!0)),ie=ls(O,ae),0<ie.length&&(ae=new Od(ae,e,null,o,U),B.push({event:ae,listeners:ie}),oe?ae.data=oe:(oe=Ud(o),oe!==null&&(ae.data=oe)))),(oe=ey?ty(e,o):ny(e,o))&&(O=ls(O,"onBeforeInput"),0<O.length&&(U=new Od("onBeforeInput","beforeinput",null,o,U),B.push({event:U,listeners:O}),U.data=oe))}lf(B,n)})}function no(e,n,o){return{instance:e,listener:n,currentTarget:o}}function ls(e,n){for(var o=n+"Capture",s=[];e!==null;){var l=e,c=l.stateNode;l.tag===5&&c!==null&&(l=c,c=Di(e,o),c!=null&&s.unshift(no(e,c,l)),c=Di(e,n),c!=null&&s.push(no(e,c,l))),e=e.return}return s}function Vr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function cf(e,n,o,s,l){for(var c=n._reactName,p=[];o!==null&&o!==s;){var y=o,k=y.alternate,O=y.stateNode;if(k!==null&&k===s)break;y.tag===5&&O!==null&&(y=O,l?(k=Di(o,c),k!=null&&p.unshift(no(o,k,y))):l||(k=Di(o,c),k!=null&&p.push(no(o,k,y)))),o=o.return}p.length!==0&&e.push({event:n,listeners:p})}var vy=/\r\n?/g,gy=/\u0000|\uFFFD/g;function df(e){return(typeof e=="string"?e:""+e).replace(vy,`
|
|
39
|
-
`).replace(gy,"")}function us(e,n,o){if(n=df(n),df(e)!==n&&o)throw Error(i(425))}function cs(){}var ll=null,ul=null;function cl(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var dl=typeof setTimeout=="function"?setTimeout:void 0,yy=typeof clearTimeout=="function"?clearTimeout:void 0,ff=typeof Promise=="function"?Promise:void 0,wy=typeof queueMicrotask=="function"?queueMicrotask:typeof ff<"u"?function(e){return ff.resolve(null).then(e).catch(xy)}:dl;function xy(e){setTimeout(function(){throw e})}function fl(e,n){var o=n,s=0;do{var l=o.nextSibling;if(e.removeChild(o),l&&l.nodeType===8)if(o=l.data,o==="/$"){if(s===0){e.removeChild(l),qi(n);return}s--}else o!=="$"&&o!=="$?"&&o!=="$!"||s++;o=l}while(o);qi(n)}function Mn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function hf(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}var qr=Math.random().toString(36).slice(2),Gt="__reactFiber$"+qr,ro="__reactProps$"+qr,cn="__reactContainer$"+qr,hl="__reactEvents$"+qr,Sy="__reactListeners$"+qr,ky="__reactHandles$"+qr;function sr(e){var n=e[Gt];if(n)return n;for(var o=e.parentNode;o;){if(n=o[cn]||o[Gt]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=hf(e);e!==null;){if(o=e[Gt])return o;e=hf(e)}return n}e=o,o=e.parentNode}return null}function io(e){return e=e[Gt]||e[cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Kr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function ds(e){return e[ro]||null}var pl=[],Qr=-1;function Ln(e){return{current:e}}function je(e){0>Qr||(e.current=pl[Qr],pl[Qr]=null,Qr--)}function Ee(e,n){Qr++,pl[Qr]=e.current,e.current=n}var On={},rt=Ln(On),mt=Ln(!1),ar=On;function Gr(e,n){var o=e.type.contextTypes;if(!o)return On;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===n)return s.__reactInternalMemoizedMaskedChildContext;var l={},c;for(c in o)l[c]=n[c];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function vt(e){return e=e.childContextTypes,e!=null}function fs(){je(mt),je(rt)}function pf(e,n,o){if(rt.current!==On)throw Error(i(168));Ee(rt,n),Ee(mt,o)}function mf(e,n,o){var s=e.stateNode;if(n=n.childContextTypes,typeof s.getChildContext!="function")return o;s=s.getChildContext();for(var l in s)if(!(l in n))throw Error(i(108,Ce(e)||"Unknown",l));return Q({},o,s)}function hs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,ar=rt.current,Ee(rt,e),Ee(mt,mt.current),!0}function vf(e,n,o){var s=e.stateNode;if(!s)throw Error(i(169));o?(e=mf(e,n,ar),s.__reactInternalMemoizedMergedChildContext=e,je(mt),je(rt),Ee(rt,e)):je(mt),Ee(mt,o)}var dn=null,ps=!1,ml=!1;function gf(e){dn===null?dn=[e]:dn.push(e)}function Cy(e){ps=!0,gf(e)}function An(){if(!ml&&dn!==null){ml=!0;var e=0,n=ke;try{var o=dn;for(ke=1;e<o.length;e++){var s=o[e];do s=s(!0);while(s!==null)}dn=null,ps=!1}catch(l){throw dn!==null&&(dn=dn.slice(e+1)),yd(Da,An),l}finally{ke=n,ml=!1}}return null}var Yr=[],Zr=0,ms=null,vs=0,Rt=[],Nt=0,lr=null,fn=1,hn="";function ur(e,n){Yr[Zr++]=vs,Yr[Zr++]=ms,ms=e,vs=n}function yf(e,n,o){Rt[Nt++]=fn,Rt[Nt++]=hn,Rt[Nt++]=lr,lr=e;var s=fn;e=hn;var l=32-$t(s)-1;s&=~(1<<l),o+=1;var c=32-$t(n)+l;if(30<c){var p=l-l%5;c=(s&(1<<p)-1).toString(32),s>>=p,l-=p,fn=1<<32-$t(n)+l|o<<l|s,hn=c+e}else fn=1<<c|o<<l|s,hn=e}function vl(e){e.return!==null&&(ur(e,1),yf(e,1,0))}function gl(e){for(;e===ms;)ms=Yr[--Zr],Yr[Zr]=null,vs=Yr[--Zr],Yr[Zr]=null;for(;e===lr;)lr=Rt[--Nt],Rt[Nt]=null,hn=Rt[--Nt],Rt[Nt]=null,fn=Rt[--Nt],Rt[Nt]=null}var Et=null,Pt=null,Ne=!1,Ut=null;function wf(e,n){var o=Ot(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=e,n=e.deletions,n===null?(e.deletions=[o],e.flags|=16):n.push(o)}function xf(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Et=e,Pt=Mn(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Et=e,Pt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=lr!==null?{id:fn,overflow:hn}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Ot(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,Et=e,Pt=null,!0):!1;default:return!1}}function yl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wl(e){if(Ne){var n=Pt;if(n){var o=n;if(!xf(e,n)){if(yl(e))throw Error(i(418));n=Mn(o.nextSibling);var s=Et;n&&xf(e,n)?wf(s,o):(e.flags=e.flags&-4097|2,Ne=!1,Et=e)}}else{if(yl(e))throw Error(i(418));e.flags=e.flags&-4097|2,Ne=!1,Et=e}}}function Sf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Et=e}function gs(e){if(e!==Et)return!1;if(!Ne)return Sf(e),Ne=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!cl(e.type,e.memoizedProps)),n&&(n=Pt)){if(yl(e))throw kf(),Error(i(418));for(;n;)wf(e,n),n=Mn(n.nextSibling)}if(Sf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(n===0){Pt=Mn(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}Pt=null}}else Pt=Et?Mn(e.stateNode.nextSibling):null;return!0}function kf(){for(var e=Pt;e;)e=Mn(e.nextSibling)}function Xr(){Pt=Et=null,Ne=!1}function xl(e){Ut===null?Ut=[e]:Ut.push(e)}var _y=j.ReactCurrentBatchConfig;function oo(e,n,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var s=o.stateNode}if(!s)throw Error(i(147,e));var l=s,c=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===c?n.ref:(n=function(p){var y=l.refs;p===null?delete y[c]:y[c]=p},n._stringRef=c,n)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function ys(e,n){throw e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Cf(e){var n=e._init;return n(e._payload)}function _f(e){function n(T,_){if(e){var R=T.deletions;R===null?(T.deletions=[_],T.flags|=16):R.push(_)}}function o(T,_){if(!e)return null;for(;_!==null;)n(T,_),_=_.sibling;return null}function s(T,_){for(T=new Map;_!==null;)_.key!==null?T.set(_.key,_):T.set(_.index,_),_=_.sibling;return T}function l(T,_){return T=Wn(T,_),T.index=0,T.sibling=null,T}function c(T,_,R){return T.index=R,e?(R=T.alternate,R!==null?(R=R.index,R<_?(T.flags|=2,_):R):(T.flags|=2,_)):(T.flags|=1048576,_)}function p(T){return e&&T.alternate===null&&(T.flags|=2),T}function y(T,_,R,H){return _===null||_.tag!==6?(_=du(R,T.mode,H),_.return=T,_):(_=l(_,R),_.return=T,_)}function k(T,_,R,H){var ee=R.type;return ee===te?U(T,_,R.props.children,H,R.key):_!==null&&(_.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===nt&&Cf(ee)===_.type)?(H=l(_,R.props),H.ref=oo(T,_,R),H.return=T,H):(H=Bs(R.type,R.key,R.props,null,T.mode,H),H.ref=oo(T,_,R),H.return=T,H)}function O(T,_,R,H){return _===null||_.tag!==4||_.stateNode.containerInfo!==R.containerInfo||_.stateNode.implementation!==R.implementation?(_=fu(R,T.mode,H),_.return=T,_):(_=l(_,R.children||[]),_.return=T,_)}function U(T,_,R,H,ee){return _===null||_.tag!==7?(_=gr(R,T.mode,H,ee),_.return=T,_):(_=l(_,R),_.return=T,_)}function B(T,_,R){if(typeof _=="string"&&_!==""||typeof _=="number")return _=du(""+_,T.mode,R),_.return=T,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case D:return R=Bs(_.type,_.key,_.props,null,T.mode,R),R.ref=oo(T,null,_),R.return=T,R;case W:return _=fu(_,T.mode,R),_.return=T,_;case nt:var H=_._init;return B(T,H(_._payload),R)}if(Pn(_)||re(_))return _=gr(_,T.mode,R,null),_.return=T,_;ys(T,_)}return null}function z(T,_,R,H){var ee=_!==null?_.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return ee!==null?null:y(T,_,""+R,H);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case D:return R.key===ee?k(T,_,R,H):null;case W:return R.key===ee?O(T,_,R,H):null;case nt:return ee=R._init,z(T,_,ee(R._payload),H)}if(Pn(R)||re(R))return ee!==null?null:U(T,_,R,H,null);ys(T,R)}return null}function K(T,_,R,H,ee){if(typeof H=="string"&&H!==""||typeof H=="number")return T=T.get(R)||null,y(_,T,""+H,ee);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case D:return T=T.get(H.key===null?R:H.key)||null,k(_,T,H,ee);case W:return T=T.get(H.key===null?R:H.key)||null,O(_,T,H,ee);case nt:var ie=H._init;return K(T,_,R,ie(H._payload),ee)}if(Pn(H)||re(H))return T=T.get(R)||null,U(_,T,H,ee,null);ys(_,H)}return null}function Y(T,_,R,H){for(var ee=null,ie=null,oe=_,ae=_=0,Ye=null;oe!==null&&ae<R.length;ae++){oe.index>ae?(Ye=oe,oe=null):Ye=oe.sibling;var we=z(T,oe,R[ae],H);if(we===null){oe===null&&(oe=Ye);break}e&&oe&&we.alternate===null&&n(T,oe),_=c(we,_,ae),ie===null?ee=we:ie.sibling=we,ie=we,oe=Ye}if(ae===R.length)return o(T,oe),Ne&&ur(T,ae),ee;if(oe===null){for(;ae<R.length;ae++)oe=B(T,R[ae],H),oe!==null&&(_=c(oe,_,ae),ie===null?ee=oe:ie.sibling=oe,ie=oe);return Ne&&ur(T,ae),ee}for(oe=s(T,oe);ae<R.length;ae++)Ye=K(oe,T,ae,R[ae],H),Ye!==null&&(e&&Ye.alternate!==null&&oe.delete(Ye.key===null?ae:Ye.key),_=c(Ye,_,ae),ie===null?ee=Ye:ie.sibling=Ye,ie=Ye);return e&&oe.forEach(function(Vn){return n(T,Vn)}),Ne&&ur(T,ae),ee}function J(T,_,R,H){var ee=re(R);if(typeof ee!="function")throw Error(i(150));if(R=ee.call(R),R==null)throw Error(i(151));for(var ie=ee=null,oe=_,ae=_=0,Ye=null,we=R.next();oe!==null&&!we.done;ae++,we=R.next()){oe.index>ae?(Ye=oe,oe=null):Ye=oe.sibling;var Vn=z(T,oe,we.value,H);if(Vn===null){oe===null&&(oe=Ye);break}e&&oe&&Vn.alternate===null&&n(T,oe),_=c(Vn,_,ae),ie===null?ee=Vn:ie.sibling=Vn,ie=Vn,oe=Ye}if(we.done)return o(T,oe),Ne&&ur(T,ae),ee;if(oe===null){for(;!we.done;ae++,we=R.next())we=B(T,we.value,H),we!==null&&(_=c(we,_,ae),ie===null?ee=we:ie.sibling=we,ie=we);return Ne&&ur(T,ae),ee}for(oe=s(T,oe);!we.done;ae++,we=R.next())we=K(oe,T,ae,we.value,H),we!==null&&(e&&we.alternate!==null&&oe.delete(we.key===null?ae:we.key),_=c(we,_,ae),ie===null?ee=we:ie.sibling=we,ie=we);return e&&oe.forEach(function(rw){return n(T,rw)}),Ne&&ur(T,ae),ee}function $e(T,_,R,H){if(typeof R=="object"&&R!==null&&R.type===te&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case D:e:{for(var ee=R.key,ie=_;ie!==null;){if(ie.key===ee){if(ee=R.type,ee===te){if(ie.tag===7){o(T,ie.sibling),_=l(ie,R.props.children),_.return=T,T=_;break e}}else if(ie.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===nt&&Cf(ee)===ie.type){o(T,ie.sibling),_=l(ie,R.props),_.ref=oo(T,ie,R),_.return=T,T=_;break e}o(T,ie);break}else n(T,ie);ie=ie.sibling}R.type===te?(_=gr(R.props.children,T.mode,H,R.key),_.return=T,T=_):(H=Bs(R.type,R.key,R.props,null,T.mode,H),H.ref=oo(T,_,R),H.return=T,T=H)}return p(T);case W:e:{for(ie=R.key;_!==null;){if(_.key===ie)if(_.tag===4&&_.stateNode.containerInfo===R.containerInfo&&_.stateNode.implementation===R.implementation){o(T,_.sibling),_=l(_,R.children||[]),_.return=T,T=_;break e}else{o(T,_);break}else n(T,_);_=_.sibling}_=fu(R,T.mode,H),_.return=T,T=_}return p(T);case nt:return ie=R._init,$e(T,_,ie(R._payload),H)}if(Pn(R))return Y(T,_,R,H);if(re(R))return J(T,_,R,H);ys(T,R)}return typeof R=="string"&&R!==""||typeof R=="number"?(R=""+R,_!==null&&_.tag===6?(o(T,_.sibling),_=l(_,R),_.return=T,T=_):(o(T,_),_=du(R,T.mode,H),_.return=T,T=_),p(T)):o(T,_)}return $e}var Jr=_f(!0),Ef=_f(!1),ws=Ln(null),xs=null,ei=null,Sl=null;function kl(){Sl=ei=xs=null}function Cl(e){var n=ws.current;je(ws),e._currentValue=n}function _l(e,n,o){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===o)break;e=e.return}}function ti(e,n){xs=e,Sl=ei=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(gt=!0),e.firstContext=null)}function It(e){var n=e._currentValue;if(Sl!==e)if(e={context:e,memoizedValue:n,next:null},ei===null){if(xs===null)throw Error(i(308));ei=e,xs.dependencies={lanes:0,firstContext:e}}else ei=ei.next=e;return n}var cr=null;function El(e){cr===null?cr=[e]:cr.push(e)}function Pf(e,n,o,s){var l=n.interleaved;return l===null?(o.next=o,El(n)):(o.next=l.next,l.next=o),n.interleaved=o,pn(e,s)}function pn(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var Dn=!1;function Pl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bf(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Fn(e,n,o){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ye&2)!==0){var l=s.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),s.pending=n,pn(e,o)}return l=s.interleaved,l===null?(n.next=n,El(s)):(n.next=l.next,l.next=n),s.interleaved=n,pn(e,o)}function Ss(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var s=n.lanes;s&=e.pendingLanes,o|=s,n.lanes=o,za(e,o)}}function jf(e,n){var o=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var l=null,c=null;if(o=o.firstBaseUpdate,o!==null){do{var p={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};c===null?l=c=p:c=c.next=p,o=o.next}while(o!==null);c===null?l=c=n:c=c.next=n}else l=c=n;o={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:s.shared,effects:s.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function ks(e,n,o,s){var l=e.updateQueue;Dn=!1;var c=l.firstBaseUpdate,p=l.lastBaseUpdate,y=l.shared.pending;if(y!==null){l.shared.pending=null;var k=y,O=k.next;k.next=null,p===null?c=O:p.next=O,p=k;var U=e.alternate;U!==null&&(U=U.updateQueue,y=U.lastBaseUpdate,y!==p&&(y===null?U.firstBaseUpdate=O:y.next=O,U.lastBaseUpdate=k))}if(c!==null){var B=l.baseState;p=0,U=O=k=null,y=c;do{var z=y.lane,K=y.eventTime;if((s&z)===z){U!==null&&(U=U.next={eventTime:K,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var Y=e,J=y;switch(z=n,K=o,J.tag){case 1:if(Y=J.payload,typeof Y=="function"){B=Y.call(K,B,z);break e}B=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=J.payload,z=typeof Y=="function"?Y.call(K,B,z):Y,z==null)break e;B=Q({},B,z);break e;case 2:Dn=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,z=l.effects,z===null?l.effects=[y]:z.push(y))}else K={eventTime:K,lane:z,tag:y.tag,payload:y.payload,callback:y.callback,next:null},U===null?(O=U=K,k=B):U=U.next=K,p|=z;if(y=y.next,y===null){if(y=l.shared.pending,y===null)break;z=y,y=z.next,z.next=null,l.lastBaseUpdate=z,l.shared.pending=null}}while(!0);if(U===null&&(k=B),l.baseState=k,l.firstBaseUpdate=O,l.lastBaseUpdate=U,n=l.shared.interleaved,n!==null){l=n;do p|=l.lane,l=l.next;while(l!==n)}else c===null&&(l.shared.lanes=0);hr|=p,e.lanes=p,e.memoizedState=B}}function Tf(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var s=e[n],l=s.callback;if(l!==null){if(s.callback=null,s=o,typeof l!="function")throw Error(i(191,l));l.call(s)}}}var so={},Yt=Ln(so),ao=Ln(so),lo=Ln(so);function dr(e){if(e===so)throw Error(i(174));return e}function bl(e,n){switch(Ee(lo,n),Ee(ao,e),Ee(Yt,so),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ja(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=ja(n,e)}je(Yt),Ee(Yt,n)}function ni(){je(Yt),je(ao),je(lo)}function Rf(e){dr(lo.current);var n=dr(Yt.current),o=ja(n,e.type);n!==o&&(Ee(ao,e),Ee(Yt,o))}function jl(e){ao.current===e&&(je(Yt),je(ao))}var Ie=Ln(0);function Cs(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Tl=[];function Rl(){for(var e=0;e<Tl.length;e++)Tl[e]._workInProgressVersionPrimary=null;Tl.length=0}var _s=j.ReactCurrentDispatcher,Nl=j.ReactCurrentBatchConfig,fr=0,Me=null,He=null,Qe=null,Es=!1,uo=!1,co=0,Ey=0;function it(){throw Error(i(321))}function Il(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!zt(e[o],n[o]))return!1;return!0}function Ml(e,n,o,s,l,c){if(fr=c,Me=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,_s.current=e===null||e.memoizedState===null?Ty:Ry,e=o(s,l),uo){c=0;do{if(uo=!1,co=0,25<=c)throw Error(i(301));c+=1,Qe=He=null,n.updateQueue=null,_s.current=Ny,e=o(s,l)}while(uo)}if(_s.current=js,n=He!==null&&He.next!==null,fr=0,Qe=He=Me=null,Es=!1,n)throw Error(i(300));return e}function Ll(){var e=co!==0;return co=0,e}function Zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Me.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Mt(){if(He===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var n=Qe===null?Me.memoizedState:Qe.next;if(n!==null)Qe=n,He=e;else{if(e===null)throw Error(i(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Qe===null?Me.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function fo(e,n){return typeof n=="function"?n(e):n}function Ol(e){var n=Mt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=He,l=s.baseQueue,c=o.pending;if(c!==null){if(l!==null){var p=l.next;l.next=c.next,c.next=p}s.baseQueue=l=c,o.pending=null}if(l!==null){c=l.next,s=s.baseState;var y=p=null,k=null,O=c;do{var U=O.lane;if((fr&U)===U)k!==null&&(k=k.next={lane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),s=O.hasEagerState?O.eagerState:e(s,O.action);else{var B={lane:U,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null};k===null?(y=k=B,p=s):k=k.next=B,Me.lanes|=U,hr|=U}O=O.next}while(O!==null&&O!==c);k===null?p=s:k.next=y,zt(s,n.memoizedState)||(gt=!0),n.memoizedState=s,n.baseState=p,n.baseQueue=k,o.lastRenderedState=s}if(e=o.interleaved,e!==null){l=e;do c=l.lane,Me.lanes|=c,hr|=c,l=l.next;while(l!==e)}else l===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function Al(e){var n=Mt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=o.dispatch,l=o.pending,c=n.memoizedState;if(l!==null){o.pending=null;var p=l=l.next;do c=e(c,p.action),p=p.next;while(p!==l);zt(c,n.memoizedState)||(gt=!0),n.memoizedState=c,n.baseQueue===null&&(n.baseState=c),o.lastRenderedState=c}return[c,s]}function Nf(){}function If(e,n){var o=Me,s=Mt(),l=n(),c=!zt(s.memoizedState,l);if(c&&(s.memoizedState=l,gt=!0),s=s.queue,Dl(Of.bind(null,o,s,e),[e]),s.getSnapshot!==n||c||Qe!==null&&Qe.memoizedState.tag&1){if(o.flags|=2048,ho(9,Lf.bind(null,o,s,l,n),void 0,null),Ge===null)throw Error(i(349));(fr&30)!==0||Mf(o,n,l)}return l}function Mf(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Me.updateQueue,n===null?(n={lastEffect:null,stores:null},Me.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function Lf(e,n,o,s){n.value=o,n.getSnapshot=s,Af(n)&&Df(e)}function Of(e,n,o){return o(function(){Af(n)&&Df(e)})}function Af(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!zt(e,o)}catch{return!0}}function Df(e){var n=pn(e,1);n!==null&&Vt(n,e,1,-1)}function Ff(e){var n=Zt();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:e},n.queue=e,e=e.dispatch=jy.bind(null,Me,e),[n.memoizedState,e]}function ho(e,n,o,s){return e={tag:e,create:n,destroy:o,deps:s,next:null},n=Me.updateQueue,n===null?(n={lastEffect:null,stores:null},Me.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(s=o.next,o.next=e,e.next=s,n.lastEffect=e)),e}function $f(){return Mt().memoizedState}function Ps(e,n,o,s){var l=Zt();Me.flags|=e,l.memoizedState=ho(1|n,o,void 0,s===void 0?null:s)}function bs(e,n,o,s){var l=Mt();s=s===void 0?null:s;var c=void 0;if(He!==null){var p=He.memoizedState;if(c=p.destroy,s!==null&&Il(s,p.deps)){l.memoizedState=ho(n,o,c,s);return}}Me.flags|=e,l.memoizedState=ho(1|n,o,c,s)}function zf(e,n){return Ps(8390656,8,e,n)}function Dl(e,n){return bs(2048,8,e,n)}function Uf(e,n){return bs(4,2,e,n)}function Bf(e,n){return bs(4,4,e,n)}function Hf(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Wf(e,n,o){return o=o!=null?o.concat([e]):null,bs(4,4,Hf.bind(null,n,e),o)}function Fl(){}function Vf(e,n){var o=Mt();n=n===void 0?null:n;var s=o.memoizedState;return s!==null&&n!==null&&Il(n,s[1])?s[0]:(o.memoizedState=[e,n],e)}function qf(e,n){var o=Mt();n=n===void 0?null:n;var s=o.memoizedState;return s!==null&&n!==null&&Il(n,s[1])?s[0]:(e=e(),o.memoizedState=[e,n],e)}function Kf(e,n,o){return(fr&21)===0?(e.baseState&&(e.baseState=!1,gt=!0),e.memoizedState=o):(zt(o,n)||(o=kd(),Me.lanes|=o,hr|=o,e.baseState=!0),n)}function Py(e,n){var o=ke;ke=o!==0&&4>o?o:4,e(!0);var s=Nl.transition;Nl.transition={};try{e(!1),n()}finally{ke=o,Nl.transition=s}}function Qf(){return Mt().memoizedState}function by(e,n,o){var s=Bn(e);if(o={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null},Gf(e))Yf(n,o);else if(o=Pf(e,n,o,s),o!==null){var l=ft();Vt(o,e,s,l),Zf(o,n,s)}}function jy(e,n,o){var s=Bn(e),l={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null};if(Gf(e))Yf(n,l);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=n.lastRenderedReducer,c!==null))try{var p=n.lastRenderedState,y=c(p,o);if(l.hasEagerState=!0,l.eagerState=y,zt(y,p)){var k=n.interleaved;k===null?(l.next=l,El(n)):(l.next=k.next,k.next=l),n.interleaved=l;return}}catch{}finally{}o=Pf(e,n,l,s),o!==null&&(l=ft(),Vt(o,e,s,l),Zf(o,n,s))}}function Gf(e){var n=e.alternate;return e===Me||n!==null&&n===Me}function Yf(e,n){uo=Es=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function Zf(e,n,o){if((o&4194240)!==0){var s=n.lanes;s&=e.pendingLanes,o|=s,n.lanes=o,za(e,o)}}var js={readContext:It,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},Ty={readContext:It,useCallback:function(e,n){return Zt().memoizedState=[e,n===void 0?null:n],e},useContext:It,useEffect:zf,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,Ps(4194308,4,Hf.bind(null,n,e),o)},useLayoutEffect:function(e,n){return Ps(4194308,4,e,n)},useInsertionEffect:function(e,n){return Ps(4,2,e,n)},useMemo:function(e,n){var o=Zt();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var s=Zt();return n=o!==void 0?o(n):n,s.memoizedState=s.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},s.queue=e,e=e.dispatch=by.bind(null,Me,e),[s.memoizedState,e]},useRef:function(e){var n=Zt();return e={current:e},n.memoizedState=e},useState:Ff,useDebugValue:Fl,useDeferredValue:function(e){return Zt().memoizedState=e},useTransition:function(){var e=Ff(!1),n=e[0];return e=Py.bind(null,e[1]),Zt().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var s=Me,l=Zt();if(Ne){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),Ge===null)throw Error(i(349));(fr&30)!==0||Mf(s,n,o)}l.memoizedState=o;var c={value:o,getSnapshot:n};return l.queue=c,zf(Of.bind(null,s,c,e),[e]),s.flags|=2048,ho(9,Lf.bind(null,s,c,o,n),void 0,null),o},useId:function(){var e=Zt(),n=Ge.identifierPrefix;if(Ne){var o=hn,s=fn;o=(s&~(1<<32-$t(s)-1)).toString(32)+o,n=":"+n+"R"+o,o=co++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=Ey++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Ry={readContext:It,useCallback:Vf,useContext:It,useEffect:Dl,useImperativeHandle:Wf,useInsertionEffect:Uf,useLayoutEffect:Bf,useMemo:qf,useReducer:Ol,useRef:$f,useState:function(){return Ol(fo)},useDebugValue:Fl,useDeferredValue:function(e){var n=Mt();return Kf(n,He.memoizedState,e)},useTransition:function(){var e=Ol(fo)[0],n=Mt().memoizedState;return[e,n]},useMutableSource:Nf,useSyncExternalStore:If,useId:Qf,unstable_isNewReconciler:!1},Ny={readContext:It,useCallback:Vf,useContext:It,useEffect:Dl,useImperativeHandle:Wf,useInsertionEffect:Uf,useLayoutEffect:Bf,useMemo:qf,useReducer:Al,useRef:$f,useState:function(){return Al(fo)},useDebugValue:Fl,useDeferredValue:function(e){var n=Mt();return He===null?n.memoizedState=e:Kf(n,He.memoizedState,e)},useTransition:function(){var e=Al(fo)[0],n=Mt().memoizedState;return[e,n]},useMutableSource:Nf,useSyncExternalStore:If,useId:Qf,unstable_isNewReconciler:!1};function Bt(e,n){if(e&&e.defaultProps){n=Q({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function $l(e,n,o,s){n=e.memoizedState,o=o(s,n),o=o==null?n:Q({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Ts={isMounted:function(e){return(e=e._reactInternals)?or(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var s=ft(),l=Bn(e),c=mn(s,l);c.payload=n,o!=null&&(c.callback=o),n=Fn(e,c,l),n!==null&&(Vt(n,e,l,s),Ss(n,e,l))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var s=ft(),l=Bn(e),c=mn(s,l);c.tag=1,c.payload=n,o!=null&&(c.callback=o),n=Fn(e,c,l),n!==null&&(Vt(n,e,l,s),Ss(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=ft(),s=Bn(e),l=mn(o,s);l.tag=2,n!=null&&(l.callback=n),n=Fn(e,l,s),n!==null&&(Vt(n,e,s,o),Ss(n,e,s))}};function Xf(e,n,o,s,l,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,c,p):n.prototype&&n.prototype.isPureReactComponent?!Xi(o,s)||!Xi(l,c):!0}function Jf(e,n,o){var s=!1,l=On,c=n.contextType;return typeof c=="object"&&c!==null?c=It(c):(l=vt(n)?ar:rt.current,s=n.contextTypes,c=(s=s!=null)?Gr(e,l):On),n=new n(o,c),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Ts,e.stateNode=n,n._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=c),n}function eh(e,n,o,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,s),n.state!==e&&Ts.enqueueReplaceState(n,n.state,null)}function zl(e,n,o,s){var l=e.stateNode;l.props=o,l.state=e.memoizedState,l.refs={},Pl(e);var c=n.contextType;typeof c=="object"&&c!==null?l.context=It(c):(c=vt(n)?ar:rt.current,l.context=Gr(e,c)),l.state=e.memoizedState,c=n.getDerivedStateFromProps,typeof c=="function"&&($l(e,n,c,o),l.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(n=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),n!==l.state&&Ts.enqueueReplaceState(l,l.state,null),ks(e,o,l,s),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function ri(e,n){try{var o="",s=n;do o+=ve(s),s=s.return;while(s);var l=o}catch(c){l=`
|
|
37
|
+
`),p=l.length-1,w=c.length-1;1<=p&&0<=w&&l[p]!==c[w];)w--;for(;1<=p&&0<=w;p--,w--)if(l[p]!==c[w]){if(p!==1||w!==1)do if(p--,w--,0>w||l[p]!==c[w]){var k=`
|
|
38
|
+
`+l[p].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=p&&0<=w);break}}}finally{le=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?$(e):""}function ve(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return e=de(e.type,!1),e;case 11:return e=de(e.type.render,!1),e;case 1:return e=de(e.type,!0),e;default:return""}}function ge(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case te:return"Fragment";case W:return"Portal";case se:return"Profiler";case Z:return"StrictMode";case Be:return"Suspense";case qe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X:return(e.displayName||"Context")+".Consumer";case ce:return(e._context.displayName||"Context")+".Provider";case Te:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ke:return n=e.displayName||null,n!==null?n:ge(e.type)||"Memo";case nt:n=e._payload,e=e._init;try{return ge(e(n))}catch{}}return null}function Ce(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ge(n);case 8:return n===Z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function xe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _e(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ct(e){var n=_e(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),s=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var l=o.get,c=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(p){s=""+p,c.call(this,p)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(p){s=""+p},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Or(e){e._valueTracker||(e._valueTracker=ct(e))}function Mi(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),s="";return e&&(s=_e(e)?e.checked?"true":"false":e.value),e=s,e!==o?(n.setValue(e),!0):!1}function Ar(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Li(e,n){var o=n.checked;return Q({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function Uo(e,n){var o=n.defaultValue==null?"":n.defaultValue,s=n.checked!=null?n.checked:n.defaultChecked;o=xe(n.value!=null?n.value:o),e._wrapperState={initialChecked:s,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Tt(e,n){n=n.checked,n!=null&&P(e,"checked",n,!1)}function Kt(e,n){Tt(e,n);var o=xe(n.value),s=n.type;if(o!=null)s==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Ft(e,n.type,o):n.hasOwnProperty("defaultValue")&&Ft(e,n.type,xe(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function un(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var s=n.type;if(!(s!=="submit"&&s!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function Ft(e,n,o){(n!=="number"||Ar(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Pn=Array.isArray;function Dr(e,n,o,s){if(e=e.options,n){n={};for(var l=0;l<o.length;l++)n["$"+o[l]]=!0;for(o=0;o<e.length;o++)l=n.hasOwnProperty("$"+e[o].value),e[o].selected!==l&&(e[o].selected=l),l&&s&&(e[o].defaultSelected=!0)}else{for(o=""+xe(o),n=null,l=0;l<e.length;l++){if(e[l].value===o){e[l].selected=!0,s&&(e[l].defaultSelected=!0);return}n!==null||e[l].disabled||(n=e[l])}n!==null&&(n.selected=!0)}}function ba(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return Q({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function td(e,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(i(92));if(Pn(o)){if(1<o.length)throw Error(i(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:xe(o)}}function nd(e,n){var o=xe(n.value),s=xe(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),s!=null&&(e.defaultValue=""+s)}function rd(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function id(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ja(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?id(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bo,od=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,s,l){MSApp.execUnsafeLocalFunction(function(){return e(n,o,s,l)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Bo=Bo||document.createElement("div"),Bo.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Bo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Oi(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var Ai={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lg=["Webkit","ms","Moz","O"];Object.keys(Ai).forEach(function(e){lg.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Ai[n]=Ai[e]})});function sd(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||Ai.hasOwnProperty(e)&&Ai[e]?(""+n).trim():n+"px"}function ad(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var s=o.indexOf("--")===0,l=sd(o,n[o],s);o==="float"&&(o="cssFloat"),s?e.setProperty(o,l):e[o]=l}}var ug=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ta(e,n){if(n){if(ug[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(i(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(i(61))}if(n.style!=null&&typeof n.style!="object")throw Error(i(62))}}function Ra(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){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 Na=null;function Ia(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ma=null,Fr=null,$r=null;function ld(e){if(e=io(e)){if(typeof Ma!="function")throw Error(i(280));var n=e.stateNode;n&&(n=ds(n),Ma(e.stateNode,e.type,n))}}function ud(e){Fr?$r?$r.push(e):$r=[e]:Fr=e}function cd(){if(Fr){var e=Fr,n=$r;if($r=Fr=null,ld(e),n)for(e=0;e<n.length;e++)ld(n[e])}}function dd(e,n){return e(n)}function fd(){}var La=!1;function hd(e,n,o){if(La)return e(n,o);La=!0;try{return dd(e,n,o)}finally{La=!1,(Fr!==null||$r!==null)&&(fd(),cd())}}function Di(e,n){var o=e.stateNode;if(o===null)return null;var s=ds(o);if(s===null)return null;o=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,n,typeof o));return o}var Oa=!1;if(v)try{var Fi={};Object.defineProperty(Fi,"passive",{get:function(){Oa=!0}}),window.addEventListener("test",Fi,Fi),window.removeEventListener("test",Fi,Fi)}catch{Oa=!1}function cg(e,n,o,s,l,c,p,w,k){var O=Array.prototype.slice.call(arguments,3);try{n.apply(o,O)}catch(U){this.onError(U)}}var $i=!1,Ho=null,Wo=!1,Aa=null,dg={onError:function(e){$i=!0,Ho=e}};function fg(e,n,o,s,l,c,p,w,k){$i=!1,Ho=null,cg.apply(dg,arguments)}function hg(e,n,o,s,l,c,p,w,k){if(fg.apply(this,arguments),$i){if($i){var O=Ho;$i=!1,Ho=null}else throw Error(i(198));Wo||(Wo=!0,Aa=O)}}function or(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function pd(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function md(e){if(or(e)!==e)throw Error(i(188))}function pg(e){var n=e.alternate;if(!n){if(n=or(e),n===null)throw Error(i(188));return n!==e?null:e}for(var o=e,s=n;;){var l=o.return;if(l===null)break;var c=l.alternate;if(c===null){if(s=l.return,s!==null){o=s;continue}break}if(l.child===c.child){for(c=l.child;c;){if(c===o)return md(l),e;if(c===s)return md(l),n;c=c.sibling}throw Error(i(188))}if(o.return!==s.return)o=l,s=c;else{for(var p=!1,w=l.child;w;){if(w===o){p=!0,o=l,s=c;break}if(w===s){p=!0,s=l,o=c;break}w=w.sibling}if(!p){for(w=c.child;w;){if(w===o){p=!0,o=c,s=l;break}if(w===s){p=!0,s=c,o=l;break}w=w.sibling}if(!p)throw Error(i(189))}}if(o.alternate!==s)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:n}function vd(e){return e=pg(e),e!==null?gd(e):null}function gd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=gd(e);if(n!==null)return n;e=e.sibling}return null}var yd=r.unstable_scheduleCallback,wd=r.unstable_cancelCallback,mg=r.unstable_shouldYield,vg=r.unstable_requestPaint,Fe=r.unstable_now,gg=r.unstable_getCurrentPriorityLevel,Da=r.unstable_ImmediatePriority,xd=r.unstable_UserBlockingPriority,Vo=r.unstable_NormalPriority,yg=r.unstable_LowPriority,Sd=r.unstable_IdlePriority,qo=null,Qt=null;function wg(e){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(qo,e,void 0,(e.current.flags&128)===128)}catch{}}var $t=Math.clz32?Math.clz32:kg,xg=Math.log,Sg=Math.LN2;function kg(e){return e>>>=0,e===0?32:31-(xg(e)/Sg|0)|0}var Ko=64,Qo=4194304;function zi(e){switch(e&-e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Go(e,n){var o=e.pendingLanes;if(o===0)return 0;var s=0,l=e.suspendedLanes,c=e.pingedLanes,p=o&268435455;if(p!==0){var w=p&~l;w!==0?s=zi(w):(c&=p,c!==0&&(s=zi(c)))}else p=o&~l,p!==0?s=zi(p):c!==0&&(s=zi(c));if(s===0)return 0;if(n!==0&&n!==s&&(n&l)===0&&(l=s&-s,c=n&-n,l>=c||l===16&&(c&4194240)!==0))return n;if((s&4)!==0&&(s|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=s;0<n;)o=31-$t(n),l=1<<o,s|=e[o],n&=~l;return s}function Cg(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _g(e,n){for(var o=e.suspendedLanes,s=e.pingedLanes,l=e.expirationTimes,c=e.pendingLanes;0<c;){var p=31-$t(c),w=1<<p,k=l[p];k===-1?((w&o)===0||(w&s)!==0)&&(l[p]=Cg(w,n)):k<=n&&(e.expiredLanes|=w),c&=~w}}function Fa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function kd(){var e=Ko;return Ko<<=1,(Ko&4194240)===0&&(Ko=64),e}function $a(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Ui(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-$t(n),e[n]=o}function Eg(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<o;){var l=31-$t(o),c=1<<l;n[l]=0,s[l]=-1,e[l]=-1,o&=~c}}function za(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var s=31-$t(o),l=1<<s;l&n|e[s]&n&&(e[s]|=n),o&=~l}}var ke=0;function Cd(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var _d,Ua,Ed,Pd,bd,Ba=!1,Yo=[],bn=null,jn=null,Tn=null,Bi=new Map,Hi=new Map,Rn=[],Pg="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 submit".split(" ");function jd(e,n){switch(e){case"focusin":case"focusout":bn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Tn=null;break;case"pointerover":case"pointerout":Bi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hi.delete(n.pointerId)}}function Wi(e,n,o,s,l,c){return e===null||e.nativeEvent!==c?(e={blockedOn:n,domEventName:o,eventSystemFlags:s,nativeEvent:c,targetContainers:[l]},n!==null&&(n=io(n),n!==null&&Ua(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,l!==null&&n.indexOf(l)===-1&&n.push(l),e)}function bg(e,n,o,s,l){switch(n){case"focusin":return bn=Wi(bn,e,n,o,s,l),!0;case"dragenter":return jn=Wi(jn,e,n,o,s,l),!0;case"mouseover":return Tn=Wi(Tn,e,n,o,s,l),!0;case"pointerover":var c=l.pointerId;return Bi.set(c,Wi(Bi.get(c)||null,e,n,o,s,l)),!0;case"gotpointercapture":return c=l.pointerId,Hi.set(c,Wi(Hi.get(c)||null,e,n,o,s,l)),!0}return!1}function Td(e){var n=sr(e.target);if(n!==null){var o=or(n);if(o!==null){if(n=o.tag,n===13){if(n=pd(o),n!==null){e.blockedOn=n,bd(e.priority,function(){Ed(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=Wa(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var s=new o.constructor(o.type,o);Na=s,o.target.dispatchEvent(s),Na=null}else return n=io(o),n!==null&&Ua(n),e.blockedOn=o,!1;n.shift()}return!0}function Rd(e,n,o){Zo(e)&&o.delete(n)}function jg(){Ba=!1,bn!==null&&Zo(bn)&&(bn=null),jn!==null&&Zo(jn)&&(jn=null),Tn!==null&&Zo(Tn)&&(Tn=null),Bi.forEach(Rd),Hi.forEach(Rd)}function Vi(e,n){e.blockedOn===n&&(e.blockedOn=null,Ba||(Ba=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,jg)))}function qi(e){function n(l){return Vi(l,e)}if(0<Yo.length){Vi(Yo[0],e);for(var o=1;o<Yo.length;o++){var s=Yo[o];s.blockedOn===e&&(s.blockedOn=null)}}for(bn!==null&&Vi(bn,e),jn!==null&&Vi(jn,e),Tn!==null&&Vi(Tn,e),Bi.forEach(n),Hi.forEach(n),o=0;o<Rn.length;o++)s=Rn[o],s.blockedOn===e&&(s.blockedOn=null);for(;0<Rn.length&&(o=Rn[0],o.blockedOn===null);)Td(o),o.blockedOn===null&&Rn.shift()}var zr=j.ReactCurrentBatchConfig,Xo=!0;function Tg(e,n,o,s){var l=ke,c=zr.transition;zr.transition=null;try{ke=1,Ha(e,n,o,s)}finally{ke=l,zr.transition=c}}function Rg(e,n,o,s){var l=ke,c=zr.transition;zr.transition=null;try{ke=4,Ha(e,n,o,s)}finally{ke=l,zr.transition=c}}function Ha(e,n,o,s){if(Xo){var l=Wa(e,n,o,s);if(l===null)al(e,n,s,Jo,o),jd(e,s);else if(bg(l,e,n,o,s))s.stopPropagation();else if(jd(e,s),n&4&&-1<Pg.indexOf(e)){for(;l!==null;){var c=io(l);if(c!==null&&_d(c),c=Wa(e,n,o,s),c===null&&al(e,n,s,Jo,o),c===l)break;l=c}l!==null&&s.stopPropagation()}else al(e,n,s,null,o)}}var Jo=null;function Wa(e,n,o,s){if(Jo=null,e=Ia(s),e=sr(e),e!==null)if(n=or(e),n===null)e=null;else if(o=n.tag,o===13){if(e=pd(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Jo=e,null}function Nd(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(gg()){case Da:return 1;case xd:return 4;case Vo:case yg:return 16;case Sd:return 536870912;default:return 16}default:return 16}}var Nn=null,Va=null,es=null;function Id(){if(es)return es;var e,n=Va,o=n.length,s,l="value"in Nn?Nn.value:Nn.textContent,c=l.length;for(e=0;e<o&&n[e]===l[e];e++);var p=o-e;for(s=1;s<=p&&n[o-s]===l[c-s];s++);return es=l.slice(e,1<s?1-s:void 0)}function ts(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function ns(){return!0}function Md(){return!1}function _t(e){function n(o,s,l,c,p){this._reactName=o,this._targetInst=l,this.type=s,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(o=e[w],this[w]=o?o(c):c[w]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ns:Md,this.isPropagationStopped=Md,this}return Q(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ns)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ns)},persist:function(){},isPersistent:ns}),n}var Ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qa=_t(Ur),Ki=Q({},Ur,{view:0,detail:0}),Ng=_t(Ki),Ka,Qa,Qi,rs=Q({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ya,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qi&&(Qi&&e.type==="mousemove"?(Ka=e.screenX-Qi.screenX,Qa=e.screenY-Qi.screenY):Qa=Ka=0,Qi=e),Ka)},movementY:function(e){return"movementY"in e?e.movementY:Qa}}),Ld=_t(rs),Ig=Q({},rs,{dataTransfer:0}),Mg=_t(Ig),Lg=Q({},Ki,{relatedTarget:0}),Ga=_t(Lg),Og=Q({},Ur,{animationName:0,elapsedTime:0,pseudoElement:0}),Ag=_t(Og),Dg=Q({},Ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fg=_t(Dg),$g=Q({},Ur,{data:0}),Od=_t($g),zg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ug={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"},Bg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hg(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Bg[e])?!!n[e]:!1}function Ya(){return Hg}var Wg=Q({},Ki,{key:function(e){if(e.key){var n=zg[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=ts(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ug[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ya,charCode:function(e){return e.type==="keypress"?ts(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ts(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Vg=_t(Wg),qg=Q({},rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ad=_t(qg),Kg=Q({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ya}),Qg=_t(Kg),Gg=Q({},Ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yg=_t(Gg),Zg=Q({},rs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Xg=_t(Zg),Jg=[9,13,27,32],Za=v&&"CompositionEvent"in window,Gi=null;v&&"documentMode"in document&&(Gi=document.documentMode);var ey=v&&"TextEvent"in window&&!Gi,Dd=v&&(!Za||Gi&&8<Gi&&11>=Gi),Fd=" ",$d=!1;function zd(e,n){switch(e){case"keyup":return Jg.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ud(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Br=!1;function ty(e,n){switch(e){case"compositionend":return Ud(n);case"keypress":return n.which!==32?null:($d=!0,Fd);case"textInput":return e=n.data,e===Fd&&$d?null:e;default:return null}}function ny(e,n){if(Br)return e==="compositionend"||!Za&&zd(e,n)?(e=Id(),es=Va=Nn=null,Br=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Dd&&n.locale!=="ko"?null:n.data;default:return null}}var ry={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 Bd(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!ry[e.type]:n==="textarea"}function Hd(e,n,o,s){ud(s),n=ls(n,"onChange"),0<n.length&&(o=new qa("onChange","change",null,o,s),e.push({event:o,listeners:n}))}var Yi=null,Zi=null;function iy(e){lf(e,0)}function is(e){var n=Kr(e);if(Mi(n))return e}function oy(e,n){if(e==="change")return n}var Wd=!1;if(v){var Xa;if(v){var Ja="oninput"in document;if(!Ja){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),Ja=typeof Vd.oninput=="function"}Xa=Ja}else Xa=!1;Wd=Xa&&(!document.documentMode||9<document.documentMode)}function qd(){Yi&&(Yi.detachEvent("onpropertychange",Kd),Zi=Yi=null)}function Kd(e){if(e.propertyName==="value"&&is(Zi)){var n=[];Hd(n,Zi,e,Ia(e)),hd(iy,n)}}function sy(e,n,o){e==="focusin"?(qd(),Yi=n,Zi=o,Yi.attachEvent("onpropertychange",Kd)):e==="focusout"&&qd()}function ay(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return is(Zi)}function ly(e,n){if(e==="click")return is(n)}function uy(e,n){if(e==="input"||e==="change")return is(n)}function cy(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var zt=typeof Object.is=="function"?Object.is:cy;function Xi(e,n){if(zt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),s=Object.keys(n);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var l=o[s];if(!g.call(n,l)||!zt(e[l],n[l]))return!1}return!0}function Qd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gd(e,n){var o=Qd(e);e=0;for(var s;o;){if(o.nodeType===3){if(s=e+o.textContent.length,e<=n&&s>=n)return{node:o,offset:n-e};e=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Qd(o)}}function Yd(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Yd(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Zd(){for(var e=window,n=Ar();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=Ar(e.document)}return n}function el(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function dy(e){var n=Zd(),o=e.focusedElem,s=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&Yd(o.ownerDocument.documentElement,o)){if(s!==null&&el(o)){if(n=s.start,e=s.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=o.textContent.length,c=Math.min(s.start,l);s=s.end===void 0?c:Math.min(s.end,l),!e.extend&&c>s&&(l=s,s=c,c=l),l=Gd(o,c);var p=Gd(o,s);l&&p&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==p.node||e.focusOffset!==p.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),c>s?(e.addRange(n),e.extend(p.node,p.offset)):(n.setEnd(p.node,p.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)e=n[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fy=v&&"documentMode"in document&&11>=document.documentMode,Hr=null,tl=null,Ji=null,nl=!1;function Xd(e,n,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;nl||Hr==null||Hr!==Ar(s)||(s=Hr,"selectionStart"in s&&el(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Ji&&Xi(Ji,s)||(Ji=s,s=ls(tl,"onSelect"),0<s.length&&(n=new qa("onSelect","select",null,n,o),e.push({event:n,listeners:s}),n.target=Hr)))}function os(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var Wr={animationend:os("Animation","AnimationEnd"),animationiteration:os("Animation","AnimationIteration"),animationstart:os("Animation","AnimationStart"),transitionend:os("Transition","TransitionEnd")},rl={},Jd={};v&&(Jd=document.createElement("div").style,"AnimationEvent"in window||(delete Wr.animationend.animation,delete Wr.animationiteration.animation,delete Wr.animationstart.animation),"TransitionEvent"in window||delete Wr.transitionend.transition);function ss(e){if(rl[e])return rl[e];if(!Wr[e])return e;var n=Wr[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in Jd)return rl[e]=n[o];return e}var ef=ss("animationend"),tf=ss("animationiteration"),nf=ss("animationstart"),rf=ss("transitionend"),of=new Map,sf="abort auxClick 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(" ");function In(e,n){of.set(e,n),f(n,[e])}for(var il=0;il<sf.length;il++){var ol=sf[il],hy=ol.toLowerCase(),py=ol[0].toUpperCase()+ol.slice(1);In(hy,"on"+py)}In(ef,"onAnimationEnd"),In(tf,"onAnimationIteration"),In(nf,"onAnimationStart"),In("dblclick","onDoubleClick"),In("focusin","onFocus"),In("focusout","onBlur"),In(rf,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var eo="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(" "),my=new Set("cancel close invalid load scroll toggle".split(" ").concat(eo));function af(e,n,o){var s=e.type||"unknown-event";e.currentTarget=o,hg(s,n,void 0,e),e.currentTarget=null}function lf(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var s=e[o],l=s.event;s=s.listeners;e:{var c=void 0;if(n)for(var p=s.length-1;0<=p;p--){var w=s[p],k=w.instance,O=w.currentTarget;if(w=w.listener,k!==c&&l.isPropagationStopped())break e;af(l,w,O),c=k}else for(p=0;p<s.length;p++){if(w=s[p],k=w.instance,O=w.currentTarget,w=w.listener,k!==c&&l.isPropagationStopped())break e;af(l,w,O),c=k}}}if(Wo)throw e=Aa,Wo=!1,Aa=null,e}function be(e,n){var o=n[hl];o===void 0&&(o=n[hl]=new Set);var s=e+"__bubble";o.has(s)||(uf(n,e,2,!1),o.add(s))}function sl(e,n,o){var s=0;n&&(s|=4),uf(o,e,s,n)}var as="_reactListening"+Math.random().toString(36).slice(2);function to(e){if(!e[as]){e[as]=!0,a.forEach(function(o){o!=="selectionchange"&&(my.has(o)||sl(o,!1,e),sl(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[as]||(n[as]=!0,sl("selectionchange",!1,n))}}function uf(e,n,o,s){switch(Nd(n)){case 1:var l=Tg;break;case 4:l=Rg;break;default:l=Ha}o=l.bind(null,n,o,e),l=void 0,!Oa||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(l=!0),s?l!==void 0?e.addEventListener(n,o,{capture:!0,passive:l}):e.addEventListener(n,o,!0):l!==void 0?e.addEventListener(n,o,{passive:l}):e.addEventListener(n,o,!1)}function al(e,n,o,s,l){var c=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var p=s.tag;if(p===3||p===4){var w=s.stateNode.containerInfo;if(w===l||w.nodeType===8&&w.parentNode===l)break;if(p===4)for(p=s.return;p!==null;){var k=p.tag;if((k===3||k===4)&&(k=p.stateNode.containerInfo,k===l||k.nodeType===8&&k.parentNode===l))return;p=p.return}for(;w!==null;){if(p=sr(w),p===null)return;if(k=p.tag,k===5||k===6){s=c=p;continue e}w=w.parentNode}}s=s.return}hd(function(){var O=c,U=Ia(o),B=[];e:{var z=of.get(e);if(z!==void 0){var K=qa,Y=e;switch(e){case"keypress":if(ts(o)===0)break e;case"keydown":case"keyup":K=Vg;break;case"focusin":Y="focus",K=Ga;break;case"focusout":Y="blur",K=Ga;break;case"beforeblur":case"afterblur":K=Ga;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=Ld;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Mg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=Qg;break;case ef:case tf:case nf:K=Ag;break;case rf:K=Yg;break;case"scroll":K=Ng;break;case"wheel":K=Xg;break;case"copy":case"cut":case"paste":K=Fg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=Ad}var J=(n&4)!==0,$e=!J&&e==="scroll",T=J?z!==null?z+"Capture":null:z;J=[];for(var _=O,R;_!==null;){R=_;var H=R.stateNode;if(R.tag===5&&H!==null&&(R=H,T!==null&&(H=Di(_,T),H!=null&&J.push(no(_,H,R)))),$e)break;_=_.return}0<J.length&&(z=new K(z,Y,null,o,U),B.push({event:z,listeners:J}))}}if((n&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",K=e==="mouseout"||e==="pointerout",z&&o!==Na&&(Y=o.relatedTarget||o.fromElement)&&(sr(Y)||Y[cn]))break e;if((K||z)&&(z=U.window===U?U:(z=U.ownerDocument)?z.defaultView||z.parentWindow:window,K?(Y=o.relatedTarget||o.toElement,K=O,Y=Y?sr(Y):null,Y!==null&&($e=or(Y),Y!==$e||Y.tag!==5&&Y.tag!==6)&&(Y=null)):(K=null,Y=O),K!==Y)){if(J=Ld,H="onMouseLeave",T="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(J=Ad,H="onPointerLeave",T="onPointerEnter",_="pointer"),$e=K==null?z:Kr(K),R=Y==null?z:Kr(Y),z=new J(H,_+"leave",K,o,U),z.target=$e,z.relatedTarget=R,H=null,sr(U)===O&&(J=new J(T,_+"enter",Y,o,U),J.target=R,J.relatedTarget=$e,H=J),$e=H,K&&Y)t:{for(J=K,T=Y,_=0,R=J;R;R=Vr(R))_++;for(R=0,H=T;H;H=Vr(H))R++;for(;0<_-R;)J=Vr(J),_--;for(;0<R-_;)T=Vr(T),R--;for(;_--;){if(J===T||T!==null&&J===T.alternate)break t;J=Vr(J),T=Vr(T)}J=null}else J=null;K!==null&&cf(B,z,K,J,!1),Y!==null&&$e!==null&&cf(B,$e,Y,J,!0)}}e:{if(z=O?Kr(O):window,K=z.nodeName&&z.nodeName.toLowerCase(),K==="select"||K==="input"&&z.type==="file")var ee=oy;else if(Bd(z))if(Wd)ee=uy;else{ee=ay;var ie=sy}else(K=z.nodeName)&&K.toLowerCase()==="input"&&(z.type==="checkbox"||z.type==="radio")&&(ee=ly);if(ee&&(ee=ee(e,O))){Hd(B,ee,o,U);break e}ie&&ie(e,z,O),e==="focusout"&&(ie=z._wrapperState)&&ie.controlled&&z.type==="number"&&Ft(z,"number",z.value)}switch(ie=O?Kr(O):window,e){case"focusin":(Bd(ie)||ie.contentEditable==="true")&&(Hr=ie,tl=O,Ji=null);break;case"focusout":Ji=tl=Hr=null;break;case"mousedown":nl=!0;break;case"contextmenu":case"mouseup":case"dragend":nl=!1,Xd(B,o,U);break;case"selectionchange":if(fy)break;case"keydown":case"keyup":Xd(B,o,U)}var oe;if(Za)e:{switch(e){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else Br?zd(e,o)&&(ae="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(ae="onCompositionStart");ae&&(Dd&&o.locale!=="ko"&&(Br||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&Br&&(oe=Id()):(Nn=U,Va="value"in Nn?Nn.value:Nn.textContent,Br=!0)),ie=ls(O,ae),0<ie.length&&(ae=new Od(ae,e,null,o,U),B.push({event:ae,listeners:ie}),oe?ae.data=oe:(oe=Ud(o),oe!==null&&(ae.data=oe)))),(oe=ey?ty(e,o):ny(e,o))&&(O=ls(O,"onBeforeInput"),0<O.length&&(U=new Od("onBeforeInput","beforeinput",null,o,U),B.push({event:U,listeners:O}),U.data=oe))}lf(B,n)})}function no(e,n,o){return{instance:e,listener:n,currentTarget:o}}function ls(e,n){for(var o=n+"Capture",s=[];e!==null;){var l=e,c=l.stateNode;l.tag===5&&c!==null&&(l=c,c=Di(e,o),c!=null&&s.unshift(no(e,c,l)),c=Di(e,n),c!=null&&s.push(no(e,c,l))),e=e.return}return s}function Vr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function cf(e,n,o,s,l){for(var c=n._reactName,p=[];o!==null&&o!==s;){var w=o,k=w.alternate,O=w.stateNode;if(k!==null&&k===s)break;w.tag===5&&O!==null&&(w=O,l?(k=Di(o,c),k!=null&&p.unshift(no(o,k,w))):l||(k=Di(o,c),k!=null&&p.push(no(o,k,w)))),o=o.return}p.length!==0&&e.push({event:n,listeners:p})}var vy=/\r\n?/g,gy=/\u0000|\uFFFD/g;function df(e){return(typeof e=="string"?e:""+e).replace(vy,`
|
|
39
|
+
`).replace(gy,"")}function us(e,n,o){if(n=df(n),df(e)!==n&&o)throw Error(i(425))}function cs(){}var ll=null,ul=null;function cl(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var dl=typeof setTimeout=="function"?setTimeout:void 0,yy=typeof clearTimeout=="function"?clearTimeout:void 0,ff=typeof Promise=="function"?Promise:void 0,wy=typeof queueMicrotask=="function"?queueMicrotask:typeof ff<"u"?function(e){return ff.resolve(null).then(e).catch(xy)}:dl;function xy(e){setTimeout(function(){throw e})}function fl(e,n){var o=n,s=0;do{var l=o.nextSibling;if(e.removeChild(o),l&&l.nodeType===8)if(o=l.data,o==="/$"){if(s===0){e.removeChild(l),qi(n);return}s--}else o!=="$"&&o!=="$?"&&o!=="$!"||s++;o=l}while(o);qi(n)}function Mn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function hf(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}var qr=Math.random().toString(36).slice(2),Gt="__reactFiber$"+qr,ro="__reactProps$"+qr,cn="__reactContainer$"+qr,hl="__reactEvents$"+qr,Sy="__reactListeners$"+qr,ky="__reactHandles$"+qr;function sr(e){var n=e[Gt];if(n)return n;for(var o=e.parentNode;o;){if(n=o[cn]||o[Gt]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=hf(e);e!==null;){if(o=e[Gt])return o;e=hf(e)}return n}e=o,o=e.parentNode}return null}function io(e){return e=e[Gt]||e[cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Kr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function ds(e){return e[ro]||null}var pl=[],Qr=-1;function Ln(e){return{current:e}}function je(e){0>Qr||(e.current=pl[Qr],pl[Qr]=null,Qr--)}function Ee(e,n){Qr++,pl[Qr]=e.current,e.current=n}var On={},rt=Ln(On),mt=Ln(!1),ar=On;function Gr(e,n){var o=e.type.contextTypes;if(!o)return On;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===n)return s.__reactInternalMemoizedMaskedChildContext;var l={},c;for(c in o)l[c]=n[c];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function vt(e){return e=e.childContextTypes,e!=null}function fs(){je(mt),je(rt)}function pf(e,n,o){if(rt.current!==On)throw Error(i(168));Ee(rt,n),Ee(mt,o)}function mf(e,n,o){var s=e.stateNode;if(n=n.childContextTypes,typeof s.getChildContext!="function")return o;s=s.getChildContext();for(var l in s)if(!(l in n))throw Error(i(108,Ce(e)||"Unknown",l));return Q({},o,s)}function hs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,ar=rt.current,Ee(rt,e),Ee(mt,mt.current),!0}function vf(e,n,o){var s=e.stateNode;if(!s)throw Error(i(169));o?(e=mf(e,n,ar),s.__reactInternalMemoizedMergedChildContext=e,je(mt),je(rt),Ee(rt,e)):je(mt),Ee(mt,o)}var dn=null,ps=!1,ml=!1;function gf(e){dn===null?dn=[e]:dn.push(e)}function Cy(e){ps=!0,gf(e)}function An(){if(!ml&&dn!==null){ml=!0;var e=0,n=ke;try{var o=dn;for(ke=1;e<o.length;e++){var s=o[e];do s=s(!0);while(s!==null)}dn=null,ps=!1}catch(l){throw dn!==null&&(dn=dn.slice(e+1)),yd(Da,An),l}finally{ke=n,ml=!1}}return null}var Yr=[],Zr=0,ms=null,vs=0,Rt=[],Nt=0,lr=null,fn=1,hn="";function ur(e,n){Yr[Zr++]=vs,Yr[Zr++]=ms,ms=e,vs=n}function yf(e,n,o){Rt[Nt++]=fn,Rt[Nt++]=hn,Rt[Nt++]=lr,lr=e;var s=fn;e=hn;var l=32-$t(s)-1;s&=~(1<<l),o+=1;var c=32-$t(n)+l;if(30<c){var p=l-l%5;c=(s&(1<<p)-1).toString(32),s>>=p,l-=p,fn=1<<32-$t(n)+l|o<<l|s,hn=c+e}else fn=1<<c|o<<l|s,hn=e}function vl(e){e.return!==null&&(ur(e,1),yf(e,1,0))}function gl(e){for(;e===ms;)ms=Yr[--Zr],Yr[Zr]=null,vs=Yr[--Zr],Yr[Zr]=null;for(;e===lr;)lr=Rt[--Nt],Rt[Nt]=null,hn=Rt[--Nt],Rt[Nt]=null,fn=Rt[--Nt],Rt[Nt]=null}var Et=null,Pt=null,Ne=!1,Ut=null;function wf(e,n){var o=Ot(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=e,n=e.deletions,n===null?(e.deletions=[o],e.flags|=16):n.push(o)}function xf(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Et=e,Pt=Mn(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Et=e,Pt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=lr!==null?{id:fn,overflow:hn}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Ot(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,Et=e,Pt=null,!0):!1;default:return!1}}function yl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wl(e){if(Ne){var n=Pt;if(n){var o=n;if(!xf(e,n)){if(yl(e))throw Error(i(418));n=Mn(o.nextSibling);var s=Et;n&&xf(e,n)?wf(s,o):(e.flags=e.flags&-4097|2,Ne=!1,Et=e)}}else{if(yl(e))throw Error(i(418));e.flags=e.flags&-4097|2,Ne=!1,Et=e}}}function Sf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Et=e}function gs(e){if(e!==Et)return!1;if(!Ne)return Sf(e),Ne=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!cl(e.type,e.memoizedProps)),n&&(n=Pt)){if(yl(e))throw kf(),Error(i(418));for(;n;)wf(e,n),n=Mn(n.nextSibling)}if(Sf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(n===0){Pt=Mn(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}Pt=null}}else Pt=Et?Mn(e.stateNode.nextSibling):null;return!0}function kf(){for(var e=Pt;e;)e=Mn(e.nextSibling)}function Xr(){Pt=Et=null,Ne=!1}function xl(e){Ut===null?Ut=[e]:Ut.push(e)}var _y=j.ReactCurrentBatchConfig;function oo(e,n,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var s=o.stateNode}if(!s)throw Error(i(147,e));var l=s,c=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===c?n.ref:(n=function(p){var w=l.refs;p===null?delete w[c]:w[c]=p},n._stringRef=c,n)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function ys(e,n){throw e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Cf(e){var n=e._init;return n(e._payload)}function _f(e){function n(T,_){if(e){var R=T.deletions;R===null?(T.deletions=[_],T.flags|=16):R.push(_)}}function o(T,_){if(!e)return null;for(;_!==null;)n(T,_),_=_.sibling;return null}function s(T,_){for(T=new Map;_!==null;)_.key!==null?T.set(_.key,_):T.set(_.index,_),_=_.sibling;return T}function l(T,_){return T=Wn(T,_),T.index=0,T.sibling=null,T}function c(T,_,R){return T.index=R,e?(R=T.alternate,R!==null?(R=R.index,R<_?(T.flags|=2,_):R):(T.flags|=2,_)):(T.flags|=1048576,_)}function p(T){return e&&T.alternate===null&&(T.flags|=2),T}function w(T,_,R,H){return _===null||_.tag!==6?(_=du(R,T.mode,H),_.return=T,_):(_=l(_,R),_.return=T,_)}function k(T,_,R,H){var ee=R.type;return ee===te?U(T,_,R.props.children,H,R.key):_!==null&&(_.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===nt&&Cf(ee)===_.type)?(H=l(_,R.props),H.ref=oo(T,_,R),H.return=T,H):(H=Bs(R.type,R.key,R.props,null,T.mode,H),H.ref=oo(T,_,R),H.return=T,H)}function O(T,_,R,H){return _===null||_.tag!==4||_.stateNode.containerInfo!==R.containerInfo||_.stateNode.implementation!==R.implementation?(_=fu(R,T.mode,H),_.return=T,_):(_=l(_,R.children||[]),_.return=T,_)}function U(T,_,R,H,ee){return _===null||_.tag!==7?(_=gr(R,T.mode,H,ee),_.return=T,_):(_=l(_,R),_.return=T,_)}function B(T,_,R){if(typeof _=="string"&&_!==""||typeof _=="number")return _=du(""+_,T.mode,R),_.return=T,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case D:return R=Bs(_.type,_.key,_.props,null,T.mode,R),R.ref=oo(T,null,_),R.return=T,R;case W:return _=fu(_,T.mode,R),_.return=T,_;case nt:var H=_._init;return B(T,H(_._payload),R)}if(Pn(_)||re(_))return _=gr(_,T.mode,R,null),_.return=T,_;ys(T,_)}return null}function z(T,_,R,H){var ee=_!==null?_.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return ee!==null?null:w(T,_,""+R,H);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case D:return R.key===ee?k(T,_,R,H):null;case W:return R.key===ee?O(T,_,R,H):null;case nt:return ee=R._init,z(T,_,ee(R._payload),H)}if(Pn(R)||re(R))return ee!==null?null:U(T,_,R,H,null);ys(T,R)}return null}function K(T,_,R,H,ee){if(typeof H=="string"&&H!==""||typeof H=="number")return T=T.get(R)||null,w(_,T,""+H,ee);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case D:return T=T.get(H.key===null?R:H.key)||null,k(_,T,H,ee);case W:return T=T.get(H.key===null?R:H.key)||null,O(_,T,H,ee);case nt:var ie=H._init;return K(T,_,R,ie(H._payload),ee)}if(Pn(H)||re(H))return T=T.get(R)||null,U(_,T,H,ee,null);ys(_,H)}return null}function Y(T,_,R,H){for(var ee=null,ie=null,oe=_,ae=_=0,Ye=null;oe!==null&&ae<R.length;ae++){oe.index>ae?(Ye=oe,oe=null):Ye=oe.sibling;var we=z(T,oe,R[ae],H);if(we===null){oe===null&&(oe=Ye);break}e&&oe&&we.alternate===null&&n(T,oe),_=c(we,_,ae),ie===null?ee=we:ie.sibling=we,ie=we,oe=Ye}if(ae===R.length)return o(T,oe),Ne&&ur(T,ae),ee;if(oe===null){for(;ae<R.length;ae++)oe=B(T,R[ae],H),oe!==null&&(_=c(oe,_,ae),ie===null?ee=oe:ie.sibling=oe,ie=oe);return Ne&&ur(T,ae),ee}for(oe=s(T,oe);ae<R.length;ae++)Ye=K(oe,T,ae,R[ae],H),Ye!==null&&(e&&Ye.alternate!==null&&oe.delete(Ye.key===null?ae:Ye.key),_=c(Ye,_,ae),ie===null?ee=Ye:ie.sibling=Ye,ie=Ye);return e&&oe.forEach(function(Vn){return n(T,Vn)}),Ne&&ur(T,ae),ee}function J(T,_,R,H){var ee=re(R);if(typeof ee!="function")throw Error(i(150));if(R=ee.call(R),R==null)throw Error(i(151));for(var ie=ee=null,oe=_,ae=_=0,Ye=null,we=R.next();oe!==null&&!we.done;ae++,we=R.next()){oe.index>ae?(Ye=oe,oe=null):Ye=oe.sibling;var Vn=z(T,oe,we.value,H);if(Vn===null){oe===null&&(oe=Ye);break}e&&oe&&Vn.alternate===null&&n(T,oe),_=c(Vn,_,ae),ie===null?ee=Vn:ie.sibling=Vn,ie=Vn,oe=Ye}if(we.done)return o(T,oe),Ne&&ur(T,ae),ee;if(oe===null){for(;!we.done;ae++,we=R.next())we=B(T,we.value,H),we!==null&&(_=c(we,_,ae),ie===null?ee=we:ie.sibling=we,ie=we);return Ne&&ur(T,ae),ee}for(oe=s(T,oe);!we.done;ae++,we=R.next())we=K(oe,T,ae,we.value,H),we!==null&&(e&&we.alternate!==null&&oe.delete(we.key===null?ae:we.key),_=c(we,_,ae),ie===null?ee=we:ie.sibling=we,ie=we);return e&&oe.forEach(function(rw){return n(T,rw)}),Ne&&ur(T,ae),ee}function $e(T,_,R,H){if(typeof R=="object"&&R!==null&&R.type===te&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case D:e:{for(var ee=R.key,ie=_;ie!==null;){if(ie.key===ee){if(ee=R.type,ee===te){if(ie.tag===7){o(T,ie.sibling),_=l(ie,R.props.children),_.return=T,T=_;break e}}else if(ie.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===nt&&Cf(ee)===ie.type){o(T,ie.sibling),_=l(ie,R.props),_.ref=oo(T,ie,R),_.return=T,T=_;break e}o(T,ie);break}else n(T,ie);ie=ie.sibling}R.type===te?(_=gr(R.props.children,T.mode,H,R.key),_.return=T,T=_):(H=Bs(R.type,R.key,R.props,null,T.mode,H),H.ref=oo(T,_,R),H.return=T,T=H)}return p(T);case W:e:{for(ie=R.key;_!==null;){if(_.key===ie)if(_.tag===4&&_.stateNode.containerInfo===R.containerInfo&&_.stateNode.implementation===R.implementation){o(T,_.sibling),_=l(_,R.children||[]),_.return=T,T=_;break e}else{o(T,_);break}else n(T,_);_=_.sibling}_=fu(R,T.mode,H),_.return=T,T=_}return p(T);case nt:return ie=R._init,$e(T,_,ie(R._payload),H)}if(Pn(R))return Y(T,_,R,H);if(re(R))return J(T,_,R,H);ys(T,R)}return typeof R=="string"&&R!==""||typeof R=="number"?(R=""+R,_!==null&&_.tag===6?(o(T,_.sibling),_=l(_,R),_.return=T,T=_):(o(T,_),_=du(R,T.mode,H),_.return=T,T=_),p(T)):o(T,_)}return $e}var Jr=_f(!0),Ef=_f(!1),ws=Ln(null),xs=null,ei=null,Sl=null;function kl(){Sl=ei=xs=null}function Cl(e){var n=ws.current;je(ws),e._currentValue=n}function _l(e,n,o){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===o)break;e=e.return}}function ti(e,n){xs=e,Sl=ei=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(gt=!0),e.firstContext=null)}function It(e){var n=e._currentValue;if(Sl!==e)if(e={context:e,memoizedValue:n,next:null},ei===null){if(xs===null)throw Error(i(308));ei=e,xs.dependencies={lanes:0,firstContext:e}}else ei=ei.next=e;return n}var cr=null;function El(e){cr===null?cr=[e]:cr.push(e)}function Pf(e,n,o,s){var l=n.interleaved;return l===null?(o.next=o,El(n)):(o.next=l.next,l.next=o),n.interleaved=o,pn(e,s)}function pn(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var Dn=!1;function Pl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bf(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Fn(e,n,o){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ye&2)!==0){var l=s.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),s.pending=n,pn(e,o)}return l=s.interleaved,l===null?(n.next=n,El(s)):(n.next=l.next,l.next=n),s.interleaved=n,pn(e,o)}function Ss(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var s=n.lanes;s&=e.pendingLanes,o|=s,n.lanes=o,za(e,o)}}function jf(e,n){var o=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var l=null,c=null;if(o=o.firstBaseUpdate,o!==null){do{var p={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};c===null?l=c=p:c=c.next=p,o=o.next}while(o!==null);c===null?l=c=n:c=c.next=n}else l=c=n;o={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:s.shared,effects:s.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function ks(e,n,o,s){var l=e.updateQueue;Dn=!1;var c=l.firstBaseUpdate,p=l.lastBaseUpdate,w=l.shared.pending;if(w!==null){l.shared.pending=null;var k=w,O=k.next;k.next=null,p===null?c=O:p.next=O,p=k;var U=e.alternate;U!==null&&(U=U.updateQueue,w=U.lastBaseUpdate,w!==p&&(w===null?U.firstBaseUpdate=O:w.next=O,U.lastBaseUpdate=k))}if(c!==null){var B=l.baseState;p=0,U=O=k=null,w=c;do{var z=w.lane,K=w.eventTime;if((s&z)===z){U!==null&&(U=U.next={eventTime:K,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var Y=e,J=w;switch(z=n,K=o,J.tag){case 1:if(Y=J.payload,typeof Y=="function"){B=Y.call(K,B,z);break e}B=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=J.payload,z=typeof Y=="function"?Y.call(K,B,z):Y,z==null)break e;B=Q({},B,z);break e;case 2:Dn=!0}}w.callback!==null&&w.lane!==0&&(e.flags|=64,z=l.effects,z===null?l.effects=[w]:z.push(w))}else K={eventTime:K,lane:z,tag:w.tag,payload:w.payload,callback:w.callback,next:null},U===null?(O=U=K,k=B):U=U.next=K,p|=z;if(w=w.next,w===null){if(w=l.shared.pending,w===null)break;z=w,w=z.next,z.next=null,l.lastBaseUpdate=z,l.shared.pending=null}}while(!0);if(U===null&&(k=B),l.baseState=k,l.firstBaseUpdate=O,l.lastBaseUpdate=U,n=l.shared.interleaved,n!==null){l=n;do p|=l.lane,l=l.next;while(l!==n)}else c===null&&(l.shared.lanes=0);hr|=p,e.lanes=p,e.memoizedState=B}}function Tf(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var s=e[n],l=s.callback;if(l!==null){if(s.callback=null,s=o,typeof l!="function")throw Error(i(191,l));l.call(s)}}}var so={},Yt=Ln(so),ao=Ln(so),lo=Ln(so);function dr(e){if(e===so)throw Error(i(174));return e}function bl(e,n){switch(Ee(lo,n),Ee(ao,e),Ee(Yt,so),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ja(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=ja(n,e)}je(Yt),Ee(Yt,n)}function ni(){je(Yt),je(ao),je(lo)}function Rf(e){dr(lo.current);var n=dr(Yt.current),o=ja(n,e.type);n!==o&&(Ee(ao,e),Ee(Yt,o))}function jl(e){ao.current===e&&(je(Yt),je(ao))}var Ie=Ln(0);function Cs(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Tl=[];function Rl(){for(var e=0;e<Tl.length;e++)Tl[e]._workInProgressVersionPrimary=null;Tl.length=0}var _s=j.ReactCurrentDispatcher,Nl=j.ReactCurrentBatchConfig,fr=0,Me=null,He=null,Qe=null,Es=!1,uo=!1,co=0,Ey=0;function it(){throw Error(i(321))}function Il(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!zt(e[o],n[o]))return!1;return!0}function Ml(e,n,o,s,l,c){if(fr=c,Me=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,_s.current=e===null||e.memoizedState===null?Ty:Ry,e=o(s,l),uo){c=0;do{if(uo=!1,co=0,25<=c)throw Error(i(301));c+=1,Qe=He=null,n.updateQueue=null,_s.current=Ny,e=o(s,l)}while(uo)}if(_s.current=js,n=He!==null&&He.next!==null,fr=0,Qe=He=Me=null,Es=!1,n)throw Error(i(300));return e}function Ll(){var e=co!==0;return co=0,e}function Zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Me.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Mt(){if(He===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var n=Qe===null?Me.memoizedState:Qe.next;if(n!==null)Qe=n,He=e;else{if(e===null)throw Error(i(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Qe===null?Me.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function fo(e,n){return typeof n=="function"?n(e):n}function Ol(e){var n=Mt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=He,l=s.baseQueue,c=o.pending;if(c!==null){if(l!==null){var p=l.next;l.next=c.next,c.next=p}s.baseQueue=l=c,o.pending=null}if(l!==null){c=l.next,s=s.baseState;var w=p=null,k=null,O=c;do{var U=O.lane;if((fr&U)===U)k!==null&&(k=k.next={lane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),s=O.hasEagerState?O.eagerState:e(s,O.action);else{var B={lane:U,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null};k===null?(w=k=B,p=s):k=k.next=B,Me.lanes|=U,hr|=U}O=O.next}while(O!==null&&O!==c);k===null?p=s:k.next=w,zt(s,n.memoizedState)||(gt=!0),n.memoizedState=s,n.baseState=p,n.baseQueue=k,o.lastRenderedState=s}if(e=o.interleaved,e!==null){l=e;do c=l.lane,Me.lanes|=c,hr|=c,l=l.next;while(l!==e)}else l===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function Al(e){var n=Mt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=o.dispatch,l=o.pending,c=n.memoizedState;if(l!==null){o.pending=null;var p=l=l.next;do c=e(c,p.action),p=p.next;while(p!==l);zt(c,n.memoizedState)||(gt=!0),n.memoizedState=c,n.baseQueue===null&&(n.baseState=c),o.lastRenderedState=c}return[c,s]}function Nf(){}function If(e,n){var o=Me,s=Mt(),l=n(),c=!zt(s.memoizedState,l);if(c&&(s.memoizedState=l,gt=!0),s=s.queue,Dl(Of.bind(null,o,s,e),[e]),s.getSnapshot!==n||c||Qe!==null&&Qe.memoizedState.tag&1){if(o.flags|=2048,ho(9,Lf.bind(null,o,s,l,n),void 0,null),Ge===null)throw Error(i(349));(fr&30)!==0||Mf(o,n,l)}return l}function Mf(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Me.updateQueue,n===null?(n={lastEffect:null,stores:null},Me.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function Lf(e,n,o,s){n.value=o,n.getSnapshot=s,Af(n)&&Df(e)}function Of(e,n,o){return o(function(){Af(n)&&Df(e)})}function Af(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!zt(e,o)}catch{return!0}}function Df(e){var n=pn(e,1);n!==null&&Vt(n,e,1,-1)}function Ff(e){var n=Zt();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:e},n.queue=e,e=e.dispatch=jy.bind(null,Me,e),[n.memoizedState,e]}function ho(e,n,o,s){return e={tag:e,create:n,destroy:o,deps:s,next:null},n=Me.updateQueue,n===null?(n={lastEffect:null,stores:null},Me.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(s=o.next,o.next=e,e.next=s,n.lastEffect=e)),e}function $f(){return Mt().memoizedState}function Ps(e,n,o,s){var l=Zt();Me.flags|=e,l.memoizedState=ho(1|n,o,void 0,s===void 0?null:s)}function bs(e,n,o,s){var l=Mt();s=s===void 0?null:s;var c=void 0;if(He!==null){var p=He.memoizedState;if(c=p.destroy,s!==null&&Il(s,p.deps)){l.memoizedState=ho(n,o,c,s);return}}Me.flags|=e,l.memoizedState=ho(1|n,o,c,s)}function zf(e,n){return Ps(8390656,8,e,n)}function Dl(e,n){return bs(2048,8,e,n)}function Uf(e,n){return bs(4,2,e,n)}function Bf(e,n){return bs(4,4,e,n)}function Hf(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Wf(e,n,o){return o=o!=null?o.concat([e]):null,bs(4,4,Hf.bind(null,n,e),o)}function Fl(){}function Vf(e,n){var o=Mt();n=n===void 0?null:n;var s=o.memoizedState;return s!==null&&n!==null&&Il(n,s[1])?s[0]:(o.memoizedState=[e,n],e)}function qf(e,n){var o=Mt();n=n===void 0?null:n;var s=o.memoizedState;return s!==null&&n!==null&&Il(n,s[1])?s[0]:(e=e(),o.memoizedState=[e,n],e)}function Kf(e,n,o){return(fr&21)===0?(e.baseState&&(e.baseState=!1,gt=!0),e.memoizedState=o):(zt(o,n)||(o=kd(),Me.lanes|=o,hr|=o,e.baseState=!0),n)}function Py(e,n){var o=ke;ke=o!==0&&4>o?o:4,e(!0);var s=Nl.transition;Nl.transition={};try{e(!1),n()}finally{ke=o,Nl.transition=s}}function Qf(){return Mt().memoizedState}function by(e,n,o){var s=Bn(e);if(o={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null},Gf(e))Yf(n,o);else if(o=Pf(e,n,o,s),o!==null){var l=ft();Vt(o,e,s,l),Zf(o,n,s)}}function jy(e,n,o){var s=Bn(e),l={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null};if(Gf(e))Yf(n,l);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=n.lastRenderedReducer,c!==null))try{var p=n.lastRenderedState,w=c(p,o);if(l.hasEagerState=!0,l.eagerState=w,zt(w,p)){var k=n.interleaved;k===null?(l.next=l,El(n)):(l.next=k.next,k.next=l),n.interleaved=l;return}}catch{}finally{}o=Pf(e,n,l,s),o!==null&&(l=ft(),Vt(o,e,s,l),Zf(o,n,s))}}function Gf(e){var n=e.alternate;return e===Me||n!==null&&n===Me}function Yf(e,n){uo=Es=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function Zf(e,n,o){if((o&4194240)!==0){var s=n.lanes;s&=e.pendingLanes,o|=s,n.lanes=o,za(e,o)}}var js={readContext:It,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},Ty={readContext:It,useCallback:function(e,n){return Zt().memoizedState=[e,n===void 0?null:n],e},useContext:It,useEffect:zf,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,Ps(4194308,4,Hf.bind(null,n,e),o)},useLayoutEffect:function(e,n){return Ps(4194308,4,e,n)},useInsertionEffect:function(e,n){return Ps(4,2,e,n)},useMemo:function(e,n){var o=Zt();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var s=Zt();return n=o!==void 0?o(n):n,s.memoizedState=s.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},s.queue=e,e=e.dispatch=by.bind(null,Me,e),[s.memoizedState,e]},useRef:function(e){var n=Zt();return e={current:e},n.memoizedState=e},useState:Ff,useDebugValue:Fl,useDeferredValue:function(e){return Zt().memoizedState=e},useTransition:function(){var e=Ff(!1),n=e[0];return e=Py.bind(null,e[1]),Zt().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var s=Me,l=Zt();if(Ne){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),Ge===null)throw Error(i(349));(fr&30)!==0||Mf(s,n,o)}l.memoizedState=o;var c={value:o,getSnapshot:n};return l.queue=c,zf(Of.bind(null,s,c,e),[e]),s.flags|=2048,ho(9,Lf.bind(null,s,c,o,n),void 0,null),o},useId:function(){var e=Zt(),n=Ge.identifierPrefix;if(Ne){var o=hn,s=fn;o=(s&~(1<<32-$t(s)-1)).toString(32)+o,n=":"+n+"R"+o,o=co++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=Ey++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Ry={readContext:It,useCallback:Vf,useContext:It,useEffect:Dl,useImperativeHandle:Wf,useInsertionEffect:Uf,useLayoutEffect:Bf,useMemo:qf,useReducer:Ol,useRef:$f,useState:function(){return Ol(fo)},useDebugValue:Fl,useDeferredValue:function(e){var n=Mt();return Kf(n,He.memoizedState,e)},useTransition:function(){var e=Ol(fo)[0],n=Mt().memoizedState;return[e,n]},useMutableSource:Nf,useSyncExternalStore:If,useId:Qf,unstable_isNewReconciler:!1},Ny={readContext:It,useCallback:Vf,useContext:It,useEffect:Dl,useImperativeHandle:Wf,useInsertionEffect:Uf,useLayoutEffect:Bf,useMemo:qf,useReducer:Al,useRef:$f,useState:function(){return Al(fo)},useDebugValue:Fl,useDeferredValue:function(e){var n=Mt();return He===null?n.memoizedState=e:Kf(n,He.memoizedState,e)},useTransition:function(){var e=Al(fo)[0],n=Mt().memoizedState;return[e,n]},useMutableSource:Nf,useSyncExternalStore:If,useId:Qf,unstable_isNewReconciler:!1};function Bt(e,n){if(e&&e.defaultProps){n=Q({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function $l(e,n,o,s){n=e.memoizedState,o=o(s,n),o=o==null?n:Q({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Ts={isMounted:function(e){return(e=e._reactInternals)?or(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var s=ft(),l=Bn(e),c=mn(s,l);c.payload=n,o!=null&&(c.callback=o),n=Fn(e,c,l),n!==null&&(Vt(n,e,l,s),Ss(n,e,l))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var s=ft(),l=Bn(e),c=mn(s,l);c.tag=1,c.payload=n,o!=null&&(c.callback=o),n=Fn(e,c,l),n!==null&&(Vt(n,e,l,s),Ss(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=ft(),s=Bn(e),l=mn(o,s);l.tag=2,n!=null&&(l.callback=n),n=Fn(e,l,s),n!==null&&(Vt(n,e,s,o),Ss(n,e,s))}};function Xf(e,n,o,s,l,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,c,p):n.prototype&&n.prototype.isPureReactComponent?!Xi(o,s)||!Xi(l,c):!0}function Jf(e,n,o){var s=!1,l=On,c=n.contextType;return typeof c=="object"&&c!==null?c=It(c):(l=vt(n)?ar:rt.current,s=n.contextTypes,c=(s=s!=null)?Gr(e,l):On),n=new n(o,c),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Ts,e.stateNode=n,n._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=c),n}function eh(e,n,o,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,s),n.state!==e&&Ts.enqueueReplaceState(n,n.state,null)}function zl(e,n,o,s){var l=e.stateNode;l.props=o,l.state=e.memoizedState,l.refs={},Pl(e);var c=n.contextType;typeof c=="object"&&c!==null?l.context=It(c):(c=vt(n)?ar:rt.current,l.context=Gr(e,c)),l.state=e.memoizedState,c=n.getDerivedStateFromProps,typeof c=="function"&&($l(e,n,c,o),l.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(n=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),n!==l.state&&Ts.enqueueReplaceState(l,l.state,null),ks(e,o,l,s),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function ri(e,n){try{var o="",s=n;do o+=ve(s),s=s.return;while(s);var l=o}catch(c){l=`
|
|
40
40
|
Error generating stack: `+c.message+`
|
|
41
|
-
`+c.stack}return{value:e,source:n,stack:l,digest:null}}function Ul(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function Bl(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var Iy=typeof WeakMap=="function"?WeakMap:Map;function th(e,n,o){o=mn(-1,o),o.tag=3,o.payload={element:null};var s=n.value;return o.callback=function(){As||(As=!0,ru=s),Bl(e,n)},o}function nh(e,n,o){o=mn(-1,o),o.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var l=n.value;o.payload=function(){return s(l)},o.callback=function(){Bl(e,n)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(o.callback=function(){Bl(e,n),typeof s!="function"&&(zn===null?zn=new Set([this]):zn.add(this));var p=n.stack;this.componentDidCatch(n.value,{componentStack:p!==null?p:""})}),o}function rh(e,n,o){var s=e.pingCache;if(s===null){s=e.pingCache=new Iy;var l=new Set;s.set(n,l)}else l=s.get(n),l===void 0&&(l=new Set,s.set(n,l));l.has(o)||(l.add(o),e=qy.bind(null,e,n,o),n.then(e,e))}function ih(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function oh(e,n,o,s,l){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=mn(-1,1),n.tag=2,Fn(o,n,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var My=j.ReactCurrentOwner,gt=!1;function dt(e,n,o,s){n.child=e===null?Ef(n,null,o,s):Jr(n,e.child,o,s)}function sh(e,n,o,s,l){o=o.render;var c=n.ref;return ti(n,l),s=Ml(e,n,o,s,c,l),o=Ll(),e!==null&&!gt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,vn(e,n,l)):(Ne&&o&&vl(n),n.flags|=1,dt(e,n,s,l),n.child)}function ah(e,n,o,s,l){if(e===null){var c=o.type;return typeof c=="function"&&!cu(c)&&c.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=c,lh(e,n,c,s,l)):(e=Bs(o.type,null,s,n,n.mode,l),e.ref=n.ref,e.return=n,n.child=e)}if(c=e.child,(e.lanes&l)===0){var p=c.memoizedProps;if(o=o.compare,o=o!==null?o:Xi,o(p,s)&&e.ref===n.ref)return vn(e,n,l)}return n.flags|=1,e=Wn(c,s),e.ref=n.ref,e.return=n,n.child=e}function lh(e,n,o,s,l){if(e!==null){var c=e.memoizedProps;if(Xi(c,s)&&e.ref===n.ref)if(gt=!1,n.pendingProps=s=c,(e.lanes&l)!==0)(e.flags&131072)!==0&&(gt=!0);else return n.lanes=e.lanes,vn(e,n,l)}return Hl(e,n,o,s,l)}function uh(e,n,o){var s=n.pendingProps,l=s.children,c=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(oi,bt),bt|=o;else{if((o&1073741824)===0)return e=c!==null?c.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Ee(oi,bt),bt|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=c!==null?c.baseLanes:o,Ee(oi,bt),bt|=s}else c!==null?(s=c.baseLanes|o,n.memoizedState=null):s=o,Ee(oi,bt),bt|=s;return dt(e,n,l,o),n.child}function ch(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function Hl(e,n,o,s,l){var c=vt(o)?ar:rt.current;return c=Gr(n,c),ti(n,l),o=Ml(e,n,o,s,c,l),s=Ll(),e!==null&&!gt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,vn(e,n,l)):(Ne&&s&&vl(n),n.flags|=1,dt(e,n,o,l),n.child)}function dh(e,n,o,s,l){if(vt(o)){var c=!0;hs(n)}else c=!1;if(ti(n,l),n.stateNode===null)Ns(e,n),Jf(n,o,s),zl(n,o,s,l),s=!0;else if(e===null){var p=n.stateNode,y=n.memoizedProps;p.props=y;var k=p.context,O=o.contextType;typeof O=="object"&&O!==null?O=It(O):(O=vt(o)?ar:rt.current,O=Gr(n,O));var U=o.getDerivedStateFromProps,B=typeof U=="function"||typeof p.getSnapshotBeforeUpdate=="function";B||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==s||k!==O)&&eh(n,p,s,O),Dn=!1;var z=n.memoizedState;p.state=z,ks(n,s,p,l),k=n.memoizedState,y!==s||z!==k||mt.current||Dn?(typeof U=="function"&&($l(n,o,U,s),k=n.memoizedState),(y=Dn||Xf(n,o,y,s,z,k,O))?(B||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=k),p.props=s,p.state=k,p.context=O,s=y):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{p=n.stateNode,bf(e,n),y=n.memoizedProps,O=n.type===n.elementType?y:Bt(n.type,y),p.props=O,B=n.pendingProps,z=p.context,k=o.contextType,typeof k=="object"&&k!==null?k=It(k):(k=vt(o)?ar:rt.current,k=Gr(n,k));var K=o.getDerivedStateFromProps;(U=typeof K=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==B||z!==k)&&eh(n,p,s,k),Dn=!1,z=n.memoizedState,p.state=z,ks(n,s,p,l);var Y=n.memoizedState;y!==B||z!==Y||mt.current||Dn?(typeof K=="function"&&($l(n,o,K,s),Y=n.memoizedState),(O=Dn||Xf(n,o,O,s,z,Y,k)||!1)?(U||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,Y,k),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,Y,k)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||y===e.memoizedProps&&z===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&z===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=Y),p.props=s,p.state=Y,p.context=k,s=O):(typeof p.componentDidUpdate!="function"||y===e.memoizedProps&&z===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&z===e.memoizedState||(n.flags|=1024),s=!1)}return Wl(e,n,o,s,c,l)}function Wl(e,n,o,s,l,c){ch(e,n);var p=(n.flags&128)!==0;if(!s&&!p)return l&&vf(n,o,!1),vn(e,n,c);s=n.stateNode,My.current=n;var y=p&&typeof o.getDerivedStateFromError!="function"?null:s.render();return n.flags|=1,e!==null&&p?(n.child=Jr(n,e.child,null,c),n.child=Jr(n,null,y,c)):dt(e,n,y,c),n.memoizedState=s.state,l&&vf(n,o,!0),n.child}function fh(e){var n=e.stateNode;n.pendingContext?pf(e,n.pendingContext,n.pendingContext!==n.context):n.context&&pf(e,n.context,!1),bl(e,n.containerInfo)}function hh(e,n,o,s,l){return Xr(),xl(l),n.flags|=256,dt(e,n,o,s),n.child}var Vl={dehydrated:null,treeContext:null,retryLane:0};function ql(e){return{baseLanes:e,cachePool:null,transitions:null}}function ph(e,n,o){var s=n.pendingProps,l=Ie.current,c=!1,p=(n.flags&128)!==0,y;if((y=p)||(y=e!==null&&e.memoizedState===null?!1:(l&2)!==0),y?(c=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Ee(Ie,l&1),e===null)return wl(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(p=s.children,e=s.fallback,c?(s=n.mode,c=n.child,p={mode:"hidden",children:p},(s&1)===0&&c!==null?(c.childLanes=0,c.pendingProps=p):c=Hs(p,s,0,null),e=gr(e,s,o,null),c.return=n,e.return=n,c.sibling=e,n.child=c,n.child.memoizedState=ql(o),n.memoizedState=Vl,e):Kl(n,p));if(l=e.memoizedState,l!==null&&(y=l.dehydrated,y!==null))return Ly(e,n,p,s,y,l,o);if(c){c=s.fallback,p=n.mode,l=e.child,y=l.sibling;var k={mode:"hidden",children:s.children};return(p&1)===0&&n.child!==l?(s=n.child,s.childLanes=0,s.pendingProps=k,n.deletions=null):(s=Wn(l,k),s.subtreeFlags=l.subtreeFlags&14680064),y!==null?c=Wn(y,c):(c=gr(c,p,o,null),c.flags|=2),c.return=n,s.return=n,s.sibling=c,n.child=s,s=c,c=n.child,p=e.child.memoizedState,p=p===null?ql(o):{baseLanes:p.baseLanes|o,cachePool:null,transitions:p.transitions},c.memoizedState=p,c.childLanes=e.childLanes&~o,n.memoizedState=Vl,s}return c=e.child,e=c.sibling,s=Wn(c,{mode:"visible",children:s.children}),(n.mode&1)===0&&(s.lanes=o),s.return=n,s.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=s,n.memoizedState=null,s}function Kl(e,n){return n=Hs({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Rs(e,n,o,s){return s!==null&&xl(s),Jr(n,e.child,null,o),e=Kl(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Ly(e,n,o,s,l,c,p){if(o)return n.flags&256?(n.flags&=-257,s=Ul(Error(i(422))),Rs(e,n,p,s)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(c=s.fallback,l=n.mode,s=Hs({mode:"visible",children:s.children},l,0,null),c=gr(c,l,p,null),c.flags|=2,s.return=n,c.return=n,s.sibling=c,n.child=s,(n.mode&1)!==0&&Jr(n,e.child,null,p),n.child.memoizedState=ql(p),n.memoizedState=Vl,c);if((n.mode&1)===0)return Rs(e,n,p,null);if(l.data==="$!"){if(s=l.nextSibling&&l.nextSibling.dataset,s)var y=s.dgst;return s=y,c=Error(i(419)),s=Ul(c,s,void 0),Rs(e,n,p,s)}if(y=(p&e.childLanes)!==0,gt||y){if(s=Ge,s!==null){switch(p&-p){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(s.suspendedLanes|p))!==0?0:l,l!==0&&l!==c.retryLane&&(c.retryLane=l,pn(e,l),Vt(s,e,l,-1))}return uu(),s=Ul(Error(i(421))),Rs(e,n,p,s)}return l.data==="$?"?(n.flags|=128,n.child=e.child,n=Ky.bind(null,e),l._reactRetry=n,null):(e=c.treeContext,Pt=Mn(l.nextSibling),Et=n,Ne=!0,Ut=null,e!==null&&(Rt[Nt++]=fn,Rt[Nt++]=hn,Rt[Nt++]=lr,fn=e.id,hn=e.overflow,lr=n),n=Kl(n,s.children),n.flags|=4096,n)}function mh(e,n,o){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),_l(e.return,n,o)}function Ql(e,n,o,s,l){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:l}:(c.isBackwards=n,c.rendering=null,c.renderingStartTime=0,c.last=s,c.tail=o,c.tailMode=l)}function vh(e,n,o){var s=n.pendingProps,l=s.revealOrder,c=s.tail;if(dt(e,n,s.children,o),s=Ie.current,(s&2)!==0)s=s&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mh(e,o,n);else if(e.tag===19)mh(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Ee(Ie,s),(n.mode&1)===0)n.memoizedState=null;else switch(l){case"forwards":for(o=n.child,l=null;o!==null;)e=o.alternate,e!==null&&Cs(e)===null&&(l=o),o=o.sibling;o=l,o===null?(l=n.child,n.child=null):(l=o.sibling,o.sibling=null),Ql(n,!1,l,o,c);break;case"backwards":for(o=null,l=n.child,n.child=null;l!==null;){if(e=l.alternate,e!==null&&Cs(e)===null){n.child=l;break}e=l.sibling,l.sibling=o,o=l,l=e}Ql(n,!0,o,null,c);break;case"together":Ql(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ns(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function vn(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),hr|=n.lanes,(o&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,o=Wn(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=Wn(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function Oy(e,n,o){switch(n.tag){case 3:fh(n),Xr();break;case 5:Rf(n);break;case 1:vt(n.type)&&hs(n);break;case 4:bl(n,n.stateNode.containerInfo);break;case 10:var s=n.type._context,l=n.memoizedProps.value;Ee(ws,s._currentValue),s._currentValue=l;break;case 13:if(s=n.memoizedState,s!==null)return s.dehydrated!==null?(Ee(Ie,Ie.current&1),n.flags|=128,null):(o&n.child.childLanes)!==0?ph(e,n,o):(Ee(Ie,Ie.current&1),e=vn(e,n,o),e!==null?e.sibling:null);Ee(Ie,Ie.current&1);break;case 19:if(s=(o&n.childLanes)!==0,(e.flags&128)!==0){if(s)return vh(e,n,o);n.flags|=128}if(l=n.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ee(Ie,Ie.current),s)break;return null;case 22:case 23:return n.lanes=0,uh(e,n,o)}return vn(e,n,o)}var gh,Gl,yh,wh;gh=function(e,n){for(var o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Gl=function(){},yh=function(e,n,o,s){var l=e.memoizedProps;if(l!==s){e=n.stateNode,dr(Yt.current);var c=null;switch(o){case"input":l=Li(e,l),s=Li(e,s),c=[];break;case"select":l=Q({},l,{value:void 0}),s=Q({},s,{value:void 0}),c=[];break;case"textarea":l=ba(e,l),s=ba(e,s),c=[];break;default:typeof l.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=cs)}Ta(o,s);var p;o=null;for(O in l)if(!s.hasOwnProperty(O)&&l.hasOwnProperty(O)&&l[O]!=null)if(O==="style"){var y=l[O];for(p in y)y.hasOwnProperty(p)&&(o||(o={}),o[p]="")}else O!=="dangerouslySetInnerHTML"&&O!=="children"&&O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&O!=="autoFocus"&&(u.hasOwnProperty(O)?c||(c=[]):(c=c||[]).push(O,null));for(O in s){var k=s[O];if(y=l!=null?l[O]:void 0,s.hasOwnProperty(O)&&k!==y&&(k!=null||y!=null))if(O==="style")if(y){for(p in y)!y.hasOwnProperty(p)||k&&k.hasOwnProperty(p)||(o||(o={}),o[p]="");for(p in k)k.hasOwnProperty(p)&&y[p]!==k[p]&&(o||(o={}),o[p]=k[p])}else o||(c||(c=[]),c.push(O,o)),o=k;else O==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,y=y?y.__html:void 0,k!=null&&y!==k&&(c=c||[]).push(O,k)):O==="children"?typeof k!="string"&&typeof k!="number"||(c=c||[]).push(O,""+k):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&(u.hasOwnProperty(O)?(k!=null&&O==="onScroll"&&be("scroll",e),c||y===k||(c=[])):(c=c||[]).push(O,k))}o&&(c=c||[]).push("style",o);var O=c;(n.updateQueue=O)&&(n.flags|=4)}},wh=function(e,n,o,s){o!==s&&(n.flags|=4)};function po(e,n){if(!Ne)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ot(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,s=0;if(n)for(var l=e.child;l!==null;)o|=l.lanes|l.childLanes,s|=l.subtreeFlags&14680064,s|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)o|=l.lanes|l.childLanes,s|=l.subtreeFlags,s|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=s,e.childLanes=o,n}function Ay(e,n,o){var s=n.pendingProps;switch(gl(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(n),null;case 1:return vt(n.type)&&fs(),ot(n),null;case 3:return s=n.stateNode,ni(),je(mt),je(rt),Rl(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(gs(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ut!==null&&(su(Ut),Ut=null))),Gl(e,n),ot(n),null;case 5:jl(n);var l=dr(lo.current);if(o=n.type,e!==null&&n.stateNode!=null)yh(e,n,o,s,l),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!s){if(n.stateNode===null)throw Error(i(166));return ot(n),null}if(e=dr(Yt.current),gs(n)){s=n.stateNode,o=n.type;var c=n.memoizedProps;switch(s[Gt]=n,s[ro]=c,e=(n.mode&1)!==0,o){case"dialog":be("cancel",s),be("close",s);break;case"iframe":case"object":case"embed":be("load",s);break;case"video":case"audio":for(l=0;l<eo.length;l++)be(eo[l],s);break;case"source":be("error",s);break;case"img":case"image":case"link":be("error",s),be("load",s);break;case"details":be("toggle",s);break;case"input":Uo(s,c),be("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!c.multiple},be("invalid",s);break;case"textarea":td(s,c),be("invalid",s)}Ta(o,c),l=null;for(var p in c)if(c.hasOwnProperty(p)){var y=c[p];p==="children"?typeof y=="string"?s.textContent!==y&&(c.suppressHydrationWarning!==!0&&us(s.textContent,y,e),l=["children",y]):typeof y=="number"&&s.textContent!==""+y&&(c.suppressHydrationWarning!==!0&&us(s.textContent,y,e),l=["children",""+y]):u.hasOwnProperty(p)&&y!=null&&p==="onScroll"&&be("scroll",s)}switch(o){case"input":Or(s),un(s,c,!0);break;case"textarea":Or(s),rd(s);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(s.onclick=cs)}s=l,n.updateQueue=s,s!==null&&(n.flags|=4)}else{p=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=id(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=p.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=p.createElement(o,{is:s.is}):(e=p.createElement(o),o==="select"&&(p=e,s.multiple?p.multiple=!0:s.size&&(p.size=s.size))):e=p.createElementNS(e,o),e[Gt]=n,e[ro]=s,gh(e,n,!1,!1),n.stateNode=e;e:{switch(p=Ra(o,s),o){case"dialog":be("cancel",e),be("close",e),l=s;break;case"iframe":case"object":case"embed":be("load",e),l=s;break;case"video":case"audio":for(l=0;l<eo.length;l++)be(eo[l],e);l=s;break;case"source":be("error",e),l=s;break;case"img":case"image":case"link":be("error",e),be("load",e),l=s;break;case"details":be("toggle",e),l=s;break;case"input":Uo(e,s),l=Li(e,s),be("invalid",e);break;case"option":l=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},l=Q({},s,{value:void 0}),be("invalid",e);break;case"textarea":td(e,s),l=ba(e,s),be("invalid",e);break;default:l=s}Ta(o,l),y=l;for(c in y)if(y.hasOwnProperty(c)){var k=y[c];c==="style"?ad(e,k):c==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&od(e,k)):c==="children"?typeof k=="string"?(o!=="textarea"||k!=="")&&Oi(e,k):typeof k=="number"&&Oi(e,""+k):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(u.hasOwnProperty(c)?k!=null&&c==="onScroll"&&be("scroll",e):k!=null&&P(e,c,k,p))}switch(o){case"input":Or(e),un(e,s,!1);break;case"textarea":Or(e),rd(e);break;case"option":s.value!=null&&e.setAttribute("value",""+xe(s.value));break;case"select":e.multiple=!!s.multiple,c=s.value,c!=null?Dr(e,!!s.multiple,c,!1):s.defaultValue!=null&&Dr(e,!!s.multiple,s.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=cs)}switch(o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return ot(n),null;case 6:if(e&&n.stateNode!=null)wh(e,n,e.memoizedProps,s);else{if(typeof s!="string"&&n.stateNode===null)throw Error(i(166));if(o=dr(lo.current),dr(Yt.current),gs(n)){if(s=n.stateNode,o=n.memoizedProps,s[Gt]=n,(c=s.nodeValue!==o)&&(e=Et,e!==null))switch(e.tag){case 3:us(s.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&us(s.nodeValue,o,(e.mode&1)!==0)}c&&(n.flags|=4)}else s=(o.nodeType===9?o:o.ownerDocument).createTextNode(s),s[Gt]=n,n.stateNode=s}return ot(n),null;case 13:if(je(Ie),s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ne&&Pt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)kf(),Xr(),n.flags|=98560,c=!1;else if(c=gs(n),s!==null&&s.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[Gt]=n}else Xr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ot(n),c=!1}else Ut!==null&&(su(Ut),Ut=null),c=!0;if(!c)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=o,n):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Ie.current&1)!==0?We===0&&(We=3):uu())),n.updateQueue!==null&&(n.flags|=4),ot(n),null);case 4:return ni(),Gl(e,n),e===null&&to(n.stateNode.containerInfo),ot(n),null;case 10:return Cl(n.type._context),ot(n),null;case 17:return vt(n.type)&&fs(),ot(n),null;case 19:if(je(Ie),c=n.memoizedState,c===null)return ot(n),null;if(s=(n.flags&128)!==0,p=c.rendering,p===null)if(s)po(c,!1);else{if(We!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(p=Cs(e),p!==null){for(n.flags|=128,po(c,!1),s=p.updateQueue,s!==null&&(n.updateQueue=s,n.flags|=4),n.subtreeFlags=0,s=o,o=n.child;o!==null;)c=o,e=s,c.flags&=14680066,p=c.alternate,p===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=p.childLanes,c.lanes=p.lanes,c.child=p.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=p.memoizedProps,c.memoizedState=p.memoizedState,c.updateQueue=p.updateQueue,c.type=p.type,e=p.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Ee(Ie,Ie.current&1|2),n.child}e=e.sibling}c.tail!==null&&Fe()>si&&(n.flags|=128,s=!0,po(c,!1),n.lanes=4194304)}else{if(!s)if(e=Cs(p),e!==null){if(n.flags|=128,s=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),po(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!Ne)return ot(n),null}else 2*Fe()-c.renderingStartTime>si&&o!==1073741824&&(n.flags|=128,s=!0,po(c,!1),n.lanes=4194304);c.isBackwards?(p.sibling=n.child,n.child=p):(o=c.last,o!==null?o.sibling=p:n.child=p,c.last=p)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=Fe(),n.sibling=null,o=Ie.current,Ee(Ie,s?o&1|2:o&1),n):(ot(n),null);case 22:case 23:return lu(),s=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(n.flags|=8192),s&&(n.mode&1)!==0?(bt&1073741824)!==0&&(ot(n),n.subtreeFlags&6&&(n.flags|=8192)):ot(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function Dy(e,n){switch(gl(n),n.tag){case 1:return vt(n.type)&&fs(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ni(),je(mt),je(rt),Rl(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return jl(n),null;case 13:if(je(Ie),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Xr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return je(Ie),null;case 4:return ni(),null;case 10:return Cl(n.type._context),null;case 22:case 23:return lu(),null;case 24:return null;default:return null}}var Is=!1,st=!1,Fy=typeof WeakSet=="function"?WeakSet:Set,G=null;function ii(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(s){Oe(e,n,s)}else o.current=null}function Yl(e,n,o){try{o()}catch(s){Oe(e,n,s)}}var xh=!1;function $y(e,n){if(ll=Xo,e=Zd(),el(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var l=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{o.nodeType,c.nodeType}catch{o=null;break e}var p=0,y=-1,k=-1,O=0,U=0,B=e,z=null;t:for(;;){for(var K;B!==o||l!==0&&B.nodeType!==3||(y=p+l),B!==c||s!==0&&B.nodeType!==3||(k=p+s),B.nodeType===3&&(p+=B.nodeValue.length),(K=B.firstChild)!==null;)z=B,B=K;for(;;){if(B===e)break t;if(z===o&&++O===l&&(y=p),z===c&&++U===s&&(k=p),(K=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=K}o=y===-1||k===-1?null:{start:y,end:k}}else o=null}o=o||{start:0,end:0}}else o=null;for(ul={focusedElem:e,selectionRange:o},Xo=!1,G=n;G!==null;)if(n=G,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,G=e;else for(;G!==null;){n=G;try{var Y=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(Y!==null){var J=Y.memoizedProps,$e=Y.memoizedState,T=n.stateNode,_=T.getSnapshotBeforeUpdate(n.elementType===n.type?J:Bt(n.type,J),$e);T.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var R=n.stateNode.containerInfo;R.nodeType===1?R.textContent="":R.nodeType===9&&R.documentElement&&R.removeChild(R.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(H){Oe(n,n.return,H)}if(e=n.sibling,e!==null){e.return=n.return,G=e;break}G=n.return}return Y=xh,xh=!1,Y}function mo(e,n,o){var s=n.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&e)===e){var c=l.destroy;l.destroy=void 0,c!==void 0&&Yl(n,o,c)}l=l.next}while(l!==s)}}function Ms(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var s=o.create;o.destroy=s()}o=o.next}while(o!==n)}}function Zl(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function Sh(e){var n=e.alternate;n!==null&&(e.alternate=null,Sh(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Gt],delete n[ro],delete n[hl],delete n[Sy],delete n[ky])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function kh(e){return e.tag===5||e.tag===3||e.tag===4}function Ch(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xl(e,n,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=cs));else if(s!==4&&(e=e.child,e!==null))for(Xl(e,n,o),e=e.sibling;e!==null;)Xl(e,n,o),e=e.sibling}function Jl(e,n,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Jl(e,n,o),e=e.sibling;e!==null;)Jl(e,n,o),e=e.sibling}var Je=null,Ht=!1;function $n(e,n,o){for(o=o.child;o!==null;)_h(e,n,o),o=o.sibling}function _h(e,n,o){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(qo,o)}catch{}switch(o.tag){case 5:st||ii(o,n);case 6:var s=Je,l=Ht;Je=null,$n(e,n,o),Je=s,Ht=l,Je!==null&&(Ht?(e=Je,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):Je.removeChild(o.stateNode));break;case 18:Je!==null&&(Ht?(e=Je,o=o.stateNode,e.nodeType===8?fl(e.parentNode,o):e.nodeType===1&&fl(e,o),qi(e)):fl(Je,o.stateNode));break;case 4:s=Je,l=Ht,Je=o.stateNode.containerInfo,Ht=!0,$n(e,n,o),Je=s,Ht=l;break;case 0:case 11:case 14:case 15:if(!st&&(s=o.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){l=s=s.next;do{var c=l,p=c.destroy;c=c.tag,p!==void 0&&((c&2)!==0||(c&4)!==0)&&Yl(o,n,p),l=l.next}while(l!==s)}$n(e,n,o);break;case 1:if(!st&&(ii(o,n),s=o.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=o.memoizedProps,s.state=o.memoizedState,s.componentWillUnmount()}catch(y){Oe(o,n,y)}$n(e,n,o);break;case 21:$n(e,n,o);break;case 22:o.mode&1?(st=(s=st)||o.memoizedState!==null,$n(e,n,o),st=s):$n(e,n,o);break;default:$n(e,n,o)}}function Eh(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Fy),n.forEach(function(s){var l=Qy.bind(null,e,s);o.has(s)||(o.add(s),s.then(l,l))})}}function Wt(e,n){var o=n.deletions;if(o!==null)for(var s=0;s<o.length;s++){var l=o[s];try{var c=e,p=n,y=p;e:for(;y!==null;){switch(y.tag){case 5:Je=y.stateNode,Ht=!1;break e;case 3:Je=y.stateNode.containerInfo,Ht=!0;break e;case 4:Je=y.stateNode.containerInfo,Ht=!0;break e}y=y.return}if(Je===null)throw Error(i(160));_h(c,p,l),Je=null,Ht=!1;var k=l.alternate;k!==null&&(k.return=null),l.return=null}catch(O){Oe(l,n,O)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Ph(n,e),n=n.sibling}function Ph(e,n){var o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Wt(n,e),Xt(e),s&4){try{mo(3,e,e.return),Ms(3,e)}catch(J){Oe(e,e.return,J)}try{mo(5,e,e.return)}catch(J){Oe(e,e.return,J)}}break;case 1:Wt(n,e),Xt(e),s&512&&o!==null&&ii(o,o.return);break;case 5:if(Wt(n,e),Xt(e),s&512&&o!==null&&ii(o,o.return),e.flags&32){var l=e.stateNode;try{Oi(l,"")}catch(J){Oe(e,e.return,J)}}if(s&4&&(l=e.stateNode,l!=null)){var c=e.memoizedProps,p=o!==null?o.memoizedProps:c,y=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{y==="input"&&c.type==="radio"&&c.name!=null&&Tt(l,c),Ra(y,p);var O=Ra(y,c);for(p=0;p<k.length;p+=2){var U=k[p],B=k[p+1];U==="style"?ad(l,B):U==="dangerouslySetInnerHTML"?od(l,B):U==="children"?Oi(l,B):P(l,U,B,O)}switch(y){case"input":Kt(l,c);break;case"textarea":nd(l,c);break;case"select":var z=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!c.multiple;var K=c.value;K!=null?Dr(l,!!c.multiple,K,!1):z!==!!c.multiple&&(c.defaultValue!=null?Dr(l,!!c.multiple,c.defaultValue,!0):Dr(l,!!c.multiple,c.multiple?[]:"",!1))}l[ro]=c}catch(J){Oe(e,e.return,J)}}break;case 6:if(Wt(n,e),Xt(e),s&4){if(e.stateNode===null)throw Error(i(162));l=e.stateNode,c=e.memoizedProps;try{l.nodeValue=c}catch(J){Oe(e,e.return,J)}}break;case 3:if(Wt(n,e),Xt(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{qi(n.containerInfo)}catch(J){Oe(e,e.return,J)}break;case 4:Wt(n,e),Xt(e);break;case 13:Wt(n,e),Xt(e),l=e.child,l.flags&8192&&(c=l.memoizedState!==null,l.stateNode.isHidden=c,!c||l.alternate!==null&&l.alternate.memoizedState!==null||(nu=Fe())),s&4&&Eh(e);break;case 22:if(U=o!==null&&o.memoizedState!==null,e.mode&1?(st=(O=st)||U,Wt(n,e),st=O):Wt(n,e),Xt(e),s&8192){if(O=e.memoizedState!==null,(e.stateNode.isHidden=O)&&!U&&(e.mode&1)!==0)for(G=e,U=e.child;U!==null;){for(B=G=U;G!==null;){switch(z=G,K=z.child,z.tag){case 0:case 11:case 14:case 15:mo(4,z,z.return);break;case 1:ii(z,z.return);var Y=z.stateNode;if(typeof Y.componentWillUnmount=="function"){s=z,o=z.return;try{n=s,Y.props=n.memoizedProps,Y.state=n.memoizedState,Y.componentWillUnmount()}catch(J){Oe(s,o,J)}}break;case 5:ii(z,z.return);break;case 22:if(z.memoizedState!==null){Th(B);continue}}K!==null?(K.return=z,G=K):Th(B)}U=U.sibling}e:for(U=null,B=e;;){if(B.tag===5){if(U===null){U=B;try{l=B.stateNode,O?(c=l.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(y=B.stateNode,k=B.memoizedProps.style,p=k!=null&&k.hasOwnProperty("display")?k.display:null,y.style.display=sd("display",p))}catch(J){Oe(e,e.return,J)}}}else if(B.tag===6){if(U===null)try{B.stateNode.nodeValue=O?"":B.memoizedProps}catch(J){Oe(e,e.return,J)}}else if((B.tag!==22&&B.tag!==23||B.memoizedState===null||B===e)&&B.child!==null){B.child.return=B,B=B.child;continue}if(B===e)break e;for(;B.sibling===null;){if(B.return===null||B.return===e)break e;U===B&&(U=null),B=B.return}U===B&&(U=null),B.sibling.return=B.return,B=B.sibling}}break;case 19:Wt(n,e),Xt(e),s&4&&Eh(e);break;case 21:break;default:Wt(n,e),Xt(e)}}function Xt(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(kh(o)){var s=o;break e}o=o.return}throw Error(i(160))}switch(s.tag){case 5:var l=s.stateNode;s.flags&32&&(Oi(l,""),s.flags&=-33);var c=Ch(e);Jl(e,c,l);break;case 3:case 4:var p=s.stateNode.containerInfo,y=Ch(e);Xl(e,y,p);break;default:throw Error(i(161))}}catch(k){Oe(e,e.return,k)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function zy(e,n,o){G=e,bh(e)}function bh(e,n,o){for(var s=(e.mode&1)!==0;G!==null;){var l=G,c=l.child;if(l.tag===22&&s){var p=l.memoizedState!==null||Is;if(!p){var y=l.alternate,k=y!==null&&y.memoizedState!==null||st;y=Is;var O=st;if(Is=p,(st=k)&&!O)for(G=l;G!==null;)p=G,k=p.child,p.tag===22&&p.memoizedState!==null?Rh(l):k!==null?(k.return=p,G=k):Rh(l);for(;c!==null;)G=c,bh(c),c=c.sibling;G=l,Is=y,st=O}jh(e)}else(l.subtreeFlags&8772)!==0&&c!==null?(c.return=l,G=c):jh(e)}}function jh(e){for(;G!==null;){var n=G;if((n.flags&8772)!==0){var o=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:st||Ms(5,n);break;case 1:var s=n.stateNode;if(n.flags&4&&!st)if(o===null)s.componentDidMount();else{var l=n.elementType===n.type?o.memoizedProps:Bt(n.type,o.memoizedProps);s.componentDidUpdate(l,o.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var c=n.updateQueue;c!==null&&Tf(n,c,s);break;case 3:var p=n.updateQueue;if(p!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}Tf(n,p,o)}break;case 5:var y=n.stateNode;if(o===null&&n.flags&4){o=y;var k=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&o.focus();break;case"img":k.src&&(o.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var O=n.alternate;if(O!==null){var U=O.memoizedState;if(U!==null){var B=U.dehydrated;B!==null&&qi(B)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}st||n.flags&512&&Zl(n)}catch(z){Oe(n,n.return,z)}}if(n===e){G=null;break}if(o=n.sibling,o!==null){o.return=n.return,G=o;break}G=n.return}}function Th(e){for(;G!==null;){var n=G;if(n===e){G=null;break}var o=n.sibling;if(o!==null){o.return=n.return,G=o;break}G=n.return}}function Rh(e){for(;G!==null;){var n=G;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{Ms(4,n)}catch(k){Oe(n,o,k)}break;case 1:var s=n.stateNode;if(typeof s.componentDidMount=="function"){var l=n.return;try{s.componentDidMount()}catch(k){Oe(n,l,k)}}var c=n.return;try{Zl(n)}catch(k){Oe(n,c,k)}break;case 5:var p=n.return;try{Zl(n)}catch(k){Oe(n,p,k)}}}catch(k){Oe(n,n.return,k)}if(n===e){G=null;break}var y=n.sibling;if(y!==null){y.return=n.return,G=y;break}G=n.return}}var Uy=Math.ceil,Ls=j.ReactCurrentDispatcher,eu=j.ReactCurrentOwner,Lt=j.ReactCurrentBatchConfig,ye=0,Ge=null,ze=null,et=0,bt=0,oi=Ln(0),We=0,vo=null,hr=0,Os=0,tu=0,go=null,yt=null,nu=0,si=1/0,gn=null,As=!1,ru=null,zn=null,Ds=!1,Un=null,Fs=0,yo=0,iu=null,$s=-1,zs=0;function ft(){return(ye&6)!==0?Fe():$s!==-1?$s:$s=Fe()}function Bn(e){return(e.mode&1)===0?1:(ye&2)!==0&&et!==0?et&-et:_y.transition!==null?(zs===0&&(zs=kd()),zs):(e=ke,e!==0||(e=window.event,e=e===void 0?16:Nd(e.type)),e)}function Vt(e,n,o,s){if(50<yo)throw yo=0,iu=null,Error(i(185));Ui(e,o,s),((ye&2)===0||e!==Ge)&&(e===Ge&&((ye&2)===0&&(Os|=o),We===4&&Hn(e,et)),wt(e,s),o===1&&ye===0&&(n.mode&1)===0&&(si=Fe()+500,ps&&An()))}function wt(e,n){var o=e.callbackNode;_g(e,n);var s=Go(e,e===Ge?et:0);if(s===0)o!==null&&wd(o),e.callbackNode=null,e.callbackPriority=0;else if(n=s&-s,e.callbackPriority!==n){if(o!=null&&wd(o),n===1)e.tag===0?Cy(Ih.bind(null,e)):gf(Ih.bind(null,e)),wy(function(){(ye&6)===0&&An()}),o=null;else{switch(Cd(s)){case 1:o=Da;break;case 4:o=xd;break;case 16:o=Vo;break;case 536870912:o=Sd;break;default:o=Vo}o=zh(o,Nh.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function Nh(e,n){if($s=-1,zs=0,(ye&6)!==0)throw Error(i(327));var o=e.callbackNode;if(ai()&&e.callbackNode!==o)return null;var s=Go(e,e===Ge?et:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||n)n=Us(e,s);else{n=s;var l=ye;ye|=2;var c=Lh();(Ge!==e||et!==n)&&(gn=null,si=Fe()+500,mr(e,n));do try{Wy();break}catch(y){Mh(e,y)}while(!0);kl(),Ls.current=c,ye=l,ze!==null?n=0:(Ge=null,et=0,n=We)}if(n!==0){if(n===2&&(l=Fa(e),l!==0&&(s=l,n=ou(e,l))),n===1)throw o=vo,mr(e,0),Hn(e,s),wt(e,Fe()),o;if(n===6)Hn(e,s);else{if(l=e.current.alternate,(s&30)===0&&!By(l)&&(n=Us(e,s),n===2&&(c=Fa(e),c!==0&&(s=c,n=ou(e,c))),n===1))throw o=vo,mr(e,0),Hn(e,s),wt(e,Fe()),o;switch(e.finishedWork=l,e.finishedLanes=s,n){case 0:case 1:throw Error(i(345));case 2:vr(e,yt,gn);break;case 3:if(Hn(e,s),(s&130023424)===s&&(n=nu+500-Fe(),10<n)){if(Go(e,0)!==0)break;if(l=e.suspendedLanes,(l&s)!==s){ft(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=dl(vr.bind(null,e,yt,gn),n);break}vr(e,yt,gn);break;case 4:if(Hn(e,s),(s&4194240)===s)break;for(n=e.eventTimes,l=-1;0<s;){var p=31-$t(s);c=1<<p,p=n[p],p>l&&(l=p),s&=~c}if(s=l,s=Fe()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Uy(s/1960))-s,10<s){e.timeoutHandle=dl(vr.bind(null,e,yt,gn),s);break}vr(e,yt,gn);break;case 5:vr(e,yt,gn);break;default:throw Error(i(329))}}}return wt(e,Fe()),e.callbackNode===o?Nh.bind(null,e):null}function ou(e,n){var o=go;return e.current.memoizedState.isDehydrated&&(mr(e,n).flags|=256),e=Us(e,n),e!==2&&(n=yt,yt=o,n!==null&&su(n)),e}function su(e){yt===null?yt=e:yt.push.apply(yt,e)}function By(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var s=0;s<o.length;s++){var l=o[s],c=l.getSnapshot;l=l.value;try{if(!zt(c(),l))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Hn(e,n){for(n&=~tu,n&=~Os,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-$t(n),s=1<<o;e[o]=-1,n&=~s}}function Ih(e){if((ye&6)!==0)throw Error(i(327));ai();var n=Go(e,0);if((n&1)===0)return wt(e,Fe()),null;var o=Us(e,n);if(e.tag!==0&&o===2){var s=Fa(e);s!==0&&(n=s,o=ou(e,s))}if(o===1)throw o=vo,mr(e,0),Hn(e,n),wt(e,Fe()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,vr(e,yt,gn),wt(e,Fe()),null}function au(e,n){var o=ye;ye|=1;try{return e(n)}finally{ye=o,ye===0&&(si=Fe()+500,ps&&An())}}function pr(e){Un!==null&&Un.tag===0&&(ye&6)===0&&ai();var n=ye;ye|=1;var o=Lt.transition,s=ke;try{if(Lt.transition=null,ke=1,e)return e()}finally{ke=s,Lt.transition=o,ye=n,(ye&6)===0&&An()}}function lu(){bt=oi.current,je(oi)}function mr(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,yy(o)),ze!==null)for(o=ze.return;o!==null;){var s=o;switch(gl(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&fs();break;case 3:ni(),je(mt),je(rt),Rl();break;case 5:jl(s);break;case 4:ni();break;case 13:je(Ie);break;case 19:je(Ie);break;case 10:Cl(s.type._context);break;case 22:case 23:lu()}o=o.return}if(Ge=e,ze=e=Wn(e.current,null),et=bt=n,We=0,vo=null,tu=Os=hr=0,yt=go=null,cr!==null){for(n=0;n<cr.length;n++)if(o=cr[n],s=o.interleaved,s!==null){o.interleaved=null;var l=s.next,c=o.pending;if(c!==null){var p=c.next;c.next=l,s.next=p}o.pending=s}cr=null}return e}function Mh(e,n){do{var o=ze;try{if(kl(),_s.current=js,Es){for(var s=Me.memoizedState;s!==null;){var l=s.queue;l!==null&&(l.pending=null),s=s.next}Es=!1}if(fr=0,Qe=He=Me=null,uo=!1,co=0,eu.current=null,o===null||o.return===null){We=1,vo=n,ze=null;break}e:{var c=e,p=o.return,y=o,k=n;if(n=et,y.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var O=k,U=y,B=U.tag;if((U.mode&1)===0&&(B===0||B===11||B===15)){var z=U.alternate;z?(U.updateQueue=z.updateQueue,U.memoizedState=z.memoizedState,U.lanes=z.lanes):(U.updateQueue=null,U.memoizedState=null)}var K=ih(p);if(K!==null){K.flags&=-257,oh(K,p,y,c,n),K.mode&1&&rh(c,O,n),n=K,k=O;var Y=n.updateQueue;if(Y===null){var J=new Set;J.add(k),n.updateQueue=J}else Y.add(k);break e}else{if((n&1)===0){rh(c,O,n),uu();break e}k=Error(i(426))}}else if(Ne&&y.mode&1){var $e=ih(p);if($e!==null){($e.flags&65536)===0&&($e.flags|=256),oh($e,p,y,c,n),xl(ri(k,y));break e}}c=k=ri(k,y),We!==4&&(We=2),go===null?go=[c]:go.push(c),c=p;do{switch(c.tag){case 3:c.flags|=65536,n&=-n,c.lanes|=n;var T=th(c,k,n);jf(c,T);break e;case 1:y=k;var _=c.type,R=c.stateNode;if((c.flags&128)===0&&(typeof _.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(zn===null||!zn.has(R)))){c.flags|=65536,n&=-n,c.lanes|=n;var H=nh(c,y,n);jf(c,H);break e}}c=c.return}while(c!==null)}Ah(o)}catch(ee){n=ee,ze===o&&o!==null&&(ze=o=o.return);continue}break}while(!0)}function Lh(){var e=Ls.current;return Ls.current=js,e===null?js:e}function uu(){(We===0||We===3||We===2)&&(We=4),Ge===null||(hr&268435455)===0&&(Os&268435455)===0||Hn(Ge,et)}function Us(e,n){var o=ye;ye|=2;var s=Lh();(Ge!==e||et!==n)&&(gn=null,mr(e,n));do try{Hy();break}catch(l){Mh(e,l)}while(!0);if(kl(),ye=o,Ls.current=s,ze!==null)throw Error(i(261));return Ge=null,et=0,We}function Hy(){for(;ze!==null;)Oh(ze)}function Wy(){for(;ze!==null&&!mg();)Oh(ze)}function Oh(e){var n=$h(e.alternate,e,bt);e.memoizedProps=e.pendingProps,n===null?Ah(e):ze=n,eu.current=null}function Ah(e){var n=e;do{var o=n.alternate;if(e=n.return,(n.flags&32768)===0){if(o=Ay(o,n,bt),o!==null){ze=o;return}}else{if(o=Dy(o,n),o!==null){o.flags&=32767,ze=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{We=6,ze=null;return}}if(n=n.sibling,n!==null){ze=n;return}ze=n=e}while(n!==null);We===0&&(We=5)}function vr(e,n,o){var s=ke,l=Lt.transition;try{Lt.transition=null,ke=1,Vy(e,n,o,s)}finally{Lt.transition=l,ke=s}return null}function Vy(e,n,o,s){do ai();while(Un!==null);if((ye&6)!==0)throw Error(i(327));o=e.finishedWork;var l=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var c=o.lanes|o.childLanes;if(Eg(e,c),e===Ge&&(ze=Ge=null,et=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Ds||(Ds=!0,zh(Vo,function(){return ai(),null})),c=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||c){c=Lt.transition,Lt.transition=null;var p=ke;ke=1;var y=ye;ye|=4,eu.current=null,$y(e,o),Ph(o,e),dy(ul),Xo=!!ll,ul=ll=null,e.current=o,zy(o),vg(),ye=y,ke=p,Lt.transition=c}else e.current=o;if(Ds&&(Ds=!1,Un=e,Fs=l),c=e.pendingLanes,c===0&&(zn=null),wg(o.stateNode),wt(e,Fe()),n!==null)for(s=e.onRecoverableError,o=0;o<n.length;o++)l=n[o],s(l.value,{componentStack:l.stack,digest:l.digest});if(As)throw As=!1,e=ru,ru=null,e;return(Fs&1)!==0&&e.tag!==0&&ai(),c=e.pendingLanes,(c&1)!==0?e===iu?yo++:(yo=0,iu=e):yo=0,An(),null}function ai(){if(Un!==null){var e=Cd(Fs),n=Lt.transition,o=ke;try{if(Lt.transition=null,ke=16>e?16:e,Un===null)var s=!1;else{if(e=Un,Un=null,Fs=0,(ye&6)!==0)throw Error(i(331));var l=ye;for(ye|=4,G=e.current;G!==null;){var c=G,p=c.child;if((G.flags&16)!==0){var y=c.deletions;if(y!==null){for(var k=0;k<y.length;k++){var O=y[k];for(G=O;G!==null;){var U=G;switch(U.tag){case 0:case 11:case 15:mo(8,U,c)}var B=U.child;if(B!==null)B.return=U,G=B;else for(;G!==null;){U=G;var z=U.sibling,K=U.return;if(Sh(U),U===O){G=null;break}if(z!==null){z.return=K,G=z;break}G=K}}}var Y=c.alternate;if(Y!==null){var J=Y.child;if(J!==null){Y.child=null;do{var $e=J.sibling;J.sibling=null,J=$e}while(J!==null)}}G=c}}if((c.subtreeFlags&2064)!==0&&p!==null)p.return=c,G=p;else e:for(;G!==null;){if(c=G,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:mo(9,c,c.return)}var T=c.sibling;if(T!==null){T.return=c.return,G=T;break e}G=c.return}}var _=e.current;for(G=_;G!==null;){p=G;var R=p.child;if((p.subtreeFlags&2064)!==0&&R!==null)R.return=p,G=R;else e:for(p=_;G!==null;){if(y=G,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:Ms(9,y)}}catch(ee){Oe(y,y.return,ee)}if(y===p){G=null;break e}var H=y.sibling;if(H!==null){H.return=y.return,G=H;break e}G=y.return}}if(ye=l,An(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(qo,e)}catch{}s=!0}return s}finally{ke=o,Lt.transition=n}}return!1}function Dh(e,n,o){n=ri(o,n),n=th(e,n,1),e=Fn(e,n,1),n=ft(),e!==null&&(Ui(e,1,n),wt(e,n))}function Oe(e,n,o){if(e.tag===3)Dh(e,e,o);else for(;n!==null;){if(n.tag===3){Dh(n,e,o);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(zn===null||!zn.has(s))){e=ri(o,e),e=nh(n,e,1),n=Fn(n,e,1),e=ft(),n!==null&&(Ui(n,1,e),wt(n,e));break}}n=n.return}}function qy(e,n,o){var s=e.pingCache;s!==null&&s.delete(n),n=ft(),e.pingedLanes|=e.suspendedLanes&o,Ge===e&&(et&o)===o&&(We===4||We===3&&(et&130023424)===et&&500>Fe()-nu?mr(e,0):tu|=o),wt(e,n)}function Fh(e,n){n===0&&((e.mode&1)===0?n=1:(n=Qo,Qo<<=1,(Qo&130023424)===0&&(Qo=4194304)));var o=ft();e=pn(e,n),e!==null&&(Ui(e,n,o),wt(e,o))}function Ky(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),Fh(e,o)}function Qy(e,n){var o=0;switch(e.tag){case 13:var s=e.stateNode,l=e.memoizedState;l!==null&&(o=l.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(n),Fh(e,o)}var $h;$h=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||mt.current)gt=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return gt=!1,Oy(e,n,o);gt=(e.flags&131072)!==0}else gt=!1,Ne&&(n.flags&1048576)!==0&&yf(n,vs,n.index);switch(n.lanes=0,n.tag){case 2:var s=n.type;Ns(e,n),e=n.pendingProps;var l=Gr(n,rt.current);ti(n,o),l=Ml(null,n,s,e,l,o);var c=Ll();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,vt(s)?(c=!0,hs(n)):c=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Pl(n),l.updater=Ts,n.stateNode=l,l._reactInternals=n,zl(n,s,e,o),n=Wl(null,n,s,!0,c,o)):(n.tag=0,Ne&&c&&vl(n),dt(null,n,l,o),n=n.child),n;case 16:s=n.elementType;e:{switch(Ns(e,n),e=n.pendingProps,l=s._init,s=l(s._payload),n.type=s,l=n.tag=Yy(s),e=Bt(s,e),l){case 0:n=Hl(null,n,s,e,o);break e;case 1:n=dh(null,n,s,e,o);break e;case 11:n=sh(null,n,s,e,o);break e;case 14:n=ah(null,n,s,Bt(s.type,e),o);break e}throw Error(i(306,s,""))}return n;case 0:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),Hl(e,n,s,l,o);case 1:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),dh(e,n,s,l,o);case 3:e:{if(fh(n),e===null)throw Error(i(387));s=n.pendingProps,c=n.memoizedState,l=c.element,bf(e,n),ks(n,s,null,o);var p=n.memoizedState;if(s=p.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:p.cache,pendingSuspenseBoundaries:p.pendingSuspenseBoundaries,transitions:p.transitions},n.updateQueue.baseState=c,n.memoizedState=c,n.flags&256){l=ri(Error(i(423)),n),n=hh(e,n,s,o,l);break e}else if(s!==l){l=ri(Error(i(424)),n),n=hh(e,n,s,o,l);break e}else for(Pt=Mn(n.stateNode.containerInfo.firstChild),Et=n,Ne=!0,Ut=null,o=Ef(n,null,s,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Xr(),s===l){n=vn(e,n,o);break e}dt(e,n,s,o)}n=n.child}return n;case 5:return Rf(n),e===null&&wl(n),s=n.type,l=n.pendingProps,c=e!==null?e.memoizedProps:null,p=l.children,cl(s,l)?p=null:c!==null&&cl(s,c)&&(n.flags|=32),ch(e,n),dt(e,n,p,o),n.child;case 6:return e===null&&wl(n),null;case 13:return ph(e,n,o);case 4:return bl(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=Jr(n,null,s,o):dt(e,n,s,o),n.child;case 11:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),sh(e,n,s,l,o);case 7:return dt(e,n,n.pendingProps,o),n.child;case 8:return dt(e,n,n.pendingProps.children,o),n.child;case 12:return dt(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(s=n.type._context,l=n.pendingProps,c=n.memoizedProps,p=l.value,Ee(ws,s._currentValue),s._currentValue=p,c!==null)if(zt(c.value,p)){if(c.children===l.children&&!mt.current){n=vn(e,n,o);break e}}else for(c=n.child,c!==null&&(c.return=n);c!==null;){var y=c.dependencies;if(y!==null){p=c.child;for(var k=y.firstContext;k!==null;){if(k.context===s){if(c.tag===1){k=mn(-1,o&-o),k.tag=2;var O=c.updateQueue;if(O!==null){O=O.shared;var U=O.pending;U===null?k.next=k:(k.next=U.next,U.next=k),O.pending=k}}c.lanes|=o,k=c.alternate,k!==null&&(k.lanes|=o),_l(c.return,o,n),y.lanes|=o;break}k=k.next}}else if(c.tag===10)p=c.type===n.type?null:c.child;else if(c.tag===18){if(p=c.return,p===null)throw Error(i(341));p.lanes|=o,y=p.alternate,y!==null&&(y.lanes|=o),_l(p,o,n),p=c.sibling}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===n){p=null;break}if(c=p.sibling,c!==null){c.return=p.return,p=c;break}p=p.return}c=p}dt(e,n,l.children,o),n=n.child}return n;case 9:return l=n.type,s=n.pendingProps.children,ti(n,o),l=It(l),s=s(l),n.flags|=1,dt(e,n,s,o),n.child;case 14:return s=n.type,l=Bt(s,n.pendingProps),l=Bt(s.type,l),ah(e,n,s,l,o);case 15:return lh(e,n,n.type,n.pendingProps,o);case 17:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),Ns(e,n),n.tag=1,vt(s)?(e=!0,hs(n)):e=!1,ti(n,o),Jf(n,s,l),zl(n,s,l,o),Wl(null,n,s,!0,e,o);case 19:return vh(e,n,o);case 22:return uh(e,n,o)}throw Error(i(156,n.tag))};function zh(e,n){return yd(e,n)}function Gy(e,n,o,s){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,n,o,s){return new Gy(e,n,o,s)}function cu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yy(e){if(typeof e=="function")return cu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Te)return 11;if(e===Ke)return 14}return 2}function Wn(e,n){var o=e.alternate;return o===null?(o=Ot(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Bs(e,n,o,s,l,c){var p=2;if(s=e,typeof e=="function")cu(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case te:return gr(o.children,l,c,n);case Z:p=8,l|=8;break;case se:return e=Ot(12,o,n,l|2),e.elementType=se,e.lanes=c,e;case Be:return e=Ot(13,o,n,l),e.elementType=Be,e.lanes=c,e;case qe:return e=Ot(19,o,n,l),e.elementType=qe,e.lanes=c,e;case Re:return Hs(o,l,c,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ce:p=10;break e;case X:p=9;break e;case Te:p=11;break e;case Ke:p=14;break e;case nt:p=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return n=Ot(p,o,n,l),n.elementType=e,n.type=s,n.lanes=c,n}function gr(e,n,o,s){return e=Ot(7,e,s,n),e.lanes=o,e}function Hs(e,n,o,s){return e=Ot(22,e,s,n),e.elementType=Re,e.lanes=o,e.stateNode={isHidden:!1},e}function du(e,n,o){return e=Ot(6,e,null,n),e.lanes=o,e}function fu(e,n,o){return n=Ot(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Zy(e,n,o,s,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$a(0),this.expirationTimes=$a(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$a(0),this.identifierPrefix=s,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function hu(e,n,o,s,l,c,p,y,k){return e=new Zy(e,n,o,y,k),n===1?(n=1,c===!0&&(n|=8)):n=0,c=Ot(3,null,null,n),e.current=c,c.stateNode=e,c.memoizedState={element:s,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pl(c),e}function Xy(e,n,o){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:W,key:s==null?null:""+s,children:e,containerInfo:n,implementation:o}}function Uh(e){if(!e)return On;e=e._reactInternals;e:{if(or(e)!==e||e.tag!==1)throw Error(i(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(vt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(e.tag===1){var o=e.type;if(vt(o))return mf(e,o,n)}return n}function Bh(e,n,o,s,l,c,p,y,k){return e=hu(o,s,!0,e,l,c,p,y,k),e.context=Uh(null),o=e.current,s=ft(),l=Bn(o),c=mn(s,l),c.callback=n??null,Fn(o,c,l),e.current.lanes=l,Ui(e,l,s),wt(e,s),e}function Ws(e,n,o,s){var l=n.current,c=ft(),p=Bn(l);return o=Uh(o),n.context===null?n.context=o:n.pendingContext=o,n=mn(c,p),n.payload={element:e},s=s===void 0?null:s,s!==null&&(n.callback=s),e=Fn(l,n,p),e!==null&&(Vt(e,l,p,c),Ss(e,l,p)),p}function Vs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Hh(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function pu(e,n){Hh(e,n),(e=e.alternate)&&Hh(e,n)}function Jy(){return null}var Wh=typeof reportError=="function"?reportError:function(e){console.error(e)};function mu(e){this._internalRoot=e}qs.prototype.render=mu.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));Ws(e,n,null,null)},qs.prototype.unmount=mu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;pr(function(){Ws(null,e,null,null)}),n[cn]=null}};function qs(e){this._internalRoot=e}qs.prototype.unstable_scheduleHydration=function(e){if(e){var n=Pd();e={blockedOn:null,target:e,priority:n};for(var o=0;o<Rn.length&&n!==0&&n<Rn[o].priority;o++);Rn.splice(o,0,e),o===0&&Td(e)}};function vu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ks(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vh(){}function ew(e,n,o,s,l){if(l){if(typeof s=="function"){var c=s;s=function(){var O=Vs(p);c.call(O)}}var p=Bh(n,s,e,0,null,!1,!1,"",Vh);return e._reactRootContainer=p,e[cn]=p.current,to(e.nodeType===8?e.parentNode:e),pr(),p}for(;l=e.lastChild;)e.removeChild(l);if(typeof s=="function"){var y=s;s=function(){var O=Vs(k);y.call(O)}}var k=hu(e,0,!1,null,null,!1,!1,"",Vh);return e._reactRootContainer=k,e[cn]=k.current,to(e.nodeType===8?e.parentNode:e),pr(function(){Ws(n,k,o,s)}),k}function Qs(e,n,o,s,l){var c=o._reactRootContainer;if(c){var p=c;if(typeof l=="function"){var y=l;l=function(){var k=Vs(p);y.call(k)}}Ws(n,p,e,l)}else p=ew(o,n,e,l,s);return Vs(p)}_d=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=zi(n.pendingLanes);o!==0&&(za(n,o|1),wt(n,Fe()),(ye&6)===0&&(si=Fe()+500,An()))}break;case 13:pr(function(){var s=pn(e,1);if(s!==null){var l=ft();Vt(s,e,1,l)}}),pu(e,1)}},Ua=function(e){if(e.tag===13){var n=pn(e,134217728);if(n!==null){var o=ft();Vt(n,e,134217728,o)}pu(e,134217728)}},Ed=function(e){if(e.tag===13){var n=Bn(e),o=pn(e,n);if(o!==null){var s=ft();Vt(o,e,n,s)}pu(e,n)}},Pd=function(){return ke},bd=function(e,n){var o=ke;try{return ke=e,n()}finally{ke=o}},Ma=function(e,n,o){switch(n){case"input":if(Kt(e,o),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var s=o[n];if(s!==e&&s.form===e.form){var l=ds(s);if(!l)throw Error(i(90));Mi(s),Kt(s,l)}}}break;case"textarea":nd(e,o);break;case"select":n=o.value,n!=null&&Dr(e,!!o.multiple,n,!1)}},dd=au,fd=pr;var tw={usingClientEntryPoint:!1,Events:[io,Kr,ds,ud,cd,au]},wo={findFiberByHostInstance:sr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nw={bundleType:wo.bundleType,version:wo.version,rendererPackageName:wo.rendererPackageName,rendererConfig:wo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:j.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vd(e),e===null?null:e.stateNode},findFiberByHostInstance:wo.findFiberByHostInstance||Jy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gs.isDisabled&&Gs.supportsFiber)try{qo=Gs.inject(nw),Qt=Gs}catch{}}return xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tw,xt.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vu(n))throw Error(i(200));return Xy(e,n,null,o)},xt.createRoot=function(e,n){if(!vu(e))throw Error(i(299));var o=!1,s="",l=Wh;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),n=hu(e,1,!1,null,null,o,!1,s,l),e[cn]=n.current,to(e.nodeType===8?e.parentNode:e),new mu(n)},xt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=vd(n),e=e===null?null:e.stateNode,e},xt.flushSync=function(e){return pr(e)},xt.hydrate=function(e,n,o){if(!Ks(n))throw Error(i(200));return Qs(null,e,n,!0,o)},xt.hydrateRoot=function(e,n,o){if(!vu(e))throw Error(i(405));var s=o!=null&&o.hydratedSources||null,l=!1,c="",p=Wh;if(o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),n=Bh(n,null,e,1,o??null,l,!1,c,p),e[cn]=n.current,to(e),s)for(e=0;e<s.length;e++)o=s[e],l=o._getVersion,l=l(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,l]:n.mutableSourceEagerHydrationData.push(o,l);return new qs(n)},xt.render=function(e,n,o){if(!Ks(n))throw Error(i(200));return Qs(null,e,n,!1,o)},xt.unmountComponentAtNode=function(e){if(!Ks(e))throw Error(i(40));return e._reactRootContainer?(pr(function(){Qs(null,null,e,!1,function(){e._reactRootContainer=null,e[cn]=null})}),!0):!1},xt.unstable_batchedUpdates=au,xt.unstable_renderSubtreeIntoContainer=function(e,n,o,s){if(!Ks(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Qs(e,n,o,!1,s)},xt.version="18.3.1-next-f1338f8080-20240426",xt}var tp;function am(){if(tp)return Su.exports;tp=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Su.exports=mw(),Su.exports}var np;function vw(){if(np)return Zs;np=1;var t=am();return Zs.createRoot=t.createRoot,Zs.hydrateRoot=t.hydrateRoot,Zs}var gw=vw(),Ii=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xr,Kn,yi,Yp,yw=(Yp=class extends Ii{constructor(){super();ne(this,xr);ne(this,Kn);ne(this,yi);q(this,yi,r=>{if(typeof window<"u"&&window.addEventListener){const i=()=>r();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){S(this,Kn)||this.setEventListener(S(this,yi))}onUnsubscribe(){var r;this.hasListeners()||((r=S(this,Kn))==null||r.call(this),q(this,Kn,void 0))}setEventListener(r){var i;q(this,yi,r),(i=S(this,Kn))==null||i.call(this),q(this,Kn,r(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(r){S(this,xr)!==r&&(q(this,xr,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(i=>{i(r)})}isFocused(){var r;return typeof S(this,xr)=="boolean"?S(this,xr):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},xr=new WeakMap,Kn=new WeakMap,yi=new WeakMap,Yp),vc=new yw,ww={setTimeout:(t,r)=>setTimeout(t,r),clearTimeout:t=>clearTimeout(t),setInterval:(t,r)=>setInterval(t,r),clearInterval:t=>clearInterval(t)},Qn,pc,Zp,xw=(Zp=class{constructor(){ne(this,Qn,ww);ne(this,pc,!1)}setTimeoutProvider(t){q(this,Qn,t)}setTimeout(t,r){return S(this,Qn).setTimeout(t,r)}clearTimeout(t){S(this,Qn).clearTimeout(t)}setInterval(t,r){return S(this,Qn).setInterval(t,r)}clearInterval(t){S(this,Qn).clearInterval(t)}},Qn=new WeakMap,pc=new WeakMap,Zp),wr=new xw;function Sw(t){setTimeout(t,0)}var kw=typeof window>"u"||"Deno"in globalThis;function pt(){}function Cw(t,r){return typeof t=="function"?t(r):t}function Au(t){return typeof t=="number"&&t>=0&&t!==1/0}function lm(t,r){return Math.max(t+(r||0)-Date.now(),0)}function nr(t,r){return typeof t=="function"?t(r):t}function Dt(t,r){return typeof t=="function"?t(r):t}function rp(t,r){const{type:i="all",exact:a,fetchStatus:u,predicate:f,queryKey:m,stale:v}=t;if(m){if(a){if(r.queryHash!==gc(m,r.options))return!1}else if(!_o(r.queryKey,m))return!1}if(i!=="all"){const g=r.isActive();if(i==="active"&&!g||i==="inactive"&&g)return!1}return!(typeof v=="boolean"&&r.isStale()!==v||u&&u!==r.state.fetchStatus||f&&!f(r))}function ip(t,r){const{exact:i,status:a,predicate:u,mutationKey:f}=t;if(f){if(!r.options.mutationKey)return!1;if(i){if(Ir(r.options.mutationKey)!==Ir(f))return!1}else if(!_o(r.options.mutationKey,f))return!1}return!(a&&r.state.status!==a||u&&!u(r))}function gc(t,r){return((r==null?void 0:r.queryKeyHashFn)||Ir)(t)}function Ir(t){return JSON.stringify(t,(r,i)=>Du(i)?Object.keys(i).sort().reduce((a,u)=>(a[u]=i[u],a),{}):i)}function _o(t,r){return t===r?!0:typeof t!=typeof r?!1:t&&r&&typeof t=="object"&&typeof r=="object"?Object.keys(r).every(i=>_o(t[i],r[i])):!1}var _w=Object.prototype.hasOwnProperty;function um(t,r,i=0){if(t===r)return t;if(i>500)return r;const a=op(t)&&op(r);if(!a&&!(Du(t)&&Du(r)))return r;const f=(a?t:Object.keys(t)).length,m=a?r:Object.keys(r),v=m.length,g=a?new Array(v):{};let h=0;for(let w=0;w<v;w++){const x=a?w:m[w],C=t[x],N=r[x];if(C===N){g[x]=C,(a?w<f:_w.call(t,x))&&h++;continue}if(C===null||N===null||typeof C!="object"||typeof N!="object"){g[x]=N;continue}const A=um(C,N,i+1);g[x]=A,A===C&&h++}return f===v&&h===f?t:g}function fa(t,r){if(!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(const i in t)if(t[i]!==r[i])return!1;return!0}function op(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Du(t){if(!sp(t))return!1;const r=t.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!sp(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function sp(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ew(t){return new Promise(r=>{wr.setTimeout(r,t)})}function Fu(t,r,i){return typeof i.structuralSharing=="function"?i.structuralSharing(t,r):i.structuralSharing!==!1?um(t,r):r}function Pw(t,r,i=0){const a=[...t,r];return i&&a.length>i?a.slice(1):a}function bw(t,r,i=0){const a=[r,...t];return i&&a.length>i?a.slice(0,-1):a}var yc=Symbol();function cm(t,r){return!t.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!t.queryFn||t.queryFn===yc?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function wc(t,r){return typeof t=="function"?t(...r):!!t}function jw(t,r,i){let a=!1,u;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(u??(u=r()),a||(a=!0,u.aborted?i():u.addEventListener("abort",i,{once:!0})),u)}),t}var Eo=(()=>{let t=()=>kw;return{isServer(){return t()},setIsServer(r){t=r}}})();function $u(){let t,r;const i=new Promise((u,f)=>{t=u,r=f});i.status="pending",i.catch(()=>{});function a(u){Object.assign(i,u),delete i.resolve,delete i.reject}return i.resolve=u=>{a({status:"fulfilled",value:u}),t(u)},i.reject=u=>{a({status:"rejected",reason:u}),r(u)},i}var Tw=Sw;function Rw(){let t=[],r=0,i=v=>{v()},a=v=>{v()},u=Tw;const f=v=>{r?t.push(v):u(()=>{i(v)})},m=()=>{const v=t;t=[],v.length&&u(()=>{a(()=>{v.forEach(g=>{i(g)})})})};return{batch:v=>{let g;r++;try{g=v()}finally{r--,r||m()}return g},batchCalls:v=>(...g)=>{f(()=>{v(...g)})},schedule:f,setNotifyFunction:v=>{i=v},setBatchNotifyFunction:v=>{a=v},setScheduler:v=>{u=v}}}var Ve=Rw(),wi,Gn,xi,Xp,Nw=(Xp=class extends Ii{constructor(){super();ne(this,wi,!0);ne(this,Gn);ne(this,xi);q(this,xi,r=>{if(typeof window<"u"&&window.addEventListener){const i=()=>r(!0),a=()=>r(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",a)}}})}onSubscribe(){S(this,Gn)||this.setEventListener(S(this,xi))}onUnsubscribe(){var r;this.hasListeners()||((r=S(this,Gn))==null||r.call(this),q(this,Gn,void 0))}setEventListener(r){var i;q(this,xi,r),(i=S(this,Gn))==null||i.call(this),q(this,Gn,r(this.setOnline.bind(this)))}setOnline(r){S(this,wi)!==r&&(q(this,wi,r),this.listeners.forEach(a=>{a(r)}))}isOnline(){return S(this,wi)}},wi=new WeakMap,Gn=new WeakMap,xi=new WeakMap,Xp),ha=new Nw;function Iw(t){return Math.min(1e3*2**t,3e4)}function dm(t){return(t??"online")==="online"?ha.isOnline():!0}var zu=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function fm(t){let r=!1,i=0,a;const u=$u(),f=()=>u.status!=="pending",m=E=>{var M;if(!f()){const L=new zu(E);C(L),(M=t.onCancel)==null||M.call(t,L)}},v=()=>{r=!0},g=()=>{r=!1},h=()=>vc.isFocused()&&(t.networkMode==="always"||ha.isOnline())&&t.canRun(),w=()=>dm(t.networkMode)&&t.canRun(),x=E=>{f()||(a==null||a(),u.resolve(E))},C=E=>{f()||(a==null||a(),u.reject(E))},N=()=>new Promise(E=>{var M;a=L=>{(f()||h())&&E(L)},(M=t.onPause)==null||M.call(t)}).then(()=>{var E;a=void 0,f()||(E=t.onContinue)==null||E.call(t)}),A=()=>{if(f())return;let E;const M=i===0?t.initialPromise:void 0;try{E=M??t.fn()}catch(L){E=Promise.reject(L)}Promise.resolve(E).then(x).catch(L=>{var W;if(f())return;const F=t.retry??(Eo.isServer()?0:3),P=t.retryDelay??Iw,j=typeof P=="function"?P(i,L):P,D=F===!0||typeof F=="number"&&i<F||typeof F=="function"&&F(i,L);if(r||!D){C(L);return}i++,(W=t.onFail)==null||W.call(t,i,L),Ew(j).then(()=>h()?void 0:N()).then(()=>{r?C(L):A()})})};return{promise:u,status:()=>u.status,cancel:m,continue:()=>(a==null||a(),u),cancelRetry:v,continueRetry:g,canStart:w,start:()=>(w()?A():N().then(A),u)}}var Sr,Jp,hm=(Jp=class{constructor(){ne(this,Sr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Au(this.gcTime)&&q(this,Sr,wr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Eo.isServer()?1/0:300*1e3))}clearGcTimeout(){S(this,Sr)!==void 0&&(wr.clearTimeout(S(this,Sr)),q(this,Sr,void 0))}},Sr=new WeakMap,Jp),kr,Si,At,Cr,Ze,Lo,_r,jt,pm,yn,em,Mw=(em=class extends hm{constructor(r){super();ne(this,jt);ne(this,kr);ne(this,Si);ne(this,At);ne(this,Cr);ne(this,Ze);ne(this,Lo);ne(this,_r);q(this,_r,!1),q(this,Lo,r.defaultOptions),this.setOptions(r.options),this.observers=[],q(this,Cr,r.client),q(this,At,S(this,Cr).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,q(this,kr,lp(this.options)),this.state=r.state??S(this,kr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=S(this,Ze))==null?void 0:r.promise}setOptions(r){if(this.options={...S(this,Lo),...r},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=lp(this.options);i.data!==void 0&&(this.setState(ap(i.data,i.dataUpdatedAt)),q(this,kr,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,At).remove(this)}setData(r,i){const a=Fu(this.state.data,r,this.options);return ue(this,jt,yn).call(this,{data:a,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),a}setState(r,i){ue(this,jt,yn).call(this,{type:"setState",state:r,setStateOptions:i})}cancel(r){var a,u;const i=(a=S(this,Ze))==null?void 0:a.promise;return(u=S(this,Ze))==null||u.cancel(r),i?i.then(pt).catch(pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return S(this,kr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(r=>Dt(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>nr(r.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(r=0){return this.state.data===void 0?!0:r==="static"?!1:this.state.isInvalidated?!0:!lm(this.state.dataUpdatedAt,r)}onFocus(){var i;const r=this.observers.find(a=>a.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(i=S(this,Ze))==null||i.continue()}onOnline(){var i;const r=this.observers.find(a=>a.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(i=S(this,Ze))==null||i.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),S(this,At).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(i=>i!==r),this.observers.length||(S(this,Ze)&&(S(this,_r)||ue(this,jt,pm).call(this)?S(this,Ze).cancel({revert:!0}):S(this,Ze).cancelRetry()),this.scheduleGc()),S(this,At).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ue(this,jt,yn).call(this,{type:"invalidate"})}async fetch(r,i){var g,h,w,x,C,N,A,E,M,L,F,P;if(this.state.fetchStatus!=="idle"&&((g=S(this,Ze))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(S(this,Ze))return S(this,Ze).continueRetry(),S(this,Ze).promise}if(r&&this.setOptions(r),!this.options.queryFn){const j=this.observers.find(D=>D.options.queryFn);j&&this.setOptions(j.options)}const a=new AbortController,u=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(q(this,_r,!0),a.signal)})},f=()=>{const j=cm(this.options,i),W=(()=>{const te={client:S(this,Cr),queryKey:this.queryKey,meta:this.meta};return u(te),te})();return q(this,_r,!1),this.options.persister?this.options.persister(j,W,this):j(W)},v=(()=>{const j={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:S(this,Cr),state:this.state,fetchFn:f};return u(j),j})();(h=this.options.behavior)==null||h.onFetch(v,this),q(this,Si,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((w=v.fetchOptions)==null?void 0:w.meta))&&ue(this,jt,yn).call(this,{type:"fetch",meta:(x=v.fetchOptions)==null?void 0:x.meta}),q(this,Ze,fm({initialPromise:i==null?void 0:i.initialPromise,fn:v.fetchFn,onCancel:j=>{j instanceof zu&&j.revert&&this.setState({...S(this,Si),fetchStatus:"idle"}),a.abort()},onFail:(j,D)=>{ue(this,jt,yn).call(this,{type:"failed",failureCount:j,error:D})},onPause:()=>{ue(this,jt,yn).call(this,{type:"pause"})},onContinue:()=>{ue(this,jt,yn).call(this,{type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0}));try{const j=await S(this,Ze).start();if(j===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(j),(N=(C=S(this,At).config).onSuccess)==null||N.call(C,j,this),(E=(A=S(this,At).config).onSettled)==null||E.call(A,j,this.state.error,this),j}catch(j){if(j instanceof zu){if(j.silent)return S(this,Ze).promise;if(j.revert){if(this.state.data===void 0)throw j;return this.state.data}}throw ue(this,jt,yn).call(this,{type:"error",error:j}),(L=(M=S(this,At).config).onError)==null||L.call(M,j,this),(P=(F=S(this,At).config).onSettled)==null||P.call(F,this.state.data,j,this),j}finally{this.scheduleGc()}}},kr=new WeakMap,Si=new WeakMap,At=new WeakMap,Cr=new WeakMap,Ze=new WeakMap,Lo=new WeakMap,_r=new WeakMap,jt=new WeakSet,pm=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},yn=function(r){const i=a=>{switch(r.type){case"failed":return{...a,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...mm(a.data,this.options),fetchMeta:r.meta??null};case"success":const u={...a,...ap(r.data,r.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,Si,r.manual?u:void 0),u;case"error":const f=r.error;return{...a,error:f,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...r.state}}};this.state=i(this.state),Ve.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),S(this,At).notify({query:this,type:"updated",action:r})})},em);function mm(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dm(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function ap(t,r){return{data:t,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function lp(t){const r=typeof t.initialData=="function"?t.initialData():t.initialData,i=r!==void 0,a=i?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:i?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var kt,me,Oo,ht,Er,ki,xn,Yn,Ao,Ci,_i,Pr,br,Zn,Ei,Se,Co,Uu,Bu,Hu,Wu,Vu,qu,Ku,vm,tm,Lw=(tm=class extends Ii{constructor(r,i){super();ne(this,Se);ne(this,kt);ne(this,me);ne(this,Oo);ne(this,ht);ne(this,Er);ne(this,ki);ne(this,xn);ne(this,Yn);ne(this,Ao);ne(this,Ci);ne(this,_i);ne(this,Pr);ne(this,br);ne(this,Zn);ne(this,Ei,new Set);this.options=i,q(this,kt,r),q(this,Yn,null),q(this,xn,$u()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,me).addObserver(this),up(S(this,me),this.options)?ue(this,Se,Co).call(this):this.updateResult(),ue(this,Se,Wu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qu(S(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qu(S(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ue(this,Se,Vu).call(this),ue(this,Se,qu).call(this),S(this,me).removeObserver(this)}setOptions(r){const i=this.options,a=S(this,me);if(this.options=S(this,kt).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,S(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ue(this,Se,Ku).call(this),S(this,me).setOptions(this.options),i._defaulted&&!fa(this.options,i)&&S(this,kt).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,me),observer:this});const u=this.hasListeners();u&&cp(S(this,me),a,this.options,i)&&ue(this,Se,Co).call(this),this.updateResult(),u&&(S(this,me)!==a||Dt(this.options.enabled,S(this,me))!==Dt(i.enabled,S(this,me))||nr(this.options.staleTime,S(this,me))!==nr(i.staleTime,S(this,me)))&&ue(this,Se,Uu).call(this);const f=ue(this,Se,Bu).call(this);u&&(S(this,me)!==a||Dt(this.options.enabled,S(this,me))!==Dt(i.enabled,S(this,me))||f!==S(this,Zn))&&ue(this,Se,Hu).call(this,f)}getOptimisticResult(r){const i=S(this,kt).getQueryCache().build(S(this,kt),r),a=this.createResult(i,r);return Aw(this,a)&&(q(this,ht,a),q(this,ki,this.options),q(this,Er,S(this,me).state)),a}getCurrentResult(){return S(this,ht)}trackResult(r,i){return new Proxy(r,{get:(a,u)=>(this.trackProp(u),i==null||i(u),u==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&S(this,xn).status==="pending"&&S(this,xn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,u))})}trackProp(r){S(this,Ei).add(r)}getCurrentQuery(){return S(this,me)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const i=S(this,kt).defaultQueryOptions(r),a=S(this,kt).getQueryCache().build(S(this,kt),i);return a.fetch().then(()=>this.createResult(a,i))}fetch(r){return ue(this,Se,Co).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,ht)))}createResult(r,i){var se;const a=S(this,me),u=this.options,f=S(this,ht),m=S(this,Er),v=S(this,ki),h=r!==a?r.state:S(this,Oo),{state:w}=r;let x={...w},C=!1,N;if(i._optimisticResults){const ce=this.hasListeners(),X=!ce&&up(r,i),Te=ce&&cp(r,a,i,u);(X||Te)&&(x={...x,...mm(w.data,r.options)}),i._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:A,errorUpdatedAt:E,status:M}=x;N=x.data;let L=!1;if(i.placeholderData!==void 0&&N===void 0&&M==="pending"){let ce;f!=null&&f.isPlaceholderData&&i.placeholderData===(v==null?void 0:v.placeholderData)?(ce=f.data,L=!0):ce=typeof i.placeholderData=="function"?i.placeholderData((se=S(this,_i))==null?void 0:se.state.data,S(this,_i)):i.placeholderData,ce!==void 0&&(M="success",N=Fu(f==null?void 0:f.data,ce,i),C=!0)}if(i.select&&N!==void 0&&!L)if(f&&N===(m==null?void 0:m.data)&&i.select===S(this,Ao))N=S(this,Ci);else try{q(this,Ao,i.select),N=i.select(N),N=Fu(f==null?void 0:f.data,N,i),q(this,Ci,N),q(this,Yn,null)}catch(ce){q(this,Yn,ce)}S(this,Yn)&&(A=S(this,Yn),N=S(this,Ci),E=Date.now(),M="error");const F=x.fetchStatus==="fetching",P=M==="pending",j=M==="error",D=P&&F,W=N!==void 0,Z={status:M,fetchStatus:x.fetchStatus,isPending:P,isSuccess:M==="success",isError:j,isInitialLoading:D,isLoading:D,data:N,dataUpdatedAt:x.dataUpdatedAt,error:A,errorUpdatedAt:E,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:r.isFetched(),isFetchedAfterMount:x.dataUpdateCount>h.dataUpdateCount||x.errorUpdateCount>h.errorUpdateCount,isFetching:F,isRefetching:F&&!P,isLoadingError:j&&!W,isPaused:x.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:j&&W,isStale:xc(r,i),refetch:this.refetch,promise:S(this,xn),isEnabled:Dt(i.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const ce=Z.data!==void 0,X=Z.status==="error"&&!ce,Te=Ke=>{X?Ke.reject(Z.error):ce&&Ke.resolve(Z.data)},Be=()=>{const Ke=q(this,xn,Z.promise=$u());Te(Ke)},qe=S(this,xn);switch(qe.status){case"pending":r.queryHash===a.queryHash&&Te(qe);break;case"fulfilled":(X||Z.data!==qe.value)&&Be();break;case"rejected":(!X||Z.error!==qe.reason)&&Be();break}}return Z}updateResult(){const r=S(this,ht),i=this.createResult(S(this,me),this.options);if(q(this,Er,S(this,me).state),q(this,ki,this.options),S(this,Er).data!==void 0&&q(this,_i,S(this,me)),fa(i,r))return;q(this,ht,i);const a=()=>{if(!r)return!0;const{notifyOnChangeProps:u}=this.options,f=typeof u=="function"?u():u;if(f==="all"||!f&&!S(this,Ei).size)return!0;const m=new Set(f??S(this,Ei));return this.options.throwOnError&&m.add("error"),Object.keys(S(this,ht)).some(v=>{const g=v;return S(this,ht)[g]!==r[g]&&m.has(g)})};ue(this,Se,vm).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ue(this,Se,Wu).call(this)}},kt=new WeakMap,me=new WeakMap,Oo=new WeakMap,ht=new WeakMap,Er=new WeakMap,ki=new WeakMap,xn=new WeakMap,Yn=new WeakMap,Ao=new WeakMap,Ci=new WeakMap,_i=new WeakMap,Pr=new WeakMap,br=new WeakMap,Zn=new WeakMap,Ei=new WeakMap,Se=new WeakSet,Co=function(r){ue(this,Se,Ku).call(this);let i=S(this,me).fetch(this.options,r);return r!=null&&r.throwOnError||(i=i.catch(pt)),i},Uu=function(){ue(this,Se,Vu).call(this);const r=nr(this.options.staleTime,S(this,me));if(Eo.isServer()||S(this,ht).isStale||!Au(r))return;const a=lm(S(this,ht).dataUpdatedAt,r)+1;q(this,Pr,wr.setTimeout(()=>{S(this,ht).isStale||this.updateResult()},a))},Bu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,me)):this.options.refetchInterval)??!1},Hu=function(r){ue(this,Se,qu).call(this),q(this,Zn,r),!(Eo.isServer()||Dt(this.options.enabled,S(this,me))===!1||!Au(S(this,Zn))||S(this,Zn)===0)&&q(this,br,wr.setInterval(()=>{(this.options.refetchIntervalInBackground||vc.isFocused())&&ue(this,Se,Co).call(this)},S(this,Zn)))},Wu=function(){ue(this,Se,Uu).call(this),ue(this,Se,Hu).call(this,ue(this,Se,Bu).call(this))},Vu=function(){S(this,Pr)!==void 0&&(wr.clearTimeout(S(this,Pr)),q(this,Pr,void 0))},qu=function(){S(this,br)!==void 0&&(wr.clearInterval(S(this,br)),q(this,br,void 0))},Ku=function(){const r=S(this,kt).getQueryCache().build(S(this,kt),this.options);if(r===S(this,me))return;const i=S(this,me);q(this,me,r),q(this,Oo,r.state),this.hasListeners()&&(i==null||i.removeObserver(this),r.addObserver(this))},vm=function(r){Ve.batch(()=>{r.listeners&&this.listeners.forEach(i=>{i(S(this,ht))}),S(this,kt).getQueryCache().notify({query:S(this,me),type:"observerResultsUpdated"})})},tm);function Ow(t,r){return Dt(r.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&r.retryOnMount===!1)}function up(t,r){return Ow(t,r)||t.state.data!==void 0&&Qu(t,r,r.refetchOnMount)}function Qu(t,r,i){if(Dt(r.enabled,t)!==!1&&nr(r.staleTime,t)!=="static"){const a=typeof i=="function"?i(t):i;return a==="always"||a!==!1&&xc(t,r)}return!1}function cp(t,r,i,a){return(t!==r||Dt(a.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&xc(t,i)}function xc(t,r){return Dt(r.enabled,t)!==!1&&t.isStaleByTime(nr(r.staleTime,t))}function Aw(t,r){return!fa(t.getCurrentResult(),r)}function dp(t){return{onFetch:(r,i)=>{var w,x,C,N,A;const a=r.options,u=(C=(x=(w=r.fetchOptions)==null?void 0:w.meta)==null?void 0:x.fetchMore)==null?void 0:C.direction,f=((N=r.state.data)==null?void 0:N.pages)||[],m=((A=r.state.data)==null?void 0:A.pageParams)||[];let v={pages:[],pageParams:[]},g=0;const h=async()=>{let E=!1;const M=P=>{jw(P,()=>r.signal,()=>E=!0)},L=cm(r.options,r.fetchOptions),F=async(P,j,D)=>{if(E)return Promise.reject();if(j==null&&P.pages.length)return Promise.resolve(P);const te=(()=>{const X={client:r.client,queryKey:r.queryKey,pageParam:j,direction:D?"backward":"forward",meta:r.options.meta};return M(X),X})(),Z=await L(te),{maxPages:se}=r.options,ce=D?bw:Pw;return{pages:ce(P.pages,Z,se),pageParams:ce(P.pageParams,j,se)}};if(u&&f.length){const P=u==="backward",j=P?gm:Gu,D={pages:f,pageParams:m},W=j(a,D);v=await F(D,W,P)}else{const P=t??f.length;do{const j=g===0?m[0]??a.initialPageParam:Gu(a,v);if(g>0&&j==null)break;v=await F(v,j),g++}while(g<P)}return v};r.options.persister?r.fetchFn=()=>{var E,M;return(M=(E=r.options).persister)==null?void 0:M.call(E,h,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},i)}:r.fetchFn=h}}}function Gu(t,{pages:r,pageParams:i}){const a=r.length-1;return r.length>0?t.getNextPageParam(r[a],r,i[a],i):void 0}function gm(t,{pages:r,pageParams:i}){var a;return r.length>0?(a=t.getPreviousPageParam)==null?void 0:a.call(t,r[0],r,i[0],i):void 0}function pk(t,r){return r?Gu(t,r)!=null:!1}function mk(t,r){return!r||!t.getPreviousPageParam?!1:gm(t,r)!=null}var Do,en,at,jr,tn,qn,nm,Dw=(nm=class extends hm{constructor(r){super();ne(this,tn);ne(this,Do);ne(this,en);ne(this,at);ne(this,jr);q(this,Do,r.client),this.mutationId=r.mutationId,q(this,at,r.mutationCache),q(this,en,[]),this.state=r.state||ym(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){S(this,en).includes(r)||(S(this,en).push(r),this.clearGcTimeout(),S(this,at).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){q(this,en,S(this,en).filter(i=>i!==r)),this.scheduleGc(),S(this,at).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){S(this,en).length||(this.state.status==="pending"?this.scheduleGc():S(this,at).remove(this))}continue(){var r;return((r=S(this,jr))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var m,v,g,h,w,x,C,N,A,E,M,L,F,P,j,D,W,te;const i=()=>{ue(this,tn,qn).call(this,{type:"continue"})},a={client:S(this,Do),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,jr,fm({fn:()=>this.options.mutationFn?this.options.mutationFn(r,a):Promise.reject(new Error("No mutationFn found")),onFail:(Z,se)=>{ue(this,tn,qn).call(this,{type:"failed",failureCount:Z,error:se})},onPause:()=>{ue(this,tn,qn).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,at).canRun(this)}));const u=this.state.status==="pending",f=!S(this,jr).canStart();try{if(u)i();else{ue(this,tn,qn).call(this,{type:"pending",variables:r,isPaused:f}),S(this,at).config.onMutate&&await S(this,at).config.onMutate(r,this,a);const se=await((v=(m=this.options).onMutate)==null?void 0:v.call(m,r,a));se!==this.state.context&&ue(this,tn,qn).call(this,{type:"pending",context:se,variables:r,isPaused:f})}const Z=await S(this,jr).start();return await((h=(g=S(this,at).config).onSuccess)==null?void 0:h.call(g,Z,r,this.state.context,this,a)),await((x=(w=this.options).onSuccess)==null?void 0:x.call(w,Z,r,this.state.context,a)),await((N=(C=S(this,at).config).onSettled)==null?void 0:N.call(C,Z,null,this.state.variables,this.state.context,this,a)),await((E=(A=this.options).onSettled)==null?void 0:E.call(A,Z,null,r,this.state.context,a)),ue(this,tn,qn).call(this,{type:"success",data:Z}),Z}catch(Z){try{await((L=(M=S(this,at).config).onError)==null?void 0:L.call(M,Z,r,this.state.context,this,a))}catch(se){Promise.reject(se)}try{await((P=(F=this.options).onError)==null?void 0:P.call(F,Z,r,this.state.context,a))}catch(se){Promise.reject(se)}try{await((D=(j=S(this,at).config).onSettled)==null?void 0:D.call(j,void 0,Z,this.state.variables,this.state.context,this,a))}catch(se){Promise.reject(se)}try{await((te=(W=this.options).onSettled)==null?void 0:te.call(W,void 0,Z,r,this.state.context,a))}catch(se){Promise.reject(se)}throw ue(this,tn,qn).call(this,{type:"error",error:Z}),Z}finally{S(this,at).runNext(this)}}},Do=new WeakMap,en=new WeakMap,at=new WeakMap,jr=new WeakMap,tn=new WeakSet,qn=function(r){const i=a=>{switch(r.type){case"failed":return{...a,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...a,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:r.error,failureCount:a.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Ve.batch(()=>{S(this,en).forEach(a=>{a.onMutationUpdate(r)}),S(this,at).notify({mutation:this,type:"updated",action:r})})},nm);function ym(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Sn,qt,Fo,rm,Fw=(rm=class extends Ii{constructor(r={}){super();ne(this,Sn);ne(this,qt);ne(this,Fo);this.config=r,q(this,Sn,new Set),q(this,qt,new Map),q(this,Fo,0)}build(r,i,a){const u=new Dw({client:r,mutationCache:this,mutationId:++Ys(this,Fo)._,options:r.defaultMutationOptions(i),state:a});return this.add(u),u}add(r){S(this,Sn).add(r);const i=Xs(r);if(typeof i=="string"){const a=S(this,qt).get(i);a?a.push(r):S(this,qt).set(i,[r])}this.notify({type:"added",mutation:r})}remove(r){if(S(this,Sn).delete(r)){const i=Xs(r);if(typeof i=="string"){const a=S(this,qt).get(i);if(a)if(a.length>1){const u=a.indexOf(r);u!==-1&&a.splice(u,1)}else a[0]===r&&S(this,qt).delete(i)}}this.notify({type:"removed",mutation:r})}canRun(r){const i=Xs(r);if(typeof i=="string"){const a=S(this,qt).get(i),u=a==null?void 0:a.find(f=>f.state.status==="pending");return!u||u===r}else return!0}runNext(r){var a;const i=Xs(r);if(typeof i=="string"){const u=(a=S(this,qt).get(i))==null?void 0:a.find(f=>f!==r&&f.state.isPaused);return(u==null?void 0:u.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ve.batch(()=>{S(this,Sn).forEach(r=>{this.notify({type:"removed",mutation:r})}),S(this,Sn).clear(),S(this,qt).clear()})}getAll(){return Array.from(S(this,Sn))}find(r){const i={exact:!0,...r};return this.getAll().find(a=>ip(i,a))}findAll(r={}){return this.getAll().filter(i=>ip(r,i))}notify(r){Ve.batch(()=>{this.listeners.forEach(i=>{i(r)})})}resumePausedMutations(){const r=this.getAll().filter(i=>i.state.isPaused);return Ve.batch(()=>Promise.all(r.map(i=>i.continue().catch(pt))))}},Sn=new WeakMap,qt=new WeakMap,Fo=new WeakMap,rm);function Xs(t){var r;return(r=t.options.scope)==null?void 0:r.id}var kn,Xn,Ct,Cn,En,aa,Yu,im,$w=(im=class extends Ii{constructor(i,a){super();ne(this,En);ne(this,kn);ne(this,Xn);ne(this,Ct);ne(this,Cn);q(this,kn,i),this.setOptions(a),this.bindMethods(),ue(this,En,aa).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var u;const a=this.options;this.options=S(this,kn).defaultMutationOptions(i),fa(this.options,a)||S(this,kn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,Ct),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&Ir(a.mutationKey)!==Ir(this.options.mutationKey)?this.reset():((u=S(this,Ct))==null?void 0:u.state.status)==="pending"&&S(this,Ct).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=S(this,Ct))==null||i.removeObserver(this)}onMutationUpdate(i){ue(this,En,aa).call(this),ue(this,En,Yu).call(this,i)}getCurrentResult(){return S(this,Xn)}reset(){var i;(i=S(this,Ct))==null||i.removeObserver(this),q(this,Ct,void 0),ue(this,En,aa).call(this),ue(this,En,Yu).call(this)}mutate(i,a){var u;return q(this,Cn,a),(u=S(this,Ct))==null||u.removeObserver(this),q(this,Ct,S(this,kn).getMutationCache().build(S(this,kn),this.options)),S(this,Ct).addObserver(this),S(this,Ct).execute(i)}},kn=new WeakMap,Xn=new WeakMap,Ct=new WeakMap,Cn=new WeakMap,En=new WeakSet,aa=function(){var a;const i=((a=S(this,Ct))==null?void 0:a.state)??ym();q(this,Xn,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Yu=function(i){Ve.batch(()=>{var a,u,f,m,v,g,h,w;if(S(this,Cn)&&this.hasListeners()){const x=S(this,Xn).variables,C=S(this,Xn).context,N={client:S(this,kn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(u=(a=S(this,Cn)).onSuccess)==null||u.call(a,i.data,x,C,N)}catch(A){Promise.reject(A)}try{(m=(f=S(this,Cn)).onSettled)==null||m.call(f,i.data,null,x,C,N)}catch(A){Promise.reject(A)}}else if((i==null?void 0:i.type)==="error"){try{(g=(v=S(this,Cn)).onError)==null||g.call(v,i.error,x,C,N)}catch(A){Promise.reject(A)}try{(w=(h=S(this,Cn)).onSettled)==null||w.call(h,void 0,i.error,x,C,N)}catch(A){Promise.reject(A)}}}this.listeners.forEach(x=>{x(S(this,Xn))})})},im),nn,om,zw=(om=class extends Ii{constructor(r={}){super();ne(this,nn);this.config=r,q(this,nn,new Map)}build(r,i,a){const u=i.queryKey,f=i.queryHash??gc(u,i);let m=this.get(f);return m||(m=new Mw({client:r,queryKey:u,queryHash:f,options:r.defaultQueryOptions(i),state:a,defaultOptions:r.getQueryDefaults(u)}),this.add(m)),m}add(r){S(this,nn).has(r.queryHash)||(S(this,nn).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const i=S(this,nn).get(r.queryHash);i&&(r.destroy(),i===r&&S(this,nn).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){Ve.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return S(this,nn).get(r)}getAll(){return[...S(this,nn).values()]}find(r){const i={exact:!0,...r};return this.getAll().find(a=>rp(i,a))}findAll(r={}){const i=this.getAll();return Object.keys(r).length>0?i.filter(a=>rp(r,a)):i}notify(r){Ve.batch(()=>{this.listeners.forEach(i=>{i(r)})})}onFocus(){Ve.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Ve.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},nn=new WeakMap,om),Ae,Jn,er,Pi,bi,tr,ji,Ti,sm,Uw=(sm=class{constructor(t={}){ne(this,Ae);ne(this,Jn);ne(this,er);ne(this,Pi);ne(this,bi);ne(this,tr);ne(this,ji);ne(this,Ti);q(this,Ae,t.queryCache||new zw),q(this,Jn,t.mutationCache||new Fw),q(this,er,t.defaultOptions||{}),q(this,Pi,new Map),q(this,bi,new Map),q(this,tr,0)}mount(){Ys(this,tr)._++,S(this,tr)===1&&(q(this,ji,vc.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,Ae).onFocus())})),q(this,Ti,ha.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,Ae).onOnline())})))}unmount(){var t,r;Ys(this,tr)._--,S(this,tr)===0&&((t=S(this,ji))==null||t.call(this),q(this,ji,void 0),(r=S(this,Ti))==null||r.call(this),q(this,Ti,void 0))}isFetching(t){return S(this,Ae).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return S(this,Jn).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const r=this.defaultQueryOptions({queryKey:t});return(i=S(this,Ae).get(r.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),i=S(this,Ae).build(this,r),a=i.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(nr(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(a))}getQueriesData(t){return S(this,Ae).findAll(t).map(({queryKey:r,state:i})=>{const a=i.data;return[r,a]})}setQueryData(t,r,i){const a=this.defaultQueryOptions({queryKey:t}),u=S(this,Ae).get(a.queryHash),f=u==null?void 0:u.state.data,m=Cw(r,f);if(m!==void 0)return S(this,Ae).build(this,a).setData(m,{...i,manual:!0})}setQueriesData(t,r,i){return Ve.batch(()=>S(this,Ae).findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,r,i)]))}getQueryState(t){var i;const r=this.defaultQueryOptions({queryKey:t});return(i=S(this,Ae).get(r.queryHash))==null?void 0:i.state}removeQueries(t){const r=S(this,Ae);Ve.batch(()=>{r.findAll(t).forEach(i=>{r.remove(i)})})}resetQueries(t,r){const i=S(this,Ae);return Ve.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const i={revert:!0,...r},a=Ve.batch(()=>S(this,Ae).findAll(t).map(u=>u.cancel(i)));return Promise.all(a).then(pt).catch(pt)}invalidateQueries(t,r={}){return Ve.batch(()=>(S(this,Ae).findAll(t).forEach(i=>{i.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},r)))}refetchQueries(t,r={}){const i={...r,cancelRefetch:r.cancelRefetch??!0},a=Ve.batch(()=>S(this,Ae).findAll(t).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,i);return i.throwOnError||(f=f.catch(pt)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(a).then(pt)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const i=S(this,Ae).build(this,r);return i.isStaleByTime(nr(r.staleTime,i))?i.fetch(r):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(pt).catch(pt)}fetchInfiniteQuery(t){return t.behavior=dp(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(pt).catch(pt)}ensureInfiniteQueryData(t){return t.behavior=dp(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return ha.isOnline()?S(this,Jn).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Ae)}getMutationCache(){return S(this,Jn)}getDefaultOptions(){return S(this,er)}setDefaultOptions(t){q(this,er,t)}setQueryDefaults(t,r){S(this,Pi).set(Ir(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...S(this,Pi).values()],i={};return r.forEach(a=>{_o(t,a.queryKey)&&Object.assign(i,a.defaultOptions)}),i}setMutationDefaults(t,r){S(this,bi).set(Ir(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...S(this,bi).values()],i={};return r.forEach(a=>{_o(t,a.mutationKey)&&Object.assign(i,a.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const r={...S(this,er).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=gc(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===yc&&(r.enabled=!1),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...S(this,er).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){S(this,Ae).clear(),S(this,Jn).clear()}},Ae=new WeakMap,Jn=new WeakMap,er=new WeakMap,Pi=new WeakMap,bi=new WeakMap,tr=new WeakMap,ji=new WeakMap,Ti=new WeakMap,sm),wm=I.createContext(void 0),rr=t=>{const r=I.useContext(wm);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Bw=({client:t,children:r})=>(I.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),d.jsx(wm.Provider,{value:t,children:r})),xm=I.createContext(!1),Hw=()=>I.useContext(xm);xm.Provider;function Ww(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Vw=I.createContext(Ww()),qw=()=>I.useContext(Vw),Kw=(t,r,i)=>{const a=i!=null&&i.state.error&&typeof t.throwOnError=="function"?wc(t.throwOnError,[i.state.error,i]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||a)&&(r.isReset()||(t.retryOnMount=!1))},Qw=t=>{I.useEffect(()=>{t.clearReset()},[t])},Gw=({result:t,errorResetBoundary:r,throwOnError:i,query:a,suspense:u})=>t.isError&&!r.isReset()&&!t.isFetching&&a&&(u&&t.data===void 0||wc(i,[t.error,a])),Yw=t=>{if(t.suspense){const i=u=>u==="static"?u:Math.max(u??1e3,1e3),a=t.staleTime;t.staleTime=typeof a=="function"?(...u)=>i(a(...u)):i(a),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Zw=(t,r)=>t.isLoading&&t.isFetching&&!r,Xw=(t,r)=>(t==null?void 0:t.suspense)&&r.isPending,fp=(t,r,i)=>r.fetchOptimistic(t).catch(()=>{i.clearReset()});function Jw(t,r,i){var C,N,A,E;const a=Hw(),u=qw(),f=rr(),m=f.defaultQueryOptions(t);(N=(C=f.getDefaultOptions().queries)==null?void 0:C._experimental_beforeQuery)==null||N.call(C,m);const v=f.getQueryCache().get(m.queryHash);m._optimisticResults=a?"isRestoring":"optimistic",Yw(m),Kw(m,u,v),Qw(u);const g=!f.getQueryCache().get(m.queryHash),[h]=I.useState(()=>new r(f,m)),w=h.getOptimisticResult(m),x=!a&&t.subscribed!==!1;if(I.useSyncExternalStore(I.useCallback(M=>{const L=x?h.subscribe(Ve.batchCalls(M)):pt;return h.updateResult(),L},[h,x]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),I.useEffect(()=>{h.setOptions(m)},[m,h]),Xw(m,w))throw fp(m,h,u);if(Gw({result:w,errorResetBoundary:u,throwOnError:m.throwOnError,query:v,suspense:m.suspense}))throw w.error;if((E=(A=f.getDefaultOptions().queries)==null?void 0:A._experimental_afterQuery)==null||E.call(A,m,w),m.experimental_prefetchInRender&&!Eo.isServer()&&Zw(w,a)){const M=g?fp(m,h,u):v==null?void 0:v.promise;M==null||M.catch(pt).finally(()=>{h.updateResult()})}return m.notifyOnChangeProps?w:h.trackResult(w)}function De(t,r){return Jw(t,Lw)}function e1(t,r){const i=rr(),[a]=I.useState(()=>new $w(i,t));I.useEffect(()=>{a.setOptions(t)},[a,t]);const u=I.useSyncExternalStore(I.useCallback(m=>a.subscribe(Ve.batchCalls(m)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),f=I.useCallback((m,v)=>{a.mutate(m,v).catch(pt)},[a]);if(u.error&&wc(a.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:f,mutateAsync:u.mutate}}var t1=am();function n1(){return d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[d.jsx("circle",{cx:"12",cy:"5",r:"1.7"}),d.jsx("circle",{cx:"12",cy:"12",r:"1.7"}),d.jsx("circle",{cx:"12",cy:"19",r:"1.7"})]})}const r1=176;function i1(){return d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:d.jsx("path",{d:"M20 6 9 17l-5-5"})})}function o1({label:t,items:r,trigger:i,className:a,triggerStyle:u="icon",align:f="end",width:m=r1}){const v=r.filter(Boolean),[g,h]=I.useState(!1),[w,x]=I.useState({}),C=I.useRef(null),N=I.useRef(null),A=I.useId(),E=I.useCallback(L=>{var F;h(!1),L&&((F=C.current)==null||F.focus())},[]);if(I.useLayoutEffect(()=>{var W,te;if(!g||!C.current)return;const L=C.current.getBoundingClientRect(),F=v.reduce((Z,se)=>Z+(se.description?50:34),10),P=L.bottom+4+F<=window.innerHeight,j=Math.max(8,Math.min(f==="start"?L.left:L.right-m,window.innerWidth-m-8));x(P?{top:L.bottom+4,left:j}:{top:Math.max(8,L.top-4-F),left:j});const D=((W=N.current)==null?void 0:W.querySelector('[aria-checked="true"]:not([disabled])'))??((te=N.current)==null?void 0:te.querySelector('[role^="menuitem"]:not([disabled])'));D==null||D.focus()},[g,v.length]),I.useEffect(()=>{if(!g)return;const L=P=>{var D,W;const j=P.target;(D=N.current)!=null&&D.contains(j)||(W=C.current)!=null&&W.contains(j)||E(!1)},F=()=>E(!1);return document.addEventListener("mousedown",L),window.addEventListener("resize",F),window.addEventListener("scroll",F,!0),()=>{document.removeEventListener("mousedown",L),window.removeEventListener("resize",F),window.removeEventListener("scroll",F,!0)}},[g,E]),v.length===0)return null;function M(L){var j,D,W,te,Z;const F=[...((j=N.current)==null?void 0:j.querySelectorAll('[role^="menuitem"]:not([disabled])'))??[]],P=F.indexOf(document.activeElement);L.key==="Escape"?(L.preventDefault(),L.stopPropagation(),E(!0)):L.key==="ArrowDown"?(L.preventDefault(),(D=F[(P+1)%F.length])==null||D.focus()):L.key==="ArrowUp"?(L.preventDefault(),(W=F[(P-1+F.length)%F.length])==null||W.focus()):L.key==="Home"?(L.preventDefault(),(te=F[0])==null||te.focus()):L.key==="End"?(L.preventDefault(),(Z=F[F.length-1])==null||Z.focus()):L.key==="Tab"&&E(!1)}return d.jsxs(d.Fragment,{children:[d.jsx("button",{ref:C,type:"button",className:[u==="icon"?"as-icon-button":null,"as-action-menu__trigger",a].filter(Boolean).join(" "),"aria-label":t,title:u==="icon"?t:void 0,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?A:void 0,onClick:L=>{L.stopPropagation(),h(F=>!F)},onKeyDown:L=>{L.key==="ArrowDown"&&!g&&(L.preventDefault(),h(!0))},children:i??d.jsx(n1,{})}),g&&typeof document<"u"&&t1.createPortal(d.jsx("div",{ref:N,id:A,role:"menu","aria-label":t,className:"as-action-menu",style:{...w,width:m},onKeyDown:M,onClick:L=>L.stopPropagation(),children:v.map((L,F)=>d.jsxs("button",{type:"button",role:L.checked===void 0?"menuitem":"menuitemradio","aria-checked":L.checked,tabIndex:-1,disabled:L.disabled,className:["as-action-menu__item",L.tone==="danger"?"as-action-menu__item--danger":null,L.checked!==void 0?"as-action-menu__item--choice":null].filter(Boolean).join(" "),onClick:()=>{E(!0),L.onSelect()},children:[L.checked!==void 0&&d.jsx("span",{className:"as-action-menu__check",children:L.checked?d.jsx(i1,{}):null}),d.jsxs("span",{className:"as-action-menu__text",children:[d.jsx("span",{className:"as-action-menu__label",children:L.label}),L.description&&d.jsx("span",{className:"as-action-menu__description",children:L.description})]})]},F))}),document.body)]})}function lt({action:t,children:r,className:i,title:a,tone:u="info",...f}){const m=["as-alert",`as-alert--${u}`,i].filter(Boolean).join(" ");return d.jsxs("div",{className:m,role:u==="danger"||u==="warning"?"alert":"status",...f,children:[d.jsx("div",{className:"as-alert__mark","aria-hidden":"true"}),d.jsxs("div",{className:"as-alert__content",children:[a&&d.jsx("div",{className:"as-alert__title",children:a}),d.jsx("div",{className:"as-alert__body",children:r})]}),t&&d.jsx("div",{className:"as-alert__action",children:t})]})}function Sm({tone:t="neutral",children:r,className:i,...a}){return d.jsx("span",{className:["as-badge",`as-badge--${t}`,i].filter(Boolean).join(" "),...a,children:r})}function Le({children:t,className:r,fullWidth:i=!1,leadingIcon:a,size:u="md",trailingIcon:f,type:m="button",variant:v="primary",href:g,download:h,target:w,rel:x,...C}){const N=["as-button",`as-button--${v}`,`as-button--${u}`,i?"as-button--full":null,r].filter(Boolean).join(" "),A=d.jsxs(d.Fragment,{children:[a&&d.jsx("span",{className:"as-button__icon","aria-hidden":"true",children:a}),d.jsx("span",{className:"as-button__label",children:t}),f&&d.jsx("span",{className:"as-button__icon","aria-hidden":"true",children:f})]});if(g!==void 0&&!C.disabled){const{disabled:E,form:M,formAction:L,formEncType:F,formMethod:P,formNoValidate:j,formTarget:D,name:W,value:te,...Z}=C,se=w==="_blank"?x??"noopener noreferrer":x;return d.jsx("a",{...Z,className:N,href:g,download:h,target:w,rel:se,children:A})}return d.jsx("button",{type:m,className:N,...C,children:A})}function Sc({children:t,className:r,tone:i="surface",...a}){const u=["as-card",`as-card--${i}`,r].filter(Boolean).join(" ");return d.jsx("div",{className:u,...a,children:t})}function s1(t,r){if(t==null)return{};var i={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(r.indexOf(a)!==-1)continue;i[a]=t[a]}return i}function Po(){return Po=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var a in i)({}).hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},Po.apply(null,arguments)}var Zu="data-focus-lock",km="data-focus-lock-disabled",a1="data-no-focus-lock",l1="data-autofocus-inside",u1="data-no-autofocus";function _u(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function c1(t,r){var i=I.useState(function(){return{value:t,callback:r,facade:{get current(){return i.value},set current(a){var u=i.value;u!==a&&(i.value=a,i.callback(a,u))}}}})[0];return i.callback=r,i.facade}var d1=typeof window<"u"?I.useLayoutEffect:I.useEffect,hp=new WeakMap;function Cm(t,r){var i=c1(null,function(a){return t.forEach(function(u){return _u(u,a)})});return d1(function(){var a=hp.get(i);if(a){var u=new Set(a),f=new Set(t),m=i.current;u.forEach(function(v){f.has(v)||_u(v,null)}),f.forEach(function(v){u.has(v)||_u(v,m)})}hp.set(i,t)},[t]),i}var Eu={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},rn=function(){return rn=Object.assign||function(r){for(var i,a=1,u=arguments.length;a<u;a++){i=arguments[a];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(r[f]=i[f])}return r},rn.apply(this,arguments)};function _m(t,r){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,a=Object.getOwnPropertySymbols(t);u<a.length;u++)r.indexOf(a[u])<0&&Object.prototype.propertyIsEnumerable.call(t,a[u])&&(i[a[u]]=t[a[u]]);return i}function f1(t,r,i){if(i||arguments.length===2)for(var a=0,u=r.length,f;a<u;a++)(f||!(a in r))&&(f||(f=Array.prototype.slice.call(r,0,a)),f[a]=r[a]);return t.concat(f||Array.prototype.slice.call(r))}function Em(t){return t}function Pm(t,r){r===void 0&&(r=Em);var i=[],a=!1,u={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:t},useMedium:function(f){var m=r(f,a);return i.push(m),function(){i=i.filter(function(v){return v!==m})}},assignSyncMedium:function(f){for(a=!0;i.length;){var m=i;i=[],m.forEach(f)}i={push:function(v){return f(v)},filter:function(){return i}}},assignMedium:function(f){a=!0;var m=[];if(i.length){var v=i;i=[],v.forEach(f),m=i}var g=function(){var w=m;m=[],w.forEach(f)},h=function(){return Promise.resolve().then(g)};h(),i={push:function(w){m.push(w),h()},filter:function(w){return m=m.filter(w),i}}}};return u}function kc(t,r){return r===void 0&&(r=Em),Pm(t,r)}function bm(t){t===void 0&&(t={});var r=Pm(null);return r.options=rn({async:!0,ssr:!1},t),r}var jm=function(t){var r=t.sideCar,i=_m(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=r.read();if(!a)throw new Error("Sidecar medium not found");return I.createElement(a,rn({},i))};jm.isSideCarExport=!0;function h1(t,r){return t.useMedium(r),jm}var Tm=kc({},function(t){var r=t.target,i=t.currentTarget;return{target:r,currentTarget:i}}),Rm=kc(),p1=kc(),m1=bm({async:!0,ssr:typeof document<"u"}),v1=I.createContext(void 0),g1=[],Cc=I.forwardRef(function(r,i){var a,u=I.useState(),f=u[0],m=u[1],v=I.useRef(),g=I.useRef(!1),h=I.useRef(null),w=I.useState({}),x=w[1],C=r.children,N=r.disabled,A=N===void 0?!1:N,E=r.noFocusGuards,M=E===void 0?!1:E,L=r.persistentFocus,F=L===void 0?!1:L,P=r.crossFrame,j=P===void 0?!0:P,D=r.autoFocus,W=D===void 0?!0:D;r.allowTextSelection;var te=r.group,Z=r.className,se=r.whiteList,ce=r.hasPositiveIndices,X=r.shards,Te=X===void 0?g1:X,Be=r.as,qe=Be===void 0?"div":Be,Ke=r.lockProps,nt=Ke===void 0?{}:Ke,Re=r.sideCar,V=r.returnFocus,re=V===void 0?!1:V,Q=r.focusOptions,b=r.onActivation,$=r.onDeactivation,le=I.useState({}),de=le[0],ve=I.useCallback(function(Tt){var Kt=Tt.captureFocusRestore;if(!h.current){var un,Ft=(un=document)==null?void 0:un.activeElement;h.current=Ft,Ft!==document.body&&(h.current=Kt(Ft))}v.current&&b&&b(v.current),g.current=!0,x()},[b]),ge=I.useCallback(function(){g.current=!1,$&&$(v.current),x()},[$]),Ce=I.useCallback(function(Tt){var Kt=h.current;if(Kt){var un=(typeof Kt=="function"?Kt():Kt)||document.body,Ft=typeof re=="function"?re(un):re;if(Ft){var Pn=typeof Ft=="object"?Ft:void 0;h.current=null,Tt?Promise.resolve().then(function(){return un.focus(Pn)}):un.focus(Pn)}}},[re]),xe=I.useCallback(function(Tt){g.current&&Tm.useMedium(Tt)},[]),_e=Rm.useMedium,ct=I.useCallback(function(Tt){v.current!==Tt&&(v.current=Tt,m(Tt))},[]),Or=Po((a={},a[km]=A&&"disabled",a[Zu]=te,a),nt),Mi=M!==!0,Ar=Mi&&M!=="tail",Li=Cm([i,ct]),Uo=I.useMemo(function(){return{observed:v,shards:Te,enabled:!A,get active(){return g.current}}},[A,g,Te,v]);return Jt.createElement(I.Fragment,null,Mi&&[Jt.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:A?-1:0,style:Eu}),ce?Jt.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:A?-1:1,style:Eu}):null],!A&&Jt.createElement(Re,{id:de,sideCar:m1,observed:f,disabled:A,persistentFocus:F,crossFrame:j,autoFocus:W,whiteList:se,shards:Te,onActivation:ve,onDeactivation:ge,returnFocus:Ce,focusOptions:Q,noFocusGuards:M}),Jt.createElement(qe,Po({ref:Li},Or,{className:Z,onBlur:_e,onFocus:xe}),Jt.createElement(v1.Provider,{value:Uo},C)),Ar&&Jt.createElement("div",{"data-focus-guard":!0,tabIndex:A?-1:0,style:Eu}))});Cc.propTypes={};function Xu(t,r){return Xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},Xu(t,r)}function y1(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,Xu(t,r)}function bo(t){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bo(t)}function w1(t,r){if(bo(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var a=i.call(t,r);if(bo(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function x1(t){var r=w1(t,"string");return bo(r)=="symbol"?r:r+""}function S1(t,r,i){return(r=x1(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function k1(t,r){function i(a){return a.displayName||a.name||"Component"}return function(u){var f=[],m;function v(){m=t(f.map(function(h){return h.props})),r(m)}var g=(function(h){y1(w,h);function w(){return h.apply(this,arguments)||this}w.peek=function(){return m};var x=w.prototype;return x.componentDidMount=function(){f.push(this),v()},x.componentDidUpdate=function(){v()},x.componentWillUnmount=function(){var N=f.indexOf(this);f.splice(N,1),v()},x.render=function(){return Jt.createElement(u,this.props)},w})(I.PureComponent);return S1(g,"displayName","SideEffect("+i(u)+")"),g}}var ln=function(t){for(var r=Array(t.length),i=0;i<t.length;++i)r[i]=t[i];return r},Mr=function(t){return Array.isArray(t)?t:[t]},Nm=function(t){return Array.isArray(t)?t[0]:t},C1=function(t){if(t.nodeType!==Node.ELEMENT_NODE)return!1;var r=window.getComputedStyle(t,null);return!r||!r.getPropertyValue?!1:r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"},Im=function(t){return t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.parentNode.host:t.parentNode},Mm=function(t){return t===document||t&&t.nodeType===Node.DOCUMENT_NODE},_1=function(t){return t.hasAttribute("inert")},E1=function(t,r){return!t||Mm(t)||!C1(t)&&!_1(t)&&r(Im(t))},Lm=function(t,r){var i=t.get(r);if(i!==void 0)return i;var a=E1(r,Lm.bind(void 0,t));return t.set(r,a),a},P1=function(t,r){return t&&!Mm(t)?T1(t)?r(Im(t)):!1:!0},Om=function(t,r){var i=t.get(r);if(i!==void 0)return i;var a=P1(r,Om.bind(void 0,t));return t.set(r,a),a},Am=function(t){return t.dataset},b1=function(t){return t.tagName==="BUTTON"},Dm=function(t){return t.tagName==="INPUT"},Fm=function(t){return Dm(t)&&t.type==="radio"},j1=function(t){return!((Dm(t)||b1(t))&&(t.type==="hidden"||t.disabled))},T1=function(t){var r=t.getAttribute(u1);return![!0,"true",""].includes(r)},_c=function(t){var r;return!!(t&&(!((r=Am(t))===null||r===void 0)&&r.focusGuard))},Ju=function(t){return!_c(t)},R1=function(t){return!!t},N1=function(t,r){var i=Math.max(0,t.tabIndex),a=Math.max(0,r.tabIndex),u=i-a,f=t.index-r.index;if(u){if(!i)return 1;if(!a)return-1}return u||f},I1=function(t){return t.tabIndex<0&&!t.hasAttribute("tabindex")?0:t.tabIndex},Ec=function(t,r,i){return ln(t).map(function(a,u){var f=I1(a);return{node:a,index:u,tabIndex:i&&f===-1?(a.dataset||{}).focusGuard?0:-1:f}}).filter(function(a){return!r||a.tabIndex>=0}).sort(N1)},M1=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Pc=M1.join(","),L1="".concat(Pc,", [data-focus-guard]"),$m=function(t,r){return ln((t.shadowRoot||t).children).reduce(function(i,a){return i.concat(a.matches(r?L1:Pc)?[a]:[],$m(a))},[])},O1=function(t,r){var i;return t instanceof HTMLIFrameElement&&(!((i=t.contentDocument)===null||i===void 0)&&i.body)?Ri([t.contentDocument.body],r):[t]},Ri=function(t,r){return t.reduce(function(i,a){var u,f=$m(a,r),m=(u=[]).concat.apply(u,f.map(function(v){return O1(v,r)}));return i.concat(m,a.parentNode?ln(a.parentNode.querySelectorAll(Pc)).filter(function(v){return v===a}):[])},[])},A1=function(t){var r=t.querySelectorAll("[".concat(l1,"]"));return ln(r).map(function(i){return Ri([i])}).reduce(function(i,a){return i.concat(a)},[])},bc=function(t,r){return ln(t).filter(function(i){return Lm(r,i)}).filter(function(i){return j1(i)})},pp=function(t,r){return r===void 0&&(r=new Map),ln(t).filter(function(i){return Om(r,i)})},jc=function(t,r,i){return Ec(bc(Ri(t,i),r),!0,i)},jo=function(t,r){return Ec(bc(Ri(t),r),!1)},D1=function(t,r){return bc(A1(t),r)},Tr=function(t,r){return t.shadowRoot?Tr(t.shadowRoot,r):Object.getPrototypeOf(t).contains!==void 0&&Object.getPrototypeOf(t).contains.call(t,r)?!0:ln(t.children).some(function(i){var a;if(i instanceof HTMLIFrameElement){var u=(a=i.contentDocument)===null||a===void 0?void 0:a.body;return u?Tr(u,r):!1}return Tr(i,r)})},F1=function(t){for(var r=new Set,i=t.length,a=0;a<i;a+=1)for(var u=a+1;u<i;u+=1){var f=t[a].compareDocumentPosition(t[u]);(f&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&r.add(u),(f&Node.DOCUMENT_POSITION_CONTAINS)>0&&r.add(a)}return t.filter(function(m,v){return!r.has(v)})},zm=function(t){return t.parentNode?zm(t.parentNode):t},Tc=function(t){var r=Mr(t);return r.filter(Boolean).reduce(function(i,a){var u=a.getAttribute(Zu);return i.push.apply(i,u?F1(ln(zm(a).querySelectorAll("[".concat(Zu,'="').concat(u,'"]:not([').concat(km,'="disabled"])')))):[a]),i},[])},$1=function(t){try{return t()}catch{return}},To=function(t){if(t===void 0&&(t=document),!(!t||!t.activeElement)){var r=t.activeElement;return r.shadowRoot?To(r.shadowRoot):r instanceof HTMLIFrameElement&&$1(function(){return r.contentWindow.document})?To(r.contentWindow.document):r}},z1=function(t,r){return t===r},U1=function(t,r){return!!ln(t.querySelectorAll("iframe")).some(function(i){return z1(i,r)})},Um=function(t,r){return r===void 0&&(r=To(Nm(t).ownerDocument)),!r||r.dataset&&r.dataset.focusGuard?!1:Tc(t).some(function(i){return Tr(i,r)||U1(i,r)})},B1=function(t){t===void 0&&(t=document);var r=To(t);return r?ln(t.querySelectorAll("[".concat(a1,"]"))).some(function(i){return Tr(i,r)}):!1},H1=function(t,r){return r.filter(Fm).filter(function(i){return i.name===t.name}).filter(function(i){return i.checked})[0]||t},Rc=function(t,r){return Fm(t)&&t.name?H1(t,r):t},W1=function(t){var r=new Set;return t.forEach(function(i){return r.add(Rc(i,t))}),t.filter(function(i){return r.has(i)})},mp=function(t){return t[0]&&t.length>1?Rc(t[0],t):t[0]},vp=function(t,r){return t.indexOf(Rc(r,t))},ec="NEW_FOCUS",V1=function(t,r,i,a,u){var f=t.length,m=t[0],v=t[f-1],g=_c(a);if(!(a&&t.indexOf(a)>=0)){var h=a!==void 0?i.indexOf(a):-1,w=u?i.indexOf(u):h,x=u?t.indexOf(u):-1;if(h===-1)return x!==-1?x:ec;if(x===-1)return ec;var C=h-w,N=i.indexOf(m),A=i.indexOf(v),E=W1(i),M=a!==void 0?E.indexOf(a):-1,L=u?E.indexOf(u):M,F=E.filter(function(Z){return Z.tabIndex>=0}),P=a!==void 0?F.indexOf(a):-1,j=u?F.indexOf(u):P,D=P>=0&&j>=0?j-P:L-M;if(!C&&x>=0||r.length===0)return x;var W=vp(t,r[0]),te=vp(t,r[r.length-1]);if(h<=N&&g&&Math.abs(C)>1)return te;if(h>=A&&g&&Math.abs(C)>1)return W;if(C&&Math.abs(D)>1)return x;if(h<=N)return te;if(h>A)return W;if(C)return Math.abs(C)>1?x:(f+x+C)%f}},q1=function(t){return function(r){var i,a=(i=Am(r))===null||i===void 0?void 0:i.autofocus;return r.autofocus||a!==void 0&&a!=="false"||t.indexOf(r)>=0}},gp=function(t,r,i){var a=t.map(function(f){var m=f.node;return m}),u=pp(a.filter(q1(i)));return u&&u.length?mp(u):mp(pp(r))},tc=function(t,r){return r===void 0&&(r=[]),r.push(t),t.parentNode&&tc(t.parentNode.host||t.parentNode,r),r},Pu=function(t,r){for(var i=tc(t),a=tc(r),u=0;u<i.length;u+=1){var f=i[u];if(a.indexOf(f)>=0)return f}return!1},Bm=function(t,r,i){var a=Mr(t),u=Mr(r),f=a[0],m=!1;return u.filter(Boolean).forEach(function(v){m=Pu(m||v,v)||m,i.filter(Boolean).forEach(function(g){var h=Pu(f,g);h&&(!m||Tr(h,m)?m=h:m=Pu(h,m))})}),m},yp=function(t,r){return t.reduce(function(i,a){return i.concat(D1(a,r))},[])},K1=function(t,r){var i=new Map;return r.forEach(function(a){return i.set(a.node,a)}),t.map(function(a){return i.get(a)}).filter(R1)},Q1=function(t,r){var i=To(Mr(t).length>0?document:Nm(t).ownerDocument),a=Tc(t).filter(Ju),u=Bm(i||t,t,a),f=new Map,m=jo(a,f),v=m.filter(function(A){var E=A.node;return Ju(E)});if(v[0]){var g=jo([u],f).map(function(A){var E=A.node;return E}),h=K1(g,v),w=h.map(function(A){var E=A.node;return E}),x=h.filter(function(A){var E=A.tabIndex;return E>=0}).map(function(A){var E=A.node;return E}),C=V1(w,x,g,i,r);if(C===ec){var N=gp(m,x,yp(a,f))||gp(m,w,yp(a,f));if(N)return{node:N};console.warn("focus-lock: cannot find any node to move focus into");return}return C===void 0?C:h[C]}},G1=function(t){var r=Tc(t).filter(Ju),i=Bm(t,t,r),a=Ec(Ri([i],!0),!0,!0),u=Ri(r,!1);return a.map(function(f){var m=f.node,v=f.index;return{node:m,index:v,lockItem:u.indexOf(m)>=0,guard:_c(m)}})},Nc=function(t,r){t&&("focus"in t&&t.focus(r),"contentWindow"in t&&t.contentWindow&&t.contentWindow.focus())},bu=0,ju=!1,Hm=function(t,r,i){i===void 0&&(i={});var a=Q1(t,r);if(!ju&&a){if(bu>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ju=!0,setTimeout(function(){ju=!1},1);return}bu++,Nc(a.node,i.focusOptions),bu--}};function So(t){if(!t)return null;if(typeof WeakRef>"u")return function(){return t||null};var r=t?new WeakRef(t):null;return function(){return(r==null?void 0:r.deref())||null}}var Y1=function(t){if(!t)return null;for(var r=[],i=t;i&&i!==document.body;)r.push({current:So(i),parent:So(i.parentElement),left:So(i.previousElementSibling),right:So(i.nextElementSibling)}),i=i.parentElement;return{element:So(t),stack:r,ownerDocument:t.ownerDocument}},Z1=function(t){var r,i,a,u,f;if(t)for(var m=t.stack,v=t.ownerDocument,g=new Map,h=0,w=m;h<w.length;h++){var x=w[h],C=(r=x.parent)===null||r===void 0?void 0:r.call(x);if(C&&v.contains(C)){for(var N=(i=x.left)===null||i===void 0?void 0:i.call(x),A=x.current(),E=C.contains(A)?A:void 0,M=(a=x.right)===null||a===void 0?void 0:a.call(x),L=jc([C],g),F=(f=(u=E??(N==null?void 0:N.nextElementSibling))!==null&&u!==void 0?u:M)!==null&&f!==void 0?f:N;F;){for(var P=0,j=L;P<j.length;P++){var D=j[P];if(F!=null&&F.contains(D.node))return D.node}F=F.nextElementSibling}if(L.length)return L[0].node}}},Wm=function(t){var r=Y1(t);return function(){return Z1(r)}},X1=function(t,r,i){if(!t||!r)return console.error("no element or scope given"),{};var a=Mr(r);if(a.every(function(m){return!Tr(m,t)}))return console.error("Active element is not contained in the scope"),{};var u=i?jc(a,new Map):jo(a,new Map),f=u.findIndex(function(m){var v=m.node;return v===t});if(f!==-1)return{prev:u[f-1],next:u[f+1],first:u[0],last:u[u.length-1]}},J1=function(t,r){var i=r?jc(Mr(t),new Map):jo(Mr(t),new Map);return{first:i[0],last:i[i.length-1]}},e0=function(t){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},t)},Vm=function(t,r,i){r===void 0&&(r={});var a=e0(r),u=X1(t,a.scope,a.onlyTabbable);if(u){var f=i(u,a.cycle);f&&Nc(f.node,a.focusOptions)}},t0=function(t,r){r===void 0&&(r={}),Vm(t,r,function(i,a){var u=i.next,f=i.first;return u||a&&f})},n0=function(t,r){r===void 0&&(r={}),Vm(t,r,function(i,a){var u=i.prev,f=i.last;return u||a&&f})},qm=function(t,r,i){var a,u=J1(t,(a=r.onlyTabbable)!==null&&a!==void 0?a:!0),f=u[i];f&&Nc(f.node,r.focusOptions)},r0=function(t,r){r===void 0&&(r={}),qm(t,r,"first")},i0=function(t,r){r===void 0&&(r={}),qm(t,r,"last")};function Ic(t){setTimeout(t,1)}var o0=function(r){return r&&"current"in r?r.current:r},Km=function(){return document&&document.activeElement===document.body},s0=function(){return Km()||B1()},pi=null,St=null,wp=function(){return null},mi=null,Ro=!1,Mc=!1,a0=function(){return!0},l0=function(r){return(pi.whiteList||a0)(r)},u0=function(r,i){mi={observerNode:r,portaledElement:i}},c0=function(r){return mi&&mi.portaledElement===r};function xp(t,r,i,a){var u=null,f=t;do{var m=a[f];if(m.guard)m.node.dataset.focusAutoGuard&&(u=m);else if(m.lockItem){if(f!==t)return;u=null}else break}while((f+=i)!==r);u&&(u.node.tabIndex=0)}var d0=function(r){return r?!!Ro:Ro==="meanwhile"},f0=function t(r,i,a){return i&&(i.host===r&&(!i.activeElement||a.contains(i.activeElement))||i.parentNode&&t(r,i.parentNode,a))},h0=function(r,i){return i.some(function(a){return f0(r,a,a)})},Qm=function(r){return jo(r,new Map)},p0=function(r){return!Qm([r.parentNode]).some(function(i){return i.node===r})},pa=function(){var r=!1;if(pi){var i=pi,a=i.observed,u=i.persistentFocus,f=i.autoFocus,m=i.shards,v=i.crossFrame,g=i.focusOptions,h=i.noFocusGuards,w=a||mi&&mi.portaledElement;if(Km()&&St&&St!==document.body&&(!document.body.contains(St)||p0(St))){var x=wp();x&&x.focus()}var C=document&&document.activeElement;if(w){var N=[w].concat(m.map(o0).filter(Boolean)),A=function(){if(!d0(v)||!h||!St||Mc)return!1;var P=Qm(N),j=P.findIndex(function(D){var W=D.node;return W===St});return j===0||j===P.length-1};if((!C||l0(C))&&(u||A()||!s0()||!St&&f)&&(w&&!(Um(N)||C&&h0(C,N)||c0(C))&&(document&&!St&&C&&!f?(C.blur&&C.blur(),document.body.focus()):(r=Hm(N,St,{focusOptions:g}),mi={})),St=document&&document.activeElement,St!==document.body&&(wp=Wm(St)),Ro=!1),document&&C!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var E=document&&document.activeElement,M=G1(N),L=M.map(function(F){var P=F.node;return P}).indexOf(E);L>-1&&(M.filter(function(F){var P=F.guard,j=F.node;return P&&j.dataset.focusAutoGuard}).forEach(function(F){var P=F.node;return P.removeAttribute("tabIndex")}),xp(L,M.length,1,M),xp(L,-1,-1,M))}}}return r},Gm=function(r){pa()&&r&&(r.stopPropagation(),r.preventDefault())},Lc=function(){return Ic(pa)},m0=function(r){var i=r.target,a=r.currentTarget;a.contains(i)||u0(a,i)},v0=function(){return null},Ym=function(){Mc=!0},Zm=function(){Mc=!1,Ro="just",Ic(function(){Ro="meanwhile"})},g0=function(){document.addEventListener("focusin",Gm),document.addEventListener("focusout",Lc),window.addEventListener("focus",Ym),window.addEventListener("blur",Zm)},y0=function(){document.removeEventListener("focusin",Gm),document.removeEventListener("focusout",Lc),window.removeEventListener("focus",Ym),window.removeEventListener("blur",Zm)};function w0(t){return t.filter(function(r){var i=r.disabled;return!i})}var Xm={moveFocusInside:Hm,focusInside:Um,focusNextElement:t0,focusPrevElement:n0,focusFirstElement:r0,focusLastElement:i0,captureFocusRestore:Wm};function x0(t){var r=t.slice(-1)[0];r&&!pi&&g0();var i=pi,a=i&&r&&r.id===i.id;pi=r,i&&!a&&(i.onDeactivation(),t.filter(function(u){var f=u.id;return f===i.id}).length||i.returnFocus(!r)),r?(St=null,(!a||i.observed!==r.observed)&&r.onActivation(Xm),pa(),Ic(pa)):(y0(),St=null)}Tm.assignSyncMedium(m0);Rm.assignMedium(Lc);p1.assignMedium(function(t){return t(Xm)});const S0=k1(w0,x0)(v0);var Oc=I.forwardRef(function(r,i){return Jt.createElement(Cc,Po({sideCar:S0,ref:i},r))}),Jm=Cc.propTypes||{};Jm.sideCar;s1(Jm,["sideCar"]);Oc.propTypes={};var la="right-scroll-bar-position",ua="width-before-scroll-bar",k0="with-scroll-bars-hidden",C0="--removed-body-scroll-bar-size",ev=bm(),Tu=function(){},xa=I.forwardRef(function(t,r){var i=I.useRef(null),a=I.useState({onScrollCapture:Tu,onWheelCapture:Tu,onTouchMoveCapture:Tu}),u=a[0],f=a[1],m=t.forwardProps,v=t.children,g=t.className,h=t.removeScrollBar,w=t.enabled,x=t.shards,C=t.sideCar,N=t.noRelative,A=t.noIsolation,E=t.inert,M=t.allowPinchZoom,L=t.as,F=L===void 0?"div":L,P=t.gapMode,j=_m(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=C,W=Cm([i,r]),te=rn(rn({},j),u);return I.createElement(I.Fragment,null,w&&I.createElement(D,{sideCar:ev,removeScrollBar:h,shards:x,noRelative:N,noIsolation:A,inert:E,setCallbacks:f,allowPinchZoom:!!M,lockRef:i,gapMode:P}),m?I.cloneElement(I.Children.only(v),rn(rn({},te),{ref:W})):I.createElement(F,rn({},te,{className:g,ref:W}),v))});xa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xa.classNames={fullWidth:ua,zeroRight:la};var _0=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function E0(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=_0();return r&&t.setAttribute("nonce",r),t}function P0(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function b0(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var j0=function(){var t=0,r=null;return{add:function(i){t==0&&(r=E0())&&(P0(r,i),b0(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},T0=function(){var t=j0();return function(r,i){I.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&i])}},tv=function(){var t=T0(),r=function(i){var a=i.styles,u=i.dynamic;return t(a,u),null};return r},R0={left:0,top:0,right:0,gap:0},Ru=function(t){return parseInt(t||"",10)||0},N0=function(t){var r=window.getComputedStyle(document.body),i=r[t==="padding"?"paddingLeft":"marginLeft"],a=r[t==="padding"?"paddingTop":"marginTop"],u=r[t==="padding"?"paddingRight":"marginRight"];return[Ru(i),Ru(a),Ru(u)]},I0=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return R0;var r=N0(t),i=document.documentElement.clientWidth,a=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,a-i+r[2]-r[0])}},M0=tv(),vi="data-scroll-locked",L0=function(t,r,i,a){var u=t.left,f=t.top,m=t.right,v=t.gap;return i===void 0&&(i="margin"),`
|
|
41
|
+
`+c.stack}return{value:e,source:n,stack:l,digest:null}}function Ul(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function Bl(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var Iy=typeof WeakMap=="function"?WeakMap:Map;function th(e,n,o){o=mn(-1,o),o.tag=3,o.payload={element:null};var s=n.value;return o.callback=function(){As||(As=!0,ru=s),Bl(e,n)},o}function nh(e,n,o){o=mn(-1,o),o.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var l=n.value;o.payload=function(){return s(l)},o.callback=function(){Bl(e,n)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(o.callback=function(){Bl(e,n),typeof s!="function"&&(zn===null?zn=new Set([this]):zn.add(this));var p=n.stack;this.componentDidCatch(n.value,{componentStack:p!==null?p:""})}),o}function rh(e,n,o){var s=e.pingCache;if(s===null){s=e.pingCache=new Iy;var l=new Set;s.set(n,l)}else l=s.get(n),l===void 0&&(l=new Set,s.set(n,l));l.has(o)||(l.add(o),e=qy.bind(null,e,n,o),n.then(e,e))}function ih(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function oh(e,n,o,s,l){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=mn(-1,1),n.tag=2,Fn(o,n,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var My=j.ReactCurrentOwner,gt=!1;function dt(e,n,o,s){n.child=e===null?Ef(n,null,o,s):Jr(n,e.child,o,s)}function sh(e,n,o,s,l){o=o.render;var c=n.ref;return ti(n,l),s=Ml(e,n,o,s,c,l),o=Ll(),e!==null&&!gt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,vn(e,n,l)):(Ne&&o&&vl(n),n.flags|=1,dt(e,n,s,l),n.child)}function ah(e,n,o,s,l){if(e===null){var c=o.type;return typeof c=="function"&&!cu(c)&&c.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=c,lh(e,n,c,s,l)):(e=Bs(o.type,null,s,n,n.mode,l),e.ref=n.ref,e.return=n,n.child=e)}if(c=e.child,(e.lanes&l)===0){var p=c.memoizedProps;if(o=o.compare,o=o!==null?o:Xi,o(p,s)&&e.ref===n.ref)return vn(e,n,l)}return n.flags|=1,e=Wn(c,s),e.ref=n.ref,e.return=n,n.child=e}function lh(e,n,o,s,l){if(e!==null){var c=e.memoizedProps;if(Xi(c,s)&&e.ref===n.ref)if(gt=!1,n.pendingProps=s=c,(e.lanes&l)!==0)(e.flags&131072)!==0&&(gt=!0);else return n.lanes=e.lanes,vn(e,n,l)}return Hl(e,n,o,s,l)}function uh(e,n,o){var s=n.pendingProps,l=s.children,c=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(oi,bt),bt|=o;else{if((o&1073741824)===0)return e=c!==null?c.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Ee(oi,bt),bt|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=c!==null?c.baseLanes:o,Ee(oi,bt),bt|=s}else c!==null?(s=c.baseLanes|o,n.memoizedState=null):s=o,Ee(oi,bt),bt|=s;return dt(e,n,l,o),n.child}function ch(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function Hl(e,n,o,s,l){var c=vt(o)?ar:rt.current;return c=Gr(n,c),ti(n,l),o=Ml(e,n,o,s,c,l),s=Ll(),e!==null&&!gt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,vn(e,n,l)):(Ne&&s&&vl(n),n.flags|=1,dt(e,n,o,l),n.child)}function dh(e,n,o,s,l){if(vt(o)){var c=!0;hs(n)}else c=!1;if(ti(n,l),n.stateNode===null)Ns(e,n),Jf(n,o,s),zl(n,o,s,l),s=!0;else if(e===null){var p=n.stateNode,w=n.memoizedProps;p.props=w;var k=p.context,O=o.contextType;typeof O=="object"&&O!==null?O=It(O):(O=vt(o)?ar:rt.current,O=Gr(n,O));var U=o.getDerivedStateFromProps,B=typeof U=="function"||typeof p.getSnapshotBeforeUpdate=="function";B||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==s||k!==O)&&eh(n,p,s,O),Dn=!1;var z=n.memoizedState;p.state=z,ks(n,s,p,l),k=n.memoizedState,w!==s||z!==k||mt.current||Dn?(typeof U=="function"&&($l(n,o,U,s),k=n.memoizedState),(w=Dn||Xf(n,o,w,s,z,k,O))?(B||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=k),p.props=s,p.state=k,p.context=O,s=w):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{p=n.stateNode,bf(e,n),w=n.memoizedProps,O=n.type===n.elementType?w:Bt(n.type,w),p.props=O,B=n.pendingProps,z=p.context,k=o.contextType,typeof k=="object"&&k!==null?k=It(k):(k=vt(o)?ar:rt.current,k=Gr(n,k));var K=o.getDerivedStateFromProps;(U=typeof K=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==B||z!==k)&&eh(n,p,s,k),Dn=!1,z=n.memoizedState,p.state=z,ks(n,s,p,l);var Y=n.memoizedState;w!==B||z!==Y||mt.current||Dn?(typeof K=="function"&&($l(n,o,K,s),Y=n.memoizedState),(O=Dn||Xf(n,o,O,s,z,Y,k)||!1)?(U||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,Y,k),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,Y,k)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||w===e.memoizedProps&&z===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&z===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=Y),p.props=s,p.state=Y,p.context=k,s=O):(typeof p.componentDidUpdate!="function"||w===e.memoizedProps&&z===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&z===e.memoizedState||(n.flags|=1024),s=!1)}return Wl(e,n,o,s,c,l)}function Wl(e,n,o,s,l,c){ch(e,n);var p=(n.flags&128)!==0;if(!s&&!p)return l&&vf(n,o,!1),vn(e,n,c);s=n.stateNode,My.current=n;var w=p&&typeof o.getDerivedStateFromError!="function"?null:s.render();return n.flags|=1,e!==null&&p?(n.child=Jr(n,e.child,null,c),n.child=Jr(n,null,w,c)):dt(e,n,w,c),n.memoizedState=s.state,l&&vf(n,o,!0),n.child}function fh(e){var n=e.stateNode;n.pendingContext?pf(e,n.pendingContext,n.pendingContext!==n.context):n.context&&pf(e,n.context,!1),bl(e,n.containerInfo)}function hh(e,n,o,s,l){return Xr(),xl(l),n.flags|=256,dt(e,n,o,s),n.child}var Vl={dehydrated:null,treeContext:null,retryLane:0};function ql(e){return{baseLanes:e,cachePool:null,transitions:null}}function ph(e,n,o){var s=n.pendingProps,l=Ie.current,c=!1,p=(n.flags&128)!==0,w;if((w=p)||(w=e!==null&&e.memoizedState===null?!1:(l&2)!==0),w?(c=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Ee(Ie,l&1),e===null)return wl(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(p=s.children,e=s.fallback,c?(s=n.mode,c=n.child,p={mode:"hidden",children:p},(s&1)===0&&c!==null?(c.childLanes=0,c.pendingProps=p):c=Hs(p,s,0,null),e=gr(e,s,o,null),c.return=n,e.return=n,c.sibling=e,n.child=c,n.child.memoizedState=ql(o),n.memoizedState=Vl,e):Kl(n,p));if(l=e.memoizedState,l!==null&&(w=l.dehydrated,w!==null))return Ly(e,n,p,s,w,l,o);if(c){c=s.fallback,p=n.mode,l=e.child,w=l.sibling;var k={mode:"hidden",children:s.children};return(p&1)===0&&n.child!==l?(s=n.child,s.childLanes=0,s.pendingProps=k,n.deletions=null):(s=Wn(l,k),s.subtreeFlags=l.subtreeFlags&14680064),w!==null?c=Wn(w,c):(c=gr(c,p,o,null),c.flags|=2),c.return=n,s.return=n,s.sibling=c,n.child=s,s=c,c=n.child,p=e.child.memoizedState,p=p===null?ql(o):{baseLanes:p.baseLanes|o,cachePool:null,transitions:p.transitions},c.memoizedState=p,c.childLanes=e.childLanes&~o,n.memoizedState=Vl,s}return c=e.child,e=c.sibling,s=Wn(c,{mode:"visible",children:s.children}),(n.mode&1)===0&&(s.lanes=o),s.return=n,s.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=s,n.memoizedState=null,s}function Kl(e,n){return n=Hs({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Rs(e,n,o,s){return s!==null&&xl(s),Jr(n,e.child,null,o),e=Kl(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Ly(e,n,o,s,l,c,p){if(o)return n.flags&256?(n.flags&=-257,s=Ul(Error(i(422))),Rs(e,n,p,s)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(c=s.fallback,l=n.mode,s=Hs({mode:"visible",children:s.children},l,0,null),c=gr(c,l,p,null),c.flags|=2,s.return=n,c.return=n,s.sibling=c,n.child=s,(n.mode&1)!==0&&Jr(n,e.child,null,p),n.child.memoizedState=ql(p),n.memoizedState=Vl,c);if((n.mode&1)===0)return Rs(e,n,p,null);if(l.data==="$!"){if(s=l.nextSibling&&l.nextSibling.dataset,s)var w=s.dgst;return s=w,c=Error(i(419)),s=Ul(c,s,void 0),Rs(e,n,p,s)}if(w=(p&e.childLanes)!==0,gt||w){if(s=Ge,s!==null){switch(p&-p){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(s.suspendedLanes|p))!==0?0:l,l!==0&&l!==c.retryLane&&(c.retryLane=l,pn(e,l),Vt(s,e,l,-1))}return uu(),s=Ul(Error(i(421))),Rs(e,n,p,s)}return l.data==="$?"?(n.flags|=128,n.child=e.child,n=Ky.bind(null,e),l._reactRetry=n,null):(e=c.treeContext,Pt=Mn(l.nextSibling),Et=n,Ne=!0,Ut=null,e!==null&&(Rt[Nt++]=fn,Rt[Nt++]=hn,Rt[Nt++]=lr,fn=e.id,hn=e.overflow,lr=n),n=Kl(n,s.children),n.flags|=4096,n)}function mh(e,n,o){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),_l(e.return,n,o)}function Ql(e,n,o,s,l){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:l}:(c.isBackwards=n,c.rendering=null,c.renderingStartTime=0,c.last=s,c.tail=o,c.tailMode=l)}function vh(e,n,o){var s=n.pendingProps,l=s.revealOrder,c=s.tail;if(dt(e,n,s.children,o),s=Ie.current,(s&2)!==0)s=s&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mh(e,o,n);else if(e.tag===19)mh(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Ee(Ie,s),(n.mode&1)===0)n.memoizedState=null;else switch(l){case"forwards":for(o=n.child,l=null;o!==null;)e=o.alternate,e!==null&&Cs(e)===null&&(l=o),o=o.sibling;o=l,o===null?(l=n.child,n.child=null):(l=o.sibling,o.sibling=null),Ql(n,!1,l,o,c);break;case"backwards":for(o=null,l=n.child,n.child=null;l!==null;){if(e=l.alternate,e!==null&&Cs(e)===null){n.child=l;break}e=l.sibling,l.sibling=o,o=l,l=e}Ql(n,!0,o,null,c);break;case"together":Ql(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ns(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function vn(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),hr|=n.lanes,(o&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,o=Wn(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=Wn(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function Oy(e,n,o){switch(n.tag){case 3:fh(n),Xr();break;case 5:Rf(n);break;case 1:vt(n.type)&&hs(n);break;case 4:bl(n,n.stateNode.containerInfo);break;case 10:var s=n.type._context,l=n.memoizedProps.value;Ee(ws,s._currentValue),s._currentValue=l;break;case 13:if(s=n.memoizedState,s!==null)return s.dehydrated!==null?(Ee(Ie,Ie.current&1),n.flags|=128,null):(o&n.child.childLanes)!==0?ph(e,n,o):(Ee(Ie,Ie.current&1),e=vn(e,n,o),e!==null?e.sibling:null);Ee(Ie,Ie.current&1);break;case 19:if(s=(o&n.childLanes)!==0,(e.flags&128)!==0){if(s)return vh(e,n,o);n.flags|=128}if(l=n.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ee(Ie,Ie.current),s)break;return null;case 22:case 23:return n.lanes=0,uh(e,n,o)}return vn(e,n,o)}var gh,Gl,yh,wh;gh=function(e,n){for(var o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Gl=function(){},yh=function(e,n,o,s){var l=e.memoizedProps;if(l!==s){e=n.stateNode,dr(Yt.current);var c=null;switch(o){case"input":l=Li(e,l),s=Li(e,s),c=[];break;case"select":l=Q({},l,{value:void 0}),s=Q({},s,{value:void 0}),c=[];break;case"textarea":l=ba(e,l),s=ba(e,s),c=[];break;default:typeof l.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=cs)}Ta(o,s);var p;o=null;for(O in l)if(!s.hasOwnProperty(O)&&l.hasOwnProperty(O)&&l[O]!=null)if(O==="style"){var w=l[O];for(p in w)w.hasOwnProperty(p)&&(o||(o={}),o[p]="")}else O!=="dangerouslySetInnerHTML"&&O!=="children"&&O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&O!=="autoFocus"&&(u.hasOwnProperty(O)?c||(c=[]):(c=c||[]).push(O,null));for(O in s){var k=s[O];if(w=l!=null?l[O]:void 0,s.hasOwnProperty(O)&&k!==w&&(k!=null||w!=null))if(O==="style")if(w){for(p in w)!w.hasOwnProperty(p)||k&&k.hasOwnProperty(p)||(o||(o={}),o[p]="");for(p in k)k.hasOwnProperty(p)&&w[p]!==k[p]&&(o||(o={}),o[p]=k[p])}else o||(c||(c=[]),c.push(O,o)),o=k;else O==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,w=w?w.__html:void 0,k!=null&&w!==k&&(c=c||[]).push(O,k)):O==="children"?typeof k!="string"&&typeof k!="number"||(c=c||[]).push(O,""+k):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&(u.hasOwnProperty(O)?(k!=null&&O==="onScroll"&&be("scroll",e),c||w===k||(c=[])):(c=c||[]).push(O,k))}o&&(c=c||[]).push("style",o);var O=c;(n.updateQueue=O)&&(n.flags|=4)}},wh=function(e,n,o,s){o!==s&&(n.flags|=4)};function po(e,n){if(!Ne)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ot(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,s=0;if(n)for(var l=e.child;l!==null;)o|=l.lanes|l.childLanes,s|=l.subtreeFlags&14680064,s|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)o|=l.lanes|l.childLanes,s|=l.subtreeFlags,s|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=s,e.childLanes=o,n}function Ay(e,n,o){var s=n.pendingProps;switch(gl(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(n),null;case 1:return vt(n.type)&&fs(),ot(n),null;case 3:return s=n.stateNode,ni(),je(mt),je(rt),Rl(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(gs(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ut!==null&&(su(Ut),Ut=null))),Gl(e,n),ot(n),null;case 5:jl(n);var l=dr(lo.current);if(o=n.type,e!==null&&n.stateNode!=null)yh(e,n,o,s,l),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!s){if(n.stateNode===null)throw Error(i(166));return ot(n),null}if(e=dr(Yt.current),gs(n)){s=n.stateNode,o=n.type;var c=n.memoizedProps;switch(s[Gt]=n,s[ro]=c,e=(n.mode&1)!==0,o){case"dialog":be("cancel",s),be("close",s);break;case"iframe":case"object":case"embed":be("load",s);break;case"video":case"audio":for(l=0;l<eo.length;l++)be(eo[l],s);break;case"source":be("error",s);break;case"img":case"image":case"link":be("error",s),be("load",s);break;case"details":be("toggle",s);break;case"input":Uo(s,c),be("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!c.multiple},be("invalid",s);break;case"textarea":td(s,c),be("invalid",s)}Ta(o,c),l=null;for(var p in c)if(c.hasOwnProperty(p)){var w=c[p];p==="children"?typeof w=="string"?s.textContent!==w&&(c.suppressHydrationWarning!==!0&&us(s.textContent,w,e),l=["children",w]):typeof w=="number"&&s.textContent!==""+w&&(c.suppressHydrationWarning!==!0&&us(s.textContent,w,e),l=["children",""+w]):u.hasOwnProperty(p)&&w!=null&&p==="onScroll"&&be("scroll",s)}switch(o){case"input":Or(s),un(s,c,!0);break;case"textarea":Or(s),rd(s);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(s.onclick=cs)}s=l,n.updateQueue=s,s!==null&&(n.flags|=4)}else{p=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=id(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=p.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=p.createElement(o,{is:s.is}):(e=p.createElement(o),o==="select"&&(p=e,s.multiple?p.multiple=!0:s.size&&(p.size=s.size))):e=p.createElementNS(e,o),e[Gt]=n,e[ro]=s,gh(e,n,!1,!1),n.stateNode=e;e:{switch(p=Ra(o,s),o){case"dialog":be("cancel",e),be("close",e),l=s;break;case"iframe":case"object":case"embed":be("load",e),l=s;break;case"video":case"audio":for(l=0;l<eo.length;l++)be(eo[l],e);l=s;break;case"source":be("error",e),l=s;break;case"img":case"image":case"link":be("error",e),be("load",e),l=s;break;case"details":be("toggle",e),l=s;break;case"input":Uo(e,s),l=Li(e,s),be("invalid",e);break;case"option":l=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},l=Q({},s,{value:void 0}),be("invalid",e);break;case"textarea":td(e,s),l=ba(e,s),be("invalid",e);break;default:l=s}Ta(o,l),w=l;for(c in w)if(w.hasOwnProperty(c)){var k=w[c];c==="style"?ad(e,k):c==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&od(e,k)):c==="children"?typeof k=="string"?(o!=="textarea"||k!=="")&&Oi(e,k):typeof k=="number"&&Oi(e,""+k):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(u.hasOwnProperty(c)?k!=null&&c==="onScroll"&&be("scroll",e):k!=null&&P(e,c,k,p))}switch(o){case"input":Or(e),un(e,s,!1);break;case"textarea":Or(e),rd(e);break;case"option":s.value!=null&&e.setAttribute("value",""+xe(s.value));break;case"select":e.multiple=!!s.multiple,c=s.value,c!=null?Dr(e,!!s.multiple,c,!1):s.defaultValue!=null&&Dr(e,!!s.multiple,s.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=cs)}switch(o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return ot(n),null;case 6:if(e&&n.stateNode!=null)wh(e,n,e.memoizedProps,s);else{if(typeof s!="string"&&n.stateNode===null)throw Error(i(166));if(o=dr(lo.current),dr(Yt.current),gs(n)){if(s=n.stateNode,o=n.memoizedProps,s[Gt]=n,(c=s.nodeValue!==o)&&(e=Et,e!==null))switch(e.tag){case 3:us(s.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&us(s.nodeValue,o,(e.mode&1)!==0)}c&&(n.flags|=4)}else s=(o.nodeType===9?o:o.ownerDocument).createTextNode(s),s[Gt]=n,n.stateNode=s}return ot(n),null;case 13:if(je(Ie),s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ne&&Pt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)kf(),Xr(),n.flags|=98560,c=!1;else if(c=gs(n),s!==null&&s.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[Gt]=n}else Xr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ot(n),c=!1}else Ut!==null&&(su(Ut),Ut=null),c=!0;if(!c)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=o,n):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Ie.current&1)!==0?We===0&&(We=3):uu())),n.updateQueue!==null&&(n.flags|=4),ot(n),null);case 4:return ni(),Gl(e,n),e===null&&to(n.stateNode.containerInfo),ot(n),null;case 10:return Cl(n.type._context),ot(n),null;case 17:return vt(n.type)&&fs(),ot(n),null;case 19:if(je(Ie),c=n.memoizedState,c===null)return ot(n),null;if(s=(n.flags&128)!==0,p=c.rendering,p===null)if(s)po(c,!1);else{if(We!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(p=Cs(e),p!==null){for(n.flags|=128,po(c,!1),s=p.updateQueue,s!==null&&(n.updateQueue=s,n.flags|=4),n.subtreeFlags=0,s=o,o=n.child;o!==null;)c=o,e=s,c.flags&=14680066,p=c.alternate,p===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=p.childLanes,c.lanes=p.lanes,c.child=p.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=p.memoizedProps,c.memoizedState=p.memoizedState,c.updateQueue=p.updateQueue,c.type=p.type,e=p.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Ee(Ie,Ie.current&1|2),n.child}e=e.sibling}c.tail!==null&&Fe()>si&&(n.flags|=128,s=!0,po(c,!1),n.lanes=4194304)}else{if(!s)if(e=Cs(p),e!==null){if(n.flags|=128,s=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),po(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!Ne)return ot(n),null}else 2*Fe()-c.renderingStartTime>si&&o!==1073741824&&(n.flags|=128,s=!0,po(c,!1),n.lanes=4194304);c.isBackwards?(p.sibling=n.child,n.child=p):(o=c.last,o!==null?o.sibling=p:n.child=p,c.last=p)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=Fe(),n.sibling=null,o=Ie.current,Ee(Ie,s?o&1|2:o&1),n):(ot(n),null);case 22:case 23:return lu(),s=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(n.flags|=8192),s&&(n.mode&1)!==0?(bt&1073741824)!==0&&(ot(n),n.subtreeFlags&6&&(n.flags|=8192)):ot(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function Dy(e,n){switch(gl(n),n.tag){case 1:return vt(n.type)&&fs(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ni(),je(mt),je(rt),Rl(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return jl(n),null;case 13:if(je(Ie),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Xr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return je(Ie),null;case 4:return ni(),null;case 10:return Cl(n.type._context),null;case 22:case 23:return lu(),null;case 24:return null;default:return null}}var Is=!1,st=!1,Fy=typeof WeakSet=="function"?WeakSet:Set,G=null;function ii(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(s){Oe(e,n,s)}else o.current=null}function Yl(e,n,o){try{o()}catch(s){Oe(e,n,s)}}var xh=!1;function $y(e,n){if(ll=Xo,e=Zd(),el(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var l=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{o.nodeType,c.nodeType}catch{o=null;break e}var p=0,w=-1,k=-1,O=0,U=0,B=e,z=null;t:for(;;){for(var K;B!==o||l!==0&&B.nodeType!==3||(w=p+l),B!==c||s!==0&&B.nodeType!==3||(k=p+s),B.nodeType===3&&(p+=B.nodeValue.length),(K=B.firstChild)!==null;)z=B,B=K;for(;;){if(B===e)break t;if(z===o&&++O===l&&(w=p),z===c&&++U===s&&(k=p),(K=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=K}o=w===-1||k===-1?null:{start:w,end:k}}else o=null}o=o||{start:0,end:0}}else o=null;for(ul={focusedElem:e,selectionRange:o},Xo=!1,G=n;G!==null;)if(n=G,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,G=e;else for(;G!==null;){n=G;try{var Y=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(Y!==null){var J=Y.memoizedProps,$e=Y.memoizedState,T=n.stateNode,_=T.getSnapshotBeforeUpdate(n.elementType===n.type?J:Bt(n.type,J),$e);T.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var R=n.stateNode.containerInfo;R.nodeType===1?R.textContent="":R.nodeType===9&&R.documentElement&&R.removeChild(R.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(H){Oe(n,n.return,H)}if(e=n.sibling,e!==null){e.return=n.return,G=e;break}G=n.return}return Y=xh,xh=!1,Y}function mo(e,n,o){var s=n.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&e)===e){var c=l.destroy;l.destroy=void 0,c!==void 0&&Yl(n,o,c)}l=l.next}while(l!==s)}}function Ms(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var s=o.create;o.destroy=s()}o=o.next}while(o!==n)}}function Zl(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function Sh(e){var n=e.alternate;n!==null&&(e.alternate=null,Sh(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Gt],delete n[ro],delete n[hl],delete n[Sy],delete n[ky])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function kh(e){return e.tag===5||e.tag===3||e.tag===4}function Ch(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xl(e,n,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=cs));else if(s!==4&&(e=e.child,e!==null))for(Xl(e,n,o),e=e.sibling;e!==null;)Xl(e,n,o),e=e.sibling}function Jl(e,n,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Jl(e,n,o),e=e.sibling;e!==null;)Jl(e,n,o),e=e.sibling}var Je=null,Ht=!1;function $n(e,n,o){for(o=o.child;o!==null;)_h(e,n,o),o=o.sibling}function _h(e,n,o){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(qo,o)}catch{}switch(o.tag){case 5:st||ii(o,n);case 6:var s=Je,l=Ht;Je=null,$n(e,n,o),Je=s,Ht=l,Je!==null&&(Ht?(e=Je,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):Je.removeChild(o.stateNode));break;case 18:Je!==null&&(Ht?(e=Je,o=o.stateNode,e.nodeType===8?fl(e.parentNode,o):e.nodeType===1&&fl(e,o),qi(e)):fl(Je,o.stateNode));break;case 4:s=Je,l=Ht,Je=o.stateNode.containerInfo,Ht=!0,$n(e,n,o),Je=s,Ht=l;break;case 0:case 11:case 14:case 15:if(!st&&(s=o.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){l=s=s.next;do{var c=l,p=c.destroy;c=c.tag,p!==void 0&&((c&2)!==0||(c&4)!==0)&&Yl(o,n,p),l=l.next}while(l!==s)}$n(e,n,o);break;case 1:if(!st&&(ii(o,n),s=o.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=o.memoizedProps,s.state=o.memoizedState,s.componentWillUnmount()}catch(w){Oe(o,n,w)}$n(e,n,o);break;case 21:$n(e,n,o);break;case 22:o.mode&1?(st=(s=st)||o.memoizedState!==null,$n(e,n,o),st=s):$n(e,n,o);break;default:$n(e,n,o)}}function Eh(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Fy),n.forEach(function(s){var l=Qy.bind(null,e,s);o.has(s)||(o.add(s),s.then(l,l))})}}function Wt(e,n){var o=n.deletions;if(o!==null)for(var s=0;s<o.length;s++){var l=o[s];try{var c=e,p=n,w=p;e:for(;w!==null;){switch(w.tag){case 5:Je=w.stateNode,Ht=!1;break e;case 3:Je=w.stateNode.containerInfo,Ht=!0;break e;case 4:Je=w.stateNode.containerInfo,Ht=!0;break e}w=w.return}if(Je===null)throw Error(i(160));_h(c,p,l),Je=null,Ht=!1;var k=l.alternate;k!==null&&(k.return=null),l.return=null}catch(O){Oe(l,n,O)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Ph(n,e),n=n.sibling}function Ph(e,n){var o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Wt(n,e),Xt(e),s&4){try{mo(3,e,e.return),Ms(3,e)}catch(J){Oe(e,e.return,J)}try{mo(5,e,e.return)}catch(J){Oe(e,e.return,J)}}break;case 1:Wt(n,e),Xt(e),s&512&&o!==null&&ii(o,o.return);break;case 5:if(Wt(n,e),Xt(e),s&512&&o!==null&&ii(o,o.return),e.flags&32){var l=e.stateNode;try{Oi(l,"")}catch(J){Oe(e,e.return,J)}}if(s&4&&(l=e.stateNode,l!=null)){var c=e.memoizedProps,p=o!==null?o.memoizedProps:c,w=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{w==="input"&&c.type==="radio"&&c.name!=null&&Tt(l,c),Ra(w,p);var O=Ra(w,c);for(p=0;p<k.length;p+=2){var U=k[p],B=k[p+1];U==="style"?ad(l,B):U==="dangerouslySetInnerHTML"?od(l,B):U==="children"?Oi(l,B):P(l,U,B,O)}switch(w){case"input":Kt(l,c);break;case"textarea":nd(l,c);break;case"select":var z=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!c.multiple;var K=c.value;K!=null?Dr(l,!!c.multiple,K,!1):z!==!!c.multiple&&(c.defaultValue!=null?Dr(l,!!c.multiple,c.defaultValue,!0):Dr(l,!!c.multiple,c.multiple?[]:"",!1))}l[ro]=c}catch(J){Oe(e,e.return,J)}}break;case 6:if(Wt(n,e),Xt(e),s&4){if(e.stateNode===null)throw Error(i(162));l=e.stateNode,c=e.memoizedProps;try{l.nodeValue=c}catch(J){Oe(e,e.return,J)}}break;case 3:if(Wt(n,e),Xt(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{qi(n.containerInfo)}catch(J){Oe(e,e.return,J)}break;case 4:Wt(n,e),Xt(e);break;case 13:Wt(n,e),Xt(e),l=e.child,l.flags&8192&&(c=l.memoizedState!==null,l.stateNode.isHidden=c,!c||l.alternate!==null&&l.alternate.memoizedState!==null||(nu=Fe())),s&4&&Eh(e);break;case 22:if(U=o!==null&&o.memoizedState!==null,e.mode&1?(st=(O=st)||U,Wt(n,e),st=O):Wt(n,e),Xt(e),s&8192){if(O=e.memoizedState!==null,(e.stateNode.isHidden=O)&&!U&&(e.mode&1)!==0)for(G=e,U=e.child;U!==null;){for(B=G=U;G!==null;){switch(z=G,K=z.child,z.tag){case 0:case 11:case 14:case 15:mo(4,z,z.return);break;case 1:ii(z,z.return);var Y=z.stateNode;if(typeof Y.componentWillUnmount=="function"){s=z,o=z.return;try{n=s,Y.props=n.memoizedProps,Y.state=n.memoizedState,Y.componentWillUnmount()}catch(J){Oe(s,o,J)}}break;case 5:ii(z,z.return);break;case 22:if(z.memoizedState!==null){Th(B);continue}}K!==null?(K.return=z,G=K):Th(B)}U=U.sibling}e:for(U=null,B=e;;){if(B.tag===5){if(U===null){U=B;try{l=B.stateNode,O?(c=l.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(w=B.stateNode,k=B.memoizedProps.style,p=k!=null&&k.hasOwnProperty("display")?k.display:null,w.style.display=sd("display",p))}catch(J){Oe(e,e.return,J)}}}else if(B.tag===6){if(U===null)try{B.stateNode.nodeValue=O?"":B.memoizedProps}catch(J){Oe(e,e.return,J)}}else if((B.tag!==22&&B.tag!==23||B.memoizedState===null||B===e)&&B.child!==null){B.child.return=B,B=B.child;continue}if(B===e)break e;for(;B.sibling===null;){if(B.return===null||B.return===e)break e;U===B&&(U=null),B=B.return}U===B&&(U=null),B.sibling.return=B.return,B=B.sibling}}break;case 19:Wt(n,e),Xt(e),s&4&&Eh(e);break;case 21:break;default:Wt(n,e),Xt(e)}}function Xt(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(kh(o)){var s=o;break e}o=o.return}throw Error(i(160))}switch(s.tag){case 5:var l=s.stateNode;s.flags&32&&(Oi(l,""),s.flags&=-33);var c=Ch(e);Jl(e,c,l);break;case 3:case 4:var p=s.stateNode.containerInfo,w=Ch(e);Xl(e,w,p);break;default:throw Error(i(161))}}catch(k){Oe(e,e.return,k)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function zy(e,n,o){G=e,bh(e)}function bh(e,n,o){for(var s=(e.mode&1)!==0;G!==null;){var l=G,c=l.child;if(l.tag===22&&s){var p=l.memoizedState!==null||Is;if(!p){var w=l.alternate,k=w!==null&&w.memoizedState!==null||st;w=Is;var O=st;if(Is=p,(st=k)&&!O)for(G=l;G!==null;)p=G,k=p.child,p.tag===22&&p.memoizedState!==null?Rh(l):k!==null?(k.return=p,G=k):Rh(l);for(;c!==null;)G=c,bh(c),c=c.sibling;G=l,Is=w,st=O}jh(e)}else(l.subtreeFlags&8772)!==0&&c!==null?(c.return=l,G=c):jh(e)}}function jh(e){for(;G!==null;){var n=G;if((n.flags&8772)!==0){var o=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:st||Ms(5,n);break;case 1:var s=n.stateNode;if(n.flags&4&&!st)if(o===null)s.componentDidMount();else{var l=n.elementType===n.type?o.memoizedProps:Bt(n.type,o.memoizedProps);s.componentDidUpdate(l,o.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var c=n.updateQueue;c!==null&&Tf(n,c,s);break;case 3:var p=n.updateQueue;if(p!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}Tf(n,p,o)}break;case 5:var w=n.stateNode;if(o===null&&n.flags&4){o=w;var k=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&o.focus();break;case"img":k.src&&(o.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var O=n.alternate;if(O!==null){var U=O.memoizedState;if(U!==null){var B=U.dehydrated;B!==null&&qi(B)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}st||n.flags&512&&Zl(n)}catch(z){Oe(n,n.return,z)}}if(n===e){G=null;break}if(o=n.sibling,o!==null){o.return=n.return,G=o;break}G=n.return}}function Th(e){for(;G!==null;){var n=G;if(n===e){G=null;break}var o=n.sibling;if(o!==null){o.return=n.return,G=o;break}G=n.return}}function Rh(e){for(;G!==null;){var n=G;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{Ms(4,n)}catch(k){Oe(n,o,k)}break;case 1:var s=n.stateNode;if(typeof s.componentDidMount=="function"){var l=n.return;try{s.componentDidMount()}catch(k){Oe(n,l,k)}}var c=n.return;try{Zl(n)}catch(k){Oe(n,c,k)}break;case 5:var p=n.return;try{Zl(n)}catch(k){Oe(n,p,k)}}}catch(k){Oe(n,n.return,k)}if(n===e){G=null;break}var w=n.sibling;if(w!==null){w.return=n.return,G=w;break}G=n.return}}var Uy=Math.ceil,Ls=j.ReactCurrentDispatcher,eu=j.ReactCurrentOwner,Lt=j.ReactCurrentBatchConfig,ye=0,Ge=null,ze=null,et=0,bt=0,oi=Ln(0),We=0,vo=null,hr=0,Os=0,tu=0,go=null,yt=null,nu=0,si=1/0,gn=null,As=!1,ru=null,zn=null,Ds=!1,Un=null,Fs=0,yo=0,iu=null,$s=-1,zs=0;function ft(){return(ye&6)!==0?Fe():$s!==-1?$s:$s=Fe()}function Bn(e){return(e.mode&1)===0?1:(ye&2)!==0&&et!==0?et&-et:_y.transition!==null?(zs===0&&(zs=kd()),zs):(e=ke,e!==0||(e=window.event,e=e===void 0?16:Nd(e.type)),e)}function Vt(e,n,o,s){if(50<yo)throw yo=0,iu=null,Error(i(185));Ui(e,o,s),((ye&2)===0||e!==Ge)&&(e===Ge&&((ye&2)===0&&(Os|=o),We===4&&Hn(e,et)),wt(e,s),o===1&&ye===0&&(n.mode&1)===0&&(si=Fe()+500,ps&&An()))}function wt(e,n){var o=e.callbackNode;_g(e,n);var s=Go(e,e===Ge?et:0);if(s===0)o!==null&&wd(o),e.callbackNode=null,e.callbackPriority=0;else if(n=s&-s,e.callbackPriority!==n){if(o!=null&&wd(o),n===1)e.tag===0?Cy(Ih.bind(null,e)):gf(Ih.bind(null,e)),wy(function(){(ye&6)===0&&An()}),o=null;else{switch(Cd(s)){case 1:o=Da;break;case 4:o=xd;break;case 16:o=Vo;break;case 536870912:o=Sd;break;default:o=Vo}o=zh(o,Nh.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function Nh(e,n){if($s=-1,zs=0,(ye&6)!==0)throw Error(i(327));var o=e.callbackNode;if(ai()&&e.callbackNode!==o)return null;var s=Go(e,e===Ge?et:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||n)n=Us(e,s);else{n=s;var l=ye;ye|=2;var c=Lh();(Ge!==e||et!==n)&&(gn=null,si=Fe()+500,mr(e,n));do try{Wy();break}catch(w){Mh(e,w)}while(!0);kl(),Ls.current=c,ye=l,ze!==null?n=0:(Ge=null,et=0,n=We)}if(n!==0){if(n===2&&(l=Fa(e),l!==0&&(s=l,n=ou(e,l))),n===1)throw o=vo,mr(e,0),Hn(e,s),wt(e,Fe()),o;if(n===6)Hn(e,s);else{if(l=e.current.alternate,(s&30)===0&&!By(l)&&(n=Us(e,s),n===2&&(c=Fa(e),c!==0&&(s=c,n=ou(e,c))),n===1))throw o=vo,mr(e,0),Hn(e,s),wt(e,Fe()),o;switch(e.finishedWork=l,e.finishedLanes=s,n){case 0:case 1:throw Error(i(345));case 2:vr(e,yt,gn);break;case 3:if(Hn(e,s),(s&130023424)===s&&(n=nu+500-Fe(),10<n)){if(Go(e,0)!==0)break;if(l=e.suspendedLanes,(l&s)!==s){ft(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=dl(vr.bind(null,e,yt,gn),n);break}vr(e,yt,gn);break;case 4:if(Hn(e,s),(s&4194240)===s)break;for(n=e.eventTimes,l=-1;0<s;){var p=31-$t(s);c=1<<p,p=n[p],p>l&&(l=p),s&=~c}if(s=l,s=Fe()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Uy(s/1960))-s,10<s){e.timeoutHandle=dl(vr.bind(null,e,yt,gn),s);break}vr(e,yt,gn);break;case 5:vr(e,yt,gn);break;default:throw Error(i(329))}}}return wt(e,Fe()),e.callbackNode===o?Nh.bind(null,e):null}function ou(e,n){var o=go;return e.current.memoizedState.isDehydrated&&(mr(e,n).flags|=256),e=Us(e,n),e!==2&&(n=yt,yt=o,n!==null&&su(n)),e}function su(e){yt===null?yt=e:yt.push.apply(yt,e)}function By(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var s=0;s<o.length;s++){var l=o[s],c=l.getSnapshot;l=l.value;try{if(!zt(c(),l))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Hn(e,n){for(n&=~tu,n&=~Os,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-$t(n),s=1<<o;e[o]=-1,n&=~s}}function Ih(e){if((ye&6)!==0)throw Error(i(327));ai();var n=Go(e,0);if((n&1)===0)return wt(e,Fe()),null;var o=Us(e,n);if(e.tag!==0&&o===2){var s=Fa(e);s!==0&&(n=s,o=ou(e,s))}if(o===1)throw o=vo,mr(e,0),Hn(e,n),wt(e,Fe()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,vr(e,yt,gn),wt(e,Fe()),null}function au(e,n){var o=ye;ye|=1;try{return e(n)}finally{ye=o,ye===0&&(si=Fe()+500,ps&&An())}}function pr(e){Un!==null&&Un.tag===0&&(ye&6)===0&&ai();var n=ye;ye|=1;var o=Lt.transition,s=ke;try{if(Lt.transition=null,ke=1,e)return e()}finally{ke=s,Lt.transition=o,ye=n,(ye&6)===0&&An()}}function lu(){bt=oi.current,je(oi)}function mr(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,yy(o)),ze!==null)for(o=ze.return;o!==null;){var s=o;switch(gl(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&fs();break;case 3:ni(),je(mt),je(rt),Rl();break;case 5:jl(s);break;case 4:ni();break;case 13:je(Ie);break;case 19:je(Ie);break;case 10:Cl(s.type._context);break;case 22:case 23:lu()}o=o.return}if(Ge=e,ze=e=Wn(e.current,null),et=bt=n,We=0,vo=null,tu=Os=hr=0,yt=go=null,cr!==null){for(n=0;n<cr.length;n++)if(o=cr[n],s=o.interleaved,s!==null){o.interleaved=null;var l=s.next,c=o.pending;if(c!==null){var p=c.next;c.next=l,s.next=p}o.pending=s}cr=null}return e}function Mh(e,n){do{var o=ze;try{if(kl(),_s.current=js,Es){for(var s=Me.memoizedState;s!==null;){var l=s.queue;l!==null&&(l.pending=null),s=s.next}Es=!1}if(fr=0,Qe=He=Me=null,uo=!1,co=0,eu.current=null,o===null||o.return===null){We=1,vo=n,ze=null;break}e:{var c=e,p=o.return,w=o,k=n;if(n=et,w.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var O=k,U=w,B=U.tag;if((U.mode&1)===0&&(B===0||B===11||B===15)){var z=U.alternate;z?(U.updateQueue=z.updateQueue,U.memoizedState=z.memoizedState,U.lanes=z.lanes):(U.updateQueue=null,U.memoizedState=null)}var K=ih(p);if(K!==null){K.flags&=-257,oh(K,p,w,c,n),K.mode&1&&rh(c,O,n),n=K,k=O;var Y=n.updateQueue;if(Y===null){var J=new Set;J.add(k),n.updateQueue=J}else Y.add(k);break e}else{if((n&1)===0){rh(c,O,n),uu();break e}k=Error(i(426))}}else if(Ne&&w.mode&1){var $e=ih(p);if($e!==null){($e.flags&65536)===0&&($e.flags|=256),oh($e,p,w,c,n),xl(ri(k,w));break e}}c=k=ri(k,w),We!==4&&(We=2),go===null?go=[c]:go.push(c),c=p;do{switch(c.tag){case 3:c.flags|=65536,n&=-n,c.lanes|=n;var T=th(c,k,n);jf(c,T);break e;case 1:w=k;var _=c.type,R=c.stateNode;if((c.flags&128)===0&&(typeof _.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(zn===null||!zn.has(R)))){c.flags|=65536,n&=-n,c.lanes|=n;var H=nh(c,w,n);jf(c,H);break e}}c=c.return}while(c!==null)}Ah(o)}catch(ee){n=ee,ze===o&&o!==null&&(ze=o=o.return);continue}break}while(!0)}function Lh(){var e=Ls.current;return Ls.current=js,e===null?js:e}function uu(){(We===0||We===3||We===2)&&(We=4),Ge===null||(hr&268435455)===0&&(Os&268435455)===0||Hn(Ge,et)}function Us(e,n){var o=ye;ye|=2;var s=Lh();(Ge!==e||et!==n)&&(gn=null,mr(e,n));do try{Hy();break}catch(l){Mh(e,l)}while(!0);if(kl(),ye=o,Ls.current=s,ze!==null)throw Error(i(261));return Ge=null,et=0,We}function Hy(){for(;ze!==null;)Oh(ze)}function Wy(){for(;ze!==null&&!mg();)Oh(ze)}function Oh(e){var n=$h(e.alternate,e,bt);e.memoizedProps=e.pendingProps,n===null?Ah(e):ze=n,eu.current=null}function Ah(e){var n=e;do{var o=n.alternate;if(e=n.return,(n.flags&32768)===0){if(o=Ay(o,n,bt),o!==null){ze=o;return}}else{if(o=Dy(o,n),o!==null){o.flags&=32767,ze=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{We=6,ze=null;return}}if(n=n.sibling,n!==null){ze=n;return}ze=n=e}while(n!==null);We===0&&(We=5)}function vr(e,n,o){var s=ke,l=Lt.transition;try{Lt.transition=null,ke=1,Vy(e,n,o,s)}finally{Lt.transition=l,ke=s}return null}function Vy(e,n,o,s){do ai();while(Un!==null);if((ye&6)!==0)throw Error(i(327));o=e.finishedWork;var l=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var c=o.lanes|o.childLanes;if(Eg(e,c),e===Ge&&(ze=Ge=null,et=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Ds||(Ds=!0,zh(Vo,function(){return ai(),null})),c=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||c){c=Lt.transition,Lt.transition=null;var p=ke;ke=1;var w=ye;ye|=4,eu.current=null,$y(e,o),Ph(o,e),dy(ul),Xo=!!ll,ul=ll=null,e.current=o,zy(o),vg(),ye=w,ke=p,Lt.transition=c}else e.current=o;if(Ds&&(Ds=!1,Un=e,Fs=l),c=e.pendingLanes,c===0&&(zn=null),wg(o.stateNode),wt(e,Fe()),n!==null)for(s=e.onRecoverableError,o=0;o<n.length;o++)l=n[o],s(l.value,{componentStack:l.stack,digest:l.digest});if(As)throw As=!1,e=ru,ru=null,e;return(Fs&1)!==0&&e.tag!==0&&ai(),c=e.pendingLanes,(c&1)!==0?e===iu?yo++:(yo=0,iu=e):yo=0,An(),null}function ai(){if(Un!==null){var e=Cd(Fs),n=Lt.transition,o=ke;try{if(Lt.transition=null,ke=16>e?16:e,Un===null)var s=!1;else{if(e=Un,Un=null,Fs=0,(ye&6)!==0)throw Error(i(331));var l=ye;for(ye|=4,G=e.current;G!==null;){var c=G,p=c.child;if((G.flags&16)!==0){var w=c.deletions;if(w!==null){for(var k=0;k<w.length;k++){var O=w[k];for(G=O;G!==null;){var U=G;switch(U.tag){case 0:case 11:case 15:mo(8,U,c)}var B=U.child;if(B!==null)B.return=U,G=B;else for(;G!==null;){U=G;var z=U.sibling,K=U.return;if(Sh(U),U===O){G=null;break}if(z!==null){z.return=K,G=z;break}G=K}}}var Y=c.alternate;if(Y!==null){var J=Y.child;if(J!==null){Y.child=null;do{var $e=J.sibling;J.sibling=null,J=$e}while(J!==null)}}G=c}}if((c.subtreeFlags&2064)!==0&&p!==null)p.return=c,G=p;else e:for(;G!==null;){if(c=G,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:mo(9,c,c.return)}var T=c.sibling;if(T!==null){T.return=c.return,G=T;break e}G=c.return}}var _=e.current;for(G=_;G!==null;){p=G;var R=p.child;if((p.subtreeFlags&2064)!==0&&R!==null)R.return=p,G=R;else e:for(p=_;G!==null;){if(w=G,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:Ms(9,w)}}catch(ee){Oe(w,w.return,ee)}if(w===p){G=null;break e}var H=w.sibling;if(H!==null){H.return=w.return,G=H;break e}G=w.return}}if(ye=l,An(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(qo,e)}catch{}s=!0}return s}finally{ke=o,Lt.transition=n}}return!1}function Dh(e,n,o){n=ri(o,n),n=th(e,n,1),e=Fn(e,n,1),n=ft(),e!==null&&(Ui(e,1,n),wt(e,n))}function Oe(e,n,o){if(e.tag===3)Dh(e,e,o);else for(;n!==null;){if(n.tag===3){Dh(n,e,o);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(zn===null||!zn.has(s))){e=ri(o,e),e=nh(n,e,1),n=Fn(n,e,1),e=ft(),n!==null&&(Ui(n,1,e),wt(n,e));break}}n=n.return}}function qy(e,n,o){var s=e.pingCache;s!==null&&s.delete(n),n=ft(),e.pingedLanes|=e.suspendedLanes&o,Ge===e&&(et&o)===o&&(We===4||We===3&&(et&130023424)===et&&500>Fe()-nu?mr(e,0):tu|=o),wt(e,n)}function Fh(e,n){n===0&&((e.mode&1)===0?n=1:(n=Qo,Qo<<=1,(Qo&130023424)===0&&(Qo=4194304)));var o=ft();e=pn(e,n),e!==null&&(Ui(e,n,o),wt(e,o))}function Ky(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),Fh(e,o)}function Qy(e,n){var o=0;switch(e.tag){case 13:var s=e.stateNode,l=e.memoizedState;l!==null&&(o=l.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(n),Fh(e,o)}var $h;$h=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||mt.current)gt=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return gt=!1,Oy(e,n,o);gt=(e.flags&131072)!==0}else gt=!1,Ne&&(n.flags&1048576)!==0&&yf(n,vs,n.index);switch(n.lanes=0,n.tag){case 2:var s=n.type;Ns(e,n),e=n.pendingProps;var l=Gr(n,rt.current);ti(n,o),l=Ml(null,n,s,e,l,o);var c=Ll();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,vt(s)?(c=!0,hs(n)):c=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Pl(n),l.updater=Ts,n.stateNode=l,l._reactInternals=n,zl(n,s,e,o),n=Wl(null,n,s,!0,c,o)):(n.tag=0,Ne&&c&&vl(n),dt(null,n,l,o),n=n.child),n;case 16:s=n.elementType;e:{switch(Ns(e,n),e=n.pendingProps,l=s._init,s=l(s._payload),n.type=s,l=n.tag=Yy(s),e=Bt(s,e),l){case 0:n=Hl(null,n,s,e,o);break e;case 1:n=dh(null,n,s,e,o);break e;case 11:n=sh(null,n,s,e,o);break e;case 14:n=ah(null,n,s,Bt(s.type,e),o);break e}throw Error(i(306,s,""))}return n;case 0:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),Hl(e,n,s,l,o);case 1:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),dh(e,n,s,l,o);case 3:e:{if(fh(n),e===null)throw Error(i(387));s=n.pendingProps,c=n.memoizedState,l=c.element,bf(e,n),ks(n,s,null,o);var p=n.memoizedState;if(s=p.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:p.cache,pendingSuspenseBoundaries:p.pendingSuspenseBoundaries,transitions:p.transitions},n.updateQueue.baseState=c,n.memoizedState=c,n.flags&256){l=ri(Error(i(423)),n),n=hh(e,n,s,o,l);break e}else if(s!==l){l=ri(Error(i(424)),n),n=hh(e,n,s,o,l);break e}else for(Pt=Mn(n.stateNode.containerInfo.firstChild),Et=n,Ne=!0,Ut=null,o=Ef(n,null,s,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Xr(),s===l){n=vn(e,n,o);break e}dt(e,n,s,o)}n=n.child}return n;case 5:return Rf(n),e===null&&wl(n),s=n.type,l=n.pendingProps,c=e!==null?e.memoizedProps:null,p=l.children,cl(s,l)?p=null:c!==null&&cl(s,c)&&(n.flags|=32),ch(e,n),dt(e,n,p,o),n.child;case 6:return e===null&&wl(n),null;case 13:return ph(e,n,o);case 4:return bl(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=Jr(n,null,s,o):dt(e,n,s,o),n.child;case 11:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),sh(e,n,s,l,o);case 7:return dt(e,n,n.pendingProps,o),n.child;case 8:return dt(e,n,n.pendingProps.children,o),n.child;case 12:return dt(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(s=n.type._context,l=n.pendingProps,c=n.memoizedProps,p=l.value,Ee(ws,s._currentValue),s._currentValue=p,c!==null)if(zt(c.value,p)){if(c.children===l.children&&!mt.current){n=vn(e,n,o);break e}}else for(c=n.child,c!==null&&(c.return=n);c!==null;){var w=c.dependencies;if(w!==null){p=c.child;for(var k=w.firstContext;k!==null;){if(k.context===s){if(c.tag===1){k=mn(-1,o&-o),k.tag=2;var O=c.updateQueue;if(O!==null){O=O.shared;var U=O.pending;U===null?k.next=k:(k.next=U.next,U.next=k),O.pending=k}}c.lanes|=o,k=c.alternate,k!==null&&(k.lanes|=o),_l(c.return,o,n),w.lanes|=o;break}k=k.next}}else if(c.tag===10)p=c.type===n.type?null:c.child;else if(c.tag===18){if(p=c.return,p===null)throw Error(i(341));p.lanes|=o,w=p.alternate,w!==null&&(w.lanes|=o),_l(p,o,n),p=c.sibling}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===n){p=null;break}if(c=p.sibling,c!==null){c.return=p.return,p=c;break}p=p.return}c=p}dt(e,n,l.children,o),n=n.child}return n;case 9:return l=n.type,s=n.pendingProps.children,ti(n,o),l=It(l),s=s(l),n.flags|=1,dt(e,n,s,o),n.child;case 14:return s=n.type,l=Bt(s,n.pendingProps),l=Bt(s.type,l),ah(e,n,s,l,o);case 15:return lh(e,n,n.type,n.pendingProps,o);case 17:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),Ns(e,n),n.tag=1,vt(s)?(e=!0,hs(n)):e=!1,ti(n,o),Jf(n,s,l),zl(n,s,l,o),Wl(null,n,s,!0,e,o);case 19:return vh(e,n,o);case 22:return uh(e,n,o)}throw Error(i(156,n.tag))};function zh(e,n){return yd(e,n)}function Gy(e,n,o,s){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,n,o,s){return new Gy(e,n,o,s)}function cu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yy(e){if(typeof e=="function")return cu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Te)return 11;if(e===Ke)return 14}return 2}function Wn(e,n){var o=e.alternate;return o===null?(o=Ot(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Bs(e,n,o,s,l,c){var p=2;if(s=e,typeof e=="function")cu(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case te:return gr(o.children,l,c,n);case Z:p=8,l|=8;break;case se:return e=Ot(12,o,n,l|2),e.elementType=se,e.lanes=c,e;case Be:return e=Ot(13,o,n,l),e.elementType=Be,e.lanes=c,e;case qe:return e=Ot(19,o,n,l),e.elementType=qe,e.lanes=c,e;case Re:return Hs(o,l,c,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ce:p=10;break e;case X:p=9;break e;case Te:p=11;break e;case Ke:p=14;break e;case nt:p=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return n=Ot(p,o,n,l),n.elementType=e,n.type=s,n.lanes=c,n}function gr(e,n,o,s){return e=Ot(7,e,s,n),e.lanes=o,e}function Hs(e,n,o,s){return e=Ot(22,e,s,n),e.elementType=Re,e.lanes=o,e.stateNode={isHidden:!1},e}function du(e,n,o){return e=Ot(6,e,null,n),e.lanes=o,e}function fu(e,n,o){return n=Ot(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Zy(e,n,o,s,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$a(0),this.expirationTimes=$a(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$a(0),this.identifierPrefix=s,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function hu(e,n,o,s,l,c,p,w,k){return e=new Zy(e,n,o,w,k),n===1?(n=1,c===!0&&(n|=8)):n=0,c=Ot(3,null,null,n),e.current=c,c.stateNode=e,c.memoizedState={element:s,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pl(c),e}function Xy(e,n,o){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:W,key:s==null?null:""+s,children:e,containerInfo:n,implementation:o}}function Uh(e){if(!e)return On;e=e._reactInternals;e:{if(or(e)!==e||e.tag!==1)throw Error(i(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(vt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(e.tag===1){var o=e.type;if(vt(o))return mf(e,o,n)}return n}function Bh(e,n,o,s,l,c,p,w,k){return e=hu(o,s,!0,e,l,c,p,w,k),e.context=Uh(null),o=e.current,s=ft(),l=Bn(o),c=mn(s,l),c.callback=n??null,Fn(o,c,l),e.current.lanes=l,Ui(e,l,s),wt(e,s),e}function Ws(e,n,o,s){var l=n.current,c=ft(),p=Bn(l);return o=Uh(o),n.context===null?n.context=o:n.pendingContext=o,n=mn(c,p),n.payload={element:e},s=s===void 0?null:s,s!==null&&(n.callback=s),e=Fn(l,n,p),e!==null&&(Vt(e,l,p,c),Ss(e,l,p)),p}function Vs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Hh(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function pu(e,n){Hh(e,n),(e=e.alternate)&&Hh(e,n)}function Jy(){return null}var Wh=typeof reportError=="function"?reportError:function(e){console.error(e)};function mu(e){this._internalRoot=e}qs.prototype.render=mu.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));Ws(e,n,null,null)},qs.prototype.unmount=mu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;pr(function(){Ws(null,e,null,null)}),n[cn]=null}};function qs(e){this._internalRoot=e}qs.prototype.unstable_scheduleHydration=function(e){if(e){var n=Pd();e={blockedOn:null,target:e,priority:n};for(var o=0;o<Rn.length&&n!==0&&n<Rn[o].priority;o++);Rn.splice(o,0,e),o===0&&Td(e)}};function vu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ks(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vh(){}function ew(e,n,o,s,l){if(l){if(typeof s=="function"){var c=s;s=function(){var O=Vs(p);c.call(O)}}var p=Bh(n,s,e,0,null,!1,!1,"",Vh);return e._reactRootContainer=p,e[cn]=p.current,to(e.nodeType===8?e.parentNode:e),pr(),p}for(;l=e.lastChild;)e.removeChild(l);if(typeof s=="function"){var w=s;s=function(){var O=Vs(k);w.call(O)}}var k=hu(e,0,!1,null,null,!1,!1,"",Vh);return e._reactRootContainer=k,e[cn]=k.current,to(e.nodeType===8?e.parentNode:e),pr(function(){Ws(n,k,o,s)}),k}function Qs(e,n,o,s,l){var c=o._reactRootContainer;if(c){var p=c;if(typeof l=="function"){var w=l;l=function(){var k=Vs(p);w.call(k)}}Ws(n,p,e,l)}else p=ew(o,n,e,l,s);return Vs(p)}_d=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=zi(n.pendingLanes);o!==0&&(za(n,o|1),wt(n,Fe()),(ye&6)===0&&(si=Fe()+500,An()))}break;case 13:pr(function(){var s=pn(e,1);if(s!==null){var l=ft();Vt(s,e,1,l)}}),pu(e,1)}},Ua=function(e){if(e.tag===13){var n=pn(e,134217728);if(n!==null){var o=ft();Vt(n,e,134217728,o)}pu(e,134217728)}},Ed=function(e){if(e.tag===13){var n=Bn(e),o=pn(e,n);if(o!==null){var s=ft();Vt(o,e,n,s)}pu(e,n)}},Pd=function(){return ke},bd=function(e,n){var o=ke;try{return ke=e,n()}finally{ke=o}},Ma=function(e,n,o){switch(n){case"input":if(Kt(e,o),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var s=o[n];if(s!==e&&s.form===e.form){var l=ds(s);if(!l)throw Error(i(90));Mi(s),Kt(s,l)}}}break;case"textarea":nd(e,o);break;case"select":n=o.value,n!=null&&Dr(e,!!o.multiple,n,!1)}},dd=au,fd=pr;var tw={usingClientEntryPoint:!1,Events:[io,Kr,ds,ud,cd,au]},wo={findFiberByHostInstance:sr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nw={bundleType:wo.bundleType,version:wo.version,rendererPackageName:wo.rendererPackageName,rendererConfig:wo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:j.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vd(e),e===null?null:e.stateNode},findFiberByHostInstance:wo.findFiberByHostInstance||Jy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gs.isDisabled&&Gs.supportsFiber)try{qo=Gs.inject(nw),Qt=Gs}catch{}}return xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tw,xt.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vu(n))throw Error(i(200));return Xy(e,n,null,o)},xt.createRoot=function(e,n){if(!vu(e))throw Error(i(299));var o=!1,s="",l=Wh;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),n=hu(e,1,!1,null,null,o,!1,s,l),e[cn]=n.current,to(e.nodeType===8?e.parentNode:e),new mu(n)},xt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=vd(n),e=e===null?null:e.stateNode,e},xt.flushSync=function(e){return pr(e)},xt.hydrate=function(e,n,o){if(!Ks(n))throw Error(i(200));return Qs(null,e,n,!0,o)},xt.hydrateRoot=function(e,n,o){if(!vu(e))throw Error(i(405));var s=o!=null&&o.hydratedSources||null,l=!1,c="",p=Wh;if(o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),n=Bh(n,null,e,1,o??null,l,!1,c,p),e[cn]=n.current,to(e),s)for(e=0;e<s.length;e++)o=s[e],l=o._getVersion,l=l(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,l]:n.mutableSourceEagerHydrationData.push(o,l);return new qs(n)},xt.render=function(e,n,o){if(!Ks(n))throw Error(i(200));return Qs(null,e,n,!1,o)},xt.unmountComponentAtNode=function(e){if(!Ks(e))throw Error(i(40));return e._reactRootContainer?(pr(function(){Qs(null,null,e,!1,function(){e._reactRootContainer=null,e[cn]=null})}),!0):!1},xt.unstable_batchedUpdates=au,xt.unstable_renderSubtreeIntoContainer=function(e,n,o,s){if(!Ks(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Qs(e,n,o,!1,s)},xt.version="18.3.1-next-f1338f8080-20240426",xt}var tp;function am(){if(tp)return Su.exports;tp=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Su.exports=mw(),Su.exports}var np;function vw(){if(np)return Zs;np=1;var t=am();return Zs.createRoot=t.createRoot,Zs.hydrateRoot=t.hydrateRoot,Zs}var gw=vw(),Ii=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xr,Kn,yi,Yp,yw=(Yp=class extends Ii{constructor(){super();ne(this,xr);ne(this,Kn);ne(this,yi);q(this,yi,r=>{if(typeof window<"u"&&window.addEventListener){const i=()=>r();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){S(this,Kn)||this.setEventListener(S(this,yi))}onUnsubscribe(){var r;this.hasListeners()||((r=S(this,Kn))==null||r.call(this),q(this,Kn,void 0))}setEventListener(r){var i;q(this,yi,r),(i=S(this,Kn))==null||i.call(this),q(this,Kn,r(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(r){S(this,xr)!==r&&(q(this,xr,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(i=>{i(r)})}isFocused(){var r;return typeof S(this,xr)=="boolean"?S(this,xr):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},xr=new WeakMap,Kn=new WeakMap,yi=new WeakMap,Yp),vc=new yw,ww={setTimeout:(t,r)=>setTimeout(t,r),clearTimeout:t=>clearTimeout(t),setInterval:(t,r)=>setInterval(t,r),clearInterval:t=>clearInterval(t)},Qn,pc,Zp,xw=(Zp=class{constructor(){ne(this,Qn,ww);ne(this,pc,!1)}setTimeoutProvider(t){q(this,Qn,t)}setTimeout(t,r){return S(this,Qn).setTimeout(t,r)}clearTimeout(t){S(this,Qn).clearTimeout(t)}setInterval(t,r){return S(this,Qn).setInterval(t,r)}clearInterval(t){S(this,Qn).clearInterval(t)}},Qn=new WeakMap,pc=new WeakMap,Zp),wr=new xw;function Sw(t){setTimeout(t,0)}var kw=typeof window>"u"||"Deno"in globalThis;function pt(){}function Cw(t,r){return typeof t=="function"?t(r):t}function Au(t){return typeof t=="number"&&t>=0&&t!==1/0}function lm(t,r){return Math.max(t+(r||0)-Date.now(),0)}function nr(t,r){return typeof t=="function"?t(r):t}function Dt(t,r){return typeof t=="function"?t(r):t}function rp(t,r){const{type:i="all",exact:a,fetchStatus:u,predicate:f,queryKey:m,stale:v}=t;if(m){if(a){if(r.queryHash!==gc(m,r.options))return!1}else if(!_o(r.queryKey,m))return!1}if(i!=="all"){const g=r.isActive();if(i==="active"&&!g||i==="inactive"&&g)return!1}return!(typeof v=="boolean"&&r.isStale()!==v||u&&u!==r.state.fetchStatus||f&&!f(r))}function ip(t,r){const{exact:i,status:a,predicate:u,mutationKey:f}=t;if(f){if(!r.options.mutationKey)return!1;if(i){if(Ir(r.options.mutationKey)!==Ir(f))return!1}else if(!_o(r.options.mutationKey,f))return!1}return!(a&&r.state.status!==a||u&&!u(r))}function gc(t,r){return((r==null?void 0:r.queryKeyHashFn)||Ir)(t)}function Ir(t){return JSON.stringify(t,(r,i)=>Du(i)?Object.keys(i).sort().reduce((a,u)=>(a[u]=i[u],a),{}):i)}function _o(t,r){return t===r?!0:typeof t!=typeof r?!1:t&&r&&typeof t=="object"&&typeof r=="object"?Object.keys(r).every(i=>_o(t[i],r[i])):!1}var _w=Object.prototype.hasOwnProperty;function um(t,r,i=0){if(t===r)return t;if(i>500)return r;const a=op(t)&&op(r);if(!a&&!(Du(t)&&Du(r)))return r;const f=(a?t:Object.keys(t)).length,m=a?r:Object.keys(r),v=m.length,g=a?new Array(v):{};let h=0;for(let y=0;y<v;y++){const x=a?y:m[y],C=t[x],N=r[x];if(C===N){g[x]=C,(a?y<f:_w.call(t,x))&&h++;continue}if(C===null||N===null||typeof C!="object"||typeof N!="object"){g[x]=N;continue}const A=um(C,N,i+1);g[x]=A,A===C&&h++}return f===v&&h===f?t:g}function fa(t,r){if(!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(const i in t)if(t[i]!==r[i])return!1;return!0}function op(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Du(t){if(!sp(t))return!1;const r=t.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!sp(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function sp(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ew(t){return new Promise(r=>{wr.setTimeout(r,t)})}function Fu(t,r,i){return typeof i.structuralSharing=="function"?i.structuralSharing(t,r):i.structuralSharing!==!1?um(t,r):r}function Pw(t,r,i=0){const a=[...t,r];return i&&a.length>i?a.slice(1):a}function bw(t,r,i=0){const a=[r,...t];return i&&a.length>i?a.slice(0,-1):a}var yc=Symbol();function cm(t,r){return!t.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!t.queryFn||t.queryFn===yc?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function wc(t,r){return typeof t=="function"?t(...r):!!t}function jw(t,r,i){let a=!1,u;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(u??(u=r()),a||(a=!0,u.aborted?i():u.addEventListener("abort",i,{once:!0})),u)}),t}var Eo=(()=>{let t=()=>kw;return{isServer(){return t()},setIsServer(r){t=r}}})();function $u(){let t,r;const i=new Promise((u,f)=>{t=u,r=f});i.status="pending",i.catch(()=>{});function a(u){Object.assign(i,u),delete i.resolve,delete i.reject}return i.resolve=u=>{a({status:"fulfilled",value:u}),t(u)},i.reject=u=>{a({status:"rejected",reason:u}),r(u)},i}var Tw=Sw;function Rw(){let t=[],r=0,i=v=>{v()},a=v=>{v()},u=Tw;const f=v=>{r?t.push(v):u(()=>{i(v)})},m=()=>{const v=t;t=[],v.length&&u(()=>{a(()=>{v.forEach(g=>{i(g)})})})};return{batch:v=>{let g;r++;try{g=v()}finally{r--,r||m()}return g},batchCalls:v=>(...g)=>{f(()=>{v(...g)})},schedule:f,setNotifyFunction:v=>{i=v},setBatchNotifyFunction:v=>{a=v},setScheduler:v=>{u=v}}}var Ve=Rw(),wi,Gn,xi,Xp,Nw=(Xp=class extends Ii{constructor(){super();ne(this,wi,!0);ne(this,Gn);ne(this,xi);q(this,xi,r=>{if(typeof window<"u"&&window.addEventListener){const i=()=>r(!0),a=()=>r(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",a)}}})}onSubscribe(){S(this,Gn)||this.setEventListener(S(this,xi))}onUnsubscribe(){var r;this.hasListeners()||((r=S(this,Gn))==null||r.call(this),q(this,Gn,void 0))}setEventListener(r){var i;q(this,xi,r),(i=S(this,Gn))==null||i.call(this),q(this,Gn,r(this.setOnline.bind(this)))}setOnline(r){S(this,wi)!==r&&(q(this,wi,r),this.listeners.forEach(a=>{a(r)}))}isOnline(){return S(this,wi)}},wi=new WeakMap,Gn=new WeakMap,xi=new WeakMap,Xp),ha=new Nw;function Iw(t){return Math.min(1e3*2**t,3e4)}function dm(t){return(t??"online")==="online"?ha.isOnline():!0}var zu=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function fm(t){let r=!1,i=0,a;const u=$u(),f=()=>u.status!=="pending",m=E=>{var M;if(!f()){const L=new zu(E);C(L),(M=t.onCancel)==null||M.call(t,L)}},v=()=>{r=!0},g=()=>{r=!1},h=()=>vc.isFocused()&&(t.networkMode==="always"||ha.isOnline())&&t.canRun(),y=()=>dm(t.networkMode)&&t.canRun(),x=E=>{f()||(a==null||a(),u.resolve(E))},C=E=>{f()||(a==null||a(),u.reject(E))},N=()=>new Promise(E=>{var M;a=L=>{(f()||h())&&E(L)},(M=t.onPause)==null||M.call(t)}).then(()=>{var E;a=void 0,f()||(E=t.onContinue)==null||E.call(t)}),A=()=>{if(f())return;let E;const M=i===0?t.initialPromise:void 0;try{E=M??t.fn()}catch(L){E=Promise.reject(L)}Promise.resolve(E).then(x).catch(L=>{var W;if(f())return;const F=t.retry??(Eo.isServer()?0:3),P=t.retryDelay??Iw,j=typeof P=="function"?P(i,L):P,D=F===!0||typeof F=="number"&&i<F||typeof F=="function"&&F(i,L);if(r||!D){C(L);return}i++,(W=t.onFail)==null||W.call(t,i,L),Ew(j).then(()=>h()?void 0:N()).then(()=>{r?C(L):A()})})};return{promise:u,status:()=>u.status,cancel:m,continue:()=>(a==null||a(),u),cancelRetry:v,continueRetry:g,canStart:y,start:()=>(y()?A():N().then(A),u)}}var Sr,Jp,hm=(Jp=class{constructor(){ne(this,Sr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Au(this.gcTime)&&q(this,Sr,wr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Eo.isServer()?1/0:300*1e3))}clearGcTimeout(){S(this,Sr)!==void 0&&(wr.clearTimeout(S(this,Sr)),q(this,Sr,void 0))}},Sr=new WeakMap,Jp),kr,Si,At,Cr,Ze,Lo,_r,jt,pm,yn,em,Mw=(em=class extends hm{constructor(r){super();ne(this,jt);ne(this,kr);ne(this,Si);ne(this,At);ne(this,Cr);ne(this,Ze);ne(this,Lo);ne(this,_r);q(this,_r,!1),q(this,Lo,r.defaultOptions),this.setOptions(r.options),this.observers=[],q(this,Cr,r.client),q(this,At,S(this,Cr).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,q(this,kr,lp(this.options)),this.state=r.state??S(this,kr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=S(this,Ze))==null?void 0:r.promise}setOptions(r){if(this.options={...S(this,Lo),...r},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=lp(this.options);i.data!==void 0&&(this.setState(ap(i.data,i.dataUpdatedAt)),q(this,kr,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,At).remove(this)}setData(r,i){const a=Fu(this.state.data,r,this.options);return ue(this,jt,yn).call(this,{data:a,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),a}setState(r,i){ue(this,jt,yn).call(this,{type:"setState",state:r,setStateOptions:i})}cancel(r){var a,u;const i=(a=S(this,Ze))==null?void 0:a.promise;return(u=S(this,Ze))==null||u.cancel(r),i?i.then(pt).catch(pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return S(this,kr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(r=>Dt(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>nr(r.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(r=0){return this.state.data===void 0?!0:r==="static"?!1:this.state.isInvalidated?!0:!lm(this.state.dataUpdatedAt,r)}onFocus(){var i;const r=this.observers.find(a=>a.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(i=S(this,Ze))==null||i.continue()}onOnline(){var i;const r=this.observers.find(a=>a.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(i=S(this,Ze))==null||i.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),S(this,At).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(i=>i!==r),this.observers.length||(S(this,Ze)&&(S(this,_r)||ue(this,jt,pm).call(this)?S(this,Ze).cancel({revert:!0}):S(this,Ze).cancelRetry()),this.scheduleGc()),S(this,At).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ue(this,jt,yn).call(this,{type:"invalidate"})}async fetch(r,i){var g,h,y,x,C,N,A,E,M,L,F,P;if(this.state.fetchStatus!=="idle"&&((g=S(this,Ze))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(S(this,Ze))return S(this,Ze).continueRetry(),S(this,Ze).promise}if(r&&this.setOptions(r),!this.options.queryFn){const j=this.observers.find(D=>D.options.queryFn);j&&this.setOptions(j.options)}const a=new AbortController,u=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(q(this,_r,!0),a.signal)})},f=()=>{const j=cm(this.options,i),W=(()=>{const te={client:S(this,Cr),queryKey:this.queryKey,meta:this.meta};return u(te),te})();return q(this,_r,!1),this.options.persister?this.options.persister(j,W,this):j(W)},v=(()=>{const j={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:S(this,Cr),state:this.state,fetchFn:f};return u(j),j})();(h=this.options.behavior)==null||h.onFetch(v,this),q(this,Si,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=v.fetchOptions)==null?void 0:y.meta))&&ue(this,jt,yn).call(this,{type:"fetch",meta:(x=v.fetchOptions)==null?void 0:x.meta}),q(this,Ze,fm({initialPromise:i==null?void 0:i.initialPromise,fn:v.fetchFn,onCancel:j=>{j instanceof zu&&j.revert&&this.setState({...S(this,Si),fetchStatus:"idle"}),a.abort()},onFail:(j,D)=>{ue(this,jt,yn).call(this,{type:"failed",failureCount:j,error:D})},onPause:()=>{ue(this,jt,yn).call(this,{type:"pause"})},onContinue:()=>{ue(this,jt,yn).call(this,{type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0}));try{const j=await S(this,Ze).start();if(j===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(j),(N=(C=S(this,At).config).onSuccess)==null||N.call(C,j,this),(E=(A=S(this,At).config).onSettled)==null||E.call(A,j,this.state.error,this),j}catch(j){if(j instanceof zu){if(j.silent)return S(this,Ze).promise;if(j.revert){if(this.state.data===void 0)throw j;return this.state.data}}throw ue(this,jt,yn).call(this,{type:"error",error:j}),(L=(M=S(this,At).config).onError)==null||L.call(M,j,this),(P=(F=S(this,At).config).onSettled)==null||P.call(F,this.state.data,j,this),j}finally{this.scheduleGc()}}},kr=new WeakMap,Si=new WeakMap,At=new WeakMap,Cr=new WeakMap,Ze=new WeakMap,Lo=new WeakMap,_r=new WeakMap,jt=new WeakSet,pm=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},yn=function(r){const i=a=>{switch(r.type){case"failed":return{...a,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...mm(a.data,this.options),fetchMeta:r.meta??null};case"success":const u={...a,...ap(r.data,r.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,Si,r.manual?u:void 0),u;case"error":const f=r.error;return{...a,error:f,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...r.state}}};this.state=i(this.state),Ve.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),S(this,At).notify({query:this,type:"updated",action:r})})},em);function mm(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dm(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function ap(t,r){return{data:t,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function lp(t){const r=typeof t.initialData=="function"?t.initialData():t.initialData,i=r!==void 0,a=i?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:i?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var kt,me,Oo,ht,Er,ki,xn,Yn,Ao,Ci,_i,Pr,br,Zn,Ei,Se,Co,Uu,Bu,Hu,Wu,Vu,qu,Ku,vm,tm,Lw=(tm=class extends Ii{constructor(r,i){super();ne(this,Se);ne(this,kt);ne(this,me);ne(this,Oo);ne(this,ht);ne(this,Er);ne(this,ki);ne(this,xn);ne(this,Yn);ne(this,Ao);ne(this,Ci);ne(this,_i);ne(this,Pr);ne(this,br);ne(this,Zn);ne(this,Ei,new Set);this.options=i,q(this,kt,r),q(this,Yn,null),q(this,xn,$u()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,me).addObserver(this),up(S(this,me),this.options)?ue(this,Se,Co).call(this):this.updateResult(),ue(this,Se,Wu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qu(S(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qu(S(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ue(this,Se,Vu).call(this),ue(this,Se,qu).call(this),S(this,me).removeObserver(this)}setOptions(r){const i=this.options,a=S(this,me);if(this.options=S(this,kt).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,S(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ue(this,Se,Ku).call(this),S(this,me).setOptions(this.options),i._defaulted&&!fa(this.options,i)&&S(this,kt).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,me),observer:this});const u=this.hasListeners();u&&cp(S(this,me),a,this.options,i)&&ue(this,Se,Co).call(this),this.updateResult(),u&&(S(this,me)!==a||Dt(this.options.enabled,S(this,me))!==Dt(i.enabled,S(this,me))||nr(this.options.staleTime,S(this,me))!==nr(i.staleTime,S(this,me)))&&ue(this,Se,Uu).call(this);const f=ue(this,Se,Bu).call(this);u&&(S(this,me)!==a||Dt(this.options.enabled,S(this,me))!==Dt(i.enabled,S(this,me))||f!==S(this,Zn))&&ue(this,Se,Hu).call(this,f)}getOptimisticResult(r){const i=S(this,kt).getQueryCache().build(S(this,kt),r),a=this.createResult(i,r);return Aw(this,a)&&(q(this,ht,a),q(this,ki,this.options),q(this,Er,S(this,me).state)),a}getCurrentResult(){return S(this,ht)}trackResult(r,i){return new Proxy(r,{get:(a,u)=>(this.trackProp(u),i==null||i(u),u==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&S(this,xn).status==="pending"&&S(this,xn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,u))})}trackProp(r){S(this,Ei).add(r)}getCurrentQuery(){return S(this,me)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const i=S(this,kt).defaultQueryOptions(r),a=S(this,kt).getQueryCache().build(S(this,kt),i);return a.fetch().then(()=>this.createResult(a,i))}fetch(r){return ue(this,Se,Co).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,ht)))}createResult(r,i){var se;const a=S(this,me),u=this.options,f=S(this,ht),m=S(this,Er),v=S(this,ki),h=r!==a?r.state:S(this,Oo),{state:y}=r;let x={...y},C=!1,N;if(i._optimisticResults){const ce=this.hasListeners(),X=!ce&&up(r,i),Te=ce&&cp(r,a,i,u);(X||Te)&&(x={...x,...mm(y.data,r.options)}),i._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:A,errorUpdatedAt:E,status:M}=x;N=x.data;let L=!1;if(i.placeholderData!==void 0&&N===void 0&&M==="pending"){let ce;f!=null&&f.isPlaceholderData&&i.placeholderData===(v==null?void 0:v.placeholderData)?(ce=f.data,L=!0):ce=typeof i.placeholderData=="function"?i.placeholderData((se=S(this,_i))==null?void 0:se.state.data,S(this,_i)):i.placeholderData,ce!==void 0&&(M="success",N=Fu(f==null?void 0:f.data,ce,i),C=!0)}if(i.select&&N!==void 0&&!L)if(f&&N===(m==null?void 0:m.data)&&i.select===S(this,Ao))N=S(this,Ci);else try{q(this,Ao,i.select),N=i.select(N),N=Fu(f==null?void 0:f.data,N,i),q(this,Ci,N),q(this,Yn,null)}catch(ce){q(this,Yn,ce)}S(this,Yn)&&(A=S(this,Yn),N=S(this,Ci),E=Date.now(),M="error");const F=x.fetchStatus==="fetching",P=M==="pending",j=M==="error",D=P&&F,W=N!==void 0,Z={status:M,fetchStatus:x.fetchStatus,isPending:P,isSuccess:M==="success",isError:j,isInitialLoading:D,isLoading:D,data:N,dataUpdatedAt:x.dataUpdatedAt,error:A,errorUpdatedAt:E,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:r.isFetched(),isFetchedAfterMount:x.dataUpdateCount>h.dataUpdateCount||x.errorUpdateCount>h.errorUpdateCount,isFetching:F,isRefetching:F&&!P,isLoadingError:j&&!W,isPaused:x.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:j&&W,isStale:xc(r,i),refetch:this.refetch,promise:S(this,xn),isEnabled:Dt(i.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const ce=Z.data!==void 0,X=Z.status==="error"&&!ce,Te=Ke=>{X?Ke.reject(Z.error):ce&&Ke.resolve(Z.data)},Be=()=>{const Ke=q(this,xn,Z.promise=$u());Te(Ke)},qe=S(this,xn);switch(qe.status){case"pending":r.queryHash===a.queryHash&&Te(qe);break;case"fulfilled":(X||Z.data!==qe.value)&&Be();break;case"rejected":(!X||Z.error!==qe.reason)&&Be();break}}return Z}updateResult(){const r=S(this,ht),i=this.createResult(S(this,me),this.options);if(q(this,Er,S(this,me).state),q(this,ki,this.options),S(this,Er).data!==void 0&&q(this,_i,S(this,me)),fa(i,r))return;q(this,ht,i);const a=()=>{if(!r)return!0;const{notifyOnChangeProps:u}=this.options,f=typeof u=="function"?u():u;if(f==="all"||!f&&!S(this,Ei).size)return!0;const m=new Set(f??S(this,Ei));return this.options.throwOnError&&m.add("error"),Object.keys(S(this,ht)).some(v=>{const g=v;return S(this,ht)[g]!==r[g]&&m.has(g)})};ue(this,Se,vm).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ue(this,Se,Wu).call(this)}},kt=new WeakMap,me=new WeakMap,Oo=new WeakMap,ht=new WeakMap,Er=new WeakMap,ki=new WeakMap,xn=new WeakMap,Yn=new WeakMap,Ao=new WeakMap,Ci=new WeakMap,_i=new WeakMap,Pr=new WeakMap,br=new WeakMap,Zn=new WeakMap,Ei=new WeakMap,Se=new WeakSet,Co=function(r){ue(this,Se,Ku).call(this);let i=S(this,me).fetch(this.options,r);return r!=null&&r.throwOnError||(i=i.catch(pt)),i},Uu=function(){ue(this,Se,Vu).call(this);const r=nr(this.options.staleTime,S(this,me));if(Eo.isServer()||S(this,ht).isStale||!Au(r))return;const a=lm(S(this,ht).dataUpdatedAt,r)+1;q(this,Pr,wr.setTimeout(()=>{S(this,ht).isStale||this.updateResult()},a))},Bu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,me)):this.options.refetchInterval)??!1},Hu=function(r){ue(this,Se,qu).call(this),q(this,Zn,r),!(Eo.isServer()||Dt(this.options.enabled,S(this,me))===!1||!Au(S(this,Zn))||S(this,Zn)===0)&&q(this,br,wr.setInterval(()=>{(this.options.refetchIntervalInBackground||vc.isFocused())&&ue(this,Se,Co).call(this)},S(this,Zn)))},Wu=function(){ue(this,Se,Uu).call(this),ue(this,Se,Hu).call(this,ue(this,Se,Bu).call(this))},Vu=function(){S(this,Pr)!==void 0&&(wr.clearTimeout(S(this,Pr)),q(this,Pr,void 0))},qu=function(){S(this,br)!==void 0&&(wr.clearInterval(S(this,br)),q(this,br,void 0))},Ku=function(){const r=S(this,kt).getQueryCache().build(S(this,kt),this.options);if(r===S(this,me))return;const i=S(this,me);q(this,me,r),q(this,Oo,r.state),this.hasListeners()&&(i==null||i.removeObserver(this),r.addObserver(this))},vm=function(r){Ve.batch(()=>{r.listeners&&this.listeners.forEach(i=>{i(S(this,ht))}),S(this,kt).getQueryCache().notify({query:S(this,me),type:"observerResultsUpdated"})})},tm);function Ow(t,r){return Dt(r.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&r.retryOnMount===!1)}function up(t,r){return Ow(t,r)||t.state.data!==void 0&&Qu(t,r,r.refetchOnMount)}function Qu(t,r,i){if(Dt(r.enabled,t)!==!1&&nr(r.staleTime,t)!=="static"){const a=typeof i=="function"?i(t):i;return a==="always"||a!==!1&&xc(t,r)}return!1}function cp(t,r,i,a){return(t!==r||Dt(a.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&xc(t,i)}function xc(t,r){return Dt(r.enabled,t)!==!1&&t.isStaleByTime(nr(r.staleTime,t))}function Aw(t,r){return!fa(t.getCurrentResult(),r)}function dp(t){return{onFetch:(r,i)=>{var y,x,C,N,A;const a=r.options,u=(C=(x=(y=r.fetchOptions)==null?void 0:y.meta)==null?void 0:x.fetchMore)==null?void 0:C.direction,f=((N=r.state.data)==null?void 0:N.pages)||[],m=((A=r.state.data)==null?void 0:A.pageParams)||[];let v={pages:[],pageParams:[]},g=0;const h=async()=>{let E=!1;const M=P=>{jw(P,()=>r.signal,()=>E=!0)},L=cm(r.options,r.fetchOptions),F=async(P,j,D)=>{if(E)return Promise.reject();if(j==null&&P.pages.length)return Promise.resolve(P);const te=(()=>{const X={client:r.client,queryKey:r.queryKey,pageParam:j,direction:D?"backward":"forward",meta:r.options.meta};return M(X),X})(),Z=await L(te),{maxPages:se}=r.options,ce=D?bw:Pw;return{pages:ce(P.pages,Z,se),pageParams:ce(P.pageParams,j,se)}};if(u&&f.length){const P=u==="backward",j=P?gm:Gu,D={pages:f,pageParams:m},W=j(a,D);v=await F(D,W,P)}else{const P=t??f.length;do{const j=g===0?m[0]??a.initialPageParam:Gu(a,v);if(g>0&&j==null)break;v=await F(v,j),g++}while(g<P)}return v};r.options.persister?r.fetchFn=()=>{var E,M;return(M=(E=r.options).persister)==null?void 0:M.call(E,h,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},i)}:r.fetchFn=h}}}function Gu(t,{pages:r,pageParams:i}){const a=r.length-1;return r.length>0?t.getNextPageParam(r[a],r,i[a],i):void 0}function gm(t,{pages:r,pageParams:i}){var a;return r.length>0?(a=t.getPreviousPageParam)==null?void 0:a.call(t,r[0],r,i[0],i):void 0}function pk(t,r){return r?Gu(t,r)!=null:!1}function mk(t,r){return!r||!t.getPreviousPageParam?!1:gm(t,r)!=null}var Do,en,at,jr,tn,qn,nm,Dw=(nm=class extends hm{constructor(r){super();ne(this,tn);ne(this,Do);ne(this,en);ne(this,at);ne(this,jr);q(this,Do,r.client),this.mutationId=r.mutationId,q(this,at,r.mutationCache),q(this,en,[]),this.state=r.state||ym(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){S(this,en).includes(r)||(S(this,en).push(r),this.clearGcTimeout(),S(this,at).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){q(this,en,S(this,en).filter(i=>i!==r)),this.scheduleGc(),S(this,at).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){S(this,en).length||(this.state.status==="pending"?this.scheduleGc():S(this,at).remove(this))}continue(){var r;return((r=S(this,jr))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var m,v,g,h,y,x,C,N,A,E,M,L,F,P,j,D,W,te;const i=()=>{ue(this,tn,qn).call(this,{type:"continue"})},a={client:S(this,Do),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,jr,fm({fn:()=>this.options.mutationFn?this.options.mutationFn(r,a):Promise.reject(new Error("No mutationFn found")),onFail:(Z,se)=>{ue(this,tn,qn).call(this,{type:"failed",failureCount:Z,error:se})},onPause:()=>{ue(this,tn,qn).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,at).canRun(this)}));const u=this.state.status==="pending",f=!S(this,jr).canStart();try{if(u)i();else{ue(this,tn,qn).call(this,{type:"pending",variables:r,isPaused:f}),S(this,at).config.onMutate&&await S(this,at).config.onMutate(r,this,a);const se=await((v=(m=this.options).onMutate)==null?void 0:v.call(m,r,a));se!==this.state.context&&ue(this,tn,qn).call(this,{type:"pending",context:se,variables:r,isPaused:f})}const Z=await S(this,jr).start();return await((h=(g=S(this,at).config).onSuccess)==null?void 0:h.call(g,Z,r,this.state.context,this,a)),await((x=(y=this.options).onSuccess)==null?void 0:x.call(y,Z,r,this.state.context,a)),await((N=(C=S(this,at).config).onSettled)==null?void 0:N.call(C,Z,null,this.state.variables,this.state.context,this,a)),await((E=(A=this.options).onSettled)==null?void 0:E.call(A,Z,null,r,this.state.context,a)),ue(this,tn,qn).call(this,{type:"success",data:Z}),Z}catch(Z){try{await((L=(M=S(this,at).config).onError)==null?void 0:L.call(M,Z,r,this.state.context,this,a))}catch(se){Promise.reject(se)}try{await((P=(F=this.options).onError)==null?void 0:P.call(F,Z,r,this.state.context,a))}catch(se){Promise.reject(se)}try{await((D=(j=S(this,at).config).onSettled)==null?void 0:D.call(j,void 0,Z,this.state.variables,this.state.context,this,a))}catch(se){Promise.reject(se)}try{await((te=(W=this.options).onSettled)==null?void 0:te.call(W,void 0,Z,r,this.state.context,a))}catch(se){Promise.reject(se)}throw ue(this,tn,qn).call(this,{type:"error",error:Z}),Z}finally{S(this,at).runNext(this)}}},Do=new WeakMap,en=new WeakMap,at=new WeakMap,jr=new WeakMap,tn=new WeakSet,qn=function(r){const i=a=>{switch(r.type){case"failed":return{...a,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...a,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:r.error,failureCount:a.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Ve.batch(()=>{S(this,en).forEach(a=>{a.onMutationUpdate(r)}),S(this,at).notify({mutation:this,type:"updated",action:r})})},nm);function ym(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Sn,qt,Fo,rm,Fw=(rm=class extends Ii{constructor(r={}){super();ne(this,Sn);ne(this,qt);ne(this,Fo);this.config=r,q(this,Sn,new Set),q(this,qt,new Map),q(this,Fo,0)}build(r,i,a){const u=new Dw({client:r,mutationCache:this,mutationId:++Ys(this,Fo)._,options:r.defaultMutationOptions(i),state:a});return this.add(u),u}add(r){S(this,Sn).add(r);const i=Xs(r);if(typeof i=="string"){const a=S(this,qt).get(i);a?a.push(r):S(this,qt).set(i,[r])}this.notify({type:"added",mutation:r})}remove(r){if(S(this,Sn).delete(r)){const i=Xs(r);if(typeof i=="string"){const a=S(this,qt).get(i);if(a)if(a.length>1){const u=a.indexOf(r);u!==-1&&a.splice(u,1)}else a[0]===r&&S(this,qt).delete(i)}}this.notify({type:"removed",mutation:r})}canRun(r){const i=Xs(r);if(typeof i=="string"){const a=S(this,qt).get(i),u=a==null?void 0:a.find(f=>f.state.status==="pending");return!u||u===r}else return!0}runNext(r){var a;const i=Xs(r);if(typeof i=="string"){const u=(a=S(this,qt).get(i))==null?void 0:a.find(f=>f!==r&&f.state.isPaused);return(u==null?void 0:u.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ve.batch(()=>{S(this,Sn).forEach(r=>{this.notify({type:"removed",mutation:r})}),S(this,Sn).clear(),S(this,qt).clear()})}getAll(){return Array.from(S(this,Sn))}find(r){const i={exact:!0,...r};return this.getAll().find(a=>ip(i,a))}findAll(r={}){return this.getAll().filter(i=>ip(r,i))}notify(r){Ve.batch(()=>{this.listeners.forEach(i=>{i(r)})})}resumePausedMutations(){const r=this.getAll().filter(i=>i.state.isPaused);return Ve.batch(()=>Promise.all(r.map(i=>i.continue().catch(pt))))}},Sn=new WeakMap,qt=new WeakMap,Fo=new WeakMap,rm);function Xs(t){var r;return(r=t.options.scope)==null?void 0:r.id}var kn,Xn,Ct,Cn,En,aa,Yu,im,$w=(im=class extends Ii{constructor(i,a){super();ne(this,En);ne(this,kn);ne(this,Xn);ne(this,Ct);ne(this,Cn);q(this,kn,i),this.setOptions(a),this.bindMethods(),ue(this,En,aa).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var u;const a=this.options;this.options=S(this,kn).defaultMutationOptions(i),fa(this.options,a)||S(this,kn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,Ct),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&Ir(a.mutationKey)!==Ir(this.options.mutationKey)?this.reset():((u=S(this,Ct))==null?void 0:u.state.status)==="pending"&&S(this,Ct).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=S(this,Ct))==null||i.removeObserver(this)}onMutationUpdate(i){ue(this,En,aa).call(this),ue(this,En,Yu).call(this,i)}getCurrentResult(){return S(this,Xn)}reset(){var i;(i=S(this,Ct))==null||i.removeObserver(this),q(this,Ct,void 0),ue(this,En,aa).call(this),ue(this,En,Yu).call(this)}mutate(i,a){var u;return q(this,Cn,a),(u=S(this,Ct))==null||u.removeObserver(this),q(this,Ct,S(this,kn).getMutationCache().build(S(this,kn),this.options)),S(this,Ct).addObserver(this),S(this,Ct).execute(i)}},kn=new WeakMap,Xn=new WeakMap,Ct=new WeakMap,Cn=new WeakMap,En=new WeakSet,aa=function(){var a;const i=((a=S(this,Ct))==null?void 0:a.state)??ym();q(this,Xn,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Yu=function(i){Ve.batch(()=>{var a,u,f,m,v,g,h,y;if(S(this,Cn)&&this.hasListeners()){const x=S(this,Xn).variables,C=S(this,Xn).context,N={client:S(this,kn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(u=(a=S(this,Cn)).onSuccess)==null||u.call(a,i.data,x,C,N)}catch(A){Promise.reject(A)}try{(m=(f=S(this,Cn)).onSettled)==null||m.call(f,i.data,null,x,C,N)}catch(A){Promise.reject(A)}}else if((i==null?void 0:i.type)==="error"){try{(g=(v=S(this,Cn)).onError)==null||g.call(v,i.error,x,C,N)}catch(A){Promise.reject(A)}try{(y=(h=S(this,Cn)).onSettled)==null||y.call(h,void 0,i.error,x,C,N)}catch(A){Promise.reject(A)}}}this.listeners.forEach(x=>{x(S(this,Xn))})})},im),nn,om,zw=(om=class extends Ii{constructor(r={}){super();ne(this,nn);this.config=r,q(this,nn,new Map)}build(r,i,a){const u=i.queryKey,f=i.queryHash??gc(u,i);let m=this.get(f);return m||(m=new Mw({client:r,queryKey:u,queryHash:f,options:r.defaultQueryOptions(i),state:a,defaultOptions:r.getQueryDefaults(u)}),this.add(m)),m}add(r){S(this,nn).has(r.queryHash)||(S(this,nn).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const i=S(this,nn).get(r.queryHash);i&&(r.destroy(),i===r&&S(this,nn).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){Ve.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return S(this,nn).get(r)}getAll(){return[...S(this,nn).values()]}find(r){const i={exact:!0,...r};return this.getAll().find(a=>rp(i,a))}findAll(r={}){const i=this.getAll();return Object.keys(r).length>0?i.filter(a=>rp(r,a)):i}notify(r){Ve.batch(()=>{this.listeners.forEach(i=>{i(r)})})}onFocus(){Ve.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Ve.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},nn=new WeakMap,om),Ae,Jn,er,Pi,bi,tr,ji,Ti,sm,Uw=(sm=class{constructor(t={}){ne(this,Ae);ne(this,Jn);ne(this,er);ne(this,Pi);ne(this,bi);ne(this,tr);ne(this,ji);ne(this,Ti);q(this,Ae,t.queryCache||new zw),q(this,Jn,t.mutationCache||new Fw),q(this,er,t.defaultOptions||{}),q(this,Pi,new Map),q(this,bi,new Map),q(this,tr,0)}mount(){Ys(this,tr)._++,S(this,tr)===1&&(q(this,ji,vc.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,Ae).onFocus())})),q(this,Ti,ha.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,Ae).onOnline())})))}unmount(){var t,r;Ys(this,tr)._--,S(this,tr)===0&&((t=S(this,ji))==null||t.call(this),q(this,ji,void 0),(r=S(this,Ti))==null||r.call(this),q(this,Ti,void 0))}isFetching(t){return S(this,Ae).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return S(this,Jn).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const r=this.defaultQueryOptions({queryKey:t});return(i=S(this,Ae).get(r.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),i=S(this,Ae).build(this,r),a=i.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(nr(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(a))}getQueriesData(t){return S(this,Ae).findAll(t).map(({queryKey:r,state:i})=>{const a=i.data;return[r,a]})}setQueryData(t,r,i){const a=this.defaultQueryOptions({queryKey:t}),u=S(this,Ae).get(a.queryHash),f=u==null?void 0:u.state.data,m=Cw(r,f);if(m!==void 0)return S(this,Ae).build(this,a).setData(m,{...i,manual:!0})}setQueriesData(t,r,i){return Ve.batch(()=>S(this,Ae).findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,r,i)]))}getQueryState(t){var i;const r=this.defaultQueryOptions({queryKey:t});return(i=S(this,Ae).get(r.queryHash))==null?void 0:i.state}removeQueries(t){const r=S(this,Ae);Ve.batch(()=>{r.findAll(t).forEach(i=>{r.remove(i)})})}resetQueries(t,r){const i=S(this,Ae);return Ve.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const i={revert:!0,...r},a=Ve.batch(()=>S(this,Ae).findAll(t).map(u=>u.cancel(i)));return Promise.all(a).then(pt).catch(pt)}invalidateQueries(t,r={}){return Ve.batch(()=>(S(this,Ae).findAll(t).forEach(i=>{i.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},r)))}refetchQueries(t,r={}){const i={...r,cancelRefetch:r.cancelRefetch??!0},a=Ve.batch(()=>S(this,Ae).findAll(t).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,i);return i.throwOnError||(f=f.catch(pt)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(a).then(pt)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const i=S(this,Ae).build(this,r);return i.isStaleByTime(nr(r.staleTime,i))?i.fetch(r):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(pt).catch(pt)}fetchInfiniteQuery(t){return t.behavior=dp(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(pt).catch(pt)}ensureInfiniteQueryData(t){return t.behavior=dp(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return ha.isOnline()?S(this,Jn).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Ae)}getMutationCache(){return S(this,Jn)}getDefaultOptions(){return S(this,er)}setDefaultOptions(t){q(this,er,t)}setQueryDefaults(t,r){S(this,Pi).set(Ir(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...S(this,Pi).values()],i={};return r.forEach(a=>{_o(t,a.queryKey)&&Object.assign(i,a.defaultOptions)}),i}setMutationDefaults(t,r){S(this,bi).set(Ir(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...S(this,bi).values()],i={};return r.forEach(a=>{_o(t,a.mutationKey)&&Object.assign(i,a.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const r={...S(this,er).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=gc(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===yc&&(r.enabled=!1),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...S(this,er).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){S(this,Ae).clear(),S(this,Jn).clear()}},Ae=new WeakMap,Jn=new WeakMap,er=new WeakMap,Pi=new WeakMap,bi=new WeakMap,tr=new WeakMap,ji=new WeakMap,Ti=new WeakMap,sm),wm=I.createContext(void 0),rr=t=>{const r=I.useContext(wm);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Bw=({client:t,children:r})=>(I.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),d.jsx(wm.Provider,{value:t,children:r})),xm=I.createContext(!1),Hw=()=>I.useContext(xm);xm.Provider;function Ww(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Vw=I.createContext(Ww()),qw=()=>I.useContext(Vw),Kw=(t,r,i)=>{const a=i!=null&&i.state.error&&typeof t.throwOnError=="function"?wc(t.throwOnError,[i.state.error,i]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||a)&&(r.isReset()||(t.retryOnMount=!1))},Qw=t=>{I.useEffect(()=>{t.clearReset()},[t])},Gw=({result:t,errorResetBoundary:r,throwOnError:i,query:a,suspense:u})=>t.isError&&!r.isReset()&&!t.isFetching&&a&&(u&&t.data===void 0||wc(i,[t.error,a])),Yw=t=>{if(t.suspense){const i=u=>u==="static"?u:Math.max(u??1e3,1e3),a=t.staleTime;t.staleTime=typeof a=="function"?(...u)=>i(a(...u)):i(a),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Zw=(t,r)=>t.isLoading&&t.isFetching&&!r,Xw=(t,r)=>(t==null?void 0:t.suspense)&&r.isPending,fp=(t,r,i)=>r.fetchOptimistic(t).catch(()=>{i.clearReset()});function Jw(t,r,i){var C,N,A,E;const a=Hw(),u=qw(),f=rr(),m=f.defaultQueryOptions(t);(N=(C=f.getDefaultOptions().queries)==null?void 0:C._experimental_beforeQuery)==null||N.call(C,m);const v=f.getQueryCache().get(m.queryHash);m._optimisticResults=a?"isRestoring":"optimistic",Yw(m),Kw(m,u,v),Qw(u);const g=!f.getQueryCache().get(m.queryHash),[h]=I.useState(()=>new r(f,m)),y=h.getOptimisticResult(m),x=!a&&t.subscribed!==!1;if(I.useSyncExternalStore(I.useCallback(M=>{const L=x?h.subscribe(Ve.batchCalls(M)):pt;return h.updateResult(),L},[h,x]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),I.useEffect(()=>{h.setOptions(m)},[m,h]),Xw(m,y))throw fp(m,h,u);if(Gw({result:y,errorResetBoundary:u,throwOnError:m.throwOnError,query:v,suspense:m.suspense}))throw y.error;if((E=(A=f.getDefaultOptions().queries)==null?void 0:A._experimental_afterQuery)==null||E.call(A,m,y),m.experimental_prefetchInRender&&!Eo.isServer()&&Zw(y,a)){const M=g?fp(m,h,u):v==null?void 0:v.promise;M==null||M.catch(pt).finally(()=>{h.updateResult()})}return m.notifyOnChangeProps?y:h.trackResult(y)}function De(t,r){return Jw(t,Lw)}function e1(t,r){const i=rr(),[a]=I.useState(()=>new $w(i,t));I.useEffect(()=>{a.setOptions(t)},[a,t]);const u=I.useSyncExternalStore(I.useCallback(m=>a.subscribe(Ve.batchCalls(m)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),f=I.useCallback((m,v)=>{a.mutate(m,v).catch(pt)},[a]);if(u.error&&wc(a.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:f,mutateAsync:u.mutate}}var t1=am();function n1(){return d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[d.jsx("circle",{cx:"12",cy:"5",r:"1.7"}),d.jsx("circle",{cx:"12",cy:"12",r:"1.7"}),d.jsx("circle",{cx:"12",cy:"19",r:"1.7"})]})}const r1=176;function i1(){return d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:d.jsx("path",{d:"M20 6 9 17l-5-5"})})}function o1({label:t,items:r,trigger:i,className:a,triggerStyle:u="icon",align:f="end",width:m=r1}){const v=r.filter(Boolean),[g,h]=I.useState(!1),[y,x]=I.useState({}),C=I.useRef(null),N=I.useRef(null),A=I.useId(),E=I.useCallback(L=>{var F;h(!1),L&&((F=C.current)==null||F.focus())},[]);if(I.useLayoutEffect(()=>{var W,te;if(!g||!C.current)return;const L=C.current.getBoundingClientRect(),F=v.reduce((Z,se)=>Z+(se.description?50:34),10),P=L.bottom+4+F<=window.innerHeight,j=Math.max(8,Math.min(f==="start"?L.left:L.right-m,window.innerWidth-m-8));x(P?{top:L.bottom+4,left:j}:{top:Math.max(8,L.top-4-F),left:j});const D=((W=N.current)==null?void 0:W.querySelector('[aria-checked="true"]:not([disabled])'))??((te=N.current)==null?void 0:te.querySelector('[role^="menuitem"]:not([disabled])'));D==null||D.focus()},[g,v.length]),I.useEffect(()=>{if(!g)return;const L=P=>{var D,W;const j=P.target;(D=N.current)!=null&&D.contains(j)||(W=C.current)!=null&&W.contains(j)||E(!1)},F=()=>E(!1);return document.addEventListener("mousedown",L),window.addEventListener("resize",F),window.addEventListener("scroll",F,!0),()=>{document.removeEventListener("mousedown",L),window.removeEventListener("resize",F),window.removeEventListener("scroll",F,!0)}},[g,E]),v.length===0)return null;function M(L){var j,D,W,te,Z;const F=[...((j=N.current)==null?void 0:j.querySelectorAll('[role^="menuitem"]:not([disabled])'))??[]],P=F.indexOf(document.activeElement);L.key==="Escape"?(L.preventDefault(),L.stopPropagation(),E(!0)):L.key==="ArrowDown"?(L.preventDefault(),(D=F[(P+1)%F.length])==null||D.focus()):L.key==="ArrowUp"?(L.preventDefault(),(W=F[(P-1+F.length)%F.length])==null||W.focus()):L.key==="Home"?(L.preventDefault(),(te=F[0])==null||te.focus()):L.key==="End"?(L.preventDefault(),(Z=F[F.length-1])==null||Z.focus()):L.key==="Tab"&&E(!1)}return d.jsxs(d.Fragment,{children:[d.jsx("button",{ref:C,type:"button",className:[u==="icon"?"as-icon-button":null,"as-action-menu__trigger",a].filter(Boolean).join(" "),"aria-label":t,title:u==="icon"?t:void 0,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?A:void 0,onClick:L=>{L.stopPropagation(),h(F=>!F)},onKeyDown:L=>{L.key==="ArrowDown"&&!g&&(L.preventDefault(),h(!0))},children:i??d.jsx(n1,{})}),g&&typeof document<"u"&&t1.createPortal(d.jsx("div",{ref:N,id:A,role:"menu","aria-label":t,className:"as-action-menu",style:{...y,width:m},onKeyDown:M,onClick:L=>L.stopPropagation(),children:v.map((L,F)=>d.jsxs("button",{type:"button",role:L.checked===void 0?"menuitem":"menuitemradio","aria-checked":L.checked,tabIndex:-1,disabled:L.disabled,className:["as-action-menu__item",L.tone==="danger"?"as-action-menu__item--danger":null,L.checked!==void 0?"as-action-menu__item--choice":null].filter(Boolean).join(" "),onClick:()=>{E(!0),L.onSelect()},children:[L.checked!==void 0&&d.jsx("span",{className:"as-action-menu__check",children:L.checked?d.jsx(i1,{}):null}),d.jsxs("span",{className:"as-action-menu__text",children:[d.jsx("span",{className:"as-action-menu__label",children:L.label}),L.description&&d.jsx("span",{className:"as-action-menu__description",children:L.description})]})]},F))}),document.body)]})}function lt({action:t,children:r,className:i,title:a,tone:u="info",...f}){const m=["as-alert",`as-alert--${u}`,i].filter(Boolean).join(" ");return d.jsxs("div",{className:m,role:u==="danger"||u==="warning"?"alert":"status",...f,children:[d.jsx("div",{className:"as-alert__mark","aria-hidden":"true"}),d.jsxs("div",{className:"as-alert__content",children:[a&&d.jsx("div",{className:"as-alert__title",children:a}),d.jsx("div",{className:"as-alert__body",children:r})]}),t&&d.jsx("div",{className:"as-alert__action",children:t})]})}function Sm({tone:t="neutral",children:r,className:i,...a}){return d.jsx("span",{className:["as-badge",`as-badge--${t}`,i].filter(Boolean).join(" "),...a,children:r})}function Le({children:t,className:r,fullWidth:i=!1,leadingIcon:a,size:u="md",trailingIcon:f,type:m="button",variant:v="primary",href:g,download:h,target:y,rel:x,...C}){const N=["as-button",`as-button--${v}`,`as-button--${u}`,i?"as-button--full":null,r].filter(Boolean).join(" "),A=d.jsxs(d.Fragment,{children:[a&&d.jsx("span",{className:"as-button__icon","aria-hidden":"true",children:a}),d.jsx("span",{className:"as-button__label",children:t}),f&&d.jsx("span",{className:"as-button__icon","aria-hidden":"true",children:f})]});if(g!==void 0&&!C.disabled){const{disabled:E,form:M,formAction:L,formEncType:F,formMethod:P,formNoValidate:j,formTarget:D,name:W,value:te,...Z}=C,se=y==="_blank"?x??"noopener noreferrer":x;return d.jsx("a",{...Z,className:N,href:g,download:h,target:y,rel:se,children:A})}return d.jsx("button",{type:m,className:N,...C,children:A})}function Sc({children:t,className:r,tone:i="surface",...a}){const u=["as-card",`as-card--${i}`,r].filter(Boolean).join(" ");return d.jsx("div",{className:u,...a,children:t})}function s1(t,r){if(t==null)return{};var i={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(r.indexOf(a)!==-1)continue;i[a]=t[a]}return i}function Po(){return Po=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var a in i)({}).hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},Po.apply(null,arguments)}var Zu="data-focus-lock",km="data-focus-lock-disabled",a1="data-no-focus-lock",l1="data-autofocus-inside",u1="data-no-autofocus";function _u(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function c1(t,r){var i=I.useState(function(){return{value:t,callback:r,facade:{get current(){return i.value},set current(a){var u=i.value;u!==a&&(i.value=a,i.callback(a,u))}}}})[0];return i.callback=r,i.facade}var d1=typeof window<"u"?I.useLayoutEffect:I.useEffect,hp=new WeakMap;function Cm(t,r){var i=c1(null,function(a){return t.forEach(function(u){return _u(u,a)})});return d1(function(){var a=hp.get(i);if(a){var u=new Set(a),f=new Set(t),m=i.current;u.forEach(function(v){f.has(v)||_u(v,null)}),f.forEach(function(v){u.has(v)||_u(v,m)})}hp.set(i,t)},[t]),i}var Eu={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},rn=function(){return rn=Object.assign||function(r){for(var i,a=1,u=arguments.length;a<u;a++){i=arguments[a];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(r[f]=i[f])}return r},rn.apply(this,arguments)};function _m(t,r){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,a=Object.getOwnPropertySymbols(t);u<a.length;u++)r.indexOf(a[u])<0&&Object.prototype.propertyIsEnumerable.call(t,a[u])&&(i[a[u]]=t[a[u]]);return i}function f1(t,r,i){if(i||arguments.length===2)for(var a=0,u=r.length,f;a<u;a++)(f||!(a in r))&&(f||(f=Array.prototype.slice.call(r,0,a)),f[a]=r[a]);return t.concat(f||Array.prototype.slice.call(r))}function Em(t){return t}function Pm(t,r){r===void 0&&(r=Em);var i=[],a=!1,u={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:t},useMedium:function(f){var m=r(f,a);return i.push(m),function(){i=i.filter(function(v){return v!==m})}},assignSyncMedium:function(f){for(a=!0;i.length;){var m=i;i=[],m.forEach(f)}i={push:function(v){return f(v)},filter:function(){return i}}},assignMedium:function(f){a=!0;var m=[];if(i.length){var v=i;i=[],v.forEach(f),m=i}var g=function(){var y=m;m=[],y.forEach(f)},h=function(){return Promise.resolve().then(g)};h(),i={push:function(y){m.push(y),h()},filter:function(y){return m=m.filter(y),i}}}};return u}function kc(t,r){return r===void 0&&(r=Em),Pm(t,r)}function bm(t){t===void 0&&(t={});var r=Pm(null);return r.options=rn({async:!0,ssr:!1},t),r}var jm=function(t){var r=t.sideCar,i=_m(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=r.read();if(!a)throw new Error("Sidecar medium not found");return I.createElement(a,rn({},i))};jm.isSideCarExport=!0;function h1(t,r){return t.useMedium(r),jm}var Tm=kc({},function(t){var r=t.target,i=t.currentTarget;return{target:r,currentTarget:i}}),Rm=kc(),p1=kc(),m1=bm({async:!0,ssr:typeof document<"u"}),v1=I.createContext(void 0),g1=[],Cc=I.forwardRef(function(r,i){var a,u=I.useState(),f=u[0],m=u[1],v=I.useRef(),g=I.useRef(!1),h=I.useRef(null),y=I.useState({}),x=y[1],C=r.children,N=r.disabled,A=N===void 0?!1:N,E=r.noFocusGuards,M=E===void 0?!1:E,L=r.persistentFocus,F=L===void 0?!1:L,P=r.crossFrame,j=P===void 0?!0:P,D=r.autoFocus,W=D===void 0?!0:D;r.allowTextSelection;var te=r.group,Z=r.className,se=r.whiteList,ce=r.hasPositiveIndices,X=r.shards,Te=X===void 0?g1:X,Be=r.as,qe=Be===void 0?"div":Be,Ke=r.lockProps,nt=Ke===void 0?{}:Ke,Re=r.sideCar,V=r.returnFocus,re=V===void 0?!1:V,Q=r.focusOptions,b=r.onActivation,$=r.onDeactivation,le=I.useState({}),de=le[0],ve=I.useCallback(function(Tt){var Kt=Tt.captureFocusRestore;if(!h.current){var un,Ft=(un=document)==null?void 0:un.activeElement;h.current=Ft,Ft!==document.body&&(h.current=Kt(Ft))}v.current&&b&&b(v.current),g.current=!0,x()},[b]),ge=I.useCallback(function(){g.current=!1,$&&$(v.current),x()},[$]),Ce=I.useCallback(function(Tt){var Kt=h.current;if(Kt){var un=(typeof Kt=="function"?Kt():Kt)||document.body,Ft=typeof re=="function"?re(un):re;if(Ft){var Pn=typeof Ft=="object"?Ft:void 0;h.current=null,Tt?Promise.resolve().then(function(){return un.focus(Pn)}):un.focus(Pn)}}},[re]),xe=I.useCallback(function(Tt){g.current&&Tm.useMedium(Tt)},[]),_e=Rm.useMedium,ct=I.useCallback(function(Tt){v.current!==Tt&&(v.current=Tt,m(Tt))},[]),Or=Po((a={},a[km]=A&&"disabled",a[Zu]=te,a),nt),Mi=M!==!0,Ar=Mi&&M!=="tail",Li=Cm([i,ct]),Uo=I.useMemo(function(){return{observed:v,shards:Te,enabled:!A,get active(){return g.current}}},[A,g,Te,v]);return Jt.createElement(I.Fragment,null,Mi&&[Jt.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:A?-1:0,style:Eu}),ce?Jt.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:A?-1:1,style:Eu}):null],!A&&Jt.createElement(Re,{id:de,sideCar:m1,observed:f,disabled:A,persistentFocus:F,crossFrame:j,autoFocus:W,whiteList:se,shards:Te,onActivation:ve,onDeactivation:ge,returnFocus:Ce,focusOptions:Q,noFocusGuards:M}),Jt.createElement(qe,Po({ref:Li},Or,{className:Z,onBlur:_e,onFocus:xe}),Jt.createElement(v1.Provider,{value:Uo},C)),Ar&&Jt.createElement("div",{"data-focus-guard":!0,tabIndex:A?-1:0,style:Eu}))});Cc.propTypes={};function Xu(t,r){return Xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},Xu(t,r)}function y1(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,Xu(t,r)}function bo(t){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bo(t)}function w1(t,r){if(bo(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var a=i.call(t,r);if(bo(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function x1(t){var r=w1(t,"string");return bo(r)=="symbol"?r:r+""}function S1(t,r,i){return(r=x1(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function k1(t,r){function i(a){return a.displayName||a.name||"Component"}return function(u){var f=[],m;function v(){m=t(f.map(function(h){return h.props})),r(m)}var g=(function(h){y1(y,h);function y(){return h.apply(this,arguments)||this}y.peek=function(){return m};var x=y.prototype;return x.componentDidMount=function(){f.push(this),v()},x.componentDidUpdate=function(){v()},x.componentWillUnmount=function(){var N=f.indexOf(this);f.splice(N,1),v()},x.render=function(){return Jt.createElement(u,this.props)},y})(I.PureComponent);return S1(g,"displayName","SideEffect("+i(u)+")"),g}}var ln=function(t){for(var r=Array(t.length),i=0;i<t.length;++i)r[i]=t[i];return r},Mr=function(t){return Array.isArray(t)?t:[t]},Nm=function(t){return Array.isArray(t)?t[0]:t},C1=function(t){if(t.nodeType!==Node.ELEMENT_NODE)return!1;var r=window.getComputedStyle(t,null);return!r||!r.getPropertyValue?!1:r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"},Im=function(t){return t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.parentNode.host:t.parentNode},Mm=function(t){return t===document||t&&t.nodeType===Node.DOCUMENT_NODE},_1=function(t){return t.hasAttribute("inert")},E1=function(t,r){return!t||Mm(t)||!C1(t)&&!_1(t)&&r(Im(t))},Lm=function(t,r){var i=t.get(r);if(i!==void 0)return i;var a=E1(r,Lm.bind(void 0,t));return t.set(r,a),a},P1=function(t,r){return t&&!Mm(t)?T1(t)?r(Im(t)):!1:!0},Om=function(t,r){var i=t.get(r);if(i!==void 0)return i;var a=P1(r,Om.bind(void 0,t));return t.set(r,a),a},Am=function(t){return t.dataset},b1=function(t){return t.tagName==="BUTTON"},Dm=function(t){return t.tagName==="INPUT"},Fm=function(t){return Dm(t)&&t.type==="radio"},j1=function(t){return!((Dm(t)||b1(t))&&(t.type==="hidden"||t.disabled))},T1=function(t){var r=t.getAttribute(u1);return![!0,"true",""].includes(r)},_c=function(t){var r;return!!(t&&(!((r=Am(t))===null||r===void 0)&&r.focusGuard))},Ju=function(t){return!_c(t)},R1=function(t){return!!t},N1=function(t,r){var i=Math.max(0,t.tabIndex),a=Math.max(0,r.tabIndex),u=i-a,f=t.index-r.index;if(u){if(!i)return 1;if(!a)return-1}return u||f},I1=function(t){return t.tabIndex<0&&!t.hasAttribute("tabindex")?0:t.tabIndex},Ec=function(t,r,i){return ln(t).map(function(a,u){var f=I1(a);return{node:a,index:u,tabIndex:i&&f===-1?(a.dataset||{}).focusGuard?0:-1:f}}).filter(function(a){return!r||a.tabIndex>=0}).sort(N1)},M1=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Pc=M1.join(","),L1="".concat(Pc,", [data-focus-guard]"),$m=function(t,r){return ln((t.shadowRoot||t).children).reduce(function(i,a){return i.concat(a.matches(r?L1:Pc)?[a]:[],$m(a))},[])},O1=function(t,r){var i;return t instanceof HTMLIFrameElement&&(!((i=t.contentDocument)===null||i===void 0)&&i.body)?Ri([t.contentDocument.body],r):[t]},Ri=function(t,r){return t.reduce(function(i,a){var u,f=$m(a,r),m=(u=[]).concat.apply(u,f.map(function(v){return O1(v,r)}));return i.concat(m,a.parentNode?ln(a.parentNode.querySelectorAll(Pc)).filter(function(v){return v===a}):[])},[])},A1=function(t){var r=t.querySelectorAll("[".concat(l1,"]"));return ln(r).map(function(i){return Ri([i])}).reduce(function(i,a){return i.concat(a)},[])},bc=function(t,r){return ln(t).filter(function(i){return Lm(r,i)}).filter(function(i){return j1(i)})},pp=function(t,r){return r===void 0&&(r=new Map),ln(t).filter(function(i){return Om(r,i)})},jc=function(t,r,i){return Ec(bc(Ri(t,i),r),!0,i)},jo=function(t,r){return Ec(bc(Ri(t),r),!1)},D1=function(t,r){return bc(A1(t),r)},Tr=function(t,r){return t.shadowRoot?Tr(t.shadowRoot,r):Object.getPrototypeOf(t).contains!==void 0&&Object.getPrototypeOf(t).contains.call(t,r)?!0:ln(t.children).some(function(i){var a;if(i instanceof HTMLIFrameElement){var u=(a=i.contentDocument)===null||a===void 0?void 0:a.body;return u?Tr(u,r):!1}return Tr(i,r)})},F1=function(t){for(var r=new Set,i=t.length,a=0;a<i;a+=1)for(var u=a+1;u<i;u+=1){var f=t[a].compareDocumentPosition(t[u]);(f&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&r.add(u),(f&Node.DOCUMENT_POSITION_CONTAINS)>0&&r.add(a)}return t.filter(function(m,v){return!r.has(v)})},zm=function(t){return t.parentNode?zm(t.parentNode):t},Tc=function(t){var r=Mr(t);return r.filter(Boolean).reduce(function(i,a){var u=a.getAttribute(Zu);return i.push.apply(i,u?F1(ln(zm(a).querySelectorAll("[".concat(Zu,'="').concat(u,'"]:not([').concat(km,'="disabled"])')))):[a]),i},[])},$1=function(t){try{return t()}catch{return}},To=function(t){if(t===void 0&&(t=document),!(!t||!t.activeElement)){var r=t.activeElement;return r.shadowRoot?To(r.shadowRoot):r instanceof HTMLIFrameElement&&$1(function(){return r.contentWindow.document})?To(r.contentWindow.document):r}},z1=function(t,r){return t===r},U1=function(t,r){return!!ln(t.querySelectorAll("iframe")).some(function(i){return z1(i,r)})},Um=function(t,r){return r===void 0&&(r=To(Nm(t).ownerDocument)),!r||r.dataset&&r.dataset.focusGuard?!1:Tc(t).some(function(i){return Tr(i,r)||U1(i,r)})},B1=function(t){t===void 0&&(t=document);var r=To(t);return r?ln(t.querySelectorAll("[".concat(a1,"]"))).some(function(i){return Tr(i,r)}):!1},H1=function(t,r){return r.filter(Fm).filter(function(i){return i.name===t.name}).filter(function(i){return i.checked})[0]||t},Rc=function(t,r){return Fm(t)&&t.name?H1(t,r):t},W1=function(t){var r=new Set;return t.forEach(function(i){return r.add(Rc(i,t))}),t.filter(function(i){return r.has(i)})},mp=function(t){return t[0]&&t.length>1?Rc(t[0],t):t[0]},vp=function(t,r){return t.indexOf(Rc(r,t))},ec="NEW_FOCUS",V1=function(t,r,i,a,u){var f=t.length,m=t[0],v=t[f-1],g=_c(a);if(!(a&&t.indexOf(a)>=0)){var h=a!==void 0?i.indexOf(a):-1,y=u?i.indexOf(u):h,x=u?t.indexOf(u):-1;if(h===-1)return x!==-1?x:ec;if(x===-1)return ec;var C=h-y,N=i.indexOf(m),A=i.indexOf(v),E=W1(i),M=a!==void 0?E.indexOf(a):-1,L=u?E.indexOf(u):M,F=E.filter(function(Z){return Z.tabIndex>=0}),P=a!==void 0?F.indexOf(a):-1,j=u?F.indexOf(u):P,D=P>=0&&j>=0?j-P:L-M;if(!C&&x>=0||r.length===0)return x;var W=vp(t,r[0]),te=vp(t,r[r.length-1]);if(h<=N&&g&&Math.abs(C)>1)return te;if(h>=A&&g&&Math.abs(C)>1)return W;if(C&&Math.abs(D)>1)return x;if(h<=N)return te;if(h>A)return W;if(C)return Math.abs(C)>1?x:(f+x+C)%f}},q1=function(t){return function(r){var i,a=(i=Am(r))===null||i===void 0?void 0:i.autofocus;return r.autofocus||a!==void 0&&a!=="false"||t.indexOf(r)>=0}},gp=function(t,r,i){var a=t.map(function(f){var m=f.node;return m}),u=pp(a.filter(q1(i)));return u&&u.length?mp(u):mp(pp(r))},tc=function(t,r){return r===void 0&&(r=[]),r.push(t),t.parentNode&&tc(t.parentNode.host||t.parentNode,r),r},Pu=function(t,r){for(var i=tc(t),a=tc(r),u=0;u<i.length;u+=1){var f=i[u];if(a.indexOf(f)>=0)return f}return!1},Bm=function(t,r,i){var a=Mr(t),u=Mr(r),f=a[0],m=!1;return u.filter(Boolean).forEach(function(v){m=Pu(m||v,v)||m,i.filter(Boolean).forEach(function(g){var h=Pu(f,g);h&&(!m||Tr(h,m)?m=h:m=Pu(h,m))})}),m},yp=function(t,r){return t.reduce(function(i,a){return i.concat(D1(a,r))},[])},K1=function(t,r){var i=new Map;return r.forEach(function(a){return i.set(a.node,a)}),t.map(function(a){return i.get(a)}).filter(R1)},Q1=function(t,r){var i=To(Mr(t).length>0?document:Nm(t).ownerDocument),a=Tc(t).filter(Ju),u=Bm(i||t,t,a),f=new Map,m=jo(a,f),v=m.filter(function(A){var E=A.node;return Ju(E)});if(v[0]){var g=jo([u],f).map(function(A){var E=A.node;return E}),h=K1(g,v),y=h.map(function(A){var E=A.node;return E}),x=h.filter(function(A){var E=A.tabIndex;return E>=0}).map(function(A){var E=A.node;return E}),C=V1(y,x,g,i,r);if(C===ec){var N=gp(m,x,yp(a,f))||gp(m,y,yp(a,f));if(N)return{node:N};console.warn("focus-lock: cannot find any node to move focus into");return}return C===void 0?C:h[C]}},G1=function(t){var r=Tc(t).filter(Ju),i=Bm(t,t,r),a=Ec(Ri([i],!0),!0,!0),u=Ri(r,!1);return a.map(function(f){var m=f.node,v=f.index;return{node:m,index:v,lockItem:u.indexOf(m)>=0,guard:_c(m)}})},Nc=function(t,r){t&&("focus"in t&&t.focus(r),"contentWindow"in t&&t.contentWindow&&t.contentWindow.focus())},bu=0,ju=!1,Hm=function(t,r,i){i===void 0&&(i={});var a=Q1(t,r);if(!ju&&a){if(bu>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ju=!0,setTimeout(function(){ju=!1},1);return}bu++,Nc(a.node,i.focusOptions),bu--}};function So(t){if(!t)return null;if(typeof WeakRef>"u")return function(){return t||null};var r=t?new WeakRef(t):null;return function(){return(r==null?void 0:r.deref())||null}}var Y1=function(t){if(!t)return null;for(var r=[],i=t;i&&i!==document.body;)r.push({current:So(i),parent:So(i.parentElement),left:So(i.previousElementSibling),right:So(i.nextElementSibling)}),i=i.parentElement;return{element:So(t),stack:r,ownerDocument:t.ownerDocument}},Z1=function(t){var r,i,a,u,f;if(t)for(var m=t.stack,v=t.ownerDocument,g=new Map,h=0,y=m;h<y.length;h++){var x=y[h],C=(r=x.parent)===null||r===void 0?void 0:r.call(x);if(C&&v.contains(C)){for(var N=(i=x.left)===null||i===void 0?void 0:i.call(x),A=x.current(),E=C.contains(A)?A:void 0,M=(a=x.right)===null||a===void 0?void 0:a.call(x),L=jc([C],g),F=(f=(u=E??(N==null?void 0:N.nextElementSibling))!==null&&u!==void 0?u:M)!==null&&f!==void 0?f:N;F;){for(var P=0,j=L;P<j.length;P++){var D=j[P];if(F!=null&&F.contains(D.node))return D.node}F=F.nextElementSibling}if(L.length)return L[0].node}}},Wm=function(t){var r=Y1(t);return function(){return Z1(r)}},X1=function(t,r,i){if(!t||!r)return console.error("no element or scope given"),{};var a=Mr(r);if(a.every(function(m){return!Tr(m,t)}))return console.error("Active element is not contained in the scope"),{};var u=i?jc(a,new Map):jo(a,new Map),f=u.findIndex(function(m){var v=m.node;return v===t});if(f!==-1)return{prev:u[f-1],next:u[f+1],first:u[0],last:u[u.length-1]}},J1=function(t,r){var i=r?jc(Mr(t),new Map):jo(Mr(t),new Map);return{first:i[0],last:i[i.length-1]}},e0=function(t){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},t)},Vm=function(t,r,i){r===void 0&&(r={});var a=e0(r),u=X1(t,a.scope,a.onlyTabbable);if(u){var f=i(u,a.cycle);f&&Nc(f.node,a.focusOptions)}},t0=function(t,r){r===void 0&&(r={}),Vm(t,r,function(i,a){var u=i.next,f=i.first;return u||a&&f})},n0=function(t,r){r===void 0&&(r={}),Vm(t,r,function(i,a){var u=i.prev,f=i.last;return u||a&&f})},qm=function(t,r,i){var a,u=J1(t,(a=r.onlyTabbable)!==null&&a!==void 0?a:!0),f=u[i];f&&Nc(f.node,r.focusOptions)},r0=function(t,r){r===void 0&&(r={}),qm(t,r,"first")},i0=function(t,r){r===void 0&&(r={}),qm(t,r,"last")};function Ic(t){setTimeout(t,1)}var o0=function(r){return r&&"current"in r?r.current:r},Km=function(){return document&&document.activeElement===document.body},s0=function(){return Km()||B1()},pi=null,St=null,wp=function(){return null},mi=null,Ro=!1,Mc=!1,a0=function(){return!0},l0=function(r){return(pi.whiteList||a0)(r)},u0=function(r,i){mi={observerNode:r,portaledElement:i}},c0=function(r){return mi&&mi.portaledElement===r};function xp(t,r,i,a){var u=null,f=t;do{var m=a[f];if(m.guard)m.node.dataset.focusAutoGuard&&(u=m);else if(m.lockItem){if(f!==t)return;u=null}else break}while((f+=i)!==r);u&&(u.node.tabIndex=0)}var d0=function(r){return r?!!Ro:Ro==="meanwhile"},f0=function t(r,i,a){return i&&(i.host===r&&(!i.activeElement||a.contains(i.activeElement))||i.parentNode&&t(r,i.parentNode,a))},h0=function(r,i){return i.some(function(a){return f0(r,a,a)})},Qm=function(r){return jo(r,new Map)},p0=function(r){return!Qm([r.parentNode]).some(function(i){return i.node===r})},pa=function(){var r=!1;if(pi){var i=pi,a=i.observed,u=i.persistentFocus,f=i.autoFocus,m=i.shards,v=i.crossFrame,g=i.focusOptions,h=i.noFocusGuards,y=a||mi&&mi.portaledElement;if(Km()&&St&&St!==document.body&&(!document.body.contains(St)||p0(St))){var x=wp();x&&x.focus()}var C=document&&document.activeElement;if(y){var N=[y].concat(m.map(o0).filter(Boolean)),A=function(){if(!d0(v)||!h||!St||Mc)return!1;var P=Qm(N),j=P.findIndex(function(D){var W=D.node;return W===St});return j===0||j===P.length-1};if((!C||l0(C))&&(u||A()||!s0()||!St&&f)&&(y&&!(Um(N)||C&&h0(C,N)||c0(C))&&(document&&!St&&C&&!f?(C.blur&&C.blur(),document.body.focus()):(r=Hm(N,St,{focusOptions:g}),mi={})),St=document&&document.activeElement,St!==document.body&&(wp=Wm(St)),Ro=!1),document&&C!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var E=document&&document.activeElement,M=G1(N),L=M.map(function(F){var P=F.node;return P}).indexOf(E);L>-1&&(M.filter(function(F){var P=F.guard,j=F.node;return P&&j.dataset.focusAutoGuard}).forEach(function(F){var P=F.node;return P.removeAttribute("tabIndex")}),xp(L,M.length,1,M),xp(L,-1,-1,M))}}}return r},Gm=function(r){pa()&&r&&(r.stopPropagation(),r.preventDefault())},Lc=function(){return Ic(pa)},m0=function(r){var i=r.target,a=r.currentTarget;a.contains(i)||u0(a,i)},v0=function(){return null},Ym=function(){Mc=!0},Zm=function(){Mc=!1,Ro="just",Ic(function(){Ro="meanwhile"})},g0=function(){document.addEventListener("focusin",Gm),document.addEventListener("focusout",Lc),window.addEventListener("focus",Ym),window.addEventListener("blur",Zm)},y0=function(){document.removeEventListener("focusin",Gm),document.removeEventListener("focusout",Lc),window.removeEventListener("focus",Ym),window.removeEventListener("blur",Zm)};function w0(t){return t.filter(function(r){var i=r.disabled;return!i})}var Xm={moveFocusInside:Hm,focusInside:Um,focusNextElement:t0,focusPrevElement:n0,focusFirstElement:r0,focusLastElement:i0,captureFocusRestore:Wm};function x0(t){var r=t.slice(-1)[0];r&&!pi&&g0();var i=pi,a=i&&r&&r.id===i.id;pi=r,i&&!a&&(i.onDeactivation(),t.filter(function(u){var f=u.id;return f===i.id}).length||i.returnFocus(!r)),r?(St=null,(!a||i.observed!==r.observed)&&r.onActivation(Xm),pa(),Ic(pa)):(y0(),St=null)}Tm.assignSyncMedium(m0);Rm.assignMedium(Lc);p1.assignMedium(function(t){return t(Xm)});const S0=k1(w0,x0)(v0);var Oc=I.forwardRef(function(r,i){return Jt.createElement(Cc,Po({sideCar:S0,ref:i},r))}),Jm=Cc.propTypes||{};Jm.sideCar;s1(Jm,["sideCar"]);Oc.propTypes={};var la="right-scroll-bar-position",ua="width-before-scroll-bar",k0="with-scroll-bars-hidden",C0="--removed-body-scroll-bar-size",ev=bm(),Tu=function(){},xa=I.forwardRef(function(t,r){var i=I.useRef(null),a=I.useState({onScrollCapture:Tu,onWheelCapture:Tu,onTouchMoveCapture:Tu}),u=a[0],f=a[1],m=t.forwardProps,v=t.children,g=t.className,h=t.removeScrollBar,y=t.enabled,x=t.shards,C=t.sideCar,N=t.noRelative,A=t.noIsolation,E=t.inert,M=t.allowPinchZoom,L=t.as,F=L===void 0?"div":L,P=t.gapMode,j=_m(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=C,W=Cm([i,r]),te=rn(rn({},j),u);return I.createElement(I.Fragment,null,y&&I.createElement(D,{sideCar:ev,removeScrollBar:h,shards:x,noRelative:N,noIsolation:A,inert:E,setCallbacks:f,allowPinchZoom:!!M,lockRef:i,gapMode:P}),m?I.cloneElement(I.Children.only(v),rn(rn({},te),{ref:W})):I.createElement(F,rn({},te,{className:g,ref:W}),v))});xa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xa.classNames={fullWidth:ua,zeroRight:la};var _0=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function E0(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=_0();return r&&t.setAttribute("nonce",r),t}function P0(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function b0(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var j0=function(){var t=0,r=null;return{add:function(i){t==0&&(r=E0())&&(P0(r,i),b0(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},T0=function(){var t=j0();return function(r,i){I.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&i])}},tv=function(){var t=T0(),r=function(i){var a=i.styles,u=i.dynamic;return t(a,u),null};return r},R0={left:0,top:0,right:0,gap:0},Ru=function(t){return parseInt(t||"",10)||0},N0=function(t){var r=window.getComputedStyle(document.body),i=r[t==="padding"?"paddingLeft":"marginLeft"],a=r[t==="padding"?"paddingTop":"marginTop"],u=r[t==="padding"?"paddingRight":"marginRight"];return[Ru(i),Ru(a),Ru(u)]},I0=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return R0;var r=N0(t),i=document.documentElement.clientWidth,a=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,a-i+r[2]-r[0])}},M0=tv(),vi="data-scroll-locked",L0=function(t,r,i,a){var u=t.left,f=t.top,m=t.right,v=t.gap;return i===void 0&&(i="margin"),`
|
|
42
42
|
.`.concat(k0,` {
|
|
43
43
|
overflow: hidden `).concat(a,`;
|
|
44
44
|
padding-right: `).concat(v,"px ").concat(a,`;
|
|
@@ -75,12 +75,12 @@ Error generating stack: `+c.message+`
|
|
|
75
75
|
body[`).concat(vi,`] {
|
|
76
76
|
`).concat(C0,": ").concat(v,`px;
|
|
77
77
|
}
|
|
78
|
-
`)},Sp=function(){var t=parseInt(document.body.getAttribute(vi)||"0",10);return isFinite(t)?t:0},O0=function(){I.useEffect(function(){return document.body.setAttribute(vi,(Sp()+1).toString()),function(){var t=Sp()-1;t<=0?document.body.removeAttribute(vi):document.body.setAttribute(vi,t.toString())}},[])},A0=function(t){var r=t.noRelative,i=t.noImportant,a=t.gapMode,u=a===void 0?"margin":a;O0();var f=I.useMemo(function(){return I0(u)},[u]);return I.createElement(M0,{styles:L0(f,!r,u,i?"":"!important")})},nc=!1;if(typeof window<"u")try{var Js=Object.defineProperty({},"passive",{get:function(){return nc=!0,!0}});window.addEventListener("test",Js,Js),window.removeEventListener("test",Js,Js)}catch{nc=!1}var li=nc?{passive:!1}:!1,D0=function(t){return t.tagName==="TEXTAREA"},nv=function(t,r){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!D0(t)&&i[r]==="visible")},F0=function(t){return nv(t,"overflowY")},$0=function(t){return nv(t,"overflowX")},kp=function(t,r){var i=r.ownerDocument,a=r;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var u=rv(t,a);if(u){var f=iv(t,a),m=f[1],v=f[2];if(m>v)return!0}a=a.parentNode}while(a&&a!==i.body);return!1},z0=function(t){var r=t.scrollTop,i=t.scrollHeight,a=t.clientHeight;return[r,i,a]},U0=function(t){var r=t.scrollLeft,i=t.scrollWidth,a=t.clientWidth;return[r,i,a]},rv=function(t,r){return t==="v"?F0(r):$0(r)},iv=function(t,r){return t==="v"?z0(r):U0(r)},B0=function(t,r){return t==="h"&&r==="rtl"?-1:1},H0=function(t,r,i,a,u){var f=B0(t,window.getComputedStyle(r).direction),m=f*a,v=i.target,g=r.contains(v),h=!1,
|
|
78
|
+
`)},Sp=function(){var t=parseInt(document.body.getAttribute(vi)||"0",10);return isFinite(t)?t:0},O0=function(){I.useEffect(function(){return document.body.setAttribute(vi,(Sp()+1).toString()),function(){var t=Sp()-1;t<=0?document.body.removeAttribute(vi):document.body.setAttribute(vi,t.toString())}},[])},A0=function(t){var r=t.noRelative,i=t.noImportant,a=t.gapMode,u=a===void 0?"margin":a;O0();var f=I.useMemo(function(){return I0(u)},[u]);return I.createElement(M0,{styles:L0(f,!r,u,i?"":"!important")})},nc=!1;if(typeof window<"u")try{var Js=Object.defineProperty({},"passive",{get:function(){return nc=!0,!0}});window.addEventListener("test",Js,Js),window.removeEventListener("test",Js,Js)}catch{nc=!1}var li=nc?{passive:!1}:!1,D0=function(t){return t.tagName==="TEXTAREA"},nv=function(t,r){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!D0(t)&&i[r]==="visible")},F0=function(t){return nv(t,"overflowY")},$0=function(t){return nv(t,"overflowX")},kp=function(t,r){var i=r.ownerDocument,a=r;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var u=rv(t,a);if(u){var f=iv(t,a),m=f[1],v=f[2];if(m>v)return!0}a=a.parentNode}while(a&&a!==i.body);return!1},z0=function(t){var r=t.scrollTop,i=t.scrollHeight,a=t.clientHeight;return[r,i,a]},U0=function(t){var r=t.scrollLeft,i=t.scrollWidth,a=t.clientWidth;return[r,i,a]},rv=function(t,r){return t==="v"?F0(r):$0(r)},iv=function(t,r){return t==="v"?z0(r):U0(r)},B0=function(t,r){return t==="h"&&r==="rtl"?-1:1},H0=function(t,r,i,a,u){var f=B0(t,window.getComputedStyle(r).direction),m=f*a,v=i.target,g=r.contains(v),h=!1,y=m>0,x=0,C=0;do{if(!v)break;var N=iv(t,v),A=N[0],E=N[1],M=N[2],L=E-M-f*A;(A||L)&&rv(t,v)&&(x+=L,C+=A);var F=v.parentNode;v=F&&F.nodeType===Node.DOCUMENT_FRAGMENT_NODE?F.host:F}while(!g&&v!==document.body||g&&(r.contains(v)||r===v));return(y&&Math.abs(x)<1||!y&&Math.abs(C)<1)&&(h=!0),h},ea=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Cp=function(t){return[t.deltaX,t.deltaY]},_p=function(t){return t&&"current"in t?t.current:t},W0=function(t,r){return t[0]===r[0]&&t[1]===r[1]},V0=function(t){return`
|
|
79
79
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
80
80
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
81
|
-
`)},q0=0,ui=[];function K0(t){var r=I.useRef([]),i=I.useRef([0,0]),a=I.useRef(),u=I.useState(q0++)[0],f=I.useState(tv)[0],m=I.useRef(t);I.useEffect(function(){m.current=t},[t]),I.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(u));var E=f1([t.lockRef.current],(t.shards||[]).map(_p),!0).filter(Boolean);return E.forEach(function(M){return M.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),E.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(u))})}}},[t.inert,t.lockRef.current,t.shards]);var v=I.useCallback(function(E,M){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var L=ea(E),F=i.current,P="deltaX"in E?E.deltaX:F[0]-L[0],j="deltaY"in E?E.deltaY:F[1]-L[1],D,W=E.target,te=Math.abs(P)>Math.abs(j)?"h":"v";if("touches"in E&&te==="h"&&W.type==="range")return!1;var Z=window.getSelection(),se=Z&&Z.anchorNode,ce=se?se===W||se.contains(W):!1;if(ce)return!1;var X=kp(te,W);if(!X)return!0;if(X?D=te:(D=te==="v"?"h":"v",X=kp(te,W)),!X)return!1;if(!a.current&&"changedTouches"in E&&(P||j)&&(a.current=D),!D)return!0;var Te=a.current||D;return H0(Te,M,E,Te==="h"?P:j)},[]),g=I.useCallback(function(E){var M=E;if(!(!ui.length||ui[ui.length-1]!==f)){var L="deltaY"in M?Cp(M):ea(M),F=r.current.filter(function(D){return D.name===M.type&&(D.target===M.target||M.target===D.shadowParent)&&W0(D.delta,L)})[0];if(F&&F.should){M.cancelable&&M.preventDefault();return}if(!F){var P=(m.current.shards||[]).map(_p).filter(Boolean).filter(function(D){return D.contains(M.target)}),j=P.length>0?v(M,P[0]):!m.current.noIsolation;j&&M.cancelable&&M.preventDefault()}}},[]),h=I.useCallback(function(E,M,L,F){var P={name:E,delta:M,target:L,should:F,shadowParent:Q0(L)};r.current.push(P),setTimeout(function(){r.current=r.current.filter(function(j){return j!==P})},1)},[]),w=I.useCallback(function(E){i.current=ea(E),a.current=void 0},[]),x=I.useCallback(function(E){h(E.type,Cp(E),E.target,v(E,t.lockRef.current))},[]),C=I.useCallback(function(E){h(E.type,ea(E),E.target,v(E,t.lockRef.current))},[]);I.useEffect(function(){return ui.push(f),t.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:C}),document.addEventListener("wheel",g,li),document.addEventListener("touchmove",g,li),document.addEventListener("touchstart",w,li),function(){ui=ui.filter(function(E){return E!==f}),document.removeEventListener("wheel",g,li),document.removeEventListener("touchmove",g,li),document.removeEventListener("touchstart",w,li)}},[]);var N=t.removeScrollBar,A=t.inert;return I.createElement(I.Fragment,null,A?I.createElement(f,{styles:V0(u)}):null,N?I.createElement(A0,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Q0(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const G0=h1(ev,K0);var Ac=I.forwardRef(function(t,r){return I.createElement(xa,rn({},t,{ref:r,sideCar:G0}))});Ac.classNames=xa.classNames;var ov=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},ci=new WeakMap,ta=new WeakMap,na={},Nu=0,sv=function(t){return t&&(t.host||sv(t.parentNode))},Y0=function(t,r){return r.map(function(i){if(t.contains(i))return i;var a=sv(i);return a&&t.contains(a)?a:(console.error("aria-hidden",i,"in not contained inside",t,". Doing nothing"),null)}).filter(function(i){return!!i})},av=function(t,r,i,a){var u=Y0(r,Array.isArray(t)?t:[t]);na[i]||(na[i]=new WeakMap);var f=na[i],m=[],v=new Set,g=new Set(u),h=function(x){!x||v.has(x)||(v.add(x),h(x.parentNode))};u.forEach(h);var w=function(x){!x||g.has(x)||Array.prototype.forEach.call(x.children,function(C){if(v.has(C))w(C);else try{var N=C.getAttribute(a),A=N!==null&&N!=="false",E=(ci.get(C)||0)+1,M=(f.get(C)||0)+1;ci.set(C,E),f.set(C,M),m.push(C),E===1&&A&&ta.set(C,!0),M===1&&C.setAttribute(i,"true"),A||C.setAttribute(a,"true")}catch(L){console.error("aria-hidden: cannot operate on ",C,L)}})};return w(r),v.clear(),Nu++,function(){m.forEach(function(x){var C=ci.get(x)-1,N=f.get(x)-1;ci.set(x,C),f.set(x,N),C||(ta.has(x)||x.removeAttribute(a),ta.delete(x)),N||x.removeAttribute(i)}),Nu--,Nu||(ci=new WeakMap,ci=new WeakMap,ta=new WeakMap,na={})}},Z0=function(t,r,i){i===void 0&&(i="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),u=r||ov(t);return u?(a.push.apply(a,Array.from(u.querySelectorAll("[aria-live], script"))),av(a,u,i,"aria-hidden")):function(){return null}},X0=function(t,r,i){i===void 0&&(i="data-inert-ed");var a=r||ov(t);return a?av(t,a,i,"inert"):function(){return null}},J0=function(){return typeof HTMLElement<"u"&&HTMLElement.prototype.hasOwnProperty("inert")},e2=function(t,r,i){return i===void 0&&(i="data-suppressed"),(J0()?X0:Z0)(t,r,i)};let Rr=[];const rc=new Set;function lv(){rc.forEach(t=>t())}function t2(t){Rr=Rr.filter(r=>r!==t),Rr.push(t),lv()}function n2(t){Rr=Rr.filter(r=>r!==t),lv()}function Iu(t){return Rr[Rr.length-1]===t}function uv(t,r,i){const a=I.useRef(i),u=I.useRef(null),[f,m]=I.useState(!1);I.useEffect(()=>{a.current=i},[i]);const v=I.useCallback(()=>{const h=u.current;u.current=null,h&&document.contains(h)&&h.focus({preventScroll:!0})},[]),g=I.useCallback(()=>{a.current()},[]);return I.useEffect(()=>{if(!t)return;const h=r.current;if(!h)return;const w=h;u.current=document.activeElement instanceof HTMLElement?document.activeElement:null,t2(w),m(Iu(w));function x(){m(Iu(w))}function C(N){if(!Iu(w))return;const A=N.target instanceof Element?N.target:null,E=A==null?void 0:A.closest('[role="dialog"]');E&&E!==w&&!w.contains(E)||N.key==="Escape"&&(N.preventDefault(),N.stopPropagation(),N.stopImmediatePropagation(),g())}return rc.add(x),window.addEventListener("keydown",C,!0),()=>{window.removeEventListener("keydown",C,!0),rc.delete(x),n2(w),v()}},[g,t,r,v]),I.useEffect(()=>{var x,C;if(!t||!f)return;const h=r.current;if(!h)return;const w=((C=(x=h.parentElement)==null?void 0:x.parentElement)==null?void 0:C.querySelectorAll("[data-focus-guard]"))??[];return e2([h,...w])},[t,f,r]),{closeDialog:g,isTopDialog:f}}const r2={sm:"24rem",md:"28.75rem",lg:"35rem",xl:"52rem"};function i2(){return d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:d.jsx("path",{d:"M4 4L12 12M12 4L4 12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})}function cv({bodyClassName:t,children:r,className:i,closeLabel:a="Close",eyebrow:u,footer:f,isOpen:m,onClose:v,overlayClassName:g,size:h="md",subtitle:w,title:x}){const C=I.useRef(null),N=I.useId(),A=I.useId(),{closeDialog:E,isTopDialog:M}=uv(m,C,v);if(!m)return null;const L=["as-modal-overlay",g].filter(Boolean).join(" "),F=["as-modal",`as-modal--${h}`,i].filter(Boolean).join(" "),P=["as-modal__body",t].filter(Boolean).join(" "),j={"--as-modal-width":r2[h]};return d.jsx("div",{className:L,role:"presentation",onMouseDown:E,children:d.jsx(Ac,{allowPinchZoom:!0,className:"as-modal__scroll-lock",enabled:M,style:j,children:d.jsx(Oc,{autoFocus:!0,className:"as-modal__focus-lock",disabled:!M,focusOptions:{preventScroll:!0},returnFocus:!1,children:d.jsxs("div",{"aria-describedby":w?A:void 0,"aria-hidden":M?void 0:!0,"aria-labelledby":N,"aria-modal":M?"true":void 0,className:F,ref:C,role:"dialog",tabIndex:-1,onMouseDown:D=>D.stopPropagation(),children:[d.jsxs("header",{className:"as-modal__header",children:[d.jsxs("div",{className:"as-modal__titles",children:[u&&d.jsx("div",{className:"as-modal__eyebrow",children:u}),d.jsx("h2",{className:"as-modal__title",id:N,children:x}),w&&d.jsx("p",{className:"as-modal__subtitle",id:A,children:w})]}),d.jsx(o2,{label:a,className:"as-modal__close",onClick:E,children:d.jsx(i2,{})})]}),d.jsx("div",{className:P,children:r}),f&&d.jsx("footer",{className:"as-modal__footer",children:f})]})})})})}function o2({children:t,className:r,label:i,onClick:a}){return d.jsx("button",{type:"button",className:r,onClick:a,"aria-label":i,children:t})}function s2(t){return t instanceof Error?t.message:typeof t=="string"?t:t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"?t.message:"Something went wrong."}function a2({isOpen:t,title:r,body:i,confirmLabel:a="Confirm",cancelLabel:u="Cancel",busyLabel:f="Working…",tone:m="danger",busy:v,error:g,errorTitle:h="That did not work",confirmDisabled:w,onConfirm:x,onClose:C}){return d.jsx(cv,{isOpen:t,onClose:v?()=>{}:C,title:r,size:"sm",children:d.jsxs("div",{className:"as-confirm",children:[d.jsx("div",{className:"as-confirm__body",children:i}),g?d.jsx(lt,{tone:"danger",title:h,children:s2(g)}):null,d.jsxs("div",{className:"as-confirm__actions",children:[d.jsx(Le,{variant:"ghost",onClick:C,disabled:v,children:u}),d.jsx(Le,{variant:m,onClick:x,disabled:v||w,children:v?f:a})]})]})})}function $o({children:t,className:r,label:i,size:a="md",type:u="button",...f}){const m=["as-icon-button",a==="sm"?"as-icon-button--sm":null,r].filter(Boolean).join(" ");return d.jsx("button",{type:u,className:m,"aria-label":i,title:f.title??i,...f,children:t})}async function dv(t){try{return await navigator.clipboard.writeText(t),!0}catch{return!1}}function Ep(){return d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[d.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2"}),d.jsx("path",{d:"M5 15V5a2 2 0 0 1 2-2h10"})]})}function Pp(){return d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:d.jsx("path",{d:"m5 12 5 5L20 7"})})}function Dc({value:t,label:r="Copy",copiedLabel:i="Copied",size:a="sm",variant:u="outline",className:f,iconOnly:m,onCopied:v}){const[g,h]=I.useState(!1),w=I.useRef(void 0);I.useEffect(()=>()=>window.clearTimeout(w.current),[]);const x=async()=>{await dv(t)&&(h(!0),v==null||v(),window.clearTimeout(w.current),w.current=window.setTimeout(()=>h(!1),1500))};return m?d.jsx($o,{label:g?i:r,size:"sm",className:f,onClick:()=>void x(),children:g?d.jsx(Pp,{}):d.jsx(Ep,{})}):d.jsx(Le,{variant:u,size:a,className:f,leadingIcon:g?d.jsx(Pp,{}):d.jsx(Ep,{}),"aria-live":"polite",onClick:()=>void x(),children:g?i:r})}function l2(){return d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:d.jsx("path",{d:"M4 4L12 12M12 4L4 12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})}function u2({backdropClassName:t,bodyClassName:r,children:i,className:a,closeLabel:u="Close",eyebrow:f,isOpen:m,onClose:v,side:g="right",subtitle:h,title:w}){const x=I.useRef(null),C=I.useId(),N=I.useId(),{closeDialog:A,isTopDialog:E}=uv(m,x,v),M=m&&E,L=["as-drawer-backdrop",m?"as-drawer-backdrop--open":null,t].filter(Boolean).join(" "),F=["as-drawer",`as-drawer--${g}`,m?"as-drawer--open":null,a].filter(Boolean).join(" "),P=["as-drawer__body",r].filter(Boolean).join(" ");return I.useEffect(()=>{if(!m||!E)return;function j(D){const W=x.current;W&&(D.target instanceof Node&&W.contains(D.target)||D.target instanceof Element&&D.target.closest('[role="dialog"], [role="menu"]')!==null||A())}return document.addEventListener("pointerdown",j,!0),()=>document.removeEventListener("pointerdown",j,!0)},[A,m,E]),d.jsxs(d.Fragment,{children:[d.jsx("div",{"aria-hidden":!m,className:L,onClick:A}),d.jsx(Ac,{allowPinchZoom:!0,className:"as-drawer__scroll-lock",enabled:m&&E,children:d.jsx(Oc,{autoFocus:!0,className:"as-drawer__focus-lock",disabled:!m||!E,focusOptions:{preventScroll:!0},returnFocus:!1,children:d.jsxs("aside",{"aria-describedby":h?N:void 0,"aria-hidden":M?void 0:!0,"aria-labelledby":C,"aria-modal":M?"true":void 0,className:F,ref:x,role:"dialog",tabIndex:-1,children:[d.jsxs("header",{className:"as-drawer__header",children:[d.jsxs("div",{className:"as-drawer__titles",children:[f&&d.jsx("div",{className:"as-drawer__eyebrow",children:f}),d.jsx("h2",{className:"as-drawer__title",id:C,children:w}),h&&d.jsx("p",{className:"as-drawer__subtitle",id:N,children:h})]}),d.jsx("button",{type:"button",className:"as-drawer__close",onClick:A,"aria-label":u,children:d.jsx(l2,{})})]}),d.jsx("div",{className:P,children:i})]})})})]})}const c2=["M42.4461 10.2767H39.6752L35.9506 25.7053H38.2537L39.0994 21.902H43.0219L43.8495 25.7053H46.1346L42.4821 10.4203L42.4461 10.2767ZM42.59 19.9286H39.5132L41.0426 12.7525L42.59 19.9286Z","M53.9616 22.494L50.8668 10.2767H47.4841V25.7053H49.5893V13.506L52.6301 25.5618L52.6661 25.7053H56.0667V10.2767H53.9616V22.494Z","M57.7221 12.2681H61.1588V25.7053H63.3899V12.2681H66.8265V10.2767H57.7221V12.2681Z","M72.0265 16.7173H71.3788C70.9649 16.7173 70.6411 16.5917 70.3892 16.3226C70.1373 16.0535 70.0113 15.7485 70.0113 15.3359V13.7033C70.0113 13.3086 70.1552 12.9678 70.4611 12.6987C70.767 12.4116 71.1449 12.2681 71.6307 12.2681H75.1213V10.2767H71.8466C70.5511 10.2767 69.5435 10.5997 68.8418 11.2455C68.14 11.8914 67.7802 12.8601 67.7802 14.116V14.9412C67.7802 16.1791 68.104 17.1299 68.7518 17.7937C69.3995 18.4575 70.2992 18.7804 71.4148 18.7804H72.0625C72.4583 18.7804 72.7462 18.888 72.9262 19.1213C73.1241 19.3545 73.214 19.6595 73.214 20.0542V22.2967C73.214 22.6914 73.0701 23.0322 72.7642 23.3013C72.4583 23.5884 72.0805 23.7319 71.5947 23.7319H68.14V25.7233H71.3788C72.6743 25.7233 73.6819 25.4003 74.3836 24.7545C75.0853 24.1086 75.4452 23.1399 75.4452 21.8841V20.4668C75.4452 19.2289 75.1393 18.296 74.5455 17.6681C73.9518 17.0402 73.0881 16.7352 72.0265 16.7352V16.7173Z","M77.0825 25.7053H84.6576V23.7857H79.3317V18.7086H84.1178V16.7711H79.3317V12.2143H84.6576V10.2767H77.0825V25.7053Z","M86.3129 25.7053H93.888V23.7857H88.544V18.7086H93.3482V16.7711H88.544V12.2143H93.888V10.2767H86.3129V25.7053Z","M102.938 11.102C102.255 10.5459 101.211 10.2767 99.8976 10.2767H95.5253V25.7053H100.149C101.499 25.7053 102.489 25.4362 103.082 24.8801C103.694 24.3239 104 23.409 104 22.1173V13.811C104 12.5731 103.64 11.6581 102.938 11.102ZM100.347 23.7319H97.7564V12.2502H100.365C100.797 12.2502 101.121 12.3758 101.391 12.6269C101.643 12.8781 101.769 13.201 101.769 13.6316V22.3505C101.769 22.8349 101.661 23.1937 101.427 23.409C101.211 23.6243 100.833 23.7319 100.347 23.7319Z"],fv=["M12.5827 3.84445C13.2032 3.84445 13.7062 3.34146 13.7062 2.72099C13.7062 2.10052 13.2032 1.59753 12.5827 1.59753C11.9623 1.59753 11.4593 2.10052 11.4593 2.72099C11.4593 3.34146 11.9623 3.84445 12.5827 3.84445Z","M23.3679 3.84445C23.9884 3.84445 24.4914 3.34146 24.4914 2.72099C24.4914 2.10052 23.9884 1.59753 23.3679 1.59753C22.7474 1.59753 22.2445 2.10052 22.2445 2.72099C22.2445 3.34146 22.7474 3.84445 23.3679 3.84445Z","M8.0889 11.0346C8.70936 11.0346 9.21235 10.5316 9.21235 9.91112C9.21235 9.29065 8.70936 8.78766 8.0889 8.78766C7.46843 8.78766 6.96544 9.29065 6.96544 9.91112C6.96544 10.5316 7.46843 11.0346 8.0889 11.0346Z","M27.8617 11.0346C28.4822 11.0346 28.9852 10.5316 28.9852 9.91112C28.9852 9.29065 28.4822 8.78766 27.8617 8.78766C27.2413 8.78766 26.7383 9.29065 26.7383 9.91112C26.7383 10.5316 27.2413 11.0346 27.8617 11.0346Z","M6.29136 19.1235C6.91183 19.1235 7.41482 18.6205 7.41482 18C7.41482 17.3795 6.91183 16.8766 6.29136 16.8766C5.6709 16.8766 5.16791 17.3795 5.16791 18C5.16791 18.6205 5.6709 19.1235 6.29136 19.1235Z","M29.6593 19.1235C30.2797 19.1235 30.7827 18.6205 30.7827 18C30.7827 17.3795 30.2797 16.8766 29.6593 16.8766C29.0388 16.8766 28.5358 17.3795 28.5358 18C28.5358 18.6205 29.0388 19.1235 29.6593 19.1235Z","M7.19014 28.1111C7.81061 28.1111 8.31359 27.6081 8.31359 26.9877C8.31359 26.3672 7.81061 25.8642 7.19014 25.8642C6.56967 25.8642 6.06668 26.3672 6.06668 26.9877C6.06668 27.6081 6.56967 28.1111 7.19014 28.1111Z","M28.7605 28.1111C29.381 28.1111 29.884 27.6081 29.884 26.9877C29.884 26.3672 29.381 25.8642 28.7605 25.8642C28.14 25.8642 27.6371 26.3672 27.6371 26.9877C27.6371 27.6081 28.14 28.1111 28.7605 28.1111Z","M17.9753 12.3827C19.2163 12.3827 20.2222 11.2762 20.2222 9.91112C20.2222 8.54609 19.2163 7.43951 17.9753 7.43951C16.7344 7.43951 15.7284 8.54609 15.7284 9.91112C15.7284 11.2762 16.7344 12.3827 17.9753 12.3827Z","M17.9753 19.7975C19.7126 19.7975 21.121 18.188 21.121 16.2025C21.121 14.217 19.7126 12.6074 17.9753 12.6074C16.238 12.6074 14.8296 14.217 14.8296 16.2025C14.8296 18.188 16.238 19.7975 17.9753 19.7975Z","M17.9753 30.1333C20.209 30.1333 22.0198 27.719 22.0198 24.7408C22.0198 21.7625 20.209 19.3482 17.9753 19.3482C15.7416 19.3482 13.9309 21.7625 13.9309 24.7408C13.9309 27.719 15.7416 30.1333 17.9753 30.1333Z","M12.3264 2.40809C12.4993 2.26669 12.7542 2.29198 12.8956 2.4647L16.9401 7.40792C17.0815 7.58074 17.0562 7.83563 16.8835 7.9771C16.7106 8.1185 16.4558 8.09322 16.3143 7.92049L12.2698 2.97728C12.1284 2.80446 12.1537 2.54957 12.3264 2.40809Z","M23.055 2.4647C23.1965 2.29198 23.4514 2.26669 23.6242 2.40809C23.7969 2.54957 23.8222 2.80446 23.6808 2.97728L19.6364 7.92049C19.4949 8.09322 19.24 8.1185 19.0672 7.9771C18.8945 7.83563 18.8692 7.58074 19.0106 7.40792L23.055 2.4647Z","M7.73168 9.72198C7.83619 9.52458 8.08064 9.44939 8.27805 9.5539L15.9176 13.5983C16.1149 13.7029 16.1901 13.9473 16.0856 14.1447C15.9811 14.3421 15.7367 14.4173 15.5393 14.3128L7.89976 10.2683C7.70236 10.1638 7.62717 9.91938 7.73168 9.72198Z","M27.6726 9.5539C27.87 9.44939 28.1144 9.52458 28.219 9.72198C28.3235 9.91938 28.2483 10.1638 28.0509 10.2683L20.4114 14.3128C20.214 14.4173 19.9695 14.3421 19.865 14.1447C19.7605 13.9473 19.8357 13.7029 20.0331 13.5983L27.6726 9.5539Z","M14.7875 16.6988C15.0096 16.6756 15.2087 16.8371 15.2321 17.0591C15.2553 17.2812 15.0938 17.4803 14.8718 17.5037L6.3335 18.4024C6.11145 18.4257 5.91232 18.2642 5.88895 18.0421C5.8657 17.8201 6.02718 17.621 6.24924 17.5976L14.7875 16.6988Z","M21.1631 16.6988L29.7014 17.5976C29.9235 17.621 30.085 17.8201 30.0617 18.0421C30.0383 18.2642 29.8392 18.4257 29.6171 18.4024L21.0789 17.5037C20.8568 17.4803 20.6953 17.2812 20.7186 17.0591C20.742 16.8371 20.9411 16.6756 21.1631 16.6988Z","M15.1149 23.0231C15.319 22.9324 15.5578 23.0244 15.6485 23.2285C15.7392 23.4326 15.6472 23.6714 15.4432 23.7621L7.35427 27.3572C7.15017 27.4478 6.91133 27.3559 6.82063 27.1518C6.72997 26.9477 6.82192 26.7089 7.02601 26.6182L15.1149 23.0231Z","M20.3021 23.2285C20.3928 23.0244 20.6316 22.9324 20.8357 23.0231L28.9246 26.6182C29.1287 26.7089 29.2207 26.9477 29.13 27.1518C29.0393 27.3559 28.8005 27.4478 28.5964 27.3572L20.5075 23.7621C20.3034 23.6714 20.2114 23.4326 20.3021 23.2285Z"],hv="#10B981";function d2({height:t=24,className:r}){return d.jsxs("svg",{className:r,height:t,width:t*104/36,viewBox:"0 0 104 36",fill:"none",role:"img","aria-label":"Antseed",children:[fv.map(i=>d.jsx("path",{d:i,fill:hv},i)),c2.map(i=>d.jsx("path",{d:i,fill:"currentColor"},i))]})}function f2({size:t=24,className:r}){return d.jsx("svg",{className:r,height:t,width:t,viewBox:"4 0 28 32",fill:"none",role:"img","aria-label":"Antseed",children:fv.map(i=>d.jsx("path",{d:i,fill:hv},i))})}function No({className:t,height:r,radius:i,style:a,width:u,...f}){const m=["as-skeleton",t].filter(Boolean).join(" ");return d.jsx("div",{className:m,style:{...a,...r!==void 0?{height:r}:{},...i!==void 0?{borderRadius:i}:{},...u!==void 0?{width:u}:{}},...f})}function gk({title:t,description:r,actions:i}){return d.jsxs("header",{className:"as-page-header",children:[d.jsxs("div",{className:"as-page-header__text",children:[d.jsx("h1",{children:t}),r&&d.jsx("p",{children:r})]}),i&&d.jsx("div",{className:"as-page-header__actions",children:i})]})}function yk({title:t,description:r,actions:i,children:a,flush:u,className:f}){return d.jsxs("section",{className:["as-panel",f].filter(Boolean).join(" "),children:[(t||i)&&d.jsxs("div",{className:"as-panel__head",children:[d.jsxs("div",{children:[t&&d.jsx("h2",{className:"as-panel__title",children:t}),r&&d.jsx("p",{className:"as-panel__desc",children:r})]}),i&&d.jsx("div",{className:"as-panel__actions",children:i})]}),d.jsx(Sc,{className:"as-panel__card",children:d.jsx("div",{className:u?"as-panel__body as-panel__body--flush":"as-panel__body",children:a})})]})}function h2(t){return t!==null&&t>=1?"danger":t!==null&&t>=.8?"warning":"default"}function wk({label:t,value:r,sub:i,meter:a,tone:u}){const f=a==null?null:Math.max(0,Math.min(1,a));return d.jsxs(Sc,{className:"as-stat",children:[d.jsx("div",{className:"as-stat__label",children:t}),d.jsx("div",{className:"as-stat__value",children:r}),i&&d.jsx("div",{className:"as-stat__sub",children:i}),f!==null&&d.jsx("div",{className:`as-meter as-meter--${u??h2(f)}`,role:"meter","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(f*100),children:d.jsx("span",{style:{width:`${f*100}%`}})})]})}function xk({title:t,body:r,action:i,icon:a}){return d.jsxs("div",{className:"as-empty",children:[a&&d.jsx("div",{className:"as-empty__icon","aria-hidden":"true",children:a}),d.jsx("div",{className:"as-empty__title",children:t}),r&&d.jsx("div",{className:"as-empty__body",children:r}),i&&d.jsx("div",{className:"as-empty__action",children:i})]})}function Ni({rows:t=4,height:r=28}){return d.jsx("div",{className:"as-loading","aria-busy":"true","aria-label":"Loading",children:Array.from({length:t},(i,a)=>d.jsx(No,{height:r},a))})}function Sk({items:t}){return d.jsx("dl",{className:"as-details",children:t.map(([r,i],a)=>d.jsxs("div",{className:"as-details__row",children:[d.jsx("dt",{children:r}),d.jsx("dd",{children:i})]},a))})}function kk({code:t,label:r}){return d.jsxs("div",{className:"as-code",children:[d.jsxs("div",{className:"as-code__bar",children:[d.jsx("span",{className:"as-code__label",children:r}),d.jsx(Dc,{value:t})]}),d.jsx("pre",{children:d.jsx("code",{children:t})})]})}function Ck({secret:t,note:r="Copy it now. It will not be shown again."}){return d.jsxs("div",{className:"as-secret",children:[d.jsxs("div",{className:"as-secret__row",children:[d.jsx("code",{className:"as-secret__value",children:t}),d.jsx(Dc,{value:t})]}),d.jsx("p",{className:"as-secret__note",children:r})]})}function p2(t,r){return["as-field",r==="sm"?"as-field--sm":null,t].filter(Boolean).join(" ")}function m2(t,r){return["as-field__input",t,r?"as-field__input--mono":null].filter(Boolean).join(" ")}function v2({error:t,hint:r}){return t?d.jsx("span",{className:"as-field__error",children:t}):r?d.jsx("span",{className:"as-field__hint",children:r}):null}function g2({className:t,error:r,hint:i,id:a,label:u,size:f,mono:m,...v}){const g=I.useId(),h=a??v.name??g;return d.jsxs("label",{className:p2(t,f),htmlFor:h,children:[u&&d.jsx("span",{className:"as-field__label",children:u}),d.jsx("input",{id:h,className:m2(void 0,m),"aria-invalid":r?!0:void 0,...v}),d.jsx(v2,{error:r,hint:i})]})}const pv=I.createContext(()=>{});function mv(){return I.useContext(pv)}let y2=1;function w2({children:t}){const[r,i]=I.useState([]),a=I.useCallback((u,f="success")=>{const m=y2++;i(v=>[...v.slice(-3),{id:m,tone:f,text:u}]),window.setTimeout(()=>i(v=>v.filter(g=>g.id!==m)),4e3)},[]);return d.jsxs(pv.Provider,{value:a,children:[t,d.jsx("div",{className:"as-toasts",role:"status","aria-live":"polite",children:r.map(u=>d.jsx("div",{className:`as-toast as-toast--${u.tone}`,children:u.text},u.id))})]})}const x2="/console/api",S2="x-antseed-console";class Sa extends Error{constructor(i,a,u,f={}){super(u);gu(this,"details");this.status=i,this.code=a,this.name="ConsoleApiError",this.details=f}}function Lr(t,r){return t instanceof Sa&&(r===void 0||t.code===r)}const bp={buyer_policy_unsupported:"The buyer behind this gateway cannot apply routing policies yet. Update Antseed on the buyer host and restart it.",restart_unsupported:"The buyer cannot restart itself here. The change is saved; restart the buyer yourself to apply it.",reauth_required:"For this action, sign in again first.",config_unreadable:"The gateway could not read the buyer configuration file, so nothing was changed. Check the file on the gateway host.",operator_not_yours:"That wallet is not one of your sign-in methods. Add it as a sign-in method first, then authorize it.",reauth_wrong_member:"That passkey or wallet belongs to someone else. Confirm with one of your own sign-in methods.",reauth_unavailable:"You are signed in through Cloudflare Access, which cannot confirm this action. Sign in with a passkey or wallet instead (add one under Your sign-in methods first if you have none), then retry.",access_reauth_required:"Your Cloudflare Access sign-in is more than 5 minutes old. Sign out of Cloudflare Access, sign in again, then retry.",reauth_other_credential:"Confirm with a different passkey or wallet than the one you are making the operator, then retry.",session_required:"Only an organization admin signed in to the console can change the export endpoint or content logging. Management tokens cannot.",otlp_headers_required:"You changed the endpoint, so the saved header values are not sent to it. Enter the header values again.",empty_allow_list:"This allow list is empty, so no seller could serve. Confirm to save it anyway.",last_credential:"You cannot remove your only sign-in method, or you could not sign in again. Add another passkey or wallet first.",credential_exists:"This passkey or wallet is already registered.",max_keys_reached:"You already have as many keys as you are allowed. Revoke one, or ask an admin to raise your limit."};function ka(t){return t instanceof Sa&&Object.hasOwn(bp,t.code)?bp[t.code]:t instanceof Error?t.message:typeof t=="string"?t:"Something went wrong."}function yr(t,r){return{...t,...r!=null&&r.confirmEmpty?{confirmEmpty:!0}:{},...r!=null&&r.acceptNarrowed?{acceptNarrowed:!0}:{}}}function ra(t){if(!t)return"";const r=new URLSearchParams;for(const[a,u]of Object.entries(t))u==null||u===""||r.set(a,String(u));const i=r.toString();return i?`?${i}`:""}async function k2(t){let r=`http_${t.status}`,i=t.statusText||`Request failed (${t.status})`,a={};try{const u=await t.json();u!=null&&u.error&&typeof u.error.code=="string"&&(r=u.error.code),u!=null&&u.error&&typeof u.error.message=="string"&&(i=u.error.message),u&&typeof u=="object"&&(a={...u.error,...u})}catch{}return new Sa(t.status,r,i,a)}function C2(t=(i,a)=>fetch(i,a),r=x2){async function i(h,w,x={}){const C={accept:"application/json"};h!=="GET"&&h!=="HEAD"&&(C[S2]="1");let A;x.body!==void 0&&(C["content-type"]="application/json",A=JSON.stringify(x.body));let E;try{E=await t(`${r}${w}${ra(x.query)}`,{method:h,headers:C,body:A,credentials:"same-origin"})}catch{throw new Sa(0,"network_error","Could not reach the gateway.")}if(!E.ok)throw await k2(E);return E.status===204?void 0:(E.headers.get("content-type")??"").includes("json")?await E.json():await E.text()}const a=(h,w)=>i("GET",h,{query:w}),u=(h,w)=>i("POST",h,{body:w??{}}),f=(h,w)=>i("PATCH",h,{body:w}),m=(h,w)=>i("PUT",h,{body:w}),v=h=>i("DELETE",h),g=encodeURIComponent;return{request:i,auth:{config:()=>a("/auth/config"),me:()=>a("/auth/me"),setup:h=>u("/auth/setup",{token:h}),invite:h=>u("/auth/invite",{token:h}),passkeyRegisterOptions:h=>u("/auth/passkey/register/options",{enrollment:h}),passkeyRegisterVerify:(h,w)=>u("/auth/passkey/register/verify",{enrollment:w,response:h}),passkeyLoginOptions:()=>u("/auth/passkey/login/options",{}),passkeyLoginVerify:h=>u("/auth/passkey/login/verify",{response:h}),walletNonce:h=>u("/auth/wallet/nonce",{address:h}),walletVerify:(h,w,x)=>u("/auth/wallet/verify",{message:h,signature:w,enrollment:x}),oidcStartUrl:h=>`${r}/auth/oidc/start${ra({enrollment:h})}`,oidcLinkUrl:()=>`${r}/auth/oidc/start?link=1`,reauthPasskeyOptions:()=>u("/auth/reauth/passkey/options",{}),reauthPasskeyVerify:h=>u("/auth/reauth/passkey/verify",{response:h}),reauthWalletNonce:h=>u("/auth/reauth/wallet/nonce",{address:h}),reauthWalletVerify:(h,w)=>u("/auth/reauth/wallet/verify",{message:h,signature:w}),apiKey:h=>u("/auth/api-key",{key:h}),logout:()=>u("/auth/logout")},members:{list:()=>a("/members"),update:(h,w,x)=>f(`/members/${g(h)}`,yr(w,x)),disable:h=>u(`/members/${g(h)}/disable`),enable:h=>u(`/members/${g(h)}/enable`),removeCredential:(h,w)=>v(`/members/${g(h)}/credentials/${g(w)}`)},invites:{list:()=>a("/invites"),create:h=>u("/invites",h),revoke:h=>v(`/invites/${g(h)}`)},workspaces:{list:()=>a("/workspaces"),get:h=>a(`/workspaces/${g(h)}`),create:(h,w)=>u("/workspaces",yr(h,w)),update:(h,w,x)=>f(`/workspaces/${g(h)}`,yr(w,x)),remove:h=>v(`/workspaces/${g(h)}`),members:h=>a(`/workspaces/${g(h)}/members`),setMember:(h,w,x)=>m(`/workspaces/${g(h)}/members/${g(w)}`,{role:x}),removeMember:(h,w)=>v(`/workspaces/${g(h)}/members/${g(w)}`)},keys:{list:(h={})=>a("/keys",h),create:(h,w)=>u("/keys",yr(h,w)),update:(h,w,x)=>f(`/keys/${g(h)}`,yr(w,x)),rotate:h=>u(`/keys/${g(h)}/rotate`),revoke:h=>u(`/keys/${g(h)}/revoke`)},adminTokens:{list:()=>a("/admin-tokens"),create:(h,w,x)=>u("/admin-tokens",{label:h,scope:w,...x!==void 0?{expiresInDays:x}:{}}),revoke:h=>v(`/admin-tokens/${g(h)}`)},usage:{report:h=>a("/usage",h),requests:h=>a("/requests",h),request:h=>a(`/requests/${g(h)}`),exportUrl:h=>`${r}/usage/export.csv${ra(h)}`},audit:{list:h=>a("/audit",h)},wallet:{get:h=>a(`/workspaces/${g(h)}/wallet`),cardLink:(h,w,x)=>u(`/workspaces/${g(h)}/wallet/card-link`,{amountUsd:w,provider:x}),watch:(h,w)=>u(`/workspaces/${g(h)}/wallet/watch`,{mode:w}),operator:(h,w=!1)=>a(`/workspaces/${g(h)}/wallet/operator`,{fresh:w?1:void 0}),operators:()=>a("/wallet/operators"),operatorSync:(h,w)=>u(`/workspaces/${g(h)}/wallet/operator/sync`,w?{txHash:w}:{}),operatorAuth:(h,w)=>u(`/workspaces/${g(h)}/wallet/operator-auth`,{operator:w}),channels:(h,w=!1,x=!1)=>a(`/workspaces/${g(h)}/channels`,{all:w?1:void 0,fresh:x?1:void 0}),closeChannel:(h,w)=>u(`/workspaces/${g(h)}/channels/close`,{peerId:w}),rewards:h=>a(`/workspaces/${g(h)}/rewards`),chain:()=>a("/chain")},chat:{models:h=>a("/chat/models",{workspace:h}),context:h=>a("/chat/context",{workspace:h}),threads:h=>a("/chat/threads",{workspace:h}),thread:(h,w)=>a(`/chat/threads/${g(w)}`,{workspace:h}),deleteThread:(h,w)=>v(`/chat/threads/${g(w)}${ra({workspace:h})}`)},network:{peers:()=>a("/peers"),models:()=>a("/models"),routePreview:h=>a("/route-preview",h),gatewayPolicy:()=>a("/routing"),buyerLimits:()=>a("/routing/buyer-limits"),setGatewayPolicy:(h,w)=>i("PUT","/routing",{body:h,query:{confirmEmpty:w!=null&&w.confirmEmpty?1:void 0,acceptNarrowed:w!=null&&w.acceptNarrowed?1:void 0}}),peerLists:()=>a("/peer-lists"),createPeerList:h=>u("/peer-lists",h),updatePeerList:(h,w)=>f(`/peer-lists/${g(h)}`,w),removePeerList:h=>v(`/peer-lists/${g(h)}`)},presets:{list:h=>a("/presets",{workspace:h}),create:(h,w)=>u("/presets",yr(h,w)),update:(h,w,x)=>f(`/presets/${g(h)}`,yr(w,x)),remove:h=>v(`/presets/${g(h)}`)},settings:{status:()=>a("/status"),get:()=>a("/settings"),updateBuyer:h=>f("/settings/buyer",h),setObservability:h=>m("/settings/observability",h)}}}function vv(t){return!!t&&"ownerRoutingPolicy"in t}const fe=C2();function Ca(t){return t.orgRole==="owner"||t.orgRole==="admin"}function Fc(t){return Ca(t)||t.workspaceRole==="admin"}const $c=[{id:"overview",label:"Overview",group:"Workspace",access:"member"},{id:"chat",label:"Chat",group:"Workspace",access:"member"},{id:"activity",label:"Activity",group:"Workspace",access:"member"},{id:"logs",label:"Logs",group:"Workspace",access:"member"},{id:"keys",label:"Keys",group:"Workspace",access:"member"},{id:"presets",label:"Presets",group:"Workspace",access:"member"},{id:"wallet",label:"Wallet & Funding",group:"Money",access:"workspaceAdmin"},{id:"rewards",label:"Rewards",group:"Money",access:"workspaceAdmin"},{id:"providers",label:"Providers",group:"Routing",access:"member"},{id:"models",label:"Models",group:"Routing",access:"member"},{id:"routing",label:"Routing",group:"Routing",access:"workspaceAdmin"},{id:"members",label:"Members",group:"Organization",access:"workspaceAdmin"},{id:"workspaces",label:"Workspaces",group:"Organization",access:"workspaceAdmin"},{id:"audit",label:"Audit log",group:"Organization",access:"orgAdmin"},{id:"settings",label:"Settings",group:"Organization",access:"orgAdmin"}];function zc(t,r){const i=$c.find(a=>a.id===t);return i?i.access==="orgAdmin"?Ca(r):i.access==="workspaceAdmin"?Fc(r):!0:!1}function _2(t){return $c.filter(r=>zc(r.id,t))}function E2(t,r){const i=t.me.workspaces.find(a=>a.workspace.id===r);return{orgRole:t.me.member.orgRole,workspaceRole:(i==null?void 0:i.role)??null}}const Uc={owner:"Owner",admin:"Admin",member:"Member"};function P2(t,r){return r?`${t}/${encodeURIComponent(r)}`:t}function b2(t){const r=t.join("/");return r===""?null:r}function j2(t,r){return t==="network"?P2("providers",b2(r)):null}const gv=I.createContext(null);function ir(){const t=I.useContext(gv);if(!t)throw new Error("useConsole outside the console shell");return t}const yv="antseed-console-workspace";function T2(){try{return localStorage.getItem(yv)}catch{return null}}function R2(t){try{localStorage.setItem(yv,t)}catch{}}function jp(t,r){const i=t.workspaces.map(a=>a.workspace);return i.find(a=>a.id===r)??i.find(a=>a.isDefault)??i[0]??null}function _k(){const{workspace:t,viewer:r,me:i}=ir();return Fc(r)?{workspace:t.id}:{workspace:t.id,member:i.member.id}}const ic="antseed-console-theme";function wv(){try{const t=localStorage.getItem(ic);return t==="light"||t==="dark"?t:"system"}catch{return"system"}}function N2(){const t=wv();t!=="system"&&(document.documentElement.dataset.theme=t)}function I2(){const[t,r]=I.useState(wv);return I.useEffect(()=>{t==="system"?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=t;try{t==="system"?localStorage.removeItem(ic):localStorage.setItem(ic,t)}catch{}},[t]),[t,r]}function Ek(){var r;const t=document.documentElement.dataset.theme;return t?t==="dark":((r=window.matchMedia)==null?void 0:r.call(window,"(prefers-color-scheme: dark)").matches)??!1}const Io="/console";function M2(t){try{return decodeURIComponent(t)}catch{return t}}function xv(t,r="",i=""){const u=(t.startsWith(Io)?t.slice(Io.length):t).split("/").filter(Boolean).map(M2);return{page:u[0]??"",rest:u.slice(1),query:new URLSearchParams(r),hash:i.replace(/^#/,"")}}function Tp(){return xv(window.location.pathname,window.location.search,window.location.hash)}const oc=new Set;function an(t,r={}){const i=t.startsWith("/")?`${Io}${t}`:`${Io}/${t}`;r.replace?window.history.replaceState(null,"",i):window.history.pushState(null,"",i),oc.forEach(a=>a())}function Bc(){const[t,r]=I.useState(Tp);return I.useEffect(()=>{const i=()=>r(Tp());return oc.add(i),window.addEventListener("popstate",i),()=>{oc.delete(i),window.removeEventListener("popstate",i)}},[]),t}function _a(t){return`${Io}/${t.replace(/^\//,"")}`}function Hc(t){return r=>{r.defaultPrevented||r.button!==0||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||(r.preventDefault(),an(t))}}const L2=6;function Xe(t){if(t==null||t==="")return 0;const r=Number(t);return Number.isFinite(r)?r:0}function O2(t,r={}){if(t==null)return"—";const i=typeof t=="number"?t:Xe(t),a=i<0?"-":"",u=Math.abs(i);return r.compact&&u>=1e4?`${a}$${new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(u)}`:u!==0&&u<1e-4?`${a}<$0.0001`:u!==0&&u<.01?`${a}$${u.toFixed(4).replace(/0+$/,"").replace(/\.$/,"")}`:`${a}$${u.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function Pk(t){const r=t.trim().replace(/^\$/,"").replace(/,/g,"");if(r==="")return null;const i=/^(\d+)(?:\.(\d{0,6}))?$/.exec(r);if(!i)throw new Error("Use a dollar amount like 5 or 12.50 (up to 6 decimals).");const a=i[1].replace(/^0+(?=\d)/,""),u=(i[2]??"").padEnd(L2,"0");return`${a}.${u}`}function bk(t){return t==null?"":t.includes(".")?t.replace(/0+$/,"").replace(/\.$/,""):t}function A2(t,r={}){return t==null||!Number.isFinite(t)?"—":r.compact&&Math.abs(t)>=1e4?new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(t):t.toLocaleString("en-US")}function jk(t){return A2(t,{compact:!0})}function gi(t){return t==null?"—":t===0?"Free":t<.01?`$${t.toLocaleString("en-US",{maximumSignificantDigits:2})}`:`$${t.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:t<1?3:2})}`}function Tk(t){return t?t.min===t.max?gi(t.min):`${t.min===0?"$0":gi(t.min)}–${gi(t.max)}`:"—"}function Rk(t){return t==null?"—":t>=1e3?`${(t/1e3).toFixed(t>=1e4?0:1)} s`:`${Math.round(t)} ms`}function Nk(t){if(t==null)return"—";const r=Math.floor(t/6e4);if(r<1)return"<1 min";if(r<60)return`${r} min`;const i=Math.floor(r/60);return i<48?`${i} h ${r%60} min`:`${Math.floor(i/24)} d ${i%24} h`}function D2(t){return t?new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function F2(t){return t?new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"—"}function Rp(t,r=Date.now()){if(!t)return"Never";const i=r-t,a=i<0,u=Math.abs(i),f=6e4,m=60*f,v=24*m;let g;if(u<f)return a?"in a moment":"just now";if(u<m)g=`${Math.round(u/f)} min`;else if(u<v)g=`${Math.round(u/m)} h`;else if(u<30*v)g=`${Math.round(u/v)} d`;else return F2(t);return a?`in ${g}`:`${g} ago`}function sn(t,r=6,i=4){return t?t.length<=r+i+1?t:`${t.slice(0,r)}…${t.slice(-i)}`:"—"}const Sv=["daily","weekly","monthly","total"],Ik={daily:"Daily",weekly:"Weekly",monthly:"Monthly",total:"Total"};function $2(t){if(!t)return"No limits";const r={daily:"/day",weekly:"/week",monthly:"/month",total:" total"},i=Sv.filter(a=>t[a]!==null).map(a=>`${O2(t[a])}${r[a]}`);return i.length>0?i.join(" · "):"No limits"}function Mk(t,r=Date.now()){const i=new Date(r),a=Date.UTC(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate());if(t==="daily")return a;if(t==="monthly")return Date.UTC(i.getUTCFullYear(),i.getUTCMonth(),1);const u=(i.getUTCDay()+6)%7;return a-u*864e5}const z2=15*6e4;function U2(t){return t.status==="active"||t.status==="open"||t.status==="closing"||t.status==="withdrawable"}function Lk(t,r){return t.status==="withdrawable"?"withdraw":t.status!=="active"&&t.status!=="open"?"none":t.canCooperativeClose&&!r?"cooperative":"on-chain"}function B2(t){return t.closeRequestedAt===null?null:t.closeRequestedAt+z2}function H2(t,r=Date.now()){const i=Math.max(0,t-r);return i>=6e4?`${Math.ceil(i/6e4)} min`:`${Math.ceil(i/1e3)} s`}function Ok(t,r=Date.now()){if(t.status==="closing"){const i=B2(t);return i===null?"closing":`closing · ${H2(i,r)} left`}return t.status==="withdrawable"?"ready to withdraw":t.status==="timedout"?"withdrawn":t.status}function Ak(t){return t.status==="active"||t.status==="open"?"success":t.status==="withdrawable"?"warning":t.status==="closing"?"info":"neutral"}function W2(t){return Math.max(0,Xe(t.reserved)-Xe(t.spent))}function V2(t){const r=t.filter(i=>i.status==="withdrawable");return{count:r.length,amount:r.reduce((i,a)=>i+W2(a),0)}}function Dk(t){return t.filter(U2).reduce((r,i)=>r+Math.max(0,Xe(i.spent)-Xe(i.settled??"0")),0)}function Fk(t){return Xe(t.reserved)>0&&Xe(t.available)<=0&&Xe(t.walletUsdc)<=0}function q2(t){const r=Xe(t.walletUsdc);if(r<=0)return!1;const i=t.creditLimit===null?0:Xe(t.creditLimit),a=Math.max(0,i-Xe(t.available)-Xe(t.reserved));return!(i>0&&r>a)}function $k(t){const r=Xe(t.walletUsdc),i=t.creditLimit===null?0:Xe(t.creditLimit),a=Math.max(0,i-Xe(t.available)-Xe(t.reserved));return i>0&&r>a?"Credits are at or near the credit limit, so this USDC waits in the workspace wallet and tops the credits up as they are spent.":"This USDC is in the workspace wallet and moves into the credits automatically."}function zk(t){const r=t.toLowerCase();return r.includes("already in flight")?"A close request to this seller is still waiting for an answer (it gives up after a minute). Close on chain instead, or try again shortly.":r.includes("busy")||r.includes("still processing")?"The seller is still processing a request. Try again shortly, or close on chain.":r.includes("pending_auth")||r.includes("latest payment authorization")?"The seller is waiting for the latest payment authorization. Try again shortly, or close on chain.":r.includes("no_channel")||r.includes("no longer has this channel")?"The seller no longer has this channel open. It may already be settled; refresh the list, or close on chain.":r.includes("did not answer")||r.includes("not connected")||r.includes("could not be found")||r.includes("disconnected")?"The seller did not answer. Close on chain instead: it does not need the seller.":r.includes("does not support cooperative close")?"This seller does not support a cooperative close. Close on chain instead.":`${t} The channel is unchanged; close on chain instead.`}const K2={usdc:["usdc","USDC","usdcToken"],deposits:["deposits","AntseedDeposits","antseedDeposits"],usageRewards:["usageRewards","AntseedUsageRewards","UsageRewards"],channels:["channels","AntseedChannels","antseedChannels"]};function Uk(t,r){if(!t)return null;const i=Object.entries(t.contracts);for(const a of K2[r]){const u=i.find(([f])=>f.toLowerCase()===a.toLowerCase());if(u&&/^0x[0-9a-fA-F]{40}$/.test(u[1]))return u[1]}return null}function Mo(t,r){return!!t&&!!r&&t.toLowerCase()===r.toLowerCase()}const Q2="0x0000000000000000000000000000000000000000";function Wc(t){return!!t&&/^0x[0-9a-fA-F]{40}$/.test(t)&&t.toLowerCase()!==Q2}function Bk(t,r){return t!=null&&t.explorerUrl?`${t.explorerUrl.replace(/\/+$/,"")}/tx/${r}`:null}const Pe={group:t=>[t],me:["me"],authConfig:["auth-config"],status:["status"],settings:["settings"],workspaces:["workspaces","list"],workspace:t=>["workspaces","detail",t],workspaceMembers:t=>["workspaces","members",t],members:["members","list"],invites:["invites"],keys:t=>["keys","list",t],usage:t=>["usage",t],requests:t=>["requests","list",t],request:t=>["requests","detail",t],audit:t=>["audit",t],wallet:t=>["wallet",t],channels:(t,r)=>["channels",t,r],operators:["wallet-operators"],rewards:t=>["rewards",t],chain:["chain"],chatModels:t=>["chat-models",t],chatContext:t=>["chat-context",t],chatThreads:t=>["chat-threads",t],chatThread:(t,r)=>["chat-thread",t,r],peers:["peers"],models:["models"],peerLists:["peer-lists"],gatewayPolicy:["routing","gateway"],buyerLimits:["routing","buyer-limits"],routePreview:t=>["routing","preview",t],presets:t=>["presets",t],adminTokens:["admin-tokens"]},Hk=["routing","workspaces","members","keys","presets"];function G2(t,r=fe){return{queryKey:Pe.workspace(t),queryFn:()=>r.workspaces.get(t)}}function Wk(t,r=!0){return De({...G2(t),enabled:r})}function Vk(t=!0){return De({queryKey:Pe.peers,queryFn:fe.network.peers,staleTime:3e4,enabled:t})}function qk(){return De({queryKey:Pe.models,queryFn:fe.network.models,staleTime:3e4})}function Kk(t=!0){return De({queryKey:Pe.peerLists,queryFn:fe.network.peerLists,staleTime:3e4,enabled:t})}function Qk(){return De({queryKey:Pe.workspaces,queryFn:fe.workspaces.list})}function Gk(t,r=!0){return De({queryKey:Pe.workspaceMembers(t),queryFn:()=>fe.workspaces.members(t),enabled:r})}function Yk(t=!0){return De({queryKey:Pe.members,queryFn:fe.members.list,enabled:t})}function Zk(){return De({queryKey:Pe.invites,queryFn:fe.invites.list})}function Xk(t,r=!0){return De({queryKey:Pe.keys(t),queryFn:()=>fe.keys.list(t),enabled:r})}function Jk(t,r=!0){return De({queryKey:Pe.presets(t),queryFn:()=>fe.presets.list(t),enabled:r})}function eC(t,r=!0){return De({queryKey:Pe.wallet(t),queryFn:()=>fe.wallet.get(t),enabled:r,refetchInterval:i=>i.state.data&&q2(i.state.data)?5e3:!1})}function tC(){return De({queryKey:Pe.gatewayPolicy,queryFn:fe.network.gatewayPolicy})}function nC(){return De({queryKey:Pe.buyerLimits,queryFn:fe.network.buyerLimits})}function rC(){return De({queryKey:Pe.adminTokens,queryFn:fe.adminTokens.list})}function Y2(){return De({queryKey:Pe.me,queryFn:fe.auth.me})}function Vc(t=!0){return De({queryKey:Pe.authConfig,queryFn:fe.auth.config,enabled:t})}function qc(){return De({queryKey:Pe.status,queryFn:fe.settings.status,refetchInterval:3e4})}function iC(t=!0){return De({queryKey:Pe.chain,queryFn:fe.wallet.chain,staleTime:1/0,enabled:t})}function oC(t){const r=new Set;for(const i of t??[])for(const a of i.services)r.add(a.service);return[...r].sort()}const kv=t=>["wallet-operator",t],Cv={get:(t,r=!1)=>fe.wallet.operator(t,r),sync:(t,r)=>fe.wallet.operatorSync(t,r),authorize:(t,r)=>fe.wallet.operatorAuth(t,r)};function sC(t,r=!0){return De({queryKey:kv(t),queryFn:()=>Cv.get(t),staleTime:3e4,enabled:r})}function Z2(t=!0){return De({queryKey:Pe.operators,queryFn:()=>fe.wallet.operators(),staleTime:6e4,enabled:t})}function X2(t){return(t==null?void 0:t.relation)==="none"}function aC(t){const r=rr(),i=a=>{r.setQueryData(kv(t),a),r.invalidateQueries({queryKey:Pe.operators}),r.invalidateQueries({queryKey:Pe.wallet(t)}),r.invalidateQueries({queryKey:Pe.rewards(t)})};return{apply:i,refresh:async()=>i(await Cv.get(t,!0))}}function lC(t,r){const i=t.operator,a=sn(i),u=Wc(i)&&Mo(r,i),f=m=>u?{canManage:!0,manageHint:null}:{canManage:!1,manageHint:`Only ${m} can transfer or remove it: connect ${a} to do so.`};switch(t.relation){case"none":return{tone:"warning",badge:"Not set",title:"No authorized wallet",summary:t.canAuthorize?"Authorize one of your wallets to withdraw funds and claim ANTS rewards. Requests keep working meanwhile.":"Nobody can withdraw funds or claim ANTS rewards until the organization owner authorizes a wallet.",body:t.canAuthorize?"Nobody can withdraw this workspace's funds or claim its ANTS rewards until you authorize one of your wallets. Requests keep working meanwhile.":"Nobody can withdraw this workspace's funds or claim its ANTS rewards until one is authorized. Only the organization owner can authorize a wallet; requests keep working meanwhile.",canAuthorize:t.canAuthorize,canManage:!1,manageHint:null,canLink:!1};case"self":return{tone:"info",badge:"Workspace wallet",title:"The workspace wallet authorizes itself",summary:"Withdrawals and rewards stay in the wallet the gateway holds.",body:"Withdrawals and rewards stay in the wallet the gateway holds. To hand the role to a personal wallet, run `antseed gateway workspace operator transfer <workspace> <address>` on the gateway host (the workspace wallet pays the gas).",canAuthorize:!1,canManage:!1,manageHint:null,canLink:!1};case"yours":return{tone:"success",badge:"Your wallet",title:`Your wallet ${a}`,summary:"Withdrawals and ANTS rewards go to this wallet, and only it can transfer or remove the role.",body:"Withdrawals and ANTS rewards go to this wallet, and only it can transfer or remove the role.",canAuthorize:!1,canLink:!1,...f("this wallet")};case"member":{const m=t.memberLabel?`${t.memberLabel}'s wallet`:"Another member's wallet";return{tone:"info",badge:t.memberLabel?t.memberLabel:"Member",title:`${m} ${a}`,summary:"Withdrawals and ANTS rewards go to this wallet, and only it can transfer or remove the role.",body:"Withdrawals and ANTS rewards go to this wallet, and only it can transfer or remove the role.",canAuthorize:!1,canLink:!1,...f(t.memberLabel?`${t.memberLabel}'s wallet`:"that member's wallet")}}case"unknown":return{tone:"info",badge:"Not linked to a console member",title:`Authorized wallet ${a}`,summary:"Withdrawals and ANTS rewards go to this wallet. If it is yours, link it to your account to manage it here.",body:"No member of this gateway signs in with this address, yet withdrawals and ANTS rewards go to it, and only it can transfer or remove the role: not the gateway, not the organization owner. If nobody on your team controls it, do not add more than you plan to spend (the gateway can still spend the balance on requests, but it cannot be withdrawn). Ask whoever controls it to transfer the role, or move to a new workspace with a fresh wallet.",canAuthorize:!1,canLink:!0,...f("that wallet")}}}function uC(t,r,i){if(!t)return{ok:!1,reason:"Checking the authorized wallet…",operator:null};const a=Wc(t.operator)?t.operator:null;return a?t.relation==="self"?{ok:!1,operator:a,reason:`This workspace's authorized wallet is the gateway-held wallet itself, so a browser wallet cannot ${i}. Use the antseed CLI on the gateway host, or transfer the role to a personal wallet.`}:r?Mo(r,a)?{ok:!0,operator:a,reason:null}:{ok:!1,operator:a,reason:`The connected wallet ${sn(r)} is not the authorized wallet ${sn(a)}. Switch to ${sn(a)} in your wallet to ${i}.`}:{ok:!1,operator:a,reason:`Connect the authorized wallet ${sn(a)} to ${i}. Funds go to that wallet.`}:{ok:!1,operator:null,reason:`Only the authorized wallet can ${i}, and none is set. ${t.canAuthorize?"Authorize one of your wallets under Authorized wallet.":"Ask the organization owner to authorize one."}`}}function cC(t,r=Date.now()){return t.eligibleWallets.map(i=>({...i,ready:i.eligibleAt<=r}))}function dC(t,r,i=Date.now()){if(!t.canAuthorize)return t.relation==="none"?"Only the organization owner can authorize a wallet.":"A wallet is already authorized; only it can transfer the role.";if(!r)return"Connect the wallet you want to authorize.";const a=t.eligibleWallets.find(u=>Mo(u.address,r));return a?a.eligibleAt>i?`${sn(r)} was added as a sign-in method recently. For your safety it can be authorized from ${D2(a.eligibleAt)}.`:null:`${sn(r)} is not one of your sign-in methods. Add it under Your sign-in methods first; it can be authorized 24 hours later.`}const _v={OperatorAlreadySet:{message:"Another wallet was authorized in the meantime. The panel now shows the current authorized wallet.",refresh:!0},InvalidNonce:{message:"The authorization expired: the operator nonce changed on chain. Start again to get a fresh authorization.",refresh:!0},InvalidSignature:{message:"The contract rejected the gateway's signature. The gateway and your wallet may be on different chains or deposits contracts.",refresh:!1},NotAuthorized:{message:"The connected wallet is not (or no longer) the authorized wallet. The panel now shows the current one.",refresh:!0},NotRewardRecipient:{message:"Only the authorized wallet can claim. The panel now shows the current one.",refresh:!0},RewardRecipientUnavailable:{message:"No authorized wallet is set, so rewards cannot be claimed yet.",refresh:!0},InsufficientBalance:{message:"Not enough available balance; funds reserved in open channels cannot be withdrawn.",refresh:!0},InvalidAddress:{message:"The contract rejected the address.",refresh:!1},ChannelNotActive:{message:"This channel is already settled or closed; nothing is left to do. The list now shows it.",refresh:!0},CloseAlreadyRequested:{message:"A close was already requested for this channel. The list now shows when the reserve can be withdrawn.",refresh:!0},CloseNotReady:{message:"The 15-minute grace period has not ended yet. Withdraw once the countdown reaches zero.",refresh:!0}};function J2(t){const r=new Set;let i=t;for(;i&&typeof i=="object"&&!r.has(i);){r.add(i);const u=i.data;if(u&&typeof u.errorName=="string")return u.errorName;i=i.cause}const a=t instanceof Error?`${t.message} ${t.shortMessage??""}`:String(t??"");return Object.keys(_v).find(u=>a.includes(u))??null}function fC(t){const r=J2(t);return r?_v[r]??null:null}class ko extends Error{constructor(r,i,a=!1){super(r),this.refresh=i,this.retryAuth=a,this.name="OperatorPreflightError"}}function hC(t,r,i){if(t.chainId!==void 0&&t.chainId!==i.chainId)throw new ko(`The gateway signed for chain ${t.chainId} but the console is set up for chain ${i.chainId}.`,!1);if(t.depositsContract&&i.depositsContract&&!Mo(t.depositsContract,i.depositsContract))throw new ko("The gateway signed for a different deposits contract than the one the console reports. Reload the page.",!1);if(t.operator&&!Mo(t.operator,i.operator))throw new ko(`The authorization is for ${sn(t.operator)}, not ${sn(i.operator)}.`,!1);if(Wc(r.operator))throw new ko(`An authorized wallet is already set (${sn(r.operator)}). The panel now shows it.`,!0);if(r.nonce.toString()!==t.nonce)throw new ko("The operator nonce changed since the gateway signed. Getting a fresh authorization…",!0,!0)}function ex(t,r=!0){return De({queryKey:Pe.channels(t,!1),queryFn:()=>fe.wallet.channels(t,!1),enabled:r})}function Ev(){const{workspace:t,viewer:r}=ir(),i=Fc(r),a=Z2(i),u=ex(t.id,i),f=a.data??[],m=new Set(f.filter(X2).map(w=>w.workspaceId)),v=f.find(w=>w.workspaceId===t.id),g=V2(u.data??[]),h=m.has(t.id);return{missingOperator:m,currentMissingOperator:h,canAuthorize:(v==null?void 0:v.canAuthorize)??!1,withdrawable:g,wallet:h||g.count>0}}const Pv=["pointerdown","mousedown","pointerup","mouseup","click"],sc=new WeakMap;function bv(t,r,i){Kc(t);let a=u=>{let f=u.target;t.contains(f)&&((!i||i(f))&&(u.preventDefault(),u.stopPropagation(),u.stopImmediatePropagation()),u.type==="click"&&(r==null||r(u)))};for(let u of Pv)document.addEventListener(u,a,!0);sc.set(t,a)}function Kc(t){let r=sc.get(t);if(r){for(let i of Pv)document.removeEventListener(i,r,!0);sc.delete(t)}}function tx(t,r){let i=t.wrapper.getBoundingClientRect();return{width:i.width+r,height:i.height+r,realWidth:i.width,realHeight:i.height}}function Np(t,r){let{elementDimensions:i,popoverDimensions:a,popoverPadding:u,popoverArrowDimensions:f}=r;return t==="start"?Math.max(Math.min(i.top-u,window.innerHeight-a.realHeight-f.width),f.width):t==="end"?Math.max(Math.min(i.top-(a==null?void 0:a.realHeight)+i.height+u,window.innerHeight-(a==null?void 0:a.realHeight)-f.width),f.width):t==="center"?Math.max(Math.min(i.top+i.height/2-(a==null?void 0:a.realHeight)/2,window.innerHeight-(a==null?void 0:a.realHeight)-f.width),f.width):0}function Ip(t,r){let{elementDimensions:i,popoverDimensions:a,popoverPadding:u,popoverArrowDimensions:f}=r;return t==="start"?Math.max(Math.min(i.left-u,window.innerWidth-a.realWidth-f.width),f.width):t==="end"?Math.max(Math.min(i.left-(a==null?void 0:a.realWidth)+i.width+u,window.innerWidth-(a==null?void 0:a.realWidth)-f.width),f.width):t==="center"?Math.max(Math.min(i.left+i.width/2-(a==null?void 0:a.realWidth)/2,window.innerWidth-(a==null?void 0:a.realWidth)-f.width),f.width):0}function Qc(t,r,i){let{align:a,side:u}=i,f=i.centered?"over":u,m=i.padding,v=tx(t,i.offset),g=t.arrow.getBoundingClientRect(),h=r.getBoundingClientRect(),w=h.top-v.height,x=w>=0,C=window.innerHeight-(h.bottom+v.height),N=C>=0,A=h.left-v.width,E=A>=0,M=window.innerWidth-(h.right+v.width),L=M>=0,F=!x&&!N&&!E&&!L,P=f;if(f==="top"&&x?L=E=N=!1:f==="bottom"&&N?L=E=x=!1:f==="left"&&E?L=x=N=!1:f==="right"&&L&&(E=x=N=!1),f==="over"){let j=window.innerWidth/2-v.realWidth/2,D=window.innerHeight/2-v.realHeight/2;t.wrapper.style.left=`${j}px`,t.wrapper.style.right="auto",t.wrapper.style.top=`${D}px`,t.wrapper.style.bottom="auto"}else if(F){let j=window.innerWidth/2-(v==null?void 0:v.realWidth)/2;t.wrapper.style.left=`${j}px`,t.wrapper.style.right="auto",t.wrapper.style.bottom="10px",t.wrapper.style.top="auto"}else if(E){let j=Math.min(A,window.innerWidth-(v==null?void 0:v.realWidth)-g.width),D=Np(a,{elementDimensions:h,popoverDimensions:v,popoverPadding:m,popoverArrowDimensions:g});t.wrapper.style.left=`${j}px`,t.wrapper.style.top=`${D}px`,t.wrapper.style.bottom="auto",t.wrapper.style.right="auto",P="left"}else if(L){let j=Math.min(M,window.innerWidth-(v==null?void 0:v.realWidth)-g.width),D=Np(a,{elementDimensions:h,popoverDimensions:v,popoverPadding:m,popoverArrowDimensions:g});t.wrapper.style.right=`${j}px`,t.wrapper.style.top=`${D}px`,t.wrapper.style.bottom="auto",t.wrapper.style.left="auto",P="right"}else if(x){let j=Math.min(w,window.innerHeight-v.realHeight-g.width),D=Ip(a,{elementDimensions:h,popoverDimensions:v,popoverPadding:m,popoverArrowDimensions:g});t.wrapper.style.top=`${j}px`,t.wrapper.style.left=`${D}px`,t.wrapper.style.bottom="auto",t.wrapper.style.right="auto",P="top"}else if(N){let j=Math.min(C,window.innerHeight-(v==null?void 0:v.realHeight)-g.width),D=Ip(a,{elementDimensions:h,popoverDimensions:v,popoverPadding:m,popoverArrowDimensions:g});t.wrapper.style.left=`${D}px`,t.wrapper.style.bottom=`${j}px`,t.wrapper.style.top="auto",t.wrapper.style.right="auto",P="bottom"}rx(t,F?"over":P,a,r),[...t.wrapper.classList].filter(j=>j.startsWith("driver-popover-side-")||j.startsWith("driver-popover-align-")).forEach(j=>t.wrapper.classList.remove(j)),t.wrapper.classList.add(`driver-popover-side-${P}`),t.wrapper.classList.add(`driver-popover-align-${a}`)}function Mp(t,r,i,a,u,f=10){let m=a-i;return t<=i&&r>=a?u==="start"?15+f/2:u==="end"?m-15-f/2:m/2:(Math.min(Math.max(t,i),a)+Math.min(Math.max(r,i),a))/2-i}function Lp(t,r,i=10){let a=r-15-i;if(a<15)return Math.max(0,(r-i)/2);let u=t-i/2;return Math.min(Math.max(u,15),a)}function nx(t,r,i){return t==="left"||t==="right"?r.bottom>i.top&&r.top<i.bottom?t:r.bottom<=i.top?"bottom":"top":r.right>i.left&&r.left<i.right?t:r.right<=i.left?"right":"left"}function rx(t,r,i,a){let u=t.arrow;if(u.className="driver-popover-arrow",u.style.top="",u.style.right="",u.style.bottom="",u.style.left="",r==="over"){u.classList.add("driver-popover-arrow-none");return}let f=a.getBoundingClientRect(),m=t.wrapper.getBoundingClientRect(),v=nx(r,f,m);u.classList.add(`driver-popover-arrow-side-${v}`);let g=u.getBoundingClientRect().width||10;if(v==="left"||v==="right"){let h=Mp(f.top,f.bottom,m.top,m.bottom,i,g);u.style.top=`${Lp(h,m.height,g)}px`}else{let h=Mp(f.left,f.right,m.left,m.right,i,g);u.style.left=`${Lp(h,m.width,g)}px`}}function ma(t){return typeof t=="function"?t():typeof t=="string"?document.querySelector(t):t}function ix(t){let r=window.getComputedStyle(t);return[r.overflow,r.overflowX,r.overflowY].some(i=>i==="auto"||i==="scroll")}function ia(t,r,i,a){return(t/=a/2)<1?i/2*t*t+r:-i/2*(--t*(t-2)-1)+r}function jv(t){let r='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return t.flatMap(i=>{let a=i.matches(r),u=Array.from(i.querySelectorAll(r));return[...a?[i]:[],...u]}).filter(i=>getComputedStyle(i).pointerEvents!=="none"&&ax(i))}function Tv(t,r){if(!t||sx(t))return;let i=t.offsetHeight>window.innerHeight;t.scrollIntoView({behavior:!r||ox(t)?"auto":"smooth",inline:"center",block:i?"start":"center"})}function ox(t){if(!t||!t.parentElement)return;let r=t.parentElement;return r.scrollHeight>r.clientHeight}function sx(t){let r=t.getBoundingClientRect();return r.top>=0&&r.left>=0&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&r.right<=(window.innerWidth||document.documentElement.clientWidth)}function ax(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function Rv(t){t&&(t.wrapper.style.display="none")}function lx(t,r){var E;let i=cx();document.body.appendChild(i.wrapper);let{title:a,description:u,showButtons:f,disableButtons:m,showProgress:v,nextBtnText:g,prevBtnText:h,progressText:w}=r;i.nextButton.innerHTML=g,i.previousButton.innerHTML=h,i.progress.innerHTML=w,i.closeButton.setAttribute("aria-label",r.closeBtnLabel),r.doneButton&&i.nextButton.classList.add("driver-popover-done-btn"),a?(i.title.innerHTML=a,i.title.style.display="block"):i.title.style.display="none",u?(i.description.innerHTML=u,i.description.style.display="block"):i.description.style.display="none";let x=f.includes("next")||f.includes("previous")||v;i.closeButton.style.display=f.includes("close")?"block":"none",x?(i.footer.style.display="flex",i.progress.style.display=v?"block":"none",i.nextButton.style.display=f.includes("next")?"block":"none",i.previousButton.style.display=f.includes("previous")?"block":"none"):i.footer.style.display="none",m.includes("next")&&(i.nextButton.disabled=!0,i.nextButton.classList.add("driver-popover-btn-disabled")),m.includes("previous")&&(i.previousButton.disabled=!0,i.previousButton.classList.add("driver-popover-btn-disabled")),m.includes("close")&&(i.closeButton.disabled=!0,i.closeButton.classList.add("driver-popover-btn-disabled"));let C=i.wrapper;C.style.display="block",C.style.left="",C.style.top="",C.style.bottom="",C.style.right="",C.id="driver-popover-content",C.setAttribute("role","dialog"),C.setAttribute("aria-labelledby","driver-popover-title"),C.setAttribute("aria-describedby","driver-popover-description");let N=i.arrow;N.className="driver-popover-arrow",C.className=`driver-popover ${r.popoverClass||""}`.trim(),bv(i.wrapper,M=>{var F,P,j;let L=M.target;if(L.closest(".driver-popover-next-btn"))return(F=r.onNextClick)==null?void 0:F.call(r);if(L.closest(".driver-popover-prev-btn"))return(P=r.onPrevClick)==null?void 0:P.call(r);if(L.closest(".driver-popover-close-btn"))return(j=r.onCloseClick)==null?void 0:j.call(r)},M=>i.description.contains(M)||i.title.contains(M)?!1:!!M.closest(".driver-popover-prev-btn, .driver-popover-next-btn, .driver-popover-close-btn")),(E=r.onRender)==null||E.call(r,i),Qc(i,t,r.position),ux(i,t,r.position),Tv(C,r.smoothScroll);let A=jv([C,t]);return A.length>0&&A[0].focus(),i}function ux(t,r,i){t.wrapper.querySelectorAll("img").forEach(a=>{if(a.complete)return;let u=()=>Qc(t,r,i);a.addEventListener("load",u,{once:!0}),a.addEventListener("error",u,{once:!0})})}function cx(){let t=document.createElement("div");t.classList.add("driver-popover");let r=document.createElement("div");r.classList.add("driver-popover-arrow");let i=document.createElement("header");i.id="driver-popover-title",i.classList.add("driver-popover-title"),i.style.display="none",i.innerText="Popover Title";let a=document.createElement("div");a.id="driver-popover-description",a.classList.add("driver-popover-description"),a.style.display="none",a.innerText="Popover description is here";let u=document.createElement("button");u.type="button",u.classList.add("driver-popover-close-btn"),u.innerHTML="×";let f=document.createElement("footer");f.classList.add("driver-popover-footer");let m=document.createElement("span");m.classList.add("driver-popover-progress-text"),m.innerText="";let v=document.createElement("span");v.classList.add("driver-popover-navigation-btns");let g=document.createElement("button");g.type="button",g.classList.add("driver-popover-prev-btn","driver-popover-footer-btn"),g.innerHTML="Previous";let h=document.createElement("button");return h.type="button",h.classList.add("driver-popover-next-btn","driver-popover-footer-btn"),h.innerHTML="Next",v.appendChild(g),v.appendChild(h),f.appendChild(m),f.appendChild(v),t.appendChild(u),t.appendChild(r),t.appendChild(i),t.appendChild(a),t.appendChild(f),{wrapper:t,arrow:r,title:i,description:a,footer:f,previousButton:g,nextButton:h,closeButton:u,footerButtons:v,progress:m}}function Nv(t){var r;t&&(Kc(t.wrapper),(r=t.wrapper.parentElement)==null||r.removeChild(t.wrapper))}function Iv(t,r){let i=window.innerWidth,a=window.innerHeight,u=r.padding,f=r.radius,m=t.width+u*2,v=t.height+u*2,g=Math.min(f,m/2,v/2),h=Math.floor(Math.max(g,0)),w=t.x-u+h,x=t.y-u,C=m-h*2,N=v-h*2;return`M${i},0L0,0L0,${a}L${i},${a}L${i},0Z
|
|
82
|
-
M${w},${x} h${C} a${h},${h} 0 0 1 ${h},${h} v${N} a${h},${h} 0 0 1 -${h},${h} h-${C} a${h},${h} 0 0 1 -${h},-${h} v-${N} a${h},${h} 0 0 1 ${h},-${h} z`}function dx(t,r,i,a,u){let f=t.getState("__activeStagePosition"),m=f||a.getBoundingClientRect(),v=u.getBoundingClientRect();f={x:ia(r,m.x,v.x-m.x,i),y:ia(r,m.y,v.y-m.y,i),width:ia(r,m.width,v.width-m.width,i),height:ia(r,m.height,v.height-m.height,i)},Lv(t,f),t.setState("__activeStagePosition",f)}function Mv(t,r){if(!r)return;let i=r.getBoundingClientRect(),a={x:i.x,y:i.y,width:i.width,height:i.height};t.setState("__activeStagePosition",a),Lv(t,a)}function fx(t){let r=t.getState("__activeStagePosition"),i=t.getState("__overlaySvg");if(!r)return;if(!i){console.warn("No stage svg found.");return}let a=window.innerWidth,u=window.innerHeight;i.setAttribute("viewBox",`0 0 ${a} ${u}`)}function hx(t,r){let i=px(t,r);document.body.appendChild(i),bv(i,a=>{a.target.tagName==="path"&&t.emit("overlayClick")}),t.setState("__overlaySvg",i)}function Lv(t,r){let i=t.getState("__overlaySvg");if(!i){hx(t,r);return}let a=i.firstElementChild;if((a==null?void 0:a.tagName)!=="path")throw Error("no path element found in stage svg");a.setAttribute("d",Iv(r,Ov(t)))}function Ov(t){var r;return((r=t.getState("activeElement"))==null?void 0:r.id)==="driver-dummy-element"?{padding:0,radius:0}:{padding:t.getConfig("stagePadding")||0,radius:t.getConfig("stageRadius")||0}}function px(t,r){let i=window.innerWidth,a=window.innerHeight,u=document.createElementNS("http://www.w3.org/2000/svg","svg");u.classList.add("driver-overlay","driver-overlay-animated"),u.setAttribute("viewBox",`0 0 ${i} ${a}`),u.setAttribute("xmlSpace","preserve"),u.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),u.setAttribute("version","1.1"),u.setAttribute("preserveAspectRatio","xMinYMin slice"),u.style.fillRule="evenodd",u.style.clipRule="evenodd",u.style.strokeLinejoin="round",u.style.strokeMiterlimit="2",u.style.zIndex="10000",u.style.position="fixed",u.style.top="0",u.style.left="0",u.style.width="100%",u.style.height="100%";let f=document.createElementNS("http://www.w3.org/2000/svg","path");return f.setAttribute("d",Iv(r,Ov(t))),f.style.fill=t.getConfig("overlayColor")||"rgb(0,0,0)",f.style.opacity=`${t.getConfig("overlayOpacity")}`,f.style.pointerEvents="auto",f.style.cursor="auto",u.appendChild(f),u}function mx(t){let r=t.getState("__overlaySvg");r&&(Kc(r),r.remove())}const Av="{{current}} of {{total}}";function Dv(t,r){return!(r.skipMissingElement??t.getConfig("skipMissingElement"))||!r.element?!1:!ma(r.element)}function _n(t,r,i){let a=t.getConfig("steps")||[];for(let u=r;u>=0&&u<a.length;u+=i)if(!Dv(t,a[u]))return u}function ca(t,r){var f,m;let i=t.getState("activeIndex"),a=i!==void 0&&_n(t,i+1,1)===void 0,u=((f=r==null?void 0:r.popover)==null?void 0:f.onDoneClick)||t.getConfig("onDoneClick");return a&&u?u:((m=r==null?void 0:r.popover)==null?void 0:m.onNextClick)||t.getConfig("onNextClick")}function Fv(t,r){var i;return((i=r==null?void 0:r.popover)==null?void 0:i.onPrevClick)||t.getConfig("onPrevClick")}function vx(t,r){var i;return((i=r==null?void 0:r.popover)==null?void 0:i.onCloseClick)||t.getConfig("onCloseClick")}function gx(t,r,i){let a=t.getConfig("steps")||[],u=a[r],f=u.popover||{},m=_n(t,r+1,1)!==void 0,v=_n(t,r-1,-1)!==void 0,g=f.doneBtnText||t.getConfig("doneBtnText")||"Done",h=t.getConfig("allowClose"),w=f.showProgress===void 0?t.getConfig("showProgress"):f.showProgress,x=(f.progressText||t.getConfig("progressText")||Av).replace("{{current}}",`${r+1}`).replace("{{total}}",`${a.length}`),C=f.showButtons||t.getConfig("showButtons"),N=["next","previous",...h?["close"]:[]].filter(L=>!(C!=null&&C.length)||C.includes(L)),A=f.onNextClick||t.getConfig("onNextClick"),E=f.onPrevClick||t.getConfig("onPrevClick"),M=f.onCloseClick||t.getConfig("onCloseClick");return{...u,popover:{showButtons:N,nextBtnText:m?void 0:g,disableButtons:[...t.getConfig("disableButtons")||[],...v?[]:["previous"]],showProgress:w,onNextClick:A||i.onNextClick,onPrevClick:E||i.onPrevClick,onCloseClick:M||i.onCloseClick,...f,progressText:x}}}function ac(t,r){var i,a;return{showButtons:((i=r==null?void 0:r.popover)==null?void 0:i.showButtons)||t.getConfig("showButtons")||[],disableButtons:((a=r==null?void 0:r.popover)==null?void 0:a.disableButtons)||t.getConfig("disableButtons")||[]}}function $v(t,r,i){var u,f;let a=t.getConfig("stagePadding")||0;return{side:((u=i.popover)==null?void 0:u.side)||"bottom",align:((f=i.popover)==null?void 0:f.align)||"start",offset:a+(t.getConfig("popoverOffset")||0),padding:a,centered:r.id==="driver-dummy-element"}}function yx(t,r,i){let a=i.popover||{},u=t.getState("activeIndex"),f=u!==void 0&&_n(t,u+1,1)===void 0;return{title:a.title,description:a.description,...ac(t,i),showProgress:a.showProgress||t.getConfig("showProgress")||!1,progressText:a.progressText??(t.getConfig("progressText")||Av),nextBtnText:a.nextBtnText??(t.getConfig("nextBtnText")||"Next"),prevBtnText:a.prevBtnText??(t.getConfig("prevBtnText")||"Previous"),closeBtnLabel:a.closeBtnLabel??(t.getConfig("closeBtnLabel")||"Close"),doneButton:f,popoverClass:a.popoverClass||t.getConfig("popoverClass")||"",smoothScroll:t.getConfig("smoothScroll"),onNextClick:()=>{let m=ca(t,i);return m?m(r,i,t.getHookOpts()):t.emit("nextClick")},onPrevClick:()=>{let m=Fv(t,i);return m?m(r,i,t.getHookOpts()):t.emit("prevClick")},onCloseClick:()=>{let m=vx(t,i);return m?m(r,i,t.getHookOpts()):t.emit("closeClick")},onRender:m=>{var v;t.setState("popover",m),(v=a.onPopoverRender||t.getConfig("onPopoverRender"))==null||v(m,t.getHookOpts())},position:$v(t,r,i)}}function Op(t,r,i){Nv(t.getState("popover")),lx(r,yx(t,r,i))}function wx(t,r,i){let a=t.getState("popover");a&&Qc(a,r,$v(t,r,i))}const Ap={"aria-haspopup":"dialog","aria-expanded":"true","aria-controls":"driver-popover-content"},va=new WeakMap;function xx(t){if(!va.has(t)){let r=Object.fromEntries(Object.keys(Ap).map(i=>[i,t.getAttribute(i)]));va.set(t,r)}for(let[r,i]of Object.entries(Ap))t.setAttribute(r,i)}function zv(t){let r=va.get(t);if(r){for(let[i,a]of Object.entries(r))a===null?t.removeAttribute(i):t.setAttribute(i,a);va.delete(t)}}function Sx(){let t=document.getElementById("driver-dummy-element");if(t)return t;let r=document.createElement("div");return r.id="driver-dummy-element",r.style.width="0",r.style.height="0",r.style.pointerEvents="none",r.style.opacity="0",r.style.position="fixed",r.style.top="50%",r.style.left="50%",document.body.appendChild(r),r}function Dp(t,r){let i=ma(r.element);i||(i=Sx()),Cx(t,i,r)}function kx(t){let r=t.getState("__activeElement"),i=t.getState("__activeStep");r&&(Mv(t,r),fx(t),wx(t,r,i))}function Cx(t,r,i){let a=t.getConfig("duration")||400,u=Date.now(),f=t.getState("__activeStep"),m=t.getState("__activeElement")||r,v=!m||m===r,g=r.id==="driver-dummy-element",h=m.id==="driver-dummy-element",w=t.getConfig("animate"),x=i.onHighlightStarted||t.getConfig("onHighlightStarted"),C=(i==null?void 0:i.onHighlighted)||t.getConfig("onHighlighted"),N=(f==null?void 0:f.onDeselected)||t.getConfig("onDeselected"),A=t.getHookOpts();f&&f!==i&&N&&N(h?void 0:m,f,A),x&&x(g?void 0:r,i,A);let E=!v&&w,M=!1;Rv(t.getState("popover")),t.setState("previousStep",f),t.setState("previousElement",m),t.setState("activeStep",i),t.setState("activeElement",r);let L=()=>{if(t.getState("__transitionCallback")!==L)return;let P=Date.now()-u,j=a-P<=a/2;i.popover&&j&&!M&&E&&(Op(t,r,i),M=!0),t.getConfig("animate")&&P<a?dx(t,P,a,m,r):(Mv(t,r),C&&C(g?void 0:r,i,t.getHookOpts()),t.setState("__transitionCallback",void 0),t.setState("__previousStep",f),t.setState("__previousElement",m),t.setState("__activeStep",i),t.setState("__activeElement",r)),window.requestAnimationFrame(L)};t.setState("__transitionCallback",L),window.requestAnimationFrame(L),Tv(r,t.getConfig("smoothScroll")),!E&&i.popover&&Op(t,r,i),document.querySelectorAll(".driver-active-element-parent").forEach(P=>{P.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll")}),document.querySelectorAll(".driver-active-element").forEach(P=>{P.classList.remove("driver-active-element","driver-no-interaction"),zv(P)}),(i.disableActiveInteraction??t.getConfig("disableActiveInteraction"))&&r.classList.add("driver-no-interaction");let F=r.parentElement;F&&F!==document.body&&(F.classList.add("driver-active-element-parent"),ix(F)&&F.classList.add("driver-active-element-parent-no-scroll")),r.classList.add("driver-active-element"),xx(r)}function _x(){var t;(t=document.getElementById("driver-dummy-element"))==null||t.remove(),document.querySelectorAll(".driver-active-element").forEach(r=>{let i=r.parentElement;i&&i!==document.body&&i.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll"),r.classList.remove("driver-active-element","driver-no-interaction"),zv(r)})}function lc(t){let r=t.getState("__resizeTimeout");r&&window.cancelAnimationFrame(r),t.setState("__resizeTimeout",window.requestAnimationFrame(()=>kx(t)))}function Ex(t,r){var v,g,h;if(!t.getState("isInitialized")||!(r.key==="Tab"||r.keyCode===9))return;let i=t.getState("__activeElement"),a=(v=t.getState("popover"))==null?void 0:v.wrapper,u=jv([...a?[a]:[],...i?[i]:[]]),f=u[0],m=u[u.length-1];r.preventDefault(),r.shiftKey?(g=u[u.indexOf(document.activeElement)-1]||m)==null||g.focus():(h=u[u.indexOf(document.activeElement)+1]||f)==null||h.focus()}function Px(t,r){(t.getConfig("allowKeyboardControl")??!0)&&(r.key==="Escape"?t.emit("escapePress"):r.key==="ArrowRight"?t.emit("arrowRightPress"):r.key==="ArrowLeft"&&t.emit("arrowLeftPress"))}function bx(t,r){let i=t.getState("__activeElement"),a=r.target;!i||!a||!i.contains(a)||t.emit("activeElementClick")}function jx(t){let r=m=>Px(t,m),i=m=>Ex(t,m),a=()=>lc(t),u=()=>lc(t),f=m=>bx(t,m);t.setState("__events",{onKeyup:r,onKeydown:i,onResize:a,onScroll:u,onClick:f}),window.addEventListener("keyup",r,!1),window.addEventListener("keydown",i,!1),window.addEventListener("resize",a),window.addEventListener("scroll",u),document.addEventListener("click",f,!1)}function Tx(t){let r=t.getState("__events");r&&(window.removeEventListener("keyup",r.onKeyup),window.removeEventListener("keydown",r.onKeydown),window.removeEventListener("resize",r.onResize),window.removeEventListener("scroll",r.onScroll),document.removeEventListener("click",r.onClick,!1))}function Rx(){let t={};function r(i={}){t={animate:!0,duration:400,allowClose:!0,allowScroll:!0,overlayClickBehavior:"close",overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,advanceOnClick:!1,skipMissingElement:!1,waitForElement:0,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...i}}return r(),{getConfig:(i=>i?t[i]:t),configure:r}}function Nx(){let t={},r=(u=>u?t[u]:t),i=(u,f)=>{t[u]=f};function a(){t={}}return{getState:r,setState:i,resetState:a}}function Ix(){let t={};function r(u,f){t[u]=f}function i(u){var f;(f=t[u])==null||f.call(t)}function a(){t={}}return{listen:r,emit:i,reset:a}}function Mx(t={}){let r=Rx();r.configure(t);let i=Nx(),a=Ix(),u;return{getConfig:r.getConfig,setConfig:r.configure,getState:i.getState,setState:i.setState,resetState:i.resetState,listen:a.listen,emit:a.emit,resetEmitter:a.reset,getDriver:()=>u,setDriver:f=>{u=f},getHookOpts:f=>{let m=f||i.getState();return{config:r.getConfig(),state:m,driver:u,index:m.activeIndex}}}}let di;function Lx(t={}){let r=Mx(t),i=()=>L(!1);function a(){r.getConfig("allowClose")&&L()}function u(){let{disableButtons:P}=ac(r,r.getState("__activeStep"));P.includes("close")||a()}function f(P){let{showButtons:j,disableButtons:D}=ac(r,r.getState("__activeStep"));return j.includes(P)&&!D.includes(P)}function m(){let P=r.getConfig("overlayClickBehavior");if(r.getConfig("allowClose")&&P==="close"){L();return}if(typeof P=="function"){let j=r.getState("__activeStep");P(r.getState("__activeElement"),j,r.getHookOpts());return}if(P==="nextStep"){let j=r.getState("activeStep"),D=r.getState("activeElement"),W=ca(r,j);if(W){W(D,j,r.getHookOpts());return}v()}}function v(){let P=r.getState("activeIndex"),j=r.getConfig("steps")||[];if(P===void 0)return;let D=P+1;j[D]?M(D):L()}function g(){let P=r.getState("activeIndex"),j=r.getConfig("steps")||[];if(P===void 0)return;let D=P-1;j[D]?M(D):L()}function h(P){(r.getConfig("steps")||[])[P]?M(P):L()}function w(){if(r.getState("__transitionCallback"))return;let P=r.getState("__activeStep");if(!P||!(P.advanceOnClick??r.getConfig("advanceOnClick")))return;let j=r.getState("__activeElement"),D=ca(r,P);if(D){D(j,P,r.getHookOpts());return}v()}function x(){if(r.getState("__transitionCallback"))return;let P=r.getState("activeIndex"),j=r.getState("__activeStep"),D=r.getState("__activeElement");if(P===void 0||j===void 0||!(r.getConfig("steps")||[])[P-1]||!f("previous"))return;let W=Fv(r,j);if(W)return W(D,j,r.getHookOpts());g()}function C(){if(r.getState("__transitionCallback"))return;let P=r.getState("activeIndex"),j=r.getState("__activeStep"),D=r.getState("__activeElement");if(P===void 0||j===void 0||!f("next"))return;let W=ca(r,j);if(W)return W(D,j,r.getHookOpts());v()}function N(){r.getState("isInitialized")||(di&&di!==i&&di(),di=i,r.setState("isInitialized",!0),document.body.classList.add("driver-active",r.getConfig("animate")?"driver-fade":"driver-simple"),r.getConfig("allowScroll")||document.body.classList.add("driver-no-scroll"),document.body.style.setProperty("--driver-animation-duration",`${r.getConfig("duration")||400}ms`),jx(r),r.listen("overlayClick",m),r.listen("activeElementClick",w),r.listen("escapePress",u),r.listen("closeClick",a),r.listen("arrowLeftPress",x),r.listen("arrowRightPress",C))}function A(){let P=r.getState("__pendingWaitCancel");P&&(r.setState("__pendingWaitCancel",void 0),P())}function E(P,j,D){let W=()=>{te.disconnect(),window.clearTimeout(Z),r.setState("__pendingWaitCancel",void 0),D()},te=new MutationObserver(()=>{ma(P.element)&&W()}),Z=window.setTimeout(W,j);r.setState("__pendingWaitCancel",()=>{te.disconnect(),window.clearTimeout(Z)}),te.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})}function M(P=0,j=!1){A();let D=r.getConfig("steps");if(!D){console.error("No steps to drive through"),L();return}if(!D[P]){L();return}let W=D[P],te=W.waitForElement??r.getConfig("waitForElement")??0;if(!j&&te>0&&W.element&&!ma(W.element)){Rv(r.getState("popover")),E(W,te,()=>M(P,!0));return}if(Dv(r,W)){let se=r.getState("activeIndex"),ce=typeof se=="number"&&P<se?-1:1;D[P+ce]?M(P+ce):ce===1&&L();return}r.setState("__activeOnDestroyed",document.activeElement),r.setState("activeIndex",P);let Z=D[P+1];Dp(r,gx(r,P,{onNextClick:()=>{Z?M(P+1):L()},onPrevClick:()=>{M(P-1)},onCloseClick:()=>{L()}}))}function L(P=!0){if(!r.getState("isInitialized"))return;let j=r.getState("__activeElement"),D=r.getState("__activeStep"),W=r.getState("__activeOnDestroyed"),te=r.getConfig("onDestroyStarted");if(P&&te){te(!j||(j==null?void 0:j.id)==="driver-dummy-element"?void 0:j,D,r.getHookOpts());return}di===i&&(di=void 0);let Z=(D==null?void 0:D.onDeselected)||r.getConfig("onDeselected"),se=r.getConfig("onDestroyed");document.body.classList.remove("driver-active","driver-fade","driver-simple","driver-no-scroll"),document.body.style.removeProperty("--driver-animation-duration"),A(),Tx(r),Nv(r.getState("popover")),_x(),mx(r),r.resetEmitter();let ce=r.getState();if(r.resetState(),j&&D){let X=j.id==="driver-dummy-element";Z&&Z(X?void 0:j,D,r.getHookOpts(ce)),se&&se(X?void 0:j,D,r.getHookOpts(ce))}W&&W.focus()}let F={isActive:()=>r.getState("isInitialized")||!1,refresh:()=>lc(r),drive:(P=0)=>{N(),M(P)},setConfig:r.setConfig,setSteps:P=>{A(),r.resetState(),r.setConfig({...r.getConfig(),steps:P})},getConfig:r.getConfig,getState:r.getState,getActiveIndex:()=>r.getState("activeIndex"),isFirstStep:()=>{let P=r.getState("activeIndex");return P!==void 0&&_n(r,P-1,-1)===void 0},isLastStep:()=>{let P=r.getState("activeIndex");return P!==void 0&&_n(r,P+1,1)===void 0},getActiveStep:()=>r.getState("activeStep"),getActiveElement:()=>r.getState("activeElement"),getPreviousElement:()=>r.getState("previousElement"),getPreviousStep:()=>r.getState("previousStep"),getNextStep:()=>{let P=r.getConfig("steps")||[],j=r.getState("activeIndex");if(j===void 0)return;let D=_n(r,j+1,1);return D===void 0?void 0:P[D]},moveNext:v,movePrevious:g,moveTo:h,hasNextStep:()=>{let P=r.getState("activeIndex");return P!==void 0&&_n(r,P+1,1)!==void 0},hasPreviousStep:()=>{let P=r.getState("activeIndex");return P!==void 0&&_n(r,P-1,-1)!==void 0},highlight:P=>{N(),Dp(r,{...P,popover:P.popover?{showButtons:[],showProgress:!1,progressText:"",...P.popover}:void 0})},destroy:()=>{L(!1)}};return r.setDriver(F),F}const Ox="antseed-console:tour-seen",Ax=t=>`nav-${t}`;function Dx(t){const r=(i,a)=>zc(i,t)?[{target:Ax(i),...a}]:[];return[{title:"Welcome to your gateway",description:"This console runs on your gateway. It decides who can call the API, which sellers on the Antseed network serve those calls, and what they cost. Here is where everything lives."},{target:"workspace",title:"Workspaces",description:"Each workspace has its own wallet, members, keys and budgets. Switch between them here."},...r("wallet",{title:"Fund the wallet",description:"Requests are paid in USDC from the workspace wallet. Add funds by card where available or by sending USDC, and authorize the wallet that may withdraw."}),...r("keys",{title:"API keys",description:"Create a key for each app or person. Each key can have daily, weekly, monthly and total budgets and its own routing policy. Clients call the gateway's /v1 address with the key."}),...Ca(t)?r("settings",{title:"Buyer settings come first",description:"Settings → Buyer is the top of every routing policy: price caps, minimum trust (60 by default) and reputation, verification, payment limits and the RPC endpoint. If sellers you expect are missing, look here first."}):[],...r("routing",{title:"Routing policies",description:"Choose which sellers may serve: allow or block sellers, minimum trust, price caps, TEE only, fallback chains. Policies go from the buyer settings to the gateway default, workspaces, members, keys and presets, and each level can only narrow the one above. The route preview shows which sellers a request would use."}),...r("providers",{title:"Providers",description:"Every provider (seller) on the network this gateway sees, with prices, trust and the latency it measured. Open one to copy its models and an API call, or allow, block or prefer it."}),...r("activity",{title:"Usage and logs",description:"Spend and requests by model, key and member, and a searchable log of every request."}),...r("chat",{title:"Try it in Chat",description:"Chat with any model on the network, paid by your own Web chat key. Every answer shows which seller served it and what it cost."}),{target:"account",title:"That is the tour",description:"Replay it any time from your account menu."}]}function Fx(t){return t instanceof HTMLElement&&t.getClientRects().length>0}function $x(t){var a;const r=t.target?document.querySelector(`[data-tour="${t.target}"]`):null,i=(a=t.target)!=null&&a.startsWith("nav-")?"right":"bottom";return{...Fx(r)?{element:r}:{},popover:{title:t.title,description:t.description,side:i,align:"start"}}}function Uv(t){return`${Ox}:${t}`}function zx(t){try{return localStorage.getItem(Uv(t))==="1"}catch{return!0}}function Ux(t){try{localStorage.setItem(Uv(t),"1")}catch{}}function Fp(t,r){const i=Dx(t).map($x);Lx({steps:i,showProgress:!0,progressText:"{{current}} of {{total}}",nextBtnText:"Next",prevBtnText:"Back",doneBtnText:"Done",popoverClass:"gc-tour",stagePadding:4,stageRadius:8,onDestroyed:()=>Ux(r)}).drive()}function on(t){const r=new Uint8Array(t);let i="";for(const u of r)i+=String.fromCharCode(u);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ga(t){const r=t.replace(/-/g,"+").replace(/_/g,"/"),i=(4-r.length%4)%4,a=r.padEnd(r.length+i,"="),u=atob(a),f=new ArrayBuffer(u.length),m=new Uint8Array(f);for(let v=0;v<u.length;v++)m[v]=u.charCodeAt(v);return f}function zo(){return Bx.stubThis((globalThis==null?void 0:globalThis.PublicKeyCredential)!==void 0&&typeof globalThis.PublicKeyCredential=="function")}const Bx={stubThis:t=>t};function Bv(t){const{id:r}=t;return{...t,id:ga(r),transports:t.transports}}function Hv(t){return t==="localhost"||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(t)}class tt extends Error{constructor({message:r,code:i,cause:a,name:u}){super(r,{cause:a}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=u??a.name,this.code=i}}function Hx({error:t,options:r}){var a,u,f;const{publicKey:i}=r;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(r.signal instanceof AbortSignal)return new tt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((a=i.authenticatorSelection)==null?void 0:a.requireResidentKey)===!0)return new tt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(r.mediation==="conditional"&&((u=i.authenticatorSelection)==null?void 0:u.userVerification)==="required")return new tt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((f=i.authenticatorSelection)==null?void 0:f.userVerification)==="required")return new tt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new tt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new tt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return i.pubKeyCredParams.filter(v=>v.type==="public-key").length===0?new tt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new tt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const m=globalThis.location.hostname;if(Hv(m)){if(i.rp.id!==m)return new tt({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new tt({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new tt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new tt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t}class Wx{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const i=new Error("Cancelling existing WebAuthn API call for new one");i.name="AbortError",this.controller.abort(i)}const r=new AbortController;return this.controller=r,r.signal}cancelCeremony(){if(this.controller){const r=new Error("Manually cancelling existing WebAuthn API call");r.name="AbortError",this.controller.abort(r),this.controller=void 0}}}const Wv=new Wx,Vx=["cross-platform","platform"];function Vv(t){if(t&&!(Vx.indexOf(t)<0))return t}async function qv(t){var A;!t.optionsJSON&&t.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),t={optionsJSON:t});const{optionsJSON:r,useAutoRegister:i=!1}=t;if(!zo())throw new Error("WebAuthn is not supported in this browser");const a={...r,challenge:ga(r.challenge),user:{...r.user,id:ga(r.user.id)},excludeCredentials:(A=r.excludeCredentials)==null?void 0:A.map(Bv)},u={};i&&(u.mediation="conditional"),u.publicKey=a,u.signal=Wv.createNewAbortSignal();let f;try{f=await navigator.credentials.create(u)}catch(E){throw Hx({error:E,options:u})}if(!f)throw new Error("Registration was not completed");const{id:m,rawId:v,response:g,type:h}=f;let w;typeof g.getTransports=="function"&&(w=g.getTransports());let x;if(typeof g.getPublicKeyAlgorithm=="function")try{x=g.getPublicKeyAlgorithm()}catch(E){Mu("getPublicKeyAlgorithm()",E)}let C;if(typeof g.getPublicKey=="function")try{const E=g.getPublicKey();E!==null&&(C=on(E))}catch(E){Mu("getPublicKey()",E)}let N;if(typeof g.getAuthenticatorData=="function")try{N=on(g.getAuthenticatorData())}catch(E){Mu("getAuthenticatorData()",E)}return{id:m,rawId:on(v),response:{attestationObject:on(g.attestationObject),clientDataJSON:on(g.clientDataJSON),transports:w,publicKeyAlgorithm:x,publicKey:C,authenticatorData:N},type:h,clientExtensionResults:f.getClientExtensionResults(),authenticatorAttachment:Vv(f.authenticatorAttachment)}}function Mu(t,r){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${t}. You should report this error to them.
|
|
83
|
-
`,r)}function qx(){if(!zo())return Lu.stubThis(new Promise(r=>r(!1)));const t=globalThis.PublicKeyCredential;return(t==null?void 0:t.isConditionalMediationAvailable)===void 0?Lu.stubThis(new Promise(r=>r(!1))):Lu.stubThis(t.isConditionalMediationAvailable())}const Lu={stubThis:t=>t};function Kx({error:t,options:r}){const{publicKey:i}=r;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(r.signal instanceof AbortSignal)return new tt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new tt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const a=globalThis.location.hostname;if(Hv(a)){if(i.rpId!==a)return new tt({message:`The RP ID "${i.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new tt({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new tt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t}async function Kv(t){var N,A;!t.optionsJSON&&t.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),t={optionsJSON:t});const{optionsJSON:r,useBrowserAutofill:i=!1,verifyBrowserAutofillInput:a=!0}=t;if(!zo())throw new Error("WebAuthn is not supported in this browser");let u;((N=r.allowCredentials)==null?void 0:N.length)!==0&&(u=(A=r.allowCredentials)==null?void 0:A.map(Bv));const f={...r,challenge:ga(r.challenge),allowCredentials:u},m={};if(i){if(!await qx())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&a)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');m.mediation="conditional",f.allowCredentials=[]}m.publicKey=f,m.signal=Wv.createNewAbortSignal();let v;try{v=await navigator.credentials.get(m)}catch(E){throw Kx({error:E,options:m})}if(!v)throw new Error("Authentication was not completed");const{id:g,rawId:h,response:w,type:x}=v;let C;return w.userHandle&&(C=on(w.userHandle)),{id:g,rawId:on(h),response:{authenticatorData:on(w.authenticatorData),clientDataJSON:on(w.clientDataJSON),signature:on(w.signature),userHandle:C},type:x,clientExtensionResults:v.getClientExtensionResults(),authenticatorAttachment:Vv(v.authenticatorAttachment)}}function Nr(t){return t.trim().toLowerCase().replace(/^0x/,"")}function Qv(t,r){return Nr(t)===Nr(r)}const Qx={balanced:"Balanced",price:"Lowest price",latency:"Lowest latency",trust:"Highest trust"};function Gc(){return{allowMode:"any",allowedPeerIds:[],allowedListIds:[],blockedPeerIds:[],blockedListIds:[],minTrustScore:"",minReputation:"",requireVerified:!1,requireTee:!1,maxInputUsdPerMillion:"",maxOutputUsdPerMillion:"",maxCachedInputUsdPerMillion:"",maxImageUsdPerImage:"",preferFreePeers:"inherit",sort:"",modelsMode:"any",allowedModels:[],routes:[]}}function fi(t){return t===void 0?"":String(t)}function Gx(t){return t===void 0?"inherit":t?"yes":"no"}function Yx(t){const r=Gc();return t?{...r,allowMode:t.allowedPeerIds||t.allowedPeerLists?"only":"any",allowedPeerIds:[...t.allowedPeerIds??[]],allowedListIds:[...t.allowedPeerLists??[]],blockedPeerIds:[...t.blockedPeerIds??[]],blockedListIds:[...t.blockedPeerLists??[]],minTrustScore:fi(t.minTrustScore),minReputation:fi(t.minReputation),requireVerified:t.requireVerified===!0,requireTee:t.requireTee===!0,maxInputUsdPerMillion:fi(t.maxInputUsdPerMillion),maxOutputUsdPerMillion:fi(t.maxOutputUsdPerMillion),maxCachedInputUsdPerMillion:fi(t.maxCachedInputUsdPerMillion),maxImageUsdPerImage:fi(t.maxImageUsdPerImage),preferFreePeers:Gx(t.preferFreePeers),sort:t.sort??"",modelsMode:t.allowedModels?"only":"any",allowedModels:[...t.allowedModels??[]],routes:Object.entries(t.modelRoutes??{}).map(([i,a])=>({model:i,peerIds:[...a.peerIds],strict:a.strict===!0}))}:r}class ya extends Error{}function Ou(t,r,i){const a=r.trim();if(a==="")return;const u=Number(a);if(!Number.isFinite(u)||u<0)throw new ya(`${t} must be a positive number.`);if(i!==void 0&&u>i)throw new ya(`${t} must be at most ${i}.`);return u}function hi(t){return[...new Set(t.map(r=>r.trim()).filter(Boolean))]}function $p(t,r){const i=hi(t);return r?i.filter(a=>r.some(u=>u.id===a)):i}function pC(t,r=null){const i={};if(t.allowMode==="only"){const h=$p(t.allowedListIds,r),w=hi(t.allowedPeerIds);(w.length>0||h.length===0)&&(i.allowedPeerIds=w),h.length>0&&(i.allowedPeerLists=h)}const a=hi(t.blockedPeerIds);a.length>0&&(i.blockedPeerIds=a);const u=$p(t.blockedListIds,r);u.length>0&&(i.blockedPeerLists=u);const f=Ou("Minimum trust",t.minTrustScore,100);f!==void 0&&(i.minTrustScore=f);const m=Ou("Minimum reputation",t.minReputation,100);m!==void 0&&(i.minReputation=m),t.requireVerified&&(i.requireVerified=!0),t.requireTee&&(i.requireTee=!0);const v=[["maxInputUsdPerMillion","Input price cap"],["maxOutputUsdPerMillion","Output price cap"],["maxCachedInputUsdPerMillion","Cached input price cap"],["maxImageUsdPerImage","Image price cap"]];for(const[h,w]of v){const x=Ou(w,t[h]);x!==void 0&&(i[h]=x)}t.preferFreePeers!=="inherit"&&(i.preferFreePeers=t.preferFreePeers==="yes"),t.sort&&(i.sort=t.sort),t.modelsMode==="only"&&(i.allowedModels=hi(t.allowedModels));const g=t.routes.filter(h=>h.model.trim()!=="");if(g.length>0){const h=new Set;i.modelRoutes={};for(const w of g){const x=w.model.trim();if(h.has(x))throw new ya(`Model "${x}" has two fallback chains.`);h.add(x);const C=hi(w.peerIds);if(C.length===0)throw new ya(`Add at least one seller to the "${x}" chain.`);i.modelRoutes[x]=w.strict?{peerIds:C,strict:!0}:{peerIds:C}}}return i}function Yc(t){return!t||Object.keys(t).length===0}function mC(t){return Yc(t)?null:t}function Zx(t){var a,u,f,m,v,g;if(Yc(t))return"Inherits";const r=t,i=[];if(r.allowedPeerIds||r.allowedPeerLists){const h=(a=r.allowedPeerLists)!=null&&a.length?` + ${r.allowedPeerLists.length} list${r.allowedPeerLists.length===1?"":"s"}`:"";i.push(`${((u=r.allowedPeerIds)==null?void 0:u.length)??0} allowed${h}`)}if((f=r.blockedPeerIds)!=null&&f.length||(m=r.blockedPeerLists)!=null&&m.length){const h=(v=r.blockedPeerLists)!=null&&v.length?` + ${r.blockedPeerLists.length} list${r.blockedPeerLists.length===1?"":"s"}`:"";i.push(`${((g=r.blockedPeerIds)==null?void 0:g.length)??0} blocked${h}`)}return r.requireTee&&i.push("TEE only"),r.requireVerified&&i.push("verified only"),r.minTrustScore!==void 0&&i.push(`trust ≥ ${r.minTrustScore}`),r.minReputation!==void 0&&i.push(`reputation ≥ ${r.minReputation}`),(r.maxInputUsdPerMillion!==void 0||r.maxOutputUsdPerMillion!==void 0)&&i.push("price caps"),r.allowedModels&&i.push(`${r.allowedModels.length} models`),r.modelRoutes&&i.push(`${Object.keys(r.modelRoutes).length} fallback chains`),r.sort&&i.push(Qx[r.sort].toLowerCase()),r.preferFreePeers&&i.push("free first"),i.join(" · ")||"Custom"}function vC(t){if(!t)return null;const r={};t.minPeerReputation>0&&(r.minReputation=t.minPeerReputation),t.requireVerifier&&(r.requireVerified=!0),t.maxPricing&&(r.maxInputUsdPerMillion=t.maxPricing.inputUsdPerMillion,r.maxOutputUsdPerMillion=t.maxPricing.outputUsdPerMillion,t.maxPricing.cachedInputUsdPerMillion!==null&&(r.maxCachedInputUsdPerMillion=t.maxPricing.cachedInputUsdPerMillion));const i=t.routingPreferences;return i&&(i.minTrustScore>0&&(r.minTrustScore=i.minTrustScore),i.allowedPeerIds.length>0&&(r.allowedPeerIds=[...i.allowedPeerIds]),i.blockedPeerIds.length>0&&(r.blockedPeerIds=[...i.blockedPeerIds])),r}function gC(t){const r=[];t.minPeerReputation>0&&r.push(`reputation ≥ ${t.minPeerReputation}`),t.requireVerifier&&r.push("verified sellers only"),t.maxPricing&&(r.push(`≤ ${gi(t.maxPricing.inputUsdPerMillion)}/M in`),r.push(`≤ ${gi(t.maxPricing.outputUsdPerMillion)}/M out`),t.maxPricing.cachedInputUsdPerMillion!==null&&r.push(`≤ ${gi(t.maxPricing.cachedInputUsdPerMillion)}/M cached`));const i=t.routingPreferences;return i&&(i.minTrustScore>0&&r.push(`trust ≥ ${i.minTrustScore}`),i.allowedPeerIds.length>0&&r.push(`only ${wn(i.allowedPeerIds.length,"allowed seller")}`),i.blockedPeerIds.length>0&&r.push(wn(i.blockedPeerIds.length,"blocked seller")),i.preferFreePeers&&r.push("free first")),r}const wn=(t,r)=>`${t} ${r}${t===1?"":"s"}`,Xx={balanced:"balanced",price:"price",latency:"latency",trust:"trust"};function yC(t){var u,f,m,v,g,h,w;if(Yc(t))return[];const r=t,i=[],a=x=>x?` + ${wn(x,"list")}`:"";if(r.allowedPeerIds||r.allowedPeerLists){const x=((u=r.allowedPeerIds)==null?void 0:u.length)??0;i.push(x===0&&!((f=r.allowedPeerLists)!=null&&f.length)?"No seller allowed":`Allow ${x?wn(x,"seller"):""}${x?a((m=r.allowedPeerLists)==null?void 0:m.length):wn(r.allowedPeerLists.length,"list")}`)}if((v=r.blockedPeerIds)!=null&&v.length||(g=r.blockedPeerLists)!=null&&g.length){const x=((h=r.blockedPeerIds)==null?void 0:h.length)??0;i.push(`Block ${x?wn(x,"seller")+a((w=r.blockedPeerLists)==null?void 0:w.length):wn(r.blockedPeerLists.length,"list")}`)}return r.requireTee&&i.push("TEE only"),r.requireVerified&&i.push("Verified only"),r.minTrustScore!==void 0&&i.push(`Trust ≥ ${r.minTrustScore}`),r.minReputation!==void 0&&i.push(`Reputation ≥ ${r.minReputation}`),r.maxInputUsdPerMillion!==void 0&&i.push(`≤ $${r.maxInputUsdPerMillion}/M in`),r.maxOutputUsdPerMillion!==void 0&&i.push(`≤ $${r.maxOutputUsdPerMillion}/M out`),r.maxCachedInputUsdPerMillion!==void 0&&i.push(`≤ $${r.maxCachedInputUsdPerMillion}/M cached`),r.maxImageUsdPerImage!==void 0&&i.push(`≤ $${r.maxImageUsdPerImage}/image`),r.allowedModels&&i.push(r.allowedModels.length===0?"No model allowed":wn(r.allowedModels.length,"model")),r.modelRoutes&&Object.keys(r.modelRoutes).length>0&&i.push(wn(Object.keys(r.modelRoutes).length,"fallback chain")),r.sort&&i.push(`Sort: ${Xx[r.sort]}`),r.preferFreePeers!==void 0&&i.push(r.preferFreePeers?"Free sellers first":"Free sellers not first"),i}const wC=[{id:"cheapest",label:"Cheapest",description:"Lowest price first, free sellers ahead."},{id:"trusted",label:"Most trusted",description:"Trust 70+ and reputation 60+, ranked by trust."},{id:"tee",label:"TEE only",description:"Only sellers running in a trusted execution environment."},{id:"own",label:"Own peers only",description:"Only sellers in one of your peer lists."}];function xC(t,r=[]){switch(t){case"cheapest":return{sort:"price",preferFreePeers:!0};case"trusted":return{sort:"trust",minTrustScore:70,minReputation:60};case"tee":return{requireTee:!0};case"own":return{allowedPeerIds:hi(r)}}}function SC(t,r,i,a){var m,v,g;const u=structuredClone(t??{}),f=h=>h==null?void 0:h.filter(w=>!Qv(w,i));if(r==="allow")u.allowedPeerIds=[...f(u.allowedPeerIds)??[],i],u.blockedPeerIds=f(u.blockedPeerIds);else if(r==="block")u.blockedPeerIds=[...f(u.blockedPeerIds)??[],i],u.allowedPeerIds&&(u.allowedPeerIds=f(u.allowedPeerIds)),((m=u.allowedPeerIds)==null?void 0:m.length)===0&&!((v=u.allowedPeerLists)!=null&&v.length)&&delete u.allowedPeerIds;else if(r==="prefer"){if(!a)throw new Error("Pick a model to prefer this seller for.");const h={...u.modelRoutes??{}},w=h[a];h[a]={...w??{},peerIds:[i,...f(w==null?void 0:w.peerIds)??[]]},u.modelRoutes=h,u.blockedPeerIds=f(u.blockedPeerIds)}else u.allowedPeerIds&&(u.allowedPeerIds=f(u.allowedPeerIds)),u.blockedPeerIds=f(u.blockedPeerIds),u.modelRoutes&&(u.modelRoutes=Object.fromEntries(Object.entries(u.modelRoutes).map(([h,w])=>[h,{...w,peerIds:f(w.peerIds)??[]}]).filter(([,h])=>h.peerIds.length>0)));return((g=u.blockedPeerIds)==null?void 0:g.length)===0&&delete u.blockedPeerIds,u.modelRoutes&&Object.keys(u.modelRoutes).length===0&&delete u.modelRoutes,u}function kC(t,r){var a;const i=t==null?void 0:t.allowedPeerIds;return!i||(a=t==null?void 0:t.allowedPeerLists)!=null&&a.length?!1:i.length>0&&i.every(u=>Qv(u,r))}const Jx={allowMode:"allowed sellers",minTrustScore:"minimum trust",minReputation:"minimum reputation",requireVerified:"verified only",requireTee:"TEE only",maxInputUsdPerMillion:"input price cap",maxOutputUsdPerMillion:"output price cap",maxCachedInputUsdPerMillion:"cached input price cap",maxImageUsdPerImage:"image price cap",preferFreePeers:"free sellers first",sort:"sort order",modelsMode:"allowed models"};function CC(t){const r=Yx(t),i=Gc(),a={};for(const u of Object.keys(r))JSON.stringify(r[u])!==JSON.stringify(i[u])&&(a[u]=r[u]);return(t.allowedPeerIds||t.allowedPeerLists)&&(a.allowMode="only",a.allowedPeerIds=r.allowedPeerIds,a.allowedListIds=r.allowedListIds),a}function _C(t,r){const i=Gc(),a=new Set;for(const u of Object.keys(r)){const f=JSON.stringify(t[u]);if(f===JSON.stringify(i[u])||f===JSON.stringify(r[u]))continue;const m=Jx[u]??(u==="allowedPeerIds"||u==="allowedListIds"?"allowed sellers":null);m&&a.add(m)}return[...a]}function EC(t,r){return{...t,...r}}function PC(t,r,i){const a=[...t],u=r+i;if(r<0||r>=a.length||u<0||u>=a.length)return a;const[f]=a.splice(r,1);return a.splice(u,0,f),a}function bC(t,r=null){if(!t||t.allowedPeerIds===void 0&&t.allowedPeerLists===void 0||(t.allowedPeerIds??[]).some(a=>a.trim()!==""))return!1;const i=t.allowedPeerLists??[];return i.length===0?!0:r?i.every(a=>{var u;return(((u=r.find(f=>f.id===a))==null?void 0:u.peerIds.length)??0)===0}):!1}function eS(t,r){if(t===void 0)return r;if(r===void 0)return t;const i=new Set(r.map(Nr));return t.filter(a=>i.has(Nr(a)))}function tS(t,r){return t===void 0?r:r===void 0?t:[...new Set([...t,...r])]}function Zc(t,r,i){return t===void 0?r:r===void 0?t:i(t,r)}const zp=(t,r)=>Zc(t,r,Math.max),oa=(t,r)=>Zc(t,r,Math.min),nS=(t,r)=>t.filter(i=>r.some(a=>a.toLowerCase()===i.toLowerCase()));function rS(t,r){const{allowedPeerLists:i,blockedPeerLists:a,...u}=t,f=v=>v.flatMap(g=>{var h;return((h=r.find(w=>w.id===g))==null?void 0:h.peerIds)??[]}),m={...u};return i!==void 0&&(m.allowedPeerIds=[...u.allowedPeerIds??[],...f(i)]),a!=null&&a.length&&(m.blockedPeerIds=[...u.blockedPeerIds??[],...f(a)]),m}function iS(...t){let r={};for(const i of t){if(!i)continue;const a={allowedPeerIds:eS(r.allowedPeerIds,i.allowedPeerIds),blockedPeerIds:tS(r.blockedPeerIds,i.blockedPeerIds),minTrustScore:zp(r.minTrustScore,i.minTrustScore),minReputation:zp(r.minReputation,i.minReputation),requireVerified:r.requireVerified||i.requireVerified?!0:void 0,requireTee:r.requireTee||i.requireTee?!0:void 0,maxInputUsdPerMillion:oa(r.maxInputUsdPerMillion,i.maxInputUsdPerMillion),maxOutputUsdPerMillion:oa(r.maxOutputUsdPerMillion,i.maxOutputUsdPerMillion),maxCachedInputUsdPerMillion:oa(r.maxCachedInputUsdPerMillion,i.maxCachedInputUsdPerMillion),maxImageUsdPerImage:oa(r.maxImageUsdPerImage,i.maxImageUsdPerImage),preferFreePeers:i.preferFreePeers??r.preferFreePeers,sort:i.sort??r.sort,allowedModels:Zc(r.allowedModels,i.allowedModels,nS),modelRoutes:i.modelRoutes||r.modelRoutes?{...r.modelRoutes??{},...i.modelRoutes??{}}:void 0};r=Object.fromEntries(Object.entries(a).filter(([,u])=>u!==void 0))}return r}function oS(t,r){if(t.allowedModels&&!t.allowedModels.some(a=>a.toLowerCase()===r.service.toLowerCase()))return!1;const i=(a,u)=>u!==void 0&&a!==null&&a>u;return!(i(r.inputUsdPerMillion,t.maxInputUsdPerMillion)||i(r.outputUsdPerMillion,t.maxOutputUsdPerMillion)||i(r.cachedInputUsdPerMillion,t.maxCachedInputUsdPerMillion))}function jC(t,r,i=[]){const a=rS(t,i),u=a.allowedPeerIds?new Set(a.allowedPeerIds.map(Nr)):null,f=new Set((a.blockedPeerIds??[]).map(Nr));return r.filter(m=>{const v=Nr(m.peerId);return f.has(v)||u&&!u.has(v)||a.minTrustScore!==void 0&&(m.trustScore??0)<a.minTrustScore||a.minReputation!==void 0&&(m.reputationScore??0)<a.minReputation||a.requireVerified&&!m.verified||a.requireTee&&!m.tee?!1:m.services.some(g=>oS(a,g))})}function TC(t){return!!t&&t.some(r=>r.reputationScore!==null)}function RC(t,r,i=!1){const a=t?t.ownerMemberId===r.memberId:!0;return{admin:r.workspaceAdmin,owner:a,layered:t?vv(t):i}}function sS(t,r){return t===null?r:r===null||Xe(t)<=Xe(r)?t:r}function aS(t,r){const i={};for(const a of Sv)i[a]=sS((t==null?void 0:t[a])??null,(r==null?void 0:r[a])??null);return i}function NC(t){const r=vv(t)?t:null;return{limits:aS(t.limits,r==null?void 0:r.ownerLimits),policy:iS(t.routingPolicy,(r==null?void 0:r.ownerRoutingPolicy)??null)}}function IC(t,r,i){const a={label:i.label};return i.expiresAt!==r.expiresAt&&(a.expiresAt=i.expiresAt),t.admin&&(a.limits=i.adminLimits,a.routingPolicy=i.adminPolicy,i.topupEnabled!==r.topupEnabled&&(a.topupEnabled=i.topupEnabled)),t.owner&&t.layered?(a.ownerLimits=i.ownerLimits,a.ownerRoutingPolicy=i.ownerPolicy):t.owner&&!t.admin&&(a.limits=i.ownerLimits,a.routingPolicy=i.ownerPolicy),a}const lS={allowedPeerIds:"allowed sellers",allowedPeerLists:"allowed peer lists",allowedModels:"allowed models",modelRoutes:"fallback chains",maxInputUsdPerMillion:"input price cap",maxOutputUsdPerMillion:"output price cap",maxCachedInputUsdPerMillion:"cached input price cap",maxImageUsdPerImage:"image price cap",minTrustScore:"minimum trust",minReputation:"minimum reputation"};function uS(t){const[,r=t]=t.split(".");return/Limits$|^limits$/.test(t.split(".")[0]??"")?`${r} limit`:lS[r]??r}function cS(t){const r=[],i=t.fields;Array.isArray(i)&&i.length&&r.push(`Narrowed by the levels above: ${[...new Set(i.map(f=>uS(String(f))))].join(", ")}.`);const a=t.effectiveRoutingPolicy;a&&typeof a=="object"&&r.push(`Routing that would apply: ${Zx(a)}.`);const u=t.effectiveLimits;return u&&typeof u=="object"&&r.push(`Limits that would apply: ${$2(u)}.`),r}const da=Symbol("cancelled");async function MC(t,r,i){const a={};if(t){if(!await i({kind:"empty"}))return da;a.confirmEmpty=!0}for(;;)try{return await r({...a})}catch(u){if(Lr(u,"empty_allow_list")&&!a.confirmEmpty){if(!await i({kind:"empty"}))return da;a.confirmEmpty=!0}else if(Lr(u,"narrowed")&&!a.acceptNarrowed){if(!await i({kind:"narrowed",message:u.message,lines:cS(u.details)}))return da;a.acceptNarrowed=!0}else throw u}}function dS(t){const r=rr(),i=mv();return e1({mutationFn:t.mutationFn,onSuccess:(a,u)=>{var v;if(a===da)return;const f=a;(v=t.onSuccess)==null||v.call(t,f,u);for(const g of t.invalidate??[])r.invalidateQueries({queryKey:g});const m=typeof t.toast=="function"?t.toast(f,u):t.toast;m&&i(m)},onError:t.onError})}async function fS(t=fe){const r=await t.auth.reauthPasskeyOptions(),i=await Kv({optionsJSON:r});return t.auth.reauthPasskeyVerify(i)}async function LC(t,r,i=fe){const{message:a}=await i.auth.reauthWalletNonce(t);return i.auth.reauthWalletVerify(a,await r(a))}function hS(t,r){if(t.kind!=="member"||t.me.member.id!==r)throw new Error("That sign-in belongs to a different account. Reload the page and sign in as yourself.")}const uc="The passkey prompt was closed.";function cc(t){return t instanceof Error&&t.name==="NotAllowedError"}function Xc({error:t,onRetry:r,title:i="Could not load this"}){return d.jsx(lt,{tone:"danger",title:i,action:r?d.jsx(Le,{variant:"outline",size:"sm",onClick:r,children:"Retry"}):void 0,children:ka(t)})}function OC({query:t,children:r,rows:i}){return t.isLoading?d.jsx(Ni,{rows:i}):t.error?d.jsx(Xc,{error:t.error,onRetry:()=>void t.refetch()}):t.data===void 0?null:d.jsx(d.Fragment,{children:r(t.data)})}function AC({children:t,title:r}){return d.jsx("code",{className:"gc-mono",title:r,children:t})}function DC({label:t,value:r,strong:i}){return d.jsxs("div",{className:"gc-figure",children:[d.jsx("div",{className:"gc-figure__label",children:t}),d.jsx("div",{className:i?"gc-figure__value gc-figure__value--strong":"gc-figure__value",children:r})]})}function FC({name:t,hint:r}){return d.jsxs("div",{children:[d.jsx("div",{className:"gc-strong",children:t}),d.jsx("code",{className:"gc-mono gc-muted",children:r})]})}function $C({at:t,format:r}){return t===null?d.jsx(d.Fragment,{children:"Never"}):t<Date.now()?d.jsx(Sm,{tone:"warning",children:"Expired"}):d.jsx(d.Fragment,{children:r(t)})}const pS="Showing last known values — the chain RPC is busy.";function zC({stale:t}){return t?d.jsx("p",{className:"gc-muted",role:"status",children:pS}):null}function UC({to:t,children:r}){return d.jsx("a",{className:"gc-link",href:_a(t),onClick:Hc(t),children:r})}const mS=I.lazy(()=>Ue(()=>import("./WalletSignIn-CE39ggEH.js"),__vite__mapDeps([0,1,2,3,4]))),vS=I.lazy(()=>Ue(()=>import("./WalletConfirm-DR1uVQ0x.js"),__vite__mapDeps([5,6,1,2,3,4])));function gS({isOpen:t,onClose:r,startWith:i,intro:a,onCredentialAdded:u}){const{me:f}=ir(),m=rr(),v=Vc(t),[g,h]=I.useState("idle"),[w,x]=I.useState(i==="wallet"?"add":null),[C,N]=I.useState(null),[A,E]=I.useState(null),[M,L]=I.useState(!1),F=f.member.credentials,P=F.some(X=>X.kind==="passkey"),j=F.some(X=>X.kind==="wallet");function D(X){hS(X,f.member.id),m.setQueryData(Pe.me,X)}function W(X){return Lr(X,"reauth_required")?(h("needed"),N(null)):N(X),!0}async function te(){L(!0),N(null);try{const X=await fe.auth.passkeyRegisterOptions(),Te=await qv({optionsJSON:X});D(await fe.auth.passkeyRegisterVerify(Te)),h("idle"),u==null||u()}catch(X){cc(X)?N(new Error(uc)):W(X)}finally{L(!1)}}async function Z(){L(!0),N(null);try{D(await fS()),h("done")}catch(X){N(cc(X)?new Error(uc):X)}finally{L(!1)}}const se=dS({mutationFn:X=>fe.members.removeCredential(f.member.id,X.id),onSuccess:()=>E(null),onError:X=>{Lr(X,"reauth_required")&&(E(null),h("needed"))},invalidate:[Pe.me]}),ce=F.length<=1;return d.jsxs(cv,{isOpen:t,onClose:r,size:"lg",eyebrow:Uc[f.member.orgRole],title:f.member.label,subtitle:f.member.email??void 0,children:[d.jsxs("div",{className:"gc-stack",children:[a,d.jsxs("section",{className:"gc-stack gc-stack--tight",children:[d.jsx("div",{className:"as-field__label",children:"Your sign-in methods"}),F.length===0?d.jsx(lt,{tone:"info",children:"You signed in through your organization's access proxy and have no passkey or wallet here. Add one to approve sensitive actions, such as authorizing a withdrawal wallet."}):d.jsx("ul",{className:"gc-list gc-credentials",children:F.map(X=>d.jsxs("li",{className:"gc-inline gc-inline--between",children:[d.jsxs("span",{className:"gc-credential",children:[d.jsx(Sm,{children:X.kind})," ",d.jsx("span",{className:"gc-credential__label",children:X.label}),d.jsxs("span",{className:"gc-muted",children:[" · added ",Rp(X.createdAt)," · last used ",Rp(X.lastUsedAt)]})]}),d.jsx(Le,{variant:"ghost",size:"sm",disabled:ce,title:ce?"Add another sign-in method first":void 0,onClick:()=>{se.reset(),E(X)},children:"Remove"})]},X.id))}),ce&&F.length===1&&d.jsx("p",{className:"gc-fineprint",children:"This is your only sign-in method. Add another before removing it."})]}),g==="needed"&&d.jsx(lt,{tone:"info",title:"Confirm it is you",children:d.jsxs("div",{className:"gc-stack gc-stack--tight",children:[d.jsx("span",{children:"Changing your sign-in methods needs a recent sign-in. Confirm with one you already have, then try again."}),d.jsxs("div",{className:"gc-inline gc-inline--wrap",children:[P&&d.jsx(Le,{size:"sm",disabled:M,onClick:()=>void Z(),children:"Confirm with a passkey"}),j&&w!=="confirm"&&d.jsx(Le,{size:"sm",variant:"outline",onClick:()=>x("confirm"),children:"Confirm with a wallet"})]}),w==="confirm"&&d.jsx(I.Suspense,{fallback:d.jsx(Le,{size:"sm",disabled:!0,children:"Loading wallets…"}),children:d.jsx(vS,{onConfirmed:X=>{D(X),h("done"),x(null)}})}),!P&&!j&&d.jsx("span",{children:"Sign out and sign in again, then add it."})]})}),g==="done"&&d.jsx(lt,{tone:"success",children:"Confirmed. Add or remove the sign-in method now."}),v.data&&d.jsxs("section",{className:"gc-stack gc-stack--tight",children:[d.jsx("div",{className:"as-field__label",children:"Add a sign-in method"}),d.jsxs("div",{className:"gc-inline gc-inline--wrap",children:[v.data.passkey&&d.jsx(Le,{variant:"outline",size:"sm",disabled:M||!zo(),onClick:()=>void te(),children:M?"Waiting for your passkey…":"Add a passkey"}),v.data.wallet&&w!=="add"&&d.jsx(Le,{variant:"outline",size:"sm",onClick:()=>x("add"),children:"Add a wallet"}),v.data.oidc&&d.jsxs(Le,{variant:"outline",size:"sm",href:fe.auth.oidcLinkUrl(),children:["Link ",v.data.oidc.label]})]}),w==="add"&&d.jsx(I.Suspense,{fallback:d.jsx(Le,{size:"sm",disabled:!0,children:"Loading wallets…"}),children:d.jsx(mS,{autoConnect:!0,actionLabel:X=>`Add ${X} as a sign-in method`,onError:W,onSignedIn:X=>{D(X),x(null),h("idle"),u==null||u()}})}),d.jsx("p",{className:"gc-fineprint",children:"A wallet you add can become this workspace's withdrawal wallet only 24 hours later."})]}),C?d.jsx(lt,{tone:"danger",children:ka(C)}):null,d.jsx("div",{className:"gc-actions",children:d.jsx(Le,{onClick:r,children:"Done"})})]}),d.jsx(a2,{isOpen:A!==null,busy:se.isPending,error:se.error,onClose:()=>{E(null),se.reset()},onConfirm:()=>A&&se.mutate(A),title:"Remove this sign-in method?",confirmLabel:"Remove",body:`You can no longer sign in with ${(A==null?void 0:A.label)??"it"}.`})]})}const Gv="antseed-console-exposure-dismissed";function yS(t,r,i){return!r||r.mode==="public"||i?!1:Ca(t)}function Up(t){if(!t)return!1;try{return sessionStorage.getItem(Gv)===t}catch{return!1}}function wS(t){try{sessionStorage.setItem(Gv,t)}catch{}}function xS(t){return t.mode==="local"?"This gateway runs on this computer":"This gateway is only reachable on your network"}function SS(t){return t.mode==="local"?"Keys only work while it's on and can't be reached from other machines.":t.personalComputer?"Keys only work while this computer is on, over plain HTTP, and not from outside your network.":"It has no public HTTPS address: keys travel over plain HTTP and do not work from outside your network."}const kS=/^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/;function BC(t){const r=t.trim().toLowerCase().replace(/^https?:\/\//,"").replace(/[/:].*$/,"");return kS.test(r)?r:null}const sa="antseed-gateway.bundle";function HC(t){const r=t.domain??"llm.example.com",i=t.server.trim()||"user@your-server",a=`/tmp/${sa}`;return{exportBundle:`antseed gateway export --out ${sa}`,copy:`scp ${sa} ${i}:${a}`,install:`curl -fsSL https://antseed.com/install-gateway.sh | sudo bash -s -- --domain ${r} --import ${a}`,baseUrl:`https://${r}/v1`,stop:`rm ${sa}`,recover:"antseed gateway console-link --recover",tunnel:`CLOUDFLARED_TUNNEL_TOKEN=<tunnel-token> ANTSEED_TUNNEL_PUBLIC_URL=https://${r} \\
|
|
81
|
+
`)},q0=0,ui=[];function K0(t){var r=I.useRef([]),i=I.useRef([0,0]),a=I.useRef(),u=I.useState(q0++)[0],f=I.useState(tv)[0],m=I.useRef(t);I.useEffect(function(){m.current=t},[t]),I.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(u));var E=f1([t.lockRef.current],(t.shards||[]).map(_p),!0).filter(Boolean);return E.forEach(function(M){return M.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),E.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(u))})}}},[t.inert,t.lockRef.current,t.shards]);var v=I.useCallback(function(E,M){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var L=ea(E),F=i.current,P="deltaX"in E?E.deltaX:F[0]-L[0],j="deltaY"in E?E.deltaY:F[1]-L[1],D,W=E.target,te=Math.abs(P)>Math.abs(j)?"h":"v";if("touches"in E&&te==="h"&&W.type==="range")return!1;var Z=window.getSelection(),se=Z&&Z.anchorNode,ce=se?se===W||se.contains(W):!1;if(ce)return!1;var X=kp(te,W);if(!X)return!0;if(X?D=te:(D=te==="v"?"h":"v",X=kp(te,W)),!X)return!1;if(!a.current&&"changedTouches"in E&&(P||j)&&(a.current=D),!D)return!0;var Te=a.current||D;return H0(Te,M,E,Te==="h"?P:j)},[]),g=I.useCallback(function(E){var M=E;if(!(!ui.length||ui[ui.length-1]!==f)){var L="deltaY"in M?Cp(M):ea(M),F=r.current.filter(function(D){return D.name===M.type&&(D.target===M.target||M.target===D.shadowParent)&&W0(D.delta,L)})[0];if(F&&F.should){M.cancelable&&M.preventDefault();return}if(!F){var P=(m.current.shards||[]).map(_p).filter(Boolean).filter(function(D){return D.contains(M.target)}),j=P.length>0?v(M,P[0]):!m.current.noIsolation;j&&M.cancelable&&M.preventDefault()}}},[]),h=I.useCallback(function(E,M,L,F){var P={name:E,delta:M,target:L,should:F,shadowParent:Q0(L)};r.current.push(P),setTimeout(function(){r.current=r.current.filter(function(j){return j!==P})},1)},[]),y=I.useCallback(function(E){i.current=ea(E),a.current=void 0},[]),x=I.useCallback(function(E){h(E.type,Cp(E),E.target,v(E,t.lockRef.current))},[]),C=I.useCallback(function(E){h(E.type,ea(E),E.target,v(E,t.lockRef.current))},[]);I.useEffect(function(){return ui.push(f),t.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:C}),document.addEventListener("wheel",g,li),document.addEventListener("touchmove",g,li),document.addEventListener("touchstart",y,li),function(){ui=ui.filter(function(E){return E!==f}),document.removeEventListener("wheel",g,li),document.removeEventListener("touchmove",g,li),document.removeEventListener("touchstart",y,li)}},[]);var N=t.removeScrollBar,A=t.inert;return I.createElement(I.Fragment,null,A?I.createElement(f,{styles:V0(u)}):null,N?I.createElement(A0,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Q0(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const G0=h1(ev,K0);var Ac=I.forwardRef(function(t,r){return I.createElement(xa,rn({},t,{ref:r,sideCar:G0}))});Ac.classNames=xa.classNames;var ov=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},ci=new WeakMap,ta=new WeakMap,na={},Nu=0,sv=function(t){return t&&(t.host||sv(t.parentNode))},Y0=function(t,r){return r.map(function(i){if(t.contains(i))return i;var a=sv(i);return a&&t.contains(a)?a:(console.error("aria-hidden",i,"in not contained inside",t,". Doing nothing"),null)}).filter(function(i){return!!i})},av=function(t,r,i,a){var u=Y0(r,Array.isArray(t)?t:[t]);na[i]||(na[i]=new WeakMap);var f=na[i],m=[],v=new Set,g=new Set(u),h=function(x){!x||v.has(x)||(v.add(x),h(x.parentNode))};u.forEach(h);var y=function(x){!x||g.has(x)||Array.prototype.forEach.call(x.children,function(C){if(v.has(C))y(C);else try{var N=C.getAttribute(a),A=N!==null&&N!=="false",E=(ci.get(C)||0)+1,M=(f.get(C)||0)+1;ci.set(C,E),f.set(C,M),m.push(C),E===1&&A&&ta.set(C,!0),M===1&&C.setAttribute(i,"true"),A||C.setAttribute(a,"true")}catch(L){console.error("aria-hidden: cannot operate on ",C,L)}})};return y(r),v.clear(),Nu++,function(){m.forEach(function(x){var C=ci.get(x)-1,N=f.get(x)-1;ci.set(x,C),f.set(x,N),C||(ta.has(x)||x.removeAttribute(a),ta.delete(x)),N||x.removeAttribute(i)}),Nu--,Nu||(ci=new WeakMap,ci=new WeakMap,ta=new WeakMap,na={})}},Z0=function(t,r,i){i===void 0&&(i="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),u=r||ov(t);return u?(a.push.apply(a,Array.from(u.querySelectorAll("[aria-live], script"))),av(a,u,i,"aria-hidden")):function(){return null}},X0=function(t,r,i){i===void 0&&(i="data-inert-ed");var a=r||ov(t);return a?av(t,a,i,"inert"):function(){return null}},J0=function(){return typeof HTMLElement<"u"&&HTMLElement.prototype.hasOwnProperty("inert")},e2=function(t,r,i){return i===void 0&&(i="data-suppressed"),(J0()?X0:Z0)(t,r,i)};let Rr=[];const rc=new Set;function lv(){rc.forEach(t=>t())}function t2(t){Rr=Rr.filter(r=>r!==t),Rr.push(t),lv()}function n2(t){Rr=Rr.filter(r=>r!==t),lv()}function Iu(t){return Rr[Rr.length-1]===t}function uv(t,r,i){const a=I.useRef(i),u=I.useRef(null),[f,m]=I.useState(!1);I.useEffect(()=>{a.current=i},[i]);const v=I.useCallback(()=>{const h=u.current;u.current=null,h&&document.contains(h)&&h.focus({preventScroll:!0})},[]),g=I.useCallback(()=>{a.current()},[]);return I.useEffect(()=>{if(!t)return;const h=r.current;if(!h)return;const y=h;u.current=document.activeElement instanceof HTMLElement?document.activeElement:null,t2(y),m(Iu(y));function x(){m(Iu(y))}function C(N){if(!Iu(y))return;const A=N.target instanceof Element?N.target:null,E=A==null?void 0:A.closest('[role="dialog"]');E&&E!==y&&!y.contains(E)||N.key==="Escape"&&(N.preventDefault(),N.stopPropagation(),N.stopImmediatePropagation(),g())}return rc.add(x),window.addEventListener("keydown",C,!0),()=>{window.removeEventListener("keydown",C,!0),rc.delete(x),n2(y),v()}},[g,t,r,v]),I.useEffect(()=>{var x,C;if(!t||!f)return;const h=r.current;if(!h)return;const y=((C=(x=h.parentElement)==null?void 0:x.parentElement)==null?void 0:C.querySelectorAll("[data-focus-guard]"))??[];return e2([h,...y])},[t,f,r]),{closeDialog:g,isTopDialog:f}}const r2={sm:"24rem",md:"28.75rem",lg:"35rem",xl:"52rem"};function i2(){return d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:d.jsx("path",{d:"M4 4L12 12M12 4L4 12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})}function cv({bodyClassName:t,children:r,className:i,closeLabel:a="Close",eyebrow:u,footer:f,isOpen:m,onClose:v,overlayClassName:g,size:h="md",subtitle:y,title:x}){const C=I.useRef(null),N=I.useId(),A=I.useId(),{closeDialog:E,isTopDialog:M}=uv(m,C,v);if(!m)return null;const L=["as-modal-overlay",g].filter(Boolean).join(" "),F=["as-modal",`as-modal--${h}`,i].filter(Boolean).join(" "),P=["as-modal__body",t].filter(Boolean).join(" "),j={"--as-modal-width":r2[h]};return d.jsx("div",{className:L,role:"presentation",onMouseDown:E,children:d.jsx(Ac,{allowPinchZoom:!0,className:"as-modal__scroll-lock",enabled:M,style:j,children:d.jsx(Oc,{autoFocus:!0,className:"as-modal__focus-lock",disabled:!M,focusOptions:{preventScroll:!0},returnFocus:!1,children:d.jsxs("div",{"aria-describedby":y?A:void 0,"aria-hidden":M?void 0:!0,"aria-labelledby":N,"aria-modal":M?"true":void 0,className:F,ref:C,role:"dialog",tabIndex:-1,onMouseDown:D=>D.stopPropagation(),children:[d.jsxs("header",{className:"as-modal__header",children:[d.jsxs("div",{className:"as-modal__titles",children:[u&&d.jsx("div",{className:"as-modal__eyebrow",children:u}),d.jsx("h2",{className:"as-modal__title",id:N,children:x}),y&&d.jsx("p",{className:"as-modal__subtitle",id:A,children:y})]}),d.jsx(o2,{label:a,className:"as-modal__close",onClick:E,children:d.jsx(i2,{})})]}),d.jsx("div",{className:P,children:r}),f&&d.jsx("footer",{className:"as-modal__footer",children:f})]})})})})}function o2({children:t,className:r,label:i,onClick:a}){return d.jsx("button",{type:"button",className:r,onClick:a,"aria-label":i,children:t})}function s2(t){return t instanceof Error?t.message:typeof t=="string"?t:t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"?t.message:"Something went wrong."}function a2({isOpen:t,title:r,body:i,confirmLabel:a="Confirm",cancelLabel:u="Cancel",busyLabel:f="Working…",tone:m="danger",busy:v,error:g,errorTitle:h="That did not work",confirmDisabled:y,onConfirm:x,onClose:C}){return d.jsx(cv,{isOpen:t,onClose:v?()=>{}:C,title:r,size:"sm",children:d.jsxs("div",{className:"as-confirm",children:[d.jsx("div",{className:"as-confirm__body",children:i}),g?d.jsx(lt,{tone:"danger",title:h,children:s2(g)}):null,d.jsxs("div",{className:"as-confirm__actions",children:[d.jsx(Le,{variant:"ghost",onClick:C,disabled:v,children:u}),d.jsx(Le,{variant:m,onClick:x,disabled:v||y,children:v?f:a})]})]})})}function $o({children:t,className:r,label:i,size:a="md",type:u="button",...f}){const m=["as-icon-button",a==="sm"?"as-icon-button--sm":null,r].filter(Boolean).join(" ");return d.jsx("button",{type:u,className:m,"aria-label":i,title:f.title??i,...f,children:t})}async function dv(t){try{return await navigator.clipboard.writeText(t),!0}catch{return!1}}function Ep(){return d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[d.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2"}),d.jsx("path",{d:"M5 15V5a2 2 0 0 1 2-2h10"})]})}function Pp(){return d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:d.jsx("path",{d:"m5 12 5 5L20 7"})})}function Dc({value:t,label:r="Copy",copiedLabel:i="Copied",size:a="sm",variant:u="outline",className:f,iconOnly:m,onCopied:v}){const[g,h]=I.useState(!1),y=I.useRef(void 0);I.useEffect(()=>()=>window.clearTimeout(y.current),[]);const x=async()=>{await dv(t)&&(h(!0),v==null||v(),window.clearTimeout(y.current),y.current=window.setTimeout(()=>h(!1),1500))};return m?d.jsx($o,{label:g?i:r,size:"sm",className:f,onClick:()=>void x(),children:g?d.jsx(Pp,{}):d.jsx(Ep,{})}):d.jsx(Le,{variant:u,size:a,className:f,leadingIcon:g?d.jsx(Pp,{}):d.jsx(Ep,{}),"aria-live":"polite",onClick:()=>void x(),children:g?i:r})}function l2(){return d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:d.jsx("path",{d:"M4 4L12 12M12 4L4 12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})}function u2({backdropClassName:t,bodyClassName:r,children:i,className:a,closeLabel:u="Close",eyebrow:f,isOpen:m,onClose:v,side:g="right",subtitle:h,title:y}){const x=I.useRef(null),C=I.useId(),N=I.useId(),{closeDialog:A,isTopDialog:E}=uv(m,x,v),M=m&&E,L=["as-drawer-backdrop",m?"as-drawer-backdrop--open":null,t].filter(Boolean).join(" "),F=["as-drawer",`as-drawer--${g}`,m?"as-drawer--open":null,a].filter(Boolean).join(" "),P=["as-drawer__body",r].filter(Boolean).join(" ");return I.useEffect(()=>{if(!m||!E)return;function j(D){const W=x.current;W&&(D.target instanceof Node&&W.contains(D.target)||D.target instanceof Element&&D.target.closest('[role="dialog"], [role="menu"]')!==null||A())}return document.addEventListener("pointerdown",j,!0),()=>document.removeEventListener("pointerdown",j,!0)},[A,m,E]),d.jsxs(d.Fragment,{children:[d.jsx("div",{"aria-hidden":!m,className:L,onClick:A}),d.jsx(Ac,{allowPinchZoom:!0,className:"as-drawer__scroll-lock",enabled:m&&E,children:d.jsx(Oc,{autoFocus:!0,className:"as-drawer__focus-lock",disabled:!m||!E,focusOptions:{preventScroll:!0},returnFocus:!1,children:d.jsxs("aside",{"aria-describedby":h?N:void 0,"aria-hidden":M?void 0:!0,"aria-labelledby":C,"aria-modal":M?"true":void 0,className:F,ref:x,role:"dialog",tabIndex:-1,children:[d.jsxs("header",{className:"as-drawer__header",children:[d.jsxs("div",{className:"as-drawer__titles",children:[f&&d.jsx("div",{className:"as-drawer__eyebrow",children:f}),d.jsx("h2",{className:"as-drawer__title",id:C,children:y}),h&&d.jsx("p",{className:"as-drawer__subtitle",id:N,children:h})]}),d.jsx("button",{type:"button",className:"as-drawer__close",onClick:A,"aria-label":u,children:d.jsx(l2,{})})]}),d.jsx("div",{className:P,children:i})]})})})]})}const c2=["M42.4461 10.2767H39.6752L35.9506 25.7053H38.2537L39.0994 21.902H43.0219L43.8495 25.7053H46.1346L42.4821 10.4203L42.4461 10.2767ZM42.59 19.9286H39.5132L41.0426 12.7525L42.59 19.9286Z","M53.9616 22.494L50.8668 10.2767H47.4841V25.7053H49.5893V13.506L52.6301 25.5618L52.6661 25.7053H56.0667V10.2767H53.9616V22.494Z","M57.7221 12.2681H61.1588V25.7053H63.3899V12.2681H66.8265V10.2767H57.7221V12.2681Z","M72.0265 16.7173H71.3788C70.9649 16.7173 70.6411 16.5917 70.3892 16.3226C70.1373 16.0535 70.0113 15.7485 70.0113 15.3359V13.7033C70.0113 13.3086 70.1552 12.9678 70.4611 12.6987C70.767 12.4116 71.1449 12.2681 71.6307 12.2681H75.1213V10.2767H71.8466C70.5511 10.2767 69.5435 10.5997 68.8418 11.2455C68.14 11.8914 67.7802 12.8601 67.7802 14.116V14.9412C67.7802 16.1791 68.104 17.1299 68.7518 17.7937C69.3995 18.4575 70.2992 18.7804 71.4148 18.7804H72.0625C72.4583 18.7804 72.7462 18.888 72.9262 19.1213C73.1241 19.3545 73.214 19.6595 73.214 20.0542V22.2967C73.214 22.6914 73.0701 23.0322 72.7642 23.3013C72.4583 23.5884 72.0805 23.7319 71.5947 23.7319H68.14V25.7233H71.3788C72.6743 25.7233 73.6819 25.4003 74.3836 24.7545C75.0853 24.1086 75.4452 23.1399 75.4452 21.8841V20.4668C75.4452 19.2289 75.1393 18.296 74.5455 17.6681C73.9518 17.0402 73.0881 16.7352 72.0265 16.7352V16.7173Z","M77.0825 25.7053H84.6576V23.7857H79.3317V18.7086H84.1178V16.7711H79.3317V12.2143H84.6576V10.2767H77.0825V25.7053Z","M86.3129 25.7053H93.888V23.7857H88.544V18.7086H93.3482V16.7711H88.544V12.2143H93.888V10.2767H86.3129V25.7053Z","M102.938 11.102C102.255 10.5459 101.211 10.2767 99.8976 10.2767H95.5253V25.7053H100.149C101.499 25.7053 102.489 25.4362 103.082 24.8801C103.694 24.3239 104 23.409 104 22.1173V13.811C104 12.5731 103.64 11.6581 102.938 11.102ZM100.347 23.7319H97.7564V12.2502H100.365C100.797 12.2502 101.121 12.3758 101.391 12.6269C101.643 12.8781 101.769 13.201 101.769 13.6316V22.3505C101.769 22.8349 101.661 23.1937 101.427 23.409C101.211 23.6243 100.833 23.7319 100.347 23.7319Z"],fv=["M12.5827 3.84445C13.2032 3.84445 13.7062 3.34146 13.7062 2.72099C13.7062 2.10052 13.2032 1.59753 12.5827 1.59753C11.9623 1.59753 11.4593 2.10052 11.4593 2.72099C11.4593 3.34146 11.9623 3.84445 12.5827 3.84445Z","M23.3679 3.84445C23.9884 3.84445 24.4914 3.34146 24.4914 2.72099C24.4914 2.10052 23.9884 1.59753 23.3679 1.59753C22.7474 1.59753 22.2445 2.10052 22.2445 2.72099C22.2445 3.34146 22.7474 3.84445 23.3679 3.84445Z","M8.0889 11.0346C8.70936 11.0346 9.21235 10.5316 9.21235 9.91112C9.21235 9.29065 8.70936 8.78766 8.0889 8.78766C7.46843 8.78766 6.96544 9.29065 6.96544 9.91112C6.96544 10.5316 7.46843 11.0346 8.0889 11.0346Z","M27.8617 11.0346C28.4822 11.0346 28.9852 10.5316 28.9852 9.91112C28.9852 9.29065 28.4822 8.78766 27.8617 8.78766C27.2413 8.78766 26.7383 9.29065 26.7383 9.91112C26.7383 10.5316 27.2413 11.0346 27.8617 11.0346Z","M6.29136 19.1235C6.91183 19.1235 7.41482 18.6205 7.41482 18C7.41482 17.3795 6.91183 16.8766 6.29136 16.8766C5.6709 16.8766 5.16791 17.3795 5.16791 18C5.16791 18.6205 5.6709 19.1235 6.29136 19.1235Z","M29.6593 19.1235C30.2797 19.1235 30.7827 18.6205 30.7827 18C30.7827 17.3795 30.2797 16.8766 29.6593 16.8766C29.0388 16.8766 28.5358 17.3795 28.5358 18C28.5358 18.6205 29.0388 19.1235 29.6593 19.1235Z","M7.19014 28.1111C7.81061 28.1111 8.31359 27.6081 8.31359 26.9877C8.31359 26.3672 7.81061 25.8642 7.19014 25.8642C6.56967 25.8642 6.06668 26.3672 6.06668 26.9877C6.06668 27.6081 6.56967 28.1111 7.19014 28.1111Z","M28.7605 28.1111C29.381 28.1111 29.884 27.6081 29.884 26.9877C29.884 26.3672 29.381 25.8642 28.7605 25.8642C28.14 25.8642 27.6371 26.3672 27.6371 26.9877C27.6371 27.6081 28.14 28.1111 28.7605 28.1111Z","M17.9753 12.3827C19.2163 12.3827 20.2222 11.2762 20.2222 9.91112C20.2222 8.54609 19.2163 7.43951 17.9753 7.43951C16.7344 7.43951 15.7284 8.54609 15.7284 9.91112C15.7284 11.2762 16.7344 12.3827 17.9753 12.3827Z","M17.9753 19.7975C19.7126 19.7975 21.121 18.188 21.121 16.2025C21.121 14.217 19.7126 12.6074 17.9753 12.6074C16.238 12.6074 14.8296 14.217 14.8296 16.2025C14.8296 18.188 16.238 19.7975 17.9753 19.7975Z","M17.9753 30.1333C20.209 30.1333 22.0198 27.719 22.0198 24.7408C22.0198 21.7625 20.209 19.3482 17.9753 19.3482C15.7416 19.3482 13.9309 21.7625 13.9309 24.7408C13.9309 27.719 15.7416 30.1333 17.9753 30.1333Z","M12.3264 2.40809C12.4993 2.26669 12.7542 2.29198 12.8956 2.4647L16.9401 7.40792C17.0815 7.58074 17.0562 7.83563 16.8835 7.9771C16.7106 8.1185 16.4558 8.09322 16.3143 7.92049L12.2698 2.97728C12.1284 2.80446 12.1537 2.54957 12.3264 2.40809Z","M23.055 2.4647C23.1965 2.29198 23.4514 2.26669 23.6242 2.40809C23.7969 2.54957 23.8222 2.80446 23.6808 2.97728L19.6364 7.92049C19.4949 8.09322 19.24 8.1185 19.0672 7.9771C18.8945 7.83563 18.8692 7.58074 19.0106 7.40792L23.055 2.4647Z","M7.73168 9.72198C7.83619 9.52458 8.08064 9.44939 8.27805 9.5539L15.9176 13.5983C16.1149 13.7029 16.1901 13.9473 16.0856 14.1447C15.9811 14.3421 15.7367 14.4173 15.5393 14.3128L7.89976 10.2683C7.70236 10.1638 7.62717 9.91938 7.73168 9.72198Z","M27.6726 9.5539C27.87 9.44939 28.1144 9.52458 28.219 9.72198C28.3235 9.91938 28.2483 10.1638 28.0509 10.2683L20.4114 14.3128C20.214 14.4173 19.9695 14.3421 19.865 14.1447C19.7605 13.9473 19.8357 13.7029 20.0331 13.5983L27.6726 9.5539Z","M14.7875 16.6988C15.0096 16.6756 15.2087 16.8371 15.2321 17.0591C15.2553 17.2812 15.0938 17.4803 14.8718 17.5037L6.3335 18.4024C6.11145 18.4257 5.91232 18.2642 5.88895 18.0421C5.8657 17.8201 6.02718 17.621 6.24924 17.5976L14.7875 16.6988Z","M21.1631 16.6988L29.7014 17.5976C29.9235 17.621 30.085 17.8201 30.0617 18.0421C30.0383 18.2642 29.8392 18.4257 29.6171 18.4024L21.0789 17.5037C20.8568 17.4803 20.6953 17.2812 20.7186 17.0591C20.742 16.8371 20.9411 16.6756 21.1631 16.6988Z","M15.1149 23.0231C15.319 22.9324 15.5578 23.0244 15.6485 23.2285C15.7392 23.4326 15.6472 23.6714 15.4432 23.7621L7.35427 27.3572C7.15017 27.4478 6.91133 27.3559 6.82063 27.1518C6.72997 26.9477 6.82192 26.7089 7.02601 26.6182L15.1149 23.0231Z","M20.3021 23.2285C20.3928 23.0244 20.6316 22.9324 20.8357 23.0231L28.9246 26.6182C29.1287 26.7089 29.2207 26.9477 29.13 27.1518C29.0393 27.3559 28.8005 27.4478 28.5964 27.3572L20.5075 23.7621C20.3034 23.6714 20.2114 23.4326 20.3021 23.2285Z"],hv="#10B981";function d2({height:t=24,className:r}){return d.jsxs("svg",{className:r,height:t,width:t*104/36,viewBox:"0 0 104 36",fill:"none",role:"img","aria-label":"Antseed",children:[fv.map(i=>d.jsx("path",{d:i,fill:hv},i)),c2.map(i=>d.jsx("path",{d:i,fill:"currentColor"},i))]})}function f2({size:t=24,className:r}){return d.jsx("svg",{className:r,height:t,width:t,viewBox:"4 0 28 32",fill:"none",role:"img","aria-label":"Antseed",children:fv.map(i=>d.jsx("path",{d:i,fill:hv},i))})}function No({className:t,height:r,radius:i,style:a,width:u,...f}){const m=["as-skeleton",t].filter(Boolean).join(" ");return d.jsx("div",{className:m,style:{...a,...r!==void 0?{height:r}:{},...i!==void 0?{borderRadius:i}:{},...u!==void 0?{width:u}:{}},...f})}function gk({title:t,description:r,actions:i}){return d.jsxs("header",{className:"as-page-header",children:[d.jsxs("div",{className:"as-page-header__text",children:[d.jsx("h1",{children:t}),r&&d.jsx("p",{children:r})]}),i&&d.jsx("div",{className:"as-page-header__actions",children:i})]})}function yk({title:t,description:r,actions:i,children:a,flush:u,className:f}){return d.jsxs("section",{className:["as-panel",f].filter(Boolean).join(" "),children:[(t||i)&&d.jsxs("div",{className:"as-panel__head",children:[d.jsxs("div",{children:[t&&d.jsx("h2",{className:"as-panel__title",children:t}),r&&d.jsx("p",{className:"as-panel__desc",children:r})]}),i&&d.jsx("div",{className:"as-panel__actions",children:i})]}),d.jsx(Sc,{className:"as-panel__card",children:d.jsx("div",{className:u?"as-panel__body as-panel__body--flush":"as-panel__body",children:a})})]})}function h2(t){return t!==null&&t>=1?"danger":t!==null&&t>=.8?"warning":"default"}function wk({label:t,value:r,sub:i,meter:a,tone:u}){const f=a==null?null:Math.max(0,Math.min(1,a));return d.jsxs(Sc,{className:"as-stat",children:[d.jsx("div",{className:"as-stat__label",children:t}),d.jsx("div",{className:"as-stat__value",children:r}),i&&d.jsx("div",{className:"as-stat__sub",children:i}),f!==null&&d.jsx("div",{className:`as-meter as-meter--${u??h2(f)}`,role:"meter","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(f*100),children:d.jsx("span",{style:{width:`${f*100}%`}})})]})}function xk({title:t,body:r,action:i,icon:a}){return d.jsxs("div",{className:"as-empty",children:[a&&d.jsx("div",{className:"as-empty__icon","aria-hidden":"true",children:a}),d.jsx("div",{className:"as-empty__title",children:t}),r&&d.jsx("div",{className:"as-empty__body",children:r}),i&&d.jsx("div",{className:"as-empty__action",children:i})]})}function Ni({rows:t=4,height:r=28}){return d.jsx("div",{className:"as-loading","aria-busy":"true","aria-label":"Loading",children:Array.from({length:t},(i,a)=>d.jsx(No,{height:r},a))})}function Sk({items:t}){return d.jsx("dl",{className:"as-details",children:t.map(([r,i],a)=>d.jsxs("div",{className:"as-details__row",children:[d.jsx("dt",{children:r}),d.jsx("dd",{children:i})]},a))})}function kk({code:t,label:r}){return d.jsxs("div",{className:"as-code",children:[d.jsxs("div",{className:"as-code__bar",children:[d.jsx("span",{className:"as-code__label",children:r}),d.jsx(Dc,{value:t})]}),d.jsx("pre",{children:d.jsx("code",{children:t})})]})}function Ck({secret:t,note:r="Copy it now. It will not be shown again."}){return d.jsxs("div",{className:"as-secret",children:[d.jsxs("div",{className:"as-secret__row",children:[d.jsx("code",{className:"as-secret__value",children:t}),d.jsx(Dc,{value:t})]}),d.jsx("p",{className:"as-secret__note",children:r})]})}function p2(t,r){return["as-field",r==="sm"?"as-field--sm":null,t].filter(Boolean).join(" ")}function m2(t,r){return["as-field__input",t,r?"as-field__input--mono":null].filter(Boolean).join(" ")}function v2({error:t,hint:r}){return t?d.jsx("span",{className:"as-field__error",children:t}):r?d.jsx("span",{className:"as-field__hint",children:r}):null}function g2({className:t,error:r,hint:i,id:a,label:u,size:f,mono:m,...v}){const g=I.useId(),h=a??v.name??g;return d.jsxs("label",{className:p2(t,f),htmlFor:h,children:[u&&d.jsx("span",{className:"as-field__label",children:u}),d.jsx("input",{id:h,className:m2(void 0,m),"aria-invalid":r?!0:void 0,...v}),d.jsx(v2,{error:r,hint:i})]})}const pv=I.createContext(()=>{});function mv(){return I.useContext(pv)}let y2=1;function w2({children:t}){const[r,i]=I.useState([]),a=I.useCallback((u,f="success")=>{const m=y2++;i(v=>[...v.slice(-3),{id:m,tone:f,text:u}]),window.setTimeout(()=>i(v=>v.filter(g=>g.id!==m)),4e3)},[]);return d.jsxs(pv.Provider,{value:a,children:[t,d.jsx("div",{className:"as-toasts",role:"status","aria-live":"polite",children:r.map(u=>d.jsx("div",{className:`as-toast as-toast--${u.tone}`,children:u.text},u.id))})]})}const x2="/console/api",S2="x-antseed-console";class Sa extends Error{constructor(i,a,u,f={}){super(u);gu(this,"details");this.status=i,this.code=a,this.name="ConsoleApiError",this.details=f}}function Lr(t,r){return t instanceof Sa&&(r===void 0||t.code===r)}const bp={buyer_policy_unsupported:"The buyer behind this gateway cannot apply routing policies yet. Update Antseed on the buyer host and restart it.",restart_unsupported:"The buyer cannot restart itself here. The change is saved; restart the buyer yourself to apply it.",reauth_required:"For this action, sign in again first.",config_unreadable:"The gateway could not read the buyer configuration file, so nothing was changed. Check the file on the gateway host.",operator_not_yours:"That wallet is not one of your sign-in methods. Add it as a sign-in method first, then authorize it.",reauth_wrong_member:"That passkey or wallet belongs to someone else. Confirm with one of your own sign-in methods.",reauth_unavailable:"You are signed in through Cloudflare Access, which cannot confirm this action. Sign in with a passkey or wallet instead (add one under Your sign-in methods first if you have none), then retry.",access_reauth_required:"Your Cloudflare Access sign-in is more than 5 minutes old. Sign out of Cloudflare Access, sign in again, then retry.",reauth_other_credential:"Confirm with a different passkey or wallet than the one you are making the operator, then retry.",session_required:"Only an organization admin signed in to the console can change the export endpoint or content logging. Management tokens cannot.",otlp_headers_required:"You changed the endpoint, so the saved header values are not sent to it. Enter the header values again.",empty_allow_list:"This allow list is empty, so no seller could serve. Confirm to save it anyway.",last_credential:"You cannot remove your only sign-in method, or you could not sign in again. Add another passkey or wallet first.",credential_exists:"This passkey or wallet is already registered.",max_keys_reached:"You already have as many keys as you are allowed. Revoke one, or ask an admin to raise your limit."};function ka(t){return t instanceof Sa&&Object.hasOwn(bp,t.code)?bp[t.code]:t instanceof Error?t.message:typeof t=="string"?t:"Something went wrong."}function yr(t,r){return{...t,...r!=null&&r.confirmEmpty?{confirmEmpty:!0}:{},...r!=null&&r.acceptNarrowed?{acceptNarrowed:!0}:{}}}function ra(t){if(!t)return"";const r=new URLSearchParams;for(const[a,u]of Object.entries(t))u==null||u===""||r.set(a,String(u));const i=r.toString();return i?`?${i}`:""}async function k2(t){let r=`http_${t.status}`,i=t.statusText||`Request failed (${t.status})`,a={};try{const u=await t.json();u!=null&&u.error&&typeof u.error.code=="string"&&(r=u.error.code),u!=null&&u.error&&typeof u.error.message=="string"&&(i=u.error.message),u&&typeof u=="object"&&(a={...u.error,...u})}catch{}return new Sa(t.status,r,i,a)}function C2(t=(i,a)=>fetch(i,a),r=x2){async function i(h,y,x={}){const C={accept:"application/json"};h!=="GET"&&h!=="HEAD"&&(C[S2]="1");let A;x.body!==void 0&&(C["content-type"]="application/json",A=JSON.stringify(x.body));let E;try{E=await t(`${r}${y}${ra(x.query)}`,{method:h,headers:C,body:A,credentials:"same-origin"})}catch{throw new Sa(0,"network_error","Could not reach the gateway.")}if(!E.ok)throw await k2(E);return E.status===204?void 0:(E.headers.get("content-type")??"").includes("json")?await E.json():await E.text()}const a=(h,y)=>i("GET",h,{query:y}),u=(h,y)=>i("POST",h,{body:y??{}}),f=(h,y)=>i("PATCH",h,{body:y}),m=(h,y)=>i("PUT",h,{body:y}),v=h=>i("DELETE",h),g=encodeURIComponent;return{request:i,auth:{config:()=>a("/auth/config"),me:()=>a("/auth/me"),setup:h=>u("/auth/setup",{token:h}),invite:h=>u("/auth/invite",{token:h}),passkeyRegisterOptions:h=>u("/auth/passkey/register/options",{enrollment:h}),passkeyRegisterVerify:(h,y)=>u("/auth/passkey/register/verify",{enrollment:y,response:h}),passkeyLoginOptions:()=>u("/auth/passkey/login/options",{}),passkeyLoginVerify:h=>u("/auth/passkey/login/verify",{response:h}),walletNonce:h=>u("/auth/wallet/nonce",{address:h}),walletVerify:(h,y,x)=>u("/auth/wallet/verify",{message:h,signature:y,enrollment:x}),oidcStartUrl:h=>`${r}/auth/oidc/start${ra({enrollment:h})}`,oidcLinkUrl:()=>`${r}/auth/oidc/start?link=1`,reauthPasskeyOptions:()=>u("/auth/reauth/passkey/options",{}),reauthPasskeyVerify:h=>u("/auth/reauth/passkey/verify",{response:h}),reauthWalletNonce:h=>u("/auth/reauth/wallet/nonce",{address:h}),reauthWalletVerify:(h,y)=>u("/auth/reauth/wallet/verify",{message:h,signature:y}),apiKey:h=>u("/auth/api-key",{key:h}),logout:()=>u("/auth/logout")},members:{list:()=>a("/members"),update:(h,y,x)=>f(`/members/${g(h)}`,yr(y,x)),disable:h=>u(`/members/${g(h)}/disable`),enable:h=>u(`/members/${g(h)}/enable`),removeCredential:(h,y)=>v(`/members/${g(h)}/credentials/${g(y)}`)},invites:{list:()=>a("/invites"),create:h=>u("/invites",h),revoke:h=>v(`/invites/${g(h)}`)},workspaces:{list:()=>a("/workspaces"),get:h=>a(`/workspaces/${g(h)}`),create:(h,y)=>u("/workspaces",yr(h,y)),update:(h,y,x)=>f(`/workspaces/${g(h)}`,yr(y,x)),remove:h=>v(`/workspaces/${g(h)}`),members:h=>a(`/workspaces/${g(h)}/members`),setMember:(h,y,x)=>m(`/workspaces/${g(h)}/members/${g(y)}`,{role:x}),removeMember:(h,y)=>v(`/workspaces/${g(h)}/members/${g(y)}`)},keys:{list:(h={})=>a("/keys",h),create:(h,y)=>u("/keys",yr(h,y)),update:(h,y,x)=>f(`/keys/${g(h)}`,yr(y,x)),rotate:h=>u(`/keys/${g(h)}/rotate`),revoke:h=>u(`/keys/${g(h)}/revoke`)},adminTokens:{list:()=>a("/admin-tokens"),create:(h,y,x)=>u("/admin-tokens",{label:h,scope:y,...x!==void 0?{expiresInDays:x}:{}}),revoke:h=>v(`/admin-tokens/${g(h)}`)},usage:{report:h=>a("/usage",h),requests:h=>a("/requests",h),request:h=>a(`/requests/${g(h)}`),exportUrl:h=>`${r}/usage/export.csv${ra(h)}`},audit:{list:h=>a("/audit",h)},wallet:{get:h=>a(`/workspaces/${g(h)}/wallet`),cardLink:(h,y,x)=>u(`/workspaces/${g(h)}/wallet/card-link`,{amountUsd:y,provider:x}),watch:(h,y)=>u(`/workspaces/${g(h)}/wallet/watch`,{mode:y}),deposits:h=>a(`/workspaces/${g(h)}/deposits`),addDeposit:(h,y)=>u(`/workspaces/${g(h)}/deposits`,{txHash:y}),approveDeposit:(h,y,x)=>m(`/workspaces/${g(h)}/deposits/${g(y)}/approval`,{note:x}),unapproveDeposit:(h,y)=>i("DELETE",`/workspaces/${g(h)}/deposits/${g(y)}/approval`),operator:(h,y=!1)=>a(`/workspaces/${g(h)}/wallet/operator`,{fresh:y?1:void 0}),operators:()=>a("/wallet/operators"),operatorSync:(h,y)=>u(`/workspaces/${g(h)}/wallet/operator/sync`,y?{txHash:y}:{}),operatorAuth:(h,y)=>u(`/workspaces/${g(h)}/wallet/operator-auth`,{operator:y}),channels:(h,y=!1,x=!1)=>a(`/workspaces/${g(h)}/channels`,{all:y?1:void 0,fresh:x?1:void 0}),closeChannel:(h,y)=>u(`/workspaces/${g(h)}/channels/close`,{peerId:y}),rewards:h=>a(`/workspaces/${g(h)}/rewards`),chain:()=>a("/chain")},chat:{models:h=>a("/chat/models",{workspace:h}),context:h=>a("/chat/context",{workspace:h}),threads:h=>a("/chat/threads",{workspace:h}),thread:(h,y)=>a(`/chat/threads/${g(y)}`,{workspace:h}),deleteThread:(h,y)=>v(`/chat/threads/${g(y)}${ra({workspace:h})}`)},network:{peers:()=>a("/peers"),models:()=>a("/models"),routePreview:h=>a("/route-preview",h),gatewayPolicy:()=>a("/routing"),buyerLimits:()=>a("/routing/buyer-limits"),setGatewayPolicy:(h,y)=>i("PUT","/routing",{body:h,query:{confirmEmpty:y!=null&&y.confirmEmpty?1:void 0,acceptNarrowed:y!=null&&y.acceptNarrowed?1:void 0}}),peerLists:()=>a("/peer-lists"),createPeerList:h=>u("/peer-lists",h),updatePeerList:(h,y)=>f(`/peer-lists/${g(h)}`,y),removePeerList:h=>v(`/peer-lists/${g(h)}`)},presets:{list:h=>a("/presets",{workspace:h}),create:(h,y)=>u("/presets",yr(h,y)),update:(h,y,x)=>f(`/presets/${g(h)}`,yr(y,x)),remove:h=>v(`/presets/${g(h)}`)},settings:{status:()=>a("/status"),get:()=>a("/settings"),updateBuyer:h=>f("/settings/buyer",h),setObservability:h=>m("/settings/observability",h)}}}function vv(t){return!!t&&"ownerRoutingPolicy"in t}const fe=C2();function Ca(t){return t.orgRole==="owner"||t.orgRole==="admin"}function Fc(t){return Ca(t)||t.workspaceRole==="admin"}const $c=[{id:"overview",label:"Overview",group:"Workspace",access:"member"},{id:"chat",label:"Chat",group:"Workspace",access:"member"},{id:"activity",label:"Activity",group:"Workspace",access:"member"},{id:"logs",label:"Logs",group:"Workspace",access:"member"},{id:"keys",label:"Keys",group:"Workspace",access:"member"},{id:"presets",label:"Presets",group:"Workspace",access:"member"},{id:"wallet",label:"Wallet & Funding",group:"Money",access:"workspaceAdmin"},{id:"rewards",label:"Rewards",group:"Money",access:"workspaceAdmin"},{id:"providers",label:"Providers",group:"Routing",access:"member"},{id:"models",label:"Models",group:"Routing",access:"member"},{id:"routing",label:"Routing",group:"Routing",access:"workspaceAdmin"},{id:"members",label:"Members",group:"Organization",access:"workspaceAdmin"},{id:"workspaces",label:"Workspaces",group:"Organization",access:"workspaceAdmin"},{id:"audit",label:"Audit log",group:"Organization",access:"orgAdmin"},{id:"settings",label:"Settings",group:"Organization",access:"orgAdmin"}];function zc(t,r){const i=$c.find(a=>a.id===t);return i?i.access==="orgAdmin"?Ca(r):i.access==="workspaceAdmin"?Fc(r):!0:!1}function _2(t){return $c.filter(r=>zc(r.id,t))}function E2(t,r){const i=t.me.workspaces.find(a=>a.workspace.id===r);return{orgRole:t.me.member.orgRole,workspaceRole:(i==null?void 0:i.role)??null}}const Uc={owner:"Owner",admin:"Admin",member:"Member"};function P2(t,r){return r?`${t}/${encodeURIComponent(r)}`:t}function b2(t){const r=t.join("/");return r===""?null:r}function j2(t,r){return t==="network"?P2("providers",b2(r)):null}const gv=I.createContext(null);function ir(){const t=I.useContext(gv);if(!t)throw new Error("useConsole outside the console shell");return t}const yv="antseed-console-workspace";function T2(){try{return localStorage.getItem(yv)}catch{return null}}function R2(t){try{localStorage.setItem(yv,t)}catch{}}function jp(t,r){const i=t.workspaces.map(a=>a.workspace);return i.find(a=>a.id===r)??i.find(a=>a.isDefault)??i[0]??null}function _k(){const{workspace:t,viewer:r,me:i}=ir();return Fc(r)?{workspace:t.id}:{workspace:t.id,member:i.member.id}}const ic="antseed-console-theme";function wv(){try{const t=localStorage.getItem(ic);return t==="light"||t==="dark"?t:"system"}catch{return"system"}}function N2(){const t=wv();t!=="system"&&(document.documentElement.dataset.theme=t)}function I2(){const[t,r]=I.useState(wv);return I.useEffect(()=>{t==="system"?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=t;try{t==="system"?localStorage.removeItem(ic):localStorage.setItem(ic,t)}catch{}},[t]),[t,r]}function Ek(){var r;const t=document.documentElement.dataset.theme;return t?t==="dark":((r=window.matchMedia)==null?void 0:r.call(window,"(prefers-color-scheme: dark)").matches)??!1}const Io="/console";function M2(t){try{return decodeURIComponent(t)}catch{return t}}function xv(t,r="",i=""){const u=(t.startsWith(Io)?t.slice(Io.length):t).split("/").filter(Boolean).map(M2);return{page:u[0]??"",rest:u.slice(1),query:new URLSearchParams(r),hash:i.replace(/^#/,"")}}function Tp(){return xv(window.location.pathname,window.location.search,window.location.hash)}const oc=new Set;function an(t,r={}){const i=t.startsWith("/")?`${Io}${t}`:`${Io}/${t}`;r.replace?window.history.replaceState(null,"",i):window.history.pushState(null,"",i),oc.forEach(a=>a())}function Bc(){const[t,r]=I.useState(Tp);return I.useEffect(()=>{const i=()=>r(Tp());return oc.add(i),window.addEventListener("popstate",i),()=>{oc.delete(i),window.removeEventListener("popstate",i)}},[]),t}function _a(t){return`${Io}/${t.replace(/^\//,"")}`}function Hc(t){return r=>{r.defaultPrevented||r.button!==0||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||(r.preventDefault(),an(t))}}const L2=6;function Xe(t){if(t==null||t==="")return 0;const r=Number(t);return Number.isFinite(r)?r:0}function O2(t,r={}){if(t==null)return"—";const i=typeof t=="number"?t:Xe(t),a=i<0?"-":"",u=Math.abs(i);return r.compact&&u>=1e4?`${a}$${new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(u)}`:u!==0&&u<1e-4?`${a}<$0.0001`:u!==0&&u<.01?`${a}$${u.toFixed(4).replace(/0+$/,"").replace(/\.$/,"")}`:`${a}$${u.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function Pk(t){const r=t.trim().replace(/^\$/,"").replace(/,/g,"");if(r==="")return null;const i=/^(\d+)(?:\.(\d{0,6}))?$/.exec(r);if(!i)throw new Error("Use a dollar amount like 5 or 12.50 (up to 6 decimals).");const a=i[1].replace(/^0+(?=\d)/,""),u=(i[2]??"").padEnd(L2,"0");return`${a}.${u}`}function bk(t){return t==null?"":t.includes(".")?t.replace(/0+$/,"").replace(/\.$/,""):t}function A2(t,r={}){return t==null||!Number.isFinite(t)?"—":r.compact&&Math.abs(t)>=1e4?new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(t):t.toLocaleString("en-US")}function jk(t){return A2(t,{compact:!0})}function gi(t){return t==null?"—":t===0?"Free":t<.01?`$${t.toLocaleString("en-US",{maximumSignificantDigits:2})}`:`$${t.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:t<1?3:2})}`}function Tk(t){return t?t.min===t.max?gi(t.min):`${t.min===0?"$0":gi(t.min)}–${gi(t.max)}`:"—"}function Rk(t){return t==null?"—":t>=1e3?`${(t/1e3).toFixed(t>=1e4?0:1)} s`:`${Math.round(t)} ms`}function Nk(t){if(t==null)return"—";const r=Math.floor(t/6e4);if(r<1)return"<1 min";if(r<60)return`${r} min`;const i=Math.floor(r/60);return i<48?`${i} h ${r%60} min`:`${Math.floor(i/24)} d ${i%24} h`}function D2(t){return t?new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function F2(t){return t?new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"—"}function Rp(t,r=Date.now()){if(!t)return"Never";const i=r-t,a=i<0,u=Math.abs(i),f=6e4,m=60*f,v=24*m;let g;if(u<f)return a?"in a moment":"just now";if(u<m)g=`${Math.round(u/f)} min`;else if(u<v)g=`${Math.round(u/m)} h`;else if(u<30*v)g=`${Math.round(u/v)} d`;else return F2(t);return a?`in ${g}`:`${g} ago`}function sn(t,r=6,i=4){return t?t.length<=r+i+1?t:`${t.slice(0,r)}…${t.slice(-i)}`:"—"}const Sv=["daily","weekly","monthly","total"],Ik={daily:"Daily",weekly:"Weekly",monthly:"Monthly",total:"Total"};function $2(t){if(!t)return"No limits";const r={daily:"/day",weekly:"/week",monthly:"/month",total:" total"},i=Sv.filter(a=>t[a]!==null).map(a=>`${O2(t[a])}${r[a]}`);return i.length>0?i.join(" · "):"No limits"}function Mk(t,r=Date.now()){const i=new Date(r),a=Date.UTC(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate());if(t==="daily")return a;if(t==="monthly")return Date.UTC(i.getUTCFullYear(),i.getUTCMonth(),1);const u=(i.getUTCDay()+6)%7;return a-u*864e5}const z2=15*6e4;function U2(t){return t.status==="active"||t.status==="open"||t.status==="closing"||t.status==="withdrawable"}function Lk(t,r){return t.status==="withdrawable"?"withdraw":t.status!=="active"&&t.status!=="open"?"none":t.canCooperativeClose&&!r?"cooperative":"on-chain"}function B2(t){return t.closeRequestedAt===null?null:t.closeRequestedAt+z2}function H2(t,r=Date.now()){const i=Math.max(0,t-r);return i>=6e4?`${Math.ceil(i/6e4)} min`:`${Math.ceil(i/1e3)} s`}function Ok(t,r=Date.now()){if(t.status==="closing"){const i=B2(t);return i===null?"closing":`closing · ${H2(i,r)} left`}return t.status==="withdrawable"?"ready to withdraw":t.status==="timedout"?"withdrawn":t.status}function Ak(t){return t.status==="active"||t.status==="open"?"success":t.status==="withdrawable"?"warning":t.status==="closing"?"info":"neutral"}function W2(t){return Math.max(0,Xe(t.reserved)-Xe(t.spent))}function V2(t){const r=t.filter(i=>i.status==="withdrawable");return{count:r.length,amount:r.reduce((i,a)=>i+W2(a),0)}}function Dk(t){return t.filter(U2).reduce((r,i)=>r+Math.max(0,Xe(i.spent)-Xe(i.settled??"0")),0)}function Fk(t){return Xe(t.reserved)>0&&Xe(t.available)<=0&&Xe(t.walletUsdc)<=0}function q2(t){const r=Xe(t.walletUsdc);if(r<=0)return!1;const i=t.creditLimit===null?0:Xe(t.creditLimit),a=Math.max(0,i-Xe(t.available)-Xe(t.reserved));return!(i>0&&r>a)}function $k(t){const r=Xe(t.walletUsdc),i=t.creditLimit===null?0:Xe(t.creditLimit),a=Math.max(0,i-Xe(t.available)-Xe(t.reserved));return i>0&&r>a?"Credits are at or near the credit limit, so this USDC waits in the workspace wallet and tops the credits up as they are spent.":"This USDC is in the workspace wallet and moves into the credits automatically."}function zk(t){const r=t.toLowerCase();return r.includes("already in flight")?"A close request to this seller is still waiting for an answer (it gives up after a minute). Close on chain instead, or try again shortly.":r.includes("busy")||r.includes("still processing")?"The seller is still processing a request. Try again shortly, or close on chain.":r.includes("pending_auth")||r.includes("latest payment authorization")?"The seller is waiting for the latest payment authorization. Try again shortly, or close on chain.":r.includes("no_channel")||r.includes("no longer has this channel")?"The seller no longer has this channel open. It may already be settled; refresh the list, or close on chain.":r.includes("did not answer")||r.includes("not connected")||r.includes("could not be found")||r.includes("disconnected")?"The seller did not answer. Close on chain instead: it does not need the seller.":r.includes("does not support cooperative close")?"This seller does not support a cooperative close. Close on chain instead.":`${t} The channel is unchanged; close on chain instead.`}const K2={usdc:["usdc","USDC","usdcToken"],deposits:["deposits","AntseedDeposits","antseedDeposits"],usageRewards:["usageRewards","AntseedUsageRewards","UsageRewards"],channels:["channels","AntseedChannels","antseedChannels"]};function Uk(t,r){if(!t)return null;const i=Object.entries(t.contracts);for(const a of K2[r]){const u=i.find(([f])=>f.toLowerCase()===a.toLowerCase());if(u&&/^0x[0-9a-fA-F]{40}$/.test(u[1]))return u[1]}return null}function Mo(t,r){return!!t&&!!r&&t.toLowerCase()===r.toLowerCase()}const Q2="0x0000000000000000000000000000000000000000";function Wc(t){return!!t&&/^0x[0-9a-fA-F]{40}$/.test(t)&&t.toLowerCase()!==Q2}function Bk(t,r){return t!=null&&t.explorerUrl?`${t.explorerUrl.replace(/\/+$/,"")}/tx/${r}`:null}const Pe={group:t=>[t],me:["me"],authConfig:["auth-config"],status:["status"],settings:["settings"],workspaces:["workspaces","list"],workspace:t=>["workspaces","detail",t],workspaceMembers:t=>["workspaces","members",t],members:["members","list"],invites:["invites"],keys:t=>["keys","list",t],usage:t=>["usage",t],requests:t=>["requests","list",t],request:t=>["requests","detail",t],audit:t=>["audit",t],wallet:t=>["wallet",t],deposits:t=>["deposits",t],channels:(t,r)=>["channels",t,r],operators:["wallet-operators"],rewards:t=>["rewards",t],chain:["chain"],chatModels:t=>["chat-models",t],chatContext:t=>["chat-context",t],chatThreads:t=>["chat-threads",t],chatThread:(t,r)=>["chat-thread",t,r],peers:["peers"],models:["models"],peerLists:["peer-lists"],gatewayPolicy:["routing","gateway"],buyerLimits:["routing","buyer-limits"],routePreview:t=>["routing","preview",t],presets:t=>["presets",t],adminTokens:["admin-tokens"]},Hk=["routing","workspaces","members","keys","presets"];function G2(t,r=fe){return{queryKey:Pe.workspace(t),queryFn:()=>r.workspaces.get(t)}}function Wk(t,r=!0){return De({...G2(t),enabled:r})}function Vk(t=!0){return De({queryKey:Pe.peers,queryFn:fe.network.peers,staleTime:3e4,enabled:t})}function qk(){return De({queryKey:Pe.models,queryFn:fe.network.models,staleTime:3e4})}function Kk(t=!0){return De({queryKey:Pe.peerLists,queryFn:fe.network.peerLists,staleTime:3e4,enabled:t})}function Qk(){return De({queryKey:Pe.workspaces,queryFn:fe.workspaces.list})}function Gk(t,r=!0){return De({queryKey:Pe.workspaceMembers(t),queryFn:()=>fe.workspaces.members(t),enabled:r})}function Yk(t=!0){return De({queryKey:Pe.members,queryFn:fe.members.list,enabled:t})}function Zk(){return De({queryKey:Pe.invites,queryFn:fe.invites.list})}function Xk(t,r=!0){return De({queryKey:Pe.keys(t),queryFn:()=>fe.keys.list(t),enabled:r})}function Jk(t,r=!0){return De({queryKey:Pe.presets(t),queryFn:()=>fe.presets.list(t),enabled:r})}function eC(t,r=!0){return De({queryKey:Pe.wallet(t),queryFn:()=>fe.wallet.get(t),enabled:r,refetchInterval:i=>i.state.data&&q2(i.state.data)?5e3:!1})}function tC(){return De({queryKey:Pe.gatewayPolicy,queryFn:fe.network.gatewayPolicy})}function nC(){return De({queryKey:Pe.buyerLimits,queryFn:fe.network.buyerLimits})}function rC(){return De({queryKey:Pe.adminTokens,queryFn:fe.adminTokens.list})}function Y2(){return De({queryKey:Pe.me,queryFn:fe.auth.me})}function Vc(t=!0){return De({queryKey:Pe.authConfig,queryFn:fe.auth.config,enabled:t})}function qc(){return De({queryKey:Pe.status,queryFn:fe.settings.status,refetchInterval:3e4})}function iC(t=!0){return De({queryKey:Pe.chain,queryFn:fe.wallet.chain,staleTime:1/0,enabled:t})}function oC(t){const r=new Set;for(const i of t??[])for(const a of i.services)r.add(a.service);return[...r].sort()}const kv=t=>["wallet-operator",t],Cv={get:(t,r=!1)=>fe.wallet.operator(t,r),sync:(t,r)=>fe.wallet.operatorSync(t,r),authorize:(t,r)=>fe.wallet.operatorAuth(t,r)};function sC(t,r=!0){return De({queryKey:kv(t),queryFn:()=>Cv.get(t),staleTime:3e4,enabled:r})}function Z2(t=!0){return De({queryKey:Pe.operators,queryFn:()=>fe.wallet.operators(),staleTime:6e4,enabled:t})}function X2(t){return(t==null?void 0:t.relation)==="none"}function aC(t){const r=rr(),i=a=>{r.setQueryData(kv(t),a),r.invalidateQueries({queryKey:Pe.operators}),r.invalidateQueries({queryKey:Pe.wallet(t)}),r.invalidateQueries({queryKey:Pe.rewards(t)})};return{apply:i,refresh:async()=>i(await Cv.get(t,!0))}}function lC(t,r){const i=t.operator,a=sn(i),u=Wc(i)&&Mo(r,i),f=m=>u?{canManage:!0,manageHint:null}:{canManage:!1,manageHint:`Only ${m} can transfer or remove it: connect ${a} to do so.`};switch(t.relation){case"none":return{tone:"warning",badge:"Not set",title:"No authorized wallet",summary:t.canAuthorize?"Authorize one of your wallets to withdraw funds and claim ANTS rewards. Requests keep working meanwhile.":"Nobody can withdraw funds or claim ANTS rewards until the organization owner authorizes a wallet.",body:t.canAuthorize?"Nobody can withdraw this workspace's funds or claim its ANTS rewards until you authorize one of your wallets. Requests keep working meanwhile.":"Nobody can withdraw this workspace's funds or claim its ANTS rewards until one is authorized. Only the organization owner can authorize a wallet; requests keep working meanwhile.",canAuthorize:t.canAuthorize,canManage:!1,manageHint:null,canLink:!1};case"self":return{tone:"info",badge:"Workspace wallet",title:"The workspace wallet authorizes itself",summary:"Withdrawals and rewards stay in the wallet the gateway holds.",body:"Withdrawals and rewards stay in the wallet the gateway holds. To hand the role to a personal wallet, run `antseed gateway workspace operator transfer <workspace> <address>` on the gateway host (the workspace wallet pays the gas).",canAuthorize:!1,canManage:!1,manageHint:null,canLink:!1};case"yours":return{tone:"success",badge:"Your wallet",title:`Your wallet ${a}`,summary:"Withdrawals and ANTS rewards go to this wallet, and only it can transfer or remove the role.",body:"Withdrawals and ANTS rewards go to this wallet, and only it can transfer or remove the role.",canAuthorize:!1,canLink:!1,...f("this wallet")};case"member":{const m=t.memberLabel?`${t.memberLabel}'s wallet`:"Another member's wallet";return{tone:"info",badge:t.memberLabel?t.memberLabel:"Member",title:`${m} ${a}`,summary:"Withdrawals and ANTS rewards go to this wallet, and only it can transfer or remove the role.",body:"Withdrawals and ANTS rewards go to this wallet, and only it can transfer or remove the role.",canAuthorize:!1,canLink:!1,...f(t.memberLabel?`${t.memberLabel}'s wallet`:"that member's wallet")}}case"unknown":return{tone:"info",badge:"Not linked to a console member",title:`Authorized wallet ${a}`,summary:"Withdrawals and ANTS rewards go to this wallet. If it is yours, link it to your account to manage it here.",body:"No member of this gateway signs in with this address, yet withdrawals and ANTS rewards go to it, and only it can transfer or remove the role: not the gateway, not the organization owner. If nobody on your team controls it, do not add more than you plan to spend (the gateway can still spend the balance on requests, but it cannot be withdrawn). Ask whoever controls it to transfer the role, or move to a new workspace with a fresh wallet.",canAuthorize:!1,canLink:!0,...f("that wallet")}}}function uC(t,r,i){if(!t)return{ok:!1,reason:"Checking the authorized wallet…",operator:null};const a=Wc(t.operator)?t.operator:null;return a?t.relation==="self"?{ok:!1,operator:a,reason:`This workspace's authorized wallet is the gateway-held wallet itself, so a browser wallet cannot ${i}. Use the antseed CLI on the gateway host, or transfer the role to a personal wallet.`}:r?Mo(r,a)?{ok:!0,operator:a,reason:null}:{ok:!1,operator:a,reason:`The connected wallet ${sn(r)} is not the authorized wallet ${sn(a)}. Switch to ${sn(a)} in your wallet to ${i}.`}:{ok:!1,operator:a,reason:`Connect the authorized wallet ${sn(a)} to ${i}. Funds go to that wallet.`}:{ok:!1,operator:null,reason:`Only the authorized wallet can ${i}, and none is set. ${t.canAuthorize?"Authorize one of your wallets under Authorized wallet.":"Ask the organization owner to authorize one."}`}}function cC(t,r=Date.now()){return t.eligibleWallets.map(i=>({...i,ready:i.eligibleAt<=r}))}function dC(t,r,i=Date.now()){if(!t.canAuthorize)return t.relation==="none"?"Only the organization owner can authorize a wallet.":"A wallet is already authorized; only it can transfer the role.";if(!r)return"Connect the wallet you want to authorize.";const a=t.eligibleWallets.find(u=>Mo(u.address,r));return a?a.eligibleAt>i?`${sn(r)} was added as a sign-in method recently. For your safety it can be authorized from ${D2(a.eligibleAt)}.`:null:`${sn(r)} is not one of your sign-in methods. Add it under Your sign-in methods first; it can be authorized 24 hours later.`}const _v={OperatorAlreadySet:{message:"Another wallet was authorized in the meantime. The panel now shows the current authorized wallet.",refresh:!0},InvalidNonce:{message:"The authorization expired: the operator nonce changed on chain. Start again to get a fresh authorization.",refresh:!0},InvalidSignature:{message:"The contract rejected the gateway's signature. The gateway and your wallet may be on different chains or deposits contracts.",refresh:!1},NotAuthorized:{message:"The connected wallet is not (or no longer) the authorized wallet. The panel now shows the current one.",refresh:!0},NotRewardRecipient:{message:"Only the authorized wallet can claim. The panel now shows the current one.",refresh:!0},RewardRecipientUnavailable:{message:"No authorized wallet is set, so rewards cannot be claimed yet.",refresh:!0},InsufficientBalance:{message:"Not enough available balance; funds reserved in open channels cannot be withdrawn.",refresh:!0},InvalidAddress:{message:"The contract rejected the address.",refresh:!1},ChannelNotActive:{message:"This channel is already settled or closed; nothing is left to do. The list now shows it.",refresh:!0},CloseAlreadyRequested:{message:"A close was already requested for this channel. The list now shows when the reserve can be withdrawn.",refresh:!0},CloseNotReady:{message:"The 15-minute grace period has not ended yet. Withdraw once the countdown reaches zero.",refresh:!0}};function J2(t){const r=new Set;let i=t;for(;i&&typeof i=="object"&&!r.has(i);){r.add(i);const u=i.data;if(u&&typeof u.errorName=="string")return u.errorName;i=i.cause}const a=t instanceof Error?`${t.message} ${t.shortMessage??""}`:String(t??"");return Object.keys(_v).find(u=>a.includes(u))??null}function fC(t){const r=J2(t);return r?_v[r]??null:null}class ko extends Error{constructor(r,i,a=!1){super(r),this.refresh=i,this.retryAuth=a,this.name="OperatorPreflightError"}}function hC(t,r,i){if(t.chainId!==void 0&&t.chainId!==i.chainId)throw new ko(`The gateway signed for chain ${t.chainId} but the console is set up for chain ${i.chainId}.`,!1);if(t.depositsContract&&i.depositsContract&&!Mo(t.depositsContract,i.depositsContract))throw new ko("The gateway signed for a different deposits contract than the one the console reports. Reload the page.",!1);if(t.operator&&!Mo(t.operator,i.operator))throw new ko(`The authorization is for ${sn(t.operator)}, not ${sn(i.operator)}.`,!1);if(Wc(r.operator))throw new ko(`An authorized wallet is already set (${sn(r.operator)}). The panel now shows it.`,!0);if(r.nonce.toString()!==t.nonce)throw new ko("The operator nonce changed since the gateway signed. Getting a fresh authorization…",!0,!0)}function ex(t,r=!0){return De({queryKey:Pe.channels(t,!1),queryFn:()=>fe.wallet.channels(t,!1),enabled:r})}function Ev(){const{workspace:t,viewer:r}=ir(),i=Fc(r),a=Z2(i),u=ex(t.id,i),f=a.data??[],m=new Set(f.filter(X2).map(y=>y.workspaceId)),v=f.find(y=>y.workspaceId===t.id),g=V2(u.data??[]),h=m.has(t.id);return{missingOperator:m,currentMissingOperator:h,canAuthorize:(v==null?void 0:v.canAuthorize)??!1,withdrawable:g,wallet:h||g.count>0}}const Pv=["pointerdown","mousedown","pointerup","mouseup","click"],sc=new WeakMap;function bv(t,r,i){Kc(t);let a=u=>{let f=u.target;t.contains(f)&&((!i||i(f))&&(u.preventDefault(),u.stopPropagation(),u.stopImmediatePropagation()),u.type==="click"&&(r==null||r(u)))};for(let u of Pv)document.addEventListener(u,a,!0);sc.set(t,a)}function Kc(t){let r=sc.get(t);if(r){for(let i of Pv)document.removeEventListener(i,r,!0);sc.delete(t)}}function tx(t,r){let i=t.wrapper.getBoundingClientRect();return{width:i.width+r,height:i.height+r,realWidth:i.width,realHeight:i.height}}function Np(t,r){let{elementDimensions:i,popoverDimensions:a,popoverPadding:u,popoverArrowDimensions:f}=r;return t==="start"?Math.max(Math.min(i.top-u,window.innerHeight-a.realHeight-f.width),f.width):t==="end"?Math.max(Math.min(i.top-(a==null?void 0:a.realHeight)+i.height+u,window.innerHeight-(a==null?void 0:a.realHeight)-f.width),f.width):t==="center"?Math.max(Math.min(i.top+i.height/2-(a==null?void 0:a.realHeight)/2,window.innerHeight-(a==null?void 0:a.realHeight)-f.width),f.width):0}function Ip(t,r){let{elementDimensions:i,popoverDimensions:a,popoverPadding:u,popoverArrowDimensions:f}=r;return t==="start"?Math.max(Math.min(i.left-u,window.innerWidth-a.realWidth-f.width),f.width):t==="end"?Math.max(Math.min(i.left-(a==null?void 0:a.realWidth)+i.width+u,window.innerWidth-(a==null?void 0:a.realWidth)-f.width),f.width):t==="center"?Math.max(Math.min(i.left+i.width/2-(a==null?void 0:a.realWidth)/2,window.innerWidth-(a==null?void 0:a.realWidth)-f.width),f.width):0}function Qc(t,r,i){let{align:a,side:u}=i,f=i.centered?"over":u,m=i.padding,v=tx(t,i.offset),g=t.arrow.getBoundingClientRect(),h=r.getBoundingClientRect(),y=h.top-v.height,x=y>=0,C=window.innerHeight-(h.bottom+v.height),N=C>=0,A=h.left-v.width,E=A>=0,M=window.innerWidth-(h.right+v.width),L=M>=0,F=!x&&!N&&!E&&!L,P=f;if(f==="top"&&x?L=E=N=!1:f==="bottom"&&N?L=E=x=!1:f==="left"&&E?L=x=N=!1:f==="right"&&L&&(E=x=N=!1),f==="over"){let j=window.innerWidth/2-v.realWidth/2,D=window.innerHeight/2-v.realHeight/2;t.wrapper.style.left=`${j}px`,t.wrapper.style.right="auto",t.wrapper.style.top=`${D}px`,t.wrapper.style.bottom="auto"}else if(F){let j=window.innerWidth/2-(v==null?void 0:v.realWidth)/2;t.wrapper.style.left=`${j}px`,t.wrapper.style.right="auto",t.wrapper.style.bottom="10px",t.wrapper.style.top="auto"}else if(E){let j=Math.min(A,window.innerWidth-(v==null?void 0:v.realWidth)-g.width),D=Np(a,{elementDimensions:h,popoverDimensions:v,popoverPadding:m,popoverArrowDimensions:g});t.wrapper.style.left=`${j}px`,t.wrapper.style.top=`${D}px`,t.wrapper.style.bottom="auto",t.wrapper.style.right="auto",P="left"}else if(L){let j=Math.min(M,window.innerWidth-(v==null?void 0:v.realWidth)-g.width),D=Np(a,{elementDimensions:h,popoverDimensions:v,popoverPadding:m,popoverArrowDimensions:g});t.wrapper.style.right=`${j}px`,t.wrapper.style.top=`${D}px`,t.wrapper.style.bottom="auto",t.wrapper.style.left="auto",P="right"}else if(x){let j=Math.min(y,window.innerHeight-v.realHeight-g.width),D=Ip(a,{elementDimensions:h,popoverDimensions:v,popoverPadding:m,popoverArrowDimensions:g});t.wrapper.style.top=`${j}px`,t.wrapper.style.left=`${D}px`,t.wrapper.style.bottom="auto",t.wrapper.style.right="auto",P="top"}else if(N){let j=Math.min(C,window.innerHeight-(v==null?void 0:v.realHeight)-g.width),D=Ip(a,{elementDimensions:h,popoverDimensions:v,popoverPadding:m,popoverArrowDimensions:g});t.wrapper.style.left=`${D}px`,t.wrapper.style.bottom=`${j}px`,t.wrapper.style.top="auto",t.wrapper.style.right="auto",P="bottom"}rx(t,F?"over":P,a,r),[...t.wrapper.classList].filter(j=>j.startsWith("driver-popover-side-")||j.startsWith("driver-popover-align-")).forEach(j=>t.wrapper.classList.remove(j)),t.wrapper.classList.add(`driver-popover-side-${P}`),t.wrapper.classList.add(`driver-popover-align-${a}`)}function Mp(t,r,i,a,u,f=10){let m=a-i;return t<=i&&r>=a?u==="start"?15+f/2:u==="end"?m-15-f/2:m/2:(Math.min(Math.max(t,i),a)+Math.min(Math.max(r,i),a))/2-i}function Lp(t,r,i=10){let a=r-15-i;if(a<15)return Math.max(0,(r-i)/2);let u=t-i/2;return Math.min(Math.max(u,15),a)}function nx(t,r,i){return t==="left"||t==="right"?r.bottom>i.top&&r.top<i.bottom?t:r.bottom<=i.top?"bottom":"top":r.right>i.left&&r.left<i.right?t:r.right<=i.left?"right":"left"}function rx(t,r,i,a){let u=t.arrow;if(u.className="driver-popover-arrow",u.style.top="",u.style.right="",u.style.bottom="",u.style.left="",r==="over"){u.classList.add("driver-popover-arrow-none");return}let f=a.getBoundingClientRect(),m=t.wrapper.getBoundingClientRect(),v=nx(r,f,m);u.classList.add(`driver-popover-arrow-side-${v}`);let g=u.getBoundingClientRect().width||10;if(v==="left"||v==="right"){let h=Mp(f.top,f.bottom,m.top,m.bottom,i,g);u.style.top=`${Lp(h,m.height,g)}px`}else{let h=Mp(f.left,f.right,m.left,m.right,i,g);u.style.left=`${Lp(h,m.width,g)}px`}}function ma(t){return typeof t=="function"?t():typeof t=="string"?document.querySelector(t):t}function ix(t){let r=window.getComputedStyle(t);return[r.overflow,r.overflowX,r.overflowY].some(i=>i==="auto"||i==="scroll")}function ia(t,r,i,a){return(t/=a/2)<1?i/2*t*t+r:-i/2*(--t*(t-2)-1)+r}function jv(t){let r='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return t.flatMap(i=>{let a=i.matches(r),u=Array.from(i.querySelectorAll(r));return[...a?[i]:[],...u]}).filter(i=>getComputedStyle(i).pointerEvents!=="none"&&ax(i))}function Tv(t,r){if(!t||sx(t))return;let i=t.offsetHeight>window.innerHeight;t.scrollIntoView({behavior:!r||ox(t)?"auto":"smooth",inline:"center",block:i?"start":"center"})}function ox(t){if(!t||!t.parentElement)return;let r=t.parentElement;return r.scrollHeight>r.clientHeight}function sx(t){let r=t.getBoundingClientRect();return r.top>=0&&r.left>=0&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&r.right<=(window.innerWidth||document.documentElement.clientWidth)}function ax(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function Rv(t){t&&(t.wrapper.style.display="none")}function lx(t,r){var E;let i=cx();document.body.appendChild(i.wrapper);let{title:a,description:u,showButtons:f,disableButtons:m,showProgress:v,nextBtnText:g,prevBtnText:h,progressText:y}=r;i.nextButton.innerHTML=g,i.previousButton.innerHTML=h,i.progress.innerHTML=y,i.closeButton.setAttribute("aria-label",r.closeBtnLabel),r.doneButton&&i.nextButton.classList.add("driver-popover-done-btn"),a?(i.title.innerHTML=a,i.title.style.display="block"):i.title.style.display="none",u?(i.description.innerHTML=u,i.description.style.display="block"):i.description.style.display="none";let x=f.includes("next")||f.includes("previous")||v;i.closeButton.style.display=f.includes("close")?"block":"none",x?(i.footer.style.display="flex",i.progress.style.display=v?"block":"none",i.nextButton.style.display=f.includes("next")?"block":"none",i.previousButton.style.display=f.includes("previous")?"block":"none"):i.footer.style.display="none",m.includes("next")&&(i.nextButton.disabled=!0,i.nextButton.classList.add("driver-popover-btn-disabled")),m.includes("previous")&&(i.previousButton.disabled=!0,i.previousButton.classList.add("driver-popover-btn-disabled")),m.includes("close")&&(i.closeButton.disabled=!0,i.closeButton.classList.add("driver-popover-btn-disabled"));let C=i.wrapper;C.style.display="block",C.style.left="",C.style.top="",C.style.bottom="",C.style.right="",C.id="driver-popover-content",C.setAttribute("role","dialog"),C.setAttribute("aria-labelledby","driver-popover-title"),C.setAttribute("aria-describedby","driver-popover-description");let N=i.arrow;N.className="driver-popover-arrow",C.className=`driver-popover ${r.popoverClass||""}`.trim(),bv(i.wrapper,M=>{var F,P,j;let L=M.target;if(L.closest(".driver-popover-next-btn"))return(F=r.onNextClick)==null?void 0:F.call(r);if(L.closest(".driver-popover-prev-btn"))return(P=r.onPrevClick)==null?void 0:P.call(r);if(L.closest(".driver-popover-close-btn"))return(j=r.onCloseClick)==null?void 0:j.call(r)},M=>i.description.contains(M)||i.title.contains(M)?!1:!!M.closest(".driver-popover-prev-btn, .driver-popover-next-btn, .driver-popover-close-btn")),(E=r.onRender)==null||E.call(r,i),Qc(i,t,r.position),ux(i,t,r.position),Tv(C,r.smoothScroll);let A=jv([C,t]);return A.length>0&&A[0].focus(),i}function ux(t,r,i){t.wrapper.querySelectorAll("img").forEach(a=>{if(a.complete)return;let u=()=>Qc(t,r,i);a.addEventListener("load",u,{once:!0}),a.addEventListener("error",u,{once:!0})})}function cx(){let t=document.createElement("div");t.classList.add("driver-popover");let r=document.createElement("div");r.classList.add("driver-popover-arrow");let i=document.createElement("header");i.id="driver-popover-title",i.classList.add("driver-popover-title"),i.style.display="none",i.innerText="Popover Title";let a=document.createElement("div");a.id="driver-popover-description",a.classList.add("driver-popover-description"),a.style.display="none",a.innerText="Popover description is here";let u=document.createElement("button");u.type="button",u.classList.add("driver-popover-close-btn"),u.innerHTML="×";let f=document.createElement("footer");f.classList.add("driver-popover-footer");let m=document.createElement("span");m.classList.add("driver-popover-progress-text"),m.innerText="";let v=document.createElement("span");v.classList.add("driver-popover-navigation-btns");let g=document.createElement("button");g.type="button",g.classList.add("driver-popover-prev-btn","driver-popover-footer-btn"),g.innerHTML="Previous";let h=document.createElement("button");return h.type="button",h.classList.add("driver-popover-next-btn","driver-popover-footer-btn"),h.innerHTML="Next",v.appendChild(g),v.appendChild(h),f.appendChild(m),f.appendChild(v),t.appendChild(u),t.appendChild(r),t.appendChild(i),t.appendChild(a),t.appendChild(f),{wrapper:t,arrow:r,title:i,description:a,footer:f,previousButton:g,nextButton:h,closeButton:u,footerButtons:v,progress:m}}function Nv(t){var r;t&&(Kc(t.wrapper),(r=t.wrapper.parentElement)==null||r.removeChild(t.wrapper))}function Iv(t,r){let i=window.innerWidth,a=window.innerHeight,u=r.padding,f=r.radius,m=t.width+u*2,v=t.height+u*2,g=Math.min(f,m/2,v/2),h=Math.floor(Math.max(g,0)),y=t.x-u+h,x=t.y-u,C=m-h*2,N=v-h*2;return`M${i},0L0,0L0,${a}L${i},${a}L${i},0Z
|
|
82
|
+
M${y},${x} h${C} a${h},${h} 0 0 1 ${h},${h} v${N} a${h},${h} 0 0 1 -${h},${h} h-${C} a${h},${h} 0 0 1 -${h},-${h} v-${N} a${h},${h} 0 0 1 ${h},-${h} z`}function dx(t,r,i,a,u){let f=t.getState("__activeStagePosition"),m=f||a.getBoundingClientRect(),v=u.getBoundingClientRect();f={x:ia(r,m.x,v.x-m.x,i),y:ia(r,m.y,v.y-m.y,i),width:ia(r,m.width,v.width-m.width,i),height:ia(r,m.height,v.height-m.height,i)},Lv(t,f),t.setState("__activeStagePosition",f)}function Mv(t,r){if(!r)return;let i=r.getBoundingClientRect(),a={x:i.x,y:i.y,width:i.width,height:i.height};t.setState("__activeStagePosition",a),Lv(t,a)}function fx(t){let r=t.getState("__activeStagePosition"),i=t.getState("__overlaySvg");if(!r)return;if(!i){console.warn("No stage svg found.");return}let a=window.innerWidth,u=window.innerHeight;i.setAttribute("viewBox",`0 0 ${a} ${u}`)}function hx(t,r){let i=px(t,r);document.body.appendChild(i),bv(i,a=>{a.target.tagName==="path"&&t.emit("overlayClick")}),t.setState("__overlaySvg",i)}function Lv(t,r){let i=t.getState("__overlaySvg");if(!i){hx(t,r);return}let a=i.firstElementChild;if((a==null?void 0:a.tagName)!=="path")throw Error("no path element found in stage svg");a.setAttribute("d",Iv(r,Ov(t)))}function Ov(t){var r;return((r=t.getState("activeElement"))==null?void 0:r.id)==="driver-dummy-element"?{padding:0,radius:0}:{padding:t.getConfig("stagePadding")||0,radius:t.getConfig("stageRadius")||0}}function px(t,r){let i=window.innerWidth,a=window.innerHeight,u=document.createElementNS("http://www.w3.org/2000/svg","svg");u.classList.add("driver-overlay","driver-overlay-animated"),u.setAttribute("viewBox",`0 0 ${i} ${a}`),u.setAttribute("xmlSpace","preserve"),u.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),u.setAttribute("version","1.1"),u.setAttribute("preserveAspectRatio","xMinYMin slice"),u.style.fillRule="evenodd",u.style.clipRule="evenodd",u.style.strokeLinejoin="round",u.style.strokeMiterlimit="2",u.style.zIndex="10000",u.style.position="fixed",u.style.top="0",u.style.left="0",u.style.width="100%",u.style.height="100%";let f=document.createElementNS("http://www.w3.org/2000/svg","path");return f.setAttribute("d",Iv(r,Ov(t))),f.style.fill=t.getConfig("overlayColor")||"rgb(0,0,0)",f.style.opacity=`${t.getConfig("overlayOpacity")}`,f.style.pointerEvents="auto",f.style.cursor="auto",u.appendChild(f),u}function mx(t){let r=t.getState("__overlaySvg");r&&(Kc(r),r.remove())}const Av="{{current}} of {{total}}";function Dv(t,r){return!(r.skipMissingElement??t.getConfig("skipMissingElement"))||!r.element?!1:!ma(r.element)}function _n(t,r,i){let a=t.getConfig("steps")||[];for(let u=r;u>=0&&u<a.length;u+=i)if(!Dv(t,a[u]))return u}function ca(t,r){var f,m;let i=t.getState("activeIndex"),a=i!==void 0&&_n(t,i+1,1)===void 0,u=((f=r==null?void 0:r.popover)==null?void 0:f.onDoneClick)||t.getConfig("onDoneClick");return a&&u?u:((m=r==null?void 0:r.popover)==null?void 0:m.onNextClick)||t.getConfig("onNextClick")}function Fv(t,r){var i;return((i=r==null?void 0:r.popover)==null?void 0:i.onPrevClick)||t.getConfig("onPrevClick")}function vx(t,r){var i;return((i=r==null?void 0:r.popover)==null?void 0:i.onCloseClick)||t.getConfig("onCloseClick")}function gx(t,r,i){let a=t.getConfig("steps")||[],u=a[r],f=u.popover||{},m=_n(t,r+1,1)!==void 0,v=_n(t,r-1,-1)!==void 0,g=f.doneBtnText||t.getConfig("doneBtnText")||"Done",h=t.getConfig("allowClose"),y=f.showProgress===void 0?t.getConfig("showProgress"):f.showProgress,x=(f.progressText||t.getConfig("progressText")||Av).replace("{{current}}",`${r+1}`).replace("{{total}}",`${a.length}`),C=f.showButtons||t.getConfig("showButtons"),N=["next","previous",...h?["close"]:[]].filter(L=>!(C!=null&&C.length)||C.includes(L)),A=f.onNextClick||t.getConfig("onNextClick"),E=f.onPrevClick||t.getConfig("onPrevClick"),M=f.onCloseClick||t.getConfig("onCloseClick");return{...u,popover:{showButtons:N,nextBtnText:m?void 0:g,disableButtons:[...t.getConfig("disableButtons")||[],...v?[]:["previous"]],showProgress:y,onNextClick:A||i.onNextClick,onPrevClick:E||i.onPrevClick,onCloseClick:M||i.onCloseClick,...f,progressText:x}}}function ac(t,r){var i,a;return{showButtons:((i=r==null?void 0:r.popover)==null?void 0:i.showButtons)||t.getConfig("showButtons")||[],disableButtons:((a=r==null?void 0:r.popover)==null?void 0:a.disableButtons)||t.getConfig("disableButtons")||[]}}function $v(t,r,i){var u,f;let a=t.getConfig("stagePadding")||0;return{side:((u=i.popover)==null?void 0:u.side)||"bottom",align:((f=i.popover)==null?void 0:f.align)||"start",offset:a+(t.getConfig("popoverOffset")||0),padding:a,centered:r.id==="driver-dummy-element"}}function yx(t,r,i){let a=i.popover||{},u=t.getState("activeIndex"),f=u!==void 0&&_n(t,u+1,1)===void 0;return{title:a.title,description:a.description,...ac(t,i),showProgress:a.showProgress||t.getConfig("showProgress")||!1,progressText:a.progressText??(t.getConfig("progressText")||Av),nextBtnText:a.nextBtnText??(t.getConfig("nextBtnText")||"Next"),prevBtnText:a.prevBtnText??(t.getConfig("prevBtnText")||"Previous"),closeBtnLabel:a.closeBtnLabel??(t.getConfig("closeBtnLabel")||"Close"),doneButton:f,popoverClass:a.popoverClass||t.getConfig("popoverClass")||"",smoothScroll:t.getConfig("smoothScroll"),onNextClick:()=>{let m=ca(t,i);return m?m(r,i,t.getHookOpts()):t.emit("nextClick")},onPrevClick:()=>{let m=Fv(t,i);return m?m(r,i,t.getHookOpts()):t.emit("prevClick")},onCloseClick:()=>{let m=vx(t,i);return m?m(r,i,t.getHookOpts()):t.emit("closeClick")},onRender:m=>{var v;t.setState("popover",m),(v=a.onPopoverRender||t.getConfig("onPopoverRender"))==null||v(m,t.getHookOpts())},position:$v(t,r,i)}}function Op(t,r,i){Nv(t.getState("popover")),lx(r,yx(t,r,i))}function wx(t,r,i){let a=t.getState("popover");a&&Qc(a,r,$v(t,r,i))}const Ap={"aria-haspopup":"dialog","aria-expanded":"true","aria-controls":"driver-popover-content"},va=new WeakMap;function xx(t){if(!va.has(t)){let r=Object.fromEntries(Object.keys(Ap).map(i=>[i,t.getAttribute(i)]));va.set(t,r)}for(let[r,i]of Object.entries(Ap))t.setAttribute(r,i)}function zv(t){let r=va.get(t);if(r){for(let[i,a]of Object.entries(r))a===null?t.removeAttribute(i):t.setAttribute(i,a);va.delete(t)}}function Sx(){let t=document.getElementById("driver-dummy-element");if(t)return t;let r=document.createElement("div");return r.id="driver-dummy-element",r.style.width="0",r.style.height="0",r.style.pointerEvents="none",r.style.opacity="0",r.style.position="fixed",r.style.top="50%",r.style.left="50%",document.body.appendChild(r),r}function Dp(t,r){let i=ma(r.element);i||(i=Sx()),Cx(t,i,r)}function kx(t){let r=t.getState("__activeElement"),i=t.getState("__activeStep");r&&(Mv(t,r),fx(t),wx(t,r,i))}function Cx(t,r,i){let a=t.getConfig("duration")||400,u=Date.now(),f=t.getState("__activeStep"),m=t.getState("__activeElement")||r,v=!m||m===r,g=r.id==="driver-dummy-element",h=m.id==="driver-dummy-element",y=t.getConfig("animate"),x=i.onHighlightStarted||t.getConfig("onHighlightStarted"),C=(i==null?void 0:i.onHighlighted)||t.getConfig("onHighlighted"),N=(f==null?void 0:f.onDeselected)||t.getConfig("onDeselected"),A=t.getHookOpts();f&&f!==i&&N&&N(h?void 0:m,f,A),x&&x(g?void 0:r,i,A);let E=!v&&y,M=!1;Rv(t.getState("popover")),t.setState("previousStep",f),t.setState("previousElement",m),t.setState("activeStep",i),t.setState("activeElement",r);let L=()=>{if(t.getState("__transitionCallback")!==L)return;let P=Date.now()-u,j=a-P<=a/2;i.popover&&j&&!M&&E&&(Op(t,r,i),M=!0),t.getConfig("animate")&&P<a?dx(t,P,a,m,r):(Mv(t,r),C&&C(g?void 0:r,i,t.getHookOpts()),t.setState("__transitionCallback",void 0),t.setState("__previousStep",f),t.setState("__previousElement",m),t.setState("__activeStep",i),t.setState("__activeElement",r)),window.requestAnimationFrame(L)};t.setState("__transitionCallback",L),window.requestAnimationFrame(L),Tv(r,t.getConfig("smoothScroll")),!E&&i.popover&&Op(t,r,i),document.querySelectorAll(".driver-active-element-parent").forEach(P=>{P.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll")}),document.querySelectorAll(".driver-active-element").forEach(P=>{P.classList.remove("driver-active-element","driver-no-interaction"),zv(P)}),(i.disableActiveInteraction??t.getConfig("disableActiveInteraction"))&&r.classList.add("driver-no-interaction");let F=r.parentElement;F&&F!==document.body&&(F.classList.add("driver-active-element-parent"),ix(F)&&F.classList.add("driver-active-element-parent-no-scroll")),r.classList.add("driver-active-element"),xx(r)}function _x(){var t;(t=document.getElementById("driver-dummy-element"))==null||t.remove(),document.querySelectorAll(".driver-active-element").forEach(r=>{let i=r.parentElement;i&&i!==document.body&&i.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll"),r.classList.remove("driver-active-element","driver-no-interaction"),zv(r)})}function lc(t){let r=t.getState("__resizeTimeout");r&&window.cancelAnimationFrame(r),t.setState("__resizeTimeout",window.requestAnimationFrame(()=>kx(t)))}function Ex(t,r){var v,g,h;if(!t.getState("isInitialized")||!(r.key==="Tab"||r.keyCode===9))return;let i=t.getState("__activeElement"),a=(v=t.getState("popover"))==null?void 0:v.wrapper,u=jv([...a?[a]:[],...i?[i]:[]]),f=u[0],m=u[u.length-1];r.preventDefault(),r.shiftKey?(g=u[u.indexOf(document.activeElement)-1]||m)==null||g.focus():(h=u[u.indexOf(document.activeElement)+1]||f)==null||h.focus()}function Px(t,r){(t.getConfig("allowKeyboardControl")??!0)&&(r.key==="Escape"?t.emit("escapePress"):r.key==="ArrowRight"?t.emit("arrowRightPress"):r.key==="ArrowLeft"&&t.emit("arrowLeftPress"))}function bx(t,r){let i=t.getState("__activeElement"),a=r.target;!i||!a||!i.contains(a)||t.emit("activeElementClick")}function jx(t){let r=m=>Px(t,m),i=m=>Ex(t,m),a=()=>lc(t),u=()=>lc(t),f=m=>bx(t,m);t.setState("__events",{onKeyup:r,onKeydown:i,onResize:a,onScroll:u,onClick:f}),window.addEventListener("keyup",r,!1),window.addEventListener("keydown",i,!1),window.addEventListener("resize",a),window.addEventListener("scroll",u),document.addEventListener("click",f,!1)}function Tx(t){let r=t.getState("__events");r&&(window.removeEventListener("keyup",r.onKeyup),window.removeEventListener("keydown",r.onKeydown),window.removeEventListener("resize",r.onResize),window.removeEventListener("scroll",r.onScroll),document.removeEventListener("click",r.onClick,!1))}function Rx(){let t={};function r(i={}){t={animate:!0,duration:400,allowClose:!0,allowScroll:!0,overlayClickBehavior:"close",overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,advanceOnClick:!1,skipMissingElement:!1,waitForElement:0,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...i}}return r(),{getConfig:(i=>i?t[i]:t),configure:r}}function Nx(){let t={},r=(u=>u?t[u]:t),i=(u,f)=>{t[u]=f};function a(){t={}}return{getState:r,setState:i,resetState:a}}function Ix(){let t={};function r(u,f){t[u]=f}function i(u){var f;(f=t[u])==null||f.call(t)}function a(){t={}}return{listen:r,emit:i,reset:a}}function Mx(t={}){let r=Rx();r.configure(t);let i=Nx(),a=Ix(),u;return{getConfig:r.getConfig,setConfig:r.configure,getState:i.getState,setState:i.setState,resetState:i.resetState,listen:a.listen,emit:a.emit,resetEmitter:a.reset,getDriver:()=>u,setDriver:f=>{u=f},getHookOpts:f=>{let m=f||i.getState();return{config:r.getConfig(),state:m,driver:u,index:m.activeIndex}}}}let di;function Lx(t={}){let r=Mx(t),i=()=>L(!1);function a(){r.getConfig("allowClose")&&L()}function u(){let{disableButtons:P}=ac(r,r.getState("__activeStep"));P.includes("close")||a()}function f(P){let{showButtons:j,disableButtons:D}=ac(r,r.getState("__activeStep"));return j.includes(P)&&!D.includes(P)}function m(){let P=r.getConfig("overlayClickBehavior");if(r.getConfig("allowClose")&&P==="close"){L();return}if(typeof P=="function"){let j=r.getState("__activeStep");P(r.getState("__activeElement"),j,r.getHookOpts());return}if(P==="nextStep"){let j=r.getState("activeStep"),D=r.getState("activeElement"),W=ca(r,j);if(W){W(D,j,r.getHookOpts());return}v()}}function v(){let P=r.getState("activeIndex"),j=r.getConfig("steps")||[];if(P===void 0)return;let D=P+1;j[D]?M(D):L()}function g(){let P=r.getState("activeIndex"),j=r.getConfig("steps")||[];if(P===void 0)return;let D=P-1;j[D]?M(D):L()}function h(P){(r.getConfig("steps")||[])[P]?M(P):L()}function y(){if(r.getState("__transitionCallback"))return;let P=r.getState("__activeStep");if(!P||!(P.advanceOnClick??r.getConfig("advanceOnClick")))return;let j=r.getState("__activeElement"),D=ca(r,P);if(D){D(j,P,r.getHookOpts());return}v()}function x(){if(r.getState("__transitionCallback"))return;let P=r.getState("activeIndex"),j=r.getState("__activeStep"),D=r.getState("__activeElement");if(P===void 0||j===void 0||!(r.getConfig("steps")||[])[P-1]||!f("previous"))return;let W=Fv(r,j);if(W)return W(D,j,r.getHookOpts());g()}function C(){if(r.getState("__transitionCallback"))return;let P=r.getState("activeIndex"),j=r.getState("__activeStep"),D=r.getState("__activeElement");if(P===void 0||j===void 0||!f("next"))return;let W=ca(r,j);if(W)return W(D,j,r.getHookOpts());v()}function N(){r.getState("isInitialized")||(di&&di!==i&&di(),di=i,r.setState("isInitialized",!0),document.body.classList.add("driver-active",r.getConfig("animate")?"driver-fade":"driver-simple"),r.getConfig("allowScroll")||document.body.classList.add("driver-no-scroll"),document.body.style.setProperty("--driver-animation-duration",`${r.getConfig("duration")||400}ms`),jx(r),r.listen("overlayClick",m),r.listen("activeElementClick",y),r.listen("escapePress",u),r.listen("closeClick",a),r.listen("arrowLeftPress",x),r.listen("arrowRightPress",C))}function A(){let P=r.getState("__pendingWaitCancel");P&&(r.setState("__pendingWaitCancel",void 0),P())}function E(P,j,D){let W=()=>{te.disconnect(),window.clearTimeout(Z),r.setState("__pendingWaitCancel",void 0),D()},te=new MutationObserver(()=>{ma(P.element)&&W()}),Z=window.setTimeout(W,j);r.setState("__pendingWaitCancel",()=>{te.disconnect(),window.clearTimeout(Z)}),te.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})}function M(P=0,j=!1){A();let D=r.getConfig("steps");if(!D){console.error("No steps to drive through"),L();return}if(!D[P]){L();return}let W=D[P],te=W.waitForElement??r.getConfig("waitForElement")??0;if(!j&&te>0&&W.element&&!ma(W.element)){Rv(r.getState("popover")),E(W,te,()=>M(P,!0));return}if(Dv(r,W)){let se=r.getState("activeIndex"),ce=typeof se=="number"&&P<se?-1:1;D[P+ce]?M(P+ce):ce===1&&L();return}r.setState("__activeOnDestroyed",document.activeElement),r.setState("activeIndex",P);let Z=D[P+1];Dp(r,gx(r,P,{onNextClick:()=>{Z?M(P+1):L()},onPrevClick:()=>{M(P-1)},onCloseClick:()=>{L()}}))}function L(P=!0){if(!r.getState("isInitialized"))return;let j=r.getState("__activeElement"),D=r.getState("__activeStep"),W=r.getState("__activeOnDestroyed"),te=r.getConfig("onDestroyStarted");if(P&&te){te(!j||(j==null?void 0:j.id)==="driver-dummy-element"?void 0:j,D,r.getHookOpts());return}di===i&&(di=void 0);let Z=(D==null?void 0:D.onDeselected)||r.getConfig("onDeselected"),se=r.getConfig("onDestroyed");document.body.classList.remove("driver-active","driver-fade","driver-simple","driver-no-scroll"),document.body.style.removeProperty("--driver-animation-duration"),A(),Tx(r),Nv(r.getState("popover")),_x(),mx(r),r.resetEmitter();let ce=r.getState();if(r.resetState(),j&&D){let X=j.id==="driver-dummy-element";Z&&Z(X?void 0:j,D,r.getHookOpts(ce)),se&&se(X?void 0:j,D,r.getHookOpts(ce))}W&&W.focus()}let F={isActive:()=>r.getState("isInitialized")||!1,refresh:()=>lc(r),drive:(P=0)=>{N(),M(P)},setConfig:r.setConfig,setSteps:P=>{A(),r.resetState(),r.setConfig({...r.getConfig(),steps:P})},getConfig:r.getConfig,getState:r.getState,getActiveIndex:()=>r.getState("activeIndex"),isFirstStep:()=>{let P=r.getState("activeIndex");return P!==void 0&&_n(r,P-1,-1)===void 0},isLastStep:()=>{let P=r.getState("activeIndex");return P!==void 0&&_n(r,P+1,1)===void 0},getActiveStep:()=>r.getState("activeStep"),getActiveElement:()=>r.getState("activeElement"),getPreviousElement:()=>r.getState("previousElement"),getPreviousStep:()=>r.getState("previousStep"),getNextStep:()=>{let P=r.getConfig("steps")||[],j=r.getState("activeIndex");if(j===void 0)return;let D=_n(r,j+1,1);return D===void 0?void 0:P[D]},moveNext:v,movePrevious:g,moveTo:h,hasNextStep:()=>{let P=r.getState("activeIndex");return P!==void 0&&_n(r,P+1,1)!==void 0},hasPreviousStep:()=>{let P=r.getState("activeIndex");return P!==void 0&&_n(r,P-1,-1)!==void 0},highlight:P=>{N(),Dp(r,{...P,popover:P.popover?{showButtons:[],showProgress:!1,progressText:"",...P.popover}:void 0})},destroy:()=>{L(!1)}};return r.setDriver(F),F}const Ox="antseed-console:tour-seen",Ax=t=>`nav-${t}`;function Dx(t){const r=(i,a)=>zc(i,t)?[{target:Ax(i),...a}]:[];return[{title:"Welcome to your gateway",description:"This console runs on your gateway. It decides who can call the API, which sellers on the Antseed network serve those calls, and what they cost. Here is where everything lives."},{target:"workspace",title:"Workspaces",description:"Each workspace has its own wallet, members, keys and budgets. Switch between them here."},...r("wallet",{title:"Fund the wallet",description:"Requests are paid in USDC from the workspace wallet. Add funds by card where available or by sending USDC, and authorize the wallet that may withdraw."}),...r("keys",{title:"API keys",description:"Create a key for each app or person. Each key can have daily, weekly, monthly and total budgets and its own routing policy. Clients call the gateway's /v1 address with the key."}),...Ca(t)?r("settings",{title:"Buyer settings come first",description:"Settings → Buyer is the top of every routing policy: price caps, minimum trust (60 by default) and reputation, verification, payment limits and the RPC endpoint. If sellers you expect are missing, look here first."}):[],...r("routing",{title:"Routing policies",description:"Choose which sellers may serve: allow or block sellers, minimum trust, price caps, TEE only, fallback chains. Policies go from the buyer settings to the gateway default, workspaces, members, keys and presets, and each level can only narrow the one above. The route preview shows which sellers a request would use."}),...r("providers",{title:"Providers",description:"Every provider (seller) on the network this gateway sees, with prices, trust and the latency it measured. Open one to copy its models and an API call, or allow, block or prefer it."}),...r("activity",{title:"Usage and logs",description:"Spend and requests by model, key and member, and a searchable log of every request."}),...r("chat",{title:"Try it in Chat",description:"Chat with any model on the network, paid by your own Web chat key. Every answer shows which seller served it and what it cost."}),{target:"account",title:"That is the tour",description:"Replay it any time from your account menu."}]}function Fx(t){return t instanceof HTMLElement&&t.getClientRects().length>0}function $x(t){var a;const r=t.target?document.querySelector(`[data-tour="${t.target}"]`):null,i=(a=t.target)!=null&&a.startsWith("nav-")?"right":"bottom";return{...Fx(r)?{element:r}:{},popover:{title:t.title,description:t.description,side:i,align:"start"}}}function Uv(t){return`${Ox}:${t}`}function zx(t){try{return localStorage.getItem(Uv(t))==="1"}catch{return!0}}function Ux(t){try{localStorage.setItem(Uv(t),"1")}catch{}}function Fp(t,r){const i=Dx(t).map($x);Lx({steps:i,showProgress:!0,progressText:"{{current}} of {{total}}",nextBtnText:"Next",prevBtnText:"Back",doneBtnText:"Done",popoverClass:"gc-tour",stagePadding:4,stageRadius:8,onDestroyed:()=>Ux(r)}).drive()}function on(t){const r=new Uint8Array(t);let i="";for(const u of r)i+=String.fromCharCode(u);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ga(t){const r=t.replace(/-/g,"+").replace(/_/g,"/"),i=(4-r.length%4)%4,a=r.padEnd(r.length+i,"="),u=atob(a),f=new ArrayBuffer(u.length),m=new Uint8Array(f);for(let v=0;v<u.length;v++)m[v]=u.charCodeAt(v);return f}function zo(){return Bx.stubThis((globalThis==null?void 0:globalThis.PublicKeyCredential)!==void 0&&typeof globalThis.PublicKeyCredential=="function")}const Bx={stubThis:t=>t};function Bv(t){const{id:r}=t;return{...t,id:ga(r),transports:t.transports}}function Hv(t){return t==="localhost"||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(t)}class tt extends Error{constructor({message:r,code:i,cause:a,name:u}){super(r,{cause:a}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=u??a.name,this.code=i}}function Hx({error:t,options:r}){var a,u,f;const{publicKey:i}=r;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(r.signal instanceof AbortSignal)return new tt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((a=i.authenticatorSelection)==null?void 0:a.requireResidentKey)===!0)return new tt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(r.mediation==="conditional"&&((u=i.authenticatorSelection)==null?void 0:u.userVerification)==="required")return new tt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((f=i.authenticatorSelection)==null?void 0:f.userVerification)==="required")return new tt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new tt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new tt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return i.pubKeyCredParams.filter(v=>v.type==="public-key").length===0?new tt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new tt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const m=globalThis.location.hostname;if(Hv(m)){if(i.rp.id!==m)return new tt({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new tt({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new tt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new tt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t}class Wx{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const i=new Error("Cancelling existing WebAuthn API call for new one");i.name="AbortError",this.controller.abort(i)}const r=new AbortController;return this.controller=r,r.signal}cancelCeremony(){if(this.controller){const r=new Error("Manually cancelling existing WebAuthn API call");r.name="AbortError",this.controller.abort(r),this.controller=void 0}}}const Wv=new Wx,Vx=["cross-platform","platform"];function Vv(t){if(t&&!(Vx.indexOf(t)<0))return t}async function qv(t){var A;!t.optionsJSON&&t.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),t={optionsJSON:t});const{optionsJSON:r,useAutoRegister:i=!1}=t;if(!zo())throw new Error("WebAuthn is not supported in this browser");const a={...r,challenge:ga(r.challenge),user:{...r.user,id:ga(r.user.id)},excludeCredentials:(A=r.excludeCredentials)==null?void 0:A.map(Bv)},u={};i&&(u.mediation="conditional"),u.publicKey=a,u.signal=Wv.createNewAbortSignal();let f;try{f=await navigator.credentials.create(u)}catch(E){throw Hx({error:E,options:u})}if(!f)throw new Error("Registration was not completed");const{id:m,rawId:v,response:g,type:h}=f;let y;typeof g.getTransports=="function"&&(y=g.getTransports());let x;if(typeof g.getPublicKeyAlgorithm=="function")try{x=g.getPublicKeyAlgorithm()}catch(E){Mu("getPublicKeyAlgorithm()",E)}let C;if(typeof g.getPublicKey=="function")try{const E=g.getPublicKey();E!==null&&(C=on(E))}catch(E){Mu("getPublicKey()",E)}let N;if(typeof g.getAuthenticatorData=="function")try{N=on(g.getAuthenticatorData())}catch(E){Mu("getAuthenticatorData()",E)}return{id:m,rawId:on(v),response:{attestationObject:on(g.attestationObject),clientDataJSON:on(g.clientDataJSON),transports:y,publicKeyAlgorithm:x,publicKey:C,authenticatorData:N},type:h,clientExtensionResults:f.getClientExtensionResults(),authenticatorAttachment:Vv(f.authenticatorAttachment)}}function Mu(t,r){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${t}. You should report this error to them.
|
|
83
|
+
`,r)}function qx(){if(!zo())return Lu.stubThis(new Promise(r=>r(!1)));const t=globalThis.PublicKeyCredential;return(t==null?void 0:t.isConditionalMediationAvailable)===void 0?Lu.stubThis(new Promise(r=>r(!1))):Lu.stubThis(t.isConditionalMediationAvailable())}const Lu={stubThis:t=>t};function Kx({error:t,options:r}){const{publicKey:i}=r;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(r.signal instanceof AbortSignal)return new tt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new tt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const a=globalThis.location.hostname;if(Hv(a)){if(i.rpId!==a)return new tt({message:`The RP ID "${i.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new tt({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new tt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t}async function Kv(t){var N,A;!t.optionsJSON&&t.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),t={optionsJSON:t});const{optionsJSON:r,useBrowserAutofill:i=!1,verifyBrowserAutofillInput:a=!0}=t;if(!zo())throw new Error("WebAuthn is not supported in this browser");let u;((N=r.allowCredentials)==null?void 0:N.length)!==0&&(u=(A=r.allowCredentials)==null?void 0:A.map(Bv));const f={...r,challenge:ga(r.challenge),allowCredentials:u},m={};if(i){if(!await qx())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&a)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');m.mediation="conditional",f.allowCredentials=[]}m.publicKey=f,m.signal=Wv.createNewAbortSignal();let v;try{v=await navigator.credentials.get(m)}catch(E){throw Kx({error:E,options:m})}if(!v)throw new Error("Authentication was not completed");const{id:g,rawId:h,response:y,type:x}=v;let C;return y.userHandle&&(C=on(y.userHandle)),{id:g,rawId:on(h),response:{authenticatorData:on(y.authenticatorData),clientDataJSON:on(y.clientDataJSON),signature:on(y.signature),userHandle:C},type:x,clientExtensionResults:v.getClientExtensionResults(),authenticatorAttachment:Vv(v.authenticatorAttachment)}}function Nr(t){return t.trim().toLowerCase().replace(/^0x/,"")}function Qv(t,r){return Nr(t)===Nr(r)}const Qx={balanced:"Balanced",price:"Lowest price",latency:"Lowest latency",trust:"Highest trust"};function Gc(){return{allowMode:"any",allowedPeerIds:[],allowedListIds:[],blockedPeerIds:[],blockedListIds:[],minTrustScore:"",minReputation:"",requireVerified:!1,requireTee:!1,maxInputUsdPerMillion:"",maxOutputUsdPerMillion:"",maxCachedInputUsdPerMillion:"",maxImageUsdPerImage:"",preferFreePeers:"inherit",sort:"",modelsMode:"any",allowedModels:[],routes:[]}}function fi(t){return t===void 0?"":String(t)}function Gx(t){return t===void 0?"inherit":t?"yes":"no"}function Yx(t){const r=Gc();return t?{...r,allowMode:t.allowedPeerIds||t.allowedPeerLists?"only":"any",allowedPeerIds:[...t.allowedPeerIds??[]],allowedListIds:[...t.allowedPeerLists??[]],blockedPeerIds:[...t.blockedPeerIds??[]],blockedListIds:[...t.blockedPeerLists??[]],minTrustScore:fi(t.minTrustScore),minReputation:fi(t.minReputation),requireVerified:t.requireVerified===!0,requireTee:t.requireTee===!0,maxInputUsdPerMillion:fi(t.maxInputUsdPerMillion),maxOutputUsdPerMillion:fi(t.maxOutputUsdPerMillion),maxCachedInputUsdPerMillion:fi(t.maxCachedInputUsdPerMillion),maxImageUsdPerImage:fi(t.maxImageUsdPerImage),preferFreePeers:Gx(t.preferFreePeers),sort:t.sort??"",modelsMode:t.allowedModels?"only":"any",allowedModels:[...t.allowedModels??[]],routes:Object.entries(t.modelRoutes??{}).map(([i,a])=>({model:i,peerIds:[...a.peerIds],strict:a.strict===!0}))}:r}class ya extends Error{}function Ou(t,r,i){const a=r.trim();if(a==="")return;const u=Number(a);if(!Number.isFinite(u)||u<0)throw new ya(`${t} must be a positive number.`);if(i!==void 0&&u>i)throw new ya(`${t} must be at most ${i}.`);return u}function hi(t){return[...new Set(t.map(r=>r.trim()).filter(Boolean))]}function $p(t,r){const i=hi(t);return r?i.filter(a=>r.some(u=>u.id===a)):i}function pC(t,r=null){const i={};if(t.allowMode==="only"){const h=$p(t.allowedListIds,r),y=hi(t.allowedPeerIds);(y.length>0||h.length===0)&&(i.allowedPeerIds=y),h.length>0&&(i.allowedPeerLists=h)}const a=hi(t.blockedPeerIds);a.length>0&&(i.blockedPeerIds=a);const u=$p(t.blockedListIds,r);u.length>0&&(i.blockedPeerLists=u);const f=Ou("Minimum trust",t.minTrustScore,100);f!==void 0&&(i.minTrustScore=f);const m=Ou("Minimum reputation",t.minReputation,100);m!==void 0&&(i.minReputation=m),t.requireVerified&&(i.requireVerified=!0),t.requireTee&&(i.requireTee=!0);const v=[["maxInputUsdPerMillion","Input price cap"],["maxOutputUsdPerMillion","Output price cap"],["maxCachedInputUsdPerMillion","Cached input price cap"],["maxImageUsdPerImage","Image price cap"]];for(const[h,y]of v){const x=Ou(y,t[h]);x!==void 0&&(i[h]=x)}t.preferFreePeers!=="inherit"&&(i.preferFreePeers=t.preferFreePeers==="yes"),t.sort&&(i.sort=t.sort),t.modelsMode==="only"&&(i.allowedModels=hi(t.allowedModels));const g=t.routes.filter(h=>h.model.trim()!=="");if(g.length>0){const h=new Set;i.modelRoutes={};for(const y of g){const x=y.model.trim();if(h.has(x))throw new ya(`Model "${x}" has two fallback chains.`);h.add(x);const C=hi(y.peerIds);if(C.length===0)throw new ya(`Add at least one seller to the "${x}" chain.`);i.modelRoutes[x]=y.strict?{peerIds:C,strict:!0}:{peerIds:C}}}return i}function Yc(t){return!t||Object.keys(t).length===0}function mC(t){return Yc(t)?null:t}function Zx(t){var a,u,f,m,v,g;if(Yc(t))return"Inherits";const r=t,i=[];if(r.allowedPeerIds||r.allowedPeerLists){const h=(a=r.allowedPeerLists)!=null&&a.length?` + ${r.allowedPeerLists.length} list${r.allowedPeerLists.length===1?"":"s"}`:"";i.push(`${((u=r.allowedPeerIds)==null?void 0:u.length)??0} allowed${h}`)}if((f=r.blockedPeerIds)!=null&&f.length||(m=r.blockedPeerLists)!=null&&m.length){const h=(v=r.blockedPeerLists)!=null&&v.length?` + ${r.blockedPeerLists.length} list${r.blockedPeerLists.length===1?"":"s"}`:"";i.push(`${((g=r.blockedPeerIds)==null?void 0:g.length)??0} blocked${h}`)}return r.requireTee&&i.push("TEE only"),r.requireVerified&&i.push("verified only"),r.minTrustScore!==void 0&&i.push(`trust ≥ ${r.minTrustScore}`),r.minReputation!==void 0&&i.push(`reputation ≥ ${r.minReputation}`),(r.maxInputUsdPerMillion!==void 0||r.maxOutputUsdPerMillion!==void 0)&&i.push("price caps"),r.allowedModels&&i.push(`${r.allowedModels.length} models`),r.modelRoutes&&i.push(`${Object.keys(r.modelRoutes).length} fallback chains`),r.sort&&i.push(Qx[r.sort].toLowerCase()),r.preferFreePeers&&i.push("free first"),i.join(" · ")||"Custom"}function vC(t){if(!t)return null;const r={};t.minPeerReputation>0&&(r.minReputation=t.minPeerReputation),t.requireVerifier&&(r.requireVerified=!0),t.maxPricing&&(r.maxInputUsdPerMillion=t.maxPricing.inputUsdPerMillion,r.maxOutputUsdPerMillion=t.maxPricing.outputUsdPerMillion,t.maxPricing.cachedInputUsdPerMillion!==null&&(r.maxCachedInputUsdPerMillion=t.maxPricing.cachedInputUsdPerMillion));const i=t.routingPreferences;return i&&(i.minTrustScore>0&&(r.minTrustScore=i.minTrustScore),i.allowedPeerIds.length>0&&(r.allowedPeerIds=[...i.allowedPeerIds]),i.blockedPeerIds.length>0&&(r.blockedPeerIds=[...i.blockedPeerIds])),r}function gC(t){const r=[];t.minPeerReputation>0&&r.push(`reputation ≥ ${t.minPeerReputation}`),t.requireVerifier&&r.push("verified sellers only"),t.maxPricing&&(r.push(`≤ ${gi(t.maxPricing.inputUsdPerMillion)}/M in`),r.push(`≤ ${gi(t.maxPricing.outputUsdPerMillion)}/M out`),t.maxPricing.cachedInputUsdPerMillion!==null&&r.push(`≤ ${gi(t.maxPricing.cachedInputUsdPerMillion)}/M cached`));const i=t.routingPreferences;return i&&(i.minTrustScore>0&&r.push(`trust ≥ ${i.minTrustScore}`),i.allowedPeerIds.length>0&&r.push(`only ${wn(i.allowedPeerIds.length,"allowed seller")}`),i.blockedPeerIds.length>0&&r.push(wn(i.blockedPeerIds.length,"blocked seller")),i.preferFreePeers&&r.push("free first")),r}const wn=(t,r)=>`${t} ${r}${t===1?"":"s"}`,Xx={balanced:"balanced",price:"price",latency:"latency",trust:"trust"};function yC(t){var u,f,m,v,g,h,y;if(Yc(t))return[];const r=t,i=[],a=x=>x?` + ${wn(x,"list")}`:"";if(r.allowedPeerIds||r.allowedPeerLists){const x=((u=r.allowedPeerIds)==null?void 0:u.length)??0;i.push(x===0&&!((f=r.allowedPeerLists)!=null&&f.length)?"No seller allowed":`Allow ${x?wn(x,"seller"):""}${x?a((m=r.allowedPeerLists)==null?void 0:m.length):wn(r.allowedPeerLists.length,"list")}`)}if((v=r.blockedPeerIds)!=null&&v.length||(g=r.blockedPeerLists)!=null&&g.length){const x=((h=r.blockedPeerIds)==null?void 0:h.length)??0;i.push(`Block ${x?wn(x,"seller")+a((y=r.blockedPeerLists)==null?void 0:y.length):wn(r.blockedPeerLists.length,"list")}`)}return r.requireTee&&i.push("TEE only"),r.requireVerified&&i.push("Verified only"),r.minTrustScore!==void 0&&i.push(`Trust ≥ ${r.minTrustScore}`),r.minReputation!==void 0&&i.push(`Reputation ≥ ${r.minReputation}`),r.maxInputUsdPerMillion!==void 0&&i.push(`≤ $${r.maxInputUsdPerMillion}/M in`),r.maxOutputUsdPerMillion!==void 0&&i.push(`≤ $${r.maxOutputUsdPerMillion}/M out`),r.maxCachedInputUsdPerMillion!==void 0&&i.push(`≤ $${r.maxCachedInputUsdPerMillion}/M cached`),r.maxImageUsdPerImage!==void 0&&i.push(`≤ $${r.maxImageUsdPerImage}/image`),r.allowedModels&&i.push(r.allowedModels.length===0?"No model allowed":wn(r.allowedModels.length,"model")),r.modelRoutes&&Object.keys(r.modelRoutes).length>0&&i.push(wn(Object.keys(r.modelRoutes).length,"fallback chain")),r.sort&&i.push(`Sort: ${Xx[r.sort]}`),r.preferFreePeers!==void 0&&i.push(r.preferFreePeers?"Free sellers first":"Free sellers not first"),i}const wC=[{id:"cheapest",label:"Cheapest",description:"Lowest price first, free sellers ahead."},{id:"trusted",label:"Most trusted",description:"Trust 70+ and reputation 60+, ranked by trust."},{id:"tee",label:"TEE only",description:"Only sellers running in a trusted execution environment."},{id:"own",label:"Own peers only",description:"Only sellers in one of your peer lists."}];function xC(t,r=[]){switch(t){case"cheapest":return{sort:"price",preferFreePeers:!0};case"trusted":return{sort:"trust",minTrustScore:70,minReputation:60};case"tee":return{requireTee:!0};case"own":return{allowedPeerIds:hi(r)}}}function SC(t,r,i,a){var m,v,g;const u=structuredClone(t??{}),f=h=>h==null?void 0:h.filter(y=>!Qv(y,i));if(r==="allow")u.allowedPeerIds=[...f(u.allowedPeerIds)??[],i],u.blockedPeerIds=f(u.blockedPeerIds);else if(r==="block")u.blockedPeerIds=[...f(u.blockedPeerIds)??[],i],u.allowedPeerIds&&(u.allowedPeerIds=f(u.allowedPeerIds)),((m=u.allowedPeerIds)==null?void 0:m.length)===0&&!((v=u.allowedPeerLists)!=null&&v.length)&&delete u.allowedPeerIds;else if(r==="prefer"){if(!a)throw new Error("Pick a model to prefer this seller for.");const h={...u.modelRoutes??{}},y=h[a];h[a]={...y??{},peerIds:[i,...f(y==null?void 0:y.peerIds)??[]]},u.modelRoutes=h,u.blockedPeerIds=f(u.blockedPeerIds)}else u.allowedPeerIds&&(u.allowedPeerIds=f(u.allowedPeerIds)),u.blockedPeerIds=f(u.blockedPeerIds),u.modelRoutes&&(u.modelRoutes=Object.fromEntries(Object.entries(u.modelRoutes).map(([h,y])=>[h,{...y,peerIds:f(y.peerIds)??[]}]).filter(([,h])=>h.peerIds.length>0)));return((g=u.blockedPeerIds)==null?void 0:g.length)===0&&delete u.blockedPeerIds,u.modelRoutes&&Object.keys(u.modelRoutes).length===0&&delete u.modelRoutes,u}function kC(t,r){var a;const i=t==null?void 0:t.allowedPeerIds;return!i||(a=t==null?void 0:t.allowedPeerLists)!=null&&a.length?!1:i.length>0&&i.every(u=>Qv(u,r))}const Jx={allowMode:"allowed sellers",minTrustScore:"minimum trust",minReputation:"minimum reputation",requireVerified:"verified only",requireTee:"TEE only",maxInputUsdPerMillion:"input price cap",maxOutputUsdPerMillion:"output price cap",maxCachedInputUsdPerMillion:"cached input price cap",maxImageUsdPerImage:"image price cap",preferFreePeers:"free sellers first",sort:"sort order",modelsMode:"allowed models"};function CC(t){const r=Yx(t),i=Gc(),a={};for(const u of Object.keys(r))JSON.stringify(r[u])!==JSON.stringify(i[u])&&(a[u]=r[u]);return(t.allowedPeerIds||t.allowedPeerLists)&&(a.allowMode="only",a.allowedPeerIds=r.allowedPeerIds,a.allowedListIds=r.allowedListIds),a}function _C(t,r){const i=Gc(),a=new Set;for(const u of Object.keys(r)){const f=JSON.stringify(t[u]);if(f===JSON.stringify(i[u])||f===JSON.stringify(r[u]))continue;const m=Jx[u]??(u==="allowedPeerIds"||u==="allowedListIds"?"allowed sellers":null);m&&a.add(m)}return[...a]}function EC(t,r){return{...t,...r}}function PC(t,r,i){const a=[...t],u=r+i;if(r<0||r>=a.length||u<0||u>=a.length)return a;const[f]=a.splice(r,1);return a.splice(u,0,f),a}function bC(t,r=null){if(!t||t.allowedPeerIds===void 0&&t.allowedPeerLists===void 0||(t.allowedPeerIds??[]).some(a=>a.trim()!==""))return!1;const i=t.allowedPeerLists??[];return i.length===0?!0:r?i.every(a=>{var u;return(((u=r.find(f=>f.id===a))==null?void 0:u.peerIds.length)??0)===0}):!1}function eS(t,r){if(t===void 0)return r;if(r===void 0)return t;const i=new Set(r.map(Nr));return t.filter(a=>i.has(Nr(a)))}function tS(t,r){return t===void 0?r:r===void 0?t:[...new Set([...t,...r])]}function Zc(t,r,i){return t===void 0?r:r===void 0?t:i(t,r)}const zp=(t,r)=>Zc(t,r,Math.max),oa=(t,r)=>Zc(t,r,Math.min),nS=(t,r)=>t.filter(i=>r.some(a=>a.toLowerCase()===i.toLowerCase()));function rS(t,r){const{allowedPeerLists:i,blockedPeerLists:a,...u}=t,f=v=>v.flatMap(g=>{var h;return((h=r.find(y=>y.id===g))==null?void 0:h.peerIds)??[]}),m={...u};return i!==void 0&&(m.allowedPeerIds=[...u.allowedPeerIds??[],...f(i)]),a!=null&&a.length&&(m.blockedPeerIds=[...u.blockedPeerIds??[],...f(a)]),m}function iS(...t){let r={};for(const i of t){if(!i)continue;const a={allowedPeerIds:eS(r.allowedPeerIds,i.allowedPeerIds),blockedPeerIds:tS(r.blockedPeerIds,i.blockedPeerIds),minTrustScore:zp(r.minTrustScore,i.minTrustScore),minReputation:zp(r.minReputation,i.minReputation),requireVerified:r.requireVerified||i.requireVerified?!0:void 0,requireTee:r.requireTee||i.requireTee?!0:void 0,maxInputUsdPerMillion:oa(r.maxInputUsdPerMillion,i.maxInputUsdPerMillion),maxOutputUsdPerMillion:oa(r.maxOutputUsdPerMillion,i.maxOutputUsdPerMillion),maxCachedInputUsdPerMillion:oa(r.maxCachedInputUsdPerMillion,i.maxCachedInputUsdPerMillion),maxImageUsdPerImage:oa(r.maxImageUsdPerImage,i.maxImageUsdPerImage),preferFreePeers:i.preferFreePeers??r.preferFreePeers,sort:i.sort??r.sort,allowedModels:Zc(r.allowedModels,i.allowedModels,nS),modelRoutes:i.modelRoutes||r.modelRoutes?{...r.modelRoutes??{},...i.modelRoutes??{}}:void 0};r=Object.fromEntries(Object.entries(a).filter(([,u])=>u!==void 0))}return r}function oS(t,r){if(t.allowedModels&&!t.allowedModels.some(a=>a.toLowerCase()===r.service.toLowerCase()))return!1;const i=(a,u)=>u!==void 0&&a!==null&&a>u;return!(i(r.inputUsdPerMillion,t.maxInputUsdPerMillion)||i(r.outputUsdPerMillion,t.maxOutputUsdPerMillion)||i(r.cachedInputUsdPerMillion,t.maxCachedInputUsdPerMillion))}function jC(t,r,i=[]){const a=rS(t,i),u=a.allowedPeerIds?new Set(a.allowedPeerIds.map(Nr)):null,f=new Set((a.blockedPeerIds??[]).map(Nr));return r.filter(m=>{const v=Nr(m.peerId);return f.has(v)||u&&!u.has(v)||a.minTrustScore!==void 0&&(m.trustScore??0)<a.minTrustScore||a.minReputation!==void 0&&(m.reputationScore??0)<a.minReputation||a.requireVerified&&!m.verified||a.requireTee&&!m.tee?!1:m.services.some(g=>oS(a,g))})}function TC(t){return!!t&&t.some(r=>r.reputationScore!==null)}function RC(t,r,i=!1){const a=t?t.ownerMemberId===r.memberId:!0;return{admin:r.workspaceAdmin,owner:a,layered:t?vv(t):i}}function sS(t,r){return t===null?r:r===null||Xe(t)<=Xe(r)?t:r}function aS(t,r){const i={};for(const a of Sv)i[a]=sS((t==null?void 0:t[a])??null,(r==null?void 0:r[a])??null);return i}function NC(t){const r=vv(t)?t:null;return{limits:aS(t.limits,r==null?void 0:r.ownerLimits),policy:iS(t.routingPolicy,(r==null?void 0:r.ownerRoutingPolicy)??null)}}function IC(t,r,i){const a={label:i.label};return i.expiresAt!==r.expiresAt&&(a.expiresAt=i.expiresAt),t.admin&&(a.limits=i.adminLimits,a.routingPolicy=i.adminPolicy,i.topupEnabled!==r.topupEnabled&&(a.topupEnabled=i.topupEnabled)),t.owner&&t.layered?(a.ownerLimits=i.ownerLimits,a.ownerRoutingPolicy=i.ownerPolicy):t.owner&&!t.admin&&(a.limits=i.ownerLimits,a.routingPolicy=i.ownerPolicy),a}const lS={allowedPeerIds:"allowed sellers",allowedPeerLists:"allowed peer lists",allowedModels:"allowed models",modelRoutes:"fallback chains",maxInputUsdPerMillion:"input price cap",maxOutputUsdPerMillion:"output price cap",maxCachedInputUsdPerMillion:"cached input price cap",maxImageUsdPerImage:"image price cap",minTrustScore:"minimum trust",minReputation:"minimum reputation"};function uS(t){const[,r=t]=t.split(".");return/Limits$|^limits$/.test(t.split(".")[0]??"")?`${r} limit`:lS[r]??r}function cS(t){const r=[],i=t.fields;Array.isArray(i)&&i.length&&r.push(`Narrowed by the levels above: ${[...new Set(i.map(f=>uS(String(f))))].join(", ")}.`);const a=t.effectiveRoutingPolicy;a&&typeof a=="object"&&r.push(`Routing that would apply: ${Zx(a)}.`);const u=t.effectiveLimits;return u&&typeof u=="object"&&r.push(`Limits that would apply: ${$2(u)}.`),r}const da=Symbol("cancelled");async function MC(t,r,i){const a={};if(t){if(!await i({kind:"empty"}))return da;a.confirmEmpty=!0}for(;;)try{return await r({...a})}catch(u){if(Lr(u,"empty_allow_list")&&!a.confirmEmpty){if(!await i({kind:"empty"}))return da;a.confirmEmpty=!0}else if(Lr(u,"narrowed")&&!a.acceptNarrowed){if(!await i({kind:"narrowed",message:u.message,lines:cS(u.details)}))return da;a.acceptNarrowed=!0}else throw u}}function dS(t){const r=rr(),i=mv();return e1({mutationFn:t.mutationFn,onSuccess:(a,u)=>{var v;if(a===da)return;const f=a;(v=t.onSuccess)==null||v.call(t,f,u);for(const g of t.invalidate??[])r.invalidateQueries({queryKey:g});const m=typeof t.toast=="function"?t.toast(f,u):t.toast;m&&i(m)},onError:t.onError})}async function fS(t=fe){const r=await t.auth.reauthPasskeyOptions(),i=await Kv({optionsJSON:r});return t.auth.reauthPasskeyVerify(i)}async function LC(t,r,i=fe){const{message:a}=await i.auth.reauthWalletNonce(t);return i.auth.reauthWalletVerify(a,await r(a))}function hS(t,r){if(t.kind!=="member"||t.me.member.id!==r)throw new Error("That sign-in belongs to a different account. Reload the page and sign in as yourself.")}const uc="The passkey prompt was closed.";function cc(t){return t instanceof Error&&t.name==="NotAllowedError"}function Xc({error:t,onRetry:r,title:i="Could not load this"}){return d.jsx(lt,{tone:"danger",title:i,action:r?d.jsx(Le,{variant:"outline",size:"sm",onClick:r,children:"Retry"}):void 0,children:ka(t)})}function OC({query:t,children:r,rows:i}){return t.isLoading?d.jsx(Ni,{rows:i}):t.error?d.jsx(Xc,{error:t.error,onRetry:()=>void t.refetch()}):t.data===void 0?null:d.jsx(d.Fragment,{children:r(t.data)})}function AC({children:t,title:r}){return d.jsx("code",{className:"gc-mono",title:r,children:t})}function DC({label:t,value:r,strong:i}){return d.jsxs("div",{className:"gc-figure",children:[d.jsx("div",{className:"gc-figure__label",children:t}),d.jsx("div",{className:i?"gc-figure__value gc-figure__value--strong":"gc-figure__value",children:r})]})}function FC({name:t,hint:r}){return d.jsxs("div",{children:[d.jsx("div",{className:"gc-strong",children:t}),d.jsx("code",{className:"gc-mono gc-muted",children:r})]})}function $C({at:t,format:r}){return t===null?d.jsx(d.Fragment,{children:"Never"}):t<Date.now()?d.jsx(Sm,{tone:"warning",children:"Expired"}):d.jsx(d.Fragment,{children:r(t)})}const pS="Showing last known values — the chain RPC is busy.";function zC({stale:t}){return t?d.jsx("p",{className:"gc-muted",role:"status",children:pS}):null}function UC({to:t,children:r}){return d.jsx("a",{className:"gc-link",href:_a(t),onClick:Hc(t),children:r})}const mS=I.lazy(()=>Ue(()=>import("./WalletSignIn-_VjhsjCt.js"),__vite__mapDeps([0,1,2,3,4]))),vS=I.lazy(()=>Ue(()=>import("./WalletConfirm-Dc0AMNYH.js"),__vite__mapDeps([5,6,1,2,3,4])));function gS({isOpen:t,onClose:r,startWith:i,intro:a,onCredentialAdded:u}){const{me:f}=ir(),m=rr(),v=Vc(t),[g,h]=I.useState("idle"),[y,x]=I.useState(i==="wallet"?"add":null),[C,N]=I.useState(null),[A,E]=I.useState(null),[M,L]=I.useState(!1),F=f.member.credentials,P=F.some(X=>X.kind==="passkey"),j=F.some(X=>X.kind==="wallet");function D(X){hS(X,f.member.id),m.setQueryData(Pe.me,X)}function W(X){return Lr(X,"reauth_required")?(h("needed"),N(null)):N(X),!0}async function te(){L(!0),N(null);try{const X=await fe.auth.passkeyRegisterOptions(),Te=await qv({optionsJSON:X});D(await fe.auth.passkeyRegisterVerify(Te)),h("idle"),u==null||u()}catch(X){cc(X)?N(new Error(uc)):W(X)}finally{L(!1)}}async function Z(){L(!0),N(null);try{D(await fS()),h("done")}catch(X){N(cc(X)?new Error(uc):X)}finally{L(!1)}}const se=dS({mutationFn:X=>fe.members.removeCredential(f.member.id,X.id),onSuccess:()=>E(null),onError:X=>{Lr(X,"reauth_required")&&(E(null),h("needed"))},invalidate:[Pe.me]}),ce=F.length<=1;return d.jsxs(cv,{isOpen:t,onClose:r,size:"lg",eyebrow:Uc[f.member.orgRole],title:f.member.label,subtitle:f.member.email??void 0,children:[d.jsxs("div",{className:"gc-stack",children:[a,d.jsxs("section",{className:"gc-stack gc-stack--tight",children:[d.jsx("div",{className:"as-field__label",children:"Your sign-in methods"}),F.length===0?d.jsx(lt,{tone:"info",children:"You signed in through your organization's access proxy and have no passkey or wallet here. Add one to approve sensitive actions, such as authorizing a withdrawal wallet."}):d.jsx("ul",{className:"gc-list gc-credentials",children:F.map(X=>d.jsxs("li",{className:"gc-inline gc-inline--between",children:[d.jsxs("span",{className:"gc-credential",children:[d.jsx(Sm,{children:X.kind})," ",d.jsx("span",{className:"gc-credential__label",children:X.label}),d.jsxs("span",{className:"gc-muted",children:[" · added ",Rp(X.createdAt)," · last used ",Rp(X.lastUsedAt)]})]}),d.jsx(Le,{variant:"ghost",size:"sm",disabled:ce,title:ce?"Add another sign-in method first":void 0,onClick:()=>{se.reset(),E(X)},children:"Remove"})]},X.id))}),ce&&F.length===1&&d.jsx("p",{className:"gc-fineprint",children:"This is your only sign-in method. Add another before removing it."})]}),g==="needed"&&d.jsx(lt,{tone:"info",title:"Confirm it is you",children:d.jsxs("div",{className:"gc-stack gc-stack--tight",children:[d.jsx("span",{children:"Changing your sign-in methods needs a recent sign-in. Confirm with one you already have, then try again."}),d.jsxs("div",{className:"gc-inline gc-inline--wrap",children:[P&&d.jsx(Le,{size:"sm",disabled:M,onClick:()=>void Z(),children:"Confirm with a passkey"}),j&&y!=="confirm"&&d.jsx(Le,{size:"sm",variant:"outline",onClick:()=>x("confirm"),children:"Confirm with a wallet"})]}),y==="confirm"&&d.jsx(I.Suspense,{fallback:d.jsx(Le,{size:"sm",disabled:!0,children:"Loading wallets…"}),children:d.jsx(vS,{onConfirmed:X=>{D(X),h("done"),x(null)}})}),!P&&!j&&d.jsx("span",{children:"Sign out and sign in again, then add it."})]})}),g==="done"&&d.jsx(lt,{tone:"success",children:"Confirmed. Add or remove the sign-in method now."}),v.data&&d.jsxs("section",{className:"gc-stack gc-stack--tight",children:[d.jsx("div",{className:"as-field__label",children:"Add a sign-in method"}),d.jsxs("div",{className:"gc-inline gc-inline--wrap",children:[v.data.passkey&&d.jsx(Le,{variant:"outline",size:"sm",disabled:M||!zo(),onClick:()=>void te(),children:M?"Waiting for your passkey…":"Add a passkey"}),v.data.wallet&&y!=="add"&&d.jsx(Le,{variant:"outline",size:"sm",onClick:()=>x("add"),children:"Add a wallet"}),v.data.oidc&&d.jsxs(Le,{variant:"outline",size:"sm",href:fe.auth.oidcLinkUrl(),children:["Link ",v.data.oidc.label]})]}),y==="add"&&d.jsx(I.Suspense,{fallback:d.jsx(Le,{size:"sm",disabled:!0,children:"Loading wallets…"}),children:d.jsx(mS,{autoConnect:!0,actionLabel:X=>`Add ${X} as a sign-in method`,onError:W,onSignedIn:X=>{D(X),x(null),h("idle"),u==null||u()}})}),d.jsx("p",{className:"gc-fineprint",children:"A wallet you add can become this workspace's withdrawal wallet only 24 hours later."})]}),C?d.jsx(lt,{tone:"danger",children:ka(C)}):null,d.jsx("div",{className:"gc-actions",children:d.jsx(Le,{onClick:r,children:"Done"})})]}),d.jsx(a2,{isOpen:A!==null,busy:se.isPending,error:se.error,onClose:()=>{E(null),se.reset()},onConfirm:()=>A&&se.mutate(A),title:"Remove this sign-in method?",confirmLabel:"Remove",body:`You can no longer sign in with ${(A==null?void 0:A.label)??"it"}.`})]})}const Gv="antseed-console-exposure-dismissed";function yS(t,r,i){return!r||r.mode==="public"||i?!1:Ca(t)}function Up(t){if(!t)return!1;try{return sessionStorage.getItem(Gv)===t}catch{return!1}}function wS(t){try{sessionStorage.setItem(Gv,t)}catch{}}function xS(t){return t.mode==="local"?"This gateway runs on this computer":"This gateway is only reachable on your network"}function SS(t){return t.mode==="local"?"Keys only work while it's on and can't be reached from other machines.":t.personalComputer?"Keys only work while this computer is on, over plain HTTP, and not from outside your network.":"It has no public HTTPS address: keys travel over plain HTTP and do not work from outside your network."}const kS=/^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/;function BC(t){const r=t.trim().toLowerCase().replace(/^https?:\/\//,"").replace(/[/:].*$/,"");return kS.test(r)?r:null}const sa="antseed-gateway.bundle";function HC(t){const r=t.domain??"llm.example.com",i=t.server.trim()||"user@your-server",a=`/tmp/${sa}`;return{exportBundle:`antseed gateway export --out ${sa}`,copy:`scp ${sa} ${i}:${a}`,install:`curl -fsSL https://antseed.com/install-gateway.sh | sudo bash -s -- --domain ${r} --import ${a}`,baseUrl:`https://${r}/v1`,stop:`rm ${sa}`,recover:"antseed gateway console-link --recover",tunnel:`CLOUDFLARED_TUNNEL_TOKEN=<tunnel-token> ANTSEED_TUNNEL_PUBLIC_URL=https://${r} \\
|
|
84
84
|
antseed tunnel start --provider cloudflare`}}function pe({size:t=16,children:r,...i}){return d.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i,children:r})}const ut={overview:t=>d.jsxs(pe,{...t,children:[d.jsx("rect",{x:"3",y:"3",width:"7",height:"9",rx:"1.5"}),d.jsx("rect",{x:"14",y:"3",width:"7",height:"5",rx:"1.5"}),d.jsx("rect",{x:"14",y:"12",width:"7",height:"9",rx:"1.5"}),d.jsx("rect",{x:"3",y:"16",width:"7",height:"5",rx:"1.5"})]}),chat:t=>d.jsxs(pe,{...t,children:[d.jsx("path",{d:"M4 5h16v11H9l-5 4z"}),d.jsx("path",{d:"M8 9.5h8M8 12.5h5"})]}),activity:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"M3 12h4l3 8 4-16 3 8h4"})}),logs:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"})}),keys:t=>d.jsxs(pe,{...t,children:[d.jsx("circle",{cx:"8",cy:"15",r:"4"}),d.jsx("path",{d:"m10.8 12.2 9.2-9.2M17 6l3 3M14 9l2 2"})]}),members:t=>d.jsxs(pe,{...t,children:[d.jsx("circle",{cx:"9",cy:"8",r:"3.5"}),d.jsx("path",{d:"M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5a6.5 6.5 0 0 1 3.5 5.5"})]}),workspaces:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"M3 7h18v13H3zM8 7V4h8v3"})}),wallet:t=>d.jsxs(pe,{...t,children:[d.jsx("path",{d:"M3 7a2 2 0 0 1 2-2h13v4"}),d.jsx("rect",{x:"3",y:"7",width:"18",height:"13",rx:"2"}),d.jsx("circle",{cx:"16.5",cy:"13.5",r:"1.3"})]}),rewards:t=>d.jsxs(pe,{...t,children:[d.jsx("path",{d:"M12 15a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z"}),d.jsx("path",{d:"m8.5 14-1.5 7 5-3 5 3-1.5-7"})]}),providers:t=>d.jsxs(pe,{...t,children:[d.jsx("circle",{cx:"12",cy:"5",r:"2.2"}),d.jsx("circle",{cx:"5",cy:"18",r:"2.2"}),d.jsx("circle",{cx:"19",cy:"18",r:"2.2"}),d.jsx("path",{d:"M11 7 6 16M13 7l5 9M7.2 18h9.6"})]}),network:t=>d.jsxs(pe,{...t,children:[d.jsx("circle",{cx:"12",cy:"5",r:"2.2"}),d.jsx("circle",{cx:"5",cy:"18",r:"2.2"}),d.jsx("circle",{cx:"19",cy:"18",r:"2.2"}),d.jsx("path",{d:"M11 7 6 16M13 7l5 9M7.2 18h9.6"})]}),models:t=>d.jsxs(pe,{...t,children:[d.jsx("path",{d:"m12 3 9 5-9 5-9-5z"}),d.jsx("path",{d:"m3 12.5 9 5 9-5M3 17l9 5 9-5"})]}),routing:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"M6 3v6a4 4 0 0 0 4 4h8M14 9l4 4-4 4M6 21v-4"})}),presets:t=>d.jsxs(pe,{...t,children:[d.jsx("path",{d:"M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0"}),d.jsx("circle",{cx:"16",cy:"6",r:"2"}),d.jsx("circle",{cx:"10",cy:"12",r:"2"}),d.jsx("circle",{cx:"18",cy:"18",r:"2"})]}),settings:t=>d.jsxs(pe,{...t,children:[d.jsx("circle",{cx:"12",cy:"12",r:"3"}),d.jsx("path",{d:"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z"})]}),audit:t=>d.jsxs(pe,{...t,children:[d.jsx("path",{d:"M9 4h6a1 1 0 0 1 1 1v1H8V5a1 1 0 0 1 1-1Z"}),d.jsx("path",{d:"M8 6H6a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-2M9 12h6M9 16h4"})]}),copy:t=>d.jsxs(pe,{...t,children:[d.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2"}),d.jsx("path",{d:"M5 15V5a2 2 0 0 1 2-2h10"})]}),check:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"m5 12 5 5L20 7"})}),right:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"m9 6 6 6-6 6"})}),left:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"m15 6-6 6 6 6"})}),qr:t=>d.jsxs(pe,{...t,children:[d.jsx("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1"}),d.jsx("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1"}),d.jsx("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1"}),d.jsx("path",{d:"M14 14h3v3M21 14v.01M14 21h3M20 18v3"})]}),lock:t=>d.jsxs(pe,{...t,children:[d.jsx("rect",{x:"4",y:"10",width:"16",height:"11",rx:"2"}),d.jsx("path",{d:"M8 10V7a4 4 0 0 1 8 0v3"})]}),plus:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"M12 5v14M5 12h14"})}),up:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"m6 15 6-6 6 6"})}),down:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"m6 9 6 6 6-6"})}),x:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"M6 6l12 12M18 6 6 18"})}),menu:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"M4 6h16M4 12h16M4 18h16"})}),sun:t=>d.jsxs(pe,{...t,children:[d.jsx("circle",{cx:"12",cy:"12",r:"4"}),d.jsx("path",{d:"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]}),monitor:t=>d.jsxs(pe,{...t,children:[d.jsx("rect",{x:"3",y:"4",width:"18",height:"12",rx:"2"}),d.jsx("path",{d:"M8 20h8M12 16v4"})]}),moon:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})}),external:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"})}),download:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"M12 4v11M7 10l5 5 5-5M4 20h16"})}),more:t=>d.jsxs(pe,{...t,children:[d.jsx("circle",{cx:"5",cy:"12",r:"1"}),d.jsx("circle",{cx:"12",cy:"12",r:"1"}),d.jsx("circle",{cx:"19",cy:"12",r:"1"})]}),shield:t=>d.jsxs(pe,{...t,children:[d.jsx("path",{d:"M12 3 4 6v6c0 4.5 3.4 8.3 8 9 4.6-.7 8-4.5 8-9V6Z"}),d.jsx("path",{d:"m9 12 2 2 4-4"})]}),compass:t=>d.jsxs(pe,{...t,children:[d.jsx("circle",{cx:"12",cy:"12",r:"9"}),d.jsx("path",{d:"m15.5 8.5-2 5-5 2 2-5z"})]}),logout:t=>d.jsx(pe,{...t,children:d.jsx("path",{d:"M15 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4M10 17l5-5-5-5M15 12H3"})})};function CS(t){t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),an("migrate"))}function _S(){var f;const{viewer:t}=ir(),i=(f=qc().data)==null?void 0:f.exposure,[a,u]=I.useState(()=>Up(i==null?void 0:i.mode));return!yS(t,i,a||Up(i==null?void 0:i.mode))||!i?null:d.jsxs("div",{className:"gc-exposure",role:"region","aria-label":"Gateway reachability",children:[d.jsx("span",{className:"gc-exposure__icon","aria-hidden":"true",children:d.jsx(ut.monitor,{size:16})}),d.jsxs("div",{className:"gc-exposure__text",children:[d.jsxs("strong",{children:[xS(i),"."]})," ",d.jsx("span",{children:SS(i)})]}),d.jsxs("div",{className:"gc-exposure__actions",children:[d.jsxs(Le,{size:"sm",variant:"outline",href:_a("migrate"),onClick:CS,className:"gc-exposure__cta",children:["Move to a server ",d.jsx("span",{className:"gc-exposure__rec",children:"(recommended)"})]}),d.jsx($o,{label:"Dismiss for this session",className:"gc-exposure__close",onClick:()=>{wS(i.mode),u(!0)},children:d.jsx(ut.x,{size:14})})]})]})}function ES(t,r){return(t||r).replace(/\/+$/,"")}function PS(t){return`${t}/v1`}const Ea="ANTSEED_API_KEY",Pa={env:Ea};function bS(t){return"secret"in t?t.secret:`$${t.env}`}function Yv(t){return"secret"in t?`'${t.secret}'`:`process.env.${t.env}`}function jS(t){return"secret"in t?`"${t.secret}"`:`os.environ["${t.env}"]`}function Zv(t,r){return`${t.trim().toLowerCase().replace(/^0x/,"")}@${r.trim()}`}function TS(t){const r=t.apiProtocols??[];if(r.includes("openai-chat-completions"))return"openai-chat-completions";if(r.includes("anthropic-messages"))return"anthropic-messages";if(r.includes("openai-responses"))return"openai-responses";if(r.includes("openai-images"))return"openai-images";const i=t.provider.toLowerCase();return i.includes("anthropic")||i.includes("claude")?"anthropic-messages":i.includes("responses")?"openai-responses":"openai-chat-completions"}const RS={"anthropic-messages":"/v1/messages","openai-responses":"/v1/responses","openai-chat-completions":"/v1/chat/completions","openai-images":"/v1/images/generations"};function WC(t,r){if(t==="image")return"openai-images";if(t!=="text")return null;if(!r)return"openai-chat-completions";const i=TS({provider:r.provider,apiProtocols:r.protocols});return i==="openai-images"?"openai-chat-completions":i}const Jc="A lighthouse on a cliff at dawn, watercolor";function NS(t,r){return JSON.stringify(t==="anthropic-messages"?{model:r,max_tokens:1024,messages:[{role:"user",content:"Hello"}]}:t==="openai-responses"?{model:r,input:"Hello"}:t==="openai-images"?{model:r,prompt:Jc,n:1}:{model:r,messages:[{role:"user",content:"Hello"}]})}function Xv(t,r,i="openai-chat-completions",a=Pa){return[`curl ${t}${RS[i]} \\`,` -H "Authorization: Bearer ${bS(a)}" \\`,' -H "Content-Type: application/json" \\',` -d '${NS(i,r).replaceAll("'","'\\''")}'`].join(`
|
|
85
85
|
`)}function Jv(t,r,i="openai-chat-completions",a=Pa){return["import OpenAI from 'openai'","","const client = new OpenAI({",` baseURL: '${t}/v1',`,` apiKey: ${Yv(a)},`,"})","",...i==="openai-images"?["const result = await client.images.generate({",` model: '${r}',`,` prompt: '${Jc}',`,"})","console.log(result.data[0].url ?? result.data[0].b64_json)"]:i==="openai-responses"?["const reply = await client.responses.create({",` model: '${r}',`," input: 'Hello',","})","console.log(reply.output_text)"]:["const reply = await client.chat.completions.create({",` model: '${r}',`," messages: [{ role: 'user', content: 'Hello' }],","})","console.log(reply.choices[0].message.content)"]].join(`
|
|
86
86
|
`)}function IS(t,r,i="openai-chat-completions",a=Pa){return[..."env"in a?["import os"]:[],"from openai import OpenAI","",`client = OpenAI(base_url="${t}/v1", api_key=${jS(a)})`,"",...i==="openai-images"?[`result = client.images.generate(model="${r}", prompt="${Jc}")`,"print(result.data[0].url or result.data[0].b64_json)"]:i==="openai-responses"?[`reply = client.responses.create(model="${r}", input="Hello")`,"print(reply.output_text)"]:["reply = client.chat.completions.create(",` model="${r}",`,' messages=[{"role": "user", "content": "Hello"}],',")","print(reply.choices[0].message.content)"]].join(`
|
|
@@ -88,4 +88,4 @@ Error generating stack: `+c.message+`
|
|
|
88
88
|
`)}function MS(t,r){return["# ~/.codex/config.toml",`model = "${r}"`,'model_provider = "antseed"',"","[model_providers.antseed]",'name = "Antseed gateway"',`base_url = "${t}/v1"`,`env_key = "${Ea}"`,'wire_api = "responses"'].join(`
|
|
89
89
|
`)}function LS(t,r){return[`export ANTHROPIC_BASE_URL="${t}"`,`export ANTHROPIC_AUTH_TOKEN="$${Ea}"`,`export ANTHROPIC_MODEL="${r}"`,"claude"].join(`
|
|
90
90
|
`)}function OS(t,r){return[`Base URL: ${t}/v1`,`API key: $${Ea} (your Antseed key)`,`Model: ${r}`].join(`
|
|
91
|
-
`)}function VC(t,r,i="<model>"){const a={secret:r};return[{id:"curl",label:"curl",code:Xv(t,i,"openai-chat-completions",a)},{id:"openai",label:"OpenAI SDK",code:Jv(t,i,"openai-chat-completions",a)},{id:"anthropic",label:"Anthropic SDK",code:eg(t,i,a)}]}function AS(t,r,i){const a=[{id:"curl",label:"curl",language:"shell",code:Xv(t,r,i)},{id:"openai-python",label:"Python",language:"python",code:IS(t,r,i)},{id:"openai-js",label:"JavaScript",language:"javascript",code:Jv(t,r,i)}];return i==="anthropic-messages"&&a.push({id:"anthropic",label:"Anthropic SDK",language:"javascript",code:eg(t,r)}),a}function qC(t,r,i,a,u){const f=Zv(r,i),m=AS(t,f,a);return a==="openai-images"||m.push({id:"codex",label:"Codex",language:"toml",code:MS(t,u??"@preset/<your-preset>")},{id:"claude-code",label:"Claude Code",language:"shell",code:LS(t,f)},{id:"openai-compatible",label:"Cursor / OpenAI-compatible",language:"text",code:OS(t,f)}),m}function DS(){var r;const t=qc();return ES((r=t.data)==null?void 0:r.publicUrl,window.location.origin)}function FS(){const t=mv();return async r=>{await dv(r)?t("Copied"):t("Could not copy to the clipboard","danger")}}function KC(t,r,i){return{label:"Copy model id",onSelect:()=>void t(Zv(r,i))}}function QC({value:t,label:r}){const i=FS();return d.jsx($o,{label:r,size:"sm",className:"gc-copy-id",onClick:a=>{a.stopPropagation(),i(t)},children:d.jsx(ut.copy,{size:13})})}function Bp({className:t}){const r=PS(DS());return d.jsxs("div",{className:["gc-endpoint",t].filter(Boolean).join(" "),title:`OpenAI-compatible base URL: ${r}`,children:[d.jsx("span",{className:"gc-endpoint__label",children:"API"}),d.jsx("code",{className:"gc-endpoint__url",children:r}),d.jsx(Dc,{iconOnly:!0,value:r,label:"Copy the gateway API URL",className:"gc-endpoint__copy"})]})}const tg="https://antseed.com/docs/gateway",$S=I.lazy(()=>Ue(()=>import("./Migrate-DSwqmuYZ.js"),[]));function dc({to:t="overview",tagged:r,size:i=26}){const a=d.jsxs(d.Fragment,{children:[d.jsx(d2,{height:i,className:"gc-brand__full"}),d.jsx(f2,{size:26,className:"gc-brand__mark"}),d.jsx("span",{className:"gc-brand__tag",children:"Console"})]}),u=r?"gc-brand gc-brand--tagged":"gc-brand";return t===null?d.jsx("span",{className:u,children:a}):d.jsx("a",{className:u,href:_a(t),onClick:Hc(t),"aria-label":"Antseed console home",children:a})}const fc="No authorized wallet: nobody can withdraw funds or claim ANTS rewards";function zS(){var v;const{me:t,workspace:r,setWorkspaceId:i}=ir(),{missingOperator:a,currentMissingOperator:u}=Ev(),f=u&&d.jsx("span",{className:"gc-attention",role:"img","aria-label":fc,title:fc});if(t.workspaces.length<=1)return d.jsxs("span",{className:"gc-ws",title:"Workspace","data-tour":"workspace",children:[d.jsx(ut.workspaces,{size:14}),d.jsx("span",{className:"gc-ws__name",children:r.name}),f]});const m=(v=t.workspaces.find(g=>g.workspace.id===r.id))==null?void 0:v.role;return d.jsx("span",{"data-tour":"workspace",className:"gc-ws-wrap",children:d.jsx(o1,{label:`Workspace: ${r.name}. Switch workspace`,triggerStyle:"plain",align:"start",width:260,className:"gc-ws gc-ws--select",trigger:d.jsxs(d.Fragment,{children:[d.jsx(ut.workspaces,{size:14}),d.jsx("span",{className:"gc-ws__name",children:r.name}),m==="admin"&&d.jsx("span",{className:"gc-ws__role",children:"admin"}),f,d.jsx(ut.down,{size:14,className:"gc-ws__chevron"})]}),items:t.workspaces.map(({workspace:g,role:h})=>({label:g.name,description:[h==="admin"?"Admin":"Member",g.id!==r.id&&a.has(g.id)?"no authorized wallet":null].filter(Boolean).join(" · "),checked:g.id===r.id,onSelect:()=>{g.id!==r.id&&i(g.id)}}))})})}function US(t,r){return t!=="wallet"?null:r.currentMissingOperator?fc:r.withdrawable.count>0?`${r.withdrawable.count} channel${r.withdrawable.count===1?"":"s"} ready to withdraw`:null}function Hp({current:t,onNavigate:r}){const{viewer:i}=ir(),a=Ev(),u=_2(i),f=[...new Set(u.map(m=>m.group))];return d.jsx("nav",{className:"gc-nav","aria-label":"Console",children:f.map(m=>d.jsxs("div",{className:"gc-nav__group",children:[d.jsx("div",{className:"gc-nav__heading",children:m}),u.filter(v=>v.group===m).map(v=>{const g=ut[v.id]??ut.overview;return d.jsxs("a",{href:_a(v.id),"aria-current":v.id===t?"page":void 0,"data-tour":`nav-${v.id}`,className:v.id===t?"gc-nav__item gc-nav__item--on":"gc-nav__item",onClick:h=>{Hc(v.id)(h),r==null||r()},children:[d.jsx(g,{size:16}),d.jsx("span",{children:v.label}),(()=>{const h=US(v.id,a);return h&&d.jsx("span",{className:"gc-attention gc-nav__attention",role:"img","aria-label":h,title:h})})()]},v.id)})]},m))})}const Wp={system:"System",dark:"Dark",light:"Light"},BS={system:"dark",dark:"light",light:"system"},HS={system:ut.monitor,dark:ut.moon,light:ut.sun};function ng(){const[t,r]=I2(),i=BS[t],a=HS[t];return d.jsx($o,{className:"gc-topbar__icon",label:`Color theme: ${Wp[t]}. Switch to ${Wp[i]}.`,onClick:()=>r(i),children:d.jsx(a,{size:16})})}function WS(){const t=rr();return async()=>{try{await fe.auth.logout()}finally{t.clear(),an("login",{replace:!0})}}}function VS(t){var u;const r=t.trim().split(/\s+/).filter(Boolean),i=((u=r[0])==null?void 0:u[0])??"?",a=r.length>1?r[r.length-1][0]:"";return(i+a).toUpperCase()}function qS({onAccount:t,onTour:r,onSignOut:i}){const{me:a}=ir(),[u,f]=I.useState(!1),m=I.useRef(null),v=I.useRef(null);I.useEffect(()=>{var N,A;if(!u)return;const x=E=>{var M;(M=m.current)!=null&&M.contains(E.target)||f(!1)},C=E=>{var M;E.key==="Escape"&&(f(!1),(M=v.current)==null||M.focus())};return document.addEventListener("mousedown",x),document.addEventListener("keydown",C),(A=(N=m.current)==null?void 0:N.querySelector('[role="menuitem"]'))==null||A.focus(),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",C)}},[u]);const g=x=>()=>{f(!1),x()},h=Uc[a.member.orgRole],w=a.member.email?`${a.member.email} · ${h}`:h;return d.jsxs("div",{className:"gc-account",ref:m,"data-tour":"account",children:[d.jsx("button",{ref:v,type:"button",className:"gc-user","aria-haspopup":"menu","aria-expanded":u,"aria-label":`Your account: ${a.member.label}`,onClick:()=>f(x=>!x),children:d.jsx("span",{className:"gc-avatar","aria-hidden":"true",children:VS(a.member.label)})}),u&&d.jsxs("div",{className:"gc-account__menu",role:"menu","aria-label":"Account",children:[d.jsxs("div",{className:"gc-account__who",children:[d.jsx("div",{className:"gc-account__name",children:a.member.label}),d.jsx("div",{className:"gc-account__meta",children:w})]}),d.jsxs("button",{type:"button",role:"menuitem",className:"gc-account__item",onClick:g(t),children:[d.jsx(ut.shield,{size:15}),"Account and sign-in"]}),d.jsxs("button",{type:"button",role:"menuitem",className:"gc-account__item",onClick:g(r),children:[d.jsx(ut.compass,{size:15}),"Take the tour"]}),d.jsxs("a",{role:"menuitem",className:"gc-account__item",href:tg,target:"_blank",rel:"noreferrer",onClick:()=>f(!1),children:[d.jsx(ut.external,{size:15}),"Documentation"]}),d.jsx("div",{className:"gc-account__sep"}),d.jsxs("button",{type:"button",role:"menuitem",className:"gc-account__item",onClick:g(i),children:[d.jsx(ut.logout,{size:15}),"Sign out"]})]})]})}function Vp(){var r;const t=(r=qc().data)==null?void 0:r.version;return t?d.jsxs("p",{className:"gc-version",children:["Antseed v",t]}):null}function KS({page:t,children:r}){const[i,a]=I.useState(!1),[u,f]=I.useState(()=>new URLSearchParams(window.location.search).get("account")==="1"),m=WS(),v=Bc().page==="migrate",g=v?null:t,{me:h,viewer:w}=ir();return I.useEffect(()=>{if(v||zx(h.member.id))return;const x=window.setTimeout(()=>Fp(w,h.member.id),600);return()=>window.clearTimeout(x)},[h.member.id]),d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"gc-app","data-page":g??void 0,children:[d.jsx("a",{className:"gc-skip",href:"#gc-main",children:"Skip to content"}),d.jsxs("header",{className:"gc-topbar",children:[d.jsxs("div",{className:"gc-topbar__inner",children:[d.jsx($o,{label:"Open menu",className:"gc-topbar__menu gc-topbar__icon",onClick:()=>a(!0),children:d.jsx(ut.menu,{size:16})}),d.jsx(dc,{}),d.jsx("span",{className:"gc-topbar__sep","aria-hidden":"true",children:"/"}),d.jsx(zS,{}),d.jsx("div",{className:"gc-topbar__spacer"}),d.jsx(Bp,{className:"gc-endpoint--inline"}),d.jsx("a",{className:"gc-topbar__link",href:tg,target:"_blank",rel:"noreferrer",children:"Docs"}),d.jsx(ng,{}),d.jsx(qS,{onAccount:()=>f(!0),onTour:()=>Fp(w,h.member.id),onSignOut:()=>void m()})]}),d.jsx("div",{className:"gc-topbar__strip",children:d.jsx(Bp,{})})]}),d.jsxs("div",{className:"gc-body",children:[d.jsxs("aside",{className:"gc-rail",children:[d.jsx(Hp,{current:g}),d.jsx(Vp,{})]}),d.jsx("main",{id:"gc-main",className:"gc-main",tabIndex:-1,children:v?d.jsx(I.Suspense,{fallback:d.jsx(Ni,{rows:6}),children:d.jsx($S,{})}):d.jsxs(d.Fragment,{children:[d.jsx(_S,{}),r]})})]})]}),d.jsxs(u2,{isOpen:i,onClose:()=>a(!1),side:"left",title:d.jsx(dc,{to:null}),className:"gc-mobile-nav",children:[d.jsx(Hp,{current:g,onNavigate:()=>a(!1)}),d.jsx(Vp,{})]}),d.jsx(gS,{isOpen:u,onClose:()=>f(!1)})]})}const QS=I.lazy(()=>Ue(()=>import("./WalletSignIn-CE39ggEH.js"),__vite__mapDeps([0,1,2,3,4]))),qp={not_invited:"This account has not been invited to this console. Ask an admin for an invite link.",invite_expired:"This invite link has expired. Ask an admin for a new one.",invite_used:"This invite link was already used. Sign in instead.",invalid_token:"This link is not valid. Check that you copied all of it.",setup_complete:"This console is already set up. Sign in instead.",member_disabled:"Your access to this console has been turned off.",unknown_credential:"This passkey or wallet is not registered here.",key_revoked:"This API key has been revoked.",invalid_key:"That API key is not valid.",rate_limited:"Too many attempts. Wait a minute and try again.",key_expired:"This API key has expired.",not_linked:"This account is not linked to a member yet. Sign in another way and link it from your profile, or use your invite link.",invalid_enrollment:"This sign-up link has expired. Open your invite link again, or ask for a new one.",unauthenticated:"Sign in first.",oidc_denied:"Single sign-on was cancelled.",oidc_state:"The single sign-on attempt expired. Try again.",oidc_failed:"Single sign-on could not be verified. Try again, or use another sign-in method.",oidc_unavailable:"The single sign-on provider could not be reached. Try again later.",reauth_required:"Linking a sign-in provider needs a fresh sign-in. Go back to the console, confirm it is you under Your sign-in methods, then link it again.",access_reauth_required:"Your Cloudflare Access sign-in is more than 5 minutes old. Sign out of Cloudflare Access, sign in again, then link the provider again.",credential_exists:"This single sign-on account is already linked to another member."},GS=new Set(["reauth_required","access_reauth_required","credential_exists"]);function rg(t){return Object.hasOwn(qp,t)?qp[t]:void 0}function ed(t){return Lr(t)&&rg(t.code)||ka(t)}function hc({title:t,subtitle:r,children:i}){return d.jsxs("div",{className:"gc-auth",children:[d.jsx("div",{className:"gc-auth__theme",children:d.jsx(ng,{})}),d.jsx("div",{className:"gc-auth__logo",children:d.jsx(dc,{to:null,tagged:!0,size:30})}),d.jsxs(Sc,{className:"gc-auth__card",children:[d.jsx("h1",{className:"gc-auth__title",children:t}),r&&d.jsx("p",{className:"gc-auth__subtitle",children:r}),i]}),d.jsx("p",{className:"gc-auth__foot",children:"Self-hosted Antseed gateway"})]})}function ig(){const t=rr();return r=>{t.setQueryData(Pe.me,r),an(r.kind==="key"?"key":"overview",{replace:!0})}}function Kp({label:t,run:r,primary:i}){const[a,u]=I.useState(!1),[f,m]=I.useState(null),v=zo();return d.jsxs("div",{className:"gc-stack gc-stack--tight",children:[d.jsx(Le,{fullWidth:!0,variant:i?"primary":"outline",disabled:a||!v,onClick:async()=>{u(!0),m(null);try{await r()}catch(g){m(cc(g)?uc:ed(g))}finally{u(!1)}},children:a?"Waiting for your passkey…":t}),!v&&d.jsx("p",{className:"gc-fineprint",children:"This browser does not support passkeys."}),f&&d.jsx(lt,{tone:"danger",children:f})]})}function YS({enrollment:t,onSignedIn:r}){const[i,a]=I.useState(!1);return i?d.jsx(I.Suspense,{fallback:d.jsx(Le,{variant:"outline",fullWidth:!0,disabled:!0,children:"Loading wallets…"}),children:d.jsx(QS,{enrollment:t,onSignedIn:r,autoConnect:!0})}):d.jsx(Le,{variant:"outline",fullWidth:!0,onClick:()=>a(!0),children:"Sign in with a wallet"})}function ZS(){return d.jsx("div",{className:"gc-divider",children:d.jsx("span",{children:"or"})})}function XS({onSignedIn:t}){const[r,i]=I.useState(""),[a,u]=I.useState(!1),[f,m]=I.useState(null);return d.jsxs("form",{className:"gc-stack gc-stack--tight",onSubmit:async v=>{v.preventDefault(),u(!0),m(null);try{t(await fe.auth.apiKey(r.trim()))}catch(g){m(ed(g))}finally{u(!1)}},children:[d.jsx(g2,{label:"API key",type:"password",autoComplete:"off",placeholder:"Paste your key to see its usage",value:r,onChange:v=>i(v.target.value)}),d.jsx(Le,{type:"submit",variant:"outline",fullWidth:!0,disabled:a||!r.trim(),children:a?"Checking…":"View key usage"}),f&&d.jsx(lt,{tone:"danger",children:f})]})}function JS({mode:t,enrollment:r,onSignedIn:i}){return t==="login"?d.jsx(Kp,{primary:!0,label:"Sign in with a passkey",run:async()=>{const a=await fe.auth.passkeyLoginOptions(),u=await Kv({optionsJSON:a});i(await fe.auth.passkeyLoginVerify(u))}}):d.jsx(Kp,{primary:!0,label:"Create a passkey",run:async()=>{const a=await fe.auth.passkeyRegisterOptions(r),u=await qv({optionsJSON:a});i(await fe.auth.passkeyRegisterVerify(u,r))}})}function og({config:t,enrollment:r,onSignedIn:i,mode:a}){const u=[];return t.passkey&&u.push(d.jsx(JS,{mode:a,enrollment:r,onSignedIn:i},"passkey")),t.wallet&&u.push(d.jsx(YS,{enrollment:r,onSignedIn:i},"wallet")),t.oidc&&u.push(d.jsxs(Le,{variant:"outline",fullWidth:!0,href:fe.auth.oidcStartUrl(r),children:["Continue with ",t.oidc.label]},"oidc")),u.length===0?d.jsx(lt,{tone:"warning",children:"No sign-in method is enabled on this gateway. Check the gateway's console auth settings."}):d.jsx("div",{className:"gc-stack",children:u})}function ek(){const t=Vc(),r=ig(),i=new URLSearchParams(window.location.search).get("error");return d.jsxs(hc,{title:"Sign in",subtitle:"Manage keys, budgets, routing and funding for this gateway.",children:[i&&d.jsx(lt,{tone:"danger",action:GS.has(i)?d.jsx(Le,{size:"sm",variant:"outline",onClick:()=>an("overview?account=1",{replace:!0}),children:"Back to the console"}):void 0,children:rg(i)??"Sign-in did not complete. Try again."}),t.isLoading&&d.jsxs("div",{className:"gc-stack",children:[d.jsx(No,{height:34}),d.jsx(No,{height:34})]}),t.error?d.jsx(lt,{tone:"danger",title:"Could not reach the gateway",children:ka(t.error)}):null,t.data&&d.jsxs("div",{className:"gc-stack",children:[t.data.setupRequired&&d.jsxs(lt,{tone:"info",title:"Not set up yet",children:["Get a one-time setup link by running ",d.jsx("code",{children:"antseed gateway console-link"})," on the gateway, or ask the operator for it."]}),d.jsx(og,{config:t.data,mode:"login",onSignedIn:r}),t.data.cloudflareAccess&&d.jsx("p",{className:"gc-fineprint",children:"This gateway also accepts Cloudflare Access. If you signed in there, reload this page."}),t.data.apiKeyLogin&&d.jsxs(d.Fragment,{children:[d.jsx(ZS,{}),d.jsx(XS,{onSignedIn:r})]})]})]})}function tk({kind:t}){const[r,i]=I.useState(()=>window.location.hash.replace(/^#/,""));I.useEffect(()=>{const v=()=>{const g=window.location.hash.replace(/^#/,"");g&&(i(g),window.history.replaceState(null,"",window.location.pathname))};return v(),window.addEventListener("hashchange",v),()=>window.removeEventListener("hashchange",v)},[]);const a=ig(),u=Vc(),f=De({queryKey:["enrollment",t,r],queryFn:()=>t==="setup"?fe.auth.setup(r):t==="recover"?fe.request("POST","/auth/recover",{body:{token:r}}):fe.auth.invite(r),enabled:r!=="",retry:!1,staleTime:1/0}),m=t==="setup"?"Set up your Antseed console":t==="recover"?"Add a sign-in method":"You are invited";return r?d.jsxs(hc,{title:m,subtitle:f.data?t==="recover"?d.jsxs(d.Fragment,{children:["Welcome back, ",d.jsx("strong",{children:f.data.label}),". Add a passkey, wallet or single sign-on to sign in on this address."]}):d.jsxs(d.Fragment,{children:["Welcome, ",d.jsx("strong",{children:f.data.label}),". You will join as ",Uc[f.data.orgRole].toLowerCase(),". Choose how you sign in."]}):"Checking your link…",children:[(f.isLoading||u.isLoading)&&d.jsxs("div",{className:"gc-stack",children:[d.jsx(No,{height:34}),d.jsx(No,{height:34})]}),f.error?d.jsxs("div",{className:"gc-stack",children:[d.jsx(lt,{tone:"danger",children:ed(f.error)}),d.jsx(Le,{variant:"ghost",onClick:()=>an("login"),children:"Go to sign in"})]}):null,f.data&&u.data&&d.jsxs("div",{className:"gc-stack",children:[d.jsx(og,{config:u.data,mode:"enroll",enrollment:f.data.enrollment,onSignedIn:a}),d.jsx("p",{className:"gc-fineprint",children:"A passkey uses your device's screen lock or a security key. Nothing to remember."})]})]}):d.jsxs(hc,{title:m,children:[d.jsx(lt,{tone:"danger",children:"This link is missing its token. Open the full link you were given."}),d.jsx(Le,{variant:"ghost",onClick:()=>an("login"),children:"Go to sign in"})]})}const wa={overview:()=>Ue(()=>import("./Overview-zCE_XZV5.js"),__vite__mapDeps([7,8,9,10,11,12])),chat:()=>Ue(()=>import("./Chat-BvGYJ5Y8.js").then(t=>t.C),__vite__mapDeps([13,2,14])),activity:()=>Ue(()=>import("./Activity-62ACSef_.js"),__vite__mapDeps([15,8,9,10,11,12,16,17])),logs:()=>Ue(()=>import("./Logs-C2h0OUd6.js"),__vite__mapDeps([18,19,20,9,17,21,16])),keys:()=>Ue(()=>import("./Keys-stljGmXA.js"),__vite__mapDeps([22,23,24,16,11,12,25,26,27,28,21,9,17,10])),members:()=>Ue(()=>import("./Members-CvRczTwo.js"),__vite__mapDeps([29,23,24,16,11,12,25,26,28,17])),workspaces:()=>Ue(()=>import("./Workspaces-CmwBRhwh.js"),__vite__mapDeps([30,23,24,16,11,12,25,26,28,17])),wallet:()=>Ue(()=>import("./Wallet-B73Wye2M.js"),__vite__mapDeps([31,32,3,33,26,17,25])),rewards:()=>Ue(()=>import("./Rewards-EtGJVAbO.js"),__vite__mapDeps([34,32,35,17])),providers:()=>Ue(()=>import("./Providers-Deprr6b6.js"),__vite__mapDeps([36,24,16,11,12,25,26,17,37,35,38,23,39,27])),models:()=>Ue(()=>import("./Models-DRrQ0eaX.js"),__vite__mapDeps([40,27,12,37,16,25,17])),routing:()=>Ue(()=>import("./Routing-B4sVpf47.js"),__vite__mapDeps([41,23,24,16,11,12,25,26,17,27])),presets:()=>Ue(()=>import("./Presets-MqSKjh0_.js"),__vite__mapDeps([38,23,24,16,11,12,25,26,17,39])),audit:()=>Ue(()=>import("./Audit-DqVdOhlJ.js"),__vite__mapDeps([42,20,16,17])),settings:()=>Ue(()=>import("./Settings-mk_D9qwH.js"),__vite__mapDeps([43,24,16,11,12,25,26,39,27,17]))},sg={};for(const t of Object.keys(wa))sg[t]=I.lazy(wa[t]);const Qp=xv(window.location.pathname).page;ag(Qp)&&wa[Qp]().catch(()=>{});const Gp=()=>{wa.chat().catch(()=>{})};"requestIdleCallback"in window?window.requestIdleCallback(Gp,{timeout:4e3}):setTimeout(Gp,2e3);const nk=I.lazy(()=>Ue(()=>import("./KeyHolder-CPmUp8lv.js"),__vite__mapDeps([44,19,20,9,17,10]))),rk=new Uw({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!1,retry:(t,r)=>!(Lr(r)&&r.status>=400&&r.status<500)&&t<2}}});class ik extends I.Component{constructor(){super(...arguments);gu(this,"state",{failed:!1})}static getDerivedStateFromError(i){return{failed:!0,error:i}}render(){return this.state.failed?d.jsx(Xc,{error:this.state.error,title:"This page failed to load",onRetry:()=>this.setState({failed:!1,error:void 0})}):this.props.children}}function ag(t){return $c.some(r=>r.id===t)}function ok({me:t,page:r}){const[i,a]=I.useState(()=>{var C;return((C=jp(t,T2()))==null?void 0:C.id)??null}),u=jp(t,i),f=rr(),m=Bc(),v=j2(m.page,m.rest);I.useEffect(()=>{v&&an(v,{replace:!0})},[v]);const g=I.useMemo(()=>{if(!u)return null;const C=E2({me:t},u.id);return{me:t,workspace:u,workspaceRole:C.workspaceRole,viewer:C,setWorkspaceId:N=>{R2(N),a(N),f.invalidateQueries()}}},[t,u,f]);if(v)return d.jsx("div",{className:"gc-centered",children:d.jsx(Ni,{rows:3})});if(!g)return d.jsx("div",{className:"gc-centered",children:d.jsx(lt,{tone:"warning",title:"No workspace",children:"You are not a member of any workspace yet. Ask an admin to add you."})});const h=ag(r)?r:"overview",w=zc(h,g.viewer),x=sg[h];return d.jsx(gv.Provider,{value:g,children:d.jsx(KS,{page:h,children:d.jsx(ik,{children:d.jsx(I.Suspense,{fallback:d.jsx(Ni,{rows:6}),children:w?d.jsx(x,{}):d.jsx(lt,{tone:"warning",title:"Not available",children:"Your role cannot open this page."})})},m.page)})})}function sk({page:t}){const r=Y2(),i=Lr(r.error)&&r.error.status===401;return I.useEffect(()=>{i&&an("login",{replace:!0})},[i]),r.isLoading||i?d.jsx("div",{className:"gc-centered",children:d.jsx(Ni,{rows:3})}):r.error?d.jsxs("div",{className:"gc-centered gc-stack",children:[d.jsx(Xc,{error:r.error,title:"Could not open the console",onRetry:()=>void r.refetch()}),d.jsx(Le,{variant:"ghost",onClick:()=>an("login"),children:"Go to sign in"})]}):r.data?r.data.kind==="key"?d.jsx(I.Suspense,{fallback:d.jsx(Ni,{rows:6}),children:d.jsx(nk,{})}):d.jsx(ok,{me:r.data.me,page:t}):null}function ak(){const t=Bc();return t.page==="login"?d.jsx(ek,{}):t.page==="setup"||t.page==="invite"||t.page==="recover"?d.jsx(tk,{kind:t.page}):d.jsx(sk,{page:t.page})}function lk(){return d.jsx(Bw,{client:rk,children:d.jsx(w2,{children:d.jsx(ak,{})})})}N2();async function uk(){const t=document.getElementById("root");if(!t)throw new Error("#root element is missing");gw.createRoot(t).render(d.jsx(I.StrictMode,{children:d.jsx(lk,{})}))}uk();export{v2 as $,cv as A,Le as B,a2 as C,rr as D,xk as E,mv as F,iC as G,sC as H,ut as I,zC as J,Wc as K,Ni as L,AC as M,UC as N,Yk as O,gk as P,OC as Q,rC as R,wk as S,g2 as T,u2 as U,Sk as V,kk as W,D2 as X,Lr as Y,m2 as Z,Ue as _,_k as a,P2 as a$,p2 as a0,WS as a1,Y2 as a2,dc as a3,Bp as a4,ng as a5,Sv as a6,Ik as a7,Rp as a8,F2 as a9,cc as aA,hC as aB,Cv as aC,ES as aD,VC as aE,Ck as aF,FC as aG,NC as aH,vv as aI,RC as aJ,Wk as aK,IC as aL,da as aM,Uc as aN,Zk as aO,$C as aP,bk as aQ,Pk as aR,DS as aS,AS as aT,Ea as aU,Bc as aV,b2 as aW,qk as aX,FS as aY,QC as aZ,Tk as a_,Mk as aa,Rk as ab,lt as ac,o1 as ad,qc as ae,BC as af,HC as ag,ka as ah,LC as ai,aC as aj,Uk as ak,uC as al,B2 as am,W2 as an,H2 as ao,Dc as ap,ko as aq,z2 as ar,dC as as,cC as at,Mo as au,lC as av,Q2 as aw,fS as ax,hS as ay,uc as az,Xk as b,qC as b$,Zv as b0,WC as b1,Vk as b2,oC as b3,Jk as b4,gi as b5,KC as b6,nC as b7,gC as b8,Kk as b9,pk as bA,Jw as bB,MC as bC,bC as bD,yC as bE,Ii as bF,Ve as bG,fa as bH,um as bI,Hw as bJ,qw as bK,Yw as bL,Kw as bM,Qw as bN,pt as bO,Xw as bP,fp as bQ,Gw as bR,eC as bS,Ev as bT,DC as bU,Nk as bV,SC as bW,kC as bX,cS as bY,Hk as bZ,TS as b_,tC as ba,rS as bb,iS as bc,mC as bd,Yx as be,e1 as bf,pC as bg,Qv as bh,$o as bi,PC as bj,vC as bk,zc as bl,Hc as bm,_a as bn,TC as bo,wC as bp,Gc as bq,Qx as br,EC as bs,jC as bt,CC as bu,xC as bv,_C as bw,Lw as bx,dp as by,mk as bz,Gk as c,Bk as c0,fC as c1,dk as c2,uw as c3,ex as c4,Dk as c5,gS as c6,q2 as c7,Fk as c8,$k as c9,V2 as ca,Ok as cb,Ak as cc,U2 as cd,Lk as ce,zk as cf,fk as cg,hk as ch,t1 as ci,Ac as cj,Z0 as ck,x2 as cl,S2 as cm,mc as cn,bm as co,_m as cp,Cm as cq,rn as cr,la as cs,ua as ct,tv as cu,f1 as cv,A0 as cw,h1 as cx,Jt as cy,Ek as cz,De as d,fe as e,O2 as f,A2 as g,jk as h,Fc as i,d as j,yk as k,Xe as l,Ca as m,Xc as n,Qk as o,Z2 as p,Pe as q,I as r,dS as s,Sm as t,ir as u,sn as v,X2 as w,an as x,$2 as y,Zx as z};
|
|
91
|
+
`)}function VC(t,r,i="<model>"){const a={secret:r};return[{id:"curl",label:"curl",code:Xv(t,i,"openai-chat-completions",a)},{id:"openai",label:"OpenAI SDK",code:Jv(t,i,"openai-chat-completions",a)},{id:"anthropic",label:"Anthropic SDK",code:eg(t,i,a)}]}function AS(t,r,i){const a=[{id:"curl",label:"curl",language:"shell",code:Xv(t,r,i)},{id:"openai-python",label:"Python",language:"python",code:IS(t,r,i)},{id:"openai-js",label:"JavaScript",language:"javascript",code:Jv(t,r,i)}];return i==="anthropic-messages"&&a.push({id:"anthropic",label:"Anthropic SDK",language:"javascript",code:eg(t,r)}),a}function qC(t,r,i,a,u){const f=Zv(r,i),m=AS(t,f,a);return a==="openai-images"||m.push({id:"codex",label:"Codex",language:"toml",code:MS(t,u??"@preset/<your-preset>")},{id:"claude-code",label:"Claude Code",language:"shell",code:LS(t,f)},{id:"openai-compatible",label:"Cursor / OpenAI-compatible",language:"text",code:OS(t,f)}),m}function DS(){var r;const t=qc();return ES((r=t.data)==null?void 0:r.publicUrl,window.location.origin)}function FS(){const t=mv();return async r=>{await dv(r)?t("Copied"):t("Could not copy to the clipboard","danger")}}function KC(t,r,i){return{label:"Copy model id",onSelect:()=>void t(Zv(r,i))}}function QC({value:t,label:r}){const i=FS();return d.jsx($o,{label:r,size:"sm",className:"gc-copy-id",onClick:a=>{a.stopPropagation(),i(t)},children:d.jsx(ut.copy,{size:13})})}function Bp({className:t}){const r=PS(DS());return d.jsxs("div",{className:["gc-endpoint",t].filter(Boolean).join(" "),title:`OpenAI-compatible base URL: ${r}`,children:[d.jsx("span",{className:"gc-endpoint__label",children:"API"}),d.jsx("code",{className:"gc-endpoint__url",children:r}),d.jsx(Dc,{iconOnly:!0,value:r,label:"Copy the gateway API URL",className:"gc-endpoint__copy"})]})}const tg="https://antseed.com/docs/gateway",$S=I.lazy(()=>Ue(()=>import("./Migrate-IZJLx1xU.js"),[]));function dc({to:t="overview",tagged:r,size:i=26}){const a=d.jsxs(d.Fragment,{children:[d.jsx(d2,{height:i,className:"gc-brand__full"}),d.jsx(f2,{size:26,className:"gc-brand__mark"}),d.jsx("span",{className:"gc-brand__tag",children:"Console"})]}),u=r?"gc-brand gc-brand--tagged":"gc-brand";return t===null?d.jsx("span",{className:u,children:a}):d.jsx("a",{className:u,href:_a(t),onClick:Hc(t),"aria-label":"Antseed console home",children:a})}const fc="No authorized wallet: nobody can withdraw funds or claim ANTS rewards";function zS(){var v;const{me:t,workspace:r,setWorkspaceId:i}=ir(),{missingOperator:a,currentMissingOperator:u}=Ev(),f=u&&d.jsx("span",{className:"gc-attention",role:"img","aria-label":fc,title:fc});if(t.workspaces.length<=1)return d.jsxs("span",{className:"gc-ws",title:"Workspace","data-tour":"workspace",children:[d.jsx(ut.workspaces,{size:14}),d.jsx("span",{className:"gc-ws__name",children:r.name}),f]});const m=(v=t.workspaces.find(g=>g.workspace.id===r.id))==null?void 0:v.role;return d.jsx("span",{"data-tour":"workspace",className:"gc-ws-wrap",children:d.jsx(o1,{label:`Workspace: ${r.name}. Switch workspace`,triggerStyle:"plain",align:"start",width:260,className:"gc-ws gc-ws--select",trigger:d.jsxs(d.Fragment,{children:[d.jsx(ut.workspaces,{size:14}),d.jsx("span",{className:"gc-ws__name",children:r.name}),m==="admin"&&d.jsx("span",{className:"gc-ws__role",children:"admin"}),f,d.jsx(ut.down,{size:14,className:"gc-ws__chevron"})]}),items:t.workspaces.map(({workspace:g,role:h})=>({label:g.name,description:[h==="admin"?"Admin":"Member",g.id!==r.id&&a.has(g.id)?"no authorized wallet":null].filter(Boolean).join(" · "),checked:g.id===r.id,onSelect:()=>{g.id!==r.id&&i(g.id)}}))})})}function US(t,r){return t!=="wallet"?null:r.currentMissingOperator?fc:r.withdrawable.count>0?`${r.withdrawable.count} channel${r.withdrawable.count===1?"":"s"} ready to withdraw`:null}function Hp({current:t,onNavigate:r}){const{viewer:i}=ir(),a=Ev(),u=_2(i),f=[...new Set(u.map(m=>m.group))];return d.jsx("nav",{className:"gc-nav","aria-label":"Console",children:f.map(m=>d.jsxs("div",{className:"gc-nav__group",children:[d.jsx("div",{className:"gc-nav__heading",children:m}),u.filter(v=>v.group===m).map(v=>{const g=ut[v.id]??ut.overview;return d.jsxs("a",{href:_a(v.id),"aria-current":v.id===t?"page":void 0,"data-tour":`nav-${v.id}`,className:v.id===t?"gc-nav__item gc-nav__item--on":"gc-nav__item",onClick:h=>{Hc(v.id)(h),r==null||r()},children:[d.jsx(g,{size:16}),d.jsx("span",{children:v.label}),(()=>{const h=US(v.id,a);return h&&d.jsx("span",{className:"gc-attention gc-nav__attention",role:"img","aria-label":h,title:h})})()]},v.id)})]},m))})}const Wp={system:"System",dark:"Dark",light:"Light"},BS={system:"dark",dark:"light",light:"system"},HS={system:ut.monitor,dark:ut.moon,light:ut.sun};function ng(){const[t,r]=I2(),i=BS[t],a=HS[t];return d.jsx($o,{className:"gc-topbar__icon",label:`Color theme: ${Wp[t]}. Switch to ${Wp[i]}.`,onClick:()=>r(i),children:d.jsx(a,{size:16})})}function WS(){const t=rr();return async()=>{try{await fe.auth.logout()}finally{t.clear(),an("login",{replace:!0})}}}function VS(t){var u;const r=t.trim().split(/\s+/).filter(Boolean),i=((u=r[0])==null?void 0:u[0])??"?",a=r.length>1?r[r.length-1][0]:"";return(i+a).toUpperCase()}function qS({onAccount:t,onTour:r,onSignOut:i}){const{me:a}=ir(),[u,f]=I.useState(!1),m=I.useRef(null),v=I.useRef(null);I.useEffect(()=>{var N,A;if(!u)return;const x=E=>{var M;(M=m.current)!=null&&M.contains(E.target)||f(!1)},C=E=>{var M;E.key==="Escape"&&(f(!1),(M=v.current)==null||M.focus())};return document.addEventListener("mousedown",x),document.addEventListener("keydown",C),(A=(N=m.current)==null?void 0:N.querySelector('[role="menuitem"]'))==null||A.focus(),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",C)}},[u]);const g=x=>()=>{f(!1),x()},h=Uc[a.member.orgRole],y=a.member.email?`${a.member.email} · ${h}`:h;return d.jsxs("div",{className:"gc-account",ref:m,"data-tour":"account",children:[d.jsx("button",{ref:v,type:"button",className:"gc-user","aria-haspopup":"menu","aria-expanded":u,"aria-label":`Your account: ${a.member.label}`,onClick:()=>f(x=>!x),children:d.jsx("span",{className:"gc-avatar","aria-hidden":"true",children:VS(a.member.label)})}),u&&d.jsxs("div",{className:"gc-account__menu",role:"menu","aria-label":"Account",children:[d.jsxs("div",{className:"gc-account__who",children:[d.jsx("div",{className:"gc-account__name",children:a.member.label}),d.jsx("div",{className:"gc-account__meta",children:y})]}),d.jsxs("button",{type:"button",role:"menuitem",className:"gc-account__item",onClick:g(t),children:[d.jsx(ut.shield,{size:15}),"Account and sign-in"]}),d.jsxs("button",{type:"button",role:"menuitem",className:"gc-account__item",onClick:g(r),children:[d.jsx(ut.compass,{size:15}),"Take the tour"]}),d.jsxs("a",{role:"menuitem",className:"gc-account__item",href:tg,target:"_blank",rel:"noreferrer",onClick:()=>f(!1),children:[d.jsx(ut.external,{size:15}),"Documentation"]}),d.jsx("div",{className:"gc-account__sep"}),d.jsxs("button",{type:"button",role:"menuitem",className:"gc-account__item",onClick:g(i),children:[d.jsx(ut.logout,{size:15}),"Sign out"]})]})]})}function Vp(){var r;const t=(r=qc().data)==null?void 0:r.version;return t?d.jsxs("p",{className:"gc-version",children:["Antseed v",t]}):null}function KS({page:t,children:r}){const[i,a]=I.useState(!1),[u,f]=I.useState(()=>new URLSearchParams(window.location.search).get("account")==="1"),m=WS(),v=Bc().page==="migrate",g=v?null:t,{me:h,viewer:y}=ir();return I.useEffect(()=>{if(v||zx(h.member.id))return;const x=window.setTimeout(()=>Fp(y,h.member.id),600);return()=>window.clearTimeout(x)},[h.member.id]),d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"gc-app","data-page":g??void 0,children:[d.jsx("a",{className:"gc-skip",href:"#gc-main",children:"Skip to content"}),d.jsxs("header",{className:"gc-topbar",children:[d.jsxs("div",{className:"gc-topbar__inner",children:[d.jsx($o,{label:"Open menu",className:"gc-topbar__menu gc-topbar__icon",onClick:()=>a(!0),children:d.jsx(ut.menu,{size:16})}),d.jsx(dc,{}),d.jsx("span",{className:"gc-topbar__sep","aria-hidden":"true",children:"/"}),d.jsx(zS,{}),d.jsx("div",{className:"gc-topbar__spacer"}),d.jsx(Bp,{className:"gc-endpoint--inline"}),d.jsx("a",{className:"gc-topbar__link",href:tg,target:"_blank",rel:"noreferrer",children:"Docs"}),d.jsx(ng,{}),d.jsx(qS,{onAccount:()=>f(!0),onTour:()=>Fp(y,h.member.id),onSignOut:()=>void m()})]}),d.jsx("div",{className:"gc-topbar__strip",children:d.jsx(Bp,{})})]}),d.jsxs("div",{className:"gc-body",children:[d.jsxs("aside",{className:"gc-rail",children:[d.jsx(Hp,{current:g}),d.jsx(Vp,{})]}),d.jsx("main",{id:"gc-main",className:"gc-main",tabIndex:-1,children:v?d.jsx(I.Suspense,{fallback:d.jsx(Ni,{rows:6}),children:d.jsx($S,{})}):d.jsxs(d.Fragment,{children:[d.jsx(_S,{}),r]})})]})]}),d.jsxs(u2,{isOpen:i,onClose:()=>a(!1),side:"left",title:d.jsx(dc,{to:null}),className:"gc-mobile-nav",children:[d.jsx(Hp,{current:g,onNavigate:()=>a(!1)}),d.jsx(Vp,{})]}),d.jsx(gS,{isOpen:u,onClose:()=>f(!1)})]})}const QS=I.lazy(()=>Ue(()=>import("./WalletSignIn-_VjhsjCt.js"),__vite__mapDeps([0,1,2,3,4]))),qp={not_invited:"This account has not been invited to this console. Ask an admin for an invite link.",invite_expired:"This invite link has expired. Ask an admin for a new one.",invite_used:"This invite link was already used. Sign in instead.",invalid_token:"This link is not valid. Check that you copied all of it.",setup_complete:"This console is already set up. Sign in instead.",member_disabled:"Your access to this console has been turned off.",unknown_credential:"This passkey or wallet is not registered here.",key_revoked:"This API key has been revoked.",invalid_key:"That API key is not valid.",rate_limited:"Too many attempts. Wait a minute and try again.",key_expired:"This API key has expired.",not_linked:"This account is not linked to a member yet. Sign in another way and link it from your profile, or use your invite link.",invalid_enrollment:"This sign-up link has expired. Open your invite link again, or ask for a new one.",unauthenticated:"Sign in first.",oidc_denied:"Single sign-on was cancelled.",oidc_state:"The single sign-on attempt expired. Try again.",oidc_failed:"Single sign-on could not be verified. Try again, or use another sign-in method.",oidc_unavailable:"The single sign-on provider could not be reached. Try again later.",reauth_required:"Linking a sign-in provider needs a fresh sign-in. Go back to the console, confirm it is you under Your sign-in methods, then link it again.",access_reauth_required:"Your Cloudflare Access sign-in is more than 5 minutes old. Sign out of Cloudflare Access, sign in again, then link the provider again.",credential_exists:"This single sign-on account is already linked to another member."},GS=new Set(["reauth_required","access_reauth_required","credential_exists"]);function rg(t){return Object.hasOwn(qp,t)?qp[t]:void 0}function ed(t){return Lr(t)&&rg(t.code)||ka(t)}function hc({title:t,subtitle:r,children:i}){return d.jsxs("div",{className:"gc-auth",children:[d.jsx("div",{className:"gc-auth__theme",children:d.jsx(ng,{})}),d.jsx("div",{className:"gc-auth__logo",children:d.jsx(dc,{to:null,tagged:!0,size:30})}),d.jsxs(Sc,{className:"gc-auth__card",children:[d.jsx("h1",{className:"gc-auth__title",children:t}),r&&d.jsx("p",{className:"gc-auth__subtitle",children:r}),i]}),d.jsx("p",{className:"gc-auth__foot",children:"Self-hosted Antseed gateway"})]})}function ig(){const t=rr();return r=>{t.setQueryData(Pe.me,r),an(r.kind==="key"?"key":"overview",{replace:!0})}}function Kp({label:t,run:r,primary:i}){const[a,u]=I.useState(!1),[f,m]=I.useState(null),v=zo();return d.jsxs("div",{className:"gc-stack gc-stack--tight",children:[d.jsx(Le,{fullWidth:!0,variant:i?"primary":"outline",disabled:a||!v,onClick:async()=>{u(!0),m(null);try{await r()}catch(g){m(cc(g)?uc:ed(g))}finally{u(!1)}},children:a?"Waiting for your passkey…":t}),!v&&d.jsx("p",{className:"gc-fineprint",children:"This browser does not support passkeys."}),f&&d.jsx(lt,{tone:"danger",children:f})]})}function YS({enrollment:t,onSignedIn:r}){const[i,a]=I.useState(!1);return i?d.jsx(I.Suspense,{fallback:d.jsx(Le,{variant:"outline",fullWidth:!0,disabled:!0,children:"Loading wallets…"}),children:d.jsx(QS,{enrollment:t,onSignedIn:r,autoConnect:!0})}):d.jsx(Le,{variant:"outline",fullWidth:!0,onClick:()=>a(!0),children:"Sign in with a wallet"})}function ZS(){return d.jsx("div",{className:"gc-divider",children:d.jsx("span",{children:"or"})})}function XS({onSignedIn:t}){const[r,i]=I.useState(""),[a,u]=I.useState(!1),[f,m]=I.useState(null);return d.jsxs("form",{className:"gc-stack gc-stack--tight",onSubmit:async v=>{v.preventDefault(),u(!0),m(null);try{t(await fe.auth.apiKey(r.trim()))}catch(g){m(ed(g))}finally{u(!1)}},children:[d.jsx(g2,{label:"API key",type:"password",autoComplete:"off",placeholder:"Paste your key to see its usage",value:r,onChange:v=>i(v.target.value)}),d.jsx(Le,{type:"submit",variant:"outline",fullWidth:!0,disabled:a||!r.trim(),children:a?"Checking…":"View key usage"}),f&&d.jsx(lt,{tone:"danger",children:f})]})}function JS({mode:t,enrollment:r,onSignedIn:i}){return t==="login"?d.jsx(Kp,{primary:!0,label:"Sign in with a passkey",run:async()=>{const a=await fe.auth.passkeyLoginOptions(),u=await Kv({optionsJSON:a});i(await fe.auth.passkeyLoginVerify(u))}}):d.jsx(Kp,{primary:!0,label:"Create a passkey",run:async()=>{const a=await fe.auth.passkeyRegisterOptions(r),u=await qv({optionsJSON:a});i(await fe.auth.passkeyRegisterVerify(u,r))}})}function og({config:t,enrollment:r,onSignedIn:i,mode:a}){const u=[];return t.passkey&&u.push(d.jsx(JS,{mode:a,enrollment:r,onSignedIn:i},"passkey")),t.wallet&&u.push(d.jsx(YS,{enrollment:r,onSignedIn:i},"wallet")),t.oidc&&u.push(d.jsxs(Le,{variant:"outline",fullWidth:!0,href:fe.auth.oidcStartUrl(r),children:["Continue with ",t.oidc.label]},"oidc")),u.length===0?d.jsx(lt,{tone:"warning",children:"No sign-in method is enabled on this gateway. Check the gateway's console auth settings."}):d.jsx("div",{className:"gc-stack",children:u})}function ek(){const t=Vc(),r=ig(),i=new URLSearchParams(window.location.search).get("error");return d.jsxs(hc,{title:"Sign in",subtitle:"Manage keys, budgets, routing and funding for this gateway.",children:[i&&d.jsx(lt,{tone:"danger",action:GS.has(i)?d.jsx(Le,{size:"sm",variant:"outline",onClick:()=>an("overview?account=1",{replace:!0}),children:"Back to the console"}):void 0,children:rg(i)??"Sign-in did not complete. Try again."}),t.isLoading&&d.jsxs("div",{className:"gc-stack",children:[d.jsx(No,{height:34}),d.jsx(No,{height:34})]}),t.error?d.jsx(lt,{tone:"danger",title:"Could not reach the gateway",children:ka(t.error)}):null,t.data&&d.jsxs("div",{className:"gc-stack",children:[t.data.setupRequired&&d.jsxs(lt,{tone:"info",title:"Not set up yet",children:["Get a one-time setup link by running ",d.jsx("code",{children:"antseed gateway console-link"})," on the gateway, or ask the operator for it."]}),d.jsx(og,{config:t.data,mode:"login",onSignedIn:r}),t.data.cloudflareAccess&&d.jsx("p",{className:"gc-fineprint",children:"This gateway also accepts Cloudflare Access. If you signed in there, reload this page."}),t.data.apiKeyLogin&&d.jsxs(d.Fragment,{children:[d.jsx(ZS,{}),d.jsx(XS,{onSignedIn:r})]})]})]})}function tk({kind:t}){const[r,i]=I.useState(()=>window.location.hash.replace(/^#/,""));I.useEffect(()=>{const v=()=>{const g=window.location.hash.replace(/^#/,"");g&&(i(g),window.history.replaceState(null,"",window.location.pathname))};return v(),window.addEventListener("hashchange",v),()=>window.removeEventListener("hashchange",v)},[]);const a=ig(),u=Vc(),f=De({queryKey:["enrollment",t,r],queryFn:()=>t==="setup"?fe.auth.setup(r):t==="recover"?fe.request("POST","/auth/recover",{body:{token:r}}):fe.auth.invite(r),enabled:r!=="",retry:!1,staleTime:1/0}),m=t==="setup"?"Set up your Antseed console":t==="recover"?"Add a sign-in method":"You are invited";return r?d.jsxs(hc,{title:m,subtitle:f.data?t==="recover"?d.jsxs(d.Fragment,{children:["Welcome back, ",d.jsx("strong",{children:f.data.label}),". Add a passkey, wallet or single sign-on to sign in on this address."]}):d.jsxs(d.Fragment,{children:["Welcome, ",d.jsx("strong",{children:f.data.label}),". You will join as ",Uc[f.data.orgRole].toLowerCase(),". Choose how you sign in."]}):"Checking your link…",children:[(f.isLoading||u.isLoading)&&d.jsxs("div",{className:"gc-stack",children:[d.jsx(No,{height:34}),d.jsx(No,{height:34})]}),f.error?d.jsxs("div",{className:"gc-stack",children:[d.jsx(lt,{tone:"danger",children:ed(f.error)}),d.jsx(Le,{variant:"ghost",onClick:()=>an("login"),children:"Go to sign in"})]}):null,f.data&&u.data&&d.jsxs("div",{className:"gc-stack",children:[d.jsx(og,{config:u.data,mode:"enroll",enrollment:f.data.enrollment,onSignedIn:a}),d.jsx("p",{className:"gc-fineprint",children:"A passkey uses your device's screen lock or a security key. Nothing to remember."})]})]}):d.jsxs(hc,{title:m,children:[d.jsx(lt,{tone:"danger",children:"This link is missing its token. Open the full link you were given."}),d.jsx(Le,{variant:"ghost",onClick:()=>an("login"),children:"Go to sign in"})]})}const wa={overview:()=>Ue(()=>import("./Overview-CAxieiTF.js"),__vite__mapDeps([7,8,9,10,11,12])),chat:()=>Ue(()=>import("./Chat-D1yVH5Y-.js").then(t=>t.C),__vite__mapDeps([13,2,14])),activity:()=>Ue(()=>import("./Activity-CoD1LZfl.js"),__vite__mapDeps([15,8,9,10,16,11,12,17,18])),logs:()=>Ue(()=>import("./Logs-B-T-V-pM.js"),__vite__mapDeps([19,20,21,16,9,18,22,17])),keys:()=>Ue(()=>import("./Keys-BovEuhch.js"),__vite__mapDeps([23,24,25,16,17,11,12,26,27,28,29,22,9,18,10])),members:()=>Ue(()=>import("./Members-tWNaQdIJ.js"),__vite__mapDeps([30,24,25,16,17,11,12,26,27,29,18])),workspaces:()=>Ue(()=>import("./Workspaces-Da-rLWlz.js"),__vite__mapDeps([31,24,25,16,17,11,12,26,27,29,18])),wallet:()=>Ue(()=>import("./Wallet-BOMYI48H.js"),__vite__mapDeps([32,33,3,34,18,27,26])),rewards:()=>Ue(()=>import("./Rewards-CRiw-wXO.js"),__vite__mapDeps([35,33,36,18])),providers:()=>Ue(()=>import("./Providers-B3qO68z-.js"),__vite__mapDeps([37,16,17,18,38,36,39,24,25,11,12,26,27,40,28])),models:()=>Ue(()=>import("./Models-gJrRx-QV.js"),__vite__mapDeps([41,28,12,38,17,26,18])),routing:()=>Ue(()=>import("./Routing-YpzgjNx_.js"),__vite__mapDeps([42,24,25,16,17,11,12,26,27,18,28])),presets:()=>Ue(()=>import("./Presets-DBRoMTo4.js"),__vite__mapDeps([39,24,25,16,17,11,12,26,27,18,40])),audit:()=>Ue(()=>import("./Audit-CNmmoaeN.js"),__vite__mapDeps([43,21,17,18])),settings:()=>Ue(()=>import("./Settings-CSXJvDLz.js"),__vite__mapDeps([44,16,25,17,11,12,26,27,40,28,18]))},sg={};for(const t of Object.keys(wa))sg[t]=I.lazy(wa[t]);const Qp=xv(window.location.pathname).page;ag(Qp)&&wa[Qp]().catch(()=>{});const Gp=()=>{wa.chat().catch(()=>{})};"requestIdleCallback"in window?window.requestIdleCallback(Gp,{timeout:4e3}):setTimeout(Gp,2e3);const nk=I.lazy(()=>Ue(()=>import("./KeyHolder-CmffMcZD.js"),__vite__mapDeps([45,20,21,16,9,18,10]))),rk=new Uw({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!1,retry:(t,r)=>!(Lr(r)&&r.status>=400&&r.status<500)&&t<2}}});class ik extends I.Component{constructor(){super(...arguments);gu(this,"state",{failed:!1})}static getDerivedStateFromError(i){return{failed:!0,error:i}}render(){return this.state.failed?d.jsx(Xc,{error:this.state.error,title:"This page failed to load",onRetry:()=>this.setState({failed:!1,error:void 0})}):this.props.children}}function ag(t){return $c.some(r=>r.id===t)}function ok({me:t,page:r}){const[i,a]=I.useState(()=>{var C;return((C=jp(t,T2()))==null?void 0:C.id)??null}),u=jp(t,i),f=rr(),m=Bc(),v=j2(m.page,m.rest);I.useEffect(()=>{v&&an(v,{replace:!0})},[v]);const g=I.useMemo(()=>{if(!u)return null;const C=E2({me:t},u.id);return{me:t,workspace:u,workspaceRole:C.workspaceRole,viewer:C,setWorkspaceId:N=>{R2(N),a(N),f.invalidateQueries()}}},[t,u,f]);if(v)return d.jsx("div",{className:"gc-centered",children:d.jsx(Ni,{rows:3})});if(!g)return d.jsx("div",{className:"gc-centered",children:d.jsx(lt,{tone:"warning",title:"No workspace",children:"You are not a member of any workspace yet. Ask an admin to add you."})});const h=ag(r)?r:"overview",y=zc(h,g.viewer),x=sg[h];return d.jsx(gv.Provider,{value:g,children:d.jsx(KS,{page:h,children:d.jsx(ik,{children:d.jsx(I.Suspense,{fallback:d.jsx(Ni,{rows:6}),children:y?d.jsx(x,{}):d.jsx(lt,{tone:"warning",title:"Not available",children:"Your role cannot open this page."})})},m.page)})})}function sk({page:t}){const r=Y2(),i=Lr(r.error)&&r.error.status===401;return I.useEffect(()=>{i&&an("login",{replace:!0})},[i]),r.isLoading||i?d.jsx("div",{className:"gc-centered",children:d.jsx(Ni,{rows:3})}):r.error?d.jsxs("div",{className:"gc-centered gc-stack",children:[d.jsx(Xc,{error:r.error,title:"Could not open the console",onRetry:()=>void r.refetch()}),d.jsx(Le,{variant:"ghost",onClick:()=>an("login"),children:"Go to sign in"})]}):r.data?r.data.kind==="key"?d.jsx(I.Suspense,{fallback:d.jsx(Ni,{rows:6}),children:d.jsx(nk,{})}):d.jsx(ok,{me:r.data.me,page:t}):null}function ak(){const t=Bc();return t.page==="login"?d.jsx(ek,{}):t.page==="setup"||t.page==="invite"||t.page==="recover"?d.jsx(tk,{kind:t.page}):d.jsx(sk,{page:t.page})}function lk(){return d.jsx(Bw,{client:rk,children:d.jsx(w2,{children:d.jsx(ak,{})})})}N2();async function uk(){const t=document.getElementById("root");if(!t)throw new Error("#root element is missing");gw.createRoot(t).render(d.jsx(I.StrictMode,{children:d.jsx(lk,{})}))}uk();export{m2 as $,Zx as A,Le as B,cv as C,a2 as D,xk as E,rr as F,mv as G,iC as H,ut as I,sC as J,zC as K,Ni as L,AC as M,Wc as N,UC as O,gk as P,OC as Q,Yk as R,wk as S,g2 as T,rC as U,u2 as V,Sk as W,kk as X,D2 as Y,Lr as Z,Ue as _,_k as a,Ck as a$,v2 as a0,p2 as a1,oC as a2,vC as a3,nC as a4,iS as a5,zc as a6,Hc as a7,_a as a8,TC as a9,qc as aA,BC as aB,HC as aC,ka as aD,LC as aE,aC as aF,Uk as aG,uC as aH,B2 as aI,W2 as aJ,H2 as aK,Dc as aL,ko as aM,z2 as aN,dC as aO,cC as aP,Mo as aQ,lC as aR,Q2 as aS,fS as aT,hS as aU,uc as aV,cc as aW,hC as aX,Cv as aY,ES as aZ,VC as a_,wC as aa,Gc as ab,Qx as ac,EC as ad,pC as ae,jC as af,lt as ag,CC as ah,xC as ai,_C as aj,gi as ak,WS as al,Y2 as am,dc as an,Bp as ao,ng as ap,Sv as aq,Ik as ar,Rp as as,F2 as at,Mk as au,Rk as av,Qv as aw,$o as ax,PC as ay,o1 as az,Vk as b,qC as b$,FC as b0,NC as b1,vv as b2,RC as b3,Wk as b4,IC as b5,da as b6,Uc as b7,Zk as b8,$C as b9,pk as bA,Jw as bB,MC as bC,bC as bD,yC as bE,Ii as bF,Ve as bG,fa as bH,um as bI,Hw as bJ,qw as bK,Yw as bL,Kw as bM,Qw as bN,pt as bO,Xw as bP,fp as bQ,Gw as bR,eC as bS,Ev as bT,DC as bU,Nk as bV,SC as bW,kC as bX,cS as bY,Hk as bZ,TS as b_,bk as ba,Pk as bb,DS as bc,AS as bd,Ea as be,Bc as bf,b2 as bg,qk as bh,FS as bi,QC as bj,Tk as bk,P2 as bl,Zv as bm,WC as bn,Jk as bo,KC as bp,gC as bq,Kk as br,tC as bs,rS as bt,mC as bu,Yx as bv,e1 as bw,Lw as bx,dp as by,mk as bz,Xk as c,Bk as c0,fC as c1,dk as c2,uw as c3,ex as c4,Dk as c5,d2 as c6,gS as c7,q2 as c8,Fk as c9,Ek as cA,$k as ca,V2 as cb,Ok as cc,Ak as cd,U2 as ce,Lk as cf,zk as cg,fk as ch,hk as ci,t1 as cj,Ac as ck,Z0 as cl,x2 as cm,S2 as cn,mc as co,bm as cp,_m as cq,Cm as cr,rn as cs,la as ct,ua as cu,tv as cv,f1 as cw,A0 as cx,h1 as cy,Jt as cz,Gk as d,De as e,fe as f,O2 as g,A2 as h,Fc as i,d as j,jk as k,yk as l,Xe as m,Ca as n,Xc as o,Qk as p,Pe as q,I as r,Z2 as s,dS as t,ir as u,Sm as v,sn as w,X2 as x,an as y,$2 as z};
|