tokentracker-cli 1.3.8 → 1.3.10
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/README.de.md +7 -6
- package/README.ja.md +6 -5
- package/README.ko.md +6 -5
- package/README.md +7 -6
- package/README.zh-CN.md +6 -5
- package/dashboard/dist/assets/{AchievementBadge-BqLeP5y3.js → AchievementBadge-vU4Dwu_p.js} +1 -1
- package/dashboard/dist/assets/{AchievementsPage-BwVkM45R.js → AchievementsPage-C8LspyPK.js} +2 -2
- package/dashboard/dist/assets/{AchievementsSection-CglgOcQ1.js → AchievementsSection-CP8J07fV.js} +1 -1
- package/dashboard/dist/assets/{BadgeDetailModal-IurF0cmo.js → BadgeDetailModal-Ci1egHvR.js} +1 -1
- package/dashboard/dist/assets/{BotAnimated-C4_NxPuy.js → BotAnimated-CMXILM_h.js} +1 -1
- package/dashboard/dist/assets/{Card-C-UuIN42.js → Card-BHHCCnqR.js} +1 -1
- package/dashboard/dist/assets/{CloudCheckoutPage-CrMDquLi.js → CloudCheckoutPage-BY9Hsbix.js} +1 -1
- package/dashboard/dist/assets/{CloudPage-D6xTPnMs.js → CloudPage-Y6JgOXcJ.js} +2 -2
- package/dashboard/dist/assets/{CommandPalette-8LFLY-LQ.js → CommandPalette-BRWQFJwy.js} +1 -1
- package/dashboard/dist/assets/CommunityStatsModal-krT4ZZX9.js +1 -0
- package/dashboard/dist/assets/{ConfirmModal-St89kP59.js → ConfirmModal-ZvPOJ0he.js} +1 -1
- package/dashboard/dist/assets/Controls-CQlxw03i.js +1 -0
- package/dashboard/dist/assets/{DashboardPage-BvGqFvP7.js → DashboardPage-Dbi0d2JY.js} +1 -1
- package/dashboard/dist/assets/{DateRangePopover-Cbd1idiF.js → DateRangePopover-DJ8RpQfV.js} +1 -1
- package/dashboard/dist/assets/DevicePage-C4_cbw3M.js +1 -0
- package/dashboard/dist/assets/{DialogClose-Cb1-Hd8P.js → DialogClose-Dx5AqmUG.js} +1 -1
- package/dashboard/dist/assets/DialogDescription-LvhfT1Ox.js +1 -0
- package/dashboard/dist/assets/{DialogTitle-VXrHY7H0.js → DialogTitle-Cro2S8s8.js} +1 -1
- package/dashboard/dist/assets/{ElectricLogo-DmQqYnSD.js → ElectricLogo-gqnBCtSG.js} +1 -1
- package/dashboard/dist/assets/{FadeIn-BEieTXMD.js → FadeIn-B9oATcDZ.js} +1 -1
- package/dashboard/dist/assets/{HeaderGithubStar-BlYC_PSb.js → HeaderGithubStar-CYa94wna.js} +1 -1
- package/dashboard/dist/assets/{HoverTooltip-C5Pe7iBz.js → HoverTooltip-BJ4qLyuS.js} +1 -1
- package/dashboard/dist/assets/{IpCheckPage-Diln3EdG.js → IpCheckPage-Clpq3jdY.js} +1 -1
- package/dashboard/dist/assets/{LandingPage-BzGYuAO7.js → LandingPage-CuazuOAo.js} +2 -2
- package/dashboard/dist/assets/{LeaderboardPage-Bn-ehU5S.js → LeaderboardPage-BSF1Lbtq.js} +2 -2
- package/dashboard/dist/assets/{LeaderboardProBadge-SovdGwYs.js → LeaderboardProBadge-K32gY52s.js} +1 -1
- package/dashboard/dist/assets/{LeaderboardProfileModal-BhxmTcHh.js → LeaderboardProfileModal-D5gpn7pP.js} +3 -3
- package/dashboard/dist/assets/{LeaderboardProfilePage-3iAYvoTb.js → LeaderboardProfilePage-BmO9nIi-.js} +1 -1
- package/dashboard/dist/assets/{LimitsPage-DHxFAdqK.js → LimitsPage-D9ZJ1TeK.js} +1 -1
- package/dashboard/dist/assets/{LocalOnlyNotice-HlGfiiI3.js → LocalOnlyNotice-BkzysTS7.js} +1 -1
- package/dashboard/dist/assets/{LoginCard-CamUYmiF.js → LoginCard-Do3SNJFU.js} +1 -1
- package/dashboard/dist/assets/{LoginModal-CcmYUJ45.js → LoginModal-hph1i_YK.js} +1 -1
- package/dashboard/dist/assets/{LoginPage-DMNNmZwr.js → LoginPage-DXYAaFjJ.js} +1 -1
- package/dashboard/dist/assets/{PetPage-D6xFX8QA.js → PetPage-D1Pk4OKI.js} +2 -2
- package/dashboard/dist/assets/{PopoverPopup-CKKgItAT.js → PopoverPopup-CAIuP_a5.js} +1 -1
- package/dashboard/dist/assets/{ProviderIcon-B-uS3pJ3.js → ProviderIcon-R6Bsj81X.js} +1 -1
- package/dashboard/dist/assets/{ResetPasswordPage-DX4RJjX0.js → ResetPasswordPage-BR3GTF-3.js} +1 -1
- package/dashboard/dist/assets/{Select-Dcg7FYAt.js → Select-38Dh-OWv.js} +1 -1
- package/dashboard/dist/assets/{SelectItemText-4vuj6xMs.js → SelectItemText-90n7jKbI.js} +1 -1
- package/dashboard/dist/assets/{SelfHostPage-ButVBgE7.js → SelfHostPage-BKVYkHI6.js} +1 -1
- package/dashboard/dist/assets/{ServiceStatusPage-DJDDO6lV.js → ServiceStatusPage-PBmBn29J.js} +1 -1
- package/dashboard/dist/assets/{SessionsPage-CiUirFMD.js → SessionsPage-58MfDHhe.js} +3 -3
- package/dashboard/dist/assets/SettingsPage-BNLHbZUQ.js +5 -0
- package/dashboard/dist/assets/{SkillsPage-D2tfFFY8.js → SkillsPage-DMMTk4jD.js} +1 -1
- package/dashboard/dist/assets/{TokenGalaxy-TQ-eWK8P.js → TokenGalaxy-BdPETjru.js} +1 -1
- package/dashboard/dist/assets/{TooltipPopup-BhSCJqFR.js → TooltipPopup-BXl-vM4L.js} +1 -1
- package/dashboard/dist/assets/{TrendMonitor-CP6ZZ53c.js → TrendMonitor-wPfTlX-7.js} +1 -1
- package/dashboard/dist/assets/{WidgetsPage-BdeR7P8D.js → WidgetsPage-CuwRMWka.js} +1 -1
- package/dashboard/dist/assets/{WrappedPage-OqcqupRE.js → WrappedPage-DOpA9kkg.js} +1 -1
- package/dashboard/dist/assets/{__vite-browser-external-BXwSXUpN.js → __vite-browser-external-Go6WKt6Z.js} +3 -3
- package/dashboard/dist/assets/__vite-browser-external-kAUz3kFs.css +1 -0
- package/dashboard/dist/assets/{agent-logos-E6GfkcgD.js → agent-logos-D7eMvAlk.js} +1 -1
- package/dashboard/dist/assets/{arrow-left-D_ufthLH.js → arrow-left--eOVP_Dk.js} +1 -1
- package/dashboard/dist/assets/{arrow-right-CgV_OrFz.js → arrow-right-DJYhwBMz.js} +1 -1
- package/dashboard/dist/assets/{arrow-up-right-CzeEeXRz.js → arrow-up-right-DhDvpd-S.js} +1 -1
- package/dashboard/dist/assets/{calendar-days-BQdTF7ec.js → calendar-days-BuOFlNcJ.js} +1 -1
- package/dashboard/dist/assets/{check-C--D8Lze.js → check-UztXSVYi.js} +1 -1
- package/dashboard/dist/assets/{chevron-down-BzkceD4z.js → chevron-down-CbJ2QGDU.js} +1 -1
- package/dashboard/dist/assets/{cloud-checkout-m1Yllbij.js → cloud-checkout-CoRQjKEu.js} +1 -1
- package/dashboard/dist/assets/{composite-7DhFi6TA.js → composite-PlKvZfdM.js} +1 -1
- package/dashboard/dist/assets/{download-BSyGLtfW.js → download-McE9gFto.js} +1 -1
- package/dashboard/dist/assets/{external-link-KzFbueBT.js → external-link-DZWnR9gS.js} +1 -1
- package/dashboard/dist/assets/{flame-DlPM_oaj.js → flame-0xjueXt4.js} +1 -1
- package/dashboard/dist/assets/{format-tokens-BHBaWyA3.js → format-tokens-CZoG68uJ.js} +1 -1
- package/dashboard/dist/assets/{gift-BhWBQnun.js → gift-pKc80Nqb.js} +1 -1
- package/dashboard/dist/assets/{host-mode--iIPGrkN.js → host-mode-99_v1j5J.js} +1 -1
- package/dashboard/dist/assets/{icons-COEaSBYi.js → icons-BtfYKSGC.js} +1 -1
- package/dashboard/dist/assets/{index-Cf4HcmLp.js → index-Cgthm7BO.js} +1 -1
- package/dashboard/dist/assets/{index-Bo8CSxCq.js → index-CyZxN1O0.js} +1 -1
- package/dashboard/dist/assets/{index-CW6A_Ff_.js → index-DuaQmNZo.js} +1 -1
- package/dashboard/dist/assets/{info-D1gOdsM_.js → info-C8vkxwsO.js} +1 -1
- package/dashboard/dist/assets/{link-2-CXDnDOK4.js → link-2-CQzIW5b6.js} +1 -1
- package/dashboard/dist/assets/{loader-circle-DWeQPecG.js → loader-circle-B9GqzQyC.js} +1 -1
- package/dashboard/dist/assets/{modifiers.esm-BljqMT7V.js → modifiers.esm-ChkCUrZp.js} +1 -1
- package/dashboard/dist/assets/{monitor-smartphone-DpkdtOjk.js → monitor-smartphone-DQjBY1W3.js} +1 -1
- package/dashboard/dist/assets/{play-BlGNrekI.js → play-qC6xc6fe.js} +1 -1
- package/dashboard/dist/assets/{plus-CpYVQ_t-.js → plus-CoNHx5Og.js} +1 -1
- package/dashboard/dist/assets/{provider-display-D6Blvktj.js → provider-display-x2EG6zAY.js} +1 -1
- package/dashboard/dist/assets/{react-BMJ2wuz1.js → react-EctmAw3f.js} +1 -1
- package/dashboard/dist/assets/{safePolygon-BFHXICk1.js → safePolygon-DlSbLtZC.js} +1 -1
- package/dashboard/dist/assets/{search-0NxXkytY.js → search-CBcpAj9I.js} +1 -1
- package/dashboard/dist/assets/{server-GHkrUKSI.js → server-DtMUoEq0.js} +1 -1
- package/dashboard/dist/assets/{shield-check-C16cbx1z.js → shield-check-ByUPtUmu.js} +1 -1
- package/dashboard/dist/assets/{skills-api-DAm1fFB4.js → skills-api-BD9VNRej.js} +1 -1
- package/dashboard/dist/assets/{sortable.esm-CkOax8h0.js → sortable.esm-B6qEViGJ.js} +1 -1
- package/dashboard/dist/assets/{store-DR444-5P.js → store-BgW2uBRe.js} +1 -1
- package/dashboard/dist/assets/{terminal-BpvNaIz9.js → terminal-DWPNkr2L.js} +1 -1
- package/dashboard/dist/assets/{trash-DX8LwOmN.js → trash-DdbRpgD1.js} +1 -1
- package/dashboard/dist/assets/{use-community-stats-BFW4-DYG.js → use-community-stats-43ySv9uM.js} +1 -1
- package/dashboard/dist/assets/{use-latest-request-guard-Cpcl08EJ.js → use-latest-request-guard-BuezAv4k.js} +1 -1
- package/dashboard/dist/assets/{use-limits-display-prefs-BqixyeAa.js → use-limits-display-prefs-Yi0Hznar.js} +1 -1
- package/dashboard/dist/assets/{use-native-settings-BSx7lGEK.js → use-native-settings-BaSrhrM8.js} +1 -1
- package/dashboard/dist/assets/{use-ordered-list-UCjB0_zK.js → use-ordered-list-CBD-EIBf.js} +1 -1
- package/dashboard/dist/assets/use-reduced-motion-ObUuoXUE.js +1 -0
- package/dashboard/dist/assets/{use-session-efficiency-pref-BgOJaGEy.js → use-session-efficiency-pref-CwaFIkE5.js} +1 -1
- package/dashboard/dist/assets/{use-transform-Y98QifnQ.js → use-transform-Dea4uz8K.js} +1 -1
- package/dashboard/dist/assets/{use-usage-limits-DJGO-Kxv.js → use-usage-limits-DxkYcUIR.js} +1 -1
- package/dashboard/dist/assets/{useCurrency-DL458pqS.js → useCurrency-CcZktkbA.js} +1 -1
- package/dashboard/dist/assets/{usePositioner-DnCQwlVT.js → usePositioner-BLGIGihf.js} +1 -1
- package/dashboard/dist/assets/{useTokenFormat-CYLt9pgs.js → useTokenFormat--dhm3nNf.js} +1 -1
- package/dashboard/dist/assets/{zap-BW6E_Jv3.js → zap-CWTmP6Zw.js} +1 -1
- package/dashboard/dist/index.html +14 -12
- package/dashboard/dist/ip-check.html +2 -2
- package/dashboard/dist/leaderboard.html +2 -2
- package/dashboard/dist/llms.txt +3 -2
- package/dashboard/dist/share.html +2 -2
- package/package.json +2 -2
- package/src/commands/init.js +9 -0
- package/src/commands/status.js +11 -0
- package/src/commands/sync.js +197 -122
- package/src/lib/dumate.js +95 -0
- package/src/lib/pricing/seed-snapshot.json +1 -1
- package/src/lib/qoder-cn-cli-limits.js +117 -0
- package/src/lib/qoder-limits.js +24 -11
- package/src/lib/rollout.js +12 -9
- package/src/lib/session-analytics.js +210 -19
- package/src/lib/upload-queue.js +134 -0
- package/dashboard/dist/assets/CommunityStatsModal-DYTjxABN.js +0 -1
- package/dashboard/dist/assets/Controls-BJAwM2gB.js +0 -1
- package/dashboard/dist/assets/DevicePage-BcSU0xgf.js +0 -1
- package/dashboard/dist/assets/DialogDescription-DQvYzWMp.js +0 -1
- package/dashboard/dist/assets/SettingsPage-CB4CML8u.js +0 -5
- package/dashboard/dist/assets/__vite-browser-external-DvNSoTb8.css +0 -1
- package/dashboard/dist/assets/use-reduced-motion-C6zOHbfR.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,j as d,V as g,Z as x,c as C}from"./__vite-browser-external-
|
|
1
|
+
import{r as s,j as d,V as g,Z as x,c as C}from"./__vite-browser-external-Go6WKt6Z.js";import{m as u}from"./react-EctmAw3f.js";import{P as w}from"./ProviderIcon-R6Bsj81X.js";import{A as f}from"./index-DuaQmNZo.js";function b(a){const e=[...a];for(let i=e.length-1;i>0;i--){const o=Math.floor(Math.random()*(i+1));[e[i],e[o]]=[e[o],e[i]]}return e}function j(a,e){const i=b(a),o=Array.from({length:e},()=>[]);i.forEach((r,m)=>{o[m%e].push(r)});const p=Math.max(...o.map(r=>r.length));return o.forEach(r=>{for(;r.length<p;)r.push(i[Math.floor(Math.random()*i.length)])}),o}const L=g.memo(function({logos:e,index:i,currentTime:o,onHoverChange:p}){x();const[r,m]=s.useState(!1),l=4e3,v=i*400,n=(o+v)%(l*e.length),t=Math.floor(n/l),c=e[t],y=h=>{m(h),p(h)};return d.jsxs("div",{className:"relative flex flex-col items-center",onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[d.jsx(u.div,{className:"relative h-8 w-8 sm:h-10 sm:w-10 md:h-12 md:w-12 overflow-hidden",initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{delay:i*.1,duration:.5,ease:"easeOut"},children:d.jsx(f,{mode:"wait",children:d.jsx(u.div,{className:"absolute inset-0 flex items-center justify-center",initial:{y:"18%",opacity:0,filter:"blur(4px)"},animate:{y:"0%",opacity:1,filter:"blur(0px)",transition:{type:"tween",ease:[.22,1,.36,1],duration:.9}},exit:{y:"-18%",opacity:0,filter:"blur(4px)",transition:{type:"tween",ease:[.4,0,1,1],duration:.55}},children:d.jsx(w,{provider:c.provider,size:24,className:"object-contain"})},`${c.id}-${t}`)})}),d.jsx(f,{children:r&&d.jsx(u.span,{className:"pointer-events-none absolute -bottom-7 z-10 whitespace-nowrap rounded bg-oai-gray-800 px-2 py-0.5 text-xs font-medium text-oai-gray-100 shadow-lg ring-1 ring-oai-gray-700",initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.15},children:c.nameKey?C(c.nameKey):c.name})})]})});function A({logos:a,columnCount:e=2}){const[i,o]=s.useState([]),[p,r]=s.useState(0),[m,l]=s.useState(!1);s.useEffect(()=>{o(j(a,e))},[a,e]),s.useEffect(()=>{if(m)return;const n=setInterval(()=>r(t=>t+400),400);return()=>clearInterval(n)},[m]);const v=s.useCallback(n=>{l(n)},[]);return d.jsx("div",{className:"flex gap-2.5 sm:gap-4 text-oai-gray-200",children:i.map((n,t)=>d.jsx(L,{logos:n,index:t,currentTime:p,onHoverChange:v},t))})}const E=[{id:1,name:"Claude Code",provider:"claude"},{id:2,name:"Codex",provider:"codex"},{id:3,name:"Cursor",provider:"cursor"},{id:4,name:"Gemini",provider:"gemini"},{id:5,name:"Antigravity",provider:"antigravity"},{id:6,name:"Kiro",provider:"kiro"},{id:7,name:"OpenCode",provider:"opencode"},{id:8,name:"OpenClaw",provider:"openclaw"},{id:9,name:"Every Code",provider:"every-code"},{id:10,name:"Hermes",provider:"hermes"},{id:11,name:"GitHub Copilot",provider:"copilot"},{id:12,name:"Kimi",provider:"kimi"},{id:13,name:"CodeBuddy",provider:"codebuddy"},{id:14,name:"WorkBuddy",provider:"workbuddy"},{id:44,nameKey:"provider.display.workbuddy_ai",provider:"workbuddy-ai"},{id:15,name:"Grok",provider:"grok"},{id:16,name:"oh-my-pi",provider:"omp"},{id:17,name:"Pi",provider:"pi"},{id:18,name:"Dots",provider:"dots"},{id:19,name:"Prime Agent",provider:"prime-agent"},{id:20,name:"Craft",provider:"craft"},{id:21,name:"Reasonix",provider:"reasonix"},{id:22,name:"Kilo CLI",provider:"kilo-cli"},{id:23,name:"Kilo Code",provider:"kilocode"},{id:24,name:"Roo Code",provider:"roocode"},{id:25,name:"Zed",provider:"zed"},{id:26,name:"Goose",provider:"goose"},{id:27,name:"Droid",provider:"droid"},{id:28,name:"Mimo",provider:"mimo"},{id:45,name:"DuMate",provider:"dumate"},{id:29,name:"ZCode",provider:"zcode"},{id:30,name:"Qoder",provider:"qoder"},{id:31,name:"AnythingLLM",provider:"anythingllm"},{id:32,name:"Claude Science",provider:"claude-science"},{id:33,name:"DeepSeek Harness",provider:"dsh"},{id:34,nameKey:"provider.display.trae_work_cn",provider:"trae-cn"},{id:35,name:"AStudio",provider:"acode"},{id:36,name:"LM Studio",provider:"lmstudio"},{id:37,name:"Unsloth Studio",provider:"unsloth"},{id:38,name:"Devin CLI",provider:"devin"},{id:39,nameKey:"provider.display.omo",provider:"omo"},{id:40,nameKey:"provider.display.cline",provider:"cline"},{id:41,nameKey:"provider.display.minimax_code",provider:"minimax-code"},{id:42,nameKey:"provider.display.command_code",provider:"command-code"},{id:43,nameKey:"provider.display.trae",provider:"trae"}];export{E as A,A as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o}from"./__vite-browser-external-
|
|
1
|
+
import{o}from"./__vite-browser-external-Go6WKt6Z.js";const e={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};e.node;const a=o(e);export{a as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as a}from"./__vite-browser-external-
|
|
1
|
+
import{o as a}from"./__vite-browser-external-Go6WKt6Z.js";const o={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};o.node;const t=a(o);export{t as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as t}from"./__vite-browser-external-
|
|
1
|
+
import{o as t}from"./__vite-browser-external-Go6WKt6Z.js";const o={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};o.node;const e=t(o);export{e as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as t}from"./__vite-browser-external-
|
|
1
|
+
import{o as t}from"./__vite-browser-external-Go6WKt6Z.js";const e={name:"calendar-days",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M12 13h.01",key:"y0uutt"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M8 17h.01",key:"p3bg7i"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M16 17h.01",key:"ql8jdd"}]]};e.node;const h=t(e);export{h as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as c}from"./__vite-browser-external-
|
|
1
|
+
import{o as c}from"./__vite-browser-external-Go6WKt6Z.js";const e={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};e.node;const a=c(e);export{a as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as n}from"./__vite-browser-external-
|
|
1
|
+
import{o as n}from"./__vite-browser-external-Go6WKt6Z.js";const o={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};o.node;const a=n(o);export{a as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as u,q as d,t as l,v as f,w as _,x as p}from"./__vite-browser-external-
|
|
1
|
+
import{p as u,q as d,t as l,v as f,w as _,x as p}from"./__vite-browser-external-Go6WKt6Z.js";const h="tt.cloud.purchase.",w=["sku","provider","request_id","order_id","retry_order_id","retry_request_id"];function s(e){if(!e||typeof e!="object"||Array.isArray(e))return null;const t={};for(const r of w)typeof e[r]=="string"&&e[r].length<=128&&(t[r]=e[r]);return t}function o(e){return`${h}${encodeURIComponent(p()||"unconfigured")}.${e}`}const y=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function a(e){try{const t=JSON.parse(localStorage.getItem(o(e))||"null");if(t?.userId!==void 0&&t.userId!==e)return null;const r=s(t);return r?{...r,userId:e}:null}catch{return null}}function c(e,t){try{const r=s(t);if(!r)return;localStorage.setItem(o(e),JSON.stringify(r))}catch{}}function v(e){try{localStorage.removeItem(o(e))}catch{}}function E(e,t,r){const n=a(e);if(n?.sku===t&&n.provider===r&&n.request_id)return n;if(n?.request_id)throw new Error("checkout_request_conflict");const i={sku:t,provider:r,request_id:crypto.randomUUID()};return c(e,i),i}function q(e,t){const r=a(e);if(r?.order_id&&r.order_id!==t.id)throw new Error("checkout_request_conflict");if(r?.request_id&&!r.order_id)throw new Error("checkout_request_conflict");if(r?.retry_order_id===t.id&&r.retry_request_id)return r;const n={...r,sku:t.sku,provider:t.provider,order_id:t.id,retry_order_id:t.id,retry_request_id:crypto.randomUUID()};return c(e,n),n}function R(e,t){return e?e.payment_state==="refunded"?"refunded":e.status==="paid"?t?.status==="active"?"success":t?.status==="expired"?"expired":"activating":["closed","canceled","cancelled"].includes(e.status)?"canceled":e.status==="expired"||e.expires_at&&Date.parse(e.expires_at)<=Date.now()?"expired":e.checkout_url?"awaiting":"creating":"review"}async function m(e,{sameTab:t=!1}={}){let r;try{r=new URL(e)}catch{throw new Error("invalid_provider_checkout_url")}if(r.username||r.password||r.protocol!=="https:"&&!(r.protocol==="http:"&&["localhost","127.0.0.1"].includes(r.hostname)))throw new Error("invalid_provider_checkout_url");if(u()){const n=d();if(!n)throw new Error("browser_open_failed");await n.postMessage(r.toString())}else if(l()||f()){if(!_({type:"action",name:"openURL",value:r.toString()}))throw new Error("browser_open_failed")}else t?window.location.assign(r.toString()):window.open(r.toString(),"_blank","noopener,noreferrer")}export{y as C,v as a,q as b,R as c,E as g,m as o,a as r,c as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c7 as Xt,cq as Ke,cr as Vt,aY as je,b1 as B,aW as Kt,b3 as X,cs as Ot,bQ as ze,j as ve,ct as Je,r as m,b0 as Y,cu as st,cv as qt,c8 as it,a$ as We,cw as $t,cx as ct,b5 as I,b4 as Pe,bG as me,b_ as qe,cy as fe,b$ as de,ba as w,b6 as wt,cz as xt,bZ as Qe,c1 as jt,bA as ut,bu as lt,bw as zt,cA as Jt,cB as It,cC as Ze,bJ as De,b7 as ye,cD as Qt,bz as Zt,cE as en,N as ke,br as tn,cF as Ye,bo as Pt,a_ as Be,bp as kt,b2 as Ie,bM as Ge,bL as nn,cG as rn,bI as on,bn as sn,cH as be,bX as cn,bF as un,J as _e,ar as ln,cI as an,c0 as fn,cJ as dn,bR as pn}from"./__vite-browser-external-BXwSXUpN.js";const gn="data-open",hn="data-closed",mn="data-anchor-hidden",Ft="data-popup-open",bn="data-pressed",yn={[Ft]:""},En={[Ft]:"",[bn]:""},Tn={[gn]:""},Rn={[hn]:""},vn={[mn]:""},nr={open(e){return e?yn:null}},rr={open(e){return e?En:null}},Sn={open(e){return e?Tn:Rn},anchorHidden(e){return e?vn:null}},or={...Sn,...Xt};function Fe(e,t,n=!0){return e.filter(o=>o.parentId===t).flatMap(o=>[...!n||o.context?.open?[o]:[],...Fe(e,o.id,n)])}function at(e,t){let n=[],r=e.find(o=>o.id===t)?.parentId;for(;r;){const o=e.find(s=>s.id===r);r=o?.parentId,o&&(n=n.concat(o))}return n}function Cn(e){e.preventDefault(),e.stopPropagation()}function On(e){return"nativeEvent"in e}function Mt(e){return e.pointerType===""&&e.isTrusted?!0:Ke&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function wn(e){return Vt?!1:!Ke&&e.width===0&&e.height===0||Ke&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function sr(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function xn(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function Ae(e){const t=je(In,e).current;return t.next=e,B(t.effect),t}function In(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}let Ne=0;function Ue(e,t={}){const{preventScroll:n=!1,sync:r=!1,shouldFocus:o}=t;cancelAnimationFrame(Ne);function s(){o&&!o()||e?.focus({preventScroll:n})}if(r)return s(),Kt;const i=requestAnimationFrame(s);return Ne=i,()=>{Ne===i&&(cancelAnimationFrame(i),Ne=0)}}const Xe={inert:new WeakMap,"aria-hidden":new WeakMap},ft="data-base-ui-inert",$e={inert:new WeakSet,"aria-hidden":new WeakSet};let xe=new WeakMap,Ve=0;function Pn(e){return $e[e]}function At(e){return e?Ot(e)?e.host:At(e.parentNode):null}const dt=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=At(n);return e.contains(r)?r:null}).filter(n=>n!=null),pt=e=>{const t=new Set;return e.forEach(n=>{let r=n;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},gt=(e,t,n)=>{const r=[],o=s=>{!s||n.has(s)||Array.from(s.children).forEach(i=>{ze(i)!=="script"&&(t.has(i)?o(i):r.push(i))})};return o(e),r};function kn(e,t,n,r,{mark:o=!0}){let s=null;r?s="inert":n&&(s="aria-hidden");let i=null,l=null;const a=dt(t,e),f=o?gt(t,pt(a),new Set(a)):[],T=[],v=[];if(s){const d=Xe[s],b=Pn(s);l=b,i=d;const O=dt(t,Array.from(t.querySelectorAll("[aria-live]"))),V=a.concat(O);gt(t,pt(V),new Set(V)).forEach(S=>{const R=S.getAttribute(s),j=R!==null&&R!=="false",q=(d.get(S)||0)+1;d.set(S,q),T.push(S),q===1&&j&&b.add(S),j||S.setAttribute(s,s==="inert"?"":"true")})}return o&&f.forEach(d=>{const b=(xe.get(d)||0)+1;xe.set(d,b),v.push(d),b===1&&d.setAttribute(ft,"")}),Ve+=1,()=>{i&&T.forEach(d=>{const O=(i.get(d)||0)-1;i.set(d,O),O||(!l?.has(d)&&s&&d.removeAttribute(s),l?.delete(d))}),o&&v.forEach(d=>{const b=(xe.get(d)||0)-1;xe.set(d,b),b||d.removeAttribute(ft)}),Ve-=1,Ve||(Xe.inert=new WeakMap,Xe["aria-hidden"]=new WeakMap,$e.inert=new WeakSet,$e["aria-hidden"]=new WeakSet,xe=new WeakMap)}}function ht(e,t={}){const{ariaHidden:n=!1,inert:r=!1,mark:o=!0}=t,s=X(e[0]).body;return kn(e,s,n,r,{mark:o})}function Nt(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}class Fn{nodesRef={current:[]};events=Nt();addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const Wt=m.createContext(null),Bt=m.createContext(null),et=()=>m.useContext(Wt)?.id||null,tt=e=>{const t=m.useContext(Bt);return e??t};function ir(e){const t=Je(),n=tt(e),r=et();return B(()=>{if(!t)return;const o={id:t,parentId:r};return n?.addNode(o),()=>{n?.removeNode(o)}},[n,t,r]),t}function cr(e){const{children:t,id:n}=e,r=et();return ve.jsx(Wt.Provider,{value:m.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function ur(e){const{children:t,externalTree:n}=e,r=je(()=>n??new Fn).current;return ve.jsx(Bt.Provider,{value:r,children:t})}function Mn(e,t){const n=De(ye(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const mt=20;let pe=[];function nt(){pe=pe.filter(e=>e.deref()?.isConnected)}function bt(e){nt(),e&&ze(e)!=="body"&&(pe.push(new WeakRef(e)),pe.length>mt&&(pe=pe.slice(-mt)))}function yt(){return nt(),pe[pe.length-1]?.deref()}function An(e){return e?Ze(e)?e:It(e)[0]||e:null}function Et(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;const n=Qt(e).filter(o=>{const s=o.getAttribute("data-tabindex")||"";return Ze(o)||o.hasAttribute("data-tabindex")&&!s.startsWith("-")}),r=e.getAttribute("tabindex");n.length===0?r!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(r!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function lr(e){const{context:t,children:n,disabled:r=!1,initialFocus:o=!0,returnFocus:s=!0,restoreFocus:i=!1,modal:l=!0,closeOnFocusOut:a=!0,openInteractionType:f="",nextFocusableElement:T,previousFocusableElement:v,beforeContentFocusGuardRef:d,externalTree:b,getInsideElements:O}=e,V="rootStore"in t?t.rootStore:t,F=V.useState("open"),S=V.useState("domReferenceElement"),R=V.useState("floatingElement"),{events:j,dataRef:q}=V.context,$=Y(()=>q.current.floatingContext?.nodeId),le=o===!1,M=st(S)&&le,Z=Ae(o),se=Ae(s),ee=Ae(f),L=Ae(F),G=tt(b),C=qt(),N=m.useRef(!1),ae=m.useRef(!1),te=m.useRef(!1),Ee=m.useRef(null),ie=m.useRef(""),z=m.useRef(""),ge=m.useRef(null),he=m.useRef(null),Se=it(ge,d,C?.beforeInsideRef),Me=it(he,C?.afterInsideRef),y=We(),D=We(),A=$t(),Te=C!=null,E=ct(R),ne=Y((h=E)=>h?It(h):[]),re=Y(()=>O?.().filter(h=>h!=null)??[]);m.useEffect(()=>{if(r||!l)return;function h(W){W.key==="Tab"&&w(E,de(X(E)))&&ne().length===0&&!M&&Cn(W)}const P=X(E);return I(P,"keydown",h)},[r,E,l,M,ne]),m.useEffect(()=>{if(r||!F)return;const h=X(E);function P(){te.current=!1}function W(oe){const g=ye(oe),x=re(),p=w(R,g)||w(S,g)||w(C?.portalNode,g)||x.some(k=>k===g||w(k,g));te.current=!p,z.current=oe.pointerType||"keyboard",g?.closest(`[${Zt}]`)&&(ae.current=!0,D.start(0,()=>{ae.current=!1}))}function _(){z.current="keyboard"}return Pe(I(h,"pointerdown",W,!0),I(h,"pointerup",P,!0),I(h,"pointercancel",P,!0),I(h,"keydown",_,!0),P)},[r,R,S,E,F,C,D,re]),m.useEffect(()=>{if(r||!a)return;const h=X(E);function P(){ae.current=!0,D.start(0,()=>{ae.current=!1})}function W(x){const p=ye(x);Ze(p)&&(Ee.current=p)}function _(x){const p=x.relatedTarget,k=x.currentTarget,K=ye(x);l&&p==null&&K!=null&&w(R,K)&&bt(K),queueMicrotask(()=>{const J=$(),Q=V.context.triggerElements,Ce=re(),Re=p?.hasAttribute(qe("focus-guard"))&&[ge.current,he.current,C?.beforeInsideRef.current,C?.afterInsideRef.current,C?.beforeOutsideRef.current,C?.afterOutsideRef.current,fe(v),fe(T)].includes(p),u=!(w(S,p)||w(R,p)||w(p,R)||w(C?.portalNode,p)||Ce.some(c=>c===p||w(c,p))||Q.hasMatchingElement(c=>w(c,p))||Re||G&&(Fe(G.nodesRef.current,J).find(c=>w(c.context?.elements.floating,p)||w(c.context?.elements.domReference,p))||at(G.nodesRef.current,J).find(c=>[c.context?.elements.floating,ct(c.context?.elements.floating)].includes(p)||c.context?.elements.domReference===p)));if(k===S&&E&&Et(E),i&&k!==S&&!en(K)&&de(h)===h.body){if(me(E)&&(E.focus(),i==="popup")){A.request(()=>{E.focus()});return}const c=ne(),H=Ee.current,U=(H&&c.includes(H)?H:null)||c[c.length-1]||E;me(U)&&U.focus()}if(q.current.insideReactTree){q.current.insideReactTree=!1;return}(M||!l)&&p&&u&&!ae.current&&(M||p!==yt())&&(N.current=!0,V.setOpen(!1,ke(tn,x)))})}function oe(){te.current||(q.current.insideReactTree=!0,y.start(0,()=>{q.current.insideReactTree=!1}))}const g=me(S)?S:null;if(!(!R&&!g))return Pe(g&&I(g,"focusout",_),g&&I(g,"pointerdown",P),R&&I(R,"focusin",W),R&&I(R,"focusout",_),R&&C&&I(R,"focusout",oe,!0))},[r,S,R,E,l,G,C,V,a,i,ne,M,$,q,y,D,A,T,v,re]),m.useEffect(()=>{if(r||!R||!F)return;const h=Array.from(C?.portalNode?.querySelectorAll(`[${qe("portal")}]`)||[]),W=(G?at(G.nodesRef.current,$()):[]).find(k=>st(k.context?.elements.domReference||null))?.context?.elements.domReference,oe=[...[R,...h,ge.current,he.current,C?.beforeOutsideRef.current,C?.afterOutsideRef.current,...re()],W,fe(v),fe(T),M?S:null].filter(k=>k!=null),g=ht(oe,{ariaHidden:l||M,mark:!1}),x=[R,...h].filter(k=>k!=null),p=ht(x);return()=>{p(),g()}},[F,r,S,R,l,C,M,G,$,T,v,re]),B(()=>{if(!F||r||!me(E))return;ie.current="",z.current="";const h=X(E),P=de(h);queueMicrotask(()=>{const W=Z.current,_=typeof W=="function"?W(ee.current||""):W;if(_===void 0||_===!1||w(E,P))return;let g=null;const x=()=>(g==null&&(g=ne(E)),g[0]||E);let p;_===!0||_===null?p=x():p=fe(_),p=p||x();const k=w(E,de(h));Ue(p,{preventScroll:p===E,shouldFocus(){if(!L.current)return!1;if(k)return!0;const K=de(h);return!(K!==p&&w(E,K))}})})},[r,F,E,ne,Z,ee,L]),B(()=>{if(r||!E)return;const h=X(E),P=de(h),W=ee.current==null;bt(P);function _(g){if(g.open||(ie.current=Mn(g.nativeEvent,z.current)),g.reason===wt&&g.nativeEvent.type==="mouseleave"&&(N.current=!0),g.reason===xt)if(g.nested)N.current=!1;else if(Mt(g.nativeEvent)||wn(g.nativeEvent))N.current=!1;else{let x=!1;X(E).createElement("div").focus({get preventScroll(){return x=!0,!1}}),x?N.current=!1:N.current=!0}}j.on("openchange",_);function oe(g){const x=se.current;let p=typeof x=="function"?x(g):x;if(p===void 0||p===!1)return null;p===null&&(p=!0);const k=S?.isConnected?S:null,K=P?.isConnected&&ze(P)!=="body"?P:null;let J=W?K||k:k||K;return J||(J=yt()||null),typeof p=="boolean"?J:fe(p)||J||null}return()=>{j.off("openchange",_);const g=de(h),x=re(),p=w(R,g)||x.some(Q=>Q===g||w(Q,g))||G&&Fe(G.nodesRef.current,$(),!1).some(Q=>w(Q.context?.elements.floating,g)),k=se.current,K=ie.current,J=oe(K);queueMicrotask(()=>{const Q=An(J),Ce=typeof k!="boolean";if(k&&!N.current&&me(Q)&&(!(!Ce&&Q!==g&&g!==h.body)||p)){const Re={preventScroll:!0};K==="keyboard"&&(Re.focusVisible=!0),Q.focus(Re)}N.current=!1})}},[r,R,E,se,ee,j,G,S,$,re]),B(()=>{if(!Qe||F||!R)return;const h=de(X(R));!me(h)||!jt(h)||w(R,h)&&h.blur()},[F,R]),B(()=>{if(!(r||!C))return C.setFocusManagerState({modal:l,closeOnFocusOut:a,open:F,onOpenChange:V.setOpen,domReference:S}),()=>{C.setFocusManagerState(null)}},[r,C,l,F,V,a,S]),B(()=>{if(!(r||!E))return Et(E),()=>{queueMicrotask(nt)}},[r,E]);const ce=!r&&(l?!M:!0)&&(Te||l);return ve.jsxs(m.Fragment,{children:[ce&&ve.jsx(ut,{"data-type":"inside",ref:Se,onFocus:h=>{if(l){const P=ne();Ue(P[P.length-1])}else C?.portalNode&&(N.current=!1,lt(h,C.portalNode)?zt(S)?.focus():fe(v??C.beforeOutsideRef)?.focus())}}),n,ce&&ve.jsx(ut,{"data-type":"inside",ref:Me,onFocus:h=>{l?Ue(ne()[0]):C?.portalNode&&(a&&(N.current=!0),lt(h,C.portalNode)?Jt(S)?.focus():fe(T??C.afterOutsideRef)?.focus())}})]})}function Nn(){return!1}function Wn(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function ar(e,t={}){const{enabled:n=!0,escapeKey:r=!0,outsidePress:o=!0,outsidePressEvent:s="sloppy",referencePress:i=Nn,bubbles:l,externalTree:a}=t,f="rootStore"in e?e.rootStore:e,T=f.useState("open"),v=f.useState("floatingElement"),{dataRef:d,events:b}=f.context,O=tt(a),V=Y(typeof o=="function"?o:()=>!1),F=typeof o=="function"?V:o,S=F!==!1,R=Y(()=>s),{escapeKey:j,outsidePress:q}=Wn(l),$=m.useRef(!1),le=m.useRef(!1),M=m.useRef(!1),Z=m.useRef(!1),se=m.useRef(!1),ee=m.useRef(""),L=m.useRef(null),G=We(),C=We(),N=Y(()=>{C.clear(),d.current.insideReactTree=!1}),ae=Y(y=>{const D=d.current.floatingContext?.nodeId;return(O?Fe(O.nodesRef.current,D):[]).some(Te=>Te.context?.open&&!Te.context.dataRef.current[y])}),te=Y(y=>Ye(y,f.select("floatingElement"))||Ye(y,f.select("domReferenceElement"))),Ee=Y(y=>{i()&&f.setOpen(!1,ke(Pt,y.nativeEvent))}),ie=Y(y=>{if(!T||!n||!r||y.key!=="Escape"||se.current||!j&&ae("__escapeKeyBubbles"))return;const D=On(y)?y.nativeEvent:y,A=ke(kt,D);f.setOpen(!1,A),A.isCanceled||y.preventDefault(),!j&&!A.isPropagationAllowed&&y.stopPropagation()}),z=Y(()=>{d.current.insideReactTree=!0,C.start(0,N)}),ge=Y(y=>{if(!T||!n||y.button!==0)return;const D=ye(y.nativeEvent);w(f.select("floatingElement"),D)&&($.current||($.current=!0,le.current=!1))}),he=Y(y=>{!T||!n||(y.defaultPrevented||y.nativeEvent.defaultPrevented)&&$.current&&(le.current=!0)});m.useEffect(()=>{function y(D){D.open||(Z.current=!1)}return b.on("openchange",y),()=>{b.off("openchange",y)}},[b]),m.useEffect(()=>{if(!T||!n)return T||(Z.current=!1),N;d.current.__escapeKeyBubbles=j,d.current.__outsidePressBubbles=q;const y=new Be,D=new Be,A=X(v);function Te(){y.clear(),se.current=!0}function E(){y.start(Qe?5:0,()=>{se.current=!1})}function ne(){M.current=!0,D.start(0,()=>{M.current=!1})}function re(){$.current=!1,le.current=!1}function ce(){const u=ee.current,c=u==="pen"||!u?"mouse":u,H=R(),U=typeof H=="function"?H():H;return typeof U=="string"?U:U[c]}function h(u){const c=ce();return c==="intentional"&&u.type!=="click"||c==="sloppy"&&u.type==="click"}function P(u){const c=d.current.floatingContext?.nodeId,H=O&&Fe(O.nodesRef.current,c).some(U=>Ye(u,U.context?.elements.floating));return te(u)||H}function W(u){if(h(u)){u.type!=="click"&&!te(u)&&(D.clear(),M.current=!1),N();return}if(d.current.insideReactTree){N();return}const c=ye(u),H=`[${qe("inert")}]`,U=Ie(c)?c.getRootNode():null,Oe=Array.from((Ot(U)?U:X(f.select("floatingElement"))).querySelectorAll(H)),rt=f.context.triggerElements;if(c&&(rt.hasElement(c)||rt.hasMatchingElement(ue=>w(ue,c))))return;let we=Ie(c)?c:null;for(;we&&!Ge(we);){const ue=nn(we);if(Ge(ue)||!Ie(ue))break;we=ue}if(!(Oe.length&&Ie(c)&&!rn(c)&&!w(c,f.select("floatingElement"))&&Oe.every(ue=>!w(we,ue)))){if(me(c)&&!("touches"in u)){const ue=Ge(c),He=on(c),ot=/auto|scroll/,Dt=ue||ot.test(He.overflowX),Lt=ue||ot.test(He.overflowY),Ht=Dt&&c.clientWidth>0&&c.scrollWidth>c.clientWidth,Yt=Lt&&c.clientHeight>0&&c.scrollHeight>c.clientHeight,Gt=He.direction==="rtl",_t=Yt&&(Gt?u.offsetX<=c.offsetWidth-c.clientWidth:u.offsetX>c.clientWidth),Ut=Ht&&u.offsetY>c.clientHeight;if(_t||Ut)return}if(!P(u)){if(ce()==="intentional"){if(u.detail!==0&&!Mt(u)&&!Z.current)return;if(M.current){D.clear(),M.current=!1;return}}typeof F=="function"&&!F(u)||ae("__outsidePressBubbles")||(f.setOpen(!1,ke(xt,u)),N())}}}function _(u){ce()!=="sloppy"||u.pointerType==="touch"||!f.select("open")||!n||te(u)||W(u)}function oe(u){if(ce()!=="sloppy"||!f.select("open")||!n||te(u))return;const c=u.touches[0];c&&(L.current={startTime:Date.now(),startX:c.clientX,startY:c.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},G.start(1e3,()=>{L.current&&(L.current.dismissOnTouchEnd=!1,L.current.dismissOnMouseDown=!1)}))}function g(u,c){const H=ye(u);if(!H)return;const U=I(H,u.type,()=>{c(u),U()})}function x(u){ee.current="touch",g(u,oe)}function p(u){G.clear(),u.type==="pointerdown"&&(u.button===0&&(Z.current=!0),ee.current=u.pointerType),!(u.type==="mousedown"&&L.current&&!L.current.dismissOnMouseDown)&&g(u,c=>{c.type==="pointerdown"?_(c):W(c)})}function k(u){if(u.type==="pointercancel"&&(Z.current=!1),!$.current)return;const c=le.current;if(re(),ce()==="intentional"){if(u.type==="pointercancel"){c&&ne();return}if(!P(u)){if(c){ne();return}typeof F=="function"&&!F(u)||(D.clear(),M.current=!0,N())}}}function K(u){if(ce()!=="sloppy"||!L.current||te(u))return;const c=u.touches[0];if(!c)return;const H=Math.abs(c.clientX-L.current.startX),U=Math.abs(c.clientY-L.current.startY),Oe=Math.sqrt(H*H+U*U);Oe>5&&(L.current.dismissOnTouchEnd=!0),Oe>10&&(W(u),G.clear(),L.current=null)}function J(u){g(u,K)}function Q(u){ce()!=="sloppy"||!L.current||te(u)||(L.current.dismissOnTouchEnd&&W(u),G.clear(),L.current=null)}function Ce(u){g(u,Q)}const Re=Pe(r&&Pe(I(A,"keydown",ie),I(A,"compositionstart",Te),I(A,"compositionend",E)),S&&Pe(I(A,"click",p,!0),I(A,"pointerdown",p,!0),I(A,"pointerup",k,!0),I(A,"pointercancel",k,!0),I(A,"mousedown",p,!0),I(A,"mouseup",k,!0),I(A,"touchstart",x,{capture:!0,passive:!0}),I(A,"touchmove",J,{capture:!0,passive:!0}),I(A,"touchend",Ce,{capture:!0,passive:!0})));return()=>{Re(),y.clear(),D.clear(),re(),M.current=!1,N()}},[d,v,r,S,F,T,n,j,q,ie,N,R,ae,te,O,f,G]);const Se=m.useMemo(()=>({onKeyDown:ie,onPointerDown:Ee,onClick:Ee}),[ie,Ee]),Me=m.useMemo(()=>({onKeyDown:ie,onPointerDown:he,onMouseDown:he,onClickCapture:z,onMouseDownCapture(y){z(),ge(y)},onPointerDownCapture(y){z(),ge(y)},onMouseUpCapture:z,onTouchEndCapture:z,onTouchMoveCapture:z}),[ie,z,ge,he]);return m.useMemo(()=>n?{reference:Se,floating:Me,trigger:Se}:{},[n,Se,Me])}const Bn={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class Dn extends sn{constructor(t){const{syncOnly:n,nested:r,onOpenChange:o,triggerElements:s,...i}=t;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:Nt(),nested:r,triggerElements:s},Bn),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&xn(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}}function Ln(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:o,nested:s,onOpenChange:i}=e,l=t.useState("open"),a=t.useState("activeTriggerElement"),f=t.useState(n?"popupElement":"positionerElement"),T=t.context.triggerElements,v=i,d=m.useRef(null);r===void 0&&d.current===null&&(d.current=new Dn({open:l,transitionStatus:void 0,referenceElement:a,floatingElement:f,triggerElements:T,onOpenChange:v,floatingId:o,syncOnly:!0,nested:s}));const b=r??d.current;return t.useSyncedValue("floatingId",o),B(()=>{const O={open:l,floatingId:o,referenceElement:a,floatingElement:f};Ie(a)&&(O.domReferenceElement=a),b.state.positionReference===b.state.referenceElement&&(O.positionReference=a),b.update(O)},[l,o,a,f,b]),b.context.onOpenChange=v,b.context.nested=s,b}function Hn(e,t=!1,n=!1,r=!1){const[o,s]=m.useState(e&&t?"idle":void 0),[i,l]=m.useState(e&&!r);return e&&!i&&(l(!0),s("starting")),!e&&i&&o!=="ending"&&!n&&s("ending"),!e&&!i&&o==="ending"&&s(void 0),B(()=>{if(!e&&i&&o!=="ending"&&n){const a=be.request(()=>{s("ending")});return()=>{be.cancel(a)}}},[e,i,o,n]),B(()=>{if(!e||t)return;const a=be.request(()=>{s(void 0)});return()=>{be.cancel(a)}},[t,e]),B(()=>{if(!e||!t)return;e&&i&&o!=="idle"&&s("starting");const a=be.request(()=>{s("idle")});return()=>{be.cancel(a)}},[t,e,i,o]),{mounted:i,setMounted:l,transitionStatus:o}}const fr={tabIndex:-1,[an]:""};function dr(e){return t=>t==="touch"?e.current:!0}function pr(e,t=!1){const n=Je(),r=et()!=null,o=je(()=>e(n,r)).current;return Ln({popupStore:o,treatPopupAsFloatingElement:t,floatingRootContext:o.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:o.setOpen}),o}function gr({handle:e,store:t}){return B(()=>e.attachStore(t),[e,t]),null}function Tt(e){const t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function Yn(e,t){const n=m.useRef(null);return Y(r=>{const o=n.current;if(o!==null){if(o.element===r&&o.store===t&&o.id===e)return;n.current=null;const s=o.store;s.context.triggerElements.getById(o.id)===o.element&&(s.context.triggerElements.delete(o.id),Tt(s))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),Tt(t))})}function Gn(e,t,n,r=!1){let o=e.preventUnmountingOnClose;t?o=!1:r&&(o=!0);const s=n?.id??null;let i=e.activeTriggerId,l=e.activeTriggerElement;return(s||t)&&(i=s,l=n??null),{open:t,preventUnmountingOnClose:o,activeTriggerId:i,activeTriggerElement:l}}function _n(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function hr(e,t,n,r={}){const o=n.reason,s=o===wt,i=t&&o===fn,l=!t&&(o===Pt||o===kt),a=_n(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);const f=()=>{const T=Gn(e.state,t,n.trigger,a()),v={...r.extraState,...T};i?v.instantType="focus":l?v.instantType="dismiss":s&&(v.instantType=void 0),e.update(v)};s?ln.flushSync(f):f()}function mr(e,t,n,r){const o=n.useState("isMountedByTrigger",e),s=Yn(e,n),i=Y(a=>{const f=n.select("open"),T=n.select("activeTriggerId");if(T===e){const v={activeTriggerElement:a,...f?r:null};n.update(v);return}if(T==null&&f){const v={activeTriggerId:e??null,activeTriggerElement:a,...r};n.update(v)}}),l=Y(a=>{s(a),a&&i(a)});return B(()=>(l(t.current),()=>l(null)),[l,t,n,e]),B(()=>{if(o){const a={activeTriggerElement:t.current,...r};n.update(a)}},[o,n,t,...Object.values(r)]),{registerTrigger:l,isMountedByThisTrigger:o}}function br(e,t={}){const{closeOnActiveTriggerUnmount:n=!1}=t,r=m.useRef(null),o=e.useState("open"),s=e.useState("triggerCount"),i=e.useState("activeTriggerId"),l=e.useState("activeTriggerElement");B(()=>{if(!o){r.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0);return}const a=e.context.triggerElements.size,f={};e.state.triggerCount!==a&&(f.triggerCount=a);const T=e.select("activeTriggerId");let v=null;if(T){const d=e.context.triggerElements.getById(T);if(d)r.current=T,d!==e.state.activeTriggerElement&&(f.activeTriggerElement=d);else{for(const[b,O]of e.context.triggerElements.entries())if(O===e.state.activeTriggerElement){f.activeTriggerId=b,f.activeTriggerElement=O,r.current=b;break}f.activeTriggerId===void 0&&(r.current===T?v=T:r.current=null)}}else r.current=null;if(!v&&!T&&a===1){const d=e.context.triggerElements.entries().next();if(!d.done){const[b,O]=d.value;f.activeTriggerId=b,f.activeTriggerElement=O,r.current=b}}(f.triggerCount!==void 0||f.activeTriggerId!==void 0||f.activeTriggerElement!==void 0)&&e.update(f),v&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===v&&!e.context.triggerElements.getById(v)){const d=ke(cn);e.setOpen(!1,d),d.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[o,e,s,i,l,n])}function yr(e,t,n,r){const{mounted:o,setMounted:s,transitionStatus:i}=Hn(e,!1,!1,r),l=t.useState("preventUnmountingOnClose"),a=e?!1:l;t.useSyncedValues({mounted:o,transitionStatus:i,preventUnmountingOnClose:a});const f=Y(()=>{s(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return un({enabled:o&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||f()}}),{forceUnmount:f,transitionStatus:i}}function Er(e,t){e.useSyncedValues(t),B(()=>()=>{e.update({activeTriggerProps:_e,inactiveTriggerProps:_e,popupProps:_e})},[e])}function Tr(e,t){B(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),B(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}class Rr{constructor(){this.idMap=new Map}add(t,n){this.idMap.set(t,n)}delete(t){this.idMap.delete(t)}hasElement(t){for(const n of this.idMap.values())if(n===t)return!0;return!1}hasMatchingElement(t){for(const n of this.idMap.values())if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}function vr(e){return Je(e,"base-ui")}const Sr=m.forwardRef(function(t,n){const{cutout:r,...o}=t;let s;if(r){const i=r.getBoundingClientRect();s=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${i.left}px ${i.top}px,${i.left}px ${i.bottom}px,${i.right}px ${i.bottom}px,${i.right}px ${i.top}px,${i.left}px ${i.top}px)`}return ve.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:s}})});let Rt={},vt={},St="";function Le(e,t){return pn(e)?e:t}function Ct(e,t,n){return/hidden|clip/.test(e.getComputedStyle(Le(t,n)).overflowY)}function Un(e){if(typeof document>"u")return!1;const t=X(e);return De(t).innerWidth-t.documentElement.clientWidth>0}function Xn(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=X(e),r=n.documentElement,o=n.body,s=Le(r,o),i=s.style.overflowY,l=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",s.style.overflowY="scroll";const a=s.offsetWidth;s.style.overflowY="hidden";const f=s.offsetWidth;return s.style.overflowY=i,r.style.scrollbarGutter=l,a===f}function Vn(e){const t=X(e),n=t.documentElement,r=t.body,o=Le(n,r),s={overflowY:o.style.overflowY,overflowX:o.style.overflowX};return Object.assign(o.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(o.style,s)}}function Kn(e){const t=X(e),n=t.documentElement,r=t.body,o=De(n);let s=0,i=0,l=!1;const a=be.create();if(Qe&&(o.visualViewport?.scale??1)!==1)return()=>{};function f(){const b=o.getComputedStyle(n),O=o.getComputedStyle(r),S=(b.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";s=n.scrollTop,i=n.scrollLeft,Rt={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},St=n.style.scrollBehavior,vt={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const R=n.scrollHeight>n.clientHeight,j=n.scrollWidth>n.clientWidth,q=b.overflowY==="scroll"||O.overflowY==="scroll",$=b.overflowX==="scroll"||O.overflowX==="scroll",le=Math.max(0,o.innerWidth-r.clientWidth),M=Math.max(0,o.innerHeight-r.clientHeight),Z=parseFloat(O.marginTop)+parseFloat(O.marginBottom),se=parseFloat(O.marginLeft)+parseFloat(O.marginRight),ee=Le(n,r);if(l=Xn(e),l){n.style.scrollbarGutter=S,ee.style.overflowY="hidden",ee.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:S,overflowY:"hidden",overflowX:"hidden"}),(R||q)&&(n.style.overflowY="scroll"),(j||$)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:Z||M?`calc(100dvh - ${Z+M}px)`:"100dvh",width:se||le?`calc(100vw - ${se+le}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),r.scrollTop=s,r.scrollLeft=i,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function T(){Object.assign(n.style,Rt),Object.assign(r.style,vt),l||(n.scrollTop=s,n.scrollLeft=i,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=St)}function v(){T(),a.request(f)}f();const d=I(o,"resize",v);return()=>{a.cancel(),T(),typeof o.removeEventListener=="function"&&d()}}class qn{lockCount=0;restore=null;timeoutLock=Be.create();timeoutUnlock=Be.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const n=X(t),r=n.documentElement,o=n.body,s=De(r);if(Ct(s,r,o)){const l=new s.MutationObserver(()=>{Ct(s,r,o)||(l.disconnect(),this.restore=null,this.lock(t))}),a={attributes:!0};l.observe(r,a),l.observe(o,a),this.restore=()=>l.disconnect();return}const i=dn||!Un(t);this.restore=i?Vn(t):Kn(t)}}const $n=new qn;function Cr(e=!0,t=null){B(()=>{if(e)return $n.acquire(t)},[e,t])}const jn="ArrowUp",zn="ArrowDown",Jn="ArrowLeft",Qn="ArrowRight",Zn="Home",er="End",Or=new Set([jn,zn,Jn,Qn,Zn,er]);export{hr as A,Cr as B,Or as C,Hn as D,wn as E,Dn as F,Ue as G,Cn as H,Sr as I,Mt as J,Rr as P,tt as a,et as b,Ae as c,_n as d,Gn as e,ur as f,Fe as g,Tr as h,sr as i,br as j,yr as k,gr as l,pr as m,ar as n,Er as o,mr as p,rr as q,ir as r,cr as s,nr as t,vr as u,dr as v,lr as w,fr as x,or as y,Sn as z};
|
|
1
|
+
import{c7 as Xt,cq as Ke,cr as Vt,aY as je,b1 as B,aW as Kt,b3 as X,cs as Ot,bQ as ze,j as ve,ct as Je,r as m,b0 as Y,cu as st,cv as qt,c8 as it,a$ as We,cw as $t,cx as ct,b5 as I,b4 as Pe,bG as me,b_ as qe,cy as fe,b$ as de,ba as w,b6 as wt,cz as xt,bZ as Qe,c1 as jt,bA as ut,bu as lt,bw as zt,cA as Jt,cB as It,cC as Ze,bJ as De,b7 as ye,cD as Qt,bz as Zt,cE as en,N as ke,br as tn,cF as Ye,bo as Pt,a_ as Be,bp as kt,b2 as Ie,bM as Ge,bL as nn,cG as rn,bI as on,bn as sn,cH as be,bX as cn,bF as un,J as _e,ar as ln,cI as an,c0 as fn,cJ as dn,bR as pn}from"./__vite-browser-external-Go6WKt6Z.js";const gn="data-open",hn="data-closed",mn="data-anchor-hidden",Ft="data-popup-open",bn="data-pressed",yn={[Ft]:""},En={[Ft]:"",[bn]:""},Tn={[gn]:""},Rn={[hn]:""},vn={[mn]:""},nr={open(e){return e?yn:null}},rr={open(e){return e?En:null}},Sn={open(e){return e?Tn:Rn},anchorHidden(e){return e?vn:null}},or={...Sn,...Xt};function Fe(e,t,n=!0){return e.filter(o=>o.parentId===t).flatMap(o=>[...!n||o.context?.open?[o]:[],...Fe(e,o.id,n)])}function at(e,t){let n=[],r=e.find(o=>o.id===t)?.parentId;for(;r;){const o=e.find(s=>s.id===r);r=o?.parentId,o&&(n=n.concat(o))}return n}function Cn(e){e.preventDefault(),e.stopPropagation()}function On(e){return"nativeEvent"in e}function Mt(e){return e.pointerType===""&&e.isTrusted?!0:Ke&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function wn(e){return Vt?!1:!Ke&&e.width===0&&e.height===0||Ke&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function sr(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function xn(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function Ae(e){const t=je(In,e).current;return t.next=e,B(t.effect),t}function In(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}let Ne=0;function Ue(e,t={}){const{preventScroll:n=!1,sync:r=!1,shouldFocus:o}=t;cancelAnimationFrame(Ne);function s(){o&&!o()||e?.focus({preventScroll:n})}if(r)return s(),Kt;const i=requestAnimationFrame(s);return Ne=i,()=>{Ne===i&&(cancelAnimationFrame(i),Ne=0)}}const Xe={inert:new WeakMap,"aria-hidden":new WeakMap},ft="data-base-ui-inert",$e={inert:new WeakSet,"aria-hidden":new WeakSet};let xe=new WeakMap,Ve=0;function Pn(e){return $e[e]}function At(e){return e?Ot(e)?e.host:At(e.parentNode):null}const dt=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=At(n);return e.contains(r)?r:null}).filter(n=>n!=null),pt=e=>{const t=new Set;return e.forEach(n=>{let r=n;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},gt=(e,t,n)=>{const r=[],o=s=>{!s||n.has(s)||Array.from(s.children).forEach(i=>{ze(i)!=="script"&&(t.has(i)?o(i):r.push(i))})};return o(e),r};function kn(e,t,n,r,{mark:o=!0}){let s=null;r?s="inert":n&&(s="aria-hidden");let i=null,l=null;const a=dt(t,e),f=o?gt(t,pt(a),new Set(a)):[],T=[],v=[];if(s){const d=Xe[s],b=Pn(s);l=b,i=d;const O=dt(t,Array.from(t.querySelectorAll("[aria-live]"))),V=a.concat(O);gt(t,pt(V),new Set(V)).forEach(S=>{const R=S.getAttribute(s),j=R!==null&&R!=="false",q=(d.get(S)||0)+1;d.set(S,q),T.push(S),q===1&&j&&b.add(S),j||S.setAttribute(s,s==="inert"?"":"true")})}return o&&f.forEach(d=>{const b=(xe.get(d)||0)+1;xe.set(d,b),v.push(d),b===1&&d.setAttribute(ft,"")}),Ve+=1,()=>{i&&T.forEach(d=>{const O=(i.get(d)||0)-1;i.set(d,O),O||(!l?.has(d)&&s&&d.removeAttribute(s),l?.delete(d))}),o&&v.forEach(d=>{const b=(xe.get(d)||0)-1;xe.set(d,b),b||d.removeAttribute(ft)}),Ve-=1,Ve||(Xe.inert=new WeakMap,Xe["aria-hidden"]=new WeakMap,$e.inert=new WeakSet,$e["aria-hidden"]=new WeakSet,xe=new WeakMap)}}function ht(e,t={}){const{ariaHidden:n=!1,inert:r=!1,mark:o=!0}=t,s=X(e[0]).body;return kn(e,s,n,r,{mark:o})}function Nt(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}class Fn{nodesRef={current:[]};events=Nt();addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const Wt=m.createContext(null),Bt=m.createContext(null),et=()=>m.useContext(Wt)?.id||null,tt=e=>{const t=m.useContext(Bt);return e??t};function ir(e){const t=Je(),n=tt(e),r=et();return B(()=>{if(!t)return;const o={id:t,parentId:r};return n?.addNode(o),()=>{n?.removeNode(o)}},[n,t,r]),t}function cr(e){const{children:t,id:n}=e,r=et();return ve.jsx(Wt.Provider,{value:m.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function ur(e){const{children:t,externalTree:n}=e,r=je(()=>n??new Fn).current;return ve.jsx(Bt.Provider,{value:r,children:t})}function Mn(e,t){const n=De(ye(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const mt=20;let pe=[];function nt(){pe=pe.filter(e=>e.deref()?.isConnected)}function bt(e){nt(),e&&ze(e)!=="body"&&(pe.push(new WeakRef(e)),pe.length>mt&&(pe=pe.slice(-mt)))}function yt(){return nt(),pe[pe.length-1]?.deref()}function An(e){return e?Ze(e)?e:It(e)[0]||e:null}function Et(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;const n=Qt(e).filter(o=>{const s=o.getAttribute("data-tabindex")||"";return Ze(o)||o.hasAttribute("data-tabindex")&&!s.startsWith("-")}),r=e.getAttribute("tabindex");n.length===0?r!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(r!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function lr(e){const{context:t,children:n,disabled:r=!1,initialFocus:o=!0,returnFocus:s=!0,restoreFocus:i=!1,modal:l=!0,closeOnFocusOut:a=!0,openInteractionType:f="",nextFocusableElement:T,previousFocusableElement:v,beforeContentFocusGuardRef:d,externalTree:b,getInsideElements:O}=e,V="rootStore"in t?t.rootStore:t,F=V.useState("open"),S=V.useState("domReferenceElement"),R=V.useState("floatingElement"),{events:j,dataRef:q}=V.context,$=Y(()=>q.current.floatingContext?.nodeId),le=o===!1,M=st(S)&&le,Z=Ae(o),se=Ae(s),ee=Ae(f),L=Ae(F),G=tt(b),C=qt(),N=m.useRef(!1),ae=m.useRef(!1),te=m.useRef(!1),Ee=m.useRef(null),ie=m.useRef(""),z=m.useRef(""),ge=m.useRef(null),he=m.useRef(null),Se=it(ge,d,C?.beforeInsideRef),Me=it(he,C?.afterInsideRef),y=We(),D=We(),A=$t(),Te=C!=null,E=ct(R),ne=Y((h=E)=>h?It(h):[]),re=Y(()=>O?.().filter(h=>h!=null)??[]);m.useEffect(()=>{if(r||!l)return;function h(W){W.key==="Tab"&&w(E,de(X(E)))&&ne().length===0&&!M&&Cn(W)}const P=X(E);return I(P,"keydown",h)},[r,E,l,M,ne]),m.useEffect(()=>{if(r||!F)return;const h=X(E);function P(){te.current=!1}function W(oe){const g=ye(oe),x=re(),p=w(R,g)||w(S,g)||w(C?.portalNode,g)||x.some(k=>k===g||w(k,g));te.current=!p,z.current=oe.pointerType||"keyboard",g?.closest(`[${Zt}]`)&&(ae.current=!0,D.start(0,()=>{ae.current=!1}))}function _(){z.current="keyboard"}return Pe(I(h,"pointerdown",W,!0),I(h,"pointerup",P,!0),I(h,"pointercancel",P,!0),I(h,"keydown",_,!0),P)},[r,R,S,E,F,C,D,re]),m.useEffect(()=>{if(r||!a)return;const h=X(E);function P(){ae.current=!0,D.start(0,()=>{ae.current=!1})}function W(x){const p=ye(x);Ze(p)&&(Ee.current=p)}function _(x){const p=x.relatedTarget,k=x.currentTarget,K=ye(x);l&&p==null&&K!=null&&w(R,K)&&bt(K),queueMicrotask(()=>{const J=$(),Q=V.context.triggerElements,Ce=re(),Re=p?.hasAttribute(qe("focus-guard"))&&[ge.current,he.current,C?.beforeInsideRef.current,C?.afterInsideRef.current,C?.beforeOutsideRef.current,C?.afterOutsideRef.current,fe(v),fe(T)].includes(p),u=!(w(S,p)||w(R,p)||w(p,R)||w(C?.portalNode,p)||Ce.some(c=>c===p||w(c,p))||Q.hasMatchingElement(c=>w(c,p))||Re||G&&(Fe(G.nodesRef.current,J).find(c=>w(c.context?.elements.floating,p)||w(c.context?.elements.domReference,p))||at(G.nodesRef.current,J).find(c=>[c.context?.elements.floating,ct(c.context?.elements.floating)].includes(p)||c.context?.elements.domReference===p)));if(k===S&&E&&Et(E),i&&k!==S&&!en(K)&&de(h)===h.body){if(me(E)&&(E.focus(),i==="popup")){A.request(()=>{E.focus()});return}const c=ne(),H=Ee.current,U=(H&&c.includes(H)?H:null)||c[c.length-1]||E;me(U)&&U.focus()}if(q.current.insideReactTree){q.current.insideReactTree=!1;return}(M||!l)&&p&&u&&!ae.current&&(M||p!==yt())&&(N.current=!0,V.setOpen(!1,ke(tn,x)))})}function oe(){te.current||(q.current.insideReactTree=!0,y.start(0,()=>{q.current.insideReactTree=!1}))}const g=me(S)?S:null;if(!(!R&&!g))return Pe(g&&I(g,"focusout",_),g&&I(g,"pointerdown",P),R&&I(R,"focusin",W),R&&I(R,"focusout",_),R&&C&&I(R,"focusout",oe,!0))},[r,S,R,E,l,G,C,V,a,i,ne,M,$,q,y,D,A,T,v,re]),m.useEffect(()=>{if(r||!R||!F)return;const h=Array.from(C?.portalNode?.querySelectorAll(`[${qe("portal")}]`)||[]),W=(G?at(G.nodesRef.current,$()):[]).find(k=>st(k.context?.elements.domReference||null))?.context?.elements.domReference,oe=[...[R,...h,ge.current,he.current,C?.beforeOutsideRef.current,C?.afterOutsideRef.current,...re()],W,fe(v),fe(T),M?S:null].filter(k=>k!=null),g=ht(oe,{ariaHidden:l||M,mark:!1}),x=[R,...h].filter(k=>k!=null),p=ht(x);return()=>{p(),g()}},[F,r,S,R,l,C,M,G,$,T,v,re]),B(()=>{if(!F||r||!me(E))return;ie.current="",z.current="";const h=X(E),P=de(h);queueMicrotask(()=>{const W=Z.current,_=typeof W=="function"?W(ee.current||""):W;if(_===void 0||_===!1||w(E,P))return;let g=null;const x=()=>(g==null&&(g=ne(E)),g[0]||E);let p;_===!0||_===null?p=x():p=fe(_),p=p||x();const k=w(E,de(h));Ue(p,{preventScroll:p===E,shouldFocus(){if(!L.current)return!1;if(k)return!0;const K=de(h);return!(K!==p&&w(E,K))}})})},[r,F,E,ne,Z,ee,L]),B(()=>{if(r||!E)return;const h=X(E),P=de(h),W=ee.current==null;bt(P);function _(g){if(g.open||(ie.current=Mn(g.nativeEvent,z.current)),g.reason===wt&&g.nativeEvent.type==="mouseleave"&&(N.current=!0),g.reason===xt)if(g.nested)N.current=!1;else if(Mt(g.nativeEvent)||wn(g.nativeEvent))N.current=!1;else{let x=!1;X(E).createElement("div").focus({get preventScroll(){return x=!0,!1}}),x?N.current=!1:N.current=!0}}j.on("openchange",_);function oe(g){const x=se.current;let p=typeof x=="function"?x(g):x;if(p===void 0||p===!1)return null;p===null&&(p=!0);const k=S?.isConnected?S:null,K=P?.isConnected&&ze(P)!=="body"?P:null;let J=W?K||k:k||K;return J||(J=yt()||null),typeof p=="boolean"?J:fe(p)||J||null}return()=>{j.off("openchange",_);const g=de(h),x=re(),p=w(R,g)||x.some(Q=>Q===g||w(Q,g))||G&&Fe(G.nodesRef.current,$(),!1).some(Q=>w(Q.context?.elements.floating,g)),k=se.current,K=ie.current,J=oe(K);queueMicrotask(()=>{const Q=An(J),Ce=typeof k!="boolean";if(k&&!N.current&&me(Q)&&(!(!Ce&&Q!==g&&g!==h.body)||p)){const Re={preventScroll:!0};K==="keyboard"&&(Re.focusVisible=!0),Q.focus(Re)}N.current=!1})}},[r,R,E,se,ee,j,G,S,$,re]),B(()=>{if(!Qe||F||!R)return;const h=de(X(R));!me(h)||!jt(h)||w(R,h)&&h.blur()},[F,R]),B(()=>{if(!(r||!C))return C.setFocusManagerState({modal:l,closeOnFocusOut:a,open:F,onOpenChange:V.setOpen,domReference:S}),()=>{C.setFocusManagerState(null)}},[r,C,l,F,V,a,S]),B(()=>{if(!(r||!E))return Et(E),()=>{queueMicrotask(nt)}},[r,E]);const ce=!r&&(l?!M:!0)&&(Te||l);return ve.jsxs(m.Fragment,{children:[ce&&ve.jsx(ut,{"data-type":"inside",ref:Se,onFocus:h=>{if(l){const P=ne();Ue(P[P.length-1])}else C?.portalNode&&(N.current=!1,lt(h,C.portalNode)?zt(S)?.focus():fe(v??C.beforeOutsideRef)?.focus())}}),n,ce&&ve.jsx(ut,{"data-type":"inside",ref:Me,onFocus:h=>{l?Ue(ne()[0]):C?.portalNode&&(a&&(N.current=!0),lt(h,C.portalNode)?Jt(S)?.focus():fe(T??C.afterOutsideRef)?.focus())}})]})}function Nn(){return!1}function Wn(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function ar(e,t={}){const{enabled:n=!0,escapeKey:r=!0,outsidePress:o=!0,outsidePressEvent:s="sloppy",referencePress:i=Nn,bubbles:l,externalTree:a}=t,f="rootStore"in e?e.rootStore:e,T=f.useState("open"),v=f.useState("floatingElement"),{dataRef:d,events:b}=f.context,O=tt(a),V=Y(typeof o=="function"?o:()=>!1),F=typeof o=="function"?V:o,S=F!==!1,R=Y(()=>s),{escapeKey:j,outsidePress:q}=Wn(l),$=m.useRef(!1),le=m.useRef(!1),M=m.useRef(!1),Z=m.useRef(!1),se=m.useRef(!1),ee=m.useRef(""),L=m.useRef(null),G=We(),C=We(),N=Y(()=>{C.clear(),d.current.insideReactTree=!1}),ae=Y(y=>{const D=d.current.floatingContext?.nodeId;return(O?Fe(O.nodesRef.current,D):[]).some(Te=>Te.context?.open&&!Te.context.dataRef.current[y])}),te=Y(y=>Ye(y,f.select("floatingElement"))||Ye(y,f.select("domReferenceElement"))),Ee=Y(y=>{i()&&f.setOpen(!1,ke(Pt,y.nativeEvent))}),ie=Y(y=>{if(!T||!n||!r||y.key!=="Escape"||se.current||!j&&ae("__escapeKeyBubbles"))return;const D=On(y)?y.nativeEvent:y,A=ke(kt,D);f.setOpen(!1,A),A.isCanceled||y.preventDefault(),!j&&!A.isPropagationAllowed&&y.stopPropagation()}),z=Y(()=>{d.current.insideReactTree=!0,C.start(0,N)}),ge=Y(y=>{if(!T||!n||y.button!==0)return;const D=ye(y.nativeEvent);w(f.select("floatingElement"),D)&&($.current||($.current=!0,le.current=!1))}),he=Y(y=>{!T||!n||(y.defaultPrevented||y.nativeEvent.defaultPrevented)&&$.current&&(le.current=!0)});m.useEffect(()=>{function y(D){D.open||(Z.current=!1)}return b.on("openchange",y),()=>{b.off("openchange",y)}},[b]),m.useEffect(()=>{if(!T||!n)return T||(Z.current=!1),N;d.current.__escapeKeyBubbles=j,d.current.__outsidePressBubbles=q;const y=new Be,D=new Be,A=X(v);function Te(){y.clear(),se.current=!0}function E(){y.start(Qe?5:0,()=>{se.current=!1})}function ne(){M.current=!0,D.start(0,()=>{M.current=!1})}function re(){$.current=!1,le.current=!1}function ce(){const u=ee.current,c=u==="pen"||!u?"mouse":u,H=R(),U=typeof H=="function"?H():H;return typeof U=="string"?U:U[c]}function h(u){const c=ce();return c==="intentional"&&u.type!=="click"||c==="sloppy"&&u.type==="click"}function P(u){const c=d.current.floatingContext?.nodeId,H=O&&Fe(O.nodesRef.current,c).some(U=>Ye(u,U.context?.elements.floating));return te(u)||H}function W(u){if(h(u)){u.type!=="click"&&!te(u)&&(D.clear(),M.current=!1),N();return}if(d.current.insideReactTree){N();return}const c=ye(u),H=`[${qe("inert")}]`,U=Ie(c)?c.getRootNode():null,Oe=Array.from((Ot(U)?U:X(f.select("floatingElement"))).querySelectorAll(H)),rt=f.context.triggerElements;if(c&&(rt.hasElement(c)||rt.hasMatchingElement(ue=>w(ue,c))))return;let we=Ie(c)?c:null;for(;we&&!Ge(we);){const ue=nn(we);if(Ge(ue)||!Ie(ue))break;we=ue}if(!(Oe.length&&Ie(c)&&!rn(c)&&!w(c,f.select("floatingElement"))&&Oe.every(ue=>!w(we,ue)))){if(me(c)&&!("touches"in u)){const ue=Ge(c),He=on(c),ot=/auto|scroll/,Dt=ue||ot.test(He.overflowX),Lt=ue||ot.test(He.overflowY),Ht=Dt&&c.clientWidth>0&&c.scrollWidth>c.clientWidth,Yt=Lt&&c.clientHeight>0&&c.scrollHeight>c.clientHeight,Gt=He.direction==="rtl",_t=Yt&&(Gt?u.offsetX<=c.offsetWidth-c.clientWidth:u.offsetX>c.clientWidth),Ut=Ht&&u.offsetY>c.clientHeight;if(_t||Ut)return}if(!P(u)){if(ce()==="intentional"){if(u.detail!==0&&!Mt(u)&&!Z.current)return;if(M.current){D.clear(),M.current=!1;return}}typeof F=="function"&&!F(u)||ae("__outsidePressBubbles")||(f.setOpen(!1,ke(xt,u)),N())}}}function _(u){ce()!=="sloppy"||u.pointerType==="touch"||!f.select("open")||!n||te(u)||W(u)}function oe(u){if(ce()!=="sloppy"||!f.select("open")||!n||te(u))return;const c=u.touches[0];c&&(L.current={startTime:Date.now(),startX:c.clientX,startY:c.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},G.start(1e3,()=>{L.current&&(L.current.dismissOnTouchEnd=!1,L.current.dismissOnMouseDown=!1)}))}function g(u,c){const H=ye(u);if(!H)return;const U=I(H,u.type,()=>{c(u),U()})}function x(u){ee.current="touch",g(u,oe)}function p(u){G.clear(),u.type==="pointerdown"&&(u.button===0&&(Z.current=!0),ee.current=u.pointerType),!(u.type==="mousedown"&&L.current&&!L.current.dismissOnMouseDown)&&g(u,c=>{c.type==="pointerdown"?_(c):W(c)})}function k(u){if(u.type==="pointercancel"&&(Z.current=!1),!$.current)return;const c=le.current;if(re(),ce()==="intentional"){if(u.type==="pointercancel"){c&&ne();return}if(!P(u)){if(c){ne();return}typeof F=="function"&&!F(u)||(D.clear(),M.current=!0,N())}}}function K(u){if(ce()!=="sloppy"||!L.current||te(u))return;const c=u.touches[0];if(!c)return;const H=Math.abs(c.clientX-L.current.startX),U=Math.abs(c.clientY-L.current.startY),Oe=Math.sqrt(H*H+U*U);Oe>5&&(L.current.dismissOnTouchEnd=!0),Oe>10&&(W(u),G.clear(),L.current=null)}function J(u){g(u,K)}function Q(u){ce()!=="sloppy"||!L.current||te(u)||(L.current.dismissOnTouchEnd&&W(u),G.clear(),L.current=null)}function Ce(u){g(u,Q)}const Re=Pe(r&&Pe(I(A,"keydown",ie),I(A,"compositionstart",Te),I(A,"compositionend",E)),S&&Pe(I(A,"click",p,!0),I(A,"pointerdown",p,!0),I(A,"pointerup",k,!0),I(A,"pointercancel",k,!0),I(A,"mousedown",p,!0),I(A,"mouseup",k,!0),I(A,"touchstart",x,{capture:!0,passive:!0}),I(A,"touchmove",J,{capture:!0,passive:!0}),I(A,"touchend",Ce,{capture:!0,passive:!0})));return()=>{Re(),y.clear(),D.clear(),re(),M.current=!1,N()}},[d,v,r,S,F,T,n,j,q,ie,N,R,ae,te,O,f,G]);const Se=m.useMemo(()=>({onKeyDown:ie,onPointerDown:Ee,onClick:Ee}),[ie,Ee]),Me=m.useMemo(()=>({onKeyDown:ie,onPointerDown:he,onMouseDown:he,onClickCapture:z,onMouseDownCapture(y){z(),ge(y)},onPointerDownCapture(y){z(),ge(y)},onMouseUpCapture:z,onTouchEndCapture:z,onTouchMoveCapture:z}),[ie,z,ge,he]);return m.useMemo(()=>n?{reference:Se,floating:Me,trigger:Se}:{},[n,Se,Me])}const Bn={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class Dn extends sn{constructor(t){const{syncOnly:n,nested:r,onOpenChange:o,triggerElements:s,...i}=t;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:Nt(),nested:r,triggerElements:s},Bn),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&xn(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}}function Ln(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:o,nested:s,onOpenChange:i}=e,l=t.useState("open"),a=t.useState("activeTriggerElement"),f=t.useState(n?"popupElement":"positionerElement"),T=t.context.triggerElements,v=i,d=m.useRef(null);r===void 0&&d.current===null&&(d.current=new Dn({open:l,transitionStatus:void 0,referenceElement:a,floatingElement:f,triggerElements:T,onOpenChange:v,floatingId:o,syncOnly:!0,nested:s}));const b=r??d.current;return t.useSyncedValue("floatingId",o),B(()=>{const O={open:l,floatingId:o,referenceElement:a,floatingElement:f};Ie(a)&&(O.domReferenceElement=a),b.state.positionReference===b.state.referenceElement&&(O.positionReference=a),b.update(O)},[l,o,a,f,b]),b.context.onOpenChange=v,b.context.nested=s,b}function Hn(e,t=!1,n=!1,r=!1){const[o,s]=m.useState(e&&t?"idle":void 0),[i,l]=m.useState(e&&!r);return e&&!i&&(l(!0),s("starting")),!e&&i&&o!=="ending"&&!n&&s("ending"),!e&&!i&&o==="ending"&&s(void 0),B(()=>{if(!e&&i&&o!=="ending"&&n){const a=be.request(()=>{s("ending")});return()=>{be.cancel(a)}}},[e,i,o,n]),B(()=>{if(!e||t)return;const a=be.request(()=>{s(void 0)});return()=>{be.cancel(a)}},[t,e]),B(()=>{if(!e||!t)return;e&&i&&o!=="idle"&&s("starting");const a=be.request(()=>{s("idle")});return()=>{be.cancel(a)}},[t,e,i,o]),{mounted:i,setMounted:l,transitionStatus:o}}const fr={tabIndex:-1,[an]:""};function dr(e){return t=>t==="touch"?e.current:!0}function pr(e,t=!1){const n=Je(),r=et()!=null,o=je(()=>e(n,r)).current;return Ln({popupStore:o,treatPopupAsFloatingElement:t,floatingRootContext:o.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:o.setOpen}),o}function gr({handle:e,store:t}){return B(()=>e.attachStore(t),[e,t]),null}function Tt(e){const t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function Yn(e,t){const n=m.useRef(null);return Y(r=>{const o=n.current;if(o!==null){if(o.element===r&&o.store===t&&o.id===e)return;n.current=null;const s=o.store;s.context.triggerElements.getById(o.id)===o.element&&(s.context.triggerElements.delete(o.id),Tt(s))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),Tt(t))})}function Gn(e,t,n,r=!1){let o=e.preventUnmountingOnClose;t?o=!1:r&&(o=!0);const s=n?.id??null;let i=e.activeTriggerId,l=e.activeTriggerElement;return(s||t)&&(i=s,l=n??null),{open:t,preventUnmountingOnClose:o,activeTriggerId:i,activeTriggerElement:l}}function _n(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function hr(e,t,n,r={}){const o=n.reason,s=o===wt,i=t&&o===fn,l=!t&&(o===Pt||o===kt),a=_n(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);const f=()=>{const T=Gn(e.state,t,n.trigger,a()),v={...r.extraState,...T};i?v.instantType="focus":l?v.instantType="dismiss":s&&(v.instantType=void 0),e.update(v)};s?ln.flushSync(f):f()}function mr(e,t,n,r){const o=n.useState("isMountedByTrigger",e),s=Yn(e,n),i=Y(a=>{const f=n.select("open"),T=n.select("activeTriggerId");if(T===e){const v={activeTriggerElement:a,...f?r:null};n.update(v);return}if(T==null&&f){const v={activeTriggerId:e??null,activeTriggerElement:a,...r};n.update(v)}}),l=Y(a=>{s(a),a&&i(a)});return B(()=>(l(t.current),()=>l(null)),[l,t,n,e]),B(()=>{if(o){const a={activeTriggerElement:t.current,...r};n.update(a)}},[o,n,t,...Object.values(r)]),{registerTrigger:l,isMountedByThisTrigger:o}}function br(e,t={}){const{closeOnActiveTriggerUnmount:n=!1}=t,r=m.useRef(null),o=e.useState("open"),s=e.useState("triggerCount"),i=e.useState("activeTriggerId"),l=e.useState("activeTriggerElement");B(()=>{if(!o){r.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0);return}const a=e.context.triggerElements.size,f={};e.state.triggerCount!==a&&(f.triggerCount=a);const T=e.select("activeTriggerId");let v=null;if(T){const d=e.context.triggerElements.getById(T);if(d)r.current=T,d!==e.state.activeTriggerElement&&(f.activeTriggerElement=d);else{for(const[b,O]of e.context.triggerElements.entries())if(O===e.state.activeTriggerElement){f.activeTriggerId=b,f.activeTriggerElement=O,r.current=b;break}f.activeTriggerId===void 0&&(r.current===T?v=T:r.current=null)}}else r.current=null;if(!v&&!T&&a===1){const d=e.context.triggerElements.entries().next();if(!d.done){const[b,O]=d.value;f.activeTriggerId=b,f.activeTriggerElement=O,r.current=b}}(f.triggerCount!==void 0||f.activeTriggerId!==void 0||f.activeTriggerElement!==void 0)&&e.update(f),v&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===v&&!e.context.triggerElements.getById(v)){const d=ke(cn);e.setOpen(!1,d),d.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[o,e,s,i,l,n])}function yr(e,t,n,r){const{mounted:o,setMounted:s,transitionStatus:i}=Hn(e,!1,!1,r),l=t.useState("preventUnmountingOnClose"),a=e?!1:l;t.useSyncedValues({mounted:o,transitionStatus:i,preventUnmountingOnClose:a});const f=Y(()=>{s(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return un({enabled:o&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||f()}}),{forceUnmount:f,transitionStatus:i}}function Er(e,t){e.useSyncedValues(t),B(()=>()=>{e.update({activeTriggerProps:_e,inactiveTriggerProps:_e,popupProps:_e})},[e])}function Tr(e,t){B(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),B(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}class Rr{constructor(){this.idMap=new Map}add(t,n){this.idMap.set(t,n)}delete(t){this.idMap.delete(t)}hasElement(t){for(const n of this.idMap.values())if(n===t)return!0;return!1}hasMatchingElement(t){for(const n of this.idMap.values())if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}function vr(e){return Je(e,"base-ui")}const Sr=m.forwardRef(function(t,n){const{cutout:r,...o}=t;let s;if(r){const i=r.getBoundingClientRect();s=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${i.left}px ${i.top}px,${i.left}px ${i.bottom}px,${i.right}px ${i.bottom}px,${i.right}px ${i.top}px,${i.left}px ${i.top}px)`}return ve.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:s}})});let Rt={},vt={},St="";function Le(e,t){return pn(e)?e:t}function Ct(e,t,n){return/hidden|clip/.test(e.getComputedStyle(Le(t,n)).overflowY)}function Un(e){if(typeof document>"u")return!1;const t=X(e);return De(t).innerWidth-t.documentElement.clientWidth>0}function Xn(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=X(e),r=n.documentElement,o=n.body,s=Le(r,o),i=s.style.overflowY,l=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",s.style.overflowY="scroll";const a=s.offsetWidth;s.style.overflowY="hidden";const f=s.offsetWidth;return s.style.overflowY=i,r.style.scrollbarGutter=l,a===f}function Vn(e){const t=X(e),n=t.documentElement,r=t.body,o=Le(n,r),s={overflowY:o.style.overflowY,overflowX:o.style.overflowX};return Object.assign(o.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(o.style,s)}}function Kn(e){const t=X(e),n=t.documentElement,r=t.body,o=De(n);let s=0,i=0,l=!1;const a=be.create();if(Qe&&(o.visualViewport?.scale??1)!==1)return()=>{};function f(){const b=o.getComputedStyle(n),O=o.getComputedStyle(r),S=(b.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";s=n.scrollTop,i=n.scrollLeft,Rt={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},St=n.style.scrollBehavior,vt={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const R=n.scrollHeight>n.clientHeight,j=n.scrollWidth>n.clientWidth,q=b.overflowY==="scroll"||O.overflowY==="scroll",$=b.overflowX==="scroll"||O.overflowX==="scroll",le=Math.max(0,o.innerWidth-r.clientWidth),M=Math.max(0,o.innerHeight-r.clientHeight),Z=parseFloat(O.marginTop)+parseFloat(O.marginBottom),se=parseFloat(O.marginLeft)+parseFloat(O.marginRight),ee=Le(n,r);if(l=Xn(e),l){n.style.scrollbarGutter=S,ee.style.overflowY="hidden",ee.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:S,overflowY:"hidden",overflowX:"hidden"}),(R||q)&&(n.style.overflowY="scroll"),(j||$)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:Z||M?`calc(100dvh - ${Z+M}px)`:"100dvh",width:se||le?`calc(100vw - ${se+le}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),r.scrollTop=s,r.scrollLeft=i,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function T(){Object.assign(n.style,Rt),Object.assign(r.style,vt),l||(n.scrollTop=s,n.scrollLeft=i,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=St)}function v(){T(),a.request(f)}f();const d=I(o,"resize",v);return()=>{a.cancel(),T(),typeof o.removeEventListener=="function"&&d()}}class qn{lockCount=0;restore=null;timeoutLock=Be.create();timeoutUnlock=Be.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const n=X(t),r=n.documentElement,o=n.body,s=De(r);if(Ct(s,r,o)){const l=new s.MutationObserver(()=>{Ct(s,r,o)||(l.disconnect(),this.restore=null,this.lock(t))}),a={attributes:!0};l.observe(r,a),l.observe(o,a),this.restore=()=>l.disconnect();return}const i=dn||!Un(t);this.restore=i?Vn(t):Kn(t)}}const $n=new qn;function Cr(e=!0,t=null){B(()=>{if(e)return $n.acquire(t)},[e,t])}const jn="ArrowUp",zn="ArrowDown",Jn="ArrowLeft",Qn="ArrowRight",Zn="Home",er="End",Or=new Set([jn,zn,Jn,Qn,Zn,er]);export{hr as A,Cr as B,Or as C,Hn as D,wn as E,Dn as F,Ue as G,Cn as H,Sr as I,Mt as J,Rr as P,tt as a,et as b,Ae as c,_n as d,Gn as e,ur as f,Fe as g,Tr as h,sr as i,br as j,yr as k,gr as l,pr as m,ar as n,Er as o,mr as p,rr as q,ir as r,cr as s,nr as t,vr as u,dr as v,lr as w,fr as x,or as y,Sn as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as a}from"./__vite-browser-external-
|
|
1
|
+
import{o as a}from"./__vite-browser-external-Go6WKt6Z.js";const o={name:"download",size:24,node:[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]};o.node;const n=a(o);export{n as D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./__vite-browser-external-
|
|
1
|
+
import{o as e}from"./__vite-browser-external-Go6WKt6Z.js";const a={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};a.node;const n=e(a);export{n as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as a}from"./__vite-browser-external-
|
|
1
|
+
import{o as a}from"./__vite-browser-external-Go6WKt6Z.js";const e={name:"flame",size:24,node:[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]]};e.node;const c=a(e);export{c as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as r}from"./__vite-browser-external-
|
|
1
|
+
import{i as r}from"./__vite-browser-external-Go6WKt6Z.js";function n(o){const t=Number(o)||0;return t>=1e12?`${Number((t/1e12).toFixed(2)).toString()}T`:r(t)}export{n as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as t}from"./__vite-browser-external-
|
|
1
|
+
import{o as t}from"./__vite-browser-external-Go6WKt6Z.js";const e={name:"gift",size:24,node:[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]]};e.node;const o=t(e);export{o as G};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as a}from"./__vite-browser-external-
|
|
1
|
+
import{o as a}from"./__vite-browser-external-Go6WKt6Z.js";const t={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};t.node;const c=a(t);function e(){if(typeof window>"u")return!1;const o=window.location.hostname;return o==="localhost"||o==="127.0.0.1"||o==="::1"}function r(){return e()?"/":"/dashboard"}export{c as C,r as g,e as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./__vite-browser-external-
|
|
1
|
+
import{j as r}from"./__vite-browser-external-Go6WKt6Z.js";function e({className:n}){return r.jsx("svg",{viewBox:"0 0 384 512",className:n,fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})})}function o({className:n}){return r.jsx("svg",{viewBox:"0 0 16 16",className:n,fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"})})}function t({className:n}){return r.jsx("svg",{viewBox:"0 0 24 24",className:n,fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M3 5.46 10.2 4.5v6.92H3V5.46Zm0 13.08 7.2.96v-6.84H3v5.88Zm8.04 1.08L21 21V12.46h-9.96v7.16ZM11.04 4.38 21 3v8.46h-9.96V4.38Z"})})}export{e as A,o as G,t as W};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u}from"./__vite-browser-external-
|
|
1
|
+
import{r as u}from"./__vite-browser-external-Go6WKt6Z.js";var c={},p=()=>{window.va||(window.va=function(...r){window.vaq||(window.vaq=[]),window.vaq.push(r)})},m="@vercel/analytics",E="2.0.1";function l(){return typeof window<"u"}function w(){try{const e="production"}catch{}return"production"}function y(e="auto"){if(e==="auto"){window.vam=w();return}window.vam=e}function h(){return(l()?window.vam:w())||"production"}function v(){return h()==="production"}function d(){return h()==="development"}function g(e,{[e]:r,...i}){return i}function _(e,r){if(!e)return;let i=e;const n=[];for(const[t,o]of Object.entries(e))typeof o=="object"&&o!==null&&(r.strip?i=g(t,i):n.push(t));if(n.length>0&&!r.strip)throw Error(`The following properties are not valid: ${n.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return i}function S(e){return e.scriptSrc?a(e.scriptSrc):d()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?a(`${e.basePath}/insights/script.js`):"/_vercel/insights/script.js"}function k(e,r){var i;let n=e;if(r)try{n={...(i=JSON.parse(r))==null?void 0:i.analytics,...e}}catch{}y(n.mode);const t={sdkn:m+(n.framework?`/${n.framework}`:""),sdkv:E};return n.disableAutoTrack&&(t.disableAutoTrack="1"),n.viewEndpoint&&(t.viewEndpoint=a(n.viewEndpoint)),n.eventEndpoint&&(t.eventEndpoint=a(n.eventEndpoint)),n.sessionEndpoint&&(t.sessionEndpoint=a(n.sessionEndpoint)),d()&&n.debug===!1&&(t.debug="false"),n.dsn&&(t.dsn=n.dsn),n.endpoint?t.endpoint=n.endpoint:n.basePath&&(t.endpoint=a(`${n.basePath}/insights`)),{beforeSend:n.beforeSend,src:S(n),dataset:t}}function a(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function P(e={debug:!0},r){var i;if(!l())return;const{beforeSend:n,src:t,dataset:o}=k(e,r);if(p(),n&&((i=window.va)==null||i.call(window,"beforeSend",n)),document.head.querySelector(`script[src*="${t}"]`))return;const s=document.createElement("script");s.src=t;for(const[f,b]of Object.entries(o))s.dataset[f]=b;s.defer=!0,s.onerror=()=>{const f=d()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${t}. ${f}`)},document.head.appendChild(s)}function C(e,r,i){var n,t;if(!l()){const o="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(v())console.warn(o);else throw new Error(o);return}if(!r){(n=window.va)==null||n.call(window,"event",{name:e,options:i});return}try{const o=_(r,{strip:v()});(t=window.va)==null||t.call(window,"event",{name:e,data:o,options:i})}catch(o){o instanceof Error&&d()&&console.error(o)}}function A({route:e,path:r}){var i;(i=window.va)==null||i.call(window,"pageview",{route:e,path:r})}function T(){if(!(typeof process>"u"||typeof c>"u"))return c.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function j(){if(!(typeof process>"u"||typeof c>"u"))return c.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}function $(e){return u.useEffect(()=>{var r;e.beforeSend&&((r=window.va)==null||r.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),u.useEffect(()=>{P({framework:e.framework||"react",basePath:e.basePath??T(),...e.route!==void 0&&{disableAutoTrack:!0},...e},e.configString??j())},[]),u.useEffect(()=>{e.route&&e.path&&A({route:e.route,path:e.path})},[e.route,e.path]),null}export{$ as Analytics,C as track};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c}from"./__vite-browser-external-
|
|
1
|
+
import{r as c}from"./__vite-browser-external-Go6WKt6Z.js";var u={},p=()=>{window.si||(window.si=function(...i){window.siq=window.siq||[],window.siq.push(i)})},h="@vercel/speed-insights",g="2.0.0";function w(){return typeof window<"u"}function S(){try{const e="production"}catch{}return"production"}function l(){return S()==="development"}function k(e,i){if(!e||!i)return e;let n=e;try{const t=Object.entries(i);for(const[r,o]of t)if(!Array.isArray(o)){const s=d(o);s.test(n)&&(n=n.replace(s,`/[${r}]`))}for(const[r,o]of t)if(Array.isArray(o)){const s=d(o.join("/"));s.test(n)&&(n=n.replace(s,`/[...${r}]`))}return n}catch{return e}}function d(e){return new RegExp(`/${b(e)}(?=[/?#]|$)`)}function b(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){return e.scriptSrc?f(e.scriptSrc):l()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?f(`${e.basePath}/speed-insights/script.js`):"/_vercel/speed-insights/script.js"}function E(e,i){var n;let t=e;if(i)try{t={...(n=JSON.parse(i))==null?void 0:n.speedInsights,...e}}catch{}const r={sdkn:h+(t.framework?`/${t.framework}`:""),sdkv:g};return t.sampleRate&&(r.sampleRate=t.sampleRate.toString()),t.route&&(r.route=t.route),l()&&t.debug===!1&&(r.debug="false"),t.dsn&&(r.dsn=t.dsn),t.endpoint?r.endpoint=f(t.endpoint):t.basePath&&(r.endpoint=f(`${t.basePath}/speed-insights/vitals`)),{src:m(t),beforeSend:t.beforeSend,dataset:r}}function f(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function y(e={},i){var n;if(!w()||e.route===null)return null;p();const{beforeSend:t,src:r,dataset:o}=E(e,i);if(document.head.querySelector(`script[src*="${r}"]`))return null;t&&((n=window.si)==null||n.call(window,"beforeSend",t));const s=document.createElement("script");s.src=r,s.defer=!0;for(const[a,v]of Object.entries(o))s.dataset[a]=v;return s.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(s),{setRoute:a=>{s.dataset.route=a??void 0}}}function R(){if(!(typeof process>"u"||typeof u>"u"))return u.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function _(){if(!(typeof process>"u"||typeof u>"u"))return u.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}function P(e){c.useEffect(()=>{var n;e.beforeSend&&((n=window.si)==null||n.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);const i=c.useRef(null);return c.useEffect(()=>{if(!i.current){const n=y({framework:e.framework??"react",basePath:e.basePath??R(),...e},e.configString??_());n&&(i.current=n.setRoute)}},[e]),c.useEffect(()=>{i.current&&e.route&&i.current(e.route)},[e.route]),null}export{P as SpeedInsights,k as computeRoute};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as n,j as $}from"./__vite-browser-external-
|
|
1
|
+
import{r as n,j as $}from"./__vite-browser-external-Go6WKt6Z.js";import{M as D,a as S,u as A,b as F,P as K,c as U,L as W}from"./react-EctmAw3f.js";function I(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function B(...e){return r=>{let t=!1;const o=e.map(l=>{const i=I(l,r);return!t&&typeof i=="function"&&(t=!0),i});if(t)return()=>{for(let l=0;l<o.length;l++){const i=o[l];typeof i=="function"?i():I(e[l],null)}}}}function G(...e){return n.useCallback(B(...e),e)}class V extends n.Component{getSnapshotBeforeUpdate(r){const t=this.props.childRef.current;if(S(t)&&r.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=t.offsetParent,l=S(o)&&o.offsetWidth||0,i=S(o)&&o.offsetHeight||0,d=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(d.height),s.width=parseFloat(d.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=l-s.width-s.left,s.bottom=i-s.height-s.top,s.direction=d.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function X({children:e,isPresent:r,anchorX:t,anchorY:o,root:l,pop:i}){const d=n.useId(),s=n.useRef(null),y=n.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:E}=n.useContext(D),a=i!==!1?e.props?.ref??e?.ref:void 0,M=G(s,a);return n.useInsertionEffect(()=>{const{width:u,height:p,top:x,left:C,right:f,bottom:R,direction:L}=y.current;if(r||i===!1||!s.current||!u||!p)return;const b=L==="rtl",g=t==="left"?b?`right: ${f}`:`left: ${C}`:b?`left: ${C}`:`right: ${f}`,j=o==="bottom"?`bottom: ${R}`:`top: ${x}`;s.current.dataset.motionPopId=d;const h=document.createElement("style");E&&(h.nonce=E);const P=l??document.head;return P.appendChild(h),h.sheet&&h.sheet.insertRule(`
|
|
2
2
|
[data-motion-pop-id="${d}"] {
|
|
3
3
|
position: absolute !important;
|
|
4
4
|
width: ${u}px !important;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o}from"./__vite-browser-external-
|
|
1
|
+
import{o}from"./__vite-browser-external-Go6WKt6Z.js";const e={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};e.node;const a=o(e);export{a as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as n}from"./__vite-browser-external-
|
|
1
|
+
import{o as n}from"./__vite-browser-external-Go6WKt6Z.js";const e={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]};e.node;const a=n(e);export{a as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as a}from"./__vite-browser-external-
|
|
1
|
+
import{o as a}from"./__vite-browser-external-Go6WKt6Z.js";const e={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};e.node;const c=a(e);export{c as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./__vite-browser-external-
|
|
1
|
+
import"./__vite-browser-external-Go6WKt6Z.js";const s=r=>{let{transform:t}=r;return{...t,y:0}},e=r=>{let{transform:t}=r;return{...t,x:0}};export{e as a,s as r};
|
package/dashboard/dist/assets/{monitor-smartphone-DpkdtOjk.js → monitor-smartphone-DQjBY1W3.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o}from"./__vite-browser-external-
|
|
1
|
+
import{o}from"./__vite-browser-external-Go6WKt6Z.js";const e={name:"monitor-smartphone",size:24,node:[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]]};e.node;const a=o(e);export{a as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./__vite-browser-external-
|
|
1
|
+
import{o as e}from"./__vite-browser-external-Go6WKt6Z.js";const a={name:"pause",size:24,node:[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]};a.node;const n=e(a);const t={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};t.node;const s=e(t);export{n as P,s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o}from"./__vite-browser-external-
|
|
1
|
+
import{o}from"./__vite-browser-external-Go6WKt6Z.js";const e={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};e.node;const s=o(e);export{s as P};
|