@ipv9/tokentracker-cli 0.39.39 → 0.39.41

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.
Files changed (38) hide show
  1. package/README.md +6 -6
  2. package/dashboard/dist/assets/{Card-BbRYRVXf.js → Card-BwY_Qv6N.js} +1 -1
  3. package/dashboard/dist/assets/DashboardPage-C7b_GjA-.js +60 -0
  4. package/dashboard/dist/assets/{FadeIn-CjAacJ5t.js → FadeIn-DiAafUDN.js} +1 -1
  5. package/dashboard/dist/assets/{IpCheckPage-BGALK8Vy.js → IpCheckPage-CYgWVZJr.js} +1 -1
  6. package/dashboard/dist/assets/LimitsPage-C1y75ftN.js +2 -0
  7. package/dashboard/dist/assets/{LocalOnlyNotice-Dxo2vFMQ.js → LocalOnlyNotice-B5_-ydeu.js} +1 -1
  8. package/dashboard/dist/assets/{PopoverPopup-DP9fwdtl.js → PopoverPopup-DDjjQ5CG.js} +1 -1
  9. package/dashboard/dist/assets/{Select-DPE53NmM.js → Select-BPspkl9p.js} +1 -1
  10. package/dashboard/dist/assets/{SelectItemText-D69v77is.js → SelectItemText-CX0dWYB1.js} +1 -1
  11. package/dashboard/dist/assets/{SettingsPage-Dxzqpi02.js → SettingsPage-9K5ST4D_.js} +1 -1
  12. package/dashboard/dist/assets/{SkillsPage-Bo7e39AB.js → SkillsPage-BpCSS7ls.js} +1 -1
  13. package/dashboard/dist/assets/{WidgetsPage-HHcIr_Eq.js → WidgetsPage-aBisLWrM.js} +1 -1
  14. package/dashboard/dist/assets/{WrappedPage-C-_jLXXU.js → WrappedPage-BgkuBG_j.js} +1 -1
  15. package/dashboard/dist/assets/{arrow-up-right-BJvJHUGj.js → arrow-up-right-DPb2FRSP.js} +1 -1
  16. package/dashboard/dist/assets/{download-CnzY_EgN.js → download-CbZ8YL8m.js} +1 -1
  17. package/dashboard/dist/assets/{format-1w-q5n2f.js → format-aRaCvnht.js} +1 -1
  18. package/dashboard/dist/assets/limitDisplay-1O9-AdgI.js +1 -0
  19. package/dashboard/dist/assets/{main-3gBEI6Jl.js → main-DRcFJLLD.js} +5 -3
  20. package/dashboard/dist/assets/main-ZrWkoMlr.css +1 -0
  21. package/dashboard/dist/assets/mock-data-sZ3-GZV0.js +1 -0
  22. package/dashboard/dist/assets/{use-limits-display-prefs-D1nT9-mr.js → use-limits-display-prefs-2-qYvffB.js} +1 -1
  23. package/dashboard/dist/assets/{use-native-settings-Dh6NzqjY.js → use-native-settings-C1uhDKdL.js} +1 -1
  24. package/dashboard/dist/assets/{useCurrency-Hhs5jbWw.js → useCurrency-BPCF4zUv.js} +1 -1
  25. package/dashboard/dist/index.html +2 -2
  26. package/package.json +3 -2
  27. package/src/commands/serve.js +121 -38
  28. package/src/lib/fs.js +149 -25
  29. package/src/lib/local-api.js +20 -2
  30. package/src/lib/pricing/curated-overrides.json +10 -3
  31. package/src/lib/pricing/index.js +197 -18
  32. package/src/lib/pricing/litellm-fetcher.js +6 -1
  33. package/src/lib/pricing/seed-snapshot.json +1 -1
  34. package/dashboard/dist/assets/DashboardPage-DYKHv0m3.js +0 -60
  35. package/dashboard/dist/assets/LimitsPage-LkZGPYvg.js +0 -2
  36. package/dashboard/dist/assets/main-1kxAVM3m.css +0 -1
  37. package/dashboard/dist/assets/mock-data-CJOMGcL9.js +0 -1
  38. package/dashboard/dist/assets/use-usage-limits-BXR6lzGf.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LimitsPage-LkZGPYvg.js","assets/use-usage-limits-BXR6lzGf.js","assets/mock-data-CJOMGcL9.js","assets/format-1w-q5n2f.js","assets/use-limits-display-prefs-D1nT9-mr.js","assets/Card-BbRYRVXf.js","assets/FadeIn-CjAacJ5t.js","assets/LocalOnlyNotice-Dxo2vFMQ.js","assets/arrow-up-right-BJvJHUGj.js","assets/download-CnzY_EgN.js","assets/DashboardPage-DYKHv0m3.js","assets/useCurrency-Hhs5jbWw.js","assets/PopoverPopup-DP9fwdtl.js","assets/SelectItemText-D69v77is.js","assets/Select-DPE53NmM.js","assets/WrappedPage-C-_jLXXU.js","assets/SettingsPage-Dxzqpi02.js","assets/use-native-settings-Dh6NzqjY.js","assets/SkillsPage-Bo7e39AB.js","assets/WidgetsPage-HHcIr_Eq.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LimitsPage-C1y75ftN.js","assets/limitDisplay-1O9-AdgI.js","assets/mock-data-sZ3-GZV0.js","assets/format-aRaCvnht.js","assets/use-limits-display-prefs-2-qYvffB.js","assets/Card-BwY_Qv6N.js","assets/FadeIn-DiAafUDN.js","assets/LocalOnlyNotice-B5_-ydeu.js","assets/arrow-up-right-DPb2FRSP.js","assets/download-CbZ8YL8m.js","assets/DashboardPage-C7b_GjA-.js","assets/useCurrency-BPCF4zUv.js","assets/PopoverPopup-DDjjQ5CG.js","assets/SelectItemText-CX0dWYB1.js","assets/Select-BPspkl9p.js","assets/WrappedPage-BgkuBG_j.js","assets/SettingsPage-9K5ST4D_.js","assets/use-native-settings-C1uhDKdL.js","assets/SkillsPage-BpCSS7ls.js","assets/WidgetsPage-aBisLWrM.js"])))=>i.map(i=>d[i]);
2
2
  function Jw(e,t){for(var a=0;a<t.length;a++){const i=t[a];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const c=Object.getOwnPropertyDescriptor(i,s);c&&Object.defineProperty(e,s,c.get?c:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function a(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=a(s);fetch(s.href,c)}})();function e1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ju={exports:{}},ko={},ed={exports:{}},Ve={};var rg;function t1(){if(rg)return Ve;rg=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function y(E){return E===null||typeof E!="object"?null:(E=v&&E[v]||E["@@iterator"],typeof E=="function"?E:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,P={};function S(E,$,de){this.props=E,this.context=$,this.refs=P,this.updater=de||_}S.prototype.isReactComponent={},S.prototype.setState=function(E,$){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,$,"setState")},S.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function N(){}N.prototype=S.prototype;function j(E,$,de){this.props=E,this.context=$,this.refs=P,this.updater=de||_}var I=j.prototype=new N;I.constructor=j,w(I,S.prototype),I.isPureReactComponent=!0;var D=Array.isArray,B=Object.prototype.hasOwnProperty,Z={current:null},oe={key:!0,ref:!0,__self:!0,__source:!0};function x(E,$,de){var fe,he={},pe=null,De=null;if($!=null)for(fe in $.ref!==void 0&&(De=$.ref),$.key!==void 0&&(pe=""+$.key),$)B.call($,fe)&&!oe.hasOwnProperty(fe)&&(he[fe]=$[fe]);var je=arguments.length-2;if(je===1)he.children=de;else if(1<je){for(var Ce=Array(je),ut=0;ut<je;ut++)Ce[ut]=arguments[ut+2];he.children=Ce}if(E&&E.defaultProps)for(fe in je=E.defaultProps,je)he[fe]===void 0&&(he[fe]=je[fe]);return{$$typeof:e,type:E,key:pe,ref:De,props:he,_owner:Z.current}}function ee(E,$){return{$$typeof:e,type:E.type,key:$,ref:E.ref,props:E.props,_owner:E._owner}}function Y(E){return typeof E=="object"&&E!==null&&E.$$typeof===e}function ue(E){var $={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(de){return $[de]})}var se=/\/+/g;function q(E,$){return typeof E=="object"&&E!==null&&E.key!=null?ue(""+E.key):$.toString(36)}function ae(E,$,de,fe,he){var pe=typeof E;(pe==="undefined"||pe==="boolean")&&(E=null);var De=!1;if(E===null)De=!0;else switch(pe){case"string":case"number":De=!0;break;case"object":switch(E.$$typeof){case e:case t:De=!0}}if(De)return De=E,he=he(De),E=fe===""?"."+q(De,0):fe,D(he)?(de="",E!=null&&(de=E.replace(se,"$&/")+"/"),ae(he,$,de,"",function(ut){return ut})):he!=null&&(Y(he)&&(he=ee(he,de+(!he.key||De&&De.key===he.key?"":(""+he.key).replace(se,"$&/")+"/")+E)),$.push(he)),1;if(De=0,fe=fe===""?".":fe+":",D(E))for(var je=0;je<E.length;je++){pe=E[je];var Ce=fe+q(pe,je);De+=ae(pe,$,de,Ce,he)}else if(Ce=y(E),typeof Ce=="function")for(E=Ce.call(E),je=0;!(pe=E.next()).done;)pe=pe.value,Ce=fe+q(pe,je++),De+=ae(pe,$,de,Ce,he);else if(pe==="object")throw $=String(E),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return De}function ie(E,$,de){if(E==null)return E;var fe=[],he=0;return ae(E,fe,"","",function(pe){return $.call(de,pe,he++)}),fe}function Q(E){if(E._status===-1){var $=E._result;$=$(),$.then(function(de){(E._status===0||E._status===-1)&&(E._status=1,E._result=de)},function(de){(E._status===0||E._status===-1)&&(E._status=2,E._result=de)}),E._status===-1&&(E._status=0,E._result=$)}if(E._status===1)return E._result.default;throw E._result}var ne={current:null},V={transition:null},W={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:V,ReactCurrentOwner:Z};function O(){throw Error("act(...) is not supported in production builds of React.")}return Ve.Children={map:ie,forEach:function(E,$,de){ie(E,function(){$.apply(this,arguments)},de)},count:function(E){var $=0;return ie(E,function(){$++}),$},toArray:function(E){return ie(E,function($){return $})||[]},only:function(E){if(!Y(E))throw Error("React.Children.only expected to receive a single React element child.");return E}},Ve.Component=S,Ve.Fragment=a,Ve.Profiler=s,Ve.PureComponent=j,Ve.StrictMode=i,Ve.Suspense=p,Ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,Ve.act=O,Ve.cloneElement=function(E,$,de){if(E==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+E+".");var fe=w({},E.props),he=E.key,pe=E.ref,De=E._owner;if($!=null){if($.ref!==void 0&&(pe=$.ref,De=Z.current),$.key!==void 0&&(he=""+$.key),E.type&&E.type.defaultProps)var je=E.type.defaultProps;for(Ce in $)B.call($,Ce)&&!oe.hasOwnProperty(Ce)&&(fe[Ce]=$[Ce]===void 0&&je!==void 0?je[Ce]:$[Ce])}var Ce=arguments.length-2;if(Ce===1)fe.children=de;else if(1<Ce){je=Array(Ce);for(var ut=0;ut<Ce;ut++)je[ut]=arguments[ut+2];fe.children=je}return{$$typeof:e,type:E.type,key:he,ref:pe,props:fe,_owner:De}},Ve.createContext=function(E){return E={$$typeof:u,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},E.Provider={$$typeof:c,_context:E},E.Consumer=E},Ve.createElement=x,Ve.createFactory=function(E){var $=x.bind(null,E);return $.type=E,$},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(E){return{$$typeof:d,render:E}},Ve.isValidElement=Y,Ve.lazy=function(E){return{$$typeof:g,_payload:{_status:-1,_result:E},_init:Q}},Ve.memo=function(E,$){return{$$typeof:f,type:E,compare:$===void 0?null:$}},Ve.startTransition=function(E){var $=V.transition;V.transition={};try{E()}finally{V.transition=$}},Ve.unstable_act=O,Ve.useCallback=function(E,$){return ne.current.useCallback(E,$)},Ve.useContext=function(E){return ne.current.useContext(E)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(E){return ne.current.useDeferredValue(E)},Ve.useEffect=function(E,$){return ne.current.useEffect(E,$)},Ve.useId=function(){return ne.current.useId()},Ve.useImperativeHandle=function(E,$,de){return ne.current.useImperativeHandle(E,$,de)},Ve.useInsertionEffect=function(E,$){return ne.current.useInsertionEffect(E,$)},Ve.useLayoutEffect=function(E,$){return ne.current.useLayoutEffect(E,$)},Ve.useMemo=function(E,$){return ne.current.useMemo(E,$)},Ve.useReducer=function(E,$,de){return ne.current.useReducer(E,$,de)},Ve.useRef=function(E){return ne.current.useRef(E)},Ve.useState=function(E){return ne.current.useState(E)},Ve.useSyncExternalStore=function(E,$,de){return ne.current.useSyncExternalStore(E,$,de)},Ve.useTransition=function(){return ne.current.useTransition()},Ve.version="18.3.1",Ve}var ag;function Ph(){return ag||(ag=1,ed.exports=t1()),ed.exports}var ig;function n1(){if(ig)return ko;ig=1;var e=Ph(),t=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(d,p,f){var g,v={},y=null,_=null;f!==void 0&&(y=""+f),p.key!==void 0&&(y=""+p.key),p.ref!==void 0&&(_=p.ref);for(g in p)i.call(p,g)&&!c.hasOwnProperty(g)&&(v[g]=p[g]);if(d&&d.defaultProps)for(g in p=d.defaultProps,p)v[g]===void 0&&(v[g]=p[g]);return{$$typeof:t,type:d,key:y,ref:_,props:v,_owner:s.current}}return ko.Fragment=a,ko.jsx=u,ko.jsxs=u,ko}var og;function r1(){return og||(og=1,Ju.exports=n1()),Ju.exports}var L=r1(),k=Ph();const Sh=e1(k),Ch=Jw({__proto__:null,default:Sh},[k]);var ml={},td={exports:{}},nn={},nd={exports:{}},rd={};var sg;function a1(){return sg||(sg=1,(function(e){function t(V,W){var O=V.length;V.push(W);e:for(;0<O;){var E=O-1>>>1,$=V[E];if(0<s($,W))V[E]=W,V[O]=$,O=E;else break e}}function a(V){return V.length===0?null:V[0]}function i(V){if(V.length===0)return null;var W=V[0],O=V.pop();if(O!==W){V[0]=O;e:for(var E=0,$=V.length,de=$>>>1;E<de;){var fe=2*(E+1)-1,he=V[fe],pe=fe+1,De=V[pe];if(0>s(he,O))pe<$&&0>s(De,he)?(V[E]=De,V[pe]=O,E=pe):(V[E]=he,V[fe]=O,E=fe);else if(pe<$&&0>s(De,O))V[E]=De,V[pe]=O,E=pe;else break e}}return W}function s(V,W){var O=V.sortIndex-W.sortIndex;return O!==0?O:V.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var p=[],f=[],g=1,v=null,y=3,_=!1,w=!1,P=!1,S=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(V){for(var W=a(f);W!==null;){if(W.callback===null)i(f);else if(W.startTime<=V)i(f),W.sortIndex=W.expirationTime,t(p,W);else break;W=a(f)}}function D(V){if(P=!1,I(V),!w)if(a(p)!==null)w=!0,Q(B);else{var W=a(f);W!==null&&ne(D,W.startTime-V)}}function B(V,W){w=!1,P&&(P=!1,N(x),x=-1),_=!0;var O=y;try{for(I(W),v=a(p);v!==null&&(!(v.expirationTime>W)||V&&!ue());){var E=v.callback;if(typeof E=="function"){v.callback=null,y=v.priorityLevel;var $=E(v.expirationTime<=W);W=e.unstable_now(),typeof $=="function"?v.callback=$:v===a(p)&&i(p),I(W)}else i(p);v=a(p)}if(v!==null)var de=!0;else{var fe=a(f);fe!==null&&ne(D,fe.startTime-W),de=!1}return de}finally{v=null,y=O,_=!1}}var Z=!1,oe=null,x=-1,ee=5,Y=-1;function ue(){return!(e.unstable_now()-Y<ee)}function se(){if(oe!==null){var V=e.unstable_now();Y=V;var W=!0;try{W=oe(!0,V)}finally{W?q():(Z=!1,oe=null)}}else Z=!1}var q;if(typeof j=="function")q=function(){j(se)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ie=ae.port2;ae.port1.onmessage=se,q=function(){ie.postMessage(null)}}else q=function(){S(se,0)};function Q(V){oe=V,Z||(Z=!0,q())}function ne(V,W){x=S(function(){V(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_continueExecution=function(){w||_||(w=!0,Q(B))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return a(p)},e.unstable_next=function(V){switch(y){case 1:case 2:case 3:var W=3;break;default:W=y}var O=y;y=W;try{return V()}finally{y=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,W){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var O=y;y=V;try{return W()}finally{y=O}},e.unstable_scheduleCallback=function(V,W,O){var E=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?E+O:E):O=E,V){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=O+$,V={id:g++,callback:W,priorityLevel:V,startTime:O,expirationTime:$,sortIndex:-1},O>E?(V.sortIndex=O,t(f,V),a(p)===null&&V===a(f)&&(P?(N(x),x=-1):P=!0,ne(D,O-E))):(V.sortIndex=$,t(p,V),w||_||(w=!0,Q(B))),V},e.unstable_shouldYield=ue,e.unstable_wrapCallback=function(V){var W=y;return function(){var O=y;y=W;try{return V.apply(this,arguments)}finally{y=O}}}})(rd)),rd}var lg;function i1(){return lg||(lg=1,nd.exports=a1()),nd.exports}var cg;function o1(){if(cg)return nn;cg=1;var e=Ph(),t=i1();function a(n){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+n,o=1;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function c(n,r){u(n,r),u(n+"Capture",r)}function u(n,r){for(s[n]=r,n=0;n<r.length;n++)i.add(r[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},v={};function y(n){return p.call(v,n)?!0:p.call(g,n)?!1:f.test(n)?v[n]=!0:(g[n]=!0,!1)}function _(n,r,o,l){if(o!==null&&o.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return l?!1:o!==null?!o.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function w(n,r,o,l){if(r===null||typeof r>"u"||_(n,r,o,l))return!0;if(l)return!1;if(o!==null)switch(o.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function P(n,r,o,l,h,m,b){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=l,this.attributeNamespace=h,this.mustUseProperty=o,this.propertyName=n,this.type=r,this.sanitizeURL=m,this.removeEmptyString=b}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){S[n]=new P(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var r=n[0];S[r]=new P(r,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){S[n]=new P(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){S[n]=new P(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){S[n]=new P(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){S[n]=new P(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){S[n]=new P(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){S[n]=new P(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){S[n]=new P(n,5,!1,n.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function j(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var r=n.replace(N,j);S[r]=new P(r,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var r=n.replace(N,j);S[r]=new P(r,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var r=n.replace(N,j);S[r]=new P(r,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){S[n]=new P(n,1,!1,n.toLowerCase(),null,!1,!1)}),S.xlinkHref=new P("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){S[n]=new P(n,1,!1,n.toLowerCase(),null,!0,!0)});function I(n,r,o,l){var h=S.hasOwnProperty(r)?S[r]:null;(h!==null?h.type!==0:l||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(w(r,o,h,l)&&(o=null),l||h===null?y(r)&&(o===null?n.removeAttribute(r):n.setAttribute(r,""+o)):h.mustUseProperty?n[h.propertyName]=o===null?h.type===3?!1:"":o:(r=h.attributeName,l=h.attributeNamespace,o===null?n.removeAttribute(r):(h=h.type,o=h===3||h===4&&o===!0?"":""+o,l?n.setAttributeNS(l,r,o):n.setAttribute(r,o))))}var D=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,B=Symbol.for("react.element"),Z=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),ee=Symbol.for("react.profiler"),Y=Symbol.for("react.provider"),ue=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),V=Symbol.iterator;function W(n){return n===null||typeof n!="object"?null:(n=V&&n[V]||n["@@iterator"],typeof n=="function"?n:null)}var O=Object.assign,E;function $(n){if(E===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);E=r&&r[1]||""}return`
3
3
  `+E+n}var de=!1;function fe(n,r){if(!n||de)return"";de=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(H){var l=H}Reflect.construct(n,[],r)}else{try{r.call()}catch(H){l=H}n.call(r.prototype)}else{try{throw Error()}catch(H){l=H}n()}}catch(H){if(H&&l&&typeof H.stack=="string"){for(var h=H.stack.split(`
4
4
  `),m=l.stack.split(`
@@ -322,6 +322,8 @@ usage.overview.top_usage_model,ui,DashboardPage,UsageOverview,top_usage_model,To
322
322
  usage.overview.missing_pricing_count,ui,DashboardPage,UsageOverview,missing_pricing_count,{{count}} pricing missing,,active
323
323
  usage.overview.provider_top_cost,ui,DashboardPage,UsageOverview,provider_top_cost,Top cost: {{model}},,active
324
324
  usage.overview.provider_missing_pricing,ui,DashboardPage,UsageOverview,provider_missing_pricing,{{count}} pricing missing,,active
325
+ usage.overview.provider_limit,ui,DashboardPage,UsageOverview,provider_limit,{{label}} · {{percent}}%,,active
326
+ usage.overview.provider_limit_reset,ui,DashboardPage,UsageOverview,provider_limit_reset,{{label}} · {{percent}}% · resets in {{reset}},,active
325
327
  usage.overview.model_details_aria,ui,DashboardPage,UsageOverview,model_details_aria,{{provider}} model details,,active
326
328
  usage.overview.antigravity_notice_title,ui,DashboardPage,UsageOverview,antigravity_notice_title,Estimated tokens,,active
327
329
  usage.overview.antigravity_notice_body,ui,DashboardPage,UsageOverview,antigravity_notice_body,"Antigravity transcripts don't record real usage numbers. These counts are estimated from text length (~4 chars/token) and don't reflect Gemini's prompt-cache discount, so treat them as an upper bound, not a billing figure.",,active
@@ -683,7 +685,7 @@ app.meta.og_type,app,*,*,meta_og_type,website,,active
683
685
  app.meta.twitter_card,app,*,*,meta_twitter_card,summary,,active
684
686
  `,IP={"shared.placeholder.short":"--","shared.unit.percent":"%","shared.unit.thousand_abbrev":"K","shared.unit.million_abbrev":"M","shared.unit.billion_abbrev":"B","shared.data_source":"数据来源:{{source}}","shared.error.prefix":"错误:{{error}}","shared.status.unsynced":"—","shared.time.now":"刚刚","error.boundary.title":"出了点问题","error.boundary.subtitle":"这个视图渲染失败了","error.boundary.hint":"打开控制台,然后重新加载页面","error.boundary.no_details":"没有错误详细信息","error.boundary.action.reload":"重新加载","identity_card.rank_label":"排名","identity_card.streak_label":"活跃天数","identity_card.rank_placeholder":"—","identity_card.streak_value":"{{days}} 天","usage.summary.total":"Token 总数","usage.summary.updated_at":"更新于 {{timestamp}}","usage.period.day":"日","usage.period.week":"周","usage.period.month":"月","usage.period.total":"总计","usage.period.custom":"自定义","usage.metric.total":"总计","usage.metric.input":"输入","usage.metric.output":"输出","usage.metric.cached_input":"缓存输入","usage.metric.reasoning_output":"推理输出","usage.button.refresh":"刷新","usage.overview.tablist_aria":"时间范围","usage.auto_refresh.aria":"自动刷新间隔","usage.auto_refresh.off":"关闭","usage.auto_refresh.30s":"30 秒","usage.auto_refresh.60s":"60 秒","usage.auto_refresh.120s":"120 秒","usage.overview.cost_breakdown_aria":"查看成本明细","usage.overview.distribution_aria":"来源占比:{{items}}","usage.overview.distribution_item":"{{label}} {{percent}}%","usage.overview.provider_card_aria":"{{provider}}:{{percent}}%,{{tokens}} Token,{{cost}}。点击{{action}}详情","usage.overview.expand":"展开","usage.overview.collapse":"收起","usage.overview.model_count":"{{count}} 个模型","usage.overview.model_details_aria":"{{provider}} 模型详情","widgets.page.title":"组件","widgets.cta.open_gallery":"打开小组件库","widgets.cta.download":"下载 Mac 应用","widgets.cta.macos_only":"仅限 macOS","widgets.menubar.section.title":"菜单栏","widgets.gallery.section.title":"桌面小组件","widgets.summary.name":"使用概览","widgets.summary.description":"今天和近 7 天的用量,以及紧凑趋势线。","widgets.heatmap.name":"热力图","widgets.heatmap.description":"像 GitHub 一样,一眼看清活跃和空闲的日子。","widgets.topModels.name":"热门模型","widgets.topModels.description":"你最常用的模型,按 Token 占比排序。","widgets.limits.name":"使用限制","widgets.limits.description":"Claude、Codex、Cursor、Gemini 等的实时速率限制进度。","daily.sort.date.label":"日期","daily.sort.date.title":"按日期排序","daily.sort.total.label":"总计","daily.sort.total.title":"按总计排序","daily.sort.input.label":"输入","daily.sort.input.title":"按输入排序","daily.sort.output.label":"输出","daily.sort.output.title":"按输出排序","daily.sort.cached.label":"缓存","daily.sort.cached.title":"按缓存输入排序","daily.sort.reasoning.label":"推理","daily.sort.reasoning.title":"按推理输出排序","daily.sort.conversations.label":"对话数","daily.sort.conversations.title":"按对话排序","details.pagination.prev":"上一页","details.pagination.next":"下一页","limits.copilot.otelHint.title":"跟踪 Copilot Token 使用情况","limits.copilot.otelHint.body":"限额信息通过你的 GitHub OAuth 令牌读取。如果还想记录逐 Token 用量,请启用 Copilot 的 OpenTelemetry 导出,把下面这段加到你的 shell 配置文件(~/.zshrc 或 ~/.bashrc):","limits.copilot.otelHint.copy":"复制","limits.copilot.otelHint.copied":"已复制","limits.panel.title":"使用限制","limits.panel.mode_separator":" · ","limits.label.cursor_plan":"套餐","limits.label.cursor_auto":"自动","limits.label.cursor_api":"API","limits.label.kiro_month":"月度","limits.label.kiro_bonus":"奖励","limits.label.kimi_weekly":"周","limits.label.kimi_5h":"5h","limits.label.kimi_total":"总量","limits.label.kimi_parallel":"并发:{{count}}","limits.label.copilot_premium":"高级","limits.label.copilot_chat":"对话","limits.status.not_connected":"未连接","limits.status.no_data":"未返回实时限额数据","limits.status.all_hidden":"所有限额提供商都已隐藏。请打开显示设置重新显示。","nav.usage":"用量","nav.limits":"限额","nav.widgets":"小组件","nav.skills":"Skills","nav.collapse":"折叠侧边栏","nav.expand":"展开侧边栏","nav.menu":"打开导航菜单","nav.close_menu":"关闭导航菜单","nav.aside_label":"主导航","nav.nav_label":"导航","nav.version":"Token Tracker 版本 {{version}}","limits.page.subtitle":"AI 工具的速率限制和配额使用情况。","limits.settings.toggle_visible":"切换可见性","limits.settings.display_mode_label":"用量","limits.settings.display_mode_used":"已用","limits.settings.display_mode_remaining":"剩余","limits.page.openSettings":"显示设置","nav.group.general":"常规","nav.group.tools":"工具","nav.group.account":"账户","nav.settings":"设置","settings.page.title":"设置","settings.page.subtitle":"管理你的账户、外观和显示偏好。","settings.section.appearance":"外观","settings.section.account":"账户","settings.section.limits":"限制显示","settings.appearance.theme.label":"主题","settings.appearance.theme.hint":"选择 Token Tracker 在仪表盘中的显示方式。","settings.appearance.theme.light":"浅色","settings.appearance.theme.dark":"深色","settings.appearance.theme.system":"系统","settings.section.menubar":"菜单栏应用","settings.menubar.showStats":"在菜单栏中显示统计信息","settings.menubar.showStatsHint":"在菜单栏图标旁边显示今天的Token 数量和成本。","settings.menubar.animatedIcon":"动画图标","settings.menubar.animatedIconHint":"闪烁 Clawd 角色并在菜单栏中播放同步动画。","settings.menubar.launchAtLogin":"登录时启动","settings.menubar.launchAtLoginHint":"登录 macOS 时自动启动 TokenTrackerBar。","settings.menubar.syncNow":"立即同步","settings.menubar.syncNowHint":"触发本地AI工具日志立即解析并上传。","settings.menubar.syncing":"正在同步...","settings.menubar.updates":"更新","settings.menubar.checkUpdates":"检查更新","menubar.slot.primary":"第一个位置","menubar.slot.secondary":"第二个位置","menubar.native_only":"打开 macOS 版 TokenTrackerBar 后可编辑菜单栏显示。","menubar.metric.today_tokens":"今日 Token","menubar.metric.today_cost":"今日成本","menubar.metric.last_7d_tokens":"近 7 天 Token","menubar.metric.this_month_tokens":"本月 Token","menubar.metric.total_tokens":"总 Token","menubar.metric.total_cost":"总成本","menubar.metric.claude_5h":"Claude 5 小时限额","menubar.metric.claude_7d":"Claude 7 天限额","menubar.metric.codex_5h":"Codex 5 小时限额","menubar.metric.codex_7d":"Codex 7 天限额","nav.ip_check":"Claude IP 检查","skills.page.title":"Skills","skills.tab.my":"我的","skills.tab.browse":"发现","skills.action.refresh":"刷新","skills.action.install":"安装","skills.action.choose_targets":"选择目标","skills.target.menu_label":"安装到","skills.target.none":"未选目标","skills.toast.installed":"已把 {{name}} 安装到 {{targets}}。","skills.action.remove":"移除","skills.action.search":"搜索","skills.action.search_aria":"搜索 skills","skills.target.synced_summary":"已同步到 {{targets}}","skills.target.synced_none":"尚未同步到任何 agent","skills.row.open_details":"查看 {{name}} 详情","skills.detail.close":"关闭详情","skills.detail.sync_section_title":"同步到","skills.detail.remove_button":"从所有 agent 移除","skills.detail.remove_confirm_hint":"这会从每个 agent 取消同步并删除本地副本。","skills.filter.agent_label":"Agent","skills.filter.agent_all":"全部 agent","skills.filter.clear":"清除筛选","skills.filter.result_count":"{{filtered}} / {{total}} 个 skill","skills.filter.result_count_browse":"{{count}} 个结果","skills.empty.no_match":"当前筛选下没有匹配的 skill。","hint.dismiss":"关闭提示","hint.dismissible_aria":"可关闭的提示","skills.card.installed":"已安装","skills.card.targets_prefix":"将安装到:","skills.card.targets_change":"更改","skills.card.installs":"{{count}} 次安装","skills.source.label":"来源","skills.source.all":"全部仓库","skills.mode.repo":"仓库","skills.mode.skillssh":"skills.sh","skills.browse.placeholder_all":"在已启用的仓库里搜索…","skills.browse.placeholder_repo":"在 {{repo}} 中搜索…","skills.browse.placeholder_skillssh":"在 skills.sh 仓库中搜索…","skills.browse.empty_sources":"添加一个 GitHub 仓库以开始浏览技能。","skills.browse.add_repo_hint":"想要更多 skill?添加一个 GitHub 仓库。","skills.browse.manage_sources":"管理来源","skills.browse.hint_skillssh":"至少输入 2 个字符以搜索 skills.sh。","skills.browse.loading_hint":"正在从 GitHub 拉取 skill 信息,首次加载可能需要一分钟,结果会缓存。","skills.error.generic":"Skill 操作失败。","skills.confirm.remove_title":"要移除 {{name}} 吗?","skills.confirm.remove_managed":"这个 skill 将从所有已连接的 AI 工具中移除,几秒内可以撤销。","skills.confirm.remove_local":"将从所有 AI 工具目录中删除该 skill 文件夹。此操作无法撤销。","skills.toast.removed":"已移除 {{name}}。","shared.action.undo":"撤销","shared.action.cancel":"取消","shared.action.apply":"应用","skills.empty.my":"还没有 skill。去「发现」搜索或安装。","skills.empty.my_cta":"去发现","skills.empty.browse":"这个来源下没有找到技能。","skills.empty.search":"没有结果,换个关键词试试。","skills.repo.placeholder":"owner/repository","skills.repo.add":"添加仓库","skills.repo.invalid":"请输入 owner/repository 或 GitHub 仓库 URL。","skills.repo.remove":"移除仓库","settings.appearance.language.label":"语言","settings.appearance.language.hint":"使用“系统”时会默认跟随本机语言。","settings.appearance.language.system":"系统","settings.appearance.language.english":"英语","settings.appearance.language.chinese":"简体中文","settings.appearance.language.traditional_chinese":"繁体中文","settings.appearance.language.japanese":"日语","settings.appearance.language.korean":"韩语","settings.appearance.currency.label":"货币","settings.appearance.currency.hint":"选择用量成本的显示币种。","settings.appearance.currency.opt.usd":"美元 ($)","settings.appearance.currency.opt.eur":"欧元 (€)","settings.appearance.currency.opt.gbp":"英镑 (£)","settings.appearance.currency.opt.cny":"人民币 (¥)","settings.appearance.currency.opt.jpy":"日元 (¥)","settings.appearance.currency.opt.hkd":"港币 (HK$)","settings.appearance.currency.rate_source.default":"内置默认汇率","settings.appearance.currency.rate_source.fetched":"数据源:open.er-api.com","settings.appearance.currency.rate_updated":"更新于 {{when}}","settings.appearance.currency.rate_never":"尚未刷新"},AP={"usage.overview.antigravity_notice_title":"Token 为估算值","usage.overview.antigravity_notice_body":"Antigravity 的本地日志没有真实用量字段,这里的数字是按字符长度(约 4 字符/Token)估算出来的,也没有扣除 Gemini 的 prompt cache 折扣。请把它当作上限估算,不要直接对账账单。","usage.period.last24h":"24h","stats.period.today":"今日","stats.period.last24h":"24h","stats.period.week":"本周","stats.period.month":"本月","stats.period.this_month":"本月","stats.period.all":"全部","stats.period.convs":"对话","dashboard.core_index.collapse_label":"▾","dashboard.core_index.expand_label":"▸","dashboard.core_index.collapse_aria":"折叠模型分解","dashboard.core_index.expand_aria":"展开模型细分","dashboard.rolling.title":"最近的活动","dashboard.rolling.last_7d":"过去 7 天","dashboard.rolling.last_30d":"过去 30 天","dashboard.rolling.avg_active_day":"日平均","dashboard.projects.title":"项目用量","dashboard.projects.tokens_label":"Token","dashboard.projects.stars_label":"星标","dashboard.projects.limit_label":"展示","dashboard.projects.limit_aria":"选择仓库显示数量","dashboard.projects.limit_top_3":"前 3 名","dashboard.projects.limit_top_6":"前 6 名","dashboard.projects.limit_top_10":"前 10 名","dashboard.projects.empty":"没有公开仓库","dashboard.widgets.title":"桌面小组件","dashboard.widgets.hint":"右键点按桌面 → 编辑小组件 → 搜索“TokenTracker”","dashboard.widgets.dismiss_aria":"关闭小组件介绍","dashboard.cost_breakdown.title":"成本明细","dashboard.cost_breakdown.total_label":"预计总成本","dashboard.cost_breakdown.close":"关闭","trend.monitor.label":"使用趋势","trend.zoom.open_aria":"展开全屏","trend.zoom.close_aria":"关闭","trend.zoom.badge":"趋势洞察","trend.zoom.desc":"悬停任意柱子查看 token、成本与对话数。切换粒度可从月份下钻到半小时。","trend.zoom.insight_badge":"洞察","trend.zoom.tooltip.cost":"成本","trend.zoom.tooltip.conversations":"对话","trend.zoom.stats.tokens":"Token 总量","trend.zoom.stats.cost":"总成本","trend.zoom.stats.conversations":"对话数","trend.zoom.stats.peak":"峰值时段","trend.zoom.gran.aria":"粒度","trend.zoom.gran.30min":"30 分钟","trend.zoom.gran.day":"天","trend.zoom.gran.month":"月","trend.zoom.prev_day":"前一天","trend.zoom.next_day":"后一天","trend.zoom.loading":"加载中…","trend.zoom.pick_day":"选择日期","trend.zoom.pick_range":"选择日期范围","trend.zoom.insight.empty":"一段安静的时光,没有一个 token 流过。","trend.zoom.insight.calm":"轻描淡写。模型大多在待命,只在你需要时才醒来搭把手。","trend.zoom.insight.steady":"{{active}} 个活跃时段里节奏平稳,峰值 {{peak}}。是那种不声不响就把事情交付掉的节奏。","trend.zoom.insight.heavy":"火力全开:{{active}} 个时段持续高热,峰值冲到 {{peak}}。这是自己制造势能、而非等待灵感的人的产出。","trend.zoom.insight.massive":"工业级别。{{peak}} 的峰值,吞吐从不降温。到这个量级,你已经不是在用模型,而是在运营一座工厂。","heatmap.title":"热力图","heatmap.empty":"尚无活动数据。","heatmap.legend.less":"少","heatmap.legend.more":"多","heatmap.legend.utc":"UTC","heatmap.tooltip":"{{day}} • {{value}} {{unit}} • {{tz}}","heatmap.unit.tokens":"Token","heatmap.month.jan":"1月","heatmap.month.feb":"2月","heatmap.month.mar":"3月","heatmap.month.apr":"4月","heatmap.month.may":"5月","heatmap.month.jun":"6月","heatmap.month.jul":"7月","heatmap.month.aug":"8月","heatmap.month.sep":"9月","heatmap.month.oct":"10月","heatmap.month.nov":"11月","heatmap.month.dec":"12月","heatmap.day.sun":"日","heatmap.day.mon":"一","heatmap.day.tue":"二","heatmap.day.wed":"三","heatmap.day.thu":"四","heatmap.day.fri":"五","heatmap.day.sat":"六","dashboard.session_expired.copy_label":"运行 npx --yes @ipv9/tokentracker-cli init","dashboard.session_expired.copied":"已复制","dashboard.install.prompt":"安装 Node.js 18+ 然后运行:","dashboard.install.cmd.init":"npx --yes @ipv9/tokentracker-cli init","dashboard.install.cmd.init_link_code":"npx --yes @ipv9/tokentracker-cli init --link-code {{link_code}}","dashboard.install.copy":"复制安装命令","dashboard.install.copy_base":"复制初始化命令","dashboard.install.copied":"已复制到剪贴板","dashboard.install.link_code.loading":"正在生成专属代码...","dashboard.install.link_code.failed":"专属代码不可用","dashboard.install.cmd.sync":"npx --yes @ipv9/tokentracker-cli sync","dashboard.daily.title":"每日细目","dashboard.daily.empty":"还没有数据。先使用 AI CLI,再运行 {{cmd}}。","dashboard.identity.title":"你的个人资料","dashboard.identity.subtitle":"记录你的编码之旅","dashboard.identity.fallback":"匿名用户","dashboard.screenshot.title_line1":"AI 编程助手","dashboard.screenshot.title_line2":"2025 年度回顾","heatmap.3d.hover_tip":"点击进入 3D 全屏旋转分析模式","heatmap.3d.modal.title":"Token 三维透视","heatmap.3d.modal.desc":"按住左键拖拽可任意旋转,悬浮感知每日活跃数据与多维统计。","heatmap.3d.modal.stats.total_tokens":"年度 Token 总量","heatmap.3d.modal.stats.precision_total_tokens":"精准年消耗量","heatmap.3d.modal.stats.estimated_cost":"年度估算费用","heatmap.3d.modal.stats.active_rate_days":"活跃占比 / 天数","heatmap.3d.modal.stats.max_streak":"最长连续活跃","heatmap.3d.modal.stats.days_suffix":"天","heatmap.3d.modal.stats.peak_day":"单日峰值暴击","heatmap.3d.modal.stats.precision_peak_value":"精确单日峰值","heatmap.3d.modal.stats.no_data":"无数据","heatmap.3d.modal.legend.title":"活跃度层级","heatmap.3d.modal.palette.emerald":"翡翠之城","heatmap.3d.modal.palette.ocean":"深海浩瀚","heatmap.3d.modal.palette.neon":"赛博霓虹","heatmap.3d.modal.palette.amber":"烈焰余晖","heatmap.3d.modal.control.play":"启动慢速自转","heatmap.3d.modal.control.pause":"暂停自动旋转","heatmap.3d.modal.control.reset":"重置 3D 视角","heatmap.3d.modal.footer.tip":"双指缩放 / 滚轮缩放 / 鼠标拖拽旋转 3D 图表","heatmap.3d.modal.ai.title.default":"持之以恒的行者","heatmap.3d.modal.ai.eval.default":"在技术的长河中持之以恒。也许日常的编码并不总是波澜壮阔,但每一个微小的活跃点都在记录着您的思考与探索。星火成留,终将汇聚成属于您的数字海洋。","heatmap.3d.modal.ai.title.peak":"极限活跃级贡献者","heatmap.3d.modal.ai.eval.peak":"这一年中,您的 Token 产出表现出极高的工程密度。如此规模的开发量相当于深度参与了中大型系统底座的重构,每一次击键都在将复杂的逻辑收敛为确定性的代码。这是极度专注与纯粹工程热爱的最好印证。","heatmap.3d.modal.ai.title.heavy":"高频产出级开发者","heatmap.3d.modal.ai.eval.heavy":"卓越的持续输出。您的 Token 累积量已达数百万字,相当于数十部中篇技术巨著的体量。高饱和度的编码节奏表明您正在以极高的执行力构建属于您的数字资产,展现了卓越的创造力。","heatmap.3d.modal.ai.title.core":"核心生产力专家","heatmap.3d.modal.ai.eval.core":"极具韧性的长期投入。在过去的一年中,您在较长周期内稳定保持着高强度的开发节奏。您用扎实的代码行数与 Token 产出,默默筑起了项目的核心架构,是当之无愧的工程支柱。","heatmap.3d.modal.ai.title.steady":"稳健成长型工程师","heatmap.3d.modal.ai.eval.steady":"踏实而坚定的技术积累。每一次 Token 的递增,都是您在坚实地砌下通往未来的代码基石。这种细水长流的稳健节奏,往往是一个优秀开发者通往工程大师的必经之路。","heatmap.3d.voxel.joke.1":"🔥 极度疯狂!产出 {{value}} tokens!你是在疯狂训练大模型,还是手撸了一个编译器?","heatmap.3d.voxel.joke.2":"🚀 史诗级输出!共 {{value}} tokens。今日产出可绕地球一圈,AI 都在为你惊叹!","heatmap.3d.voxel.joke.3":"⚡ 爆击日!{{value}} tokens。代码如泉涌,键盘已经开始冒烟了!","heatmap.3d.voxel.level3":"⚡ 生产力大爆发({{value}} tokens)!高效专注的黄金时刻,继续保持这个巅峰状态!","heatmap.3d.voxel.level2":"🌱 渐入佳境({{value}} tokens)!稳步产出,每一次敲击键盘都是在为大厦添砖加瓦。","heatmap.3d.voxel.level1":"🍃 聚沙成塔({{value}} tokens)。微小的提交也是对未来的投资,保持复利的力量!","heatmap.3d.voxel.level0":"💤 养精蓄锐。在不写代码的日子里,灵感也在悄悄生长。","ipcheck.page.title":"Claude IP 检测","ipcheck.page.subtitle":"查看当前访问 Claude 的出口 IP、纯净度、地理与风险信号,识别可能影响登录或触发风控的因素。","ipcheck.mask.toggle":"隐藏 IP","ipcheck.ipv6.warn":"当前为 IPv6 环境,不建议用 IPv6 访问 Claude Code,部分检测结果可能不完整。","ipcheck.ip.cn":"中国出口 IPv4","ipcheck.ip.cloudflare":"Cloudflare 出口","ipcheck.ip.claude":"Claude 出口","ipcheck.ip.failed":"获取失败","ipcheck.ip.loading":"加载中...","ipcheck.trust.title":"信任评分","ipcheck.trust.subtitle":"Claude 风控视角下的 IP 纯净度","ipcheck.trust.no_data":"无数据","ipcheck.trust.no_ip":"未获取到 Claude 出口 IP,无法评分","ipcheck.trust.no_score":"该 IP 暂无评分数据","ipcheck.trust.gauge.low":"0 高危","ipcheck.trust.gauge.high":"100 可信","ipcheck.trust.label.pristine":"极度纯净","ipcheck.trust.label.clean":"纯净","ipcheck.trust.label.good":"良好","ipcheck.trust.label.neutral":"中性","ipcheck.trust.label.suspicious":"可疑","ipcheck.trust.label.unreachable":"不可访问","ipcheck.trust.text.excellent":"该 IP 信誉极好","ipcheck.trust.text.great":"该 IP 信誉优异","ipcheck.trust.text.minor":"该 IP 存在轻微风险","ipcheck.trust.text.moderate":"该 IP 存在一定风险","ipcheck.trust.text.severe":"该 IP 风险极高","ipcheck.trust.text.restricted":"处于不可访问区域,Claude 会严格风控","ipcheck.trust.region_warn.title":"Claude 出口 IP 位于 {{region}}","ipcheck.trust.region_warn.body":"不建议登录 Claude,容易触发封号风控。","ipcheck.trust.region_support":"Claude 支持地区","ipcheck.trust.region.accessible":"可访问","ipcheck.common.unknown":"未知","ipcheck.props.title":"IP 属性","ipcheck.props.region":"地区","ipcheck.props.city":"城市","ipcheck.props.type":"类型","ipcheck.props.asn":"ASN","ipcheck.props.org":"运营商","ipcheck.props.residential":"家庭住宅","ipcheck.props.datacenter":"机房","ipcheck.security.title":"安全检测","ipcheck.security.vpn":"VPN","ipcheck.security.proxy":"代理 (Proxy)","ipcheck.security.tor":"Tor","ipcheck.security.crawler":"机器人 (Crawler)","ipcheck.security.abuser":"滥用记录","ipcheck.security.proxy_flag":"代理","ipcheck.security.crawler_yes":"是","ipcheck.security.crawler_no":"否","ipcheck.security.abuser_yes":"有记录","ipcheck.security.abuser_no":"无记录","ipcheck.security.clean":"未检测到","ipcheck.avail.title":"Claude 可用性","ipcheck.avail.tooltip":"Claude 服务器在美国,从亚洲访问延迟超过 100ms 属于正常情况。","ipcheck.avail.refresh":"刷新","ipcheck.avail.svc_row":"服务状态","ipcheck.avail.latency.normal":"正常","ipcheck.avail.latency.good":"良好","ipcheck.avail.latency.slow":"较慢","ipcheck.avail.latency.unreachable":"不可访问","ipcheck.avail.svc.none":"全部正常","ipcheck.avail.svc.minor":"轻微故障","ipcheck.avail.svc.major":"重大故障","ipcheck.avail.svc.critical":"严重故障","ipcheck.avail.svc.maintenance":"维护中","ipcheck.avail.svc.other":"服务异常","ipcheck.dns.title":"DNS 泄露检测","ipcheck.dns.status":"状态","ipcheck.dns.outlet":"DNS 出口","ipcheck.dns.outlet_ip":"DNS 出口 IP","ipcheck.dns.isp":"服务商","ipcheck.dns.leaked":"可能泄露","ipcheck.dns.no_leak":"未检测到泄露","ipcheck.dns.encrypted":"DNS 加密或未暴露","ipcheck.dns.cn_tag":"中国 DNS","ipcheck.udp.title":"WebRTC UDP 泄露","ipcheck.udp.status":"状态","ipcheck.udp.outlet":"UDP 出口","ipcheck.udp.outlet_ip":"UDP 出口 IP","ipcheck.udp.origin":"归属地","ipcheck.udp.disabled":"WebRTC 已禁用","ipcheck.udp.no_leak":"未检测到泄露","ipcheck.udp.leaked":"可能泄露","ipcheck.udp.anomaly":"异常","ipcheck.device.title":"设备信息","ipcheck.device.tz":"时区","ipcheck.device.lang":"语言","ipcheck.device.os":"操作系统 / 浏览器","ipcheck.device.touch":"触屏","ipcheck.device.net":"网络类型","ipcheck.device.dnt":"Do Not Track","ipcheck.device.webgl_render":"WebGL 渲染器","ipcheck.device.canvas_fp":"Canvas 指纹","ipcheck.device.webgl_fp":"WebGL 指纹","ipcheck.device.match":"一致","ipcheck.device.mismatch":"不一致","ipcheck.device.local":"本地","ipcheck.device.estimate_suffix":"(估算)","ipcheck.device.diff_equal":"偏移略有差异","ipcheck.device.diff_ahead":"Claude 快 {{h}} 小时","ipcheck.device.diff_behind":"Claude 慢 {{h}} 小时","ipcheck.device.lang_expected":"Claude 出口常用","ipcheck.device.touch_yes":"是","ipcheck.device.touch_no":"否","ipcheck.device.dnt_on":"已开启","ipcheck.device.dnt_off":"已关闭","ipcheck.device.dnt_unset":"未设置","ipcheck.device.net_unsupported":"不支持检测","ipcheck.device.unsupported":"不支持","ipcheck.history.title":"Claude 出口 IP 历史","ipcheck.history.subtitle":"仅本地存储于浏览器,最多保留 6 条","ipcheck.history.clear":"清除","ipcheck.history.empty":"暂无历史记录","ipcheck.history.current":"当前","ipcheck.region.CN":"中国大陆","ipcheck.region.HK":"香港","ipcheck.region.MO":"澳门","ipcheck.region.RU":"俄罗斯","ipcheck.region.KP":"朝鲜","ipcheck.region.IR":"伊朗","ipcheck.region.SY":"叙利亚","ipcheck.region.CU":"古巴","ipcheck.region.BY":"白俄罗斯","ipcheck.region.VE":"委内瑞拉","local_only.title":"请在客户端内使用","local_only.body":"这个页面读取的是你本机上的数据,所以只能在 Mac app 或命令行 dashboard 里查看。","local_only.open_app":"在 Mac app 内打开","local_only.download":"下载 Mac app","dashboard.auth_gate.title":"登录 Token Tracker","dashboard.auth_gate.subtitle":"登录以在云端同步并查看您的 API 使用量、成本和 Token 消耗趋势。","dashboard.auth_gate.button":"立即登录","shared.app_name":"Token Tracker","dashboard.auth_gate.hero_title":"让 AI 代理的每一笔 Token 消耗","dashboard.auth_gate.hero_subtitle":"清晰透明、多端无缝掌控","dashboard.auth_gate.desc":"为您在纯云端安全同步来自 Claude Code、Cursor、Gemini CLI 等全平台主流代理的 Token 额度、并发费用及耗时统计,提供前所未有的全景可视化数据分析。","dashboard.auth_gate.feature.sync.title":"实时云端同步","dashboard.auth_gate.feature.sync.desc":"全自动采集各端代理的开销,并在您的私人云盘中秒级安全归档。","dashboard.auth_gate.feature.anal.title":"多维看板分析","dashboard.auth_gate.feature.anal.desc":"按模型分类、时间跨度统计 Token 分布,随时追溯开销尖峰及用量结构。","dashboard.auth_gate.feature.guard.title":"本地直连免登","dashboard.auth_gate.feature.guard.desc":"在 Localhost 模式下自动跳过所有登录验证,完美保护本地离线调试体验。"},MP={"shared.placeholder.short":"--","shared.unit.percent":"%","shared.unit.thousand_abbrev":"K","shared.unit.million_abbrev":"M","shared.unit.billion_abbrev":"B","shared.data_source":"資料來源:{{source}}","shared.error.prefix":"錯誤:{{error}}","shared.status.unsynced":"—","shared.time.now":"剛剛","error.boundary.title":"出了點問題","error.boundary.subtitle":"這個檢視渲染失敗了","error.boundary.hint":"開啟控制台,然後重新載入頁面","error.boundary.no_details":"沒有錯誤詳細資訊","error.boundary.action.reload":"重新載入","identity_card.rank_label":"排名","identity_card.streak_label":"活躍天數","identity_card.rank_placeholder":"—","identity_card.streak_value":"{{days}} 天","usage.summary.total":"Token 總數","usage.summary.updated_at":"更新於 {{timestamp}}","usage.period.day":"日","usage.period.week":"周","usage.period.month":"月","usage.period.total":"總計","usage.period.custom":"自定義","usage.metric.total":"總計","usage.metric.input":"輸入","usage.metric.output":"輸出","usage.metric.cached_input":"快取輸入","usage.metric.reasoning_output":"推理輸出","usage.button.refresh":"重新整理","usage.overview.tablist_aria":"時間範圍","usage.auto_refresh.aria":"自動重新整理間隔","usage.auto_refresh.off":"關閉","usage.auto_refresh.30s":"30 秒","usage.auto_refresh.60s":"60 秒","usage.auto_refresh.120s":"120 秒","usage.overview.cost_breakdown_aria":"檢視成本明細","usage.overview.distribution_aria":"來源佔比:{{items}}","usage.overview.distribution_item":"{{label}} {{percent}}%","usage.overview.provider_card_aria":"{{provider}}:{{percent}}%,{{tokens}} Token,{{cost}}。點選{{action}}詳情","usage.overview.expand":"展開","usage.overview.collapse":"收起","usage.overview.model_count":"{{count}} 個模型","usage.overview.model_details_aria":"{{provider}} 模型詳情","widgets.page.title":"元件","widgets.cta.open_gallery":"開啟小元件庫","widgets.cta.download":"下載 Mac 應用","widgets.cta.macos_only":"僅限 macOS","widgets.menubar.section.title":"選單欄","widgets.gallery.section.title":"桌面小元件","widgets.summary.name":"使用概覽","widgets.summary.description":"今天和近 7 天的用量,以及緊湊趨勢線。","widgets.heatmap.name":"熱力圖","widgets.heatmap.description":"像 GitHub 一樣,一眼看清活躍和空閒的日子。","widgets.topModels.name":"熱門模型","widgets.topModels.description":"你最常用的模型,按 Token 佔比排序。","widgets.limits.name":"使用限制","widgets.limits.description":"Claude、Codex、Cursor、Gemini 等的即時速率限制進度。","daily.sort.date.label":"日期","daily.sort.date.title":"按日期排序","daily.sort.total.label":"總計","daily.sort.total.title":"按總計排序","daily.sort.input.label":"輸入","daily.sort.input.title":"按輸入排序","daily.sort.output.label":"輸出","daily.sort.output.title":"按輸出排序","daily.sort.cached.label":"快取","daily.sort.cached.title":"按快取輸入排序","daily.sort.reasoning.label":"推理","daily.sort.reasoning.title":"按推理輸出排序","daily.sort.conversations.label":"對話數","daily.sort.conversations.title":"按對話排序","details.pagination.prev":"上一頁","details.pagination.next":"下一頁","limits.copilot.otelHint.title":"跟蹤 Copilot Token 使用情況","limits.copilot.otelHint.body":"限額資訊通過你的 GitHub OAuth 令牌讀取。如果還想記錄逐 Token 用量,請啟用 Copilot 的 OpenTelemetry 匯出,把下面這段加到你的 shell 配置檔案(~/.zshrc 或 ~/.bashrc):","limits.copilot.otelHint.copy":"複製","limits.copilot.otelHint.copied":"已複製","limits.panel.title":"使用限制","limits.panel.mode_separator":" · ","limits.label.cursor_plan":"套餐","limits.label.cursor_auto":"自動","limits.label.cursor_api":"API","limits.label.kiro_month":"月度","limits.label.kiro_bonus":"獎勵","limits.label.kimi_weekly":"周","limits.label.kimi_5h":"5h","limits.label.kimi_total":"總量","limits.label.kimi_parallel":"併發:{{count}}","limits.label.copilot_premium":"高階","limits.label.copilot_chat":"對話","limits.status.not_connected":"未連線","limits.status.no_data":"未返回即時限額資料","limits.status.all_hidden":"所有限額提供商都已隱藏。請開啟顯示設定重新顯示。","nav.usage":"用量","nav.limits":"限額","nav.widgets":"小元件","nav.skills":"Skills","nav.collapse":"摺疊側邊欄","nav.expand":"展開側邊欄","nav.menu":"開啟導航選單","nav.close_menu":"關閉導航選單","nav.aside_label":"主導航","nav.nav_label":"導航","nav.version":"Token Tracker 版本 {{version}}","limits.page.subtitle":"AI 工具的速率限制和配額使用情況。","limits.settings.toggle_visible":"切換可見性","limits.settings.display_mode_label":"用量","limits.settings.display_mode_used":"已用","limits.settings.display_mode_remaining":"剩餘","limits.page.openSettings":"顯示設定","nav.group.general":"常規","nav.group.tools":"工具","nav.group.account":"賬戶","nav.settings":"設定","settings.page.title":"設定","settings.page.subtitle":"管理你的賬戶、外觀和顯示偏好。","settings.section.appearance":"外觀","settings.section.account":"賬戶","settings.section.limits":"限制顯示","settings.appearance.theme.label":"主題","settings.appearance.theme.hint":"選擇 Token Tracker 在儀表盤中的顯示方式。","settings.appearance.theme.light":"淺色","settings.appearance.theme.dark":"深色","settings.appearance.theme.system":"系統","settings.section.menubar":"選單欄應用","settings.menubar.showStats":"在選單欄中顯示統計資訊","settings.menubar.showStatsHint":"在選單欄圖示旁邊顯示今天的Token 數量和成本。","settings.menubar.animatedIcon":"動畫圖示","settings.menubar.animatedIconHint":"閃爍 Clawd 角色並在選單欄中播放同步動畫。","settings.menubar.launchAtLogin":"登入時啟動","settings.menubar.launchAtLoginHint":"登入 macOS 時自動啟動 TokenTrackerBar。","settings.menubar.syncNow":"立即同步","settings.menubar.syncNowHint":"觸發本地AI工具日誌立即解析並上傳。","settings.menubar.syncing":"正在同步...","settings.menubar.updates":"更新","settings.menubar.checkUpdates":"檢查更新","menubar.slot.primary":"第一個位置","menubar.slot.secondary":"第二個位置","menubar.native_only":"開啟 macOS 版 TokenTrackerBar 後可編輯選單欄顯示。","menubar.metric.today_tokens":"今日 Token","menubar.metric.today_cost":"今日成本","menubar.metric.last_7d_tokens":"近 7 天 Token","menubar.metric.this_month_tokens":"本月 Token","menubar.metric.total_tokens":"總 Token","menubar.metric.total_cost":"總成本","menubar.metric.claude_5h":"Claude 5 小時限額","menubar.metric.claude_7d":"Claude 7 天限額","menubar.metric.codex_5h":"Codex 5 小時限額","menubar.metric.codex_7d":"Codex 7 天限額","nav.ip_check":"Claude IP 檢查","skills.page.title":"Skills","skills.tab.my":"我的","skills.tab.browse":"發現","skills.action.refresh":"重新整理","skills.action.install":"安裝","skills.action.choose_targets":"選擇目標","skills.target.menu_label":"安裝到","skills.target.none":"未選目標","skills.toast.installed":"已把 {{name}} 安裝到 {{targets}}。","skills.action.remove":"移除","skills.action.search":"搜尋","skills.action.search_aria":"搜尋 skills","skills.target.synced_summary":"已同步到 {{targets}}","skills.target.synced_none":"尚未同步到任何 agent","skills.row.open_details":"檢視 {{name}} 詳情","skills.detail.close":"關閉詳情","skills.detail.sync_section_title":"同步到","skills.detail.remove_button":"從所有 agent 移除","skills.detail.remove_confirm_hint":"這會從每個 agent 取消同步並刪除本地副本。","skills.filter.agent_label":"Agent","skills.filter.agent_all":"全部 agent","skills.filter.clear":"清除篩選","skills.filter.result_count":"{{filtered}} / {{total}} 個 skill","skills.filter.result_count_browse":"{{count}} 個結果","skills.empty.no_match":"當前篩選下沒有匹配的 skill。","hint.dismiss":"關閉提示","hint.dismissible_aria":"可關閉的提示","skills.card.installed":"已安裝","skills.card.targets_prefix":"將安裝到:","skills.card.targets_change":"更改","skills.card.installs":"{{count}} 次安裝","skills.source.label":"來源","skills.source.all":"全部倉庫","skills.mode.repo":"倉庫","skills.mode.skillssh":"skills.sh","skills.browse.placeholder_all":"在已啟用的倉庫裡搜尋…","skills.browse.placeholder_repo":"在 {{repo}} 中搜索…","skills.browse.placeholder_skillssh":"在 skills.sh 倉庫中搜索…","skills.browse.empty_sources":"新增一個 GitHub 倉庫以開始瀏覽技能。","skills.browse.add_repo_hint":"想要更多 skill?新增一個 GitHub 倉庫。","skills.browse.manage_sources":"管理來源","skills.browse.hint_skillssh":"至少輸入 2 個字元以搜尋 skills.sh。","skills.browse.loading_hint":"正在從 GitHub 拉取 skill 資訊,首次載入可能需要一分鐘,結果會快取。","skills.error.generic":"Skill 操作失敗。","skills.confirm.remove_title":"要移除 {{name}} 嗎?","skills.confirm.remove_managed":"這個 skill 將從所有已連線的 AI 工具中移除,幾秒內可以撤銷。","skills.confirm.remove_local":"將從所有 AI 工具目錄中刪除該 skill 資料夾。此操作無法撤銷。","skills.toast.removed":"已移除 {{name}}。","shared.action.undo":"撤銷","shared.action.cancel":"取消","shared.action.apply":"套用","skills.empty.my":"還沒有 skill。去「發現」搜尋或安裝。","skills.empty.my_cta":"去發現","skills.empty.browse":"這個來源下沒有找到技能。","skills.empty.search":"沒有結果,換個關鍵詞試試。","skills.repo.placeholder":"owner/repository","skills.repo.add":"新增倉庫","skills.repo.invalid":"請輸入 owner/repository 或 GitHub 倉庫 URL。","skills.repo.remove":"移除倉庫","settings.appearance.language.label":"語言","settings.appearance.language.hint":"使用“系統”時會預設跟隨本機語言。","settings.appearance.language.system":"系統","settings.appearance.language.english":"英語","settings.appearance.language.chinese":"簡體中文","settings.appearance.language.traditional_chinese":"繁體中文","settings.appearance.language.japanese":"日語","settings.appearance.language.korean":"韓語","settings.appearance.currency.label":"貨幣","settings.appearance.currency.hint":"選擇用量成本的顯示幣種。","settings.appearance.currency.opt.usd":"美元 ($)","settings.appearance.currency.opt.eur":"歐元 (€)","settings.appearance.currency.opt.gbp":"英鎊 (£)","settings.appearance.currency.opt.cny":"人民幣 (¥)","settings.appearance.currency.opt.jpy":"日元 (¥)","settings.appearance.currency.opt.hkd":"港幣 (HK$)","settings.appearance.currency.rate_source.default":"內建預設匯率","settings.appearance.currency.rate_source.fetched":"資料來源:open.er-api.com","settings.appearance.currency.rate_updated":"更新於 {{when}}","settings.appearance.currency.rate_never":"尚未重新整理"},LP={"usage.overview.antigravity_notice_title":"Token 為估算值","usage.overview.antigravity_notice_body":"Antigravity 的本地日誌沒有真實用量欄位,這裡的數字是按字元長度(約 4 字元/Token)估算出來的,也沒有扣除 Gemini 的 prompt cache 折扣。請把它當作上限估算,不要直接對賬賬單。","usage.period.last24h":"24h","stats.period.today":"今日","stats.period.last24h":"24h","stats.period.week":"本週","stats.period.month":"本月","stats.period.this_month":"本月","stats.period.all":"全部","stats.period.convs":"對話","dashboard.core_index.collapse_label":"▾","dashboard.core_index.expand_label":"▸","dashboard.core_index.collapse_aria":"摺疊模型分解","dashboard.core_index.expand_aria":"展開模型細分","dashboard.rolling.title":"最近的活動","dashboard.rolling.last_7d":"過去 7 天","dashboard.rolling.last_30d":"過去 30 天","dashboard.rolling.avg_active_day":"日平均","dashboard.projects.title":"專案用量","dashboard.projects.tokens_label":"Token","dashboard.projects.stars_label":"星標","dashboard.projects.limit_label":"展示","dashboard.projects.limit_aria":"選擇倉庫顯示數量","dashboard.projects.limit_top_3":"前 3 名","dashboard.projects.limit_top_6":"前 6 名","dashboard.projects.limit_top_10":"前 10 名","dashboard.projects.empty":"沒有公開倉庫","dashboard.widgets.title":"桌面小元件","dashboard.widgets.hint":"右鍵點按桌面 → 編輯小元件 → 搜尋“TokenTracker”","dashboard.widgets.dismiss_aria":"關閉小元件介紹","dashboard.cost_breakdown.title":"成本明細","dashboard.cost_breakdown.total_label":"預計總成本","dashboard.cost_breakdown.close":"關閉","trend.monitor.label":"使用趨勢","trend.zoom.open_aria":"展開全螢幕","trend.zoom.close_aria":"關閉","trend.zoom.badge":"趨勢洞察","trend.zoom.desc":"懸停任一長條查看 token、成本與對話數。切換粒度可從月份下鑽到半小時。","trend.zoom.insight_badge":"洞察","trend.zoom.tooltip.cost":"成本","trend.zoom.tooltip.conversations":"對話","trend.zoom.stats.tokens":"Token 總量","trend.zoom.stats.cost":"總成本","trend.zoom.stats.conversations":"對話數","trend.zoom.stats.peak":"峰值時段","trend.zoom.gran.aria":"粒度","trend.zoom.gran.30min":"30 分鐘","trend.zoom.gran.day":"天","trend.zoom.gran.month":"月","trend.zoom.prev_day":"前一天","trend.zoom.next_day":"後一天","trend.zoom.loading":"載入中…","trend.zoom.pick_day":"選擇日期","trend.zoom.pick_range":"選擇日期範圍","trend.zoom.insight.empty":"一段安靜的時光,沒有一個 token 流過。","trend.zoom.insight.calm":"輕描淡寫。模型大多在待命,只在你需要時才醒來搭把手。","trend.zoom.insight.steady":"{{active}} 個活躍時段裡節奏平穩,峰值 {{peak}}。是那種不聲不響就把事情交付掉的節奏。","trend.zoom.insight.heavy":"火力全開:{{active}} 個時段持續高熱,峰值衝到 {{peak}}。這是自己製造勢能、而非等待靈感的人的產出。","trend.zoom.insight.massive":"工業級別。{{peak}} 的峰值,吞吐從不降溫。到這個量級,你已經不是在用模型,而是在營運一座工廠。","heatmap.title":"熱力圖","heatmap.empty":"尚無活動資料。","heatmap.legend.less":"少","heatmap.legend.more":"多","heatmap.legend.utc":"UTC","heatmap.tooltip":"{{day}} • {{value}} {{unit}} • {{tz}}","heatmap.unit.tokens":"Token","heatmap.month.jan":"1月","heatmap.month.feb":"2月","heatmap.month.mar":"3月","heatmap.month.apr":"4月","heatmap.month.may":"5月","heatmap.month.jun":"6月","heatmap.month.jul":"7月","heatmap.month.aug":"8月","heatmap.month.sep":"9月","heatmap.month.oct":"10月","heatmap.month.nov":"11月","heatmap.month.dec":"12月","heatmap.day.sun":"日","heatmap.day.mon":"一","heatmap.day.tue":"二","heatmap.day.wed":"三","heatmap.day.thu":"四","heatmap.day.fri":"五","heatmap.day.sat":"六","dashboard.session_expired.copy_label":"執行 npx --yes @ipv9/tokentracker-cli init","dashboard.session_expired.copied":"已複製","dashboard.install.prompt":"安裝 Node.js 18+ 然後執行:","dashboard.install.cmd.init":"npx --yes @ipv9/tokentracker-cli init","dashboard.install.cmd.init_link_code":"npx --yes @ipv9/tokentracker-cli init --link-code {{link_code}}","dashboard.install.copy":"複製安裝命令","dashboard.install.copy_base":"複製初始化命令","dashboard.install.copied":"已複製到剪貼簿","dashboard.install.link_code.loading":"正在生成專屬程式碼...","dashboard.install.link_code.failed":"專屬程式碼不可用","dashboard.install.cmd.sync":"npx --yes @ipv9/tokentracker-cli sync","dashboard.daily.title":"每日細目","dashboard.daily.empty":"還沒有資料。先使用 AI CLI,再執行 {{cmd}}。","dashboard.identity.title":"你的個人資料","dashboard.identity.subtitle":"記錄你的編碼之旅","dashboard.identity.fallback":"匿名使用者","dashboard.screenshot.title_line1":"AI 程式設計助手","dashboard.screenshot.title_line2":"2025 年度回顧","heatmap.3d.hover_tip":"點選進入 3D 全屏旋轉分析模式","heatmap.3d.modal.title":"Token 三維透視","heatmap.3d.modal.desc":"按住左鍵拖拽可任意旋轉,懸浮感知每日活躍資料與多維統計。","heatmap.3d.modal.stats.total_tokens":"年度 Token 總量","heatmap.3d.modal.stats.precision_total_tokens":"精準年消耗量","heatmap.3d.modal.stats.estimated_cost":"年度估算費用","heatmap.3d.modal.stats.active_rate_days":"活躍佔比 / 天數","heatmap.3d.modal.stats.max_streak":"最長連續活躍","heatmap.3d.modal.stats.days_suffix":"天","heatmap.3d.modal.stats.peak_day":"單日峰值暴擊","heatmap.3d.modal.stats.precision_peak_value":"精確單日峰值","heatmap.3d.modal.stats.no_data":"無資料","heatmap.3d.modal.legend.title":"活躍度層級","heatmap.3d.modal.palette.emerald":"翡翠之城","heatmap.3d.modal.palette.ocean":"深海浩瀚","heatmap.3d.modal.palette.neon":"賽博霓虹","heatmap.3d.modal.palette.amber":"烈焰餘暉","heatmap.3d.modal.control.play":"啟動慢速自轉","heatmap.3d.modal.control.pause":"暫停自動旋轉","heatmap.3d.modal.control.reset":"重置 3D 視角","heatmap.3d.modal.footer.tip":"雙指縮放 / 滾輪縮放 / 滑鼠拖拽旋轉 3D 圖表","heatmap.3d.modal.ai.title.default":"持之以恆的行者","heatmap.3d.modal.ai.eval.default":"在技術的長河中持之以恆。也許日常的編碼並不總是波瀾壯闊,但每一個微小的活躍點都在記錄著您的思考與探索。星火成留,終將匯聚成屬於您的數字海洋。","heatmap.3d.modal.ai.title.peak":"極限活躍級貢獻者","heatmap.3d.modal.ai.eval.peak":"這一年中,您的 Token 產出表現出極高的工程密度。如此規模的開發量相當於深度參與了中大型系統底座的重構,每一次擊鍵都在將複雜的邏輯收斂為確定性的程式碼。這是極度專注與純粹工程熱愛的最好印證。","heatmap.3d.modal.ai.title.heavy":"高頻產出級開發者","heatmap.3d.modal.ai.eval.heavy":"卓越的持續輸出。您的 Token 累積量已達數百萬字,相當於數十部中篇技術鉅著的體量。高飽和度的編碼節奏表明您正在以極高的執行力構建屬於您的數字資產,展現了卓越的創造力。","heatmap.3d.modal.ai.title.core":"核心生產力專家","heatmap.3d.modal.ai.eval.core":"極具韌性的長期投入。在過去的一年中,您在較長週期內穩定保持著高強度的開發節奏。您用紮實的程式碼行數與 Token 產出,默默築起了專案的核心架構,是當之無愧的工程支柱。","heatmap.3d.modal.ai.title.steady":"穩健成長型工程師","heatmap.3d.modal.ai.eval.steady":"踏實而堅定的技術積累。每一次 Token 的遞增,都是您在堅實地砌下通往未來的程式碼基石。這種細水長流的穩健節奏,往往是一個優秀開發者通往工程大師的必經之路。","heatmap.3d.voxel.joke.1":"🔥 極度瘋狂!產出 {{value}} tokens!你是在瘋狂訓練大模型,還是手擼了一個編譯器?","heatmap.3d.voxel.joke.2":"🚀 史詩級輸出!共 {{value}} tokens。今日產出可繞地球一圈,AI 都在為你驚歎!","heatmap.3d.voxel.joke.3":"⚡ 爆擊日!{{value}} tokens。程式碼如泉湧,鍵盤已經開始冒煙了!","heatmap.3d.voxel.level3":"⚡ 生產力大爆發({{value}} tokens)!高效專注的黃金時刻,繼續保持這個巔峰狀態!","heatmap.3d.voxel.level2":"🌱 漸入佳境({{value}} tokens)!穩步產出,每一次敲擊鍵盤都是在為大廈添磚加瓦。","heatmap.3d.voxel.level1":"🍃 聚沙成塔({{value}} tokens)。微小的提交也是對未來的投資,保持複利的力量!","heatmap.3d.voxel.level0":"💤 養精蓄銳。在不寫程式碼的日子裡,靈感也在悄悄生長。","ipcheck.page.title":"Claude IP 檢測","ipcheck.page.subtitle":"檢視當前訪問 Claude 的出口 IP、純淨度、地理與風險訊號,識別可能影響登入或觸發風控的因素。","ipcheck.mask.toggle":"隱藏 IP","ipcheck.ipv6.warn":"當前為 IPv6 環境,不建議用 IPv6 訪問 Claude Code,部分檢測結果可能不完整。","ipcheck.ip.cn":"中國出口 IPv4","ipcheck.ip.cloudflare":"Cloudflare 出口","ipcheck.ip.claude":"Claude 出口","ipcheck.ip.failed":"獲取失敗","ipcheck.ip.loading":"載入中...","ipcheck.trust.title":"信任評分","ipcheck.trust.subtitle":"Claude 風控視角下的 IP 純淨度","ipcheck.trust.no_data":"無資料","ipcheck.trust.no_ip":"未獲取到 Claude 出口 IP,無法評分","ipcheck.trust.no_score":"該 IP 暫無評分資料","ipcheck.trust.gauge.low":"0 高危","ipcheck.trust.gauge.high":"100 可信","ipcheck.trust.label.pristine":"極度純淨","ipcheck.trust.label.clean":"純淨","ipcheck.trust.label.good":"良好","ipcheck.trust.label.neutral":"中性","ipcheck.trust.label.suspicious":"可疑","ipcheck.trust.label.unreachable":"不可訪問","ipcheck.trust.text.excellent":"該 IP 信譽極好","ipcheck.trust.text.great":"該 IP 信譽優異","ipcheck.trust.text.minor":"該 IP 存在輕微風險","ipcheck.trust.text.moderate":"該 IP 存在一定風險","ipcheck.trust.text.severe":"該 IP 風險極高","ipcheck.trust.text.restricted":"處於不可訪問區域,Claude 會嚴格風控","ipcheck.trust.region_warn.title":"Claude 出口 IP 位於 {{region}}","ipcheck.trust.region_warn.body":"不建議登入 Claude,容易觸發封號風控。","ipcheck.trust.region_support":"Claude 支援地區","ipcheck.trust.region.accessible":"可訪問","ipcheck.common.unknown":"未知","ipcheck.props.title":"IP 屬性","ipcheck.props.region":"地區","ipcheck.props.city":"城市","ipcheck.props.type":"型別","ipcheck.props.asn":"ASN","ipcheck.props.org":"運營商","ipcheck.props.residential":"家庭住宅","ipcheck.props.datacenter":"機房","ipcheck.security.title":"安全檢測","ipcheck.security.vpn":"VPN","ipcheck.security.proxy":"代理 (Proxy)","ipcheck.security.tor":"Tor","ipcheck.security.crawler":"機器人 (Crawler)","ipcheck.security.abuser":"濫用記錄","ipcheck.security.proxy_flag":"代理","ipcheck.security.crawler_yes":"是","ipcheck.security.crawler_no":"否","ipcheck.security.abuser_yes":"有記錄","ipcheck.security.abuser_no":"無記錄","ipcheck.security.clean":"未檢測到","ipcheck.avail.title":"Claude 可用性","ipcheck.avail.tooltip":"Claude 伺服器在美國,從亞洲訪問延遲超過 100ms 屬於正常情況。","ipcheck.avail.refresh":"重新整理","ipcheck.avail.svc_row":"服務狀態","ipcheck.avail.latency.normal":"正常","ipcheck.avail.latency.good":"良好","ipcheck.avail.latency.slow":"較慢","ipcheck.avail.latency.unreachable":"不可訪問","ipcheck.avail.svc.none":"全部正常","ipcheck.avail.svc.minor":"輕微故障","ipcheck.avail.svc.major":"重大故障","ipcheck.avail.svc.critical":"嚴重故障","ipcheck.avail.svc.maintenance":"維護中","ipcheck.avail.svc.other":"服務異常","ipcheck.dns.title":"DNS 洩露檢測","ipcheck.dns.status":"狀態","ipcheck.dns.outlet":"DNS 出口","ipcheck.dns.outlet_ip":"DNS 出口 IP","ipcheck.dns.isp":"服務商","ipcheck.dns.leaked":"可能洩露","ipcheck.dns.no_leak":"未檢測到洩露","ipcheck.dns.encrypted":"DNS 加密或未暴露","ipcheck.dns.cn_tag":"中國 DNS","ipcheck.udp.title":"WebRTC UDP 洩露","ipcheck.udp.status":"狀態","ipcheck.udp.outlet":"UDP 出口","ipcheck.udp.outlet_ip":"UDP 出口 IP","ipcheck.udp.origin":"歸屬地","ipcheck.udp.disabled":"WebRTC 已停用","ipcheck.udp.no_leak":"未檢測到洩露","ipcheck.udp.leaked":"可能洩露","ipcheck.udp.anomaly":"異常","ipcheck.device.title":"裝置資訊","ipcheck.device.tz":"時區","ipcheck.device.lang":"語言","ipcheck.device.os":"作業系統 / 瀏覽器","ipcheck.device.touch":"觸屏","ipcheck.device.net":"網路型別","ipcheck.device.dnt":"Do Not Track","ipcheck.device.webgl_render":"WebGL 渲染器","ipcheck.device.canvas_fp":"Canvas 指紋","ipcheck.device.webgl_fp":"WebGL 指紋","ipcheck.device.match":"一致","ipcheck.device.mismatch":"不一致","ipcheck.device.local":"本地","ipcheck.device.estimate_suffix":"(估算)","ipcheck.device.diff_equal":"偏移略有差異","ipcheck.device.diff_ahead":"Claude 快 {{h}} 小時","ipcheck.device.diff_behind":"Claude 慢 {{h}} 小時","ipcheck.device.lang_expected":"Claude 出口常用","ipcheck.device.touch_yes":"是","ipcheck.device.touch_no":"否","ipcheck.device.dnt_on":"已開啟","ipcheck.device.dnt_off":"已關閉","ipcheck.device.dnt_unset":"未設定","ipcheck.device.net_unsupported":"不支援檢測","ipcheck.device.unsupported":"不支援","ipcheck.history.title":"Claude 出口 IP 歷史","ipcheck.history.subtitle":"僅本地儲存於瀏覽器,最多保留 6 條","ipcheck.history.clear":"清除","ipcheck.history.empty":"暫無歷史記錄","ipcheck.history.current":"當前","ipcheck.region.CN":"中國大陸","ipcheck.region.HK":"香港","ipcheck.region.MO":"澳門","ipcheck.region.RU":"俄羅斯","ipcheck.region.KP":"朝鮮","ipcheck.region.IR":"伊朗","ipcheck.region.SY":"敘利亞","ipcheck.region.CU":"古巴","ipcheck.region.BY":"白俄羅斯","ipcheck.region.VE":"委內瑞拉","local_only.title":"請在客戶端內使用","local_only.body":"這個頁面讀取的是你本機上的資料,所以只能在 Mac app 或命令列 dashboard 裡檢視。","local_only.open_app":"在 Mac app 內開啟","local_only.download":"下載 Mac app","dashboard.auth_gate.title":"登入 Token Tracker","dashboard.auth_gate.subtitle":"登入以在雲端同步並檢視您的 API 使用量、成本與 Token 消耗趨勢。","dashboard.auth_gate.button":"立即登入","shared.app_name":"Token Tracker","dashboard.auth_gate.hero_title":"讓 AI 代理的每一筆 Token 消耗","dashboard.auth_gate.hero_subtitle":"清晰透明、多端無縫掌控","dashboard.auth_gate.desc":"為您在純雲端安全同步來自 Claude Code、Cursor、Gemini CLI 等全平台主流代理的 Token 額度、並發費用及耗時統計,提供前所未有的全景可視化數據分析。","dashboard.auth_gate.feature.sync.title":"實時雲端同步","dashboard.auth_gate.feature.sync.desc":"全自動採集各端代理的開銷,並在您的私人雲盤中秒級安全歸檔。","dashboard.auth_gate.feature.anal.title":"多維看板分析","dashboard.auth_gate.feature.anal.desc":"按模型分類、時間跨度統計 Token 分布,隨時追溯開銷尖峰及用量結構。","dashboard.auth_gate.feature.guard.title":"本地直連免登","dashboard.auth_gate.feature.guard.desc":"在 Localhost 模式下自動跳過所有登錄驗證,完美保護本地離線調試體驗。"},NP={"shared.placeholder.short":"--","shared.unit.percent":"%","shared.unit.thousand_abbrev":"K","shared.unit.million_abbrev":"M","shared.unit.billion_abbrev":"B","shared.data_source":"データソース:{{source}}","shared.error.prefix":"エラー:{{error}}","shared.status.unsynced":"—","shared.time.now":"たった今","error.boundary.title":"問題が発生しました","error.boundary.subtitle":"このビューのレンダリングに失敗しました","error.boundary.hint":"コンソールを開いてから、ページを再読み込みしてください","error.boundary.no_details":"エラーの詳細はありません","error.boundary.action.reload":"再読み込み","identity_card.rank_label":"ランク","identity_card.streak_label":"アクティブ日数","identity_card.rank_placeholder":"—","identity_card.streak_value":"{{days}} 日","usage.summary.total":"トークン合計","usage.summary.updated_at":"{{timestamp}} 更新","usage.period.day":"日","usage.period.week":"週","usage.period.month":"月","usage.period.total":"合計","usage.period.custom":"カスタム","usage.metric.total":"合計","usage.metric.input":"入力","usage.metric.output":"出力","usage.metric.cached_input":"キャッシュ入力","usage.metric.reasoning_output":"推論出力","usage.button.refresh":"更新","usage.overview.tablist_aria":"期間","usage.auto_refresh.aria":"自動更新間隔","usage.auto_refresh.off":"オフ","usage.auto_refresh.30s":"30秒","usage.auto_refresh.60s":"60秒","usage.auto_refresh.120s":"120秒","usage.overview.cost_breakdown_aria":"コスト内訳を表示","usage.overview.distribution_aria":"ソース別割合:{{items}}","usage.overview.distribution_item":"{{label}} {{percent}}%","usage.overview.provider_card_aria":"{{provider}}:{{percent}}%、{{tokens}} トークン、{{cost}}。クリックして{{action}}詳細","usage.overview.expand":"展開","usage.overview.collapse":"折りたたむ","usage.overview.model_count":"{{count}} 個のモデル","usage.overview.model_details_aria":"{{provider}} のモデル詳細","widgets.page.title":"ウィジェット","widgets.cta.open_gallery":"ウィジェットギャラリーを開く","widgets.cta.download":"Mac アプリをダウンロード","widgets.cta.macos_only":"macOS 限定","widgets.menubar.section.title":"メニューバー","widgets.gallery.section.title":"デスクトップウィジェット","widgets.summary.name":"使用状況の概要","widgets.summary.description":"今日と直近 7 日間の使用状況、コンパクトなトレンドライン付き。","widgets.heatmap.name":"ヒートマップ","widgets.heatmap.description":"GitHub のように、アクティブな日とそうでない日をひと目で把握。","widgets.topModels.name":"人気モデル","widgets.topModels.description":"よく使うモデルを、トークン割合順に表示。","widgets.limits.name":"使用制限","widgets.limits.description":"Claude、Codex、Cursor、Gemini などのリアルタイムなレート制限の進捗。","daily.sort.date.label":"日付","daily.sort.date.title":"日付で並べ替え","daily.sort.total.label":"合計","daily.sort.total.title":"合計で並べ替え","daily.sort.input.label":"入力","daily.sort.input.title":"入力で並べ替え","daily.sort.output.label":"出力","daily.sort.output.title":"出力で並べ替え","daily.sort.cached.label":"キャッシュ","daily.sort.cached.title":"キャッシュ入力で並べ替え","daily.sort.reasoning.label":"推論","daily.sort.reasoning.title":"推論出力で並べ替え","daily.sort.conversations.label":"会話数","daily.sort.conversations.title":"会話数で並べ替え","details.pagination.prev":"前のページ","details.pagination.next":"次のページ","limits.copilot.otelHint.title":"Copilot のトークン使用状況を追跡","limits.copilot.otelHint.body":"制限情報は GitHub OAuth トークン経由で読み取られます。トークン単位の使用量も記録したい場合は、Copilot の OpenTelemetry エクスポートを有効にし、次の内容をシェルの設定ファイル(~/.zshrc または ~/.bashrc)に追加してください:","limits.copilot.otelHint.copy":"コピー","limits.copilot.otelHint.copied":"コピーしました","limits.panel.title":"使用制限","limits.panel.mode_separator":" · ","limits.label.cursor_plan":"プラン","limits.label.cursor_auto":"自動","limits.label.cursor_api":"API","limits.label.kiro_month":"月間","limits.label.kiro_bonus":"ボーナス","limits.label.kimi_weekly":"週","limits.label.kimi_5h":"5h","limits.label.kimi_total":"総量","limits.label.kimi_parallel":"並列:{{count}}","limits.label.copilot_premium":"プレミアム","limits.label.copilot_chat":"チャット","limits.status.not_connected":"未接続","limits.status.no_data":"リアルタイムの制限データが返されませんでした","limits.status.all_hidden":"すべての制限プロバイダーが非表示になっています。表示設定を開いて再表示してください。","nav.usage":"使用状況","nav.limits":"制限","nav.widgets":"ウィジェット","nav.skills":"Skills","nav.collapse":"サイドバーを折りたたむ","nav.expand":"サイドバーを展開","nav.menu":"ナビゲーションメニューを開く","nav.close_menu":"ナビゲーションメニューを閉じる","nav.aside_label":"メインナビゲーション","nav.nav_label":"ナビゲーション","nav.version":"Token Tracker バージョン {{version}}","limits.page.subtitle":"AI ツールのレート制限とクォータの使用状況。","limits.settings.toggle_visible":"表示を切り替え","limits.settings.display_mode_label":"使用量","limits.settings.display_mode_used":"使用済み","limits.settings.display_mode_remaining":"残り","limits.page.openSettings":"表示設定","nav.group.general":"一般","nav.group.tools":"ツール","nav.group.account":"アカウント","nav.settings":"設定","settings.page.title":"設定","settings.page.subtitle":"アカウント、外観、表示設定を管理します。","settings.section.appearance":"外観","settings.section.account":"アカウント","settings.section.limits":"制限の表示","settings.appearance.theme.label":"テーマ","settings.appearance.theme.hint":"Token Tracker のダッシュボードでの表示方法を選択します。","settings.appearance.theme.light":"ライト","settings.appearance.theme.dark":"ダーク","settings.appearance.theme.system":"システム","settings.section.menubar":"メニューバーアプリ","settings.menubar.showStats":"メニューバーに統計を表示","settings.menubar.showStatsHint":"メニューバーアイコンの横に、今日のトークン数とコストを表示します。","settings.menubar.animatedIcon":"アニメーションアイコン","settings.menubar.animatedIconHint":"Clawd キャラクターを点滅させ、メニューバーで同期アニメーションを再生します。","settings.menubar.launchAtLogin":"ログイン時に起動","settings.menubar.launchAtLoginHint":"macOS へのログイン時に TokenTrackerBar を自動的に起動します。","settings.menubar.syncNow":"今すぐ同期","settings.menubar.syncNowHint":"ローカルの AI ツールログの解析とアップロードをすぐに実行します。","settings.menubar.syncing":"同期中...","settings.menubar.updates":"更新","settings.menubar.checkUpdates":"更新を確認","menubar.slot.primary":"1 番目の位置","menubar.slot.secondary":"2 番目の位置","menubar.native_only":"macOS 版 TokenTrackerBar を開くと、メニューバーの表示を編集できます。","menubar.metric.today_tokens":"今日のトークン","menubar.metric.today_cost":"今日のコスト","menubar.metric.last_7d_tokens":"直近 7 日間のトークン","menubar.metric.this_month_tokens":"今月のトークン","menubar.metric.total_tokens":"トークン合計","menubar.metric.total_cost":"コスト合計","menubar.metric.claude_5h":"Claude 5 時間制限","menubar.metric.claude_7d":"Claude 7 日間制限","menubar.metric.codex_5h":"Codex 5 時間制限","menubar.metric.codex_7d":"Codex 7 日間制限","nav.ip_check":"Claude IP チェック","skills.page.title":"Skills","skills.tab.my":"マイ","skills.tab.browse":"探す","skills.action.refresh":"更新","skills.action.install":"インストール","skills.action.choose_targets":"対象を選択","skills.target.menu_label":"インストール先","skills.target.none":"対象が未選択","skills.toast.installed":"{{name}} を {{targets}} にインストールしました。","skills.action.remove":"削除","skills.action.search":"検索","skills.action.search_aria":"skills を検索","skills.target.synced_summary":"{{targets}} に同期済み","skills.target.synced_none":"まだどの agent にも同期されていません","skills.row.open_details":"{{name}} の詳細を表示","skills.detail.close":"詳細を閉じる","skills.detail.sync_section_title":"同期先","skills.detail.remove_button":"すべての agent から削除","skills.detail.remove_confirm_hint":"これにより、各 agent から同期解除され、ローカルのコピーも削除されます。","skills.filter.agent_label":"Agent","skills.filter.agent_all":"すべての agent","skills.filter.clear":"フィルターをクリア","skills.filter.result_count":"{{filtered}} / {{total}} 個の skill","skills.filter.result_count_browse":"{{count}} 件の結果","skills.empty.no_match":"現在のフィルターに一致する skill はありません。","hint.dismiss":"ヒントを閉じる","hint.dismissible_aria":"閉じられるヒント","skills.card.installed":"インストール済み","skills.card.targets_prefix":"インストール先:","skills.card.targets_change":"変更","skills.card.installs":"{{count}} 回インストール","skills.source.label":"ソース","skills.source.all":"すべてのリポジトリ","skills.mode.repo":"リポジトリ","skills.mode.skillssh":"skills.sh","skills.browse.placeholder_all":"有効なリポジトリ内を検索…","skills.browse.placeholder_repo":"{{repo}} 内を検索…","skills.browse.placeholder_skillssh":"skills.sh のリポジトリ内を検索…","skills.browse.empty_sources":"GitHub リポジトリを追加して、スキルの閲覧を始めましょう。","skills.browse.add_repo_hint":"もっと skill がほしいですか?GitHub リポジトリを追加してください。","skills.browse.manage_sources":"ソースを管理","skills.browse.hint_skillssh":"skills.sh を検索するには 2 文字以上入力してください。","skills.browse.loading_hint":"GitHub から skill 情報を取得しています。初回の読み込みには 1 分ほどかかる場合があり、結果はキャッシュされます。","skills.error.generic":"Skill の操作に失敗しました。","skills.confirm.remove_title":"{{name}} を削除しますか?","skills.confirm.remove_managed":"この skill は接続済みのすべての AI ツールから削除されます。数秒以内であれば元に戻せます。","skills.confirm.remove_local":"すべての AI ツールのディレクトリから、この skill フォルダを削除します。この操作は元に戻せません。","skills.toast.removed":"{{name}} を削除しました。","shared.action.undo":"元に戻す","shared.action.cancel":"キャンセル","shared.action.apply":"適用","skills.empty.my":"まだ skill がありません。「探す」で検索またはインストールしましょう。","skills.empty.my_cta":"探しに行く","skills.empty.browse":"このソースにはスキルが見つかりませんでした。","skills.empty.search":"結果がありません。別のキーワードでお試しください。","skills.repo.placeholder":"owner/repository","skills.repo.add":"リポジトリを追加","skills.repo.invalid":"owner/repository または GitHub リポジトリの URL を入力してください。","skills.repo.remove":"リポジトリを削除","settings.appearance.language.label":"言語","settings.appearance.language.hint":"「システム」を使用すると、デフォルトで端末の言語に従います。","settings.appearance.language.system":"システム","settings.appearance.language.english":"英語","settings.appearance.language.chinese":"簡体字中国語","settings.appearance.language.traditional_chinese":"繁体字中国語","settings.appearance.language.japanese":"日本語","settings.appearance.language.korean":"韓国語","settings.appearance.currency.label":"通貨","settings.appearance.currency.hint":"使用コストの表示通貨を選択します。","settings.appearance.currency.opt.usd":"米ドル ($)","settings.appearance.currency.opt.eur":"ユーロ (€)","settings.appearance.currency.opt.gbp":"英ポンド (£)","settings.appearance.currency.opt.cny":"人民元 (¥)","settings.appearance.currency.opt.jpy":"日本円 (¥)","settings.appearance.currency.opt.hkd":"香港ドル (HK$)","settings.appearance.currency.rate_source.default":"組み込みのデフォルト為替レート","settings.appearance.currency.rate_source.fetched":"データソース:open.er-api.com","settings.appearance.currency.rate_updated":"{{when}} に更新","settings.appearance.currency.rate_never":"まだ更新されていません"},jP={"usage.overview.antigravity_notice_title":"トークンは推定値です","usage.overview.antigravity_notice_body":"Antigravity のローカルログには実際の使用量フィールドがないため、ここの数値は文字数(約 4 文字/トークン)から推定したもので、Gemini の prompt cache 割引も差し引かれていません。上限の推定値として扱い、請求書との照合には使わないでください。","usage.period.last24h":"24h","stats.period.today":"今日","stats.period.last24h":"24h","stats.period.week":"今週","stats.period.month":"今月","stats.period.this_month":"今月","stats.period.all":"全期間","stats.period.convs":"会話","dashboard.core_index.collapse_label":"▾","dashboard.core_index.expand_label":"▸","dashboard.core_index.collapse_aria":"モデルの内訳を折りたたむ","dashboard.core_index.expand_aria":"モデルの内訳を展開","dashboard.rolling.title":"最近のアクティビティ","dashboard.rolling.last_7d":"過去 7 日間","dashboard.rolling.last_30d":"過去 30 日間","dashboard.rolling.avg_active_day":"1 日平均","dashboard.projects.title":"プロジェクトの使用状況","dashboard.projects.tokens_label":"トークン","dashboard.projects.stars_label":"スター","dashboard.projects.limit_label":"表示","dashboard.projects.limit_aria":"表示するリポジトリ数を選択","dashboard.projects.limit_top_3":"上位 3 件","dashboard.projects.limit_top_6":"上位 6 件","dashboard.projects.limit_top_10":"上位 10 件","dashboard.projects.empty":"公開リポジトリはありません","dashboard.widgets.title":"デスクトップウィジェット","dashboard.widgets.hint":"デスクトップを右クリック → ウィジェットを編集 → 「TokenTracker」を検索","dashboard.widgets.dismiss_aria":"ウィジェットの紹介を閉じる","dashboard.cost_breakdown.title":"コスト内訳","dashboard.cost_breakdown.total_label":"推定総コスト","dashboard.cost_breakdown.close":"閉じる","trend.monitor.label":"使用トレンド","trend.zoom.open_aria":"全画面表示","trend.zoom.close_aria":"閉じる","trend.zoom.badge":"トレンド分析","trend.zoom.desc":"バーにカーソルを合わせるとトークン、コスト、会話数を確認できます。粒度を切り替えて月から30分単位まで掘り下げられます。","trend.zoom.insight_badge":"分析","trend.zoom.tooltip.cost":"コスト","trend.zoom.tooltip.conversations":"会話","trend.zoom.stats.tokens":"総トークン数","trend.zoom.stats.cost":"総コスト","trend.zoom.stats.conversations":"会話数","trend.zoom.stats.peak":"ピーク時間帯","trend.zoom.gran.aria":"粒度","trend.zoom.gran.30min":"30分","trend.zoom.gran.day":"日","trend.zoom.gran.month":"月","trend.zoom.prev_day":"前日","trend.zoom.next_day":"翌日","trend.zoom.loading":"読み込み中…","trend.zoom.pick_day":"日付を選択","trend.zoom.pick_range":"期間を選択","trend.zoom.insight.empty":"静かな期間。トークンは一つも流れませんでした。","trend.zoom.insight.calm":"控えめな使い方。モデルはほとんど待機し、必要なときだけ動きました。","trend.zoom.insight.steady":"{{active}} 個のアクティブな区間で安定したリズム、ピークは {{peak}}。騒がずに物事を仕上げていくペースです。","trend.zoom.insight.heavy":"本気の稼働:{{active}} 区間が高負荷で動き、ピークは {{peak}}。勢いを待つのではなく自ら生み出す人の出力です。","trend.zoom.insight.massive":"工業規模。{{peak}} のピークと冷めることのないスループット。この量になると、もはやモデルを使うのではなく工場を動かしています。","heatmap.title":"ヒートマップ","heatmap.empty":"まだアクティビティデータがありません。","heatmap.legend.less":"少","heatmap.legend.more":"多","heatmap.legend.utc":"UTC","heatmap.tooltip":"{{day}} • {{value}} {{unit}} • {{tz}}","heatmap.unit.tokens":"トークン","heatmap.month.jan":"1月","heatmap.month.feb":"2月","heatmap.month.mar":"3月","heatmap.month.apr":"4月","heatmap.month.may":"5月","heatmap.month.jun":"6月","heatmap.month.jul":"7月","heatmap.month.aug":"8月","heatmap.month.sep":"9月","heatmap.month.oct":"10月","heatmap.month.nov":"11月","heatmap.month.dec":"12月","heatmap.day.sun":"日","heatmap.day.mon":"月","heatmap.day.tue":"火","heatmap.day.wed":"水","heatmap.day.thu":"木","heatmap.day.fri":"金","heatmap.day.sat":"土","dashboard.session_expired.copy_label":"npx --yes @ipv9/tokentracker-cli init を実行","dashboard.session_expired.copied":"コピーしました","dashboard.install.prompt":"Node.js 18+ をインストールしてから実行:","dashboard.install.cmd.init":"npx --yes @ipv9/tokentracker-cli init","dashboard.install.cmd.init_link_code":"npx --yes @ipv9/tokentracker-cli init --link-code {{link_code}}","dashboard.install.copy":"インストールコマンドをコピー","dashboard.install.copy_base":"初期化コマンドをコピー","dashboard.install.copied":"クリップボードにコピーしました","dashboard.install.link_code.loading":"専用コードを生成中...","dashboard.install.link_code.failed":"専用コードを利用できません","dashboard.install.cmd.sync":"npx --yes @ipv9/tokentracker-cli sync","dashboard.daily.title":"日次内訳","dashboard.daily.empty":"まだデータがありません。先に AI CLI を使用してから {{cmd}} を実行してください。","dashboard.identity.title":"あなたのプロフィール","dashboard.identity.subtitle":"あなたのコーディングの軌跡を記録","dashboard.identity.fallback":"匿名ユーザー","dashboard.screenshot.title_line1":"AI コーディングアシスタント","dashboard.screenshot.title_line2":"2025 年振り返り","heatmap.3d.hover_tip":"クリックして 3D 全画面回転分析モードに入る","heatmap.3d.modal.title":"トークンの 3D ビュー","heatmap.3d.modal.desc":"左ボタンを押しながらドラッグで自由に回転し、ホバーで日々のアクティビティと多次元の統計を確認できます。","heatmap.3d.modal.stats.total_tokens":"年間トークン総量","heatmap.3d.modal.stats.precision_total_tokens":"年間の正確な消費量","heatmap.3d.modal.stats.estimated_cost":"年間推定費用","heatmap.3d.modal.stats.active_rate_days":"アクティブ率 / 日数","heatmap.3d.modal.stats.max_streak":"最長連続アクティブ","heatmap.3d.modal.stats.days_suffix":"日","heatmap.3d.modal.stats.peak_day":"単日ピーク","heatmap.3d.modal.stats.precision_peak_value":"正確な単日ピーク","heatmap.3d.modal.stats.no_data":"データなし","heatmap.3d.modal.legend.title":"アクティビティのレベル","heatmap.3d.modal.palette.emerald":"エメラルドシティ","heatmap.3d.modal.palette.ocean":"ディープオーシャン","heatmap.3d.modal.palette.neon":"サイバーネオン","heatmap.3d.modal.palette.amber":"燃ゆる残照","heatmap.3d.modal.control.play":"ゆっくり自動回転を開始","heatmap.3d.modal.control.pause":"自動回転を一時停止","heatmap.3d.modal.control.reset":"3D 視点をリセット","heatmap.3d.modal.footer.tip":"ピンチでズーム / ホイールでズーム / マウスドラッグで 3D チャートを回転","heatmap.3d.modal.ai.title.default":"たゆまず歩み続ける人","heatmap.3d.modal.ai.eval.default":"技術の大河のなかで、たゆまず歩み続けています。日々のコーディングがいつも華々しいとは限りませんが、小さなアクティビティの一つひとつが、あなたの思考と探求を記録しています。星のような火花がやがて集まり、あなただけのデジタルの海になっていきます。","heatmap.3d.modal.ai.title.peak":"限界突破級コントリビューター","heatmap.3d.modal.ai.eval.peak":"この一年、あなたのトークン産出はきわめて高いエンジニアリング密度を示しました。これほどの開発量は、中規模から大規模なシステム基盤の再構築に深く関わったのに匹敵し、一打鍵ごとに複雑なロジックを確定的なコードへと収束させています。極度の集中と、純粋なエンジニアリングへの情熱の何よりの証です。","heatmap.3d.modal.ai.title.heavy":"高頻度産出級デベロッパー","heatmap.3d.modal.ai.eval.heavy":"卓越した継続的アウトプット。あなたのトークン累積量は数百万語に達し、中編の技術大作を数十冊分に相当します。高い飽和度のコーディングのリズムは、あなたが並外れた実行力で自分だけのデジタル資産を築いていることを示し、卓越した創造力を体現しています。","heatmap.3d.modal.ai.title.core":"中核生産力エキスパート","heatmap.3d.modal.ai.eval.core":"きわめて粘り強い長期的な取り組み。過去一年にわたり、長い期間にわたって安定して高い強度の開発ペースを保ってきました。確かなコード行数とトークン産出によって、あなたは静かにプロジェクトの中核アーキテクチャを築き上げており、まさにエンジニアリングの支柱です。","heatmap.3d.modal.ai.title.steady":"着実成長型エンジニア","heatmap.3d.modal.ai.eval.steady":"堅実で揺るぎない技術の積み重ね。トークンが増えるたびに、あなたは未来へと続くコードの礎を着実に積んでいます。この細く長く続く堅実なリズムは、優れた開発者がエンジニアリングの達人へと至るために必ず通る道です。","heatmap.3d.voxel.joke.1":"🔥 超ヤバい!{{value}} tokens を産出!大規模モデルを猛特訓中?それともコンパイラを手書きで?","heatmap.3d.voxel.joke.2":"🚀 叙事詩級のアウトプット!合計 {{value}} tokens。今日の産出量は地球を一周できるほど、AI もあなたに驚嘆!","heatmap.3d.voxel.joke.3":"⚡ 爆発の日!{{value}} tokens。コードが泉のごとく湧き出て、キーボードが煙を上げ始めた!","heatmap.3d.voxel.level3":"⚡ 生産力の大爆発({{value}} tokens)!高効率で集中したゴールデンタイム、このピークの状態を保ち続けよう!","heatmap.3d.voxel.level2":"🌱 調子が上がってきた({{value}} tokens)!着実なアウトプットで、キーを打つたびに大きな建物に一枚ずつレンガを積み重ねています。","heatmap.3d.voxel.level1":"🍃 塵も積もれば山となる({{value}} tokens)。小さなコミットも未来への投資、複利の力を保とう!","heatmap.3d.voxel.level0":"💤 英気を養う日。コードを書かない日にも、ひらめきはひそかに育っています。","ipcheck.page.title":"Claude IP チェック","ipcheck.page.subtitle":"現在 Claude にアクセスしている出口 IP、クリーン度、地理情報、リスクシグナルを確認し、ログインに影響したりリスク管理を誘発したりしうる要因を把握します。","ipcheck.mask.toggle":"IP を隠す","ipcheck.ipv6.warn":"現在 IPv6 環境です。IPv6 での Claude Code アクセスは推奨されず、一部の検出結果が不完全になる可能性があります。","ipcheck.ip.cn":"中国の出口 IPv4","ipcheck.ip.cloudflare":"Cloudflare 出口","ipcheck.ip.claude":"Claude 出口","ipcheck.ip.failed":"取得に失敗しました","ipcheck.ip.loading":"読み込み中...","ipcheck.trust.title":"信頼スコア","ipcheck.trust.subtitle":"Claude のリスク管理視点での IP クリーン度","ipcheck.trust.no_data":"データなし","ipcheck.trust.no_ip":"Claude の出口 IP を取得できず、スコアを算出できません","ipcheck.trust.no_score":"この IP のスコアデータはまだありません","ipcheck.trust.gauge.low":"0 高リスク","ipcheck.trust.gauge.high":"100 信頼可","ipcheck.trust.label.pristine":"極めてクリーン","ipcheck.trust.label.clean":"クリーン","ipcheck.trust.label.good":"良好","ipcheck.trust.label.neutral":"中立","ipcheck.trust.label.suspicious":"疑わしい","ipcheck.trust.label.unreachable":"アクセス不可","ipcheck.trust.text.excellent":"この IP の評判は非常に良好です","ipcheck.trust.text.great":"この IP の評判は優秀です","ipcheck.trust.text.minor":"この IP には軽微なリスクがあります","ipcheck.trust.text.moderate":"この IP には一定のリスクがあります","ipcheck.trust.text.severe":"この IP は極めて高リスクです","ipcheck.trust.text.restricted":"アクセス不可の地域にあり、Claude は厳格にリスク管理します","ipcheck.trust.region_warn.title":"Claude の出口 IP が {{region}} にあります","ipcheck.trust.region_warn.body":"Claude へのログインは推奨されません。アカウント停止のリスク管理を誘発しやすくなります。","ipcheck.trust.region_support":"Claude 対応地域","ipcheck.trust.region.accessible":"アクセス可","ipcheck.common.unknown":"不明","ipcheck.props.title":"IP の属性","ipcheck.props.region":"地域","ipcheck.props.city":"都市","ipcheck.props.type":"タイプ","ipcheck.props.asn":"ASN","ipcheck.props.org":"プロバイダー","ipcheck.props.residential":"家庭用","ipcheck.props.datacenter":"データセンター","ipcheck.security.title":"セキュリティ検出","ipcheck.security.vpn":"VPN","ipcheck.security.proxy":"プロキシ (Proxy)","ipcheck.security.tor":"Tor","ipcheck.security.crawler":"ボット (Crawler)","ipcheck.security.abuser":"不正利用の記録","ipcheck.security.proxy_flag":"プロキシ","ipcheck.security.crawler_yes":"はい","ipcheck.security.crawler_no":"いいえ","ipcheck.security.abuser_yes":"記録あり","ipcheck.security.abuser_no":"記録なし","ipcheck.security.clean":"検出されませんでした","ipcheck.avail.title":"Claude の可用性","ipcheck.avail.tooltip":"Claude のサーバーは米国にあります。アジアからのアクセスで遅延が 100ms を超えるのは正常な状況です。","ipcheck.avail.refresh":"更新","ipcheck.avail.svc_row":"サービス状態","ipcheck.avail.latency.normal":"正常","ipcheck.avail.latency.good":"良好","ipcheck.avail.latency.slow":"やや遅い","ipcheck.avail.latency.unreachable":"アクセス不可","ipcheck.avail.svc.none":"すべて正常","ipcheck.avail.svc.minor":"軽微な障害","ipcheck.avail.svc.major":"重大な障害","ipcheck.avail.svc.critical":"深刻な障害","ipcheck.avail.svc.maintenance":"メンテナンス中","ipcheck.avail.svc.other":"サービス異常","ipcheck.dns.title":"DNS リーク検出","ipcheck.dns.status":"状態","ipcheck.dns.outlet":"DNS 出口","ipcheck.dns.outlet_ip":"DNS 出口 IP","ipcheck.dns.isp":"プロバイダー","ipcheck.dns.leaked":"リークの可能性あり","ipcheck.dns.no_leak":"リークは検出されませんでした","ipcheck.dns.encrypted":"DNS は暗号化または非公開","ipcheck.dns.cn_tag":"中国 DNS","ipcheck.udp.title":"WebRTC UDP リーク","ipcheck.udp.status":"状態","ipcheck.udp.outlet":"UDP 出口","ipcheck.udp.outlet_ip":"UDP 出口 IP","ipcheck.udp.origin":"所在地","ipcheck.udp.disabled":"WebRTC は無効です","ipcheck.udp.no_leak":"リークは検出されませんでした","ipcheck.udp.leaked":"リークの可能性あり","ipcheck.udp.anomaly":"異常","ipcheck.device.title":"デバイス情報","ipcheck.device.tz":"タイムゾーン","ipcheck.device.lang":"言語","ipcheck.device.os":"OS / ブラウザ","ipcheck.device.touch":"タッチスクリーン","ipcheck.device.net":"ネットワークタイプ","ipcheck.device.dnt":"Do Not Track","ipcheck.device.webgl_render":"WebGL レンダラー","ipcheck.device.canvas_fp":"Canvas フィンガープリント","ipcheck.device.webgl_fp":"WebGL フィンガープリント","ipcheck.device.match":"一致","ipcheck.device.mismatch":"不一致","ipcheck.device.local":"ローカル","ipcheck.device.estimate_suffix":"(推定)","ipcheck.device.diff_equal":"オフセットにわずかな差があります","ipcheck.device.diff_ahead":"Claude が {{h}} 時間進んでいます","ipcheck.device.diff_behind":"Claude が {{h}} 時間遅れています","ipcheck.device.lang_expected":"Claude 出口でよく使われる言語","ipcheck.device.touch_yes":"はい","ipcheck.device.touch_no":"いいえ","ipcheck.device.dnt_on":"オン","ipcheck.device.dnt_off":"オフ","ipcheck.device.dnt_unset":"未設定","ipcheck.device.net_unsupported":"検出に非対応","ipcheck.device.unsupported":"非対応","ipcheck.history.title":"Claude 出口 IP の履歴","ipcheck.history.subtitle":"ブラウザのローカルにのみ保存され、最大 6 件まで保持されます","ipcheck.history.clear":"クリア","ipcheck.history.empty":"履歴はまだありません","ipcheck.history.current":"現在","ipcheck.region.CN":"中国本土","ipcheck.region.HK":"香港","ipcheck.region.MO":"マカオ","ipcheck.region.RU":"ロシア","ipcheck.region.KP":"北朝鮮","ipcheck.region.IR":"イラン","ipcheck.region.SY":"シリア","ipcheck.region.CU":"キューバ","ipcheck.region.BY":"ベラルーシ","ipcheck.region.VE":"ベネズエラ","local_only.title":"クライアント内でご利用ください","local_only.body":"このページはお使いの端末上のデータを読み込むため、Mac アプリまたはコマンドラインの dashboard でのみ表示できます。","local_only.open_app":"Mac アプリ内で開く","local_only.download":"Mac アプリをダウンロード","dashboard.auth_gate.title":"Token Tracker にサインイン","dashboard.auth_gate.subtitle":"サインインして、クラウドでの API 使用量、コスト、トークン消費の傾向を同期および表示します。","dashboard.auth_gate.button":"今すぐサインイン","shared.app_name":"Token Tracker","dashboard.auth_gate.hero_title":"AIエージェントのすべてのトークン消費","dashboard.auth_gate.hero_subtitle":"明確で透過的、マルチエンドポイント制御","dashboard.auth_gate.desc":"Claude Code、Cursor、Gemini CLIなどのすべての主流エージェントからのトークンクォータ、同時実行コスト、遅延統計をパブリッククラウドで安全に同期し、これまでにない包括的な可視化分析を提供します。","dashboard.auth_gate.feature.sync.title":"リアルタイムクラウド同期","dashboard.auth_gate.feature.sync.desc":"各エンドポイントの実行コストを自動的に収集し、プライベートクラウドに数秒で安全にアーカイブします。","dashboard.auth_gate.feature.anal.title":"多次元ダッシュボード分析","dashboard.auth_gate.feature.anal.desc":"モデル分類、時間枠ごとにトークン分布を統計し、コストの急増と消費構成をいつでも追跡できます。","dashboard.auth_gate.feature.guard.title":"ローカル優先の自律性","dashboard.auth_gate.feature.guard.desc":"Localhostモードではすべてのログイン認証を自動的にスキップし、ローカルのオフラインデバッグエクスペリエンスを完全に保護します。"},OP={"shared.placeholder.short":"--","shared.unit.percent":"%","shared.unit.thousand_abbrev":"K","shared.unit.million_abbrev":"M","shared.unit.billion_abbrev":"B","shared.data_source":"데이터 출처: {{source}}","shared.error.prefix":"오류: {{error}}","shared.status.unsynced":"—","shared.time.now":"방금","error.boundary.title":"문제가 발생했습니다","error.boundary.subtitle":"이 화면을 표시하지 못했습니다","error.boundary.hint":"콘솔을 연 다음 페이지를 새로고침하세요","error.boundary.no_details":"오류 세부 정보 없음","error.boundary.action.reload":"새로고침","identity_card.rank_label":"시작일","identity_card.streak_label":"활동 일수","identity_card.rank_placeholder":"—","identity_card.streak_value":"{{days}}일","usage.summary.total":"총 토큰","usage.summary.updated_at":"{{timestamp}} 업데이트","usage.period.day":"일","usage.period.week":"주","usage.period.month":"월","usage.period.total":"전체","usage.period.custom":"사용자 지정","usage.metric.total":"전체","usage.metric.input":"입력","usage.metric.output":"출력","usage.metric.cached_input":"캐시된 입력","usage.metric.reasoning_output":"추론 출력","usage.button.refresh":"새로고침","usage.overview.tablist_aria":"기간","usage.auto_refresh.aria":"자동 새로고침 간격","usage.auto_refresh.off":"끄기","usage.auto_refresh.30s":"30초","usage.auto_refresh.60s":"60초","usage.auto_refresh.120s":"120초","usage.overview.cost_breakdown_aria":"비용 내역 보기","usage.overview.distribution_aria":"제공자 분포: {{items}}","usage.overview.distribution_item":"{{label}} {{percent}}%","usage.overview.provider_card_aria":"{{provider}}: {{percent}}%, {{tokens}} 토큰, {{cost}}. 클릭하여 세부 정보 {{action}}","usage.overview.expand":"펼치기","usage.overview.collapse":"접기","usage.overview.model_count":"모델 {{count}}개","usage.overview.model_details_aria":"{{provider}} 모델 세부 정보","widgets.page.title":"위젯","widgets.cta.open_gallery":"위젯 갤러리 열기","widgets.cta.download":"Mac 앱 다운로드","widgets.cta.macos_only":"macOS 전용","widgets.menubar.section.title":"메뉴 막대","widgets.gallery.section.title":"데스크톱 위젯","widgets.summary.name":"사용량 요약","widgets.summary.description":"오늘과 7일간의 사용량을 간결한 추세선으로 보여줍니다.","widgets.heatmap.name":"활동 히트맵","widgets.heatmap.description":"GitHub 스타일의 일별 캘린더. 연속 활동일과 쉬는 날을 한눈에 파악하세요.","widgets.topModels.name":"인기 모델","widgets.topModels.description":"토큰 비율로 정렬한 가장 많이 사용한 모델.","widgets.limits.name":"사용 한도","widgets.limits.description":"Claude, Codex, Cursor, Gemini 등의 실시간 사용 한도 진행 상황.","daily.sort.date.label":"날짜","daily.sort.date.title":"날짜순 정렬","daily.sort.total.label":"전체","daily.sort.total.title":"전체순 정렬","daily.sort.input.label":"입력","daily.sort.input.title":"입력순 정렬","daily.sort.output.label":"출력","daily.sort.output.title":"출력순 정렬","daily.sort.cached.label":"캐시","daily.sort.cached.title":"캐시된 입력순 정렬","daily.sort.reasoning.label":"추론","daily.sort.reasoning.title":"추론 출력순 정렬","daily.sort.conversations.label":"대화 수","daily.sort.conversations.title":"대화순 정렬","details.pagination.prev":"이전","details.pagination.next":"다음","limits.copilot.otelHint.title":"Copilot 토큰 사용량 추적","limits.copilot.otelHint.body":"한도 정보는 GitHub OAuth 토큰을 통해 로드됩니다. 토큰별 사용량도 기록하려면 Copilot의 OpenTelemetry 내보내기를 활성화하고 셸 프로필(~/.zshrc 또는 ~/.bashrc)에 다음 줄을 추가하세요:","limits.copilot.otelHint.copy":"복사","limits.copilot.otelHint.copied":"복사됨","limits.panel.title":"사용 한도","limits.panel.mode_separator":" · ","limits.label.cursor_plan":"플랜","limits.label.cursor_auto":"자동","limits.label.cursor_api":"API","limits.label.kiro_month":"월간","limits.label.kiro_bonus":"보너스","limits.label.kimi_weekly":"주간","limits.label.kimi_5h":"5h","limits.label.kimi_total":"전체","limits.label.kimi_parallel":"동시 실행: {{count}}","limits.label.copilot_premium":"프리미엄","limits.label.copilot_chat":"채팅","limits.status.not_connected":"연결되지 않음","limits.status.no_data":"실시간 한도 데이터가 반환되지 않았습니다","limits.status.all_hidden":"모든 한도 제공자가 숨겨져 있습니다. 표시 설정을 열어 다시 표시하세요.","nav.usage":"토큰","nav.limits":"한도","nav.widgets":"macOS 위젯","nav.skills":"Skills","nav.collapse":"사이드바 접기","nav.expand":"사이드바 펼치기","nav.menu":"내비게이션 메뉴 열기","nav.close_menu":"내비게이션 메뉴 닫기","nav.aside_label":"주 내비게이션","nav.nav_label":"기본","nav.version":"Token Tracker 버전 {{version}}","limits.page.subtitle":"AI 도구 전반의 사용 한도와 할당량 사용 현황.","limits.settings.toggle_visible":"표시 여부 전환","limits.settings.display_mode_label":"사용량","limits.settings.display_mode_used":"사용됨","limits.settings.display_mode_remaining":"남음","limits.page.openSettings":"표시 설정","nav.group.general":"일반","nav.group.tools":"도구","nav.group.account":"계정","nav.settings":"설정","settings.page.title":"설정","settings.page.subtitle":"계정, 외관 및 표시 환경설정을 관리하세요.","settings.section.appearance":"외관","settings.section.account":"계정","settings.section.limits":"한도 표시","settings.appearance.theme.label":"테마","settings.appearance.theme.hint":"대시보드 전반에서 Token Tracker가 표시되는 방식을 선택하세요.","settings.appearance.theme.light":"라이트","settings.appearance.theme.dark":"다크","settings.appearance.theme.system":"시스템","settings.section.menubar":"메뉴 막대 앱","settings.menubar.showStats":"메뉴 막대에 통계 표시","settings.menubar.showStatsHint":"메뉴 막대 아이콘 옆에 오늘의 토큰 수와 비용을 표시합니다.","settings.menubar.animatedIcon":"애니메이션 아이콘","settings.menubar.animatedIconHint":"메뉴 막대에서 Clawd 캐릭터를 깜빡이고 동기화 애니메이션을 재생합니다.","settings.menubar.launchAtLogin":"로그인 시 실행","settings.menubar.launchAtLoginHint":"macOS에 로그인할 때 TokenTrackerBar를 자동으로 시작합니다.","settings.menubar.syncNow":"지금 동기화","settings.menubar.syncNowHint":"로컬 AI 도구 로그를 즉시 파싱하고 업로드합니다.","settings.menubar.syncing":"동기화 중…","settings.menubar.updates":"업데이트","settings.menubar.checkUpdates":"업데이트 확인","menubar.slot.primary":"첫 번째 위치","menubar.slot.secondary":"두 번째 위치","menubar.native_only":"라이브 메뉴 막대 표시를 편집하려면 macOS용 TokenTrackerBar를 여세요.","menubar.metric.today_tokens":"오늘 토큰","menubar.metric.today_cost":"오늘 비용","menubar.metric.last_7d_tokens":"최근 7일","menubar.metric.this_month_tokens":"이번 달 토큰","menubar.metric.total_tokens":"총 토큰","menubar.metric.total_cost":"총 비용","menubar.metric.claude_5h":"Claude 5시간 한도","menubar.metric.claude_7d":"Claude 7일 한도","menubar.metric.codex_5h":"Codex 5시간 한도","menubar.metric.codex_7d":"Codex 7일 한도","nav.ip_check":"Claude IP 확인","skills.page.title":"Skills","skills.tab.my":"내 Skills","skills.tab.browse":"둘러보기","skills.action.refresh":"새로고침","skills.action.install":"설치","skills.action.choose_targets":"대상 선택","skills.target.menu_label":"설치 위치","skills.target.none":"대상 없음","skills.toast.installed":"{{name}}을(를) {{targets}}에 설치했습니다.","skills.action.remove":"제거","skills.action.search":"검색","skills.action.search_aria":"skills 검색","skills.target.synced_summary":"{{targets}}에 동기화됨","skills.target.synced_none":"어떤 agent에도 동기화되지 않음","skills.row.open_details":"{{name}} 세부 정보 열기","skills.detail.close":"세부 정보 닫기","skills.detail.sync_section_title":"동기화 대상","skills.detail.remove_button":"모든 agent에서 제거","skills.detail.remove_confirm_hint":"모든 agent에서 이 skill의 동기화를 해제하고 로컬 복사본을 삭제합니다.","skills.filter.agent_label":"Agent","skills.filter.agent_all":"모든 agent","skills.filter.clear":"필터 지우기","skills.filter.result_count":"skill {{filtered}} / {{total}}개","skills.filter.result_count_browse":"결과 {{count}}개","skills.empty.no_match":"현재 필터에 일치하는 skill이 없습니다.","hint.dismiss":"힌트 닫기","hint.dismissible_aria":"닫을 수 있는 힌트","skills.card.installed":"설치됨","skills.card.targets_prefix":"설치 위치:","skills.card.targets_change":"변경","skills.card.installs":"설치 {{count}}회","skills.source.label":"출처","skills.source.all":"모든 저장소","skills.mode.repo":"저장소","skills.mode.skillssh":"skills.sh","skills.browse.placeholder_all":"활성화된 저장소에서 검색…","skills.browse.placeholder_repo":"{{repo}}에서 검색…","skills.browse.placeholder_skillssh":"skills.sh 레지스트리 검색…","skills.browse.empty_sources":"skill을 둘러보려면 아래에서 GitHub 저장소를 추가하세요.","skills.browse.add_repo_hint":"더 많은 skill이 필요하신가요? GitHub 저장소를 추가하세요.","skills.browse.manage_sources":"출처 관리","skills.browse.hint_skillssh":"skills.sh를 검색하려면 2자 이상 입력하세요.","skills.browse.loading_hint":"GitHub에서 skill 메타데이터를 가져오는 중입니다. 첫 로드는 최대 1분이 걸릴 수 있으며, 결과는 캐시됩니다.","skills.error.generic":"Skill 작업에 실패했습니다.","skills.confirm.remove_title":"{{name}}을(를) 제거할까요?","skills.confirm.remove_managed":"이 skill은 연결된 모든 AI 도구에서 제거됩니다. 몇 초 안에 실행을 취소할 수 있습니다.","skills.confirm.remove_local":"연결된 모든 AI 도구에서 디스크의 skill 폴더를 삭제합니다. 이 작업은 취소할 수 없습니다.","skills.toast.removed":"{{name}}을(를) 제거했습니다.","shared.action.undo":"실행 취소","shared.action.cancel":"취소","shared.action.apply":"적용","skills.empty.my":"아직 skill이 없습니다. 둘러보기를 열어 검색하고 설치하세요.","skills.empty.my_cta":"둘러보기","skills.empty.browse":"이 출처에서 skill을 찾을 수 없습니다.","skills.empty.search":"결과가 없습니다. 다른 검색어를 시도해 보세요.","skills.repo.placeholder":"owner/repository","skills.repo.add":"저장소 추가","skills.repo.invalid":"owner/repository 또는 GitHub 저장소 URL을 입력하세요.","skills.repo.remove":"저장소 제거","settings.appearance.language.label":"언어","settings.appearance.language.hint":"시스템을 선택하면 기본적으로 컴퓨터 언어를 따릅니다.","settings.appearance.language.system":"시스템","settings.appearance.language.english":"영어","settings.appearance.language.chinese":"중국어 간체","settings.appearance.language.traditional_chinese":"중국어 번체","settings.appearance.language.japanese":"일본어","settings.appearance.language.korean":"한국어","settings.appearance.currency.label":"통화","settings.appearance.currency.hint":"사용량 비용에 표시할 통화를 선택하세요.","settings.appearance.currency.opt.usd":"미국 달러 ($)","settings.appearance.currency.opt.eur":"유로 (€)","settings.appearance.currency.opt.gbp":"영국 파운드 (£)","settings.appearance.currency.opt.cny":"중국 위안 (¥)","settings.appearance.currency.opt.jpy":"일본 엔 (¥)","settings.appearance.currency.opt.hkd":"홍콩 달러 (HK$)","settings.appearance.currency.rate_source.default":"내장 기본 환율","settings.appearance.currency.rate_source.fetched":"출처: open.er-api.com","settings.appearance.currency.rate_updated":"{{when}} 업데이트됨","settings.appearance.currency.rate_never":"첫 새로고침 대기 중"},zP={"usage.overview.antigravity_notice_title":"추정 토큰","usage.overview.antigravity_notice_body":"Antigravity 기록에는 실제 사용량 수치가 저장되지 않습니다. 여기 표시된 수치는 텍스트 길이(약 4자/토큰)로 추정한 값이며 Gemini의 프롬프트 캐시 할인은 반영되지 않으므로, 청구 금액이 아니라 상한 추정치로 참고하세요.","usage.period.last24h":"24h","stats.period.today":"오늘","stats.period.last24h":"24h","stats.period.week":"이번 주","stats.period.month":"이번 달","stats.period.this_month":"이번 달","stats.period.all":"전체","stats.period.convs":"대화","dashboard.core_index.collapse_label":"▾","dashboard.core_index.expand_label":"▸","dashboard.core_index.collapse_aria":"모델 분석 접기","dashboard.core_index.expand_aria":"모델 분석 펼치기","dashboard.rolling.title":"최근 활동","dashboard.rolling.last_7d":"최근 7일","dashboard.rolling.last_30d":"최근 30일","dashboard.rolling.avg_active_day":"일 평균","dashboard.projects.title":"프로젝트 사용량","dashboard.projects.tokens_label":"토큰","dashboard.projects.stars_label":"STAR","dashboard.projects.limit_label":"표시","dashboard.projects.limit_aria":"저장소 표시 개수 선택","dashboard.projects.limit_top_3":"TOP 3","dashboard.projects.limit_top_6":"TOP 6","dashboard.projects.limit_top_10":"TOP 10","dashboard.projects.empty":"공개 저장소 없음","dashboard.widgets.title":"데스크톱 위젯","dashboard.widgets.hint":'데스크톱 우클릭 → 위젯 편집 → "TokenTracker" 검색',"dashboard.widgets.dismiss_aria":"위젯 소개 닫기","dashboard.cost_breakdown.title":"비용 내역","dashboard.cost_breakdown.total_label":"예상 총비용","dashboard.cost_breakdown.close":"닫기","trend.monitor.label":"사용 추세","trend.zoom.open_aria":"전체 화면으로 확대","trend.zoom.close_aria":"닫기","trend.zoom.badge":"트렌드 인사이트","trend.zoom.desc":"막대에 마우스를 올리면 토큰, 비용, 대화 수를 확인할 수 있습니다. 단위를 전환해 월에서 30분까지 살펴보세요.","trend.zoom.insight_badge":"인사이트","trend.zoom.tooltip.cost":"비용","trend.zoom.tooltip.conversations":"대화","trend.zoom.stats.tokens":"총 토큰","trend.zoom.stats.cost":"총 비용","trend.zoom.stats.conversations":"대화 수","trend.zoom.stats.peak":"최대 구간","trend.zoom.gran.aria":"단위","trend.zoom.gran.30min":"30분","trend.zoom.gran.day":"일","trend.zoom.gran.month":"월","trend.zoom.prev_day":"이전 날","trend.zoom.next_day":"다음 날","trend.zoom.loading":"불러오는 중…","trend.zoom.pick_day":"날짜 선택","trend.zoom.pick_range":"기간 선택","trend.zoom.insight.empty":"조용한 구간. 토큰이 단 하나도 흐르지 않았습니다.","trend.zoom.insight.calm":"가벼운 사용. 모델은 대부분 대기하다 필요할 때만 깨어났습니다.","trend.zoom.insight.steady":"{{active}}개 활성 구간에서 안정적인 리듬, 최대 {{peak}}. 요란하지 않게 일을 끝내는 페이스입니다.","trend.zoom.insight.heavy":"본격 가동: {{active}}개 구간이 뜨겁게 돌아가고 최대 {{peak}}. 흐름을 기다리지 않고 직접 만들어내는 사람의 출력입니다.","trend.zoom.insight.massive":"산업 규모. {{peak}} 피크와 식지 않는 처리량. 이 정도면 모델을 쓰는 게 아니라 공장을 돌리는 셈입니다.","heatmap.title":"활동 히트맵","heatmap.empty":"아직 활동 데이터가 없습니다.","heatmap.legend.less":"적음","heatmap.legend.more":"많음","heatmap.legend.utc":"UTC","heatmap.tooltip":"{{day}} • {{value}} {{unit}} • {{tz}}","heatmap.unit.tokens":"토큰","heatmap.month.jan":"1월","heatmap.month.feb":"2월","heatmap.month.mar":"3월","heatmap.month.apr":"4월","heatmap.month.may":"5월","heatmap.month.jun":"6월","heatmap.month.jul":"7월","heatmap.month.aug":"8월","heatmap.month.sep":"9월","heatmap.month.oct":"10월","heatmap.month.nov":"11월","heatmap.month.dec":"12월","heatmap.day.sun":"일","heatmap.day.mon":"월","heatmap.day.tue":"화","heatmap.day.wed":"수","heatmap.day.thu":"목","heatmap.day.fri":"금","heatmap.day.sat":"토","dashboard.session_expired.copy_label":"npx --yes @ipv9/tokentracker-cli init 실행","dashboard.session_expired.copied":"복사됨","dashboard.install.prompt":"Node.js 18+ 설치 후 실행:","dashboard.install.cmd.init":"npx --yes @ipv9/tokentracker-cli init","dashboard.install.cmd.init_link_code":"npx --yes @ipv9/tokentracker-cli init --link-code {{link_code}}","dashboard.install.copy":"설치 명령 복사","dashboard.install.copy_base":"init 명령 복사","dashboard.install.copied":"클립보드에 복사됨","dashboard.install.link_code.loading":"전용 코드 생성 중...","dashboard.install.link_code.failed":"전용 코드를 사용할 수 없음","dashboard.install.cmd.sync":"npx --yes @ipv9/tokentracker-cli sync","dashboard.daily.title":"일별 내역","dashboard.daily.empty":"아직 데이터가 없습니다. AI CLI를 사용한 다음 {{cmd}}을(를) 실행하세요.","dashboard.identity.title":"내 프로필","dashboard.identity.subtitle":"코딩 여정을 기록하세요","dashboard.identity.fallback":"익명","dashboard.screenshot.title_line1":"코딩 에이전트","dashboard.screenshot.title_line2":"2025 연말 결산","heatmap.3d.hover_tip":"클릭하여 3D 전체 화면 회전 분석 모드로 진입","heatmap.3d.modal.title":"토큰 3D 투시","heatmap.3d.modal.desc":"마우스 왼쪽 버튼으로 드래그하여 회전하세요. 마우스를 올리면 일별 활동과 다차원 지표를 확인할 수 있습니다.","heatmap.3d.modal.stats.total_tokens":"연간 총 토큰","heatmap.3d.modal.stats.precision_total_tokens":"정확한 연간 소비량","heatmap.3d.modal.stats.estimated_cost":"연간 예상 비용","heatmap.3d.modal.stats.active_rate_days":"활동 비율 / 일수","heatmap.3d.modal.stats.max_streak":"최장 연속 활동","heatmap.3d.modal.stats.days_suffix":"일","heatmap.3d.modal.stats.peak_day":"단일 최고 폭발","heatmap.3d.modal.stats.precision_peak_value":"정확한 일일 최고치","heatmap.3d.modal.stats.no_data":"데이터 없음","heatmap.3d.modal.legend.title":"활동 단계","heatmap.3d.modal.palette.emerald":"에메랄드 시티","heatmap.3d.modal.palette.ocean":"심해의 심연","heatmap.3d.modal.palette.neon":"사이버 네온","heatmap.3d.modal.palette.amber":"타오르는 호박빛","heatmap.3d.modal.control.play":"느린 자동 회전 시작","heatmap.3d.modal.control.pause":"자동 회전 일시정지","heatmap.3d.modal.control.reset":"3D 시점 초기화","heatmap.3d.modal.footer.tip":"핀치 확대 / 스크롤 확대 / 드래그로 3D 차트 회전","heatmap.3d.modal.ai.title.default":"꾸준한 창작자","heatmap.3d.modal.ai.eval.default":"기술의 강물 속에서 꾸준히 나아가세요. 매일의 코딩이 늘 웅장하지는 않더라도, 작은 활동 하나하나가 당신의 사고와 탐구를 기록합니다. 불꽃이 모여 결국 당신만의 디지털 바다로 수렴합니다.","heatmap.3d.modal.ai.title.peak":"최고 기여자","heatmap.3d.modal.ai.eval.peak":"올 한 해, 당신의 토큰 산출량은 극도로 높은 엔지니어링 밀도를 보여줍니다. 이 정도 규모의 개발은 중대형 시스템 기반의 리팩터링에 깊이 참여한 것과 맞먹으며, 키 입력 하나하나가 복잡한 로직을 결정론적 코드로 수렴시킵니다. 순수한 엔지니어링 열정의 증거입니다.","heatmap.3d.modal.ai.title.heavy":"고생산 개발자","heatmap.3d.modal.ai.eval.heavy":"탁월한 지속적 산출. 누적된 토큰이 수백만 개에 달하며, 이는 수십 편의 기술 중편 소설 분량에 해당합니다. 고도로 밀도 높은 코딩 리듬은 디지털 자산을 구축하는 당신의 뛰어난 실행력을 보여줍니다.","heatmap.3d.modal.ai.title.core":"핵심 생산성 전문가","heatmap.3d.modal.ai.eval.core":"매우 견고한 장기적 헌신. 지난 한 해 동안 당신은 고강도의 개발 리듬을 꾸준히 유지해 왔습니다. 탄탄한 코드 분량과 토큰 산출로 묵묵히 핵심 아키텍처를 쌓아 올린, 진정한 엔지니어링의 기둥입니다.","heatmap.3d.modal.ai.title.steady":"안정적인 개발자","heatmap.3d.modal.ai.eval.steady":"착실하고 굳건한 기술 축적. 토큰이 늘어나는 한 걸음 한 걸음이 미래의 기반을 다지는 벽돌입니다. 이 느리지만 꾸준한 리듬이야말로 뛰어난 개발자가 엔지니어링의 대가로 나아가는 길입니다.","heatmap.3d.voxel.joke.1":"🔥 완전 미쳤어요! {{value}} tokens 산출! 대형 언어 모델을 훈련하는 건가요, 아니면 직접 컴파일러를 만드는 건가요?","heatmap.3d.voxel.joke.2":"🚀 서사시급 산출! 총 {{value}} tokens. 오늘의 산출량이면 지구를 한 바퀴 돌 수 있어요. AI마저 당신에게 놀랐습니다!","heatmap.3d.voxel.joke.3":"⚡ 폭발의 날! {{value}} tokens. 코드가 샘솟아 키보드에서 연기가 나기 시작합니다!","heatmap.3d.voxel.level3":"⚡ 생산성 대폭발 ({{value}} tokens)! 높은 효율과 집중력, 이 최고의 상태를 계속 유지하세요!","heatmap.3d.voxel.level2":"🌱 점점 무르익는 중 ({{value}} tokens)! 꾸준한 산출, 키 입력 하나하나가 아키텍처에 기여하고 있습니다.","heatmap.3d.voxel.level1":"🍃 티끌 모아 태산 ({{value}} tokens). 작은 커밋도 미래에 대한 투자입니다. 복리의 힘을 받아들이세요!","heatmap.3d.voxel.level0":"💤 재충전 중. 코딩하지 않는 날에도 영감은 조용히 자라납니다.","ipcheck.page.title":"Claude IP 확인","ipcheck.page.subtitle":"Claude에 접속하는 출구 IP와 함께 평판, 지리 정보, 로그인에 영향을 주거나 사용 제한을 유발할 수 있는 위험 신호를 점검하세요.","ipcheck.mask.toggle":"IP 숨기기","ipcheck.ipv6.warn":"IPv6가 감지되었습니다. IPv6로 Claude Code에 접속하는 것은 권장하지 않으며, 일부 검사 결과가 불완전할 수 있습니다.","ipcheck.ip.cn":"중국 출구 IPv4","ipcheck.ip.cloudflare":"Cloudflare 출구","ipcheck.ip.claude":"Claude 출구","ipcheck.ip.failed":"가져올 수 없음","ipcheck.ip.loading":"불러오는 중...","ipcheck.trust.title":"신뢰 점수","ipcheck.trust.subtitle":"Claude 위험 관리 관점에서의 IP 청결도","ipcheck.trust.no_data":"데이터 없음","ipcheck.trust.no_ip":"Claude 출구 IP가 감지되지 않아 점수를 매길 수 없습니다","ipcheck.trust.no_score":"이 IP에 대한 점수 데이터가 없습니다","ipcheck.trust.gauge.low":"0 고위험","ipcheck.trust.gauge.high":"100 신뢰됨","ipcheck.trust.label.pristine":"매우 깨끗함","ipcheck.trust.label.clean":"깨끗함","ipcheck.trust.label.good":"양호","ipcheck.trust.label.neutral":"중립","ipcheck.trust.label.suspicious":"의심스러움","ipcheck.trust.label.unreachable":"접근 불가","ipcheck.trust.text.excellent":"평판이 매우 우수함","ipcheck.trust.text.great":"평판이 우수함","ipcheck.trust.text.minor":"경미한 위험","ipcheck.trust.text.moderate":"보통 수준의 위험","ipcheck.trust.text.severe":"심각한 위험","ipcheck.trust.text.restricted":"제한 지역 — Claude가 엄격한 위험 관리를 적용합니다","ipcheck.trust.region_warn.title":"Claude 출구 IP가 {{region}}에 있습니다","ipcheck.trust.region_warn.body":"로그인을 피하세요. 계정 플래그 처리를 유발할 가능성이 높습니다.","ipcheck.trust.region_support":"Claude 지원 지역","ipcheck.trust.region.accessible":"접근 가능","ipcheck.common.unknown":"알 수 없음","ipcheck.props.title":"IP 속성","ipcheck.props.region":"지역","ipcheck.props.city":"도시","ipcheck.props.type":"유형","ipcheck.props.asn":"ASN","ipcheck.props.org":"ISP","ipcheck.props.residential":"가정용","ipcheck.props.datacenter":"데이터센터","ipcheck.security.title":"보안 검사","ipcheck.security.vpn":"VPN","ipcheck.security.proxy":"프록시","ipcheck.security.tor":"Tor","ipcheck.security.crawler":"크롤러","ipcheck.security.abuser":"악용 이력","ipcheck.security.proxy_flag":"프록시","ipcheck.security.crawler_yes":"예","ipcheck.security.crawler_no":"아니요","ipcheck.security.abuser_yes":"기록 있음","ipcheck.security.abuser_no":"기록 없음","ipcheck.security.clean":"감지되지 않음","ipcheck.avail.title":"Claude 가용성","ipcheck.avail.tooltip":"Claude 서버는 미국에 있으므로 아시아에서 100ms를 초과하는 지연은 정상입니다.","ipcheck.avail.refresh":"새로고침","ipcheck.avail.svc_row":"서비스 상태","ipcheck.avail.latency.normal":"정상","ipcheck.avail.latency.good":"양호","ipcheck.avail.latency.slow":"느림","ipcheck.avail.latency.unreachable":"접근 불가","ipcheck.avail.svc.none":"모든 시스템 정상","ipcheck.avail.svc.minor":"경미한 장애","ipcheck.avail.svc.major":"주요 장애","ipcheck.avail.svc.critical":"심각한 장애","ipcheck.avail.svc.maintenance":"점검 중","ipcheck.avail.svc.other":"서비스 이상","ipcheck.dns.title":"DNS 누출","ipcheck.dns.status":"상태","ipcheck.dns.outlet":"DNS 출구","ipcheck.dns.outlet_ip":"DNS 출구 IP","ipcheck.dns.isp":"제공업체","ipcheck.dns.leaked":"누출 가능성 있음","ipcheck.dns.no_leak":"누출이 감지되지 않음","ipcheck.dns.encrypted":"DNS 암호화 또는 비노출","ipcheck.dns.cn_tag":"중국 DNS","ipcheck.udp.title":"WebRTC UDP 누출","ipcheck.udp.status":"상태","ipcheck.udp.outlet":"UDP 출구","ipcheck.udp.outlet_ip":"UDP 출구 IP","ipcheck.udp.origin":"출처","ipcheck.udp.disabled":"WebRTC 비활성화됨","ipcheck.udp.no_leak":"누출이 감지되지 않음","ipcheck.udp.leaked":"누출 가능성 있음","ipcheck.udp.anomaly":"이상","ipcheck.device.title":"기기 정보","ipcheck.device.tz":"시간대","ipcheck.device.lang":"언어","ipcheck.device.os":"OS / 브라우저","ipcheck.device.touch":"터치","ipcheck.device.net":"네트워크 유형","ipcheck.device.dnt":"Do Not Track","ipcheck.device.webgl_render":"WebGL 렌더러","ipcheck.device.canvas_fp":"Canvas 지문","ipcheck.device.webgl_fp":"WebGL 지문","ipcheck.device.match":"일치","ipcheck.device.mismatch":"불일치","ipcheck.device.local":"로컬","ipcheck.device.estimate_suffix":"(추정)","ipcheck.device.diff_equal":"약간의 오차","ipcheck.device.diff_ahead":"Claude가 {{h}}시간 빠름","ipcheck.device.diff_behind":"Claude가 {{h}}시간 느림","ipcheck.device.lang_expected":"Claude 지역 일반적","ipcheck.device.touch_yes":"예","ipcheck.device.touch_no":"아니요","ipcheck.device.dnt_on":"켜짐","ipcheck.device.dnt_off":"꺼짐","ipcheck.device.dnt_unset":"설정 안 됨","ipcheck.device.net_unsupported":"감지되지 않음","ipcheck.device.unsupported":"지원되지 않음","ipcheck.history.title":"Claude 출구 IP 기록","ipcheck.history.subtitle":"이 브라우저에만 저장되며 최대 6개까지 보관됩니다","ipcheck.history.clear":"지우기","ipcheck.history.empty":"아직 기록이 없습니다","ipcheck.history.current":"현재","ipcheck.region.CN":"중국 본토","ipcheck.region.HK":"홍콩","ipcheck.region.MO":"마카오","ipcheck.region.RU":"러시아","ipcheck.region.KP":"북한","ipcheck.region.IR":"이란","ipcheck.region.SY":"시리아","ipcheck.region.CU":"쿠바","ipcheck.region.BY":"벨라루스","ipcheck.region.VE":"베네수엘라","local_only.title":"앱에서 사용 가능","local_only.body":"이 페이지는 사용자의 컴퓨터에 있는 데이터를 읽으므로 Mac 앱 또는 CLI 대시보드에서만 작동합니다.","local_only.open_app":"Mac 앱에서 열기","local_only.download":"Mac 앱 받기","dashboard.auth_gate.title":"Token Tracker 로그인","dashboard.auth_gate.subtitle":"로그인하여 클라우드에서 API 사용량, 비용 및 토큰 소비 트렌드를 동기화하고 확인하세요.","dashboard.auth_gate.button":"로그인","shared.app_name":"Token Tracker","dashboard.auth_gate.hero_title":"AI 에이전트의 모든 토큰 소비","dashboard.auth_gate.hero_subtitle":"명확하고 투명한 멀티 엔드포인트 제어","dashboard.auth_gate.desc":"Claude Code, Cursor, Gemini CLI 등 모든 주류 에이전트의 토큰 쿼터, 동시 실행 비용 및 대기 시간 통계를 퍼블릭 클라우드에서 안전하게 동기화하여 전례 없는 종합 시각화 분석을 제공합니다.","dashboard.auth_gate.feature.sync.title":"실시간 클라우드 동기화","dashboard.auth_gate.feature.sync.desc":"각 엔드포인트의 실행 비용을 자동으로 수집하고 프라이빗 클라우드에 단 몇 초 만에 안전하게 아카이브합니다.","dashboard.auth_gate.feature.anal.title":"다차원 대시보드 분석","dashboard.auth_gate.feature.anal.desc":"모델 분류, 시간 프레임별로 토큰 분포를 통계하여 비용 급증 및 소비 구성을 언제든지 추적할 수 있습니다.","dashboard.auth_gate.feature.guard.title":"로컬 우선의 자율성","dashboard.auth_gate.feature.guard.desc":"Localhost 모드에서는 모든 로그인 인증을 자동으로 건너뛰어 로컬 오프라인 디버깅 경험을 완벽하게 보호합니다."};function fk(){return typeof window>"u"?null:window.localStorage||null}function Ao(e,{storage:t}={}){const a=t??fk();if(!a||typeof a.getItem!="function")return null;try{return a.getItem(e)}catch{return null}}function Mo(e,t,{storage:a}={}){const i=a??fk();if(!i||typeof i.setItem!="function")return!1;try{return i.setItem(e,t),!0}catch{return!1}}const pk="tokentracker-locale",Ei="system",Wl="en",mk="zh-CN",gk="zh-TW",vk="ja",yk="ko",VP=/^zh[-_](hant|tw|hk|mo)\b/i;function kk(e){return/^zh(?:[-_]|$)/i.test(e)?VP.test(e)?gk:mk:/^ja(?:[-_]|$)/i.test(e)?vk:/^ko(?:[-_]|$)/i.test(e)?yk:null}function bk(e){return typeof e!="string"?Wl:kk(e.trim())||Wl}function hc(e){return e===Ei?Ei:bk(e)}function FP(){return typeof navigator>"u"?[]:Array.isArray(navigator.languages)&&navigator.languages.length?navigator.languages.filter(e=>typeof e=="string"):typeof navigator.language=="string"?[navigator.language]:[]}function $l(e,t=FP()){const a=hc(e);if(a!==Ei)return a;const i=t.map(s=>typeof s=="string"?s.trim():"").find(s=>s.length>0);return i&&kk(i)||Wl}function Uh(){return hc(Ao(pk)||Ei)}function UP(e){return Mo(pk,hc(e))}const BP=["key","module","page","component","slot","text"],HP={[mk]:{...IP,...AP},[gk]:{...MP,...LP},[vk]:{...NP,...jP},[yk]:{...OP,...zP}};let cd=null,Bh=$l(Uh());function WP(e){const t=[];let a=[],i="",s=!1;for(let c=0;c<e.length;c+=1){const u=e[c];if(s){u==='"'?e[c+1]==='"'?(i+='"',c+=1):s=!1:i+=u;continue}if(u==='"'){s=!0;continue}if(u===","){a.push(i),i="";continue}if(u===`
685
687
  `){a.push(i),i="",a.every(d=>d.trim()==="")||t.push(a),a=[];continue}u!=="\r"&&(i+=u)}return a.push(i),a.every(c=>c.trim()==="")||t.push(a),t}function $P(e){const t=WP(e);if(!t.length)return{map:new Map,rows:[]};const a=t[0].map(d=>String(d).trim());if(BP.filter(d=>!a.includes(d)).length)return{map:new Map,rows:[]};const s=Object.fromEntries(a.map((d,p)=>[d,p])),c=[],u=new Map;return t.slice(1).forEach((d,p)=>{const f={key:String(d[s.key]||"").trim(),module:String(d[s.module]||"").trim(),page:String(d[s.page]||"").trim(),component:String(d[s.component]||"").trim(),slot:String(d[s.slot]||"").trim(),text:String(d[s.text]??"").trim()};f.key&&(u.has(f.key),u.set(f.key,f),c.push(f))}),{map:u,rows:c}}function GP(){return cd||(cd=$P(DP)),cd}function KP(){return HP[Bh]||{}}function YP(e){const t=KP()[String(e)];return typeof t=="string"&&t.trim()?t:null}function XP(e,t){return t?e.replace(/\{\{(\w+)\}\}/g,(a,i)=>t[i]==null?a:String(t[i])):e}function ZP(e){return String(e).replace(/\\n/g,`
686
- `)}function qP(e,t){return YP(t)||e?.text||t}function QP(e){Bh=bk(e)}function U5(){return Bh}function He(e,t){const i=GP().map.get(e);return XP(ZP(qP(i,e)),t)}const Bg="tokentracker_native_app";let _k=null;const Fd=new Set;typeof window<"u"&&window.addEventListener("native:systemAppearanceChanged",e=>{const t=e?.detail?.isDark;if(typeof t=="boolean"){_k=t;try{const a=document.documentElement;t?a.classList.add("dark"):a.classList.remove("dark")}catch{}Fd.forEach(a=>{try{a(t)}catch{}})}});function Hg(){return _k}function JP(e){return Fd.add(e),()=>Fd.delete(e)}function Hh(){if(typeof window>"u")return!1;try{if(new URLSearchParams(window.location.search).get("app")==="1"){try{window.localStorage.setItem(Bg,"1")}catch{}return!0}return window.localStorage.getItem(Bg)==="1"}catch{return!1}}function Un(){return typeof window>"u"?!1:!!window.webkit?.messageHandlers?.nativeBridge}function wk(){return typeof window>"u"?!1:!!window.chrome?.webview&&Hh()}function xk(){return typeof window>"u"?null:window.webkit?.messageHandlers?.nativeBridge??null}function B5(){return!!xk()}function ns(e){const t=xk();if(!t)return!1;try{return t.postMessage(e),!0}catch(a){return console.warn("[tokentracker] nativeBridge post failed:",a),!1}}function H5(){return ns({type:"getSettings"})}function Lo(e,t){return ns({type:"setSetting",key:e,value:t})}function W5(e){return ns({type:"action",name:e})}function eS(){return ns({type:"getSystemAppearance"})}function tS(e,t){if(!Un())return;ns({type:"setChromeAppearance",isDark:e==="dark",theme:t??"system"})}function $5(e){if(typeof window>"u")return()=>{};const t=a=>{a&&a.detail&&typeof a.detail=="object"&&e(a.detail)};return window.addEventListener("native:settings",t),()=>window.removeEventListener("native:settings",t)}const Pk=k.createContext(null);function nS(){return $l(Uh())}function rS(e){typeof document>"u"||(document.documentElement.lang=e)}function Wg(e,t){QP(e),t(a=>a===e?a:e)}function aS({children:e}){const[t,a]=k.useState(Uh),[i,s]=k.useState(nS);k.useLayoutEffect(()=>{rS(i)},[i]),k.useLayoutEffect(()=>{Un()&&Lo("locale",t)},[t]),k.useLayoutEffect(()=>{if(t!==Ei||typeof window>"u")return;const d=()=>Wg($l(Ei),s);return window.addEventListener("languagechange",d),()=>window.removeEventListener("languagechange",d)},[t]);const c=k.useCallback(d=>{const p=hc(d);Wg($l(p),s),a(p),UP(p),Un()&&Lo("locale",p)},[]),u=k.useMemo(()=>({locale:t,setLocale:c,resolvedLocale:i}),[t,i,c]);return L.jsx(Pk.Provider,{value:u,children:e})}const Wo="USD",Wh=["USD","EUR","GBP","CNY","JPY","HKD"],Sk={USD:{symbol:"$",labelKey:"settings.appearance.currency.opt.usd"},EUR:{symbol:"€",labelKey:"settings.appearance.currency.opt.eur"},GBP:{symbol:"£",labelKey:"settings.appearance.currency.opt.gbp"},CNY:{symbol:"¥",labelKey:"settings.appearance.currency.opt.cny"},JPY:{symbol:"¥",labelKey:"settings.appearance.currency.opt.jpy"},HKD:{symbol:"HK$",labelKey:"settings.appearance.currency.opt.hkd"}},$h={USD:1,EUR:.92,GBP:.79,CNY:7.2,JPY:155,HKD:7.8},Ck="tokentracker-currency",Tk="tokentracker-exchange-rates",Ek="tokentracker-exchange-rate-source",Rk="tokentracker-exchange-rate-fetched-at";function Gl(e){return typeof e=="number"&&Number.isFinite(e)&&e>0}function Gh(e){if(typeof e!="string")return Wo;const t=e.trim().toUpperCase();return Wh.includes(t)?t:Wo}function ud(e){const t=typeof e=="string"?e.trim().toUpperCase():Wo;return Sk[t]?.symbol??"$"}function G5(){return Wh.map(e=>({code:e,...Sk[e]}))}function iS(){return Gh(Ao(Ck))}function oS(e){return Mo(Ck,Gh(e))}function Dk(e){return e==="fetched"?"fetched":"default"}function sS(e){if(e==null)return null;try{const t=JSON.parse(String(e));if(!t||typeof t!="object")return null;const a={};for(const[i,s]of Object.entries(t)){const c=Number(s);Number.isFinite(c)&&c>0&&(a[i.toUpperCase()]=c)}return a}catch{return null}}function lS(){const e=sS(Ao(Tk)),t=Ao(Rk),a=t==null?NaN:Number(t),i=Number.isFinite(a)&&a>0?a:null,s=Ao(Ek),c=Dk(s);return e&&Object.keys(e).length>0?{rates:{USD:1,...e},source:c,fetchedAt:i}:{rates:{...$h},source:"default",fetchedAt:null}}function cS(e){const{rates:t,source:a,fetchedAt:i}=e;if(!t||typeof t!="object")return!1;const s=Mo(Tk,JSON.stringify(t)),c=Mo(Ek,Dk(a)),u=i?Mo(Rk,String(i)):!0;return s&&c&&u}function dd(e,t){if(t===Wo)return 1;const a=e?.[t];if(Gl(a))return a;const i=$h[t];return Gl(i)?i:1}const uS="https://open.er-api.com/v6/latest/USD",dS=1440*60*1e3,hS=5e3;function fS(e,t=dS,a=Date.now()){return!e||!Number.isFinite(e)?!0:a-e>t}async function pS(e={}){const{timeoutMs:t=hS,fetchImpl:a,url:i=uS,codes:s=Wh}=e,c=a??(typeof fetch<"u"?fetch:null);if(!c)throw new Error("fetch is not available");const u=typeof AbortController<"u"?new AbortController:null,d=u?setTimeout(()=>u.abort(),t):null;try{const p=await c(i,u?{signal:u.signal}:void 0);if(!p||!p.ok)throw new Error(`exchange rate fetch failed: ${p?.status??"no-response"}`);const g=(await p.json())?.rates;if(!g||typeof g!="object")throw new Error("exchange rate response missing rates");const v={USD:1};for(const y of s){if(y==="USD")continue;const _=g[y];Gl(_)&&(v[y]=_)}if(Object.keys(v).length<=1)throw new Error("no supported currency rates in response");return{rates:v,fetchedAt:Date.now()}}finally{d&&clearTimeout(d)}}const mS=k.createContext(null);function $g(e,t,a){Un()&&(Lo("currency",e),Lo("currencySymbol",a),Gl(t)&&Lo("exchangeRate",t))}function gS({children:e}){const[t,a]=k.useState(iS),i=k.useMemo(()=>lS(),[]),[s,c]=k.useState(i.rates),[u,d]=k.useState(i.source),[p,f]=k.useState(i.fetchedAt),g=k.useRef(!1),v=k.useRef(!1),y=k.useCallback((j,I,D)=>{c(j),d(I),f(D),cS({rates:j,source:I,fetchedAt:D})},[]),_=k.useCallback(async()=>{if(!g.current){g.current=!0;try{const{rates:j,fetchedAt:I}=await pS();y({...$h,...j},"fetched",I)}catch{}finally{g.current=!1}}},[y]),w=k.useCallback(j=>{const I=Gh(j);a(I),oS(I);const D=dd(s,I),B=ud(I);$g(I,D,B)},[s]);k.useEffect(()=>{v.current||t!==Wo&&fS(p)&&(v.current=!0,_())},[t,p,_]),k.useEffect(()=>{const j=dd(s,t),I=ud(t);$g(t,j,I)},[t,s]);const P=k.useMemo(()=>dd(s,t),[s,t]),S=k.useMemo(()=>ud(t),[t]),N=k.useMemo(()=>({currency:t,rate:P,symbol:S,rates:s,rateSource:u,rateFetchedAt:p,setCurrency:w}),[t,P,S,s,u,p,w]);return L.jsx(mS.Provider,{value:N,children:e})}const vS="modulepreload",yS=function(e){return"/"+e},Gg={},oa=function(t,a,i){let s=Promise.resolve();if(a&&a.length>0){let p=function(f){return Promise.all(f.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");s=p(a.map(f=>{if(f=yS(f),f in Gg)return;Gg[f]=!0;const g=f.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${v}`))return;const y=document.createElement("link");if(y.rel=g?"stylesheet":vS,g||(y.as="script"),y.crossOrigin="",y.href=f,d&&y.setAttribute("nonce",d),document.head.appendChild(y),g)return new Promise((_,w)=>{y.addEventListener("load",_),y.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${f}`)))})}))}function c(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return s.then(u=>{for(const d of u||[])d.status==="rejected"&&c(d.reason);return t().catch(c)})};const Ik=(...e)=>e.filter((t,a,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===a).join(" ").trim();const kS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const bS=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,i)=>i?i.toUpperCase():a.toLowerCase());const Kg=e=>{const t=bS(e);return t.charAt(0).toUpperCase()+t.slice(1)};var hd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const _S=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},wS=k.createContext({}),xS=()=>k.useContext(wS),PS=k.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:i,className:s="",children:c,iconNode:u,...d},p)=>{const{size:f=24,strokeWidth:g=2,absoluteStrokeWidth:v=!1,color:y="currentColor",className:_=""}=xS()??{},w=i??v?Number(a??g)*24/Number(t??f):a??g;return k.createElement("svg",{ref:p,...hd,width:t??f??hd.width,height:t??f??hd.height,stroke:e??y,strokeWidth:w,className:Ik("lucide",_,s),...!c&&!_S(d)&&{"aria-hidden":"true"},...d},[...u.map(([P,S])=>k.createElement(P,S)),...Array.isArray(c)?c:[c]])});const Mt=(e,t)=>{const a=k.forwardRef(({className:i,...s},c)=>k.createElement(PS,{ref:c,iconNode:t,className:Ik(`lucide-${kS(Kg(e))}`,`lucide-${e}`,i),...s}));return a.displayName=Kg(e),a};const SS=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],CS=Mt("chart-column",SS);const TS=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ES=Mt("chevron-left",TS);const RS=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],DS=Mt("chevron-right",RS);const IS=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],AS=Mt("corner-down-left",IS);const MS=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],LS=Mt("gauge",MS);const NS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],jS=Mt("globe",NS);const OS=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],zS=Mt("layout-grid",OS);const VS=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],FS=Mt("menu",VS);const US=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],BS=Mt("monitor",US);const HS=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Ak=Mt("moon",HS);const WS=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],$S=Mt("puzzle",WS);const GS=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],KS=Mt("refresh-cw",GS);const YS=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],XS=Mt("search",YS);const ZS=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],qS=Mt("settings",ZS);const QS=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Mk=Mt("sun",QS);const JS=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],eC=Mt("triangle-alert",JS);const tC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Lk=Mt("x",tC);function nC({children:e,variant:t="primary",size:a="md",onClick:i,disabled:s=!1,className:c="",as:u="button",...d}){const p="inline-flex items-center justify-center font-medium transition-all duration-200 rounded-md focus:outline-none focus:ring-2 focus:ring-oai-blue/30 active:scale-[0.98] active:duration-100",f={primary:"bg-oai-black dark:bg-oai-white text-white dark:text-oai-black border border-transparent hover:bg-oai-gray-800 dark:hover:bg-oai-gray-200 active:bg-oai-gray-900 dark:active:bg-oai-gray-300 disabled:bg-oai-gray-300 dark:disabled:bg-oai-gray-700 disabled:text-oai-gray-500 dark:disabled:text-oai-gray-400 focus:ring-oai-brand/30 transition-colors duration-200",secondary:"bg-oai-white dark:bg-oai-gray-900 text-oai-black dark:text-oai-white border border-oai-gray-300 dark:border-oai-gray-700 hover:border-oai-brand hover:text-oai-brand active:bg-oai-gray-50 dark:active:bg-oai-gray-800 active:border-oai-brand-dark disabled:text-oai-gray-400 dark:disabled:text-oai-gray-500 disabled:border-oai-gray-200 dark:disabled:border-oai-gray-700 focus:ring-oai-brand/30 transition-colors duration-200",ghost:"bg-transparent text-oai-gray-600 dark:text-oai-gray-300 border border-transparent hover:text-oai-brand hover:bg-oai-brand-50/50 dark:hover:bg-oai-brand-950/30 active:bg-oai-brand-50 dark:active:bg-oai-brand-900/50 disabled:text-oai-gray-400 dark:disabled:text-oai-gray-500 focus:ring-oai-brand/30 transition-colors duration-200"},g={sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-sm",lg:"h-12 px-6 text-base"},v=s?"cursor-not-allowed opacity-60":"cursor-pointer",y=`${p} ${f[t]} ${g[a]} ${v} ${c}`;return L.jsx(u,{className:y,onClick:i,disabled:s,...d,children:e})}class rC extends Sh.Component{constructor(t){super(t),this.state={error:null},this.handleReload=this.handleReload.bind(this)}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,a){console.error("ErrorBoundary caught an error:",t)}handleReload(){typeof window>"u"||window.location.reload()}render(){const{error:t}=this.state;if(!t)return this.props.children;const a=String(t?.message||t||""),i=a?He("shared.error.prefix",{error:a}):He("error.boundary.no_details");return L.jsx("div",{className:"flex min-h-screen items-center justify-center bg-oai-white p-6 font-oai text-oai-black antialiased dark:bg-oai-gray-950 dark:text-oai-white",children:L.jsxs("div",{className:"w-full max-w-lg rounded-xl border border-oai-gray-200 bg-white p-6 text-center shadow-sm dark:border-oai-gray-800 dark:bg-oai-gray-900",children:[L.jsx("div",{className:"mx-auto flex h-10 w-10 items-center justify-center rounded-full bg-amber-50 text-amber-600 dark:bg-amber-950/30 dark:text-amber-300",children:L.jsx(eC,{className:"h-5 w-5","aria-hidden":!0})}),L.jsx("div",{className:"mt-4 text-xs font-medium uppercase text-oai-gray-500 dark:text-oai-gray-400",children:He("error.boundary.title")}),L.jsx("h1",{className:"mt-2 text-xl font-semibold text-oai-black dark:text-white",children:He("error.boundary.subtitle")}),L.jsx("p",{className:"mt-2 text-sm text-oai-gray-500 dark:text-oai-gray-400",children:He("error.boundary.hint")}),L.jsx("div",{className:"mt-4 max-h-32 overflow-auto rounded-lg border border-oai-gray-200 bg-oai-gray-50 px-3 py-2 text-left text-xs leading-5 text-oai-gray-600 dark:border-oai-gray-800 dark:bg-oai-gray-950 dark:text-oai-gray-300",children:i}),L.jsxs(nC,{type:"button",size:"md",onClick:this.handleReload,className:"mt-5",children:[L.jsx(KS,{className:"mr-2 h-4 w-4","aria-hidden":!0}),He("error.boundary.action.reload")]})]})})}}function Nk(){const e=k.useContext(Pk);if(e===null)throw new Error("useLocale must be used within a LocaleProvider");return e}const Ud="tokentracker-theme",jk=k.createContext(null);function aC(){if(typeof window>"u")return"system";try{const e=localStorage.getItem(Ud);if(e==="light"||e==="dark"||e==="system")return e}catch{}return"system"}function kl(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function iC(e){if(typeof document>"u")return;const t=document.documentElement;e==="dark"?t.classList.add("dark"):t.classList.remove("dark")}function oC({children:e}){const[t,a]=k.useState(aC),[i,s]=k.useState(()=>{if(t!=="system")return t;if(Un()){const f=Hg();if(typeof f=="boolean")return f?"dark":"light"}return kl()}),c=k.useRef(t);k.useEffect(()=>{c.current=t},[t]),k.useEffect(()=>{iC(i)},[i]),k.useLayoutEffect(()=>{if(t==="system"){if(Un()){const f=Hg();s(typeof f=="boolean"?f?"dark":"light":kl()),eS();return}s(kl())}else s(t)},[t]),k.useEffect(()=>Un()?JP(g=>{c.current==="system"&&s(g?"dark":"light")}):void 0,[]),k.useEffect(()=>{if(typeof window>"u"||t!=="system"||Un())return;const f=window.matchMedia("(prefers-color-scheme: dark)"),g=v=>{const y=v.matches?"dark":"light";s(y)};return f.addEventListener?(f.addEventListener("change",g),()=>f.removeEventListener("change",g)):(f.addListener(g),()=>f.removeListener(g))},[t]),k.useEffect(()=>{const f=t==="system"&&!Un()?kl():i;tS(f,t)},[i,t]);const u=k.useCallback(f=>{if(a(f),typeof window<"u")try{localStorage.setItem(Ud,f)}catch{}},[]),d=k.useCallback(()=>{u(f=>{const g=f==="dark"?"light":"dark";if(typeof window<"u")try{localStorage.setItem(Ud,g)}catch{}return g})},[]),p=k.useMemo(()=>({theme:t,setTheme:u,toggleTheme:d,resolvedTheme:i}),[t,u,d,i]);return L.jsx(jk.Provider,{value:p,children:e})}function sC(){return""}function lC(e=""){if(typeof e!="string"||e.length===0)return!1;const t=new URLSearchParams(e),a=String(t.get("screenshot")||"").toLowerCase();return a==="1"||a==="true"}function Ok(e){var t,a,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(a=Ok(e[t]))&&(i&&(i+=" "),i+=a)}else for(a in e)e[a]&&(i&&(i+=" "),i+=a);return i}function cC(){for(var e,t,a=0,i="",s=arguments.length;a<s;a++)(e=arguments[a])&&(t=Ok(e))&&(i&&(i+=" "),i+=t);return i}const uC=(e,t)=>{const a=new Array(e.length+t.length);for(let i=0;i<e.length;i++)a[i]=e[i];for(let i=0;i<t.length;i++)a[e.length+i]=t[i];return a},dC=(e,t)=>({classGroupId:e,validator:t}),zk=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),Kl="-",Yg=[],hC="arbitrary..",fC=e=>{const t=mC(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return pC(u);const d=u.split(Kl),p=d[0]===""&&d.length>1?1:0;return Vk(d,p,t)},getConflictingClassGroupIds:(u,d)=>{if(d){const p=i[u],f=a[u];return p?f?uC(f,p):p:f||Yg}return a[u]||Yg}}},Vk=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;const s=e[t],c=a.nextPart.get(s);if(c){const f=Vk(e,t+1,c);if(f)return f}const u=a.validators;if(u===null)return;const d=t===0?e.join(Kl):e.slice(t).join(Kl),p=u.length;for(let f=0;f<p;f++){const g=u[f];if(g.validator(d))return g.classGroupId}},pC=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),a=t.indexOf(":"),i=t.slice(0,a);return i?hC+i:void 0})(),mC=e=>{const{theme:t,classGroups:a}=e;return gC(a,t)},gC=(e,t)=>{const a=zk();for(const i in e){const s=e[i];Kh(s,a,i,t)}return a},Kh=(e,t,a,i)=>{const s=e.length;for(let c=0;c<s;c++){const u=e[c];vC(u,t,a,i)}},vC=(e,t,a,i)=>{if(typeof e=="string"){yC(e,t,a);return}if(typeof e=="function"){kC(e,t,a,i);return}bC(e,t,a,i)},yC=(e,t,a)=>{const i=e===""?t:Fk(t,e);i.classGroupId=a},kC=(e,t,a,i)=>{if(_C(e)){Kh(e(i),t,a,i);return}t.validators===null&&(t.validators=[]),t.validators.push(dC(a,e))},bC=(e,t,a,i)=>{const s=Object.entries(e),c=s.length;for(let u=0;u<c;u++){const[d,p]=s[u];Kh(p,Fk(t,d),a,i)}},Fk=(e,t)=>{let a=e;const i=t.split(Kl),s=i.length;for(let c=0;c<s;c++){const u=i[c];let d=a.nextPart.get(u);d||(d=zk(),a.nextPart.set(u,d)),a=d}return a},_C=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,wC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),i=Object.create(null);const s=(c,u)=>{a[c]=u,t++,t>e&&(t=0,i=a,a=Object.create(null))};return{get(c){let u=a[c];if(u!==void 0)return u;if((u=i[c])!==void 0)return s(c,u),u},set(c,u){c in a?a[c]=u:s(c,u)}}},Bd="!",Xg=":",xC=[],Zg=(e,t,a,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:i,isExternal:s}),PC=e=>{const{prefix:t,experimentalParseClassName:a}=e;let i=s=>{const c=[];let u=0,d=0,p=0,f;const g=s.length;for(let P=0;P<g;P++){const S=s[P];if(u===0&&d===0){if(S===Xg){c.push(s.slice(p,P)),p=P+1;continue}if(S==="/"){f=P;continue}}S==="["?u++:S==="]"?u--:S==="("?d++:S===")"&&d--}const v=c.length===0?s:s.slice(p);let y=v,_=!1;v.endsWith(Bd)?(y=v.slice(0,-1),_=!0):v.startsWith(Bd)&&(y=v.slice(1),_=!0);const w=f&&f>p?f-p:void 0;return Zg(c,_,y,w)};if(t){const s=t+Xg,c=i;i=u=>u.startsWith(s)?c(u.slice(s.length)):Zg(xC,!1,u,void 0,!0)}if(a){const s=i;i=c=>a({className:c,parseClassName:s})}return i},SC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((a,i)=>{t.set(a,1e6+i)}),a=>{const i=[];let s=[];for(let c=0;c<a.length;c++){const u=a[c],d=u[0]==="[",p=t.has(u);d||p?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(u)):s.push(u)}return s.length>0&&(s.sort(),i.push(...s)),i}},CC=e=>({cache:wC(e.cacheSize),parseClassName:PC(e),sortModifiers:SC(e),...fC(e)}),TC=/\s+/,EC=(e,t)=>{const{parseClassName:a,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:c}=t,u=[],d=e.trim().split(TC);let p="";for(let f=d.length-1;f>=0;f-=1){const g=d[f],{isExternal:v,modifiers:y,hasImportantModifier:_,baseClassName:w,maybePostfixModifierPosition:P}=a(g);if(v){p=g+(p.length>0?" "+p:p);continue}let S=!!P,N=i(S?w.substring(0,P):w);if(!N){if(!S){p=g+(p.length>0?" "+p:p);continue}if(N=i(w),!N){p=g+(p.length>0?" "+p:p);continue}S=!1}const j=y.length===0?"":y.length===1?y[0]:c(y).join(":"),I=_?j+Bd:j,D=I+N;if(u.indexOf(D)>-1)continue;u.push(D);const B=s(N,S);for(let Z=0;Z<B.length;++Z){const oe=B[Z];u.push(I+oe)}p=g+(p.length>0?" "+p:p)}return p},RC=(...e)=>{let t=0,a,i,s="";for(;t<e.length;)(a=e[t++])&&(i=Uk(a))&&(s&&(s+=" "),s+=i);return s},Uk=e=>{if(typeof e=="string")return e;let t,a="";for(let i=0;i<e.length;i++)e[i]&&(t=Uk(e[i]))&&(a&&(a+=" "),a+=t);return a},DC=(e,...t)=>{let a,i,s,c;const u=p=>{const f=t.reduce((g,v)=>v(g),e());return a=CC(f),i=a.cache.get,s=a.cache.set,c=d,d(p)},d=p=>{const f=i(p);if(f)return f;const g=EC(p,a);return s(p,g),g};return c=u,(...p)=>c(RC(...p))},IC=[],wt=e=>{const t=a=>a[e]||IC;return t.isThemeGetter=!0,t},Bk=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hk=/^\((?:(\w[\w-]*):)?(.+)\)$/i,AC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,MC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,NC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kr=e=>AC.test(e),Oe=e=>!!e&&!Number.isNaN(Number(e)),Yr=e=>!!e&&Number.isInteger(Number(e)),fd=e=>e.endsWith("%")&&Oe(e.slice(0,-1)),kr=e=>MC.test(e),Wk=()=>!0,zC=e=>LC.test(e)&&!NC.test(e),Yh=()=>!1,VC=e=>jC.test(e),FC=e=>OC.test(e),UC=e=>!ve(e)&&!ke(e),BC=e=>sa(e,Kk,Yh),ve=e=>Bk.test(e),Ta=e=>sa(e,Yk,zC),qg=e=>sa(e,ZC,Oe),HC=e=>sa(e,Zk,Wk),WC=e=>sa(e,Xk,Yh),Qg=e=>sa(e,$k,Yh),$C=e=>sa(e,Gk,FC),bl=e=>sa(e,qk,VC),ke=e=>Hk.test(e),xo=e=>Ua(e,Yk),GC=e=>Ua(e,Xk),Jg=e=>Ua(e,$k),KC=e=>Ua(e,Kk),YC=e=>Ua(e,Gk),_l=e=>Ua(e,qk,!0),XC=e=>Ua(e,Zk,!0),sa=(e,t,a)=>{const i=Bk.exec(e);return i?i[1]?t(i[1]):a(i[2]):!1},Ua=(e,t,a=!1)=>{const i=Hk.exec(e);return i?i[1]?t(i[1]):a:!1},$k=e=>e==="position"||e==="percentage",Gk=e=>e==="image"||e==="url",Kk=e=>e==="length"||e==="size"||e==="bg-size",Yk=e=>e==="length",ZC=e=>e==="number",Xk=e=>e==="family-name",Zk=e=>e==="number"||e==="weight",qk=e=>e==="shadow",qC=()=>{const e=wt("color"),t=wt("font"),a=wt("text"),i=wt("font-weight"),s=wt("tracking"),c=wt("leading"),u=wt("breakpoint"),d=wt("container"),p=wt("spacing"),f=wt("radius"),g=wt("shadow"),v=wt("inset-shadow"),y=wt("text-shadow"),_=wt("drop-shadow"),w=wt("blur"),P=wt("perspective"),S=wt("aspect"),N=wt("ease"),j=wt("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...D(),ke,ve],Z=()=>["auto","hidden","clip","visible","scroll"],oe=()=>["auto","contain","none"],x=()=>[ke,ve,p],ee=()=>[Kr,"full","auto",...x()],Y=()=>[Yr,"none","subgrid",ke,ve],ue=()=>["auto",{span:["full",Yr,ke,ve]},Yr,ke,ve],se=()=>[Yr,"auto",ke,ve],q=()=>["auto","min","max","fr",ke,ve],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...x()],ne=()=>[Kr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],V=()=>[Kr,"screen","full","dvw","lvw","svw","min","max","fit",...x()],W=()=>[Kr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],O=()=>[e,ke,ve],E=()=>[...D(),Jg,Qg,{position:[ke,ve]}],$=()=>["no-repeat",{repeat:["","x","y","space","round"]}],de=()=>["auto","cover","contain",KC,BC,{size:[ke,ve]}],fe=()=>[fd,xo,Ta],he=()=>["","none","full",f,ke,ve],pe=()=>["",Oe,xo,Ta],De=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ce=()=>[Oe,fd,Jg,Qg],ut=()=>["","none",w,ke,ve],an=()=>["none",Oe,ke,ve],Xt=()=>["none",Oe,ke,ve],qe=()=>[Oe,ke,ve],Et=()=>[Kr,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[kr],breakpoint:[kr],color:[Wk],container:[kr],"drop-shadow":[kr],ease:["in","out","in-out"],font:[UC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[kr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[kr],shadow:[kr],spacing:["px",Oe],text:[kr],"text-shadow":[kr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Kr,ve,ke,S]}],container:["container"],columns:[{columns:[Oe,ve,ke,d]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:B()}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:oe()}],"overscroll-x":[{"overscroll-x":oe()}],"overscroll-y":[{"overscroll-y":oe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{"inset-s":ee(),start:ee()}],end:[{"inset-e":ee(),end:ee()}],"inset-bs":[{"inset-bs":ee()}],"inset-be":[{"inset-be":ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[Yr,"auto",ke,ve]}],basis:[{basis:[Kr,"full","auto",d,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Oe,Kr,"auto","initial","none",ve]}],grow:[{grow:["",Oe,ke,ve]}],shrink:[{shrink:["",Oe,ke,ve]}],order:[{order:[Yr,"first","last","none",ke,ve]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mbs:[{mbs:Q()}],mbe:[{mbe:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],"inline-size":[{inline:["auto",...V()]}],"min-inline-size":[{"min-inline":["auto",...V()]}],"max-inline-size":[{"max-inline":["none",...V()]}],"block-size":[{block:["auto",...W()]}],"min-block-size":[{"min-block":["auto",...W()]}],"max-block-size":[{"max-block":["none",...W()]}],w:[{w:[d,"screen",...ne()]}],"min-w":[{"min-w":[d,"screen","none",...ne()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",a,xo,Ta]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,XC,HC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fd,ve]}],"font-family":[{font:[GC,WC,t]}],"font-features":[{"font-features":[ve]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ke,ve]}],"line-clamp":[{"line-clamp":[Oe,"none",ke,qg]}],leading:[{leading:[c,...x()]}],"list-image":[{"list-image":["none",ke,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ke,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:[Oe,"from-font","auto",ke,Ta]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[Oe,"auto",ke,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ke,ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ke,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:E()}],"bg-repeat":[{bg:$()}],"bg-size":[{bg:de()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yr,ke,ve],radial:["",ke,ve],conic:[Yr,ke,ve]},YC,$C]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-bs":[{"border-bs":pe()}],"border-w-be":[{"border-be":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...De(),"hidden","none"]}],"divide-style":[{divide:[...De(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-bs":[{"border-bs":O()}],"border-color-be":[{"border-be":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...De(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Oe,ke,ve]}],"outline-w":[{outline:["",Oe,xo,Ta]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",g,_l,bl]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",v,_l,bl]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[Oe,Ta]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",y,_l,bl]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[Oe,ke,ve]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Oe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ce()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":Ce()}],"mask-image-t-to-pos":[{"mask-t-to":Ce()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":Ce()}],"mask-image-r-to-pos":[{"mask-r-to":Ce()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":Ce()}],"mask-image-b-to-pos":[{"mask-b-to":Ce()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":Ce()}],"mask-image-l-to-pos":[{"mask-l-to":Ce()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":Ce()}],"mask-image-x-to-pos":[{"mask-x-to":Ce()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":Ce()}],"mask-image-y-to-pos":[{"mask-y-to":Ce()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[ke,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ce()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[Oe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ce()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:E()}],"mask-repeat":[{mask:$()}],"mask-size":[{mask:de()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ke,ve]}],filter:[{filter:["","none",ke,ve]}],blur:[{blur:ut()}],brightness:[{brightness:[Oe,ke,ve]}],contrast:[{contrast:[Oe,ke,ve]}],"drop-shadow":[{"drop-shadow":["","none",_,_l,bl]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",Oe,ke,ve]}],"hue-rotate":[{"hue-rotate":[Oe,ke,ve]}],invert:[{invert:["",Oe,ke,ve]}],saturate:[{saturate:[Oe,ke,ve]}],sepia:[{sepia:["",Oe,ke,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",ke,ve]}],"backdrop-blur":[{"backdrop-blur":ut()}],"backdrop-brightness":[{"backdrop-brightness":[Oe,ke,ve]}],"backdrop-contrast":[{"backdrop-contrast":[Oe,ke,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Oe,ke,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Oe,ke,ve]}],"backdrop-invert":[{"backdrop-invert":["",Oe,ke,ve]}],"backdrop-opacity":[{"backdrop-opacity":[Oe,ke,ve]}],"backdrop-saturate":[{"backdrop-saturate":[Oe,ke,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",Oe,ke,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ke,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Oe,"initial",ke,ve]}],ease:[{ease:["linear","initial",N,ke,ve]}],delay:[{delay:[Oe,ke,ve]}],animate:[{animate:["none",j,ke,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[P,ke,ve]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:an()}],"rotate-x":[{"rotate-x":an()}],"rotate-y":[{"rotate-y":an()}],"rotate-z":[{"rotate-z":an()}],scale:[{scale:Xt()}],"scale-x":[{"scale-x":Xt()}],"scale-y":[{"scale-y":Xt()}],"scale-z":[{"scale-z":Xt()}],"scale-3d":["scale-3d"],skew:[{skew:qe()}],"skew-x":[{"skew-x":qe()}],"skew-y":[{"skew-y":qe()}],transform:[{transform:[ke,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Et()}],"translate-x":[{"translate-x":Et()}],"translate-y":[{"translate-y":Et()}],"translate-z":[{"translate-z":Et()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ke,ve]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ke,ve]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[Oe,xo,Ta,qg]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},QC=DC(qC);function Tn(...e){return QC(cC(e))}function JC(){const e=k.useContext(jk);if(e===null)throw new Error("useTheme must be used within a ThemeProvider");return e}const Hd="tt.sidebarCollapsed",pd="0.39.39".trim();function Qk(){const e=[{id:"usage",to:"/dashboard",icon:CS,label:He("nav.usage")},{id:"limits",to:"/limits",icon:LS,label:He("nav.limits")}];return[{id:"general",label:He("nav.group.general"),items:e},{id:"tools",label:He("nav.group.tools"),items:[{id:"widgets",to:"/widgets",icon:zS,label:He("nav.widgets")},{id:"skills",to:"/skills",icon:$S,label:He("nav.skills")},{id:"ip-check",to:"/ip-check",icon:jS,label:He("nav.ip_check")}]},{id:"account",label:He("nav.group.account"),items:[{id:"settings",to:"/settings",icon:qS,label:He("nav.settings")}]}]}function e2(){if(typeof window>"u")return!0;try{const e=window.localStorage.getItem(Hd);return e!=="0"}catch{return!0}}function t2(){const[e,t]=k.useState(e2),a=k.useCallback(()=>{t(i=>{const s=!i;try{typeof window<"u"&&window.localStorage.setItem(Hd,s?"1":"0")}catch{}return s})},[]);return k.useEffect(()=>{if(typeof window>"u")return;const i=s=>{s.key===Hd&&t(s.newValue!=="0")};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[]),{collapsed:e,toggle:a}}function n2(e,t){const a=e.replace(/\/+$/,"")||"/";return t==="/dashboard"?a==="/dashboard"||a==="/":a===t}function r2({label:e,collapsed:t,first:a}){return t?a?null:L.jsx("div",{className:"mx-2 my-2 h-px bg-oai-gray-200/70 dark:bg-oai-gray-800/70","aria-hidden":!0}):L.jsx("div",{className:Tn("px-3 pb-1 text-[10px] uppercase tracking-wider text-oai-gray-500 dark:text-oai-gray-500",a?"pt-2":"pt-4"),children:e})}function a2({item:e,collapsed:t,active:a,onClick:i}){const s=e.icon;return L.jsxs(dc,{to:e.to,onClick:i,title:t?e.label:void 0,"aria-current":a?"page":void 0,className:Tn("flex items-center gap-2 rounded-md px-2 py-1.5 text-[13px] no-underline transition-colors",t&&"justify-center px-0 py-2",a?"bg-oai-gray-200/70 text-oai-black font-medium dark:bg-oai-gray-800 dark:text-white":"text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/50 hover:text-oai-black dark:hover:bg-oai-gray-800/60 dark:hover:text-white"),children:[L.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:L.jsx(s,{className:"h-[15px] w-[15px]","aria-hidden":!0})}),!t&&L.jsx("span",{className:"truncate",children:e.label})]})}function i2({collapsed:e}){if(!pd)return null;const t=He("nav.version",{version:pd});return L.jsx("div",{className:Tn("px-2 text-[10px] font-medium tabular-nums text-oai-gray-400 dark:text-oai-gray-600",e?"text-center":"truncate"),title:t,"aria-label":t,children:`v${pd}`})}function o2({as:e="button",title:t,onClick:a,href:i,children:s,className:c,...u}){const d=Tn("flex h-10 w-10 items-center justify-center rounded-lg text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white transition-colors no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",c);return e==="a"?L.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",title:t,"aria-label":t,className:d,...u,children:s}):L.jsx("button",{type:"button",title:t,"aria-label":t,onClick:a,className:d,...u,children:s})}const s2=[{value:"light",label:"Light",Icon:Mk},{value:"dark",label:"Dark",Icon:Ak},{value:"system",label:"System",Icon:BS}];function l2({theme:e,resolvedTheme:t,onSetTheme:a,glassChrome:i=!1}){const[s,c]=k.useState(!1),u=k.useRef(null),d=t==="dark"?Ak:Mk;return k.useEffect(()=>{if(!s)return;const p=g=>{u.current&&!u.current.contains(g.target)&&c(!1)},f=g=>{g.key==="Escape"&&c(!1)};return document.addEventListener("mousedown",p),document.addEventListener("keydown",f),()=>{document.removeEventListener("mousedown",p),document.removeEventListener("keydown",f)}},[s]),L.jsxs("div",{ref:u,className:"relative",children:[L.jsx("button",{type:"button","aria-label":"Theme","aria-expanded":s,"aria-haspopup":"menu",title:"Theme",onClick:()=>c(p=>!p),className:Tn("inline-flex h-7 w-7 items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",i?"border border-gray-500/20 dark:border-gray-500/30 bg-gray-500/[0.04] dark:bg-gray-500/[0.06] backdrop-blur-[2px] text-oai-gray-700 dark:text-oai-gray-300 hover:bg-gray-500/10 dark:hover:bg-gray-500/12 hover:border-gray-500/30 dark:hover:border-gray-500/40 hover:text-oai-black dark:hover:text-white":"border border-oai-gray-200 dark:border-oai-gray-700 text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white hover:border-oai-gray-300 dark:hover:border-oai-gray-600"),children:L.jsx(d,{className:"h-3.5 w-3.5","aria-hidden":!0})}),s&&L.jsx("div",{role:"menu",className:"absolute bottom-full left-0 mb-2 z-50 min-w-[140px] py-1 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-white dark:bg-oai-gray-900 shadow-lg",children:s2.map(({value:p,label:f,Icon:g})=>{const v=e===p;return L.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{a(p),c(!1)},className:Tn("flex w-full items-center gap-2.5 px-3 py-1.5 text-[13px] transition-colors",v?"text-oai-black dark:text-white bg-oai-gray-100 dark:bg-oai-gray-800":"text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-50 dark:hover:bg-oai-gray-800/60 hover:text-oai-black dark:hover:text-white"),children:[L.jsx(g,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}),L.jsx("span",{children:f})]},p)})})]})}function Jk({collapsed:e,onToggleCollapsed:t,onItemClick:a,showCloseButton:i=!1,onClose:s,glassChrome:c=!1}){const d=Hn()?.pathname||"/",{theme:p,resolvedTheme:f,setTheme:g}=JC(),{resolvedLocale:v}=Nk(),y=k.useMemo(()=>Qk(),[v]);return L.jsxs(L.Fragment,{children:[i?L.jsx("div",{className:"flex justify-end px-2 pt-2 pb-2",children:L.jsx("button",{type:"button",onClick:s,"aria-label":He("nav.close_menu"),title:He("nav.close_menu"),className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-oai-gray-500 dark:text-oai-gray-500 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-gray-900 dark:hover:text-oai-gray-200 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",children:L.jsx(Lk,{className:"h-4 w-4",strokeWidth:1.75,"aria-hidden":!0})})}):null,L.jsx("nav",{"aria-label":He("nav.nav_label"),className:"flex-1 px-2 pb-2 flex flex-col overflow-y-auto",children:y.map((_,w)=>L.jsxs("div",{className:"flex flex-col",children:[L.jsx(r2,{label:_.label,collapsed:e,first:w===0}),L.jsx("div",{className:"flex flex-col gap-0.5",children:_.items.filter(P=>!(P.to==="/widgets"&&wk())).map(P=>L.jsx(a2,{item:P,collapsed:e,active:n2(d,P.to),onClick:a},P.id))})]},_.id))}),L.jsxs("div",{className:"px-2 py-3 space-y-2",children:[L.jsx(i2,{collapsed:e}),L.jsxs("div",{className:Tn("flex items-center",e?"flex-col justify-center gap-2":"justify-between gap-2"),children:[L.jsx(l2,{theme:p,resolvedTheme:f,onSetTheme:g,glassChrome:c}),L.jsx("div",{className:"flex items-center gap-1.5",children:!i&&L.jsx("button",{type:"button",onClick:t,"aria-label":He(e?"nav.expand":"nav.collapse"),title:He(e?"nav.expand":"nav.collapse"),className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-oai-gray-500 dark:text-oai-gray-500 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-gray-900 dark:hover:text-oai-gray-200 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",children:e?L.jsx(DS,{className:"h-4 w-4",strokeWidth:1.75,"aria-hidden":!0}):L.jsx(ES,{className:"h-4 w-4",strokeWidth:1.75,"aria-hidden":!0})})})]})]})]})}function c2({collapsed:e,onToggleCollapsed:t}){const a=k.useMemo(()=>typeof window>"u"?!1:Un()||Hh(),[]);return L.jsx("aside",{"aria-label":He("nav.aside_label"),className:Tn("hidden lg:flex flex-col shrink-0 h-full min-h-0 transition-[width] duration-200",e?"w-[72px]":"w-[220px]"),children:L.jsx(Jk,{collapsed:e,onToggleCollapsed:t,glassChrome:a})})}function u2({open:e,onClose:t}){return k.useEffect(()=>{if(!e)return;const a=i=>{i.key==="Escape"&&t()};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,t]),k.useEffect(()=>{if(!e)return;const a=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=a}},[e]),e?L.jsxs("div",{className:"lg:hidden fixed inset-0 z-[80] flex",children:[L.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:t,"aria-hidden":!0}),L.jsx("aside",{"aria-label":He("nav.aside_label"),className:"relative w-[260px] max-w-[80vw] flex flex-col bg-oai-white dark:bg-oai-gray-900 border-r border-oai-gray-200 dark:border-oai-gray-800 shadow-2xl",children:L.jsx(Jk,{collapsed:!1,showCloseButton:!0,onClose:t,onItemClick:t})})]}):null}function d2({onOpenDrawer:e}){return L.jsxs("div",{className:"lg:hidden flex items-center justify-between gap-2 px-3 h-14 border-b border-oai-gray-200 dark:border-oai-gray-800",children:[L.jsx(o2,{title:He("nav.menu"),onClick:e,children:L.jsx(FS,{className:"h-5 w-5","aria-hidden":!0})}),L.jsxs(dc,{to:"/",className:"flex items-center gap-2 no-underline hover:opacity-80 transition-opacity","aria-label":"Token Tracker",children:[L.jsx("img",{src:"/app-icon.png",alt:"",width:24,height:24,className:"rounded-md"}),L.jsx("span",{className:"text-sm font-semibold text-oai-black dark:text-oai-white",children:"Token Tracker"})]}),L.jsx("div",{className:"w-10 shrink-0","aria-hidden":!0})]})}function h2({children:e}){const{collapsed:t,toggle:a}=t2(),[i,s]=k.useState(!1),c=k.useCallback(()=>s(!0),[]),u=k.useCallback(()=>s(!1),[]),d=k.useMemo(()=>typeof window>"u"?!1:Un()||Hh(),[]);return L.jsxs("div",{className:Tn("fixed inset-0 flex flex-col text-oai-black dark:text-oai-white font-sans overflow-hidden",wk()&&"tt-native-glass-shell",d?"bg-transparent":"bg-oai-gray-100 dark:bg-oai-gray-950"),children:[d&&L.jsx("div",{className:"h-7 shrink-0",style:{WebkitAppRegion:"drag"},"aria-hidden":!0}),L.jsxs("div",{className:"flex-1 min-h-0 flex",children:[L.jsx(c2,{collapsed:t,onToggleCollapsed:a}),L.jsx(u2,{open:i,onClose:u}),L.jsx("div",{className:"flex-1 min-w-0 min-h-0 p-2 lg:pl-0 lg:pr-3 lg:pb-3 flex flex-col",children:L.jsxs("div",{className:Tn("flex-1 min-h-0 flex flex-col bg-oai-white dark:bg-oai-gray-900 border border-oai-gray-200 dark:border-oai-gray-800 overflow-hidden",d?"tt-native-main-card":"rounded-2xl",!d&&"shadow-sm"),children:[L.jsx(d2,{onOpenDrawer:c}),L.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:e})]})})]})]})}const Xh=k.createContext({});function Zh(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const f2=typeof window<"u",e0=f2?k.useLayoutEffect:k.useEffect,fc=k.createContext(null);function qh(e,t){e.indexOf(t)===-1&&e.push(t)}function Yl(e,t){const a=e.indexOf(t);a>-1&&e.splice(a,1)}const ar=(e,t,a)=>a>t?t:a<e?e:a;let Qh=()=>{};const na={},t0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function n0(e){return typeof e=="object"&&e!==null}const r0=e=>/^0[^.\s]+$/u.test(e);function a0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Sn=e=>e,p2=(e,t)=>a=>t(e(a)),rs=(...e)=>e.reduce(p2),$o=(e,t,a)=>{const i=t-e;return i===0?1:(a-e)/i};class Jh{constructor(){this.subscriptions=[]}add(t){return qh(this.subscriptions,t),()=>Yl(this.subscriptions,t)}notify(t,a,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,a,i);else for(let c=0;c<s;c++){const u=this.subscriptions[c];u&&u(t,a,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pn=e=>e*1e3,xn=e=>e/1e3;function i0(e,t){return t?e*(1e3/t):0}const o0=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,m2=1e-7,g2=12;function v2(e,t,a,i,s){let c,u,d=0;do u=t+(a-t)/2,c=o0(u,i,s)-e,c>0?a=u:t=u;while(Math.abs(c)>m2&&++d<g2);return u}function as(e,t,a,i){if(e===t&&a===i)return Sn;const s=c=>v2(c,0,1,e,a);return c=>c===0||c===1?c:o0(s(c),t,i)}const s0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,l0=e=>t=>1-e(1-t),c0=as(.33,1.53,.69,.99),ef=l0(c0),u0=s0(ef),d0=e=>e>=1?1:(e*=2)<1?.5*ef(e):.5*(2-Math.pow(2,-10*(e-1))),tf=e=>1-Math.sin(Math.acos(e)),h0=l0(tf),f0=s0(tf),y2=as(.42,0,1,1),k2=as(0,0,.58,1),p0=as(.42,0,.58,1),b2=e=>Array.isArray(e)&&typeof e[0]!="number",m0=e=>Array.isArray(e)&&typeof e[0]=="number",_2={linear:Sn,easeIn:y2,easeInOut:p0,easeOut:k2,circIn:tf,circInOut:f0,circOut:h0,backIn:ef,backInOut:u0,backOut:c0,anticipate:d0},w2=e=>typeof e=="string",ev=e=>{if(m0(e)){Qh(e.length===4);const[t,a,i,s]=e;return as(t,a,i,s)}else if(w2(e))return _2[e];return e},wl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function x2(e,t){let a=new Set,i=new Set,s=!1,c=!1;const u=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function p(g){u.has(g)&&(f.schedule(g),e()),g(d)}const f={schedule:(g,v=!1,y=!1)=>{const w=y&&s?a:i;return v&&u.add(g),w.add(g),g},cancel:g=>{i.delete(g),u.delete(g)},process:g=>{if(d=g,s){c=!0;return}s=!0;const v=a;a=i,i=v,a.forEach(p),a.clear(),s=!1,c&&(c=!1,f.process(g))}};return f}const P2=40;function g0(e,t){let a=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},c=()=>a=!0,u=wl.reduce((I,D)=>(I[D]=x2(c),I),{}),{setup:d,read:p,resolveKeyframes:f,preUpdate:g,update:v,preRender:y,render:_,postRender:w}=u,P=()=>{const I=na.useManualTiming,D=I?s.timestamp:performance.now();a=!1,I||(s.delta=i?1e3/60:Math.max(Math.min(D-s.timestamp,P2),1)),s.timestamp=D,s.isProcessing=!0,d.process(s),p.process(s),f.process(s),g.process(s),v.process(s),y.process(s),_.process(s),w.process(s),s.isProcessing=!1,a&&t&&(i=!1,e(P))},S=()=>{a=!0,i=!0,s.isProcessing||e(P)};return{schedule:wl.reduce((I,D)=>{const B=u[D];return I[D]=(Z,oe=!1,x=!1)=>(a||S(),B.schedule(Z,oe,x)),I},{}),cancel:I=>{for(let D=0;D<wl.length;D++)u[wl[D]].cancel(I)},state:s,steps:u}}const{schedule:Qe,cancel:ra,state:It,steps:md}=g0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Sn,!0);let Ml;function S2(){Ml=void 0}const Kt={now:()=>(Ml===void 0&&Kt.set(It.isProcessing||na.useManualTiming?It.timestamp:performance.now()),Ml),set:e=>{Ml=e,queueMicrotask(S2)}},v0=e=>t=>typeof t=="string"&&t.startsWith(e),y0=v0("--"),C2=v0("var(--"),nf=e=>C2(e)?T2.test(e.split("/*")[0].trim()):!1,T2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tv(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ai={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Go={...Ai,transform:e=>ar(0,1,e)},xl={...Ai,default:1},No=e=>Math.round(e*1e5)/1e5,rf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function E2(e){return e==null}const R2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,af=(e,t)=>a=>!!(typeof a=="string"&&R2.test(a)&&a.startsWith(e)||t&&!E2(a)&&Object.prototype.hasOwnProperty.call(a,t)),k0=(e,t,a)=>i=>{if(typeof i!="string")return i;const[s,c,u,d]=i.match(rf);return{[e]:parseFloat(s),[t]:parseFloat(c),[a]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},D2=e=>ar(0,255,e),gd={...Ai,transform:e=>Math.round(D2(e))},La={test:af("rgb","red"),parse:k0("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:i=1})=>"rgba("+gd.transform(e)+", "+gd.transform(t)+", "+gd.transform(a)+", "+No(Go.transform(i))+")"};function I2(e){let t="",a="",i="",s="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),t+=t,a+=a,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const Wd={test:af("#"),parse:I2,transform:La.transform},is=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),qr=is("deg"),nr=is("%"),ye=is("px"),A2=is("vh"),M2=is("vw"),nv={...nr,parse:e=>nr.parse(e)/100,transform:e=>nr.transform(e*100)},xi={test:af("hsl","hue"),parse:k0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:i=1})=>"hsla("+Math.round(e)+", "+nr.transform(No(t))+", "+nr.transform(No(a))+", "+No(Go.transform(i))+")"},vt={test:e=>La.test(e)||Wd.test(e)||xi.test(e),parse:e=>La.test(e)?La.parse(e):xi.test(e)?xi.parse(e):Wd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?La.transform(e):xi.transform(e),getAnimatableNone:e=>{const t=vt.parse(e);return t.alpha=0,vt.transform(t)}},L2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function N2(e){return isNaN(e)&&typeof e=="string"&&(e.match(rf)?.length||0)+(e.match(L2)?.length||0)>0}const b0="number",_0="color",j2="var",O2="var(",rv="${}",z2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ri(e){const t=e.toString(),a=[],i={color:[],number:[],var:[]},s=[];let c=0;const d=t.replace(z2,p=>(vt.test(p)?(i.color.push(c),s.push(_0),a.push(vt.parse(p))):p.startsWith(O2)?(i.var.push(c),s.push(j2),a.push(p)):(i.number.push(c),s.push(b0),a.push(parseFloat(p))),++c,rv)).split(rv);return{values:a,split:d,indexes:i,types:s}}function V2(e){return Ri(e).values}function w0({split:e,types:t}){const a=e.length;return i=>{let s="";for(let c=0;c<a;c++)if(s+=e[c],i[c]!==void 0){const u=t[c];u===b0?s+=No(i[c]):u===_0?s+=vt.transform(i[c]):s+=i[c]}return s}}function F2(e){return w0(Ri(e))}const U2=e=>typeof e=="number"?0:vt.test(e)?vt.getAnimatableNone(e):e,B2=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:U2(e);function H2(e){const t=Ri(e);return w0(t)(t.values.map((i,s)=>B2(i,t.split[s])))}const Bn={test:N2,parse:V2,createTransformer:F2,getAnimatableNone:H2};function vd(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function W2({hue:e,saturation:t,lightness:a,alpha:i}){e/=360,t/=100,a/=100;let s=0,c=0,u=0;if(!t)s=c=u=a;else{const d=a<.5?a*(1+t):a+t-a*t,p=2*a-d;s=vd(p,d,e+1/3),c=vd(p,d,e),u=vd(p,d,e-1/3)}return{red:Math.round(s*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:i}}function Xl(e,t){return a=>a>0?t:e}const it=(e,t,a)=>e+(t-e)*a,yd=(e,t,a)=>{const i=e*e,s=a*(t*t-i)+i;return s<0?0:Math.sqrt(s)},$2=[Wd,La,xi],G2=e=>$2.find(t=>t.test(e));function av(e){const t=G2(e);if(!t)return!1;let a=t.parse(e);return t===xi&&(a=W2(a)),a}const iv=(e,t)=>{const a=av(e),i=av(t);if(!a||!i)return Xl(e,t);const s={...a};return c=>(s.red=yd(a.red,i.red,c),s.green=yd(a.green,i.green,c),s.blue=yd(a.blue,i.blue,c),s.alpha=it(a.alpha,i.alpha,c),La.transform(s))},$d=new Set(["none","hidden"]);function K2(e,t){return $d.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function Y2(e,t){return a=>it(e,t,a)}function of(e){return typeof e=="number"?Y2:typeof e=="string"?nf(e)?Xl:vt.test(e)?iv:q2:Array.isArray(e)?x0:typeof e=="object"?vt.test(e)?iv:X2:Xl}function x0(e,t){const a=[...e],i=a.length,s=e.map((c,u)=>of(c)(c,t[u]));return c=>{for(let u=0;u<i;u++)a[u]=s[u](c);return a}}function X2(e,t){const a={...e,...t},i={};for(const s in a)e[s]!==void 0&&t[s]!==void 0&&(i[s]=of(e[s])(e[s],t[s]));return s=>{for(const c in i)a[c]=i[c](s);return a}}function Z2(e,t){const a=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const c=t.types[s],u=e.indexes[c][i[c]],d=e.values[u]??0;a[s]=d,i[c]++}return a}const q2=(e,t)=>{const a=Bn.createTransformer(t),i=Ri(e),s=Ri(t);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?$d.has(e)&&!s.values.length||$d.has(t)&&!i.values.length?K2(e,t):rs(x0(Z2(i,s),s.values),a):Xl(e,t)};function P0(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?it(e,t,a):of(e)(e,t)}const Q2=e=>{const t=({timestamp:a})=>e(a);return{start:(a=!0)=>Qe.update(t,a),stop:()=>ra(t),now:()=>It.isProcessing?It.timestamp:Kt.now()}},S0=(e,t,a=10)=>{let i="";const s=Math.max(Math.round(t/a),2);for(let c=0;c<s;c++)i+=Math.round(e(c/(s-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Zl=2e4;function sf(e){let t=0;const a=50;let i=e.next(t);for(;!i.done&&t<Zl;)t+=a,i=e.next(t);return t>=Zl?1/0:t}function J2(e,t=100,a){const i=a({...e,keyframes:[0,t]}),s=Math.min(sf(i),Zl);return{type:"keyframes",ease:c=>i.next(s*c).value/t,duration:xn(s)}}const ht={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Gd(e,t){return e*Math.sqrt(1-t*t)}const e3=12;function t3(e,t,a){let i=a;for(let s=1;s<e3;s++)i=i-e(i)/t(i);return i}const kd=.001;function n3({duration:e=ht.duration,bounce:t=ht.bounce,velocity:a=ht.velocity,mass:i=ht.mass}){let s,c,u=1-t;u=ar(ht.minDamping,ht.maxDamping,u),e=ar(ht.minDuration,ht.maxDuration,xn(e)),u<1?(s=f=>{const g=f*u,v=g*e,y=g-a,_=Gd(f,u),w=Math.exp(-v);return kd-y/_*w},c=f=>{const v=f*u*e,y=v*a+a,_=Math.pow(u,2)*Math.pow(f,2)*e,w=Math.exp(-v),P=Gd(Math.pow(f,2),u);return(-s(f)+kd>0?-1:1)*((y-_)*w)/P}):(s=f=>{const g=Math.exp(-f*e),v=(f-a)*e+1;return-kd+g*v},c=f=>{const g=Math.exp(-f*e),v=(a-f)*(e*e);return g*v});const d=5/e,p=t3(s,c,d);if(e=pn(e),isNaN(p))return{stiffness:ht.stiffness,damping:ht.damping,duration:e};{const f=Math.pow(p,2)*i;return{stiffness:f,damping:u*2*Math.sqrt(i*f),duration:e}}}const r3=["duration","bounce"],a3=["stiffness","damping","mass"];function ov(e,t){return t.some(a=>e[a]!==void 0)}function i3(e){let t={velocity:ht.velocity,stiffness:ht.stiffness,damping:ht.damping,mass:ht.mass,isResolvedFromDuration:!1,...e};if(!ov(e,a3)&&ov(e,r3))if(t.velocity=0,e.visualDuration){const a=e.visualDuration,i=2*Math.PI/(a*1.2),s=i*i,c=2*ar(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ht.mass,stiffness:s,damping:c}}else{const a=n3({...e,velocity:0});t={...t,...a,mass:ht.mass},t.isResolvedFromDuration=!0}return t}function ql(e=ht.visualDuration,t=ht.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:s}=a;const c=a.keyframes[0],u=a.keyframes[a.keyframes.length-1],d={done:!1,value:c},{stiffness:p,damping:f,mass:g,duration:v,velocity:y,isResolvedFromDuration:_}=i3({...a,velocity:-xn(a.velocity||0)}),w=y||0,P=f/(2*Math.sqrt(p*g)),S=u-c,N=xn(Math.sqrt(p/g)),j=Math.abs(S)<5;i||(i=j?ht.restSpeed.granular:ht.restSpeed.default),s||(s=j?ht.restDelta.granular:ht.restDelta.default);let I,D,B,Z,oe,x;if(P<1)B=Gd(N,P),Z=(w+P*N*S)/B,I=Y=>{const ue=Math.exp(-P*N*Y);return u-ue*(Z*Math.sin(B*Y)+S*Math.cos(B*Y))},oe=P*N*Z+S*B,x=P*N*S-Z*B,D=Y=>Math.exp(-P*N*Y)*(oe*Math.sin(B*Y)+x*Math.cos(B*Y));else if(P===1){I=ue=>u-Math.exp(-N*ue)*(S+(w+N*S)*ue);const Y=w+N*S;D=ue=>Math.exp(-N*ue)*(N*Y*ue-w)}else{const Y=N*Math.sqrt(P*P-1);I=ae=>{const ie=Math.exp(-P*N*ae),Q=Math.min(Y*ae,300);return u-ie*((w+P*N*S)*Math.sinh(Q)+Y*S*Math.cosh(Q))/Y};const ue=(w+P*N*S)/Y,se=P*N*ue-S*Y,q=P*N*S-ue*Y;D=ae=>{const ie=Math.exp(-P*N*ae),Q=Math.min(Y*ae,300);return ie*(se*Math.sinh(Q)+q*Math.cosh(Q))}}const ee={calculatedDuration:_&&v||null,velocity:Y=>pn(D(Y)),next:Y=>{if(!_&&P<1){const se=Math.exp(-P*N*Y),q=Math.sin(B*Y),ae=Math.cos(B*Y),ie=u-se*(Z*q+S*ae),Q=pn(se*(oe*q+x*ae));return d.done=Math.abs(Q)<=i&&Math.abs(u-ie)<=s,d.value=d.done?u:ie,d}const ue=I(Y);if(_)d.done=Y>=v;else{const se=pn(D(Y));d.done=Math.abs(se)<=i&&Math.abs(u-ue)<=s}return d.value=d.done?u:ue,d},toString:()=>{const Y=Math.min(sf(ee),Zl),ue=S0(se=>ee.next(Y*se).value,Y,30);return Y+"ms "+ue},toTransition:()=>{}};return ee}ql.applyToOptions=e=>{const t=J2(e,100,ql);return e.ease=t.ease,e.duration=pn(t.duration),e.type="keyframes",e};const o3=5;function C0(e,t,a){const i=Math.max(t-o3,0);return i0(a-e(i),t-i)}function Kd({keyframes:e,velocity:t=0,power:a=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:c=500,modifyTarget:u,min:d,max:p,restDelta:f=.5,restSpeed:g}){const v=e[0],y={done:!1,value:v},_=x=>d!==void 0&&x<d||p!==void 0&&x>p,w=x=>d===void 0?p:p===void 0||Math.abs(d-x)<Math.abs(p-x)?d:p;let P=a*t;const S=v+P,N=u===void 0?S:u(S);N!==S&&(P=N-v);const j=x=>-P*Math.exp(-x/i),I=x=>N+j(x),D=x=>{const ee=j(x),Y=I(x);y.done=Math.abs(ee)<=f,y.value=y.done?N:Y};let B,Z;const oe=x=>{_(y.value)&&(B=x,Z=ql({keyframes:[y.value,w(y.value)],velocity:C0(I,x,y.value),damping:s,stiffness:c,restDelta:f,restSpeed:g}))};return oe(0),{calculatedDuration:null,next:x=>{let ee=!1;return!Z&&B===void 0&&(ee=!0,D(x),oe(x)),B!==void 0&&x>=B?Z.next(x-B):(!ee&&D(x),y)}}}function s3(e,t,a){const i=[],s=a||na.mix||P0,c=e.length-1;for(let u=0;u<c;u++){let d=s(e[u],e[u+1]);if(t){const p=Array.isArray(t)?t[u]||Sn:t;d=rs(p,d)}i.push(d)}return i}function l3(e,t,{clamp:a=!0,ease:i,mixer:s}={}){const c=e.length;if(Qh(c===t.length),c===1)return()=>t[0];if(c===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=s3(t,i,s),p=d.length,f=g=>{if(u&&g<e[0])return t[0];let v=0;if(p>1)for(;v<e.length-2&&!(g<e[v+1]);v++);const y=$o(e[v],e[v+1],g);return d[v](y)};return a?g=>f(ar(e[0],e[c-1],g)):f}function c3(e,t){const a=e[e.length-1];for(let i=1;i<=t;i++){const s=$o(0,t,i);e.push(it(a,1,s))}}function u3(e){const t=[0];return c3(t,e.length-1),t}function d3(e,t){return e.map(a=>a*t)}function h3(e,t){return e.map(()=>t||p0).splice(0,e.length-1)}function jo({duration:e=300,keyframes:t,times:a,ease:i="easeInOut"}){const s=b2(i)?i.map(ev):ev(i),c={done:!1,value:t[0]},u=d3(a&&a.length===t.length?a:u3(t),e),d=l3(u,t,{ease:Array.isArray(s)?s:h3(t,s)});return{calculatedDuration:e,next:p=>(c.value=d(p),c.done=p>=e,c)}}const f3=e=>e!==null;function pc(e,{repeat:t,repeatType:a="loop"},i,s=1){const c=e.filter(f3),d=s<0||t&&a!=="loop"&&t%2===1?0:c.length-1;return!d||i===void 0?c[d]:i}const p3={decay:Kd,inertia:Kd,tween:jo,keyframes:jo,spring:ql};function T0(e){typeof e.type=="string"&&(e.type=p3[e.type])}class lf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,a){return this.finished.then(t,a)}}const m3=e=>e/100;class Ql extends lf{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:a}=this.options;a&&a.updatedAt!==Kt.now()&&this.tick(Kt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;T0(t);const{type:a=jo,repeat:i=0,repeatDelay:s=0,repeatType:c,velocity:u=0}=t;let{keyframes:d}=t;const p=a||jo;p!==jo&&typeof d[0]!="number"&&(this.mixKeyframes=rs(m3,P0(d[0],d[1])),d=[0,100]);const f=p({...t,keyframes:d});c==="mirror"&&(this.mirroredGenerator=p({...t,keyframes:[...d].reverse(),velocity:-u})),f.calculatedDuration===null&&(f.calculatedDuration=sf(f));const{calculatedDuration:g}=f;this.calculatedDuration=g,this.resolvedDuration=g+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=f}updateTime(t){const a=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(t,a=!1){const{generator:i,totalDuration:s,mixKeyframes:c,mirroredGenerator:u,resolvedDuration:d,calculatedDuration:p}=this;if(this.startTime===null)return i.next(0);const{delay:f=0,keyframes:g,repeat:v,repeatType:y,repeatDelay:_,type:w,onUpdate:P,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),a?this.currentTime=t:this.updateTime(t);const N=this.currentTime-f*(this.playbackSpeed>=0?1:-1),j=this.playbackSpeed>=0?N<0:N>s;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let I=this.currentTime,D=i;if(v){const x=Math.min(this.currentTime,s)/d;let ee=Math.floor(x),Y=x%1;!Y&&x>=1&&(Y=1),Y===1&&ee--,ee=Math.min(ee,v+1),ee%2&&(y==="reverse"?(Y=1-Y,_&&(Y-=_/d)):y==="mirror"&&(D=u)),I=ar(0,1,Y)*d}let B;j?(this.delayState.value=g[0],B=this.delayState):B=D.next(I),c&&!j&&(B.value=c(B.value));let{done:Z}=B;!j&&p!==null&&(Z=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const oe=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Z);return oe&&w!==Kd&&(B.value=pc(g,this.options,S,this.speed)),P&&P(B.value),oe&&this.finish(),B}then(t,a){return this.finished.then(t,a)}get duration(){return xn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+xn(t)}get time(){return xn(this.currentTime)}set time(t){t=pn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const a=this.generator.next(t).value;return C0(i=>this.generator.next(i).value,t,a)}get speed(){return this.playbackSpeed}set speed(t){const a=this.playbackSpeed!==t;a&&this.driver&&this.updateTime(Kt.now()),this.playbackSpeed=t,a&&this.driver&&(this.time=xn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Q2,startTime:a}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=a??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Kt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function g3(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Na=e=>e*180/Math.PI,Yd=e=>{const t=Na(Math.atan2(e[1],e[0]));return Xd(t)},v3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Yd,rotateZ:Yd,skewX:e=>Na(Math.atan(e[1])),skewY:e=>Na(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Xd=e=>(e=e%360,e<0&&(e+=360),e),sv=Yd,lv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),cv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),y3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:lv,scaleY:cv,scale:e=>(lv(e)+cv(e))/2,rotateX:e=>Xd(Na(Math.atan2(e[6],e[5]))),rotateY:e=>Xd(Na(Math.atan2(-e[2],e[0]))),rotateZ:sv,rotate:sv,skewX:e=>Na(Math.atan(e[4])),skewY:e=>Na(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zd(e){return e.includes("scale")?1:0}function qd(e,t){if(!e||e==="none")return Zd(t);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(a)i=y3,s=a;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=v3,s=d}if(!s)return Zd(t);const c=i[t],u=s[1].split(",").map(b3);return typeof c=="function"?c(u):u[c]}const k3=(e,t)=>{const{transform:a="none"}=getComputedStyle(e);return qd(a,t)};function b3(e){return parseFloat(e.trim())}const Mi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Li=new Set(Mi),uv=e=>e===Ai||e===ye,_3=new Set(["x","y","z"]),w3=Mi.filter(e=>!_3.has(e));function x3(e){const t=[];return w3.forEach(a=>{const i=e.getValue(a);i!==void 0&&(t.push([a,i.get()]),i.set(a.startsWith("scale")?1:0))}),t}const ta={width:({x:e},{paddingLeft:t="0",paddingRight:a="0",boxSizing:i})=>{const s=e.max-e.min;return i==="border-box"?s:s-parseFloat(t)-parseFloat(a)},height:({y:e},{paddingTop:t="0",paddingBottom:a="0",boxSizing:i})=>{const s=e.max-e.min;return i==="border-box"?s:s-parseFloat(t)-parseFloat(a)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>qd(t,"x"),y:(e,{transform:t})=>qd(t,"y")};ta.translateX=ta.x;ta.translateY=ta.y;const ja=new Set;let Qd=!1,Jd=!1,eh=!1;function E0(){if(Jd){const e=Array.from(ja).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),a=new Map;t.forEach(i=>{const s=x3(i);s.length&&(a.set(i,s),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const s=a.get(i);s&&s.forEach(([c,u])=>{i.getValue(c)?.set(u)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Jd=!1,Qd=!1,ja.forEach(e=>e.complete(eh)),ja.clear()}function R0(){ja.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jd=!0)})}function P3(){eh=!0,R0(),E0(),eh=!1}class cf{constructor(t,a,i,s,c,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=i,this.motionValue=s,this.element=c,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(ja.add(this),Qd||(Qd=!0,Qe.read(R0),Qe.resolveKeyframes(E0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:a,element:i,motionValue:s}=this;if(t[0]===null){const c=s?.get(),u=t[t.length-1];if(c!==void 0)t[0]=c;else if(i&&a){const d=i.readValue(a,u);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=u),s&&c===void 0&&s.set(t[0])}g3(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ja.delete(this)}cancel(){this.state==="scheduled"&&(ja.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const S3=e=>e.startsWith("--");function D0(e,t,a){S3(t)?e.style.setProperty(t,a):e.style[t]=a}const C3={};function I0(e,t){const a=a0(e);return()=>C3[t]??a()}const T3=I0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),A0=I0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ro=([e,t,a,i])=>`cubic-bezier(${e}, ${t}, ${a}, ${i})`,dv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ro([0,.65,.55,1]),circOut:Ro([.55,0,1,.45]),backIn:Ro([.31,.01,.66,-.59]),backOut:Ro([.33,1.53,.69,.99])};function M0(e,t){if(e)return typeof e=="function"?A0()?S0(e,t):"ease-out":m0(e)?Ro(e):Array.isArray(e)?e.map(a=>M0(a,t)||dv.easeOut):dv[e]}function E3(e,t,a,{delay:i=0,duration:s=300,repeat:c=0,repeatType:u="loop",ease:d="easeOut",times:p}={},f=void 0){const g={[t]:a};p&&(g.offset=p);const v=M0(d,s);Array.isArray(v)&&(g.easing=v);const y={delay:i,duration:s,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"};return f&&(y.pseudoElement=f),e.animate(g,y)}function L0(e){return typeof e=="function"&&"applyToOptions"in e}function R3({type:e,...t}){return L0(e)&&A0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class N0 extends lf{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:a,name:i,keyframes:s,pseudoElement:c,allowFlatten:u=!1,finalKeyframe:d,onComplete:p}=t;this.isPseudoElement=!!c,this.allowFlatten=u,this.options=t,Qh(typeof t.type!="string");const f=R3(t);this.animation=E3(a,i,s,f,c),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const g=pc(s,this.options,d,this.speed);this.updateMotionValue&&this.updateMotionValue(g),D0(a,i,g),this.animation.cancel()}p?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return xn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+xn(t)}get time(){return xn(Number(this.animation.currentTime)||0)}set time(t){const a=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=pn(t),a&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:a,rangeEnd:i,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&T3()?(this.animation.timeline=t,a&&(this.animation.rangeStart=a),i&&(this.animation.rangeEnd=i),Sn):s(this)}}const j0={anticipate:d0,backInOut:u0,circInOut:f0};function D3(e){return e in j0}function I3(e){typeof e.ease=="string"&&D3(e.ease)&&(e.ease=j0[e.ease])}const bd=10;class A3 extends N0{constructor(t){I3(t),T0(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:a,onUpdate:i,onComplete:s,element:c,...u}=this.options;if(!a)return;if(t!==void 0){a.set(t);return}const d=new Ql({...u,autoplay:!1}),p=Math.max(bd,Kt.now()-this.startTime),f=ar(0,bd,p-bd),g=d.sample(p).value,{name:v}=this.options;c&&v&&D0(c,v,g),a.setWithVelocity(d.sample(Math.max(0,p-f)).value,g,f),d.stop()}}const hv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Bn.test(e)||e==="0")&&!e.startsWith("url("));function M3(e){const t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function L3(e,t,a,i){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const c=e[e.length-1],u=hv(s,t),d=hv(c,t);return!u||!d?!1:M3(e)||(a==="spring"||L0(a))&&i}function th(e){e.duration=0,e.type="keyframes"}const O0=new Set(["opacity","clipPath","filter","transform"]),N3=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function j3(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&N3.test(e[t]))return!0;return!1}const O3=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),z3=a0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function V3(e){const{motionValue:t,name:a,repeatDelay:i,repeatType:s,damping:c,type:u,keyframes:d}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:g}=t.owner.getProps();return z3()&&a&&(O0.has(a)||O3.has(a)&&j3(d))&&(a!=="transform"||!g)&&!f&&!i&&s!=="mirror"&&c!==0&&u!=="inertia"}const F3=40;class U3 extends lf{constructor({autoplay:t=!0,delay:a=0,type:i="keyframes",repeat:s=0,repeatDelay:c=0,repeatType:u="loop",keyframes:d,name:p,motionValue:f,element:g,...v}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Kt.now();const y={autoplay:t,delay:a,type:i,repeat:s,repeatDelay:c,repeatType:u,name:p,motionValue:f,element:g,...v},_=g?.KeyframeResolver||cf;this.keyframeResolver=new _(d,(w,P,S)=>this.onKeyframesResolved(w,P,y,!S),p,f,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,a,i,s){this.keyframeResolver=void 0;const{name:c,type:u,velocity:d,delay:p,isHandoff:f,onUpdate:g}=i;this.resolvedAt=Kt.now();let v=!0;L3(t,c,u,d)||(v=!1,(na.instantAnimations||!p)&&g?.(pc(t,i,a)),t[0]=t[t.length-1],th(i),i.repeat=0);const _={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>F3?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...i,keyframes:t},w=v&&!f&&V3(_),P=_.motionValue?.owner?.current;let S;if(w)try{S=new A3({..._,element:P})}catch{S=new Ql(_)}else S=new Ql(_);S.finished.then(()=>{this.notifyFinished()}).catch(Sn),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}get finished(){return this._animation?this.animation.finished:this._finished}then(t,a){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),P3()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function z0(e,t,a,i=0,s=1){const c=Array.from(e).sort((f,g)=>f.sortNodePosition(g)).indexOf(t),u=e.size,d=(u-1)*i;return typeof a=="function"?a(c,u):s===1?c*i:d-c*i}const B3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function H3(e){const t=B3.exec(e);if(!t)return[,];const[,a,i,s]=t;return[`--${a??i}`,s]}function V0(e,t,a=1){const[i,s]=H3(e);if(!i)return;const c=window.getComputedStyle(t).getPropertyValue(i);if(c){const u=c.trim();return t0(u)?parseFloat(u):u}return nf(s)?V0(s,t,a+1):s}const W3={type:"spring",stiffness:500,damping:25,restSpeed:10},$3=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G3={type:"keyframes",duration:.8},K3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Y3=(e,{keyframes:t})=>t.length>2?G3:Li.has(e)?e.startsWith("scale")?$3(t[1]):W3:K3;function F0(e,t){if(e?.inherit&&t){const{inherit:a,...i}=e;return{...t,...i}}return e}function uf(e,t){const a=e?.[t]??e?.default??e;return a!==e?F0(a,e):a}const X3=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Z3(e){for(const t in e)if(!X3.has(t))return!0;return!1}const df=(e,t,a,i={},s,c)=>u=>{const d=uf(i,e)||{},p=d.delay||i.delay||0;let{elapsed:f=0}=i;f=f-pn(p);const g={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-f,onUpdate:y=>{t.set(y),d.onUpdate&&d.onUpdate(y)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:c?void 0:s};Z3(d)||Object.assign(g,Y3(e,g)),g.duration&&(g.duration=pn(g.duration)),g.repeatDelay&&(g.repeatDelay=pn(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let v=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(th(g),g.delay===0&&(v=!0)),(na.instantAnimations||na.skipAnimations||s?.shouldSkipAnimations)&&(v=!0,th(g),g.delay=0),g.allowFlatten=!d.type&&!d.ease,v&&!c&&t.get()!==void 0){const y=pc(g.keyframes,d);if(y!==void 0){Qe.update(()=>{g.onUpdate(y),g.onComplete()});return}}return d.isSync?new Ql(g):new U3(g)};function fv(e){const t=[{},{}];return e?.values.forEach((a,i)=>{t[0][i]=a.get(),t[1][i]=a.getVelocity()}),t}function hf(e,t,a,i){if(typeof t=="function"){const[s,c]=fv(i);t=t(a!==void 0?a:e.custom,s,c)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,c]=fv(i);t=t(a!==void 0?a:e.custom,s,c)}return t}function Oa(e,t,a){const i=e.getProps();return hf(i,t,a!==void 0?a:i.custom,e)}const U0=new Set(["width","height","top","left","right","bottom",...Mi]),pv=30,q3=e=>!isNaN(parseFloat(e)),mv={current:void 0};class Q3{constructor(t,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const s=Kt.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=Kt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=q3(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new Jh);const i=this.events[t].add(a);return t==="change"?()=>{i(),Qe.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,a,i){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return mv.current&&mv.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Kt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pv)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,pv);return i0(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Di(e,t){return new Q3(e,t)}const nh=e=>Array.isArray(e);function J3(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,Di(a))}function eT(e){return nh(e)?e[e.length-1]||0:e}function tT(e,t){const a=Oa(e,t);let{transitionEnd:i={},transition:s={},...c}=a||{};c={...c,...i};for(const u in c){const d=eT(c[u]);J3(e,u,d)}}const At=e=>!!(e&&e.getVelocity);function nT(e){return!!(At(e)&&e.add)}function rh(e,t){const a=e.getValue("willChange");if(nT(a))return a.add(t);if(!a&&na.WillChange){const i=new na.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function ff(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const rT="framerAppearId",B0="data-"+ff(rT);function H0(e){return e.props[B0]}function aT({protectedKeys:e,needsAnimating:t},a){const i=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,i}function W0(e,t,{delay:a=0,transitionOverride:i,type:s}={}){let{transition:c,transitionEnd:u,...d}=t;const p=e.getDefaultTransition();c=c?F0(c,p):p;const f=c?.reduceMotion;i&&(c=i);const g=[],v=s&&e.animationState&&e.animationState.getState()[s];for(const y in d){const _=e.getValue(y,e.latestValues[y]??null),w=d[y];if(w===void 0||v&&aT(v,y))continue;const P={delay:a,...uf(c||{},y)},S=_.get();if(S!==void 0&&!_.isAnimating()&&!Array.isArray(w)&&w===S&&!P.velocity){Qe.update(()=>_.set(w));continue}let N=!1;if(window.MotionHandoffAnimation){const D=H0(e);if(D){const B=window.MotionHandoffAnimation(D,y,Qe);B!==null&&(P.startTime=B,N=!0)}}rh(e,y);const j=f??e.shouldReduceMotion;_.start(df(y,_,w,j&&U0.has(y)?{type:!1}:P,e,N));const I=_.animation;I&&g.push(I)}if(u){const y=()=>Qe.update(()=>{u&&tT(e,u)});g.length?Promise.all(g).then(y):y()}return g}function ah(e,t,a={}){const i=Oa(e,t,a.type==="exit"?e.presenceContext?.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};a.transitionOverride&&(s=a.transitionOverride);const c=i?()=>Promise.all(W0(e,i,a)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:f=0,staggerChildren:g,staggerDirection:v}=s;return iT(e,t,p,f,g,v,a)}:()=>Promise.resolve(),{when:d}=s;if(d){const[p,f]=d==="beforeChildren"?[c,u]:[u,c];return p().then(()=>f())}else return Promise.all([c(),u(a.delay)])}function iT(e,t,a=0,i=0,s=0,c=1,u){const d=[];for(const p of e.variantChildren)p.notify("AnimationStart",t),d.push(ah(p,t,{...u,delay:a+(typeof i=="function"?0:i)+z0(e.variantChildren,p,i,s,c)}).then(()=>p.notify("AnimationComplete",t)));return Promise.all(d)}function oT(e,t,a={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const s=t.map(c=>ah(e,c,a));i=Promise.all(s)}else if(typeof t=="string")i=ah(e,t,a);else{const s=typeof t=="function"?Oa(e,t,a.custom):t;i=Promise.all(W0(e,s,a))}return i.then(()=>{e.notify("AnimationComplete",t)})}const sT={test:e=>e==="auto",parse:e=>e},$0=e=>t=>t.test(e),G0=[Ai,ye,nr,qr,M2,A2,sT],gv=e=>G0.find($0(e));function lT(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||r0(e):!0}const cT=new Set(["brightness","contrast","saturate","opacity"]);function uT(e){const[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=a.match(rf)||[];if(!i)return e;const s=a.replace(i,"");let c=cT.has(t)?1:0;return i!==a&&(c*=100),t+"("+c+s+")"}const dT=/\b([a-z-]*)\(.*?\)/gu,ih={...Bn,getAnimatableNone:e=>{const t=e.match(dT);return t?t.map(uT).join(" "):e}},oh={...Bn,getAnimatableNone:e=>{const t=Bn.parse(e);return Bn.createTransformer(e)(t.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},vv={...Ai,transform:Math.round},hT={rotate:qr,rotateX:qr,rotateY:qr,rotateZ:qr,scale:xl,scaleX:xl,scaleY:xl,scaleZ:xl,skew:qr,skewX:qr,skewY:qr,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:Go,originX:nv,originY:nv,originZ:ye},pf={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,inset:ye,insetBlock:ye,insetBlockStart:ye,insetBlockEnd:ye,insetInline:ye,insetInlineStart:ye,insetInlineEnd:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,paddingBlock:ye,paddingBlockStart:ye,paddingBlockEnd:ye,paddingInline:ye,paddingInlineStart:ye,paddingInlineEnd:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,marginBlock:ye,marginBlockStart:ye,marginBlockEnd:ye,marginInline:ye,marginInlineStart:ye,marginInlineEnd:ye,fontSize:ye,backgroundPositionX:ye,backgroundPositionY:ye,...hT,zIndex:vv,fillOpacity:Go,strokeOpacity:Go,numOctaves:vv},fT={...pf,color:vt,backgroundColor:vt,outlineColor:vt,fill:vt,stroke:vt,borderColor:vt,borderTopColor:vt,borderRightColor:vt,borderBottomColor:vt,borderLeftColor:vt,filter:ih,WebkitFilter:ih,mask:oh,WebkitMask:oh},K0=e=>fT[e],pT=new Set([ih,oh]);function Y0(e,t){let a=K0(e);return pT.has(a)||(a=Bn),a.getAnimatableNone?a.getAnimatableNone(t):void 0}const mT=new Set(["auto","none","0"]);function gT(e,t,a){let i=0,s;for(;i<e.length&&!s;){const c=e[i];typeof c=="string"&&!mT.has(c)&&Ri(c).values.length&&(s=e[i]),i++}if(s&&a)for(const c of t)e[c]=Y0(a,s)}class vT extends cf{constructor(t,a,i,s,c){super(t,a,i,s,c,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:a,name:i}=this;if(!a||!a.current)return;super.readKeyframes();for(let g=0;g<t.length;g++){let v=t[g];if(typeof v=="string"&&(v=v.trim(),nf(v))){const y=V0(v,a.current);y!==void 0&&(t[g]=y),g===t.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!U0.has(i)||t.length!==2)return;const[s,c]=t,u=gv(s),d=gv(c),p=tv(s),f=tv(c);if(p!==f&&ta[i]){this.needsMeasurement=!0;return}if(u!==d)if(uv(u)&&uv(d))for(let g=0;g<t.length;g++){const v=t[g];typeof v=="string"&&(t[g]=parseFloat(v))}else ta[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:a}=this,i=[];for(let s=0;s<t.length;s++)(t[s]===null||lT(t[s]))&&i.push(s);i.length&&gT(t,i,a)}measureInitialState(){const{element:t,unresolvedKeyframes:a,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ta[i](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;const s=a[a.length-1];s!==void 0&&t.getValue(i,s).jump(s,!1)}measureEndState(){const{element:t,name:a,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const s=t.getValue(a);s&&s.jump(this.measuredOrigin,!1);const c=i.length-1,u=i[c];i[c]=ta[a](t.measureViewportBox(),window.getComputedStyle(t.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),this.removedTransforms?.length&&this.removedTransforms.forEach(([d,p])=>{t.getValue(d).set(p)}),this.resolveNoneKeyframes()}}function X0(e,t,a){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const s=a?.[e]??i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(i=>i!=null)}const Z0=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ll(e){return n0(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:mf}=g0(queueMicrotask,!1),Fn={x:!1,y:!1};function q0(){return Fn.x||Fn.y}function yT(e){return e==="x"||e==="y"?Fn[e]?null:(Fn[e]=!0,()=>{Fn[e]=!1}):Fn.x||Fn.y?null:(Fn.x=Fn.y=!0,()=>{Fn.x=Fn.y=!1})}function Q0(e,t){const a=X0(e),i=new AbortController,s={passive:!0,...t,signal:i.signal};return[a,s,()=>i.abort()]}function kT(e){return!(e.pointerType==="touch"||q0())}function bT(e,t,a={}){const[i,s,c]=Q0(e,a);return i.forEach(u=>{let d=!1,p=!1,f;const g=()=>{u.removeEventListener("pointerleave",w)},v=S=>{f&&(f(S),f=void 0),g()},y=S=>{d=!1,window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",y),p&&(p=!1,v(S))},_=()=>{d=!0,window.addEventListener("pointerup",y,s),window.addEventListener("pointercancel",y,s)},w=S=>{if(S.pointerType!=="touch"){if(d){p=!0;return}v(S)}},P=S=>{if(!kT(S))return;p=!1;const N=t(u,S);typeof N=="function"&&(f=N,u.addEventListener("pointerleave",w,s))};u.addEventListener("pointerenter",P,s),u.addEventListener("pointerdown",_,s)}),c}const J0=(e,t)=>t?e===t?!0:J0(e,t.parentElement):!1,gf=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_T=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wT(e){return _T.has(e.tagName)||e.isContentEditable===!0}const xT=new Set(["INPUT","SELECT","TEXTAREA"]);function PT(e){return xT.has(e.tagName)||e.isContentEditable===!0}const Nl=new WeakSet;function yv(e){return t=>{t.key==="Enter"&&e(t)}}function _d(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ST=(e,t)=>{const a=e.currentTarget;if(!a)return;const i=yv(()=>{if(Nl.has(a))return;_d(a,"down");const s=yv(()=>{_d(a,"up")}),c=()=>_d(a,"cancel");a.addEventListener("keyup",s,t),a.addEventListener("blur",c,t)});a.addEventListener("keydown",i,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",i),t)};function kv(e){return gf(e)&&!q0()}const bv=new WeakSet;function CT(e,t,a={}){const[i,s,c]=Q0(e,a),u=d=>{const p=d.currentTarget;if(!kv(d)||bv.has(d))return;Nl.add(p),a.stopPropagation&&bv.add(d);const f=t(p,d),g=(_,w)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",y),Nl.has(p)&&Nl.delete(p),kv(_)&&typeof f=="function"&&f(_,{success:w})},v=_=>{g(_,p===window||p===document||a.useGlobalTarget||J0(p,_.target))},y=_=>{g(_,!1)};window.addEventListener("pointerup",v,s),window.addEventListener("pointercancel",y,s)};return i.forEach(d=>{(a.useGlobalTarget?window:d).addEventListener("pointerdown",u,s),Ll(d)&&(d.addEventListener("focus",f=>ST(f,s)),!wT(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),c}function vf(e){return n0(e)&&"ownerSVGElement"in e}const jl=new WeakMap;let Ol;const eb=(e,t,a)=>(i,s)=>s&&s[0]?s[0][e+"Size"]:vf(i)&&"getBBox"in i?i.getBBox()[t]:i[a],TT=eb("inline","width","offsetWidth"),ET=eb("block","height","offsetHeight");function RT({target:e,borderBoxSize:t}){jl.get(e)?.forEach(a=>{a(e,{get width(){return TT(e,t)},get height(){return ET(e,t)}})})}function DT(e){e.forEach(RT)}function IT(){typeof ResizeObserver>"u"||(Ol=new ResizeObserver(DT))}function AT(e,t){Ol||IT();const a=X0(e);return a.forEach(i=>{let s=jl.get(i);s||(s=new Set,jl.set(i,s)),s.add(t),Ol?.observe(i)}),()=>{a.forEach(i=>{const s=jl.get(i);s?.delete(t),s?.size||Ol?.unobserve(i)})}}const zl=new Set;let Pi;function MT(){Pi=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};zl.forEach(t=>t(e))},window.addEventListener("resize",Pi)}function LT(e){return zl.add(e),Pi||MT(),()=>{zl.delete(e),!zl.size&&typeof Pi=="function"&&(window.removeEventListener("resize",Pi),Pi=void 0)}}function _v(e,t){return typeof e=="function"?LT(e):AT(e,t)}function NT(e){return vf(e)&&e.tagName==="svg"}const jT=[...G0,vt,Bn],OT=e=>jT.find($0(e)),wv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Si=()=>({x:wv(),y:wv()}),xv=()=>({min:0,max:0}),xt=()=>({x:xv(),y:xv()}),zT=new WeakMap;function mc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ko(e){return typeof e=="string"||Array.isArray(e)}const yf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kf=["initial",...yf];function gc(e){return mc(e.animate)||kf.some(t=>Ko(e[t]))}function tb(e){return!!(gc(e)||e.variants)}function VT(e,t,a){for(const i in t){const s=t[i],c=a[i];if(At(s))e.addValue(i,s);else if(At(c))e.addValue(i,Di(s,{owner:e}));else if(c!==s)if(e.hasValue(i)){const u=e.getValue(i);u.liveStyle===!0?u.jump(s):u.hasAnimated||u.set(s)}else{const u=e.getStaticValue(i);e.addValue(i,Di(u!==void 0?u:s,{owner:e}))}}for(const i in a)t[i]===void 0&&e.removeValue(i);return t}const Jl={current:null},bf={current:!1},FT=typeof window<"u";function nb(){if(bf.current=!0,!!FT)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Jl.current=e.matches;e.addEventListener("change",t),t()}else Jl.current=!1}const Pv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ec={};function rb(e){ec=e}function UT(){return ec}class BT{scrapeMotionValuesFromProps(t,a,i){return{}}constructor({parent:t,props:a,presenceContext:i,reducedMotionConfig:s,skipAnimations:c,blockInitialAnimation:u,visualState:d},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=cf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const _=Kt.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,Qe.render(this.render,!1,!0))};const{latestValues:f,renderState:g}=d;this.latestValues=f,this.baseTarget={...f},this.initialValues=a.initial?{...f}:{},this.renderState=g,this.parent=t,this.props=a,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=c,this.options=p,this.blockInitialAnimation=!!u,this.isControllingVariants=gc(a),this.isVariantNode=tb(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:v,...y}=this.scrapeMotionValuesFromProps(a,{},this);for(const _ in y){const w=y[_];f[_]!==void 0&&At(w)&&w.set(f[_])}}mount(t){if(this.hasBeenMounted)for(const a in this.initialValues)this.values.get(a)?.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,zT.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,i)=>this.bindToMotionValue(i,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(bf.current||nb(),this.shouldReduceMotion=Jl.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ra(this.notifyUpdate),ra(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,a){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),a.accelerate&&O0.has(t)&&this.current instanceof HTMLElement){const{factory:u,keyframes:d,times:p,ease:f,duration:g}=a.accelerate,v=new N0({element:this.current,name:t,keyframes:d,times:p,ease:f,duration:pn(g)}),y=u(v);this.valueSubscriptions.set(t,()=>{y(),v.cancel()});return}const i=Li.has(t);i&&this.onBindTransform&&this.onBindTransform();const s=a.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Qe.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;typeof window<"u"&&window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{s(),c&&c(),a.owner&&a.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ec){const a=ec[t];if(!a)continue;const{isEnabled:i,Feature:s}=a;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){const c=this.features[t];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let i=0;i<Pv.length;i++){const s=Pv[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const c="on"+s,u=t[c];u&&(this.propEventSubscriptions[s]=this.on(s,u))}this.prevMotionValues=VT(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){const i=this.values.get(t);a!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);const a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&a!==void 0&&(i=Di(a===null?void 0:a,{owner:this}),this.addValue(t,i)),i}readValue(t,a){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(t0(i)||r0(i))?i=parseFloat(i):!OT(i)&&Bn.test(a)&&(i=Y0(t,a)),this.setBaseTarget(t,At(i)?i.get():i)),At(i)?i.get():i}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){const{initial:a}=this.props;let i;if(typeof a=="string"||typeof a=="object"){const c=hf(this.props,a,this.presenceContext?.custom);c&&(i=c[t])}if(a&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!At(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new Jh),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}scheduleRenderMicrotask(){mf.render(this.render)}}class ab extends BT{constructor(){super(...arguments),this.KeyframeResolver=vT}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){const i=t.style;return i?i[a]:void 0}removeValueFromRenderState(t,{vars:a,style:i}){delete a[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;At(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}class la{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ib({top:e,left:t,right:a,bottom:i}){return{x:{min:t,max:a},y:{min:e,max:i}}}function HT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function WT(e,t){if(!t)return e;const a=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:i.y,right:i.x}}function wd(e){return e===void 0||e===1}function sh({scale:e,scaleX:t,scaleY:a}){return!wd(e)||!wd(t)||!wd(a)}function Aa(e){return sh(e)||ob(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ob(e){return Sv(e.x)||Sv(e.y)}function Sv(e){return e&&e!=="0%"}function tc(e,t,a){const i=e-a,s=t*i;return a+s}function Cv(e,t,a,i,s){return s!==void 0&&(e=tc(e,s,i)),tc(e,a,i)+t}function lh(e,t=0,a=1,i,s){e.min=Cv(e.min,t,a,i,s),e.max=Cv(e.max,t,a,i,s)}function sb(e,{x:t,y:a}){lh(e.x,t.translate,t.scale,t.originPoint),lh(e.y,a.translate,a.scale,a.originPoint)}const Tv=.999999999999,Ev=1.0000000000001;function $T(e,t,a,i=!1){const s=a.length;if(!s)return;t.x=t.y=1;let c,u;for(let d=0;d<s;d++){c=a[d],u=c.projectionDelta;const{visualElement:p}=c.options;p&&p.props.style&&p.props.style.display==="contents"||(i&&c.options.layoutScroll&&c.scroll&&c!==c.root&&(tr(e.x,-c.scroll.offset.x),tr(e.y,-c.scroll.offset.y)),u&&(t.x*=u.x.scale,t.y*=u.y.scale,sb(e,u)),i&&Aa(c.latestValues)&&Vl(e,c.latestValues,c.layout?.layoutBox))}t.x<Ev&&t.x>Tv&&(t.x=1),t.y<Ev&&t.y>Tv&&(t.y=1)}function tr(e,t){e.min+=t,e.max+=t}function Rv(e,t,a,i,s=.5){const c=it(e.min,e.max,s);lh(e,t,a,c,i)}function Dv(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Vl(e,t,a){const i=a??e;Rv(e.x,Dv(t.x,i.x),t.scaleX,t.scale,t.originX),Rv(e.y,Dv(t.y,i.y),t.scaleY,t.scale,t.originY)}function lb(e,t){return ib(WT(e.getBoundingClientRect(),t))}function GT(e,t,a){const i=lb(e,a),{scroll:s}=t;return s&&(tr(i.x,s.offset.x),tr(i.y,s.offset.y)),i}const KT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YT=Mi.length;function XT(e,t,a){let i="",s=!0;for(let c=0;c<YT;c++){const u=Mi[c],d=e[u];if(d===void 0)continue;let p=!0;if(typeof d=="number")p=d===(u.startsWith("scale")?1:0);else{const f=parseFloat(d);p=u.startsWith("scale")?f===1:f===0}if(!p||a){const f=Z0(d,pf[u]);if(!p){s=!1;const g=KT[u]||u;i+=`${g}(${f}) `}a&&(t[u]=f)}}return i=i.trim(),a?i=a(t,s?"":i):s&&(i="none"),i}function _f(e,t,a){const{style:i,vars:s,transformOrigin:c}=e;let u=!1,d=!1;for(const p in t){const f=t[p];if(Li.has(p)){u=!0;continue}else if(y0(p)){s[p]=f;continue}else{const g=Z0(f,pf[p]);p.startsWith("origin")?(d=!0,c[p]=g):i[p]=g}}if(t.transform||(u||a?i.transform=XT(t,e.transform,a):i.transform&&(i.transform="none")),d){const{originX:p="50%",originY:f="50%",originZ:g=0}=c;i.transformOrigin=`${p} ${f} ${g}`}}function cb(e,{style:t,vars:a},i,s){const c=e.style;let u;for(u in t)c[u]=t[u];s?.applyProjectionStyles(c,i);for(u in a)c.setProperty(u,a[u])}function Iv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Po={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const a=Iv(e,t.target.x),i=Iv(e,t.target.y);return`${a}% ${i}%`}},ZT={correct:(e,{treeScale:t,projectionDelta:a})=>{const i=e,s=Bn.parse(e);if(s.length>5)return i;const c=Bn.createTransformer(e),u=typeof s[0]!="number"?1:0,d=a.x.scale*t.x,p=a.y.scale*t.y;s[0+u]/=d,s[1+u]/=p;const f=it(d,p,.5);return typeof s[2+u]=="number"&&(s[2+u]/=f),typeof s[3+u]=="number"&&(s[3+u]/=f),c(s)}},ch={borderRadius:{...Po,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Po,borderTopRightRadius:Po,borderBottomLeftRadius:Po,borderBottomRightRadius:Po,boxShadow:ZT};function ub(e,{layout:t,layoutId:a}){return Li.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!ch[e]||e==="opacity")}function wf(e,t,a){const i=e.style,s=t?.style,c={};if(!i)return c;for(const u in i)(At(i[u])||s&&At(s[u])||ub(u,e)||a?.getValue(u)?.liveStyle!==void 0)&&(c[u]=i[u]);return c}function qT(e){return window.getComputedStyle(e)}class QT extends ab{constructor(){super(...arguments),this.type="html",this.renderInstance=cb}readValueFromInstance(t,a){if(Li.has(a))return this.projection?.isProjecting?Zd(a):k3(t,a);{const i=qT(t),s=(y0(a)?i.getPropertyValue(a):i[a])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:a}){return lb(t,a)}build(t,a,i){_f(t,a,i.transformTemplate)}scrapeMotionValuesFromProps(t,a,i){return wf(t,a,i)}}const JT={offset:"stroke-dashoffset",array:"stroke-dasharray"},eE={offset:"strokeDashoffset",array:"strokeDasharray"};function tE(e,t,a=1,i=0,s=!0){e.pathLength=1;const c=s?JT:eE;e[c.offset]=`${-i}`,e[c.array]=`${t} ${a}`}const nE=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function db(e,{attrX:t,attrY:a,attrScale:i,pathLength:s,pathSpacing:c=1,pathOffset:u=0,...d},p,f,g){if(_f(e,d,f),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:y}=e;v.transform&&(y.transform=v.transform,delete v.transform),(y.transform||v.transformOrigin)&&(y.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),y.transform&&(y.transformBox=g?.transformBox??"fill-box",delete v.transformBox);for(const _ of nE)v[_]!==void 0&&(y[_]=v[_],delete v[_]);t!==void 0&&(v.x=t),a!==void 0&&(v.y=a),i!==void 0&&(v.scale=i),s!==void 0&&tE(v,s,c,u,!1)}const hb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),fb=e=>typeof e=="string"&&e.toLowerCase()==="svg";function rE(e,t,a,i){cb(e,t,void 0,i);for(const s in t.attrs)e.setAttribute(hb.has(s)?s:ff(s),t.attrs[s])}function pb(e,t,a){const i=wf(e,t,a);for(const s in e)if(At(e[s])||At(t[s])){const c=Mi.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[c]=e[s]}return i}class aE extends ab{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xt}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(Li.has(a)){const i=K0(a);return i&&i.default||0}return a=hb.has(a)?a:ff(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,i){return pb(t,a,i)}build(t,a,i){db(t,a,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,a,i,s){rE(t,a,i,s)}mount(t){this.isSVGTag=fb(t.tagName),super.mount(t)}}const iE=kf.length;function mb(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?mb(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const t={};for(let a=0;a<iE;a++){const i=kf[a],s=e.props[i];(Ko(s)||s===!1)&&(t[i]=s)}return t}function gb(e,t){if(!Array.isArray(t))return!1;const a=t.length;if(a!==e.length)return!1;for(let i=0;i<a;i++)if(t[i]!==e[i])return!1;return!0}const oE=[...yf].reverse(),sE=yf.length;function lE(e){return t=>Promise.all(t.map(({animation:a,options:i})=>oT(e,a,i)))}function cE(e){let t=lE(e),a=Av(),i=!0,s=!1;const c=f=>(g,v)=>{const y=Oa(e,v,f==="exit"?e.presenceContext?.custom:void 0);if(y){const{transition:_,transitionEnd:w,...P}=y;g={...g,...P,...w}}return g};function u(f){t=f(e)}function d(f){const{props:g}=e,v=mb(e.parent)||{},y=[],_=new Set;let w={},P=1/0;for(let N=0;N<sE;N++){const j=oE[N],I=a[j],D=g[j]!==void 0?g[j]:v[j],B=Ko(D),Z=j===f?I.isActive:null;Z===!1&&(P=N);let oe=D===v[j]&&D!==g[j]&&B;if(oe&&(i||s)&&e.manuallyAnimateOnMount&&(oe=!1),I.protectedKeys={...w},!I.isActive&&Z===null||!D&&!I.prevProp||mc(D)||typeof D=="boolean")continue;if(j==="exit"&&I.isActive&&Z!==!0){I.prevResolvedValues&&(w={...w,...I.prevResolvedValues});continue}const x=uE(I.prevProp,D);let ee=x||j===f&&I.isActive&&!oe&&B||N>P&&B,Y=!1;const ue=Array.isArray(D)?D:[D];let se=ue.reduce(c(j),{});Z===!1&&(se={});const{prevResolvedValues:q={}}=I,ae={...q,...se},ie=V=>{ee=!0,_.has(V)&&(Y=!0,_.delete(V)),I.needsAnimating[V]=!0;const W=e.getValue(V);W&&(W.liveStyle=!1)};for(const V in ae){const W=se[V],O=q[V];if(w.hasOwnProperty(V))continue;let E=!1;nh(W)&&nh(O)?E=!gb(W,O):E=W!==O,E?W!=null?ie(V):_.add(V):W!==void 0&&_.has(V)?ie(V):I.protectedKeys[V]=!0}I.prevProp=D,I.prevResolvedValues=se,I.isActive&&(w={...w,...se}),(i||s)&&e.blockInitialAnimation&&(ee=!1);const Q=oe&&x;ee&&(!Q||Y)&&y.push(...ue.map(V=>{const W={type:j};if(typeof V=="string"&&(i||s)&&!Q&&e.manuallyAnimateOnMount&&e.parent){const{parent:O}=e,E=Oa(O,V);if(O.enteringChildren&&E){const{delayChildren:$}=E.transition||{};W.delay=z0(O.enteringChildren,e,$)}}return{animation:V,options:W}}))}if(_.size){const N={};if(typeof g.initial!="boolean"){const j=Oa(e,Array.isArray(g.initial)?g.initial[0]:g.initial);j&&j.transition&&(N.transition=j.transition)}_.forEach(j=>{const I=e.getBaseTarget(j),D=e.getValue(j);D&&(D.liveStyle=!0),N[j]=I??null}),y.push({animation:N})}let S=!!y.length;return i&&(g.initial===!1||g.initial===g.animate)&&!e.manuallyAnimateOnMount&&(S=!1),i=!1,s=!1,S?t(y):Promise.resolve()}function p(f,g){if(a[f].isActive===g)return Promise.resolve();e.variantChildren?.forEach(y=>y.animationState?.setActive(f,g)),a[f].isActive=g;const v=d(f);for(const y in a)a[y].protectedKeys={};return v}return{animateChanges:d,setActive:p,setAnimateFunction:u,getState:()=>a,reset:()=>{a=Av(),s=!0}}}function uE(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gb(t,e):!1}function Ea(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Av(){return{animate:Ea(!0),whileInView:Ea(),whileHover:Ea(),whileTap:Ea(),whileDrag:Ea(),whileFocus:Ea(),exit:Ea()}}function uh(e,t){e.min=t.min,e.max=t.max}function zn(e,t){uh(e.x,t.x),uh(e.y,t.y)}function Mv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const vb=1e-4,dE=1-vb,hE=1+vb,yb=.01,fE=0-yb,pE=0+yb;function Yt(e){return e.max-e.min}function mE(e,t,a){return Math.abs(e-t)<=a}function Lv(e,t,a,i=.5){e.origin=i,e.originPoint=it(t.min,t.max,e.origin),e.scale=Yt(a)/Yt(t),e.translate=it(a.min,a.max,e.origin)-e.originPoint,(e.scale>=dE&&e.scale<=hE||isNaN(e.scale))&&(e.scale=1),(e.translate>=fE&&e.translate<=pE||isNaN(e.translate))&&(e.translate=0)}function Oo(e,t,a,i){Lv(e.x,t.x,a.x,i?i.originX:void 0),Lv(e.y,t.y,a.y,i?i.originY:void 0)}function Nv(e,t,a,i=0){const s=i?it(a.min,a.max,i):a.min;e.min=s+t.min,e.max=e.min+Yt(t)}function gE(e,t,a,i){Nv(e.x,t.x,a.x,i?.x),Nv(e.y,t.y,a.y,i?.y)}function jv(e,t,a,i=0){const s=i?it(a.min,a.max,i):a.min;e.min=t.min-s,e.max=e.min+Yt(t)}function nc(e,t,a,i){jv(e.x,t.x,a.x,i?.x),jv(e.y,t.y,a.y,i?.y)}function Ov(e,t,a,i,s){return e-=t,e=tc(e,1/a,i),s!==void 0&&(e=tc(e,1/s,i)),e}function vE(e,t=0,a=1,i=.5,s,c=e,u=e){if(nr.test(t)&&(t=parseFloat(t),t=it(u.min,u.max,t/100)-u.min),typeof t!="number")return;let d=it(c.min,c.max,i);e===c&&(d-=t),e.min=Ov(e.min,t,a,d,s),e.max=Ov(e.max,t,a,d,s)}function zv(e,t,[a,i,s],c,u){vE(e,t[a],t[i],t[s],t.scale,c,u)}const yE=["x","scaleX","originX"],kE=["y","scaleY","originY"];function Vv(e,t,a,i){zv(e.x,t,yE,a?a.x:void 0,i?i.x:void 0),zv(e.y,t,kE,a?a.y:void 0,i?i.y:void 0)}function Fv(e){return e.translate===0&&e.scale===1}function kb(e){return Fv(e.x)&&Fv(e.y)}function Uv(e,t){return e.min===t.min&&e.max===t.max}function bE(e,t){return Uv(e.x,t.x)&&Uv(e.y,t.y)}function Bv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function bb(e,t){return Bv(e.x,t.x)&&Bv(e.y,t.y)}function Hv(e){return Yt(e.x)/Yt(e.y)}function Wv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function er(e){return[e("x"),e("y")]}function _E(e,t,a){let i="";const s=e.x.translate/t.x,c=e.y.translate/t.y,u=a?.z||0;if((s||c||u)&&(i=`translate3d(${s}px, ${c}px, ${u}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),a){const{transformPerspective:f,rotate:g,rotateX:v,rotateY:y,skewX:_,skewY:w}=a;f&&(i=`perspective(${f}px) ${i}`),g&&(i+=`rotate(${g}deg) `),v&&(i+=`rotateX(${v}deg) `),y&&(i+=`rotateY(${y}deg) `),_&&(i+=`skewX(${_}deg) `),w&&(i+=`skewY(${w}deg) `)}const d=e.x.scale*t.x,p=e.y.scale*t.y;return(d!==1||p!==1)&&(i+=`scale(${d}, ${p})`),i||"none"}const _b=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],wE=_b.length,$v=e=>typeof e=="string"?parseFloat(e):e,Gv=e=>typeof e=="number"||ye.test(e);function xE(e,t,a,i,s,c){s?(e.opacity=it(0,a.opacity??1,PE(i)),e.opacityExit=it(t.opacity??1,0,SE(i))):c&&(e.opacity=it(t.opacity??1,a.opacity??1,i));for(let u=0;u<wE;u++){const d=_b[u];let p=Kv(t,d),f=Kv(a,d);if(p===void 0&&f===void 0)continue;p||(p=0),f||(f=0),p===0||f===0||Gv(p)===Gv(f)?(e[d]=Math.max(it($v(p),$v(f),i),0),(nr.test(f)||nr.test(p))&&(e[d]+="%")):e[d]=f}(t.rotate||a.rotate)&&(e.rotate=it(t.rotate||0,a.rotate||0,i))}function Kv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const PE=wb(0,.5,h0),SE=wb(.5,.95,Sn);function wb(e,t,a){return i=>i<e?0:i>t?1:a($o(e,t,i))}function CE(e,t,a){const i=At(e)?e:Di(e);return i.start(df("",i,t,a)),i.animation}function Yo(e,t,a,i={passive:!0}){return e.addEventListener(t,a,i),()=>e.removeEventListener(t,a)}const TE=(e,t)=>e.depth-t.depth;class EE{constructor(){this.children=[],this.isDirty=!1}add(t){qh(this.children,t),this.isDirty=!0}remove(t){Yl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(TE),this.isDirty=!1,this.children.forEach(t)}}function RE(e,t){const a=Kt.now(),i=({timestamp:s})=>{const c=s-a;c>=t&&(ra(i),e(c-t))};return Qe.setup(i,!0),()=>ra(i)}function Fl(e){return At(e)?e.get():e}class DE{constructor(){this.members=[]}add(t){qh(this.members,t);for(let a=this.members.length-1;a>=0;a--){const i=this.members[a];if(i===t||i===this.lead||i===this.prevLead)continue;const s=i.instance;(!s||s.isConnected===!1)&&!i.snapshot&&(Yl(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(Yl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){for(let a=this.members.indexOf(t)-1;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1&&i.instance?.isConnected!==!1)return this.promote(i),!0}return!1}promote(t,a){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=i.options,{layoutDependency:c}=t.options;(s===void 0||s!==c)&&(t.resumeFrom=i,a&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Ul={hasAnimatedSinceResize:!0,hasEverUpdated:!1},xd=["","X","Y","Z"],IE=1e3;let AE=0;function Pd(e,t,a,i){const{latestValues:s}=t;s[e]&&(a[e]=s[e],t.setStaticValue(e,0),i&&(i[e]=0))}function xb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const a=H0(t);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:s,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Qe,!(s||c))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&xb(i)}function Pb({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(u={},d=t?.()){this.id=AE++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(NE),this.nodes.forEach(UE),this.nodes.forEach(BE),this.nodes.forEach(jE)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new EE)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Jh),this.eventHandlers.get(u).add(d)}notifyListeners(u,...d){const p=this.eventHandlers.get(u);p&&p.notify(...d)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=vf(u)&&!NT(u),this.instance=u;const{layoutId:d,layout:p,visualElement:f}=this.options;if(f&&!f.current&&f.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||d)&&(this.isLayoutDirty=!0),e){let g,v=0;const y=()=>this.root.updateBlockedByResize=!1;Qe.read(()=>{v=window.innerWidth}),e(u,()=>{const _=window.innerWidth;_!==v&&(v=_,this.root.updateBlockedByResize=!0,g&&g(),g=RE(y,250),Ul.hasAnimatedSinceResize&&(Ul.hasAnimatedSinceResize=!1,this.nodes.forEach(Zv)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&f&&(d||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeLayoutChanged:y,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||f.getDefaultTransition()||KE,{onLayoutAnimationStart:P,onLayoutAnimationComplete:S}=f.getProps(),N=!this.targetLayout||!bb(this.targetLayout,_),j=!v&&y;if(this.options.layoutRoot||this.resumeFrom||j||v&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const I={...uf(w,"layout"),onPlay:P,onComplete:S};(f.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I),this.setAnimationOrigin(g,j)}else v||Zv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ra(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(HE),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const v=this.path[g];v.shouldResetTransform=!0,(typeof v.latestValues.x=="string"||typeof v.latestValues.y=="string")&&(v.isLayoutDirty=!0),v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:d,layout:p}=this.options;if(d===void 0&&!p)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const p=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),p&&this.nodes.forEach(zE),this.nodes.forEach(Yv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Xv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(VE),this.nodes.forEach(FE),this.nodes.forEach(ME),this.nodes.forEach(LE)):this.nodes.forEach(Xv),this.clearAllSnapshots();const d=Kt.now();It.delta=ar(0,1e3/60,d-It.timestamp),It.timestamp=d,It.isProcessing=!0,md.update.process(It),md.preRender.process(It),md.render.process(It),It.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,mf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(OE),this.sharedNodes.forEach(WE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yt(this.snapshot.measuredBox.x)&&!Yt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=xt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(d=!1),d&&this.instance){const p=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:p,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!s)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!kb(this.projectionDelta),p=this.getTransformTemplate(),f=p?p(this.latestValues,""):void 0,g=f!==this.prevTransformTemplateValue;u&&this.instance&&(d||Aa(this.latestValues)||g)&&(s(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const d=this.measurePageBox();let p=this.removeElementScroll(d);return u&&(p=this.removeTransform(p)),YE(p),{animationId:this.root.animationId,measuredBox:d,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return xt();const d=u.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(XE))){const{scroll:f}=this.root;f&&(tr(d.x,f.offset.x),tr(d.y,f.offset.y))}return d}removeElementScroll(u){const d=xt();if(zn(d,u),this.scroll?.wasRoot)return d;for(let p=0;p<this.path.length;p++){const f=this.path[p],{scroll:g,options:v}=f;f!==this.root&&g&&v.layoutScroll&&(g.wasRoot&&zn(d,u),tr(d.x,g.offset.x),tr(d.y,g.offset.y))}return d}applyTransform(u,d=!1,p){const f=p||xt();zn(f,u);for(let g=0;g<this.path.length;g++){const v=this.path[g];!d&&v.options.layoutScroll&&v.scroll&&v!==v.root&&(tr(f.x,-v.scroll.offset.x),tr(f.y,-v.scroll.offset.y)),Aa(v.latestValues)&&Vl(f,v.latestValues,v.layout?.layoutBox)}return Aa(this.latestValues)&&Vl(f,this.latestValues,this.layout?.layoutBox),f}removeTransform(u){const d=xt();zn(d,u);for(let p=0;p<this.path.length;p++){const f=this.path[p];if(!Aa(f.latestValues))continue;let g;f.instance&&(sh(f.latestValues)&&f.updateSnapshot(),g=xt(),zn(g,f.measurePageBox())),Vv(d,f.latestValues,f.snapshot?.layoutBox,g)}return Aa(this.latestValues)&&Vv(d,this.latestValues),d}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==It.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==d;if(!(u||p&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:v}=this.options;if(!this.layout||!(g||v))return;this.resolvedRelativeTargetAt=It.timestamp;const y=this.getClosestProjectingParent();y&&this.linkedParentVersion!==y.layoutVersion&&!y.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&y&&y.layout?this.createRelativeTarget(y,this.layout.layoutBox,y.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=xt(),this.targetWithTransforms=xt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),gE(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):zn(this.target,this.layout.layoutBox),sb(this.target,this.targetDelta)):zn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?this.createRelativeTarget(y,this.target,y.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||sh(this.parent.latestValues)||ob(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(u,d,p){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),nc(this.relativeTargetOrigin,d,p,this.options.layoutAnchor||void 0),zn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const u=this.getLead(),d=!!this.resumingFrom||this!==u;let p=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(p=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===It.timestamp&&(p=!1),p)return;const{layout:f,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||g))return;zn(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,y=this.treeScale.y;$T(this.layoutCorrected,this.treeScale,this.path,d),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=xt());const{target:_}=u;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Mv(this.prevProjectionDelta.x,this.projectionDelta.x),Mv(this.prevProjectionDelta.y,this.projectionDelta.y)),Oo(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==y||!Wv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Wv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.visualElement?.scheduleRender(),u){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Si(),this.projectionDelta=Si(),this.projectionDeltaWithTransform=Si()}setAnimationOrigin(u,d=!1){const p=this.snapshot,f=p?p.latestValues:{},g={...this.latestValues},v=Si();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const y=xt(),_=p?p.source:void 0,w=this.layout?this.layout.source:void 0,P=_!==w,S=this.getStack(),N=!S||S.members.length<=1,j=!!(P&&!N&&this.options.crossfade===!0&&!this.path.some(GE));this.animationProgress=0;let I;this.mixTargetDelta=D=>{const B=D/1e3;qv(v.x,u.x,B),qv(v.y,u.y,B),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nc(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),$E(this.relativeTarget,this.relativeTargetOrigin,y,B),I&&bE(this.relativeTarget,I)&&(this.isProjectionDirty=!1),I||(I=xt()),zn(I,this.relativeTarget)),P&&(this.animationValues=g,xE(g,f,this.latestValues,B,j,N)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=B},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ra(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{Ul.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Di(0)),this.motionValue.jump(0,!1),this.currentAnimation=CE(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),u.onUpdate&&u.onUpdate(d)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(IE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:p,layout:f,latestValues:g}=u;if(!(!d||!p||!f)){if(this!==u&&this.layout&&f&&Sb(this.options.animationType,this.layout.layoutBox,f.layoutBox)){p=this.target||xt();const v=Yt(this.layout.layoutBox.x);p.x.min=u.target.x.min,p.x.max=p.x.min+v;const y=Yt(this.layout.layoutBox.y);p.y.min=u.target.y.min,p.y.max=p.y.min+y}zn(d,p),Vl(d,g),Oo(this.projectionDeltaWithTransform,this.layoutCorrected,d,g)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new DE),this.sharedNodes.get(u).add(d);const f=d.options.initialPromotionConfig;d.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){const{layoutId:u}=this.options;return u?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:u}=this.options;return u?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:p}={}){const f=this.getStack();f&&f.promote(this,p),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:p}=u;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(d=!0),!d)return;const f={};p.z&&Pd("z",u,f,this.animationValues);for(let g=0;g<xd.length;g++)Pd(`rotate${xd[g]}`,u,f,this.animationValues),Pd(`skew${xd[g]}`,u,f,this.animationValues);u.render();for(const g in f)u.setStaticValue(g,f[g]),this.animationValues&&(this.animationValues[g]=f[g]);u.scheduleRender()}applyProjectionStyles(u,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=Fl(d?.pointerEvents)||"",u.transform=p?p(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=Fl(d?.pointerEvents)||""),this.hasProjected&&!Aa(this.latestValues)&&(u.transform=p?p({},""):"none",this.hasProjected=!1);return}u.visibility="";const g=f.animationValues||f.latestValues;this.applyTransformsToTarget();let v=_E(this.projectionDeltaWithTransform,this.treeScale,g);p&&(v=p(g,v)),u.transform=v;const{x:y,y:_}=this.projectionDelta;u.transformOrigin=`${y.origin*100}% ${_.origin*100}% 0`,f.animationValues?u.opacity=f===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:u.opacity=f===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const w in ch){if(g[w]===void 0)continue;const{correct:P,applyTo:S,isCSSVariable:N}=ch[w],j=v==="none"?g[w]:P(g[w],f);if(S){const I=S.length;for(let D=0;D<I;D++)u[S[D]]=j}else N?this.options.visualElement.renderState.vars[w]=j:u[w]=j}this.options.layoutId&&(u.pointerEvents=f===this?Fl(d?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>u.currentAnimation?.stop()),this.root.nodes.forEach(Yv),this.root.sharedNodes.clear()}}}function ME(e){e.updateLayout()}function LE(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:i}=e.layout,{animationType:s}=e.options,c=t.source!==e.layout.source;if(s==="size")er(g=>{const v=c?t.measuredBox[g]:t.layoutBox[g],y=Yt(v);v.min=a[g].min,v.max=v.min+y});else if(s==="x"||s==="y"){const g=s==="x"?"y":"x";uh(c?t.measuredBox[g]:t.layoutBox[g],a[g])}else Sb(s,t.layoutBox,a)&&er(g=>{const v=c?t.measuredBox[g]:t.layoutBox[g],y=Yt(a[g]);v.max=v.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+y)});const u=Si();Oo(u,a,t.layoutBox);const d=Si();c?Oo(d,e.applyTransform(i,!0),t.measuredBox):Oo(d,a,t.layoutBox);const p=!kb(u);let f=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:y}=g;if(v&&y){const _=e.options.layoutAnchor||void 0,w=xt();nc(w,t.layoutBox,v.layoutBox,_);const P=xt();nc(P,a,y.layoutBox,_),bb(w,P)||(f=!0),g.options.layoutRoot&&(e.relativeTarget=P,e.relativeTargetOrigin=w,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:d,layoutDelta:u,hasLayoutChanged:p,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function NE(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function OE(e){e.clearSnapshot()}function Yv(e){e.clearMeasurements()}function zE(e){e.isLayoutDirty=!0,e.updateLayout()}function Xv(e){e.isLayoutDirty=!1}function VE(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function FE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Zv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function UE(e){e.resolveTargetDelta()}function BE(e){e.calcProjection()}function HE(e){e.resetSkewAndRotation()}function WE(e){e.removeLeadSnapshot()}function qv(e,t,a){e.translate=it(t.translate,0,a),e.scale=it(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function Qv(e,t,a,i){e.min=it(t.min,a.min,i),e.max=it(t.max,a.max,i)}function $E(e,t,a,i){Qv(e.x,t.x,a.x,i),Qv(e.y,t.y,a.y,i)}function GE(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const KE={duration:.45,ease:[.4,0,.1,1]},Jv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ey=Jv("applewebkit/")&&!Jv("chrome/")?Math.round:Sn;function ty(e){e.min=ey(e.min),e.max=ey(e.max)}function YE(e){ty(e.x),ty(e.y)}function Sb(e,t,a){return e==="position"||e==="preserve-aspect"&&!mE(Hv(t),Hv(a),.2)}function XE(e){return e!==e.root&&e.scroll?.wasRoot}const ZE=Pb({attachResizeListener:(e,t)=>Yo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Sd={current:void 0},Cb=Pb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Sd.current){const e=new ZE({});e.mount(window),e.setOptions({layoutScroll:!0}),Sd.current=e}return Sd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),xf=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ny(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function qE(...e){return t=>{let a=!1;const i=e.map(s=>{const c=ny(s,t);return!a&&typeof c=="function"&&(a=!0),c});if(a)return()=>{for(let s=0;s<i.length;s++){const c=i[s];typeof c=="function"?c():ny(e[s],null)}}}}function QE(...e){return k.useCallback(qE(...e),e)}class JE extends k.Component{getSnapshotBeforeUpdate(t){const a=this.props.childRef.current;if(Ll(a)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const i=a.offsetParent,s=Ll(i)&&i.offsetWidth||0,c=Ll(i)&&i.offsetHeight||0,u=getComputedStyle(a),d=this.props.sizeRef.current;d.height=parseFloat(u.height),d.width=parseFloat(u.width),d.top=a.offsetTop,d.left=a.offsetLeft,d.right=s-d.width-d.left,d.bottom=c-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function eR({children:e,isPresent:t,anchorX:a,anchorY:i,root:s,pop:c}){const u=k.useId(),d=k.useRef(null),p=k.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:f}=k.useContext(xf),g=e.props?.ref??e?.ref,v=QE(d,g);return k.useInsertionEffect(()=>{const{width:y,height:_,top:w,left:P,right:S,bottom:N}=p.current;if(t||c===!1||!d.current||!y||!_)return;const j=a==="left"?`left: ${P}`:`right: ${S}`,I=i==="bottom"?`bottom: ${N}`:`top: ${w}`;d.current.dataset.motionPopId=u;const D=document.createElement("style");f&&(D.nonce=f);const B=s??document.head;return B.appendChild(D),D.sheet&&D.sheet.insertRule(`
688
+ `)}function qP(e,t){return YP(t)||e?.text||t}function QP(e){Bh=bk(e)}function U5(){return Bh}function He(e,t){const i=GP().map.get(e);return XP(ZP(qP(i,e)),t)}const Bg="tokentracker_native_app";let _k=null;const Fd=new Set;typeof window<"u"&&window.addEventListener("native:systemAppearanceChanged",e=>{const t=e?.detail?.isDark;if(typeof t=="boolean"){_k=t;try{const a=document.documentElement;t?a.classList.add("dark"):a.classList.remove("dark")}catch{}Fd.forEach(a=>{try{a(t)}catch{}})}});function Hg(){return _k}function JP(e){return Fd.add(e),()=>Fd.delete(e)}function Hh(){if(typeof window>"u")return!1;try{if(new URLSearchParams(window.location.search).get("app")==="1"){try{window.localStorage.setItem(Bg,"1")}catch{}return!0}return window.localStorage.getItem(Bg)==="1"}catch{return!1}}function Un(){return typeof window>"u"?!1:!!window.webkit?.messageHandlers?.nativeBridge}function wk(){return typeof window>"u"?!1:!!window.chrome?.webview&&Hh()}function xk(){return typeof window>"u"?null:window.webkit?.messageHandlers?.nativeBridge??null}function B5(){return!!xk()}function ns(e){const t=xk();if(!t)return!1;try{return t.postMessage(e),!0}catch(a){return console.warn("[tokentracker] nativeBridge post failed:",a),!1}}function H5(){return ns({type:"getSettings"})}function Lo(e,t){return ns({type:"setSetting",key:e,value:t})}function W5(e){return ns({type:"action",name:e})}function eS(){return ns({type:"getSystemAppearance"})}function tS(e,t){if(!Un())return;ns({type:"setChromeAppearance",isDark:e==="dark",theme:t??"system"})}function $5(e){if(typeof window>"u")return()=>{};const t=a=>{a&&a.detail&&typeof a.detail=="object"&&e(a.detail)};return window.addEventListener("native:settings",t),()=>window.removeEventListener("native:settings",t)}const Pk=k.createContext(null);function nS(){return $l(Uh())}function rS(e){typeof document>"u"||(document.documentElement.lang=e)}function Wg(e,t){QP(e),t(a=>a===e?a:e)}function aS({children:e}){const[t,a]=k.useState(Uh),[i,s]=k.useState(nS);k.useLayoutEffect(()=>{rS(i)},[i]),k.useLayoutEffect(()=>{Un()&&Lo("locale",t)},[t]),k.useLayoutEffect(()=>{if(t!==Ei||typeof window>"u")return;const d=()=>Wg($l(Ei),s);return window.addEventListener("languagechange",d),()=>window.removeEventListener("languagechange",d)},[t]);const c=k.useCallback(d=>{const p=hc(d);Wg($l(p),s),a(p),UP(p),Un()&&Lo("locale",p)},[]),u=k.useMemo(()=>({locale:t,setLocale:c,resolvedLocale:i}),[t,i,c]);return L.jsx(Pk.Provider,{value:u,children:e})}const Wo="USD",Wh=["USD","EUR","GBP","CNY","JPY","HKD"],Sk={USD:{symbol:"$",labelKey:"settings.appearance.currency.opt.usd"},EUR:{symbol:"€",labelKey:"settings.appearance.currency.opt.eur"},GBP:{symbol:"£",labelKey:"settings.appearance.currency.opt.gbp"},CNY:{symbol:"¥",labelKey:"settings.appearance.currency.opt.cny"},JPY:{symbol:"¥",labelKey:"settings.appearance.currency.opt.jpy"},HKD:{symbol:"HK$",labelKey:"settings.appearance.currency.opt.hkd"}},$h={USD:1,EUR:.92,GBP:.79,CNY:7.2,JPY:155,HKD:7.8},Ck="tokentracker-currency",Tk="tokentracker-exchange-rates",Ek="tokentracker-exchange-rate-source",Rk="tokentracker-exchange-rate-fetched-at";function Gl(e){return typeof e=="number"&&Number.isFinite(e)&&e>0}function Gh(e){if(typeof e!="string")return Wo;const t=e.trim().toUpperCase();return Wh.includes(t)?t:Wo}function ud(e){const t=typeof e=="string"?e.trim().toUpperCase():Wo;return Sk[t]?.symbol??"$"}function G5(){return Wh.map(e=>({code:e,...Sk[e]}))}function iS(){return Gh(Ao(Ck))}function oS(e){return Mo(Ck,Gh(e))}function Dk(e){return e==="fetched"?"fetched":"default"}function sS(e){if(e==null)return null;try{const t=JSON.parse(String(e));if(!t||typeof t!="object")return null;const a={};for(const[i,s]of Object.entries(t)){const c=Number(s);Number.isFinite(c)&&c>0&&(a[i.toUpperCase()]=c)}return a}catch{return null}}function lS(){const e=sS(Ao(Tk)),t=Ao(Rk),a=t==null?NaN:Number(t),i=Number.isFinite(a)&&a>0?a:null,s=Ao(Ek),c=Dk(s);return e&&Object.keys(e).length>0?{rates:{USD:1,...e},source:c,fetchedAt:i}:{rates:{...$h},source:"default",fetchedAt:null}}function cS(e){const{rates:t,source:a,fetchedAt:i}=e;if(!t||typeof t!="object")return!1;const s=Mo(Tk,JSON.stringify(t)),c=Mo(Ek,Dk(a)),u=i?Mo(Rk,String(i)):!0;return s&&c&&u}function dd(e,t){if(t===Wo)return 1;const a=e?.[t];if(Gl(a))return a;const i=$h[t];return Gl(i)?i:1}const uS="https://open.er-api.com/v6/latest/USD",dS=1440*60*1e3,hS=5e3;function fS(e,t=dS,a=Date.now()){return!e||!Number.isFinite(e)?!0:a-e>t}async function pS(e={}){const{timeoutMs:t=hS,fetchImpl:a,url:i=uS,codes:s=Wh}=e,c=a??(typeof fetch<"u"?fetch:null);if(!c)throw new Error("fetch is not available");const u=typeof AbortController<"u"?new AbortController:null,d=u?setTimeout(()=>u.abort(),t):null;try{const p=await c(i,u?{signal:u.signal}:void 0);if(!p||!p.ok)throw new Error(`exchange rate fetch failed: ${p?.status??"no-response"}`);const g=(await p.json())?.rates;if(!g||typeof g!="object")throw new Error("exchange rate response missing rates");const v={USD:1};for(const y of s){if(y==="USD")continue;const _=g[y];Gl(_)&&(v[y]=_)}if(Object.keys(v).length<=1)throw new Error("no supported currency rates in response");return{rates:v,fetchedAt:Date.now()}}finally{d&&clearTimeout(d)}}const mS=k.createContext(null);function $g(e,t,a){Un()&&(Lo("currency",e),Lo("currencySymbol",a),Gl(t)&&Lo("exchangeRate",t))}function gS({children:e}){const[t,a]=k.useState(iS),i=k.useMemo(()=>lS(),[]),[s,c]=k.useState(i.rates),[u,d]=k.useState(i.source),[p,f]=k.useState(i.fetchedAt),g=k.useRef(!1),v=k.useRef(!1),y=k.useCallback((j,I,D)=>{c(j),d(I),f(D),cS({rates:j,source:I,fetchedAt:D})},[]),_=k.useCallback(async()=>{if(!g.current){g.current=!0;try{const{rates:j,fetchedAt:I}=await pS();y({...$h,...j},"fetched",I)}catch{}finally{g.current=!1}}},[y]),w=k.useCallback(j=>{const I=Gh(j);a(I),oS(I);const D=dd(s,I),B=ud(I);$g(I,D,B)},[s]);k.useEffect(()=>{v.current||t!==Wo&&fS(p)&&(v.current=!0,_())},[t,p,_]),k.useEffect(()=>{const j=dd(s,t),I=ud(t);$g(t,j,I)},[t,s]);const P=k.useMemo(()=>dd(s,t),[s,t]),S=k.useMemo(()=>ud(t),[t]),N=k.useMemo(()=>({currency:t,rate:P,symbol:S,rates:s,rateSource:u,rateFetchedAt:p,setCurrency:w}),[t,P,S,s,u,p,w]);return L.jsx(mS.Provider,{value:N,children:e})}const vS="modulepreload",yS=function(e){return"/"+e},Gg={},oa=function(t,a,i){let s=Promise.resolve();if(a&&a.length>0){let p=function(f){return Promise.all(f.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");s=p(a.map(f=>{if(f=yS(f),f in Gg)return;Gg[f]=!0;const g=f.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${v}`))return;const y=document.createElement("link");if(y.rel=g?"stylesheet":vS,g||(y.as="script"),y.crossOrigin="",y.href=f,d&&y.setAttribute("nonce",d),document.head.appendChild(y),g)return new Promise((_,w)=>{y.addEventListener("load",_),y.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${f}`)))})}))}function c(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return s.then(u=>{for(const d of u||[])d.status==="rejected"&&c(d.reason);return t().catch(c)})};const Ik=(...e)=>e.filter((t,a,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===a).join(" ").trim();const kS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const bS=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,i)=>i?i.toUpperCase():a.toLowerCase());const Kg=e=>{const t=bS(e);return t.charAt(0).toUpperCase()+t.slice(1)};var hd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const _S=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},wS=k.createContext({}),xS=()=>k.useContext(wS),PS=k.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:i,className:s="",children:c,iconNode:u,...d},p)=>{const{size:f=24,strokeWidth:g=2,absoluteStrokeWidth:v=!1,color:y="currentColor",className:_=""}=xS()??{},w=i??v?Number(a??g)*24/Number(t??f):a??g;return k.createElement("svg",{ref:p,...hd,width:t??f??hd.width,height:t??f??hd.height,stroke:e??y,strokeWidth:w,className:Ik("lucide",_,s),...!c&&!_S(d)&&{"aria-hidden":"true"},...d},[...u.map(([P,S])=>k.createElement(P,S)),...Array.isArray(c)?c:[c]])});const Mt=(e,t)=>{const a=k.forwardRef(({className:i,...s},c)=>k.createElement(PS,{ref:c,iconNode:t,className:Ik(`lucide-${kS(Kg(e))}`,`lucide-${e}`,i),...s}));return a.displayName=Kg(e),a};const SS=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],CS=Mt("chart-column",SS);const TS=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ES=Mt("chevron-left",TS);const RS=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],DS=Mt("chevron-right",RS);const IS=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],AS=Mt("corner-down-left",IS);const MS=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],LS=Mt("gauge",MS);const NS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],jS=Mt("globe",NS);const OS=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],zS=Mt("layout-grid",OS);const VS=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],FS=Mt("menu",VS);const US=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],BS=Mt("monitor",US);const HS=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Ak=Mt("moon",HS);const WS=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],$S=Mt("puzzle",WS);const GS=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],KS=Mt("refresh-cw",GS);const YS=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],XS=Mt("search",YS);const ZS=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],qS=Mt("settings",ZS);const QS=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Mk=Mt("sun",QS);const JS=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],eC=Mt("triangle-alert",JS);const tC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Lk=Mt("x",tC);function nC({children:e,variant:t="primary",size:a="md",onClick:i,disabled:s=!1,className:c="",as:u="button",...d}){const p="inline-flex items-center justify-center font-medium transition-all duration-200 rounded-md focus:outline-none focus:ring-2 focus:ring-oai-blue/30 active:scale-[0.98] active:duration-100",f={primary:"bg-oai-black dark:bg-oai-white text-white dark:text-oai-black border border-transparent hover:bg-oai-gray-800 dark:hover:bg-oai-gray-200 active:bg-oai-gray-900 dark:active:bg-oai-gray-300 disabled:bg-oai-gray-300 dark:disabled:bg-oai-gray-700 disabled:text-oai-gray-500 dark:disabled:text-oai-gray-400 focus:ring-oai-brand/30 transition-colors duration-200",secondary:"bg-oai-white dark:bg-oai-gray-900 text-oai-black dark:text-oai-white border border-oai-gray-300 dark:border-oai-gray-700 hover:border-oai-brand hover:text-oai-brand active:bg-oai-gray-50 dark:active:bg-oai-gray-800 active:border-oai-brand-dark disabled:text-oai-gray-400 dark:disabled:text-oai-gray-500 disabled:border-oai-gray-200 dark:disabled:border-oai-gray-700 focus:ring-oai-brand/30 transition-colors duration-200",ghost:"bg-transparent text-oai-gray-600 dark:text-oai-gray-300 border border-transparent hover:text-oai-brand hover:bg-oai-brand-50/50 dark:hover:bg-oai-brand-950/30 active:bg-oai-brand-50 dark:active:bg-oai-brand-900/50 disabled:text-oai-gray-400 dark:disabled:text-oai-gray-500 focus:ring-oai-brand/30 transition-colors duration-200"},g={sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-sm",lg:"h-12 px-6 text-base"},v=s?"cursor-not-allowed opacity-60":"cursor-pointer",y=`${p} ${f[t]} ${g[a]} ${v} ${c}`;return L.jsx(u,{className:y,onClick:i,disabled:s,...d,children:e})}class rC extends Sh.Component{constructor(t){super(t),this.state={error:null},this.handleReload=this.handleReload.bind(this)}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,a){console.error("ErrorBoundary caught an error:",t)}handleReload(){typeof window>"u"||window.location.reload()}render(){const{error:t}=this.state;if(!t)return this.props.children;const a=String(t?.message||t||""),i=a?He("shared.error.prefix",{error:a}):He("error.boundary.no_details");return L.jsx("div",{className:"flex min-h-screen items-center justify-center bg-oai-white p-6 font-oai text-oai-black antialiased dark:bg-oai-gray-950 dark:text-oai-white",children:L.jsxs("div",{className:"w-full max-w-lg rounded-xl border border-oai-gray-200 bg-white p-6 text-center shadow-sm dark:border-oai-gray-800 dark:bg-oai-gray-900",children:[L.jsx("div",{className:"mx-auto flex h-10 w-10 items-center justify-center rounded-full bg-amber-50 text-amber-600 dark:bg-amber-950/30 dark:text-amber-300",children:L.jsx(eC,{className:"h-5 w-5","aria-hidden":!0})}),L.jsx("div",{className:"mt-4 text-xs font-medium uppercase text-oai-gray-500 dark:text-oai-gray-400",children:He("error.boundary.title")}),L.jsx("h1",{className:"mt-2 text-xl font-semibold text-oai-black dark:text-white",children:He("error.boundary.subtitle")}),L.jsx("p",{className:"mt-2 text-sm text-oai-gray-500 dark:text-oai-gray-400",children:He("error.boundary.hint")}),L.jsx("div",{className:"mt-4 max-h-32 overflow-auto rounded-lg border border-oai-gray-200 bg-oai-gray-50 px-3 py-2 text-left text-xs leading-5 text-oai-gray-600 dark:border-oai-gray-800 dark:bg-oai-gray-950 dark:text-oai-gray-300",children:i}),L.jsxs(nC,{type:"button",size:"md",onClick:this.handleReload,className:"mt-5",children:[L.jsx(KS,{className:"mr-2 h-4 w-4","aria-hidden":!0}),He("error.boundary.action.reload")]})]})})}}function Nk(){const e=k.useContext(Pk);if(e===null)throw new Error("useLocale must be used within a LocaleProvider");return e}const Ud="tokentracker-theme",jk=k.createContext(null);function aC(){if(typeof window>"u")return"system";try{const e=localStorage.getItem(Ud);if(e==="light"||e==="dark"||e==="system")return e}catch{}return"system"}function kl(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function iC(e){if(typeof document>"u")return;const t=document.documentElement;e==="dark"?t.classList.add("dark"):t.classList.remove("dark")}function oC({children:e}){const[t,a]=k.useState(aC),[i,s]=k.useState(()=>{if(t!=="system")return t;if(Un()){const f=Hg();if(typeof f=="boolean")return f?"dark":"light"}return kl()}),c=k.useRef(t);k.useEffect(()=>{c.current=t},[t]),k.useEffect(()=>{iC(i)},[i]),k.useLayoutEffect(()=>{if(t==="system"){if(Un()){const f=Hg();s(typeof f=="boolean"?f?"dark":"light":kl()),eS();return}s(kl())}else s(t)},[t]),k.useEffect(()=>Un()?JP(g=>{c.current==="system"&&s(g?"dark":"light")}):void 0,[]),k.useEffect(()=>{if(typeof window>"u"||t!=="system"||Un())return;const f=window.matchMedia("(prefers-color-scheme: dark)"),g=v=>{const y=v.matches?"dark":"light";s(y)};return f.addEventListener?(f.addEventListener("change",g),()=>f.removeEventListener("change",g)):(f.addListener(g),()=>f.removeListener(g))},[t]),k.useEffect(()=>{const f=t==="system"&&!Un()?kl():i;tS(f,t)},[i,t]);const u=k.useCallback(f=>{if(a(f),typeof window<"u")try{localStorage.setItem(Ud,f)}catch{}},[]),d=k.useCallback(()=>{u(f=>{const g=f==="dark"?"light":"dark";if(typeof window<"u")try{localStorage.setItem(Ud,g)}catch{}return g})},[]),p=k.useMemo(()=>({theme:t,setTheme:u,toggleTheme:d,resolvedTheme:i}),[t,u,d,i]);return L.jsx(jk.Provider,{value:p,children:e})}function sC(){return""}function lC(e=""){if(typeof e!="string"||e.length===0)return!1;const t=new URLSearchParams(e),a=String(t.get("screenshot")||"").toLowerCase();return a==="1"||a==="true"}function Ok(e){var t,a,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(a=Ok(e[t]))&&(i&&(i+=" "),i+=a)}else for(a in e)e[a]&&(i&&(i+=" "),i+=a);return i}function cC(){for(var e,t,a=0,i="",s=arguments.length;a<s;a++)(e=arguments[a])&&(t=Ok(e))&&(i&&(i+=" "),i+=t);return i}const uC=(e,t)=>{const a=new Array(e.length+t.length);for(let i=0;i<e.length;i++)a[i]=e[i];for(let i=0;i<t.length;i++)a[e.length+i]=t[i];return a},dC=(e,t)=>({classGroupId:e,validator:t}),zk=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),Kl="-",Yg=[],hC="arbitrary..",fC=e=>{const t=mC(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return pC(u);const d=u.split(Kl),p=d[0]===""&&d.length>1?1:0;return Vk(d,p,t)},getConflictingClassGroupIds:(u,d)=>{if(d){const p=i[u],f=a[u];return p?f?uC(f,p):p:f||Yg}return a[u]||Yg}}},Vk=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;const s=e[t],c=a.nextPart.get(s);if(c){const f=Vk(e,t+1,c);if(f)return f}const u=a.validators;if(u===null)return;const d=t===0?e.join(Kl):e.slice(t).join(Kl),p=u.length;for(let f=0;f<p;f++){const g=u[f];if(g.validator(d))return g.classGroupId}},pC=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),a=t.indexOf(":"),i=t.slice(0,a);return i?hC+i:void 0})(),mC=e=>{const{theme:t,classGroups:a}=e;return gC(a,t)},gC=(e,t)=>{const a=zk();for(const i in e){const s=e[i];Kh(s,a,i,t)}return a},Kh=(e,t,a,i)=>{const s=e.length;for(let c=0;c<s;c++){const u=e[c];vC(u,t,a,i)}},vC=(e,t,a,i)=>{if(typeof e=="string"){yC(e,t,a);return}if(typeof e=="function"){kC(e,t,a,i);return}bC(e,t,a,i)},yC=(e,t,a)=>{const i=e===""?t:Fk(t,e);i.classGroupId=a},kC=(e,t,a,i)=>{if(_C(e)){Kh(e(i),t,a,i);return}t.validators===null&&(t.validators=[]),t.validators.push(dC(a,e))},bC=(e,t,a,i)=>{const s=Object.entries(e),c=s.length;for(let u=0;u<c;u++){const[d,p]=s[u];Kh(p,Fk(t,d),a,i)}},Fk=(e,t)=>{let a=e;const i=t.split(Kl),s=i.length;for(let c=0;c<s;c++){const u=i[c];let d=a.nextPart.get(u);d||(d=zk(),a.nextPart.set(u,d)),a=d}return a},_C=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,wC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),i=Object.create(null);const s=(c,u)=>{a[c]=u,t++,t>e&&(t=0,i=a,a=Object.create(null))};return{get(c){let u=a[c];if(u!==void 0)return u;if((u=i[c])!==void 0)return s(c,u),u},set(c,u){c in a?a[c]=u:s(c,u)}}},Bd="!",Xg=":",xC=[],Zg=(e,t,a,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:i,isExternal:s}),PC=e=>{const{prefix:t,experimentalParseClassName:a}=e;let i=s=>{const c=[];let u=0,d=0,p=0,f;const g=s.length;for(let P=0;P<g;P++){const S=s[P];if(u===0&&d===0){if(S===Xg){c.push(s.slice(p,P)),p=P+1;continue}if(S==="/"){f=P;continue}}S==="["?u++:S==="]"?u--:S==="("?d++:S===")"&&d--}const v=c.length===0?s:s.slice(p);let y=v,_=!1;v.endsWith(Bd)?(y=v.slice(0,-1),_=!0):v.startsWith(Bd)&&(y=v.slice(1),_=!0);const w=f&&f>p?f-p:void 0;return Zg(c,_,y,w)};if(t){const s=t+Xg,c=i;i=u=>u.startsWith(s)?c(u.slice(s.length)):Zg(xC,!1,u,void 0,!0)}if(a){const s=i;i=c=>a({className:c,parseClassName:s})}return i},SC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((a,i)=>{t.set(a,1e6+i)}),a=>{const i=[];let s=[];for(let c=0;c<a.length;c++){const u=a[c],d=u[0]==="[",p=t.has(u);d||p?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(u)):s.push(u)}return s.length>0&&(s.sort(),i.push(...s)),i}},CC=e=>({cache:wC(e.cacheSize),parseClassName:PC(e),sortModifiers:SC(e),...fC(e)}),TC=/\s+/,EC=(e,t)=>{const{parseClassName:a,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:c}=t,u=[],d=e.trim().split(TC);let p="";for(let f=d.length-1;f>=0;f-=1){const g=d[f],{isExternal:v,modifiers:y,hasImportantModifier:_,baseClassName:w,maybePostfixModifierPosition:P}=a(g);if(v){p=g+(p.length>0?" "+p:p);continue}let S=!!P,N=i(S?w.substring(0,P):w);if(!N){if(!S){p=g+(p.length>0?" "+p:p);continue}if(N=i(w),!N){p=g+(p.length>0?" "+p:p);continue}S=!1}const j=y.length===0?"":y.length===1?y[0]:c(y).join(":"),I=_?j+Bd:j,D=I+N;if(u.indexOf(D)>-1)continue;u.push(D);const B=s(N,S);for(let Z=0;Z<B.length;++Z){const oe=B[Z];u.push(I+oe)}p=g+(p.length>0?" "+p:p)}return p},RC=(...e)=>{let t=0,a,i,s="";for(;t<e.length;)(a=e[t++])&&(i=Uk(a))&&(s&&(s+=" "),s+=i);return s},Uk=e=>{if(typeof e=="string")return e;let t,a="";for(let i=0;i<e.length;i++)e[i]&&(t=Uk(e[i]))&&(a&&(a+=" "),a+=t);return a},DC=(e,...t)=>{let a,i,s,c;const u=p=>{const f=t.reduce((g,v)=>v(g),e());return a=CC(f),i=a.cache.get,s=a.cache.set,c=d,d(p)},d=p=>{const f=i(p);if(f)return f;const g=EC(p,a);return s(p,g),g};return c=u,(...p)=>c(RC(...p))},IC=[],wt=e=>{const t=a=>a[e]||IC;return t.isThemeGetter=!0,t},Bk=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hk=/^\((?:(\w[\w-]*):)?(.+)\)$/i,AC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,MC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,NC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kr=e=>AC.test(e),Oe=e=>!!e&&!Number.isNaN(Number(e)),Yr=e=>!!e&&Number.isInteger(Number(e)),fd=e=>e.endsWith("%")&&Oe(e.slice(0,-1)),kr=e=>MC.test(e),Wk=()=>!0,zC=e=>LC.test(e)&&!NC.test(e),Yh=()=>!1,VC=e=>jC.test(e),FC=e=>OC.test(e),UC=e=>!ve(e)&&!ke(e),BC=e=>sa(e,Kk,Yh),ve=e=>Bk.test(e),Ta=e=>sa(e,Yk,zC),qg=e=>sa(e,ZC,Oe),HC=e=>sa(e,Zk,Wk),WC=e=>sa(e,Xk,Yh),Qg=e=>sa(e,$k,Yh),$C=e=>sa(e,Gk,FC),bl=e=>sa(e,qk,VC),ke=e=>Hk.test(e),xo=e=>Ua(e,Yk),GC=e=>Ua(e,Xk),Jg=e=>Ua(e,$k),KC=e=>Ua(e,Kk),YC=e=>Ua(e,Gk),_l=e=>Ua(e,qk,!0),XC=e=>Ua(e,Zk,!0),sa=(e,t,a)=>{const i=Bk.exec(e);return i?i[1]?t(i[1]):a(i[2]):!1},Ua=(e,t,a=!1)=>{const i=Hk.exec(e);return i?i[1]?t(i[1]):a:!1},$k=e=>e==="position"||e==="percentage",Gk=e=>e==="image"||e==="url",Kk=e=>e==="length"||e==="size"||e==="bg-size",Yk=e=>e==="length",ZC=e=>e==="number",Xk=e=>e==="family-name",Zk=e=>e==="number"||e==="weight",qk=e=>e==="shadow",qC=()=>{const e=wt("color"),t=wt("font"),a=wt("text"),i=wt("font-weight"),s=wt("tracking"),c=wt("leading"),u=wt("breakpoint"),d=wt("container"),p=wt("spacing"),f=wt("radius"),g=wt("shadow"),v=wt("inset-shadow"),y=wt("text-shadow"),_=wt("drop-shadow"),w=wt("blur"),P=wt("perspective"),S=wt("aspect"),N=wt("ease"),j=wt("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...D(),ke,ve],Z=()=>["auto","hidden","clip","visible","scroll"],oe=()=>["auto","contain","none"],x=()=>[ke,ve,p],ee=()=>[Kr,"full","auto",...x()],Y=()=>[Yr,"none","subgrid",ke,ve],ue=()=>["auto",{span:["full",Yr,ke,ve]},Yr,ke,ve],se=()=>[Yr,"auto",ke,ve],q=()=>["auto","min","max","fr",ke,ve],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...x()],ne=()=>[Kr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],V=()=>[Kr,"screen","full","dvw","lvw","svw","min","max","fit",...x()],W=()=>[Kr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],O=()=>[e,ke,ve],E=()=>[...D(),Jg,Qg,{position:[ke,ve]}],$=()=>["no-repeat",{repeat:["","x","y","space","round"]}],de=()=>["auto","cover","contain",KC,BC,{size:[ke,ve]}],fe=()=>[fd,xo,Ta],he=()=>["","none","full",f,ke,ve],pe=()=>["",Oe,xo,Ta],De=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ce=()=>[Oe,fd,Jg,Qg],ut=()=>["","none",w,ke,ve],an=()=>["none",Oe,ke,ve],Xt=()=>["none",Oe,ke,ve],qe=()=>[Oe,ke,ve],Et=()=>[Kr,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[kr],breakpoint:[kr],color:[Wk],container:[kr],"drop-shadow":[kr],ease:["in","out","in-out"],font:[UC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[kr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[kr],shadow:[kr],spacing:["px",Oe],text:[kr],"text-shadow":[kr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Kr,ve,ke,S]}],container:["container"],columns:[{columns:[Oe,ve,ke,d]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:B()}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:oe()}],"overscroll-x":[{"overscroll-x":oe()}],"overscroll-y":[{"overscroll-y":oe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{"inset-s":ee(),start:ee()}],end:[{"inset-e":ee(),end:ee()}],"inset-bs":[{"inset-bs":ee()}],"inset-be":[{"inset-be":ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[Yr,"auto",ke,ve]}],basis:[{basis:[Kr,"full","auto",d,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Oe,Kr,"auto","initial","none",ve]}],grow:[{grow:["",Oe,ke,ve]}],shrink:[{shrink:["",Oe,ke,ve]}],order:[{order:[Yr,"first","last","none",ke,ve]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mbs:[{mbs:Q()}],mbe:[{mbe:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],"inline-size":[{inline:["auto",...V()]}],"min-inline-size":[{"min-inline":["auto",...V()]}],"max-inline-size":[{"max-inline":["none",...V()]}],"block-size":[{block:["auto",...W()]}],"min-block-size":[{"min-block":["auto",...W()]}],"max-block-size":[{"max-block":["none",...W()]}],w:[{w:[d,"screen",...ne()]}],"min-w":[{"min-w":[d,"screen","none",...ne()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",a,xo,Ta]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,XC,HC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fd,ve]}],"font-family":[{font:[GC,WC,t]}],"font-features":[{"font-features":[ve]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ke,ve]}],"line-clamp":[{"line-clamp":[Oe,"none",ke,qg]}],leading:[{leading:[c,...x()]}],"list-image":[{"list-image":["none",ke,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ke,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:[Oe,"from-font","auto",ke,Ta]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[Oe,"auto",ke,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ke,ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ke,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:E()}],"bg-repeat":[{bg:$()}],"bg-size":[{bg:de()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yr,ke,ve],radial:["",ke,ve],conic:[Yr,ke,ve]},YC,$C]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-bs":[{"border-bs":pe()}],"border-w-be":[{"border-be":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...De(),"hidden","none"]}],"divide-style":[{divide:[...De(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-bs":[{"border-bs":O()}],"border-color-be":[{"border-be":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...De(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Oe,ke,ve]}],"outline-w":[{outline:["",Oe,xo,Ta]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",g,_l,bl]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",v,_l,bl]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[Oe,Ta]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",y,_l,bl]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[Oe,ke,ve]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Oe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ce()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":Ce()}],"mask-image-t-to-pos":[{"mask-t-to":Ce()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":Ce()}],"mask-image-r-to-pos":[{"mask-r-to":Ce()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":Ce()}],"mask-image-b-to-pos":[{"mask-b-to":Ce()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":Ce()}],"mask-image-l-to-pos":[{"mask-l-to":Ce()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":Ce()}],"mask-image-x-to-pos":[{"mask-x-to":Ce()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":Ce()}],"mask-image-y-to-pos":[{"mask-y-to":Ce()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[ke,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ce()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[Oe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ce()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:E()}],"mask-repeat":[{mask:$()}],"mask-size":[{mask:de()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ke,ve]}],filter:[{filter:["","none",ke,ve]}],blur:[{blur:ut()}],brightness:[{brightness:[Oe,ke,ve]}],contrast:[{contrast:[Oe,ke,ve]}],"drop-shadow":[{"drop-shadow":["","none",_,_l,bl]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",Oe,ke,ve]}],"hue-rotate":[{"hue-rotate":[Oe,ke,ve]}],invert:[{invert:["",Oe,ke,ve]}],saturate:[{saturate:[Oe,ke,ve]}],sepia:[{sepia:["",Oe,ke,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",ke,ve]}],"backdrop-blur":[{"backdrop-blur":ut()}],"backdrop-brightness":[{"backdrop-brightness":[Oe,ke,ve]}],"backdrop-contrast":[{"backdrop-contrast":[Oe,ke,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Oe,ke,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Oe,ke,ve]}],"backdrop-invert":[{"backdrop-invert":["",Oe,ke,ve]}],"backdrop-opacity":[{"backdrop-opacity":[Oe,ke,ve]}],"backdrop-saturate":[{"backdrop-saturate":[Oe,ke,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",Oe,ke,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ke,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Oe,"initial",ke,ve]}],ease:[{ease:["linear","initial",N,ke,ve]}],delay:[{delay:[Oe,ke,ve]}],animate:[{animate:["none",j,ke,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[P,ke,ve]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:an()}],"rotate-x":[{"rotate-x":an()}],"rotate-y":[{"rotate-y":an()}],"rotate-z":[{"rotate-z":an()}],scale:[{scale:Xt()}],"scale-x":[{"scale-x":Xt()}],"scale-y":[{"scale-y":Xt()}],"scale-z":[{"scale-z":Xt()}],"scale-3d":["scale-3d"],skew:[{skew:qe()}],"skew-x":[{"skew-x":qe()}],"skew-y":[{"skew-y":qe()}],transform:[{transform:[ke,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Et()}],"translate-x":[{"translate-x":Et()}],"translate-y":[{"translate-y":Et()}],"translate-z":[{"translate-z":Et()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ke,ve]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ke,ve]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[Oe,xo,Ta,qg]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},QC=DC(qC);function Tn(...e){return QC(cC(e))}function JC(){const e=k.useContext(jk);if(e===null)throw new Error("useTheme must be used within a ThemeProvider");return e}const Hd="tt.sidebarCollapsed",pd="0.39.41".trim();function Qk(){const e=[{id:"usage",to:"/dashboard",icon:CS,label:He("nav.usage")},{id:"limits",to:"/limits",icon:LS,label:He("nav.limits")}];return[{id:"general",label:He("nav.group.general"),items:e},{id:"tools",label:He("nav.group.tools"),items:[{id:"widgets",to:"/widgets",icon:zS,label:He("nav.widgets")},{id:"skills",to:"/skills",icon:$S,label:He("nav.skills")},{id:"ip-check",to:"/ip-check",icon:jS,label:He("nav.ip_check")}]},{id:"account",label:He("nav.group.account"),items:[{id:"settings",to:"/settings",icon:qS,label:He("nav.settings")}]}]}function e2(){if(typeof window>"u")return!0;try{const e=window.localStorage.getItem(Hd);return e!=="0"}catch{return!0}}function t2(){const[e,t]=k.useState(e2),a=k.useCallback(()=>{t(i=>{const s=!i;try{typeof window<"u"&&window.localStorage.setItem(Hd,s?"1":"0")}catch{}return s})},[]);return k.useEffect(()=>{if(typeof window>"u")return;const i=s=>{s.key===Hd&&t(s.newValue!=="0")};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[]),{collapsed:e,toggle:a}}function n2(e,t){const a=e.replace(/\/+$/,"")||"/";return t==="/dashboard"?a==="/dashboard"||a==="/":a===t}function r2({label:e,collapsed:t,first:a}){return t?a?null:L.jsx("div",{className:"mx-2 my-2 h-px bg-oai-gray-200/70 dark:bg-oai-gray-800/70","aria-hidden":!0}):L.jsx("div",{className:Tn("px-3 pb-1 text-[10px] uppercase tracking-wider text-oai-gray-500 dark:text-oai-gray-500",a?"pt-2":"pt-4"),children:e})}function a2({item:e,collapsed:t,active:a,onClick:i}){const s=e.icon;return L.jsxs(dc,{to:e.to,onClick:i,title:t?e.label:void 0,"aria-current":a?"page":void 0,className:Tn("flex items-center gap-2 rounded-md px-2 py-1.5 text-[13px] no-underline transition-colors",t&&"justify-center px-0 py-2",a?"bg-oai-gray-200/70 text-oai-black font-medium dark:bg-oai-gray-800 dark:text-white":"text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/50 hover:text-oai-black dark:hover:bg-oai-gray-800/60 dark:hover:text-white"),children:[L.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:L.jsx(s,{className:"h-[15px] w-[15px]","aria-hidden":!0})}),!t&&L.jsx("span",{className:"truncate",children:e.label})]})}function i2({collapsed:e}){if(!pd)return null;const t=He("nav.version",{version:pd});return L.jsx("div",{className:Tn("px-2 text-[10px] font-medium tabular-nums text-oai-gray-400 dark:text-oai-gray-600",e?"text-center":"truncate"),title:t,"aria-label":t,children:`v${pd}`})}function o2({as:e="button",title:t,onClick:a,href:i,children:s,className:c,...u}){const d=Tn("flex h-10 w-10 items-center justify-center rounded-lg text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white transition-colors no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",c);return e==="a"?L.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",title:t,"aria-label":t,className:d,...u,children:s}):L.jsx("button",{type:"button",title:t,"aria-label":t,onClick:a,className:d,...u,children:s})}const s2=[{value:"light",label:"Light",Icon:Mk},{value:"dark",label:"Dark",Icon:Ak},{value:"system",label:"System",Icon:BS}];function l2({theme:e,resolvedTheme:t,onSetTheme:a,glassChrome:i=!1}){const[s,c]=k.useState(!1),u=k.useRef(null),d=t==="dark"?Ak:Mk;return k.useEffect(()=>{if(!s)return;const p=g=>{u.current&&!u.current.contains(g.target)&&c(!1)},f=g=>{g.key==="Escape"&&c(!1)};return document.addEventListener("mousedown",p),document.addEventListener("keydown",f),()=>{document.removeEventListener("mousedown",p),document.removeEventListener("keydown",f)}},[s]),L.jsxs("div",{ref:u,className:"relative",children:[L.jsx("button",{type:"button","aria-label":"Theme","aria-expanded":s,"aria-haspopup":"menu",title:"Theme",onClick:()=>c(p=>!p),className:Tn("inline-flex h-7 w-7 items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",i?"border border-gray-500/20 dark:border-gray-500/30 bg-gray-500/[0.04] dark:bg-gray-500/[0.06] backdrop-blur-[2px] text-oai-gray-700 dark:text-oai-gray-300 hover:bg-gray-500/10 dark:hover:bg-gray-500/12 hover:border-gray-500/30 dark:hover:border-gray-500/40 hover:text-oai-black dark:hover:text-white":"border border-oai-gray-200 dark:border-oai-gray-700 text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white hover:border-oai-gray-300 dark:hover:border-oai-gray-600"),children:L.jsx(d,{className:"h-3.5 w-3.5","aria-hidden":!0})}),s&&L.jsx("div",{role:"menu",className:"absolute bottom-full left-0 mb-2 z-50 min-w-[140px] py-1 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-white dark:bg-oai-gray-900 shadow-lg",children:s2.map(({value:p,label:f,Icon:g})=>{const v=e===p;return L.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{a(p),c(!1)},className:Tn("flex w-full items-center gap-2.5 px-3 py-1.5 text-[13px] transition-colors",v?"text-oai-black dark:text-white bg-oai-gray-100 dark:bg-oai-gray-800":"text-oai-gray-600 dark:text-oai-gray-400 hover:bg-oai-gray-50 dark:hover:bg-oai-gray-800/60 hover:text-oai-black dark:hover:text-white"),children:[L.jsx(g,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}),L.jsx("span",{children:f})]},p)})})]})}function Jk({collapsed:e,onToggleCollapsed:t,onItemClick:a,showCloseButton:i=!1,onClose:s,glassChrome:c=!1}){const d=Hn()?.pathname||"/",{theme:p,resolvedTheme:f,setTheme:g}=JC(),{resolvedLocale:v}=Nk(),y=k.useMemo(()=>Qk(),[v]);return L.jsxs(L.Fragment,{children:[i?L.jsx("div",{className:"flex justify-end px-2 pt-2 pb-2",children:L.jsx("button",{type:"button",onClick:s,"aria-label":He("nav.close_menu"),title:He("nav.close_menu"),className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-oai-gray-500 dark:text-oai-gray-500 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-gray-900 dark:hover:text-oai-gray-200 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",children:L.jsx(Lk,{className:"h-4 w-4",strokeWidth:1.75,"aria-hidden":!0})})}):null,L.jsx("nav",{"aria-label":He("nav.nav_label"),className:"flex-1 px-2 pb-2 flex flex-col overflow-y-auto",children:y.map((_,w)=>L.jsxs("div",{className:"flex flex-col",children:[L.jsx(r2,{label:_.label,collapsed:e,first:w===0}),L.jsx("div",{className:"flex flex-col gap-0.5",children:_.items.filter(P=>!(P.to==="/widgets"&&wk())).map(P=>L.jsx(a2,{item:P,collapsed:e,active:n2(d,P.to),onClick:a},P.id))})]},_.id))}),L.jsxs("div",{className:"px-2 py-3 space-y-2",children:[L.jsx(i2,{collapsed:e}),L.jsxs("div",{className:Tn("flex items-center",e?"flex-col justify-center gap-2":"justify-between gap-2"),children:[L.jsx(l2,{theme:p,resolvedTheme:f,onSetTheme:g,glassChrome:c}),L.jsx("div",{className:"flex items-center gap-1.5",children:!i&&L.jsx("button",{type:"button",onClick:t,"aria-label":He(e?"nav.expand":"nav.collapse"),title:He(e?"nav.expand":"nav.collapse"),className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-oai-gray-500 dark:text-oai-gray-500 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-gray-900 dark:hover:text-oai-gray-200 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",children:e?L.jsx(DS,{className:"h-4 w-4",strokeWidth:1.75,"aria-hidden":!0}):L.jsx(ES,{className:"h-4 w-4",strokeWidth:1.75,"aria-hidden":!0})})})]})]})]})}function c2({collapsed:e,onToggleCollapsed:t}){const a=k.useMemo(()=>typeof window>"u"?!1:Un()||Hh(),[]);return L.jsx("aside",{"aria-label":He("nav.aside_label"),className:Tn("hidden lg:flex flex-col shrink-0 h-full min-h-0 transition-[width] duration-200",e?"w-[72px]":"w-[220px]"),children:L.jsx(Jk,{collapsed:e,onToggleCollapsed:t,glassChrome:a})})}function u2({open:e,onClose:t}){return k.useEffect(()=>{if(!e)return;const a=i=>{i.key==="Escape"&&t()};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,t]),k.useEffect(()=>{if(!e)return;const a=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=a}},[e]),e?L.jsxs("div",{className:"lg:hidden fixed inset-0 z-[80] flex",children:[L.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:t,"aria-hidden":!0}),L.jsx("aside",{"aria-label":He("nav.aside_label"),className:"relative w-[260px] max-w-[80vw] flex flex-col bg-oai-white dark:bg-oai-gray-900 border-r border-oai-gray-200 dark:border-oai-gray-800 shadow-2xl",children:L.jsx(Jk,{collapsed:!1,showCloseButton:!0,onClose:t,onItemClick:t})})]}):null}function d2({onOpenDrawer:e}){return L.jsxs("div",{className:"lg:hidden flex items-center justify-between gap-2 px-3 h-14 border-b border-oai-gray-200 dark:border-oai-gray-800",children:[L.jsx(o2,{title:He("nav.menu"),onClick:e,children:L.jsx(FS,{className:"h-5 w-5","aria-hidden":!0})}),L.jsxs(dc,{to:"/",className:"flex items-center gap-2 no-underline hover:opacity-80 transition-opacity","aria-label":"Token Tracker",children:[L.jsx("img",{src:"/app-icon.png",alt:"",width:24,height:24,className:"rounded-md"}),L.jsx("span",{className:"text-sm font-semibold text-oai-black dark:text-oai-white",children:"Token Tracker"})]}),L.jsx("div",{className:"w-10 shrink-0","aria-hidden":!0})]})}function h2({children:e}){const{collapsed:t,toggle:a}=t2(),[i,s]=k.useState(!1),c=k.useCallback(()=>s(!0),[]),u=k.useCallback(()=>s(!1),[]),d=k.useMemo(()=>typeof window>"u"?!1:Un()||Hh(),[]);return L.jsxs("div",{className:Tn("fixed inset-0 flex flex-col text-oai-black dark:text-oai-white font-sans overflow-hidden",wk()&&"tt-native-glass-shell",d?"bg-transparent":"bg-oai-gray-100 dark:bg-oai-gray-950"),children:[d&&L.jsx("div",{className:"h-7 shrink-0",style:{WebkitAppRegion:"drag"},"aria-hidden":!0}),L.jsxs("div",{className:"flex-1 min-h-0 flex",children:[L.jsx(c2,{collapsed:t,onToggleCollapsed:a}),L.jsx(u2,{open:i,onClose:u}),L.jsx("div",{className:"flex-1 min-w-0 min-h-0 p-2 lg:pl-0 lg:pr-3 lg:pb-3 flex flex-col",children:L.jsxs("div",{className:Tn("flex-1 min-h-0 flex flex-col bg-oai-white dark:bg-oai-gray-900 border border-oai-gray-200 dark:border-oai-gray-800 overflow-hidden",d?"tt-native-main-card":"rounded-2xl",!d&&"shadow-sm"),children:[L.jsx(d2,{onOpenDrawer:c}),L.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:e})]})})]})]})}const Xh=k.createContext({});function Zh(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const f2=typeof window<"u",e0=f2?k.useLayoutEffect:k.useEffect,fc=k.createContext(null);function qh(e,t){e.indexOf(t)===-1&&e.push(t)}function Yl(e,t){const a=e.indexOf(t);a>-1&&e.splice(a,1)}const ar=(e,t,a)=>a>t?t:a<e?e:a;let Qh=()=>{};const na={},t0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function n0(e){return typeof e=="object"&&e!==null}const r0=e=>/^0[^.\s]+$/u.test(e);function a0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Sn=e=>e,p2=(e,t)=>a=>t(e(a)),rs=(...e)=>e.reduce(p2),$o=(e,t,a)=>{const i=t-e;return i===0?1:(a-e)/i};class Jh{constructor(){this.subscriptions=[]}add(t){return qh(this.subscriptions,t),()=>Yl(this.subscriptions,t)}notify(t,a,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,a,i);else for(let c=0;c<s;c++){const u=this.subscriptions[c];u&&u(t,a,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pn=e=>e*1e3,xn=e=>e/1e3;function i0(e,t){return t?e*(1e3/t):0}const o0=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,m2=1e-7,g2=12;function v2(e,t,a,i,s){let c,u,d=0;do u=t+(a-t)/2,c=o0(u,i,s)-e,c>0?a=u:t=u;while(Math.abs(c)>m2&&++d<g2);return u}function as(e,t,a,i){if(e===t&&a===i)return Sn;const s=c=>v2(c,0,1,e,a);return c=>c===0||c===1?c:o0(s(c),t,i)}const s0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,l0=e=>t=>1-e(1-t),c0=as(.33,1.53,.69,.99),ef=l0(c0),u0=s0(ef),d0=e=>e>=1?1:(e*=2)<1?.5*ef(e):.5*(2-Math.pow(2,-10*(e-1))),tf=e=>1-Math.sin(Math.acos(e)),h0=l0(tf),f0=s0(tf),y2=as(.42,0,1,1),k2=as(0,0,.58,1),p0=as(.42,0,.58,1),b2=e=>Array.isArray(e)&&typeof e[0]!="number",m0=e=>Array.isArray(e)&&typeof e[0]=="number",_2={linear:Sn,easeIn:y2,easeInOut:p0,easeOut:k2,circIn:tf,circInOut:f0,circOut:h0,backIn:ef,backInOut:u0,backOut:c0,anticipate:d0},w2=e=>typeof e=="string",ev=e=>{if(m0(e)){Qh(e.length===4);const[t,a,i,s]=e;return as(t,a,i,s)}else if(w2(e))return _2[e];return e},wl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function x2(e,t){let a=new Set,i=new Set,s=!1,c=!1;const u=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function p(g){u.has(g)&&(f.schedule(g),e()),g(d)}const f={schedule:(g,v=!1,y=!1)=>{const w=y&&s?a:i;return v&&u.add(g),w.add(g),g},cancel:g=>{i.delete(g),u.delete(g)},process:g=>{if(d=g,s){c=!0;return}s=!0;const v=a;a=i,i=v,a.forEach(p),a.clear(),s=!1,c&&(c=!1,f.process(g))}};return f}const P2=40;function g0(e,t){let a=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},c=()=>a=!0,u=wl.reduce((I,D)=>(I[D]=x2(c),I),{}),{setup:d,read:p,resolveKeyframes:f,preUpdate:g,update:v,preRender:y,render:_,postRender:w}=u,P=()=>{const I=na.useManualTiming,D=I?s.timestamp:performance.now();a=!1,I||(s.delta=i?1e3/60:Math.max(Math.min(D-s.timestamp,P2),1)),s.timestamp=D,s.isProcessing=!0,d.process(s),p.process(s),f.process(s),g.process(s),v.process(s),y.process(s),_.process(s),w.process(s),s.isProcessing=!1,a&&t&&(i=!1,e(P))},S=()=>{a=!0,i=!0,s.isProcessing||e(P)};return{schedule:wl.reduce((I,D)=>{const B=u[D];return I[D]=(Z,oe=!1,x=!1)=>(a||S(),B.schedule(Z,oe,x)),I},{}),cancel:I=>{for(let D=0;D<wl.length;D++)u[wl[D]].cancel(I)},state:s,steps:u}}const{schedule:Qe,cancel:ra,state:It,steps:md}=g0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Sn,!0);let Ml;function S2(){Ml=void 0}const Kt={now:()=>(Ml===void 0&&Kt.set(It.isProcessing||na.useManualTiming?It.timestamp:performance.now()),Ml),set:e=>{Ml=e,queueMicrotask(S2)}},v0=e=>t=>typeof t=="string"&&t.startsWith(e),y0=v0("--"),C2=v0("var(--"),nf=e=>C2(e)?T2.test(e.split("/*")[0].trim()):!1,T2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tv(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ai={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Go={...Ai,transform:e=>ar(0,1,e)},xl={...Ai,default:1},No=e=>Math.round(e*1e5)/1e5,rf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function E2(e){return e==null}const R2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,af=(e,t)=>a=>!!(typeof a=="string"&&R2.test(a)&&a.startsWith(e)||t&&!E2(a)&&Object.prototype.hasOwnProperty.call(a,t)),k0=(e,t,a)=>i=>{if(typeof i!="string")return i;const[s,c,u,d]=i.match(rf);return{[e]:parseFloat(s),[t]:parseFloat(c),[a]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},D2=e=>ar(0,255,e),gd={...Ai,transform:e=>Math.round(D2(e))},La={test:af("rgb","red"),parse:k0("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:i=1})=>"rgba("+gd.transform(e)+", "+gd.transform(t)+", "+gd.transform(a)+", "+No(Go.transform(i))+")"};function I2(e){let t="",a="",i="",s="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),t+=t,a+=a,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const Wd={test:af("#"),parse:I2,transform:La.transform},is=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),qr=is("deg"),nr=is("%"),ye=is("px"),A2=is("vh"),M2=is("vw"),nv={...nr,parse:e=>nr.parse(e)/100,transform:e=>nr.transform(e*100)},xi={test:af("hsl","hue"),parse:k0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:i=1})=>"hsla("+Math.round(e)+", "+nr.transform(No(t))+", "+nr.transform(No(a))+", "+No(Go.transform(i))+")"},vt={test:e=>La.test(e)||Wd.test(e)||xi.test(e),parse:e=>La.test(e)?La.parse(e):xi.test(e)?xi.parse(e):Wd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?La.transform(e):xi.transform(e),getAnimatableNone:e=>{const t=vt.parse(e);return t.alpha=0,vt.transform(t)}},L2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function N2(e){return isNaN(e)&&typeof e=="string"&&(e.match(rf)?.length||0)+(e.match(L2)?.length||0)>0}const b0="number",_0="color",j2="var",O2="var(",rv="${}",z2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ri(e){const t=e.toString(),a=[],i={color:[],number:[],var:[]},s=[];let c=0;const d=t.replace(z2,p=>(vt.test(p)?(i.color.push(c),s.push(_0),a.push(vt.parse(p))):p.startsWith(O2)?(i.var.push(c),s.push(j2),a.push(p)):(i.number.push(c),s.push(b0),a.push(parseFloat(p))),++c,rv)).split(rv);return{values:a,split:d,indexes:i,types:s}}function V2(e){return Ri(e).values}function w0({split:e,types:t}){const a=e.length;return i=>{let s="";for(let c=0;c<a;c++)if(s+=e[c],i[c]!==void 0){const u=t[c];u===b0?s+=No(i[c]):u===_0?s+=vt.transform(i[c]):s+=i[c]}return s}}function F2(e){return w0(Ri(e))}const U2=e=>typeof e=="number"?0:vt.test(e)?vt.getAnimatableNone(e):e,B2=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:U2(e);function H2(e){const t=Ri(e);return w0(t)(t.values.map((i,s)=>B2(i,t.split[s])))}const Bn={test:N2,parse:V2,createTransformer:F2,getAnimatableNone:H2};function vd(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function W2({hue:e,saturation:t,lightness:a,alpha:i}){e/=360,t/=100,a/=100;let s=0,c=0,u=0;if(!t)s=c=u=a;else{const d=a<.5?a*(1+t):a+t-a*t,p=2*a-d;s=vd(p,d,e+1/3),c=vd(p,d,e),u=vd(p,d,e-1/3)}return{red:Math.round(s*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:i}}function Xl(e,t){return a=>a>0?t:e}const it=(e,t,a)=>e+(t-e)*a,yd=(e,t,a)=>{const i=e*e,s=a*(t*t-i)+i;return s<0?0:Math.sqrt(s)},$2=[Wd,La,xi],G2=e=>$2.find(t=>t.test(e));function av(e){const t=G2(e);if(!t)return!1;let a=t.parse(e);return t===xi&&(a=W2(a)),a}const iv=(e,t)=>{const a=av(e),i=av(t);if(!a||!i)return Xl(e,t);const s={...a};return c=>(s.red=yd(a.red,i.red,c),s.green=yd(a.green,i.green,c),s.blue=yd(a.blue,i.blue,c),s.alpha=it(a.alpha,i.alpha,c),La.transform(s))},$d=new Set(["none","hidden"]);function K2(e,t){return $d.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function Y2(e,t){return a=>it(e,t,a)}function of(e){return typeof e=="number"?Y2:typeof e=="string"?nf(e)?Xl:vt.test(e)?iv:q2:Array.isArray(e)?x0:typeof e=="object"?vt.test(e)?iv:X2:Xl}function x0(e,t){const a=[...e],i=a.length,s=e.map((c,u)=>of(c)(c,t[u]));return c=>{for(let u=0;u<i;u++)a[u]=s[u](c);return a}}function X2(e,t){const a={...e,...t},i={};for(const s in a)e[s]!==void 0&&t[s]!==void 0&&(i[s]=of(e[s])(e[s],t[s]));return s=>{for(const c in i)a[c]=i[c](s);return a}}function Z2(e,t){const a=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const c=t.types[s],u=e.indexes[c][i[c]],d=e.values[u]??0;a[s]=d,i[c]++}return a}const q2=(e,t)=>{const a=Bn.createTransformer(t),i=Ri(e),s=Ri(t);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?$d.has(e)&&!s.values.length||$d.has(t)&&!i.values.length?K2(e,t):rs(x0(Z2(i,s),s.values),a):Xl(e,t)};function P0(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?it(e,t,a):of(e)(e,t)}const Q2=e=>{const t=({timestamp:a})=>e(a);return{start:(a=!0)=>Qe.update(t,a),stop:()=>ra(t),now:()=>It.isProcessing?It.timestamp:Kt.now()}},S0=(e,t,a=10)=>{let i="";const s=Math.max(Math.round(t/a),2);for(let c=0;c<s;c++)i+=Math.round(e(c/(s-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Zl=2e4;function sf(e){let t=0;const a=50;let i=e.next(t);for(;!i.done&&t<Zl;)t+=a,i=e.next(t);return t>=Zl?1/0:t}function J2(e,t=100,a){const i=a({...e,keyframes:[0,t]}),s=Math.min(sf(i),Zl);return{type:"keyframes",ease:c=>i.next(s*c).value/t,duration:xn(s)}}const ht={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Gd(e,t){return e*Math.sqrt(1-t*t)}const e3=12;function t3(e,t,a){let i=a;for(let s=1;s<e3;s++)i=i-e(i)/t(i);return i}const kd=.001;function n3({duration:e=ht.duration,bounce:t=ht.bounce,velocity:a=ht.velocity,mass:i=ht.mass}){let s,c,u=1-t;u=ar(ht.minDamping,ht.maxDamping,u),e=ar(ht.minDuration,ht.maxDuration,xn(e)),u<1?(s=f=>{const g=f*u,v=g*e,y=g-a,_=Gd(f,u),w=Math.exp(-v);return kd-y/_*w},c=f=>{const v=f*u*e,y=v*a+a,_=Math.pow(u,2)*Math.pow(f,2)*e,w=Math.exp(-v),P=Gd(Math.pow(f,2),u);return(-s(f)+kd>0?-1:1)*((y-_)*w)/P}):(s=f=>{const g=Math.exp(-f*e),v=(f-a)*e+1;return-kd+g*v},c=f=>{const g=Math.exp(-f*e),v=(a-f)*(e*e);return g*v});const d=5/e,p=t3(s,c,d);if(e=pn(e),isNaN(p))return{stiffness:ht.stiffness,damping:ht.damping,duration:e};{const f=Math.pow(p,2)*i;return{stiffness:f,damping:u*2*Math.sqrt(i*f),duration:e}}}const r3=["duration","bounce"],a3=["stiffness","damping","mass"];function ov(e,t){return t.some(a=>e[a]!==void 0)}function i3(e){let t={velocity:ht.velocity,stiffness:ht.stiffness,damping:ht.damping,mass:ht.mass,isResolvedFromDuration:!1,...e};if(!ov(e,a3)&&ov(e,r3))if(t.velocity=0,e.visualDuration){const a=e.visualDuration,i=2*Math.PI/(a*1.2),s=i*i,c=2*ar(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ht.mass,stiffness:s,damping:c}}else{const a=n3({...e,velocity:0});t={...t,...a,mass:ht.mass},t.isResolvedFromDuration=!0}return t}function ql(e=ht.visualDuration,t=ht.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:s}=a;const c=a.keyframes[0],u=a.keyframes[a.keyframes.length-1],d={done:!1,value:c},{stiffness:p,damping:f,mass:g,duration:v,velocity:y,isResolvedFromDuration:_}=i3({...a,velocity:-xn(a.velocity||0)}),w=y||0,P=f/(2*Math.sqrt(p*g)),S=u-c,N=xn(Math.sqrt(p/g)),j=Math.abs(S)<5;i||(i=j?ht.restSpeed.granular:ht.restSpeed.default),s||(s=j?ht.restDelta.granular:ht.restDelta.default);let I,D,B,Z,oe,x;if(P<1)B=Gd(N,P),Z=(w+P*N*S)/B,I=Y=>{const ue=Math.exp(-P*N*Y);return u-ue*(Z*Math.sin(B*Y)+S*Math.cos(B*Y))},oe=P*N*Z+S*B,x=P*N*S-Z*B,D=Y=>Math.exp(-P*N*Y)*(oe*Math.sin(B*Y)+x*Math.cos(B*Y));else if(P===1){I=ue=>u-Math.exp(-N*ue)*(S+(w+N*S)*ue);const Y=w+N*S;D=ue=>Math.exp(-N*ue)*(N*Y*ue-w)}else{const Y=N*Math.sqrt(P*P-1);I=ae=>{const ie=Math.exp(-P*N*ae),Q=Math.min(Y*ae,300);return u-ie*((w+P*N*S)*Math.sinh(Q)+Y*S*Math.cosh(Q))/Y};const ue=(w+P*N*S)/Y,se=P*N*ue-S*Y,q=P*N*S-ue*Y;D=ae=>{const ie=Math.exp(-P*N*ae),Q=Math.min(Y*ae,300);return ie*(se*Math.sinh(Q)+q*Math.cosh(Q))}}const ee={calculatedDuration:_&&v||null,velocity:Y=>pn(D(Y)),next:Y=>{if(!_&&P<1){const se=Math.exp(-P*N*Y),q=Math.sin(B*Y),ae=Math.cos(B*Y),ie=u-se*(Z*q+S*ae),Q=pn(se*(oe*q+x*ae));return d.done=Math.abs(Q)<=i&&Math.abs(u-ie)<=s,d.value=d.done?u:ie,d}const ue=I(Y);if(_)d.done=Y>=v;else{const se=pn(D(Y));d.done=Math.abs(se)<=i&&Math.abs(u-ue)<=s}return d.value=d.done?u:ue,d},toString:()=>{const Y=Math.min(sf(ee),Zl),ue=S0(se=>ee.next(Y*se).value,Y,30);return Y+"ms "+ue},toTransition:()=>{}};return ee}ql.applyToOptions=e=>{const t=J2(e,100,ql);return e.ease=t.ease,e.duration=pn(t.duration),e.type="keyframes",e};const o3=5;function C0(e,t,a){const i=Math.max(t-o3,0);return i0(a-e(i),t-i)}function Kd({keyframes:e,velocity:t=0,power:a=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:c=500,modifyTarget:u,min:d,max:p,restDelta:f=.5,restSpeed:g}){const v=e[0],y={done:!1,value:v},_=x=>d!==void 0&&x<d||p!==void 0&&x>p,w=x=>d===void 0?p:p===void 0||Math.abs(d-x)<Math.abs(p-x)?d:p;let P=a*t;const S=v+P,N=u===void 0?S:u(S);N!==S&&(P=N-v);const j=x=>-P*Math.exp(-x/i),I=x=>N+j(x),D=x=>{const ee=j(x),Y=I(x);y.done=Math.abs(ee)<=f,y.value=y.done?N:Y};let B,Z;const oe=x=>{_(y.value)&&(B=x,Z=ql({keyframes:[y.value,w(y.value)],velocity:C0(I,x,y.value),damping:s,stiffness:c,restDelta:f,restSpeed:g}))};return oe(0),{calculatedDuration:null,next:x=>{let ee=!1;return!Z&&B===void 0&&(ee=!0,D(x),oe(x)),B!==void 0&&x>=B?Z.next(x-B):(!ee&&D(x),y)}}}function s3(e,t,a){const i=[],s=a||na.mix||P0,c=e.length-1;for(let u=0;u<c;u++){let d=s(e[u],e[u+1]);if(t){const p=Array.isArray(t)?t[u]||Sn:t;d=rs(p,d)}i.push(d)}return i}function l3(e,t,{clamp:a=!0,ease:i,mixer:s}={}){const c=e.length;if(Qh(c===t.length),c===1)return()=>t[0];if(c===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=s3(t,i,s),p=d.length,f=g=>{if(u&&g<e[0])return t[0];let v=0;if(p>1)for(;v<e.length-2&&!(g<e[v+1]);v++);const y=$o(e[v],e[v+1],g);return d[v](y)};return a?g=>f(ar(e[0],e[c-1],g)):f}function c3(e,t){const a=e[e.length-1];for(let i=1;i<=t;i++){const s=$o(0,t,i);e.push(it(a,1,s))}}function u3(e){const t=[0];return c3(t,e.length-1),t}function d3(e,t){return e.map(a=>a*t)}function h3(e,t){return e.map(()=>t||p0).splice(0,e.length-1)}function jo({duration:e=300,keyframes:t,times:a,ease:i="easeInOut"}){const s=b2(i)?i.map(ev):ev(i),c={done:!1,value:t[0]},u=d3(a&&a.length===t.length?a:u3(t),e),d=l3(u,t,{ease:Array.isArray(s)?s:h3(t,s)});return{calculatedDuration:e,next:p=>(c.value=d(p),c.done=p>=e,c)}}const f3=e=>e!==null;function pc(e,{repeat:t,repeatType:a="loop"},i,s=1){const c=e.filter(f3),d=s<0||t&&a!=="loop"&&t%2===1?0:c.length-1;return!d||i===void 0?c[d]:i}const p3={decay:Kd,inertia:Kd,tween:jo,keyframes:jo,spring:ql};function T0(e){typeof e.type=="string"&&(e.type=p3[e.type])}class lf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,a){return this.finished.then(t,a)}}const m3=e=>e/100;class Ql extends lf{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:a}=this.options;a&&a.updatedAt!==Kt.now()&&this.tick(Kt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;T0(t);const{type:a=jo,repeat:i=0,repeatDelay:s=0,repeatType:c,velocity:u=0}=t;let{keyframes:d}=t;const p=a||jo;p!==jo&&typeof d[0]!="number"&&(this.mixKeyframes=rs(m3,P0(d[0],d[1])),d=[0,100]);const f=p({...t,keyframes:d});c==="mirror"&&(this.mirroredGenerator=p({...t,keyframes:[...d].reverse(),velocity:-u})),f.calculatedDuration===null&&(f.calculatedDuration=sf(f));const{calculatedDuration:g}=f;this.calculatedDuration=g,this.resolvedDuration=g+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=f}updateTime(t){const a=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(t,a=!1){const{generator:i,totalDuration:s,mixKeyframes:c,mirroredGenerator:u,resolvedDuration:d,calculatedDuration:p}=this;if(this.startTime===null)return i.next(0);const{delay:f=0,keyframes:g,repeat:v,repeatType:y,repeatDelay:_,type:w,onUpdate:P,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),a?this.currentTime=t:this.updateTime(t);const N=this.currentTime-f*(this.playbackSpeed>=0?1:-1),j=this.playbackSpeed>=0?N<0:N>s;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let I=this.currentTime,D=i;if(v){const x=Math.min(this.currentTime,s)/d;let ee=Math.floor(x),Y=x%1;!Y&&x>=1&&(Y=1),Y===1&&ee--,ee=Math.min(ee,v+1),ee%2&&(y==="reverse"?(Y=1-Y,_&&(Y-=_/d)):y==="mirror"&&(D=u)),I=ar(0,1,Y)*d}let B;j?(this.delayState.value=g[0],B=this.delayState):B=D.next(I),c&&!j&&(B.value=c(B.value));let{done:Z}=B;!j&&p!==null&&(Z=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const oe=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Z);return oe&&w!==Kd&&(B.value=pc(g,this.options,S,this.speed)),P&&P(B.value),oe&&this.finish(),B}then(t,a){return this.finished.then(t,a)}get duration(){return xn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+xn(t)}get time(){return xn(this.currentTime)}set time(t){t=pn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const a=this.generator.next(t).value;return C0(i=>this.generator.next(i).value,t,a)}get speed(){return this.playbackSpeed}set speed(t){const a=this.playbackSpeed!==t;a&&this.driver&&this.updateTime(Kt.now()),this.playbackSpeed=t,a&&this.driver&&(this.time=xn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Q2,startTime:a}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=a??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Kt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function g3(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Na=e=>e*180/Math.PI,Yd=e=>{const t=Na(Math.atan2(e[1],e[0]));return Xd(t)},v3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Yd,rotateZ:Yd,skewX:e=>Na(Math.atan(e[1])),skewY:e=>Na(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Xd=e=>(e=e%360,e<0&&(e+=360),e),sv=Yd,lv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),cv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),y3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:lv,scaleY:cv,scale:e=>(lv(e)+cv(e))/2,rotateX:e=>Xd(Na(Math.atan2(e[6],e[5]))),rotateY:e=>Xd(Na(Math.atan2(-e[2],e[0]))),rotateZ:sv,rotate:sv,skewX:e=>Na(Math.atan(e[4])),skewY:e=>Na(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zd(e){return e.includes("scale")?1:0}function qd(e,t){if(!e||e==="none")return Zd(t);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(a)i=y3,s=a;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=v3,s=d}if(!s)return Zd(t);const c=i[t],u=s[1].split(",").map(b3);return typeof c=="function"?c(u):u[c]}const k3=(e,t)=>{const{transform:a="none"}=getComputedStyle(e);return qd(a,t)};function b3(e){return parseFloat(e.trim())}const Mi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Li=new Set(Mi),uv=e=>e===Ai||e===ye,_3=new Set(["x","y","z"]),w3=Mi.filter(e=>!_3.has(e));function x3(e){const t=[];return w3.forEach(a=>{const i=e.getValue(a);i!==void 0&&(t.push([a,i.get()]),i.set(a.startsWith("scale")?1:0))}),t}const ta={width:({x:e},{paddingLeft:t="0",paddingRight:a="0",boxSizing:i})=>{const s=e.max-e.min;return i==="border-box"?s:s-parseFloat(t)-parseFloat(a)},height:({y:e},{paddingTop:t="0",paddingBottom:a="0",boxSizing:i})=>{const s=e.max-e.min;return i==="border-box"?s:s-parseFloat(t)-parseFloat(a)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>qd(t,"x"),y:(e,{transform:t})=>qd(t,"y")};ta.translateX=ta.x;ta.translateY=ta.y;const ja=new Set;let Qd=!1,Jd=!1,eh=!1;function E0(){if(Jd){const e=Array.from(ja).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),a=new Map;t.forEach(i=>{const s=x3(i);s.length&&(a.set(i,s),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const s=a.get(i);s&&s.forEach(([c,u])=>{i.getValue(c)?.set(u)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Jd=!1,Qd=!1,ja.forEach(e=>e.complete(eh)),ja.clear()}function R0(){ja.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jd=!0)})}function P3(){eh=!0,R0(),E0(),eh=!1}class cf{constructor(t,a,i,s,c,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=i,this.motionValue=s,this.element=c,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(ja.add(this),Qd||(Qd=!0,Qe.read(R0),Qe.resolveKeyframes(E0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:a,element:i,motionValue:s}=this;if(t[0]===null){const c=s?.get(),u=t[t.length-1];if(c!==void 0)t[0]=c;else if(i&&a){const d=i.readValue(a,u);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=u),s&&c===void 0&&s.set(t[0])}g3(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ja.delete(this)}cancel(){this.state==="scheduled"&&(ja.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const S3=e=>e.startsWith("--");function D0(e,t,a){S3(t)?e.style.setProperty(t,a):e.style[t]=a}const C3={};function I0(e,t){const a=a0(e);return()=>C3[t]??a()}const T3=I0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),A0=I0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ro=([e,t,a,i])=>`cubic-bezier(${e}, ${t}, ${a}, ${i})`,dv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ro([0,.65,.55,1]),circOut:Ro([.55,0,1,.45]),backIn:Ro([.31,.01,.66,-.59]),backOut:Ro([.33,1.53,.69,.99])};function M0(e,t){if(e)return typeof e=="function"?A0()?S0(e,t):"ease-out":m0(e)?Ro(e):Array.isArray(e)?e.map(a=>M0(a,t)||dv.easeOut):dv[e]}function E3(e,t,a,{delay:i=0,duration:s=300,repeat:c=0,repeatType:u="loop",ease:d="easeOut",times:p}={},f=void 0){const g={[t]:a};p&&(g.offset=p);const v=M0(d,s);Array.isArray(v)&&(g.easing=v);const y={delay:i,duration:s,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"};return f&&(y.pseudoElement=f),e.animate(g,y)}function L0(e){return typeof e=="function"&&"applyToOptions"in e}function R3({type:e,...t}){return L0(e)&&A0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class N0 extends lf{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:a,name:i,keyframes:s,pseudoElement:c,allowFlatten:u=!1,finalKeyframe:d,onComplete:p}=t;this.isPseudoElement=!!c,this.allowFlatten=u,this.options=t,Qh(typeof t.type!="string");const f=R3(t);this.animation=E3(a,i,s,f,c),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const g=pc(s,this.options,d,this.speed);this.updateMotionValue&&this.updateMotionValue(g),D0(a,i,g),this.animation.cancel()}p?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return xn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+xn(t)}get time(){return xn(Number(this.animation.currentTime)||0)}set time(t){const a=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=pn(t),a&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:a,rangeEnd:i,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&T3()?(this.animation.timeline=t,a&&(this.animation.rangeStart=a),i&&(this.animation.rangeEnd=i),Sn):s(this)}}const j0={anticipate:d0,backInOut:u0,circInOut:f0};function D3(e){return e in j0}function I3(e){typeof e.ease=="string"&&D3(e.ease)&&(e.ease=j0[e.ease])}const bd=10;class A3 extends N0{constructor(t){I3(t),T0(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:a,onUpdate:i,onComplete:s,element:c,...u}=this.options;if(!a)return;if(t!==void 0){a.set(t);return}const d=new Ql({...u,autoplay:!1}),p=Math.max(bd,Kt.now()-this.startTime),f=ar(0,bd,p-bd),g=d.sample(p).value,{name:v}=this.options;c&&v&&D0(c,v,g),a.setWithVelocity(d.sample(Math.max(0,p-f)).value,g,f),d.stop()}}const hv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Bn.test(e)||e==="0")&&!e.startsWith("url("));function M3(e){const t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function L3(e,t,a,i){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const c=e[e.length-1],u=hv(s,t),d=hv(c,t);return!u||!d?!1:M3(e)||(a==="spring"||L0(a))&&i}function th(e){e.duration=0,e.type="keyframes"}const O0=new Set(["opacity","clipPath","filter","transform"]),N3=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function j3(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&N3.test(e[t]))return!0;return!1}const O3=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),z3=a0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function V3(e){const{motionValue:t,name:a,repeatDelay:i,repeatType:s,damping:c,type:u,keyframes:d}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:g}=t.owner.getProps();return z3()&&a&&(O0.has(a)||O3.has(a)&&j3(d))&&(a!=="transform"||!g)&&!f&&!i&&s!=="mirror"&&c!==0&&u!=="inertia"}const F3=40;class U3 extends lf{constructor({autoplay:t=!0,delay:a=0,type:i="keyframes",repeat:s=0,repeatDelay:c=0,repeatType:u="loop",keyframes:d,name:p,motionValue:f,element:g,...v}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Kt.now();const y={autoplay:t,delay:a,type:i,repeat:s,repeatDelay:c,repeatType:u,name:p,motionValue:f,element:g,...v},_=g?.KeyframeResolver||cf;this.keyframeResolver=new _(d,(w,P,S)=>this.onKeyframesResolved(w,P,y,!S),p,f,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,a,i,s){this.keyframeResolver=void 0;const{name:c,type:u,velocity:d,delay:p,isHandoff:f,onUpdate:g}=i;this.resolvedAt=Kt.now();let v=!0;L3(t,c,u,d)||(v=!1,(na.instantAnimations||!p)&&g?.(pc(t,i,a)),t[0]=t[t.length-1],th(i),i.repeat=0);const _={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>F3?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...i,keyframes:t},w=v&&!f&&V3(_),P=_.motionValue?.owner?.current;let S;if(w)try{S=new A3({..._,element:P})}catch{S=new Ql(_)}else S=new Ql(_);S.finished.then(()=>{this.notifyFinished()}).catch(Sn),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}get finished(){return this._animation?this.animation.finished:this._finished}then(t,a){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),P3()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function z0(e,t,a,i=0,s=1){const c=Array.from(e).sort((f,g)=>f.sortNodePosition(g)).indexOf(t),u=e.size,d=(u-1)*i;return typeof a=="function"?a(c,u):s===1?c*i:d-c*i}const B3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function H3(e){const t=B3.exec(e);if(!t)return[,];const[,a,i,s]=t;return[`--${a??i}`,s]}function V0(e,t,a=1){const[i,s]=H3(e);if(!i)return;const c=window.getComputedStyle(t).getPropertyValue(i);if(c){const u=c.trim();return t0(u)?parseFloat(u):u}return nf(s)?V0(s,t,a+1):s}const W3={type:"spring",stiffness:500,damping:25,restSpeed:10},$3=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G3={type:"keyframes",duration:.8},K3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Y3=(e,{keyframes:t})=>t.length>2?G3:Li.has(e)?e.startsWith("scale")?$3(t[1]):W3:K3;function F0(e,t){if(e?.inherit&&t){const{inherit:a,...i}=e;return{...t,...i}}return e}function uf(e,t){const a=e?.[t]??e?.default??e;return a!==e?F0(a,e):a}const X3=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Z3(e){for(const t in e)if(!X3.has(t))return!0;return!1}const df=(e,t,a,i={},s,c)=>u=>{const d=uf(i,e)||{},p=d.delay||i.delay||0;let{elapsed:f=0}=i;f=f-pn(p);const g={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-f,onUpdate:y=>{t.set(y),d.onUpdate&&d.onUpdate(y)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:c?void 0:s};Z3(d)||Object.assign(g,Y3(e,g)),g.duration&&(g.duration=pn(g.duration)),g.repeatDelay&&(g.repeatDelay=pn(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let v=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(th(g),g.delay===0&&(v=!0)),(na.instantAnimations||na.skipAnimations||s?.shouldSkipAnimations)&&(v=!0,th(g),g.delay=0),g.allowFlatten=!d.type&&!d.ease,v&&!c&&t.get()!==void 0){const y=pc(g.keyframes,d);if(y!==void 0){Qe.update(()=>{g.onUpdate(y),g.onComplete()});return}}return d.isSync?new Ql(g):new U3(g)};function fv(e){const t=[{},{}];return e?.values.forEach((a,i)=>{t[0][i]=a.get(),t[1][i]=a.getVelocity()}),t}function hf(e,t,a,i){if(typeof t=="function"){const[s,c]=fv(i);t=t(a!==void 0?a:e.custom,s,c)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,c]=fv(i);t=t(a!==void 0?a:e.custom,s,c)}return t}function Oa(e,t,a){const i=e.getProps();return hf(i,t,a!==void 0?a:i.custom,e)}const U0=new Set(["width","height","top","left","right","bottom",...Mi]),pv=30,q3=e=>!isNaN(parseFloat(e)),mv={current:void 0};class Q3{constructor(t,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const s=Kt.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=Kt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=q3(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new Jh);const i=this.events[t].add(a);return t==="change"?()=>{i(),Qe.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,a,i){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return mv.current&&mv.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Kt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pv)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,pv);return i0(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Di(e,t){return new Q3(e,t)}const nh=e=>Array.isArray(e);function J3(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,Di(a))}function eT(e){return nh(e)?e[e.length-1]||0:e}function tT(e,t){const a=Oa(e,t);let{transitionEnd:i={},transition:s={},...c}=a||{};c={...c,...i};for(const u in c){const d=eT(c[u]);J3(e,u,d)}}const At=e=>!!(e&&e.getVelocity);function nT(e){return!!(At(e)&&e.add)}function rh(e,t){const a=e.getValue("willChange");if(nT(a))return a.add(t);if(!a&&na.WillChange){const i=new na.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function ff(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const rT="framerAppearId",B0="data-"+ff(rT);function H0(e){return e.props[B0]}function aT({protectedKeys:e,needsAnimating:t},a){const i=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,i}function W0(e,t,{delay:a=0,transitionOverride:i,type:s}={}){let{transition:c,transitionEnd:u,...d}=t;const p=e.getDefaultTransition();c=c?F0(c,p):p;const f=c?.reduceMotion;i&&(c=i);const g=[],v=s&&e.animationState&&e.animationState.getState()[s];for(const y in d){const _=e.getValue(y,e.latestValues[y]??null),w=d[y];if(w===void 0||v&&aT(v,y))continue;const P={delay:a,...uf(c||{},y)},S=_.get();if(S!==void 0&&!_.isAnimating()&&!Array.isArray(w)&&w===S&&!P.velocity){Qe.update(()=>_.set(w));continue}let N=!1;if(window.MotionHandoffAnimation){const D=H0(e);if(D){const B=window.MotionHandoffAnimation(D,y,Qe);B!==null&&(P.startTime=B,N=!0)}}rh(e,y);const j=f??e.shouldReduceMotion;_.start(df(y,_,w,j&&U0.has(y)?{type:!1}:P,e,N));const I=_.animation;I&&g.push(I)}if(u){const y=()=>Qe.update(()=>{u&&tT(e,u)});g.length?Promise.all(g).then(y):y()}return g}function ah(e,t,a={}){const i=Oa(e,t,a.type==="exit"?e.presenceContext?.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};a.transitionOverride&&(s=a.transitionOverride);const c=i?()=>Promise.all(W0(e,i,a)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:f=0,staggerChildren:g,staggerDirection:v}=s;return iT(e,t,p,f,g,v,a)}:()=>Promise.resolve(),{when:d}=s;if(d){const[p,f]=d==="beforeChildren"?[c,u]:[u,c];return p().then(()=>f())}else return Promise.all([c(),u(a.delay)])}function iT(e,t,a=0,i=0,s=0,c=1,u){const d=[];for(const p of e.variantChildren)p.notify("AnimationStart",t),d.push(ah(p,t,{...u,delay:a+(typeof i=="function"?0:i)+z0(e.variantChildren,p,i,s,c)}).then(()=>p.notify("AnimationComplete",t)));return Promise.all(d)}function oT(e,t,a={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const s=t.map(c=>ah(e,c,a));i=Promise.all(s)}else if(typeof t=="string")i=ah(e,t,a);else{const s=typeof t=="function"?Oa(e,t,a.custom):t;i=Promise.all(W0(e,s,a))}return i.then(()=>{e.notify("AnimationComplete",t)})}const sT={test:e=>e==="auto",parse:e=>e},$0=e=>t=>t.test(e),G0=[Ai,ye,nr,qr,M2,A2,sT],gv=e=>G0.find($0(e));function lT(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||r0(e):!0}const cT=new Set(["brightness","contrast","saturate","opacity"]);function uT(e){const[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=a.match(rf)||[];if(!i)return e;const s=a.replace(i,"");let c=cT.has(t)?1:0;return i!==a&&(c*=100),t+"("+c+s+")"}const dT=/\b([a-z-]*)\(.*?\)/gu,ih={...Bn,getAnimatableNone:e=>{const t=e.match(dT);return t?t.map(uT).join(" "):e}},oh={...Bn,getAnimatableNone:e=>{const t=Bn.parse(e);return Bn.createTransformer(e)(t.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},vv={...Ai,transform:Math.round},hT={rotate:qr,rotateX:qr,rotateY:qr,rotateZ:qr,scale:xl,scaleX:xl,scaleY:xl,scaleZ:xl,skew:qr,skewX:qr,skewY:qr,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:Go,originX:nv,originY:nv,originZ:ye},pf={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,inset:ye,insetBlock:ye,insetBlockStart:ye,insetBlockEnd:ye,insetInline:ye,insetInlineStart:ye,insetInlineEnd:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,paddingBlock:ye,paddingBlockStart:ye,paddingBlockEnd:ye,paddingInline:ye,paddingInlineStart:ye,paddingInlineEnd:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,marginBlock:ye,marginBlockStart:ye,marginBlockEnd:ye,marginInline:ye,marginInlineStart:ye,marginInlineEnd:ye,fontSize:ye,backgroundPositionX:ye,backgroundPositionY:ye,...hT,zIndex:vv,fillOpacity:Go,strokeOpacity:Go,numOctaves:vv},fT={...pf,color:vt,backgroundColor:vt,outlineColor:vt,fill:vt,stroke:vt,borderColor:vt,borderTopColor:vt,borderRightColor:vt,borderBottomColor:vt,borderLeftColor:vt,filter:ih,WebkitFilter:ih,mask:oh,WebkitMask:oh},K0=e=>fT[e],pT=new Set([ih,oh]);function Y0(e,t){let a=K0(e);return pT.has(a)||(a=Bn),a.getAnimatableNone?a.getAnimatableNone(t):void 0}const mT=new Set(["auto","none","0"]);function gT(e,t,a){let i=0,s;for(;i<e.length&&!s;){const c=e[i];typeof c=="string"&&!mT.has(c)&&Ri(c).values.length&&(s=e[i]),i++}if(s&&a)for(const c of t)e[c]=Y0(a,s)}class vT extends cf{constructor(t,a,i,s,c){super(t,a,i,s,c,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:a,name:i}=this;if(!a||!a.current)return;super.readKeyframes();for(let g=0;g<t.length;g++){let v=t[g];if(typeof v=="string"&&(v=v.trim(),nf(v))){const y=V0(v,a.current);y!==void 0&&(t[g]=y),g===t.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!U0.has(i)||t.length!==2)return;const[s,c]=t,u=gv(s),d=gv(c),p=tv(s),f=tv(c);if(p!==f&&ta[i]){this.needsMeasurement=!0;return}if(u!==d)if(uv(u)&&uv(d))for(let g=0;g<t.length;g++){const v=t[g];typeof v=="string"&&(t[g]=parseFloat(v))}else ta[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:a}=this,i=[];for(let s=0;s<t.length;s++)(t[s]===null||lT(t[s]))&&i.push(s);i.length&&gT(t,i,a)}measureInitialState(){const{element:t,unresolvedKeyframes:a,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ta[i](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;const s=a[a.length-1];s!==void 0&&t.getValue(i,s).jump(s,!1)}measureEndState(){const{element:t,name:a,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const s=t.getValue(a);s&&s.jump(this.measuredOrigin,!1);const c=i.length-1,u=i[c];i[c]=ta[a](t.measureViewportBox(),window.getComputedStyle(t.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),this.removedTransforms?.length&&this.removedTransforms.forEach(([d,p])=>{t.getValue(d).set(p)}),this.resolveNoneKeyframes()}}function X0(e,t,a){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const s=a?.[e]??i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(i=>i!=null)}const Z0=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ll(e){return n0(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:mf}=g0(queueMicrotask,!1),Fn={x:!1,y:!1};function q0(){return Fn.x||Fn.y}function yT(e){return e==="x"||e==="y"?Fn[e]?null:(Fn[e]=!0,()=>{Fn[e]=!1}):Fn.x||Fn.y?null:(Fn.x=Fn.y=!0,()=>{Fn.x=Fn.y=!1})}function Q0(e,t){const a=X0(e),i=new AbortController,s={passive:!0,...t,signal:i.signal};return[a,s,()=>i.abort()]}function kT(e){return!(e.pointerType==="touch"||q0())}function bT(e,t,a={}){const[i,s,c]=Q0(e,a);return i.forEach(u=>{let d=!1,p=!1,f;const g=()=>{u.removeEventListener("pointerleave",w)},v=S=>{f&&(f(S),f=void 0),g()},y=S=>{d=!1,window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",y),p&&(p=!1,v(S))},_=()=>{d=!0,window.addEventListener("pointerup",y,s),window.addEventListener("pointercancel",y,s)},w=S=>{if(S.pointerType!=="touch"){if(d){p=!0;return}v(S)}},P=S=>{if(!kT(S))return;p=!1;const N=t(u,S);typeof N=="function"&&(f=N,u.addEventListener("pointerleave",w,s))};u.addEventListener("pointerenter",P,s),u.addEventListener("pointerdown",_,s)}),c}const J0=(e,t)=>t?e===t?!0:J0(e,t.parentElement):!1,gf=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_T=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wT(e){return _T.has(e.tagName)||e.isContentEditable===!0}const xT=new Set(["INPUT","SELECT","TEXTAREA"]);function PT(e){return xT.has(e.tagName)||e.isContentEditable===!0}const Nl=new WeakSet;function yv(e){return t=>{t.key==="Enter"&&e(t)}}function _d(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ST=(e,t)=>{const a=e.currentTarget;if(!a)return;const i=yv(()=>{if(Nl.has(a))return;_d(a,"down");const s=yv(()=>{_d(a,"up")}),c=()=>_d(a,"cancel");a.addEventListener("keyup",s,t),a.addEventListener("blur",c,t)});a.addEventListener("keydown",i,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",i),t)};function kv(e){return gf(e)&&!q0()}const bv=new WeakSet;function CT(e,t,a={}){const[i,s,c]=Q0(e,a),u=d=>{const p=d.currentTarget;if(!kv(d)||bv.has(d))return;Nl.add(p),a.stopPropagation&&bv.add(d);const f=t(p,d),g=(_,w)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",y),Nl.has(p)&&Nl.delete(p),kv(_)&&typeof f=="function"&&f(_,{success:w})},v=_=>{g(_,p===window||p===document||a.useGlobalTarget||J0(p,_.target))},y=_=>{g(_,!1)};window.addEventListener("pointerup",v,s),window.addEventListener("pointercancel",y,s)};return i.forEach(d=>{(a.useGlobalTarget?window:d).addEventListener("pointerdown",u,s),Ll(d)&&(d.addEventListener("focus",f=>ST(f,s)),!wT(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),c}function vf(e){return n0(e)&&"ownerSVGElement"in e}const jl=new WeakMap;let Ol;const eb=(e,t,a)=>(i,s)=>s&&s[0]?s[0][e+"Size"]:vf(i)&&"getBBox"in i?i.getBBox()[t]:i[a],TT=eb("inline","width","offsetWidth"),ET=eb("block","height","offsetHeight");function RT({target:e,borderBoxSize:t}){jl.get(e)?.forEach(a=>{a(e,{get width(){return TT(e,t)},get height(){return ET(e,t)}})})}function DT(e){e.forEach(RT)}function IT(){typeof ResizeObserver>"u"||(Ol=new ResizeObserver(DT))}function AT(e,t){Ol||IT();const a=X0(e);return a.forEach(i=>{let s=jl.get(i);s||(s=new Set,jl.set(i,s)),s.add(t),Ol?.observe(i)}),()=>{a.forEach(i=>{const s=jl.get(i);s?.delete(t),s?.size||Ol?.unobserve(i)})}}const zl=new Set;let Pi;function MT(){Pi=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};zl.forEach(t=>t(e))},window.addEventListener("resize",Pi)}function LT(e){return zl.add(e),Pi||MT(),()=>{zl.delete(e),!zl.size&&typeof Pi=="function"&&(window.removeEventListener("resize",Pi),Pi=void 0)}}function _v(e,t){return typeof e=="function"?LT(e):AT(e,t)}function NT(e){return vf(e)&&e.tagName==="svg"}const jT=[...G0,vt,Bn],OT=e=>jT.find($0(e)),wv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Si=()=>({x:wv(),y:wv()}),xv=()=>({min:0,max:0}),xt=()=>({x:xv(),y:xv()}),zT=new WeakMap;function mc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ko(e){return typeof e=="string"||Array.isArray(e)}const yf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kf=["initial",...yf];function gc(e){return mc(e.animate)||kf.some(t=>Ko(e[t]))}function tb(e){return!!(gc(e)||e.variants)}function VT(e,t,a){for(const i in t){const s=t[i],c=a[i];if(At(s))e.addValue(i,s);else if(At(c))e.addValue(i,Di(s,{owner:e}));else if(c!==s)if(e.hasValue(i)){const u=e.getValue(i);u.liveStyle===!0?u.jump(s):u.hasAnimated||u.set(s)}else{const u=e.getStaticValue(i);e.addValue(i,Di(u!==void 0?u:s,{owner:e}))}}for(const i in a)t[i]===void 0&&e.removeValue(i);return t}const Jl={current:null},bf={current:!1},FT=typeof window<"u";function nb(){if(bf.current=!0,!!FT)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Jl.current=e.matches;e.addEventListener("change",t),t()}else Jl.current=!1}const Pv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ec={};function rb(e){ec=e}function UT(){return ec}class BT{scrapeMotionValuesFromProps(t,a,i){return{}}constructor({parent:t,props:a,presenceContext:i,reducedMotionConfig:s,skipAnimations:c,blockInitialAnimation:u,visualState:d},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=cf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const _=Kt.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,Qe.render(this.render,!1,!0))};const{latestValues:f,renderState:g}=d;this.latestValues=f,this.baseTarget={...f},this.initialValues=a.initial?{...f}:{},this.renderState=g,this.parent=t,this.props=a,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=c,this.options=p,this.blockInitialAnimation=!!u,this.isControllingVariants=gc(a),this.isVariantNode=tb(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:v,...y}=this.scrapeMotionValuesFromProps(a,{},this);for(const _ in y){const w=y[_];f[_]!==void 0&&At(w)&&w.set(f[_])}}mount(t){if(this.hasBeenMounted)for(const a in this.initialValues)this.values.get(a)?.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,zT.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,i)=>this.bindToMotionValue(i,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(bf.current||nb(),this.shouldReduceMotion=Jl.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ra(this.notifyUpdate),ra(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,a){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),a.accelerate&&O0.has(t)&&this.current instanceof HTMLElement){const{factory:u,keyframes:d,times:p,ease:f,duration:g}=a.accelerate,v=new N0({element:this.current,name:t,keyframes:d,times:p,ease:f,duration:pn(g)}),y=u(v);this.valueSubscriptions.set(t,()=>{y(),v.cancel()});return}const i=Li.has(t);i&&this.onBindTransform&&this.onBindTransform();const s=a.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Qe.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;typeof window<"u"&&window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{s(),c&&c(),a.owner&&a.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ec){const a=ec[t];if(!a)continue;const{isEnabled:i,Feature:s}=a;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){const c=this.features[t];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let i=0;i<Pv.length;i++){const s=Pv[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const c="on"+s,u=t[c];u&&(this.propEventSubscriptions[s]=this.on(s,u))}this.prevMotionValues=VT(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){const i=this.values.get(t);a!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);const a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&a!==void 0&&(i=Di(a===null?void 0:a,{owner:this}),this.addValue(t,i)),i}readValue(t,a){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(t0(i)||r0(i))?i=parseFloat(i):!OT(i)&&Bn.test(a)&&(i=Y0(t,a)),this.setBaseTarget(t,At(i)?i.get():i)),At(i)?i.get():i}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){const{initial:a}=this.props;let i;if(typeof a=="string"||typeof a=="object"){const c=hf(this.props,a,this.presenceContext?.custom);c&&(i=c[t])}if(a&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!At(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new Jh),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}scheduleRenderMicrotask(){mf.render(this.render)}}class ab extends BT{constructor(){super(...arguments),this.KeyframeResolver=vT}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){const i=t.style;return i?i[a]:void 0}removeValueFromRenderState(t,{vars:a,style:i}){delete a[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;At(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}class la{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ib({top:e,left:t,right:a,bottom:i}){return{x:{min:t,max:a},y:{min:e,max:i}}}function HT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function WT(e,t){if(!t)return e;const a=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:i.y,right:i.x}}function wd(e){return e===void 0||e===1}function sh({scale:e,scaleX:t,scaleY:a}){return!wd(e)||!wd(t)||!wd(a)}function Aa(e){return sh(e)||ob(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ob(e){return Sv(e.x)||Sv(e.y)}function Sv(e){return e&&e!=="0%"}function tc(e,t,a){const i=e-a,s=t*i;return a+s}function Cv(e,t,a,i,s){return s!==void 0&&(e=tc(e,s,i)),tc(e,a,i)+t}function lh(e,t=0,a=1,i,s){e.min=Cv(e.min,t,a,i,s),e.max=Cv(e.max,t,a,i,s)}function sb(e,{x:t,y:a}){lh(e.x,t.translate,t.scale,t.originPoint),lh(e.y,a.translate,a.scale,a.originPoint)}const Tv=.999999999999,Ev=1.0000000000001;function $T(e,t,a,i=!1){const s=a.length;if(!s)return;t.x=t.y=1;let c,u;for(let d=0;d<s;d++){c=a[d],u=c.projectionDelta;const{visualElement:p}=c.options;p&&p.props.style&&p.props.style.display==="contents"||(i&&c.options.layoutScroll&&c.scroll&&c!==c.root&&(tr(e.x,-c.scroll.offset.x),tr(e.y,-c.scroll.offset.y)),u&&(t.x*=u.x.scale,t.y*=u.y.scale,sb(e,u)),i&&Aa(c.latestValues)&&Vl(e,c.latestValues,c.layout?.layoutBox))}t.x<Ev&&t.x>Tv&&(t.x=1),t.y<Ev&&t.y>Tv&&(t.y=1)}function tr(e,t){e.min+=t,e.max+=t}function Rv(e,t,a,i,s=.5){const c=it(e.min,e.max,s);lh(e,t,a,c,i)}function Dv(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Vl(e,t,a){const i=a??e;Rv(e.x,Dv(t.x,i.x),t.scaleX,t.scale,t.originX),Rv(e.y,Dv(t.y,i.y),t.scaleY,t.scale,t.originY)}function lb(e,t){return ib(WT(e.getBoundingClientRect(),t))}function GT(e,t,a){const i=lb(e,a),{scroll:s}=t;return s&&(tr(i.x,s.offset.x),tr(i.y,s.offset.y)),i}const KT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YT=Mi.length;function XT(e,t,a){let i="",s=!0;for(let c=0;c<YT;c++){const u=Mi[c],d=e[u];if(d===void 0)continue;let p=!0;if(typeof d=="number")p=d===(u.startsWith("scale")?1:0);else{const f=parseFloat(d);p=u.startsWith("scale")?f===1:f===0}if(!p||a){const f=Z0(d,pf[u]);if(!p){s=!1;const g=KT[u]||u;i+=`${g}(${f}) `}a&&(t[u]=f)}}return i=i.trim(),a?i=a(t,s?"":i):s&&(i="none"),i}function _f(e,t,a){const{style:i,vars:s,transformOrigin:c}=e;let u=!1,d=!1;for(const p in t){const f=t[p];if(Li.has(p)){u=!0;continue}else if(y0(p)){s[p]=f;continue}else{const g=Z0(f,pf[p]);p.startsWith("origin")?(d=!0,c[p]=g):i[p]=g}}if(t.transform||(u||a?i.transform=XT(t,e.transform,a):i.transform&&(i.transform="none")),d){const{originX:p="50%",originY:f="50%",originZ:g=0}=c;i.transformOrigin=`${p} ${f} ${g}`}}function cb(e,{style:t,vars:a},i,s){const c=e.style;let u;for(u in t)c[u]=t[u];s?.applyProjectionStyles(c,i);for(u in a)c.setProperty(u,a[u])}function Iv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Po={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const a=Iv(e,t.target.x),i=Iv(e,t.target.y);return`${a}% ${i}%`}},ZT={correct:(e,{treeScale:t,projectionDelta:a})=>{const i=e,s=Bn.parse(e);if(s.length>5)return i;const c=Bn.createTransformer(e),u=typeof s[0]!="number"?1:0,d=a.x.scale*t.x,p=a.y.scale*t.y;s[0+u]/=d,s[1+u]/=p;const f=it(d,p,.5);return typeof s[2+u]=="number"&&(s[2+u]/=f),typeof s[3+u]=="number"&&(s[3+u]/=f),c(s)}},ch={borderRadius:{...Po,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Po,borderTopRightRadius:Po,borderBottomLeftRadius:Po,borderBottomRightRadius:Po,boxShadow:ZT};function ub(e,{layout:t,layoutId:a}){return Li.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!ch[e]||e==="opacity")}function wf(e,t,a){const i=e.style,s=t?.style,c={};if(!i)return c;for(const u in i)(At(i[u])||s&&At(s[u])||ub(u,e)||a?.getValue(u)?.liveStyle!==void 0)&&(c[u]=i[u]);return c}function qT(e){return window.getComputedStyle(e)}class QT extends ab{constructor(){super(...arguments),this.type="html",this.renderInstance=cb}readValueFromInstance(t,a){if(Li.has(a))return this.projection?.isProjecting?Zd(a):k3(t,a);{const i=qT(t),s=(y0(a)?i.getPropertyValue(a):i[a])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:a}){return lb(t,a)}build(t,a,i){_f(t,a,i.transformTemplate)}scrapeMotionValuesFromProps(t,a,i){return wf(t,a,i)}}const JT={offset:"stroke-dashoffset",array:"stroke-dasharray"},eE={offset:"strokeDashoffset",array:"strokeDasharray"};function tE(e,t,a=1,i=0,s=!0){e.pathLength=1;const c=s?JT:eE;e[c.offset]=`${-i}`,e[c.array]=`${t} ${a}`}const nE=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function db(e,{attrX:t,attrY:a,attrScale:i,pathLength:s,pathSpacing:c=1,pathOffset:u=0,...d},p,f,g){if(_f(e,d,f),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:y}=e;v.transform&&(y.transform=v.transform,delete v.transform),(y.transform||v.transformOrigin)&&(y.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),y.transform&&(y.transformBox=g?.transformBox??"fill-box",delete v.transformBox);for(const _ of nE)v[_]!==void 0&&(y[_]=v[_],delete v[_]);t!==void 0&&(v.x=t),a!==void 0&&(v.y=a),i!==void 0&&(v.scale=i),s!==void 0&&tE(v,s,c,u,!1)}const hb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),fb=e=>typeof e=="string"&&e.toLowerCase()==="svg";function rE(e,t,a,i){cb(e,t,void 0,i);for(const s in t.attrs)e.setAttribute(hb.has(s)?s:ff(s),t.attrs[s])}function pb(e,t,a){const i=wf(e,t,a);for(const s in e)if(At(e[s])||At(t[s])){const c=Mi.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[c]=e[s]}return i}class aE extends ab{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xt}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(Li.has(a)){const i=K0(a);return i&&i.default||0}return a=hb.has(a)?a:ff(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,i){return pb(t,a,i)}build(t,a,i){db(t,a,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,a,i,s){rE(t,a,i,s)}mount(t){this.isSVGTag=fb(t.tagName),super.mount(t)}}const iE=kf.length;function mb(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?mb(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const t={};for(let a=0;a<iE;a++){const i=kf[a],s=e.props[i];(Ko(s)||s===!1)&&(t[i]=s)}return t}function gb(e,t){if(!Array.isArray(t))return!1;const a=t.length;if(a!==e.length)return!1;for(let i=0;i<a;i++)if(t[i]!==e[i])return!1;return!0}const oE=[...yf].reverse(),sE=yf.length;function lE(e){return t=>Promise.all(t.map(({animation:a,options:i})=>oT(e,a,i)))}function cE(e){let t=lE(e),a=Av(),i=!0,s=!1;const c=f=>(g,v)=>{const y=Oa(e,v,f==="exit"?e.presenceContext?.custom:void 0);if(y){const{transition:_,transitionEnd:w,...P}=y;g={...g,...P,...w}}return g};function u(f){t=f(e)}function d(f){const{props:g}=e,v=mb(e.parent)||{},y=[],_=new Set;let w={},P=1/0;for(let N=0;N<sE;N++){const j=oE[N],I=a[j],D=g[j]!==void 0?g[j]:v[j],B=Ko(D),Z=j===f?I.isActive:null;Z===!1&&(P=N);let oe=D===v[j]&&D!==g[j]&&B;if(oe&&(i||s)&&e.manuallyAnimateOnMount&&(oe=!1),I.protectedKeys={...w},!I.isActive&&Z===null||!D&&!I.prevProp||mc(D)||typeof D=="boolean")continue;if(j==="exit"&&I.isActive&&Z!==!0){I.prevResolvedValues&&(w={...w,...I.prevResolvedValues});continue}const x=uE(I.prevProp,D);let ee=x||j===f&&I.isActive&&!oe&&B||N>P&&B,Y=!1;const ue=Array.isArray(D)?D:[D];let se=ue.reduce(c(j),{});Z===!1&&(se={});const{prevResolvedValues:q={}}=I,ae={...q,...se},ie=V=>{ee=!0,_.has(V)&&(Y=!0,_.delete(V)),I.needsAnimating[V]=!0;const W=e.getValue(V);W&&(W.liveStyle=!1)};for(const V in ae){const W=se[V],O=q[V];if(w.hasOwnProperty(V))continue;let E=!1;nh(W)&&nh(O)?E=!gb(W,O):E=W!==O,E?W!=null?ie(V):_.add(V):W!==void 0&&_.has(V)?ie(V):I.protectedKeys[V]=!0}I.prevProp=D,I.prevResolvedValues=se,I.isActive&&(w={...w,...se}),(i||s)&&e.blockInitialAnimation&&(ee=!1);const Q=oe&&x;ee&&(!Q||Y)&&y.push(...ue.map(V=>{const W={type:j};if(typeof V=="string"&&(i||s)&&!Q&&e.manuallyAnimateOnMount&&e.parent){const{parent:O}=e,E=Oa(O,V);if(O.enteringChildren&&E){const{delayChildren:$}=E.transition||{};W.delay=z0(O.enteringChildren,e,$)}}return{animation:V,options:W}}))}if(_.size){const N={};if(typeof g.initial!="boolean"){const j=Oa(e,Array.isArray(g.initial)?g.initial[0]:g.initial);j&&j.transition&&(N.transition=j.transition)}_.forEach(j=>{const I=e.getBaseTarget(j),D=e.getValue(j);D&&(D.liveStyle=!0),N[j]=I??null}),y.push({animation:N})}let S=!!y.length;return i&&(g.initial===!1||g.initial===g.animate)&&!e.manuallyAnimateOnMount&&(S=!1),i=!1,s=!1,S?t(y):Promise.resolve()}function p(f,g){if(a[f].isActive===g)return Promise.resolve();e.variantChildren?.forEach(y=>y.animationState?.setActive(f,g)),a[f].isActive=g;const v=d(f);for(const y in a)a[y].protectedKeys={};return v}return{animateChanges:d,setActive:p,setAnimateFunction:u,getState:()=>a,reset:()=>{a=Av(),s=!0}}}function uE(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gb(t,e):!1}function Ea(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Av(){return{animate:Ea(!0),whileInView:Ea(),whileHover:Ea(),whileTap:Ea(),whileDrag:Ea(),whileFocus:Ea(),exit:Ea()}}function uh(e,t){e.min=t.min,e.max=t.max}function zn(e,t){uh(e.x,t.x),uh(e.y,t.y)}function Mv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const vb=1e-4,dE=1-vb,hE=1+vb,yb=.01,fE=0-yb,pE=0+yb;function Yt(e){return e.max-e.min}function mE(e,t,a){return Math.abs(e-t)<=a}function Lv(e,t,a,i=.5){e.origin=i,e.originPoint=it(t.min,t.max,e.origin),e.scale=Yt(a)/Yt(t),e.translate=it(a.min,a.max,e.origin)-e.originPoint,(e.scale>=dE&&e.scale<=hE||isNaN(e.scale))&&(e.scale=1),(e.translate>=fE&&e.translate<=pE||isNaN(e.translate))&&(e.translate=0)}function Oo(e,t,a,i){Lv(e.x,t.x,a.x,i?i.originX:void 0),Lv(e.y,t.y,a.y,i?i.originY:void 0)}function Nv(e,t,a,i=0){const s=i?it(a.min,a.max,i):a.min;e.min=s+t.min,e.max=e.min+Yt(t)}function gE(e,t,a,i){Nv(e.x,t.x,a.x,i?.x),Nv(e.y,t.y,a.y,i?.y)}function jv(e,t,a,i=0){const s=i?it(a.min,a.max,i):a.min;e.min=t.min-s,e.max=e.min+Yt(t)}function nc(e,t,a,i){jv(e.x,t.x,a.x,i?.x),jv(e.y,t.y,a.y,i?.y)}function Ov(e,t,a,i,s){return e-=t,e=tc(e,1/a,i),s!==void 0&&(e=tc(e,1/s,i)),e}function vE(e,t=0,a=1,i=.5,s,c=e,u=e){if(nr.test(t)&&(t=parseFloat(t),t=it(u.min,u.max,t/100)-u.min),typeof t!="number")return;let d=it(c.min,c.max,i);e===c&&(d-=t),e.min=Ov(e.min,t,a,d,s),e.max=Ov(e.max,t,a,d,s)}function zv(e,t,[a,i,s],c,u){vE(e,t[a],t[i],t[s],t.scale,c,u)}const yE=["x","scaleX","originX"],kE=["y","scaleY","originY"];function Vv(e,t,a,i){zv(e.x,t,yE,a?a.x:void 0,i?i.x:void 0),zv(e.y,t,kE,a?a.y:void 0,i?i.y:void 0)}function Fv(e){return e.translate===0&&e.scale===1}function kb(e){return Fv(e.x)&&Fv(e.y)}function Uv(e,t){return e.min===t.min&&e.max===t.max}function bE(e,t){return Uv(e.x,t.x)&&Uv(e.y,t.y)}function Bv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function bb(e,t){return Bv(e.x,t.x)&&Bv(e.y,t.y)}function Hv(e){return Yt(e.x)/Yt(e.y)}function Wv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function er(e){return[e("x"),e("y")]}function _E(e,t,a){let i="";const s=e.x.translate/t.x,c=e.y.translate/t.y,u=a?.z||0;if((s||c||u)&&(i=`translate3d(${s}px, ${c}px, ${u}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),a){const{transformPerspective:f,rotate:g,rotateX:v,rotateY:y,skewX:_,skewY:w}=a;f&&(i=`perspective(${f}px) ${i}`),g&&(i+=`rotate(${g}deg) `),v&&(i+=`rotateX(${v}deg) `),y&&(i+=`rotateY(${y}deg) `),_&&(i+=`skewX(${_}deg) `),w&&(i+=`skewY(${w}deg) `)}const d=e.x.scale*t.x,p=e.y.scale*t.y;return(d!==1||p!==1)&&(i+=`scale(${d}, ${p})`),i||"none"}const _b=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],wE=_b.length,$v=e=>typeof e=="string"?parseFloat(e):e,Gv=e=>typeof e=="number"||ye.test(e);function xE(e,t,a,i,s,c){s?(e.opacity=it(0,a.opacity??1,PE(i)),e.opacityExit=it(t.opacity??1,0,SE(i))):c&&(e.opacity=it(t.opacity??1,a.opacity??1,i));for(let u=0;u<wE;u++){const d=_b[u];let p=Kv(t,d),f=Kv(a,d);if(p===void 0&&f===void 0)continue;p||(p=0),f||(f=0),p===0||f===0||Gv(p)===Gv(f)?(e[d]=Math.max(it($v(p),$v(f),i),0),(nr.test(f)||nr.test(p))&&(e[d]+="%")):e[d]=f}(t.rotate||a.rotate)&&(e.rotate=it(t.rotate||0,a.rotate||0,i))}function Kv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const PE=wb(0,.5,h0),SE=wb(.5,.95,Sn);function wb(e,t,a){return i=>i<e?0:i>t?1:a($o(e,t,i))}function CE(e,t,a){const i=At(e)?e:Di(e);return i.start(df("",i,t,a)),i.animation}function Yo(e,t,a,i={passive:!0}){return e.addEventListener(t,a,i),()=>e.removeEventListener(t,a)}const TE=(e,t)=>e.depth-t.depth;class EE{constructor(){this.children=[],this.isDirty=!1}add(t){qh(this.children,t),this.isDirty=!0}remove(t){Yl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(TE),this.isDirty=!1,this.children.forEach(t)}}function RE(e,t){const a=Kt.now(),i=({timestamp:s})=>{const c=s-a;c>=t&&(ra(i),e(c-t))};return Qe.setup(i,!0),()=>ra(i)}function Fl(e){return At(e)?e.get():e}class DE{constructor(){this.members=[]}add(t){qh(this.members,t);for(let a=this.members.length-1;a>=0;a--){const i=this.members[a];if(i===t||i===this.lead||i===this.prevLead)continue;const s=i.instance;(!s||s.isConnected===!1)&&!i.snapshot&&(Yl(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(Yl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){for(let a=this.members.indexOf(t)-1;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1&&i.instance?.isConnected!==!1)return this.promote(i),!0}return!1}promote(t,a){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=i.options,{layoutDependency:c}=t.options;(s===void 0||s!==c)&&(t.resumeFrom=i,a&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Ul={hasAnimatedSinceResize:!0,hasEverUpdated:!1},xd=["","X","Y","Z"],IE=1e3;let AE=0;function Pd(e,t,a,i){const{latestValues:s}=t;s[e]&&(a[e]=s[e],t.setStaticValue(e,0),i&&(i[e]=0))}function xb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const a=H0(t);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:s,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Qe,!(s||c))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&xb(i)}function Pb({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(u={},d=t?.()){this.id=AE++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(NE),this.nodes.forEach(UE),this.nodes.forEach(BE),this.nodes.forEach(jE)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new EE)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Jh),this.eventHandlers.get(u).add(d)}notifyListeners(u,...d){const p=this.eventHandlers.get(u);p&&p.notify(...d)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=vf(u)&&!NT(u),this.instance=u;const{layoutId:d,layout:p,visualElement:f}=this.options;if(f&&!f.current&&f.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||d)&&(this.isLayoutDirty=!0),e){let g,v=0;const y=()=>this.root.updateBlockedByResize=!1;Qe.read(()=>{v=window.innerWidth}),e(u,()=>{const _=window.innerWidth;_!==v&&(v=_,this.root.updateBlockedByResize=!0,g&&g(),g=RE(y,250),Ul.hasAnimatedSinceResize&&(Ul.hasAnimatedSinceResize=!1,this.nodes.forEach(Zv)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&f&&(d||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeLayoutChanged:y,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||f.getDefaultTransition()||KE,{onLayoutAnimationStart:P,onLayoutAnimationComplete:S}=f.getProps(),N=!this.targetLayout||!bb(this.targetLayout,_),j=!v&&y;if(this.options.layoutRoot||this.resumeFrom||j||v&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const I={...uf(w,"layout"),onPlay:P,onComplete:S};(f.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I),this.setAnimationOrigin(g,j)}else v||Zv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ra(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(HE),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const v=this.path[g];v.shouldResetTransform=!0,(typeof v.latestValues.x=="string"||typeof v.latestValues.y=="string")&&(v.isLayoutDirty=!0),v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:d,layout:p}=this.options;if(d===void 0&&!p)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const p=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),p&&this.nodes.forEach(zE),this.nodes.forEach(Yv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Xv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(VE),this.nodes.forEach(FE),this.nodes.forEach(ME),this.nodes.forEach(LE)):this.nodes.forEach(Xv),this.clearAllSnapshots();const d=Kt.now();It.delta=ar(0,1e3/60,d-It.timestamp),It.timestamp=d,It.isProcessing=!0,md.update.process(It),md.preRender.process(It),md.render.process(It),It.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,mf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(OE),this.sharedNodes.forEach(WE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yt(this.snapshot.measuredBox.x)&&!Yt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=xt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(d=!1),d&&this.instance){const p=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:p,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!s)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!kb(this.projectionDelta),p=this.getTransformTemplate(),f=p?p(this.latestValues,""):void 0,g=f!==this.prevTransformTemplateValue;u&&this.instance&&(d||Aa(this.latestValues)||g)&&(s(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const d=this.measurePageBox();let p=this.removeElementScroll(d);return u&&(p=this.removeTransform(p)),YE(p),{animationId:this.root.animationId,measuredBox:d,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return xt();const d=u.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(XE))){const{scroll:f}=this.root;f&&(tr(d.x,f.offset.x),tr(d.y,f.offset.y))}return d}removeElementScroll(u){const d=xt();if(zn(d,u),this.scroll?.wasRoot)return d;for(let p=0;p<this.path.length;p++){const f=this.path[p],{scroll:g,options:v}=f;f!==this.root&&g&&v.layoutScroll&&(g.wasRoot&&zn(d,u),tr(d.x,g.offset.x),tr(d.y,g.offset.y))}return d}applyTransform(u,d=!1,p){const f=p||xt();zn(f,u);for(let g=0;g<this.path.length;g++){const v=this.path[g];!d&&v.options.layoutScroll&&v.scroll&&v!==v.root&&(tr(f.x,-v.scroll.offset.x),tr(f.y,-v.scroll.offset.y)),Aa(v.latestValues)&&Vl(f,v.latestValues,v.layout?.layoutBox)}return Aa(this.latestValues)&&Vl(f,this.latestValues,this.layout?.layoutBox),f}removeTransform(u){const d=xt();zn(d,u);for(let p=0;p<this.path.length;p++){const f=this.path[p];if(!Aa(f.latestValues))continue;let g;f.instance&&(sh(f.latestValues)&&f.updateSnapshot(),g=xt(),zn(g,f.measurePageBox())),Vv(d,f.latestValues,f.snapshot?.layoutBox,g)}return Aa(this.latestValues)&&Vv(d,this.latestValues),d}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==It.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==d;if(!(u||p&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:v}=this.options;if(!this.layout||!(g||v))return;this.resolvedRelativeTargetAt=It.timestamp;const y=this.getClosestProjectingParent();y&&this.linkedParentVersion!==y.layoutVersion&&!y.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&y&&y.layout?this.createRelativeTarget(y,this.layout.layoutBox,y.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=xt(),this.targetWithTransforms=xt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),gE(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):zn(this.target,this.layout.layoutBox),sb(this.target,this.targetDelta)):zn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?this.createRelativeTarget(y,this.target,y.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||sh(this.parent.latestValues)||ob(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(u,d,p){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),nc(this.relativeTargetOrigin,d,p,this.options.layoutAnchor||void 0),zn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const u=this.getLead(),d=!!this.resumingFrom||this!==u;let p=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(p=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===It.timestamp&&(p=!1),p)return;const{layout:f,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||g))return;zn(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,y=this.treeScale.y;$T(this.layoutCorrected,this.treeScale,this.path,d),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=xt());const{target:_}=u;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Mv(this.prevProjectionDelta.x,this.projectionDelta.x),Mv(this.prevProjectionDelta.y,this.projectionDelta.y)),Oo(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==y||!Wv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Wv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.visualElement?.scheduleRender(),u){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Si(),this.projectionDelta=Si(),this.projectionDeltaWithTransform=Si()}setAnimationOrigin(u,d=!1){const p=this.snapshot,f=p?p.latestValues:{},g={...this.latestValues},v=Si();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const y=xt(),_=p?p.source:void 0,w=this.layout?this.layout.source:void 0,P=_!==w,S=this.getStack(),N=!S||S.members.length<=1,j=!!(P&&!N&&this.options.crossfade===!0&&!this.path.some(GE));this.animationProgress=0;let I;this.mixTargetDelta=D=>{const B=D/1e3;qv(v.x,u.x,B),qv(v.y,u.y,B),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nc(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),$E(this.relativeTarget,this.relativeTargetOrigin,y,B),I&&bE(this.relativeTarget,I)&&(this.isProjectionDirty=!1),I||(I=xt()),zn(I,this.relativeTarget)),P&&(this.animationValues=g,xE(g,f,this.latestValues,B,j,N)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=B},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ra(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{Ul.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Di(0)),this.motionValue.jump(0,!1),this.currentAnimation=CE(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),u.onUpdate&&u.onUpdate(d)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(IE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:p,layout:f,latestValues:g}=u;if(!(!d||!p||!f)){if(this!==u&&this.layout&&f&&Sb(this.options.animationType,this.layout.layoutBox,f.layoutBox)){p=this.target||xt();const v=Yt(this.layout.layoutBox.x);p.x.min=u.target.x.min,p.x.max=p.x.min+v;const y=Yt(this.layout.layoutBox.y);p.y.min=u.target.y.min,p.y.max=p.y.min+y}zn(d,p),Vl(d,g),Oo(this.projectionDeltaWithTransform,this.layoutCorrected,d,g)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new DE),this.sharedNodes.get(u).add(d);const f=d.options.initialPromotionConfig;d.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){const{layoutId:u}=this.options;return u?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:u}=this.options;return u?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:p}={}){const f=this.getStack();f&&f.promote(this,p),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:p}=u;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(d=!0),!d)return;const f={};p.z&&Pd("z",u,f,this.animationValues);for(let g=0;g<xd.length;g++)Pd(`rotate${xd[g]}`,u,f,this.animationValues),Pd(`skew${xd[g]}`,u,f,this.animationValues);u.render();for(const g in f)u.setStaticValue(g,f[g]),this.animationValues&&(this.animationValues[g]=f[g]);u.scheduleRender()}applyProjectionStyles(u,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=Fl(d?.pointerEvents)||"",u.transform=p?p(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=Fl(d?.pointerEvents)||""),this.hasProjected&&!Aa(this.latestValues)&&(u.transform=p?p({},""):"none",this.hasProjected=!1);return}u.visibility="";const g=f.animationValues||f.latestValues;this.applyTransformsToTarget();let v=_E(this.projectionDeltaWithTransform,this.treeScale,g);p&&(v=p(g,v)),u.transform=v;const{x:y,y:_}=this.projectionDelta;u.transformOrigin=`${y.origin*100}% ${_.origin*100}% 0`,f.animationValues?u.opacity=f===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:u.opacity=f===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const w in ch){if(g[w]===void 0)continue;const{correct:P,applyTo:S,isCSSVariable:N}=ch[w],j=v==="none"?g[w]:P(g[w],f);if(S){const I=S.length;for(let D=0;D<I;D++)u[S[D]]=j}else N?this.options.visualElement.renderState.vars[w]=j:u[w]=j}this.options.layoutId&&(u.pointerEvents=f===this?Fl(d?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>u.currentAnimation?.stop()),this.root.nodes.forEach(Yv),this.root.sharedNodes.clear()}}}function ME(e){e.updateLayout()}function LE(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:i}=e.layout,{animationType:s}=e.options,c=t.source!==e.layout.source;if(s==="size")er(g=>{const v=c?t.measuredBox[g]:t.layoutBox[g],y=Yt(v);v.min=a[g].min,v.max=v.min+y});else if(s==="x"||s==="y"){const g=s==="x"?"y":"x";uh(c?t.measuredBox[g]:t.layoutBox[g],a[g])}else Sb(s,t.layoutBox,a)&&er(g=>{const v=c?t.measuredBox[g]:t.layoutBox[g],y=Yt(a[g]);v.max=v.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+y)});const u=Si();Oo(u,a,t.layoutBox);const d=Si();c?Oo(d,e.applyTransform(i,!0),t.measuredBox):Oo(d,a,t.layoutBox);const p=!kb(u);let f=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:y}=g;if(v&&y){const _=e.options.layoutAnchor||void 0,w=xt();nc(w,t.layoutBox,v.layoutBox,_);const P=xt();nc(P,a,y.layoutBox,_),bb(w,P)||(f=!0),g.options.layoutRoot&&(e.relativeTarget=P,e.relativeTargetOrigin=w,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:d,layoutDelta:u,hasLayoutChanged:p,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function NE(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function OE(e){e.clearSnapshot()}function Yv(e){e.clearMeasurements()}function zE(e){e.isLayoutDirty=!0,e.updateLayout()}function Xv(e){e.isLayoutDirty=!1}function VE(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function FE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Zv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function UE(e){e.resolveTargetDelta()}function BE(e){e.calcProjection()}function HE(e){e.resetSkewAndRotation()}function WE(e){e.removeLeadSnapshot()}function qv(e,t,a){e.translate=it(t.translate,0,a),e.scale=it(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function Qv(e,t,a,i){e.min=it(t.min,a.min,i),e.max=it(t.max,a.max,i)}function $E(e,t,a,i){Qv(e.x,t.x,a.x,i),Qv(e.y,t.y,a.y,i)}function GE(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const KE={duration:.45,ease:[.4,0,.1,1]},Jv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ey=Jv("applewebkit/")&&!Jv("chrome/")?Math.round:Sn;function ty(e){e.min=ey(e.min),e.max=ey(e.max)}function YE(e){ty(e.x),ty(e.y)}function Sb(e,t,a){return e==="position"||e==="preserve-aspect"&&!mE(Hv(t),Hv(a),.2)}function XE(e){return e!==e.root&&e.scroll?.wasRoot}const ZE=Pb({attachResizeListener:(e,t)=>Yo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Sd={current:void 0},Cb=Pb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Sd.current){const e=new ZE({});e.mount(window),e.setOptions({layoutScroll:!0}),Sd.current=e}return Sd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),xf=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ny(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function qE(...e){return t=>{let a=!1;const i=e.map(s=>{const c=ny(s,t);return!a&&typeof c=="function"&&(a=!0),c});if(a)return()=>{for(let s=0;s<i.length;s++){const c=i[s];typeof c=="function"?c():ny(e[s],null)}}}}function QE(...e){return k.useCallback(qE(...e),e)}class JE extends k.Component{getSnapshotBeforeUpdate(t){const a=this.props.childRef.current;if(Ll(a)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const i=a.offsetParent,s=Ll(i)&&i.offsetWidth||0,c=Ll(i)&&i.offsetHeight||0,u=getComputedStyle(a),d=this.props.sizeRef.current;d.height=parseFloat(u.height),d.width=parseFloat(u.width),d.top=a.offsetTop,d.left=a.offsetLeft,d.right=s-d.width-d.left,d.bottom=c-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function eR({children:e,isPresent:t,anchorX:a,anchorY:i,root:s,pop:c}){const u=k.useId(),d=k.useRef(null),p=k.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:f}=k.useContext(xf),g=e.props?.ref??e?.ref,v=QE(d,g);return k.useInsertionEffect(()=>{const{width:y,height:_,top:w,left:P,right:S,bottom:N}=p.current;if(t||c===!1||!d.current||!y||!_)return;const j=a==="left"?`left: ${P}`:`right: ${S}`,I=i==="bottom"?`bottom: ${N}`:`top: ${w}`;d.current.dataset.motionPopId=u;const D=document.createElement("style");f&&(D.nonce=f);const B=s??document.head;return B.appendChild(D),D.sheet&&D.sheet.insertRule(`
687
689
  [data-motion-pop-id="${u}"] {
688
690
  position: absolute !important;
689
691
  width: ${y}px !important;
@@ -691,4 +693,4 @@ app.meta.twitter_card,app,*,*,meta_twitter_card,summary,,active
691
693
  ${j}px !important;
692
694
  ${I}px !important;
693
695
  }
694
- `),()=>{d.current?.removeAttribute("data-motion-pop-id"),B.contains(D)&&B.removeChild(D)}},[t]),L.jsx(JE,{isPresent:t,childRef:d,sizeRef:p,pop:c,children:c===!1?e:k.cloneElement(e,{ref:v})})}const tR=({children:e,initial:t,isPresent:a,onExitComplete:i,custom:s,presenceAffectsLayout:c,mode:u,anchorX:d,anchorY:p,root:f})=>{const g=Zh(nR),v=k.useId();let y=!0,_=k.useMemo(()=>(y=!1,{id:v,initial:t,isPresent:a,custom:s,onExitComplete:w=>{g.set(w,!0);for(const P of g.values())if(!P)return;i&&i()},register:w=>(g.set(w,!1),()=>g.delete(w))}),[a,g,i]);return c&&y&&(_={..._}),k.useMemo(()=>{g.forEach((w,P)=>g.set(P,!1))},[a]),k.useEffect(()=>{!a&&!g.size&&i&&i()},[a]),e=L.jsx(eR,{pop:u==="popLayout",isPresent:a,anchorX:d,anchorY:p,root:f,children:e}),L.jsx(fc.Provider,{value:_,children:e})};function nR(){return new Map}function Tb(e=!0){const t=k.useContext(fc);if(t===null)return[!0,null];const{isPresent:a,onExitComplete:i,register:s}=t,c=k.useId();k.useEffect(()=>{if(e)return s(c)},[e]);const u=k.useCallback(()=>e&&i&&i(c),[c,i,e]);return!a&&i?[!1,u]:[!0]}const Pl=e=>e.key||"";function ry(e){const t=[];return k.Children.forEach(e,a=>{k.isValidElement(a)&&t.push(a)}),t}const rR=({children:e,custom:t,initial:a=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:c="sync",propagate:u=!1,anchorX:d="left",anchorY:p="top",root:f})=>{const[g,v]=Tb(u),y=k.useMemo(()=>ry(e),[e]),_=u&&!g?[]:y.map(Pl),w=k.useRef(!0),P=k.useRef(y),S=Zh(()=>new Map),N=k.useRef(new Set),[j,I]=k.useState(y),[D,B]=k.useState(y);e0(()=>{w.current=!1,P.current=y;for(let x=0;x<D.length;x++){const ee=Pl(D[x]);_.includes(ee)?(S.delete(ee),N.current.delete(ee)):S.get(ee)!==!0&&S.set(ee,!1)}},[D,_.length,_.join("-")]);const Z=[];if(y!==j){let x=[...y];for(let ee=0;ee<D.length;ee++){const Y=D[ee],ue=Pl(Y);_.includes(ue)||(x.splice(ee,0,Y),Z.push(Y))}return c==="wait"&&Z.length&&(x=Z),B(ry(x)),I(y),null}const{forceRender:oe}=k.useContext(Xh);return L.jsx(L.Fragment,{children:D.map(x=>{const ee=Pl(x),Y=u&&!g?!1:y===D||_.includes(ee),ue=()=>{if(N.current.has(ee))return;if(S.has(ee))N.current.add(ee),S.set(ee,!0);else return;let se=!0;S.forEach(q=>{q||(se=!1)}),se&&(oe?.(),B(P.current),u&&v?.(),i&&i())};return L.jsx(tR,{isPresent:Y,initial:!w.current||a?void 0:!1,custom:t,presenceAffectsLayout:s,mode:c,root:f,onExitComplete:Y?void 0:ue,anchorX:d,anchorY:p,children:x},ee)})})},Eb=k.createContext({strict:!1}),ay={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let iy=!1;function aR(){if(iy)return;const e={};for(const t in ay)e[t]={isEnabled:a=>ay[t].some(i=>!!a[i])};rb(e),iy=!0}function Rb(){return aR(),UT()}function iR(e){const t=Rb();for(const a in e)t[a]={...t[a],...e[a]};rb(t)}const oR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function rc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||oR.has(e)}let Db=e=>!rc(e);function sR(e){typeof e=="function"&&(Db=t=>t.startsWith("on")?!rc(t):e(t))}try{sR(require("@emotion/is-prop-valid").default)}catch{}function lR(e,t,a){const i={};for(const s in e)s==="values"&&typeof e.values=="object"||At(e[s])||(Db(s)||a===!0&&rc(s)||!t&&!rc(s)||e.draggable&&s.startsWith("onDrag"))&&(i[s]=e[s]);return i}const vc=k.createContext({});function cR(e,t){if(gc(e)){const{initial:a,animate:i}=e;return{initial:a===!1||Ko(a)?a:void 0,animate:Ko(i)?i:void 0}}return e.inherit!==!1?t:{}}function uR(e){const{initial:t,animate:a}=cR(e,k.useContext(vc));return k.useMemo(()=>({initial:t,animate:a}),[oy(t),oy(a)])}function oy(e){return Array.isArray(e)?e.join(" "):e}const Pf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ib(e,t,a){for(const i in t)!At(t[i])&&!ub(i,a)&&(e[i]=t[i])}function dR({transformTemplate:e},t){return k.useMemo(()=>{const a=Pf();return _f(a,t,e),Object.assign({},a.vars,a.style)},[t])}function hR(e,t){const a=e.style||{},i={};return Ib(i,a,e),Object.assign(i,dR(e,t)),i}function fR(e,t){const a={},i=hR(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=i,a}const Ab=()=>({...Pf(),attrs:{}});function pR(e,t,a,i){const s=k.useMemo(()=>{const c=Ab();return db(c,t,fb(i),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[t]);if(e.style){const c={};Ib(c,e.style,e),s.style={...c,...s.style}}return s}const mR=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Sf(e){return typeof e!="string"||e.includes("-")?!1:!!(mR.indexOf(e)>-1||/[A-Z]/u.test(e))}function gR(e,t,a,{latestValues:i},s,c=!1,u){const p=(u??Sf(e)?pR:fR)(t,i,s,e),f=lR(t,typeof e=="string",c),g=e!==k.Fragment?{...f,...p,ref:a}:{},{children:v}=t,y=k.useMemo(()=>At(v)?v.get():v,[v]);return k.createElement(e,{...g,children:y})}function vR({scrapeMotionValuesFromProps:e,createRenderState:t},a,i,s){return{latestValues:yR(a,i,s,e),renderState:t()}}function yR(e,t,a,i){const s={},c=i(e,{});for(const y in c)s[y]=Fl(c[y]);let{initial:u,animate:d}=e;const p=gc(e),f=tb(e);t&&f&&!p&&e.inherit!==!1&&(u===void 0&&(u=t.initial),d===void 0&&(d=t.animate));let g=a?a.initial===!1:!1;g=g||u===!1;const v=g?d:u;if(v&&typeof v!="boolean"&&!mc(v)){const y=Array.isArray(v)?v:[v];for(let _=0;_<y.length;_++){const w=hf(e,y[_]);if(w){const{transitionEnd:P,transition:S,...N}=w;for(const j in N){let I=N[j];if(Array.isArray(I)){const D=g?I.length-1:0;I=I[D]}I!==null&&(s[j]=I)}for(const j in P)s[j]=P[j]}}}return s}const Mb=e=>(t,a)=>{const i=k.useContext(vc),s=k.useContext(fc),c=()=>vR(e,t,i,s);return a?c():Zh(c)},kR=Mb({scrapeMotionValuesFromProps:wf,createRenderState:Pf}),bR=Mb({scrapeMotionValuesFromProps:pb,createRenderState:Ab}),_R=Symbol.for("motionComponentSymbol");function wR(e,t,a){const i=k.useRef(a);k.useInsertionEffect(()=>{i.current=a});const s=k.useRef(null);return k.useCallback(c=>{c&&e.onMount?.(c);const u=i.current;if(typeof u=="function")if(c){const d=u(c);typeof d=="function"&&(s.current=d)}else s.current?(s.current(),s.current=null):u(c);else u&&(u.current=c);t&&(c?t.mount(c):t.unmount())},[t])}const Lb=k.createContext({});function _i(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function xR(e,t,a,i,s,c){const{visualElement:u}=k.useContext(vc),d=k.useContext(Eb),p=k.useContext(fc),f=k.useContext(xf),g=f.reducedMotion,v=f.skipAnimations,y=k.useRef(null),_=k.useRef(!1);i=i||d.renderer,!y.current&&i&&(y.current=i(e,{visualState:t,parent:u,props:a,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:g,skipAnimations:v,isSVG:c}),_.current&&y.current&&(y.current.manuallyAnimateOnMount=!0));const w=y.current,P=k.useContext(Lb);w&&!w.projection&&s&&(w.type==="html"||w.type==="svg")&&PR(y.current,a,s,P);const S=k.useRef(!1);k.useInsertionEffect(()=>{w&&S.current&&w.update(a,p)});const N=a[B0],j=k.useRef(!!N&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(N)&&window.MotionHasOptimisedAnimation?.(N));return e0(()=>{_.current=!0,w&&(S.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),j.current&&w.animationState&&w.animationState.animateChanges())}),k.useEffect(()=>{w&&(!j.current&&w.animationState&&w.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(N)}),j.current=!1),w.enteringChildren=void 0)}),w}function PR(e,t,a,i){const{layoutId:s,layout:c,drag:u,dragConstraints:d,layoutScroll:p,layoutRoot:f,layoutAnchor:g,layoutCrossfade:v}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:Nb(e.parent)),e.projection.setOptions({layoutId:s,layout:c,alwaysMeasureLayout:!!u||d&&_i(d),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:i,crossfade:v,layoutScroll:p,layoutRoot:f,layoutAnchor:g})}function Nb(e){if(e)return e.options.allowProjection!==!1?e.projection:Nb(e.parent)}function Cd(e,{forwardMotionProps:t=!1,type:a}={},i,s){i&&iR(i);const c=a?a==="svg":Sf(e),u=c?bR:kR;function d(f,g){let v;const y={...k.useContext(xf),...f,layoutId:SR(f)},{isStatic:_}=y,w=uR(f),P=u(f,_);if(!_&&typeof window<"u"){CR();const S=TR(y);v=S.MeasureLayout,w.visualElement=xR(e,P,y,s,S.ProjectionNode,c)}return L.jsxs(vc.Provider,{value:w,children:[v&&w.visualElement?L.jsx(v,{visualElement:w.visualElement,...y}):null,gR(e,f,wR(P,w.visualElement,g),P,_,t,c)]})}d.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const p=k.forwardRef(d);return p[_R]=e,p}function SR({layoutId:e}){const t=k.useContext(Xh).id;return t&&e!==void 0?t+"-"+e:e}function CR(e,t){k.useContext(Eb).strict}function TR(e){const t=Rb(),{drag:a,layout:i}=t;if(!a&&!i)return{};const s={...a,...i};return{MeasureLayout:a?.isEnabled(e)||i?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function ER(e,t){if(typeof Proxy>"u")return Cd;const a=new Map,i=(c,u)=>Cd(c,u,e,t),s=(c,u)=>i(c,u);return new Proxy(s,{get:(c,u)=>u==="create"?i:(a.has(u)||a.set(u,Cd(u,void 0,e,t)),a.get(u))})}const RR=(e,t)=>t.isSVG??Sf(e)?new aE(t):new QT(t,{allowProjection:e!==k.Fragment});class DR extends la{constructor(t){super(t),t.animationState||(t.animationState=cE(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let IR=0;class AR extends la{constructor(){super(...arguments),this.id=IR++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&i===!1){if(this.isExitComplete){const{initial:c,custom:u}=this.node.getProps();if(typeof c=="string"){const d=Oa(this.node,c,u);if(d){const{transition:p,transitionEnd:f,...g}=d;for(const v in g)this.node.getValue(v)?.jump(g[v])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);a&&!t&&s.then(()=>{this.isExitComplete=!0,a(this.id)})}mount(){const{register:t,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const MR={animation:{Feature:DR},exit:{Feature:AR}};function os(e){return{point:{x:e.pageX,y:e.pageY}}}const LR=e=>t=>gf(t)&&e(t,os(t));function zo(e,t,a,i){return Yo(e,t,LR(a),i)}const jb=({current:e})=>e?e.ownerDocument.defaultView:null,sy=(e,t)=>Math.abs(e-t);function NR(e,t){const a=sy(e.x,t.x),i=sy(e.y,t.y);return Math.sqrt(a**2+i**2)}const ly=new Set(["auto","scroll"]);class Ob{constructor(t,a,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:c=!1,distanceThreshold:u=3,element:d}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=_=>{this.handleScroll(_.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Sl(this.lastRawMoveEventInfo,this.transformPagePoint));const _=Td(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,P=NR(_.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!P)return;const{point:S}=_,{timestamp:N}=It;this.history.push({...S,timestamp:N});const{onStart:j,onMove:I}=this.handlers;w||(j&&j(this.lastMoveEvent,_),this.startEvent=this.lastMoveEvent),I&&I(this.lastMoveEvent,_)},this.handlePointerMove=(_,w)=>{this.lastMoveEvent=_,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=Sl(w,this.transformPagePoint),Qe.update(this.updatePoint,!0)},this.handlePointerUp=(_,w)=>{this.end();const{onEnd:P,onSessionEnd:S,resumeAnimation:N}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=Td(_.type==="pointercancel"?this.lastMoveEventInfo:Sl(w,this.transformPagePoint),this.history);this.startEvent&&P&&P(_,j),S&&S(_,j)},!gf(t))return;this.dragSnapToOrigin=c,this.handlers=a,this.transformPagePoint=i,this.distanceThreshold=u,this.contextWindow=s||window;const p=os(t),f=Sl(p,this.transformPagePoint),{point:g}=f,{timestamp:v}=It;this.history=[{...g,timestamp:v}];const{onSessionStart:y}=a;y&&y(t,Td(f,this.history)),this.removeListeners=rs(zo(this.contextWindow,"pointermove",this.handlePointerMove),zo(this.contextWindow,"pointerup",this.handlePointerUp),zo(this.contextWindow,"pointercancel",this.handlePointerUp)),d&&this.startScrollTracking(d)}startScrollTracking(t){let a=t.parentElement;for(;a;){const i=getComputedStyle(a);(ly.has(i.overflowX)||ly.has(i.overflowY))&&this.scrollPositions.set(a,{x:a.scrollLeft,y:a.scrollTop}),a=a.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const a=this.scrollPositions.get(t);if(!a)return;const i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},c={x:s.x-a.x,y:s.y-a.y};c.x===0&&c.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=c.x,this.lastMoveEventInfo.point.y+=c.y):this.history.length>0&&(this.history[0].x-=c.x,this.history[0].y-=c.y),this.scrollPositions.set(t,s),Qe.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ra(this.updatePoint)}}function Sl(e,t){return t?{point:t(e.point)}:e}function cy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Td({point:e},t){return{point:e,delta:cy(e,zb(t)),offset:cy(e,jR(t)),velocity:OR(t,.1)}}function jR(e){return e[0]}function zb(e){return e[e.length-1]}function OR(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,i=null;const s=zb(e);for(;a>=0&&(i=e[a],!(s.timestamp-i.timestamp>pn(t)));)a--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&s.timestamp-i.timestamp>pn(t)*2&&(i=e[1]);const c=xn(s.timestamp-i.timestamp);if(c===0)return{x:0,y:0};const u={x:(s.x-i.x)/c,y:(s.y-i.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function zR(e,{min:t,max:a},i){return t!==void 0&&e<t?e=i?it(t,e,i.min):Math.max(e,t):a!==void 0&&e>a&&(e=i?it(a,e,i.max):Math.min(e,a)),e}function uy(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function VR(e,{top:t,left:a,bottom:i,right:s}){return{x:uy(e.x,a,s),y:uy(e.y,t,i)}}function dy(e,t){let a=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,i]=[i,a]),{min:a,max:i}}function FR(e,t){return{x:dy(e.x,t.x),y:dy(e.y,t.y)}}function UR(e,t){let a=.5;const i=Yt(e),s=Yt(t);return s>i?a=$o(t.min,t.max-i,e.min):i>s&&(a=$o(e.min,e.max-s,t.min)),ar(0,1,a)}function BR(e,t){const a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}const dh=.35;function HR(e=dh){return e===!1?e=0:e===!0&&(e=dh),{x:hy(e,"left","right"),y:hy(e,"top","bottom")}}function hy(e,t,a){return{min:fy(e,t),max:fy(e,a)}}function fy(e,t){return typeof e=="number"?e:e[t]||0}const WR=new WeakMap;class $R{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:a=!1,distanceThreshold:i}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const c=v=>{a&&this.snapToCursor(os(v).point),this.stopAnimation()},u=(v,y)=>{const{drag:_,dragPropagation:w,onDragStart:P}=this.getProps();if(_&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=yT(_),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=y,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),er(N=>{let j=this.getAxisMotionValue(N).get()||0;if(nr.test(j)){const{projection:I}=this.visualElement;if(I&&I.layout){const D=I.layout.layoutBox[N];D&&(j=Yt(D)*(parseFloat(j)/100))}}this.originPoint[N]=j}),P&&Qe.update(()=>P(v,y),!1,!0),rh(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},d=(v,y)=>{this.latestPointerEvent=v,this.latestPanInfo=y;const{dragPropagation:_,dragDirectionLock:w,onDirectionLock:P,onDrag:S}=this.getProps();if(!_&&!this.openDragLock)return;const{offset:N}=y;if(w&&this.currentDirection===null){this.currentDirection=KR(N),this.currentDirection!==null&&P&&P(this.currentDirection);return}this.updateAxis("x",y.point,N),this.updateAxis("y",y.point,N),this.visualElement.render(),S&&Qe.update(()=>S(v,y),!1,!0)},p=(v,y)=>{this.latestPointerEvent=v,this.latestPanInfo=y,this.stop(v,y),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:g}=this.getProps();this.panSession=new Ob(t,{onSessionStart:c,onStart:u,onMove:d,onSessionEnd:p,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:i,contextWindow:jb(this.visualElement),element:this.visualElement.current})}stop(t,a){const i=t||this.latestPointerEvent,s=a||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!s||!i)return;const{velocity:u}=s;this.startAnimation(u);const{onDragEnd:d}=this.getProps();d&&Qe.postRender(()=>d(i,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,a,i){const{drag:s}=this.getProps();if(!i||!Cl(t,s,this.currentDirection))return;const c=this.getAxisMotionValue(t);let u=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(u=zR(u,this.constraints[t],this.elastic[t])),c.set(u)}resolveConstraints(){const{dragConstraints:t,dragElastic:a}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&_i(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=VR(i.layoutBox,t):this.constraints=!1,this.elastic=HR(a),s!==this.constraints&&!_i(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&er(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=BR(i.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!_i(t))return!1;const i=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const c=GT(i,s.root,this.visualElement.getTransformPagePoint());let u=FR(s.layout.layoutBox,c);if(a){const d=a(HT(u));this.hasMutatedConstraints=!!d,d&&(u=ib(d))}return u}startAnimation(t){const{drag:a,dragMomentum:i,dragElastic:s,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),p=this.constraints||{},f=er(g=>{if(!Cl(g,a,this.currentDirection))return;let v=p&&p[g]||{};(u===!0||u===g)&&(v={min:0,max:0});const y=s?200:1e6,_=s?40:1e7,w={type:"inertia",velocity:i?t[g]:0,bounceStiffness:y,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...c,...v};return this.startAxisValueAnimation(g,w)});return Promise.all(f).then(d)}startAxisValueAnimation(t,a){const i=this.getAxisMotionValue(t);return rh(this.visualElement,t),i.start(df(t,i,0,a,this.visualElement,!1))}stopAnimation(){er(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const a=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),s=i[a];return s||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){er(a=>{const{drag:i}=this.getProps();if(!Cl(a,i,this.currentDirection))return;const{projection:s}=this.visualElement,c=this.getAxisMotionValue(a);if(s&&s.layout){const{min:u,max:d}=s.layout.layoutBox[a],p=c.get()||0;c.set(t[a]-it(u,d,.5)+p)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:a}=this.getProps(),{projection:i}=this.visualElement;if(!_i(a)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};er(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const p=d.get();s[u]=UR({min:p,max:p},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),er(u=>{if(!Cl(u,t,null))return;const d=this.getAxisMotionValue(u),{min:p,max:f}=this.constraints[u];d.set(it(p,f,s[u]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;WR.set(this.visualElement,this);const t=this.visualElement.current,a=zo(t,"pointerdown",f=>{const{drag:g,dragListener:v=!0}=this.getProps(),y=f.target,_=y!==t&&PT(y);g&&v&&!_&&this.start(f)});let i;const s=()=>{const{dragConstraints:f}=this.getProps();_i(f)&&f.current&&(this.constraints=this.resolveRefConstraints(),i||(i=GR(t,f.current,()=>this.scalePositionWithinConstraints())))},{projection:c}=this.visualElement,u=c.addEventListener("measure",s);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Qe.read(s);const d=Yo(window,"resize",()=>this.scalePositionWithinConstraints()),p=c.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:g})=>{this.isDragging&&g&&(er(v=>{const y=this.getAxisMotionValue(v);y&&(this.originPoint[v]+=f[v].translate,y.set(y.get()+f[v].translate))}),this.visualElement.render())}));return()=>{d(),a(),u(),p&&p(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:c=!1,dragElastic:u=dh,dragMomentum:d=!0}=t;return{...t,drag:a,dragDirectionLock:i,dragPropagation:s,dragConstraints:c,dragElastic:u,dragMomentum:d}}}function py(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function GR(e,t,a){const i=_v(e,py(a)),s=_v(t,py(a));return()=>{i(),s()}}function Cl(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function KR(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}class YR extends la{constructor(t){super(t),this.removeGroupControls=Sn,this.removeListeners=Sn,this.controls=new $R(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Sn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:a}=this.node.prevProps||{};t!==a&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ed=e=>(t,a)=>{e&&Qe.update(()=>e(t,a),!1,!0)};class XR extends la{constructor(){super(...arguments),this.removePointerDownListener=Sn}onPointerDown(t){this.session=new Ob(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:a,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ed(t),onStart:Ed(a),onMove:Ed(i),onEnd:(c,u)=>{delete this.session,s&&Qe.postRender(()=>s(c,u))}}}mount(){this.removePointerDownListener=zo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Rd=!1;class ZR extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:i,layoutId:s}=this.props,{projection:c}=t;c&&(a.group&&a.group.add(c),i&&i.register&&s&&i.register(c),Rd&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ul.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:a,visualElement:i,drag:s,isPresent:c}=this.props,{projection:u}=i;return u&&(u.isPresent=c,t.layoutDependency!==a&&u.setOptions({...u.options,layoutDependency:a}),Rd=!0,s||t.layoutDependency!==a||a===void 0||t.isPresent!==c?u.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?u.promote():u.relegate()||Qe.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:a}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=a,i.root.didUpdate(),mf.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:i}=this.props,{projection:s}=t;Rd=!0,s&&(s.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Vb(e){const[t,a]=Tb(),i=k.useContext(Xh);return L.jsx(ZR,{...e,layoutGroup:i,switchLayoutGroup:k.useContext(Lb),isPresent:t,safeToRemove:a})}const qR={pan:{Feature:XR},drag:{Feature:YR,ProjectionNode:Cb,MeasureLayout:Vb}};function my(e,t,a){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",a==="Start");const s="onHover"+a,c=i[s];c&&Qe.postRender(()=>c(t,os(t)))}class QR extends la{mount(){const{current:t}=this.node;t&&(this.unmount=bT(t,(a,i)=>(my(this.node,i,"Start"),s=>my(this.node,s,"End"))))}unmount(){}}class JR extends la{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rs(Yo(this.node.current,"focus",()=>this.onFocus()),Yo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function gy(e,t,a){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",a==="Start");const s="onTap"+(a==="End"?"":a),c=i[s];c&&Qe.postRender(()=>c(t,os(t)))}class e4 extends la{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:a,propagate:i}=this.node.props;this.unmount=CT(t,(s,c)=>(gy(this.node,c,"Start"),(u,{success:d})=>gy(this.node,u,d?"End":"Cancel")),{useGlobalTarget:a,stopPropagation:i?.tap===!1})}unmount(){}}const hh=new WeakMap,Dd=new WeakMap,t4=e=>{const t=hh.get(e.target);t&&t(e)},n4=e=>{e.forEach(t4)};function r4({root:e,...t}){const a=e||document;Dd.has(a)||Dd.set(a,{});const i=Dd.get(a),s=JSON.stringify(t);return i[s]||(i[s]=new IntersectionObserver(n4,{root:e,...t})),i[s]}function a4(e,t,a){const i=r4(t);return hh.set(e,a),i.observe(e),()=>{hh.delete(e),i.unobserve(e)}}const i4={some:0,all:1};class o4 extends la{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:a,margin:i,amount:s="some",once:c}=t,u={root:a?a.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:i4[s]},d=p=>{const{isIntersecting:f}=p;if(this.isInView===f||(this.isInView=f,c&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:g,onViewportLeave:v}=this.node.getProps(),y=f?g:v;y&&y(p)};this.stopObserver=a4(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:a}=this.node;["amount","margin","root"].some(s4(t,a))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function s4({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}const l4={inView:{Feature:o4},tap:{Feature:e4},focus:{Feature:JR},hover:{Feature:QR}},c4={layout:{ProjectionNode:Cb,MeasureLayout:Vb}},u4={...MR,...l4,...qR,...c4},vy=ER(u4,RR);function d4(){!bf.current&&nb();const[e]=k.useState(Jl.current);return e}function h4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:L.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})})}function f4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",className:t,children:L.jsx("path",{d:"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"})})}function p4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:L.jsx("path",{d:"M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"})})}function m4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:L.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z"})})}function g4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:L.jsx("path",{d:"M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815"})})}function v4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 -1 22 28",fill:"currentColor",fillRule:"evenodd",className:t,children:L.jsx("path",{d:"M4.125 20.149c-2.69 5.959 3.036 7.453 7.26 3.966 1.24 3.91 5.898.993 7.569-2.036 3.682-6.678 2.195-13.49 1.813-14.895-2.617-9.582-15.699-9.592-17.95.049-.526 1.687-.535 3.606-.833 5.598-.15 1.005-.256 1.646-.645 2.703-.223.607-.53 1.147-1.014 2.056-.75 1.412-.434 4.138 3.434 2.724v.001ZM11.895 11.332c-1.073 0-1.234-1.283-1.234-2.048 0-.69.124-1.239.358-1.586a1 1 0 0 1 .876-.462c.375 0 .697.158.924.47.259.354.395.9.395 1.578 0 1.283-.493 2.048-1.319 2.048Zm4.416 0c-1.073 0-1.234-1.283-1.234-2.048 0-.69.124-1.239.358-1.586a1 1 0 0 1 .876-.462c.375 0 .697.158.924.47.259.354.396.9.396 1.578 0 1.283-.494 2.048-1.32 2.048Z"})})}function y4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:L.jsx("path",{d:"M16 6H8v12h8V6zm4 16H4V2h16v20z"})})}function k4({size:e=16,className:t=""}){return L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:[L.jsx("path",{d:"M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z"}),L.jsx("path",{d:"M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z"})]})}function b4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:L.jsx("path",{d:"M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z"})})}function _4({size:e=16,className:t=""}){return L.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 60",fill:"none",className:t,"aria-hidden":"true",children:[L.jsx("path",{fill:"currentColor",d:"M37.2114 3.75318C37.6821 3.33106 37.7106 3.31457 38.0558 3.29385C38.6149 3.2531 39.1272 3.52199 39.9989 4.31564C42.0356 6.16652 44.8714 9.97183 46.6346 13.2212L47.3163 14.4819L48.2782 14.9605C49.2072 15.4299 50.7308 16.3923 51.3672 16.9085C51.655 17.1464 51.6956 17.1508 51.9947 17.0344C53.3454 16.5084 55.2803 17.206 56.9869 18.8432C58.5231 20.3155 59.9943 22.8312 60.558 24.9308C60.6403 25.2687 60.7493 25.9952 60.7891 26.5362C60.9177 28.4358 60.3092 29.9532 59.1362 30.64C58.8965 30.7784 58.8801 30.8158 58.8868 31.4132C58.9409 34.2583 58.1741 37.0985 56.6335 39.8679C54.8946 42.9773 51.7981 46.1938 47.6074 49.2243C45.357 50.8619 40.0323 53.964 37.6248 55.0532C31.8578 57.6496 27.2346 58.646 23.2188 58.154C20.8236 57.8638 18.1124 56.9287 16.5082 55.8433C16.086 55.5515 16.0191 55.5329 15.6966 55.6251C13.9793 56.1185 11.73 55.1053 9.81931 52.9844C9.05725 52.1366 7.82714 50.0548 7.42839 48.9409C6.50606 46.3339 6.68976 43.9816 7.91836 42.5767C8.23573 42.2149 8.2453 42.1995 8.17598 41.5912C8.06148 40.5951 8.00971 39.1206 8.06202 38.1692L8.10361 37.2803L6.76977 34.9212C4.70378 31.2451 3.3912 28.1582 2.88489 25.7998C2.61762 24.5066 2.63385 23.9324 2.96214 23.5078C3.16198 23.2515 3.81796 22.9866 4.60785 22.8407C6.59665 22.4917 10.9334 22.8076 15.7581 23.6595L16.259 23.7458L17.3608 22.7713C19.1891 21.1519 20.4038 20.244 22.6429 18.8478C24.9768 17.3876 27.6108 16.1858 30.577 15.2346L31.5295 14.9294L32.0526 13.5561C33.9257 8.61146 35.8437 4.96584 37.2114 3.75318ZM21.5208 29.0919C19.404 30.314 18.3453 30.9251 17.5676 31.6099C14.4179 34.3835 13.2414 38.777 14.5823 42.7537C14.9135 43.7357 15.5247 44.7942 16.7469 46.9111C17.9691 49.0279 18.5801 50.0865 19.2649 50.8643C22.0385 54.014 26.4316 55.1918 30.4084 53.8509C31.3904 53.5198 32.4489 52.9085 34.5657 51.6863L46.7442 44.6551C48.8613 43.4328 49.9205 42.8214 50.6983 42.1365C53.8479 39.363 55.0245 34.9695 53.6835 30.9927C53.3524 30.0107 52.7412 28.9522 51.519 26.8354C50.2968 24.7185 49.6858 23.66 49.0009 22.8822C46.2274 19.7325 41.8342 18.5547 37.8575 19.8956C36.8754 20.2267 35.8163 20.8383 33.6993 22.0606L21.5208 29.0919Z"}),L.jsx("g",{transform:"rotate(-30 22.6953 37.6011)",children:L.jsx("rect",{x:"22.6953",y:"37.6011",width:"4.81084",height:"9.99175",rx:"2.40542",fill:"currentColor"})}),L.jsx("g",{transform:"rotate(-30 35.6748 30.1074)",children:L.jsx("rect",{x:"35.6748",y:"30.1074",width:"4.81084",height:"9.99175",rx:"2.40542",fill:"currentColor"})})]})}function w4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",className:t,children:L.jsx("path",{d:"M7 2h10a5 5 0 015 5v10a5 5 0 01-5 5H7a5 5 0 01-5-5V7a5 5 0 015-5zm0 4.5v11h2.35v-4.55h5.3V17.5H17v-11h-2.35v4.1h-5.3V6.5H7z"})})}function x4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"currentColor",className:t,children:L.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"})})}function P4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-hidden":"true",children:L.jsx("g",{transform:"translate(3.4502, 3)",fill:"#9570BE",children:L.jsx("path",{d:"M3.17890888,3.6 L3.17890888,0 L16,0 L16,3.6 L3.17890888,3.6 Z M9.642,7.2 L9.64218223,10.8 L0,10.8 L0,3.6 L16,3.6 L16,7.2 L9.642,7.2 Z M3.17890888,18 L3.178,14.4 L0,14.4 L0,10.8 L16,10.8 L16,18 L3.17890888,18 Z",fillRule:"nonzero"})})})}function S4({size:e=16,className:t=""}){return L.jsxs("svg",{width:e,height:e,viewBox:"0 0 120 90",fill:"currentColor",className:t,children:[L.jsx("rect",{x:"10",y:"8",width:"100",height:"12",rx:"2"}),L.jsx("rect",{x:"25",y:"20",width:"12",height:"62",rx:"2"}),L.jsx("rect",{x:"75",y:"20",width:"12",height:"45",rx:"2"}),L.jsx("rect",{x:"71",y:"55",width:"20",height:"16",rx:"3"}),L.jsx("rect",{x:"76",y:"71",width:"3",height:"8",rx:"1"}),L.jsx("rect",{x:"82",y:"71",width:"3",height:"8",rx:"1"})]})}function C4({size:e=16,className:t=""}){return L.jsxs("svg",{width:e,height:e,viewBox:"0 0 120 90",fill:"currentColor",className:t,children:[L.jsx("rect",{x:"10",y:"8",width:"100",height:"12",rx:"2"}),L.jsx("rect",{x:"25",y:"20",width:"12",height:"62",rx:"2"}),L.jsx("rect",{x:"83",y:"20",width:"12",height:"62",rx:"2"})]})}function T4({size:e=16,className:t=""}){return L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[L.jsx("path",{d:"M9 3v2"}),L.jsx("path",{d:"M15 3v2"}),L.jsx("rect",{x:"4",y:"6",width:"16",height:"13",rx:"3"}),L.jsx("circle",{cx:"9",cy:"13",r:"1.4",fill:"currentColor",stroke:"none"}),L.jsx("circle",{cx:"15",cy:"13",r:"1.4",fill:"currentColor",stroke:"none"}),L.jsx("path",{d:"M9 16h6"})]})}const E4={CLAUDE:h4,CODEBUDDY:_4,CODEX:f4,COPILOT:b4,CRAFT:P4,CURSOR:p4,DROID:T4,GEMINI:m4,GITHUB:x4,GROK:g4,HERMES:w4,KIMI:k4,KIRO:v4,OPENCODE:y4,OMP:S4,PI:C4},R4={ANTIGRAVITY:"/brand-logos/antigravity.svg",CLAUDE:"/brand-logos/claude-code.svg",CODEX:"/brand-logos/codex.svg",GEMINI:"/brand-logos/gemini.svg",HERMES:"/brand-logos/hermes.svg","KILO-CLI":"/brand-logos/kilo.svg","KILO-CODE":"/brand-logos/kilo.svg",OPENCLAW:"/brand-logos/openclaw.svg",OPENCODE:"/brand-logos/opencode.svg"};function D4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:L.jsx("circle",{cx:"12",cy:"12",r:"7.5",strokeDasharray:"3 3"})})}function I4({provider:e,size:t=16,color:a,className:i=""}){const s=e?.toUpperCase?.()||"",c=R4[s];if(c)return L.jsx("img",{src:c,alt:"",width:t,height:t,className:i,style:{width:t,height:t,objectFit:"contain"},"aria-hidden":!0});const u=E4[s];return u?L.jsx(u,{size:t,className:i}):L.jsx(D4,{size:t,className:`text-oai-gray-400 dark:text-oai-gray-500 shrink-0 ${i}`})}let Id=null;async function A4(e=fetch){if(Id)return Id;const t=await e("/api/local-auth",{method:"GET",headers:{Accept:"application/json"},cache:"no-store"});if(!t.ok)throw new Error(`Local auth request failed with HTTP ${t.status}`);const a=await t.json().catch(()=>null),i=typeof a?.token=="string"?a.token.trim():"";if(!i)throw new Error("Local auth token missing from response");return Id=i,i}async function M4(e=fetch){return{"x-tokentracker-local-auth":await A4(e)}}const Fb="tokentracker-skills";async function Ba(e){const t=new URL(`/functions/${Fb}`,window.location.origin);if(e)for(const[s,c]of Object.entries(e))c!=null&&c!==""&&t.searchParams.set(s,String(c));const a=await fetch(t.toString(),{headers:{Accept:"application/json"},cache:"no-store"}),i=await a.json().catch(()=>null);if(!a.ok)throw new Error(i?.error||`Request failed with HTTP ${a.status}`);return i}async function ca(e){const t=await M4(),a=await fetch(`/functions/${Fb}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",...t},cache:"no-store",body:JSON.stringify(e)}),i=await a.json().catch(()=>null);if(!a.ok||i?.ok===!1)throw new Error(i?.error||`Request failed with HTTP ${a.status}`);return i}function L4(){return Ba({mode:"installed"})}function Y5(e={}){return Ba({mode:"discover",...e.force?{force:1}:{}})}function X5(e,t=0,a=20){return Ba({mode:"search",q:e,offset:t,limit:a})}function Z5(){return Ba({mode:"repos"})}function q5(e,t){return ca({action:"install",skill:e,targets:t})}function Q5(e){return ca({action:"uninstall",id:e})}function J5(e){return ca({action:"restore",id:e})}function eI(e,t){return ca({action:"set_targets",id:e,targets:t})}function tI(e,t){return ca({action:"import_local",directory:e,targets:t})}function nI(e,t){return ca({action:"delete_local",directory:e,targets:t||[]})}function rI(e){return ca({action:"add_repo",repo:e})}function aI(e,t){return ca({action:"remove_repo",owner:e,name:t})}function iI(e={}){return Ba({mode:"popular",...e.force?{force:1}:{}})}function oI(e={}){return Ba({mode:"updates",...e.force?{force:1}:{}})}function sI(e={}){return Ba({mode:"skill_usage",...e.force?{force:1}:{}})}const N4=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1");function j4(){const e=sk(),t=d4(),[a,i]=k.useState(!1),[s,c]=k.useState(""),[u,d]=k.useState(0),[p,f]=k.useState([]),g=k.useRef(null),v=k.useRef(null);k.useEffect(()=>{const I=D=>{(D.metaKey||D.ctrlKey)&&(D.key==="k"||D.key==="K")&&(D.preventDefault(),i(Z=>!Z))};return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[]),k.useEffect(()=>{if(!a)return;c(""),d(0);const I=requestAnimationFrame(()=>g.current?.focus());return N4&&!p.length&&L4().then(D=>f(D?.skills||[])).catch(()=>f([])),()=>cancelAnimationFrame(I)},[a,p.length]);const y=k.useMemo(()=>{const I=Qk().flatMap(B=>B.items.map(Z=>({kind:"page",id:`page:${Z.id}`,label:Z.label,sub:He("cmdk.group.pages"),Icon:Z.icon,run:()=>e(Z.to)}))),D=(p||[]).map(B=>({kind:"skill",id:`skill:${B.id||B.directory}`,label:B.name||B.directory,sub:B.repoOwner&&B.repoName?`${B.repoOwner}/${B.repoName}`:He("cmdk.group.skills"),provider:(B.targets||[])[0]||"claude",run:()=>e(`/skills?skill=${encodeURIComponent(B.directory||B.id)}`)}));return[...I,...D]},[e,p]),_=k.useMemo(()=>{const I=s.trim().toLowerCase();return I?y.filter(D=>D.label.toLowerCase().includes(I)||String(D.sub||"").toLowerCase().includes(I)):y},[y,s]);k.useEffect(()=>{u>=_.length&&d(_.length?_.length-1:0)},[u,_.length]),k.useEffect(()=>{if(!a)return;v.current?.querySelector(`[data-cmdk-index="${u}"]`)?.scrollIntoView({block:"nearest"})},[u,a]);const w=k.useCallback(()=>i(!1),[]),P=k.useCallback(I=>{I&&(w(),I.run())},[w]),S=I=>{I.key==="ArrowDown"?(I.preventDefault(),d(D=>Math.min(D+1,Math.max(0,_.length-1)))):I.key==="ArrowUp"?(I.preventDefault(),d(D=>Math.max(D-1,0))):I.key==="Enter"?(I.preventDefault(),P(_[u])):I.key==="Escape"&&(I.preventDefault(),w())},N={duration:t?0:.12},j=t?{duration:0}:{type:"spring",stiffness:460,damping:34,mass:.6};return L.jsx(rR,{children:a?L.jsxs(vy.div,{className:"fixed inset-0 z-[120] flex items-start justify-center px-4 pt-[16vh]",initial:t?!1:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:N,children:[L.jsx("button",{type:"button","aria-label":He("cmdk.close"),onClick:w,className:"absolute inset-0 cursor-default bg-oai-black/40"}),L.jsxs(vy.div,{role:"dialog","aria-modal":"true","aria-label":He("cmdk.open_aria"),initial:t?!1:{opacity:0,y:-8,scale:.985},animate:{opacity:1,y:0,scale:1},exit:t?{opacity:0}:{opacity:0,y:-8,scale:.985},transition:j,className:"relative w-full max-w-xl overflow-hidden rounded-2xl border border-oai-gray-200 bg-oai-white shadow-2xl dark:border-oai-gray-800 dark:bg-oai-gray-950",children:[L.jsxs("div",{className:"flex items-center gap-2.5 border-b border-oai-gray-200 px-4 dark:border-oai-gray-800",children:[L.jsx(XS,{className:"h-4 w-4 shrink-0 text-oai-gray-400","aria-hidden":!0}),L.jsx("input",{ref:g,type:"text",value:s,onChange:I=>{c(I.target.value),d(0)},onKeyDown:S,"aria-label":He("cmdk.placeholder"),"aria-controls":"cmdk-listbox","aria-activedescendant":_[u]?`cmdk-opt-${u}`:void 0,role:"combobox","aria-expanded":"true",placeholder:He("cmdk.placeholder"),className:"h-12 w-full bg-transparent text-sm text-oai-black placeholder:text-oai-gray-400 focus:outline-none dark:text-white"})]}),L.jsx("div",{ref:v,id:"cmdk-listbox",role:"listbox",className:"max-h-[min(56vh,22rem)] overflow-y-auto p-1.5",children:_.length===0?L.jsx("div",{className:"px-3 py-8 text-center text-sm text-oai-gray-500 dark:text-oai-gray-400",children:He("cmdk.empty")}):_.map((I,D)=>{const B=D===u;return L.jsxs("button",{type:"button",role:"option",id:`cmdk-opt-${D}`,"data-cmdk-index":D,"aria-selected":B,onMouseMove:()=>d(D),onClick:()=>P(I),className:Tn("flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left text-sm transition-colors",B?"bg-oai-gray-100 text-oai-black dark:bg-oai-gray-800/70 dark:text-white":"text-oai-gray-700 dark:text-oai-gray-200"),children:[L.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center text-oai-gray-500 dark:text-oai-gray-400",children:I.kind==="skill"?L.jsx(I4,{provider:I.provider,size:16}):L.jsx(I.Icon,{className:"h-4 w-4","aria-hidden":!0})}),L.jsx("span",{className:"min-w-0 flex-1 truncate font-medium",children:I.label}),L.jsx("span",{className:"shrink-0 truncate text-xs text-oai-gray-400 dark:text-oai-gray-500",children:I.sub}),B?L.jsx(AS,{className:"h-3.5 w-3.5 shrink-0 text-oai-gray-400","aria-hidden":!0}):null]},I.id)})})]})]}):null})}function yc(){return typeof window<"u"}function Cf(e){return Tf(e)?(e.nodeName||"").toLowerCase():"#document"}function aa(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function O4(e){var t;return(t=(Tf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tf(e){return yc()?e instanceof Node||e instanceof aa(e).Node:!1}function Ub(e){return yc()?e instanceof Element||e instanceof aa(e).Element:!1}function kc(e){return yc()?e instanceof HTMLElement||e instanceof aa(e).HTMLElement:!1}function fh(e){return!yc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof aa(e).ShadowRoot}function Bb(e){const{overflow:t,overflowX:a,overflowY:i,display:s}=Wb(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+a)&&s!=="inline"&&s!=="contents"}function lI(e){return/^(table|td|th)$/.test(Cf(e))}function z4(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const V4=/transform|translate|scale|rotate|perspective|filter/,F4=/paint|layout|strict|content/,Ra=e=>!!e&&e!=="none";let Ad;function U4(e){const t=Ub(e)?Wb(e):e;return Ra(t.transform)||Ra(t.translate)||Ra(t.scale)||Ra(t.rotate)||Ra(t.perspective)||!B4()&&(Ra(t.backdropFilter)||Ra(t.filter))||V4.test(t.willChange||"")||F4.test(t.contain||"")}function cI(e){let t=ph(e);for(;kc(t)&&!Hb(t);){if(U4(t))return t;if(z4(t))return null;t=ph(t)}return null}function B4(){return Ad==null&&(Ad=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ad}function Hb(e){return/^(html|body|#document)$/.test(Cf(e))}function Wb(e){return aa(e).getComputedStyle(e)}function uI(e){return Ub(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ph(e){if(Cf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fh(e)&&e.host||O4(e);return fh(t)?t.host:t}function $b(e){const t=ph(e);return Hb(t)?e.ownerDocument?e.ownerDocument.body:e.body:kc(t)&&Bb(t)?t:$b(t)}function yy(e,t,a){var i;t===void 0&&(t=[]),a===void 0&&(a=!0);const s=$b(e),c=s===((i=e.ownerDocument)==null?void 0:i.body),u=aa(s);if(c){const d=H4(u);return t.concat(u,u.visualViewport||[],Bb(s)?s:[],d&&a?yy(d):[])}else return t.concat(s,yy(s,[],a))}function H4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ci(e){return e?.ownerDocument||document}const ky={};function ss(e,t){const a=k.useRef(ky);return a.current===ky&&(a.current=e(t)),a}const Md=Ch[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],W4=Md&&Md!==k.useLayoutEffect?Md:e=>e();function rn(e){const t=ss($4).current;return t.next=e,W4(t.effect),t.trampoline}function $4(){const e={next:void 0,callback:G4,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function G4(){}let by=0;function Gb(e){return by+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${by}`}const K4=[];function Kb(e){k.useEffect(e,K4)}const So=0;class Xo{static create(){return new Xo}currentId=So;start(t,a){this.clear(),this.currentId=setTimeout(()=>{this.currentId=So,a()},t)}isStarted(){return this.currentId!==So}clear=()=>{this.currentId!==So&&(clearTimeout(this.currentId),this.currentId=So)};disposeEffect=()=>this.clear}function dI(){const e=ss(Xo.create).current;return Kb(e.disposeEffect),e}const Ni=typeof navigator<"u",Ld=Z4(),Yb=Q4(),Xb=q4(),hI=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),fI=Ld.platform==="MacIntel"&&Ld.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Ld.platform),Y4=Ni&&/apple/i.test(navigator.vendor),pI=Ni&&/android/i.test(Yb)||/android/i.test(Xb);Ni&&Yb.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const X4=Xb.includes("jsdom/");function Z4(){if(!Ni)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function q4(){if(!Ni)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:a})=>`${t}/${a}`).join(" "):navigator.userAgent}function Q4(){if(!Ni)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const _y="data-base-ui-focusable",mI="active",gI="selected",J4="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",vI="ArrowLeft",yI="ArrowRight",kI="ArrowUp",bI="ArrowDown";function Zo(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function za(e,t){if(!e||!t)return!1;const a=t.getRootNode?.();if(e.contains(t))return!0;if(a&&fh(a)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function mh(e){return"composedPath"in e?e.composedPath()[0]:e.target}function _I(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const a=e;return a.target!=null&&t.contains(a.target)}function wI(e){return e.matches("html,body")}function bc(e){return e?.ownerDocument||document}function eD(e){return kc(e)&&e.matches(J4)}function xI(e){return e?e.getAttribute("role")==="combobox"&&eD(e):!1}function gh(e){if(!e||X4)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function PI(e){return e?e.hasAttribute(_y)?e:e.querySelector(`[${_y}]`)||e:null}function ls(e,...t){const a=new URL("https://base-ui.com/production-error");return a.searchParams.set("code",e.toString()),t.forEach(i=>a.searchParams.append("args[]",i)),`Base UI error #${e}; visit ${a} for the full message.`}var tD=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ac=tD.join(","),Zb=typeof Element>"u",Ii=Zb?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ic=!Zb&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},oc=function(t,a){var i;a===void 0&&(a=!0);var s=t==null||(i=t.getAttribute)===null||i===void 0?void 0:i.call(t,"inert"),c=s===""||s==="true",u=c||a&&t&&(typeof t.closest=="function"?t.closest("[inert]"):oc(t.parentNode));return u},nD=function(t){var a,i=t==null||(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"contenteditable");return i===""||i==="true"},qb=function(t,a,i){if(oc(t))return[];var s=Array.prototype.slice.apply(t.querySelectorAll(ac));return a&&Ii.call(t,ac)&&s.unshift(t),s=s.filter(i),s},sc=function(t,a,i){for(var s=[],c=Array.from(t);c.length;){var u=c.shift();if(!oc(u,!1))if(u.tagName==="SLOT"){var d=u.assignedElements(),p=d.length?d:u.children,f=sc(p,!0,i);i.flatten?s.push.apply(s,f):s.push({scopeParent:u,candidates:f})}else{var g=Ii.call(u,ac);g&&i.filter(u)&&(a||!t.includes(u))&&s.push(u);var v=u.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(u),y=!oc(v,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(u));if(v&&y){var _=sc(v===!0?u.children:v.children,!0,i);i.flatten?s.push.apply(s,_):s.push({scopeParent:u,candidates:_})}else c.unshift.apply(c,u.children)}}return s},Qb=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Jb=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||nD(t))&&!Qb(t)?0:t.tabIndex},rD=function(t,a){var i=Jb(t);return i<0&&a&&!Qb(t)?0:i},aD=function(t,a){return t.tabIndex===a.tabIndex?t.documentOrder-a.documentOrder:t.tabIndex-a.tabIndex},e_=function(t){return t.tagName==="INPUT"},iD=function(t){return e_(t)&&t.type==="hidden"},oD=function(t){var a=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(i){return i.tagName==="SUMMARY"});return a},sD=function(t,a){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===a)return t[i]},lD=function(t){if(!t.name)return!0;var a=t.form||ic(t),i=function(d){return a.querySelectorAll('input[type="radio"][name="'+d+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=i(window.CSS.escape(t.name));else try{s=i(t.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var c=sD(s,t.form);return!c||c===t},cD=function(t){return e_(t)&&t.type==="radio"},uD=function(t){return cD(t)&&!lD(t)},dD=function(t){var a,i=t&&ic(t),s=(a=i)===null||a===void 0?void 0:a.host,c=!1;if(i&&i!==t){var u,d,p;for(c=!!((u=s)!==null&&u!==void 0&&(d=u.ownerDocument)!==null&&d!==void 0&&d.contains(s)||t!=null&&(p=t.ownerDocument)!==null&&p!==void 0&&p.contains(t));!c&&s;){var f,g,v;i=ic(s),s=(f=i)===null||f===void 0?void 0:f.host,c=!!((g=s)!==null&&g!==void 0&&(v=g.ownerDocument)!==null&&v!==void 0&&v.contains(s))}}return c},wy=function(t){var a=t.getBoundingClientRect(),i=a.width,s=a.height;return i===0&&s===0},hD=function(t,a){var i=a.displayCheck,s=a.getShadowRoot;if(i==="full-native"&&"checkVisibility"in t){var c=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!c}if(getComputedStyle(t).visibility==="hidden")return!0;var u=Ii.call(t,"details>summary:first-of-type"),d=u?t.parentElement:t;if(Ii.call(d,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="full-native"||i==="legacy-full"){if(typeof s=="function"){for(var p=t;t;){var f=t.parentElement,g=ic(t);if(f&&!f.shadowRoot&&s(f)===!0)return wy(t);t.assignedSlot?t=t.assignedSlot:!f&&g!==t.ownerDocument?t=g.host:t=f}t=p}if(dD(t))return!t.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return wy(t);return!1},fD=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var a=t.parentElement;a;){if(a.tagName==="FIELDSET"&&a.disabled){for(var i=0;i<a.children.length;i++){var s=a.children.item(i);if(s.tagName==="LEGEND")return Ii.call(a,"fieldset[disabled] *")?!0:!s.contains(t)}return!0}a=a.parentElement}return!1},vh=function(t,a){return!(a.disabled||iD(a)||hD(a,t)||oD(a)||fD(a))},yh=function(t,a){return!(uD(a)||Jb(a)<0||!vh(t,a))},pD=function(t){var a=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(a)||a>=0)},t_=function(t){var a=[],i=[];return t.forEach(function(s,c){var u=!!s.scopeParent,d=u?s.scopeParent:s,p=rD(d,u),f=u?t_(s.candidates):d;p===0?u?a.push.apply(a,f):a.push(d):i.push({documentOrder:c,tabIndex:p,item:s,isScope:u,content:f})}),i.sort(aD).reduce(function(s,c){return c.isScope?s.push.apply(s,c.content):s.push(c.content),s},[]).concat(a)},Ef=function(t,a){a=a||{};var i;return a.getShadowRoot?i=sc([t],a.includeContainer,{filter:yh.bind(null,a),flatten:!1,getShadowRoot:a.getShadowRoot,shadowRootFilter:pD}):i=qb(t,a.includeContainer,yh.bind(null,a)),t_(i)},SI=function(t,a){a=a||{};var i;return a.getShadowRoot?i=sc([t],a.includeContainer,{filter:vh.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):i=qb(t,a.includeContainer,vh.bind(null,a)),i},CI=function(t,a){if(a=a||{},!t)throw new Error("No node provided");return Ii.call(t,ac)===!1?!1:yh(a,t)};const Rf=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function n_(e,t){const a=Ef(e,Rf()),i=a.length;if(i===0)return;const s=Zo(bc(e)),c=a.indexOf(s),u=c===-1?t===1?0:i-1:c+t;return a[u]}function mD(e){return n_(bc(e).body,1)||e}function gD(e){return n_(bc(e).body,-1)||e}function r_(e,t){if(!e)return null;const a=Ef(bc(e).body,Rf()),i=a.length;if(i===0)return null;const s=a.indexOf(e);if(s===-1)return null;const c=(s+t+i)%i;return a[c]}function TI(e){return r_(e,1)}function EI(e){return r_(e,-1)}function Nd(e,t){const a=t||e.currentTarget,i=e.relatedTarget;return!i||!za(a,i)}function vD(e){Ef(e,Rf()).forEach(a=>{a.dataset.tabindex=a.getAttribute("tabindex")||"",a.setAttribute("tabindex","-1")})}function xy(e){e.querySelectorAll("[data-tabindex]").forEach(a=>{const i=a.dataset.tabindex;delete a.dataset.tabindex,i?a.setAttribute("tabindex",i):a.removeAttribute("tabindex")})}const Df=k.createContext(void 0);function If(){const e=k.useContext(Df);if(!e)throw new Error(ls(73));return e}function jd(e,t){if(typeof e=="string")return{description:e};if(typeof e=="function"){const a=e(t);return typeof a=="string"?{description:a}:a}return e}const yD=function(t){const{children:a,timeout:i=5e3,limit:s=3,toastManager:c}=t,[u,d]=k.useState([]),[p,f]=k.useState(!1),[g,v]=k.useState(!1),[y,_]=k.useState(null);u.length===0&&(p&&f(!1),g&&v(!1));const w=p||g,P=k.useRef(new Map),S=k.useRef(null),N=k.useRef(!0),j=k.useRef(!1);function I(q){const ae=Zo(Ci(S.current));if(!S.current||!za(S.current,ae)||!gh(ae))return;const ie=u.findIndex(V=>V.id===q);let Q=null,ne=ie+1;for(;ne<u.length;){if(u[ne].transitionStatus!=="ending"){Q=u[ne];break}ne+=1}if(!Q)for(ne=ie-1;ne>=0;){if(u[ne].transitionStatus!=="ending"){Q=u[ne];break}ne-=1}Q?Q.ref?.current?.focus():y?.focus({preventScroll:!0})}const D=rn(()=>{j.current||(j.current=!0,P.current.forEach(q=>{if(q.timeout){q.timeout.clear();const ae=Date.now()-q.start,ie=q.delay-ae;q.remaining=ie>0?ie:0}}))}),B=rn(()=>{j.current&&(j.current=!1,P.current.forEach((q,ae)=>{q.remaining=q.remaining>0?q.remaining:q.delay,q.timeout??=Xo.create(),q.timeout.start(q.remaining,()=>{P.current.delete(ae),q.callback()}),q.start=Date.now()}))}),Z=rn(q=>{d(Q=>{const ne=Q.map(W=>W.id===q?{...W,transitionStatus:"ending",height:0}:W),V=ne.filter(W=>W.transitionStatus!=="ending");return ne.map(W=>{if(W.transitionStatus==="ending")return W;const O=V.indexOf(W)>=s;return{...W,limited:O}})});const ae=P.current.get(q);ae&&ae.timeout&&(ae.timeout.clear(),P.current.delete(q)),u.find(Q=>Q.id===q)?.onClose?.(),I(q),u.length===1&&(f(!1),v(!1))}),oe=rn(q=>{d(ie=>ie.filter(Q=>Q.id!==q)),u.find(ie=>ie.id===q)?.onRemove?.()}),x=rn((q,ae,ie)=>{const Q=Date.now(),ne=N.current&&!p&&!g,V=ne?Xo.create():void 0;V?.start(ae,()=>{P.current.delete(q),ie()}),P.current.set(q,{timeout:V,start:ne?Q:0,delay:ae,remaining:ae,callback:ie})}),ee=rn(q=>{const ae=q.id||Gb("toast"),ie={...q,id:ae,transitionStatus:"starting"};d(ne=>{const V=[ie,...ne],W=V.filter(O=>O.transitionStatus!=="ending");if(W.length>s){const O=W.length-s,E=W.slice(-O);return V.map($=>E.some(de=>de.id===$.id)?{...$,limited:!0}:{...$,limited:!1})}return V.map(O=>({...O,limited:!1}))});const Q=ie.timeout??i;return ie.type!=="loading"&&Q>0&&x(ae,Q,()=>Z(ae)),(p||g||!N.current)&&D(),ae}),Y=rn((q,ae)=>{const ie=u.find(fe=>fe.id===q)??null,Q=ie?{...ie,...ae}:null;if(Fa.flushSync(()=>{d(fe=>fe.map(he=>he.id===q?{...he,...ae}:he))}),!Q)return;const ne=Q.timeout??i,V=ie?.timeout??i,W=Object.hasOwn(ae,"timeout"),O=Q.transitionStatus!=="ending"&&Q.type!=="loading"&&ne>0,E=P.current.has(q),$=V!==ne,de=ie?.type==="loading";if(!O&&E){P.current.get(q)?.timeout?.clear(),P.current.delete(q);return}if(O&&(!E||$||W||de)){const fe=P.current.get(q);fe&&(fe.timeout?.clear(),P.current.delete(q)),x(q,ne,()=>Z(q)),(p||g||!N.current)&&D()}}),ue=rn((q,ae)=>{const ie=jd(ae.loading),Q=ee({...ie,type:"loading"}),ne=q.then(V=>{const W=jd(ae.success,V);return Y(Q,{...W,type:"success",timeout:W.timeout}),V}).catch(V=>{const W=jd(ae.error,V);return Y(Q,{...W,type:"error",timeout:W.timeout}),Promise.reject(V)});return{}.hasOwnProperty.call(ae,"setPromise")&&ae.setPromise(ne),ne});k.useEffect(function(){return c?c[" subscribe"](({action:ie,options:Q})=>{const ne=Q.id;ie==="promise"&&Q.promise?ue(Q.promise,Q):ie==="update"&&ne?Y(ne,Q):ie==="close"&&ne?Z(ne):ee(Q)}):void 0},[ee,Y,x,i,c,ue,Z]);const se=k.useMemo(()=>({toasts:u,setToasts:d,hovering:p,setHovering:f,focused:g,setFocused:v,expanded:w,add:ee,close:Z,remove:oe,update:Y,promise:ue,pauseTimers:D,resumeTimers:B,prevFocusElement:y,setPrevFocusElement:_,viewportRef:S,scheduleTimer:x,windowFocusedRef:N}),[ee,Z,g,p,w,D,y,ue,oe,B,x,u,Y]);return L.jsx(Df.Provider,{value:se,children:a})},a_={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},i_={...a_,position:"fixed",top:0,left:0},RI={...a_,position:"absolute"},kD=()=>{},cs=typeof document<"u"?k.useLayoutEffect:kD,Vo=k.forwardRef(function(t,a){const[i,s]=k.useState();cs(()=>{Y4&&s("button")},[]);const c={tabIndex:0,role:i};return L.jsx("span",{...t,ref:a,style:i_,"aria-hidden":i?void 0:!0,...c,"data-base-ui-focus-guard":""})}),bD=k.createContext(void 0);function Py(e,t,a,i){const s=ss(o_).current;return wD(s,e,t,a,i)&&s_(s,[e,t,a,i]),s.callback}function _D(e){const t=ss(o_).current;return xD(t,e)&&s_(t,e),t.callback}function o_(){return{callback:null,cleanup:null,refs:[]}}function wD(e,t,a,i,s){return e.refs[0]!==t||e.refs[1]!==a||e.refs[2]!==i||e.refs[3]!==s}function xD(e,t){return e.refs.length!==t.length||e.refs.some((a,i)=>a!==t[i])}function s_(e,t){if(e.refs=t,t.every(a=>a==null)){e.callback=null;return}e.callback=a=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),a!=null){const i=Array(t.length).fill(null);for(let s=0;s<t.length;s+=1){const c=t[s];if(c!=null)switch(typeof c){case"function":{const u=c(a);typeof u=="function"&&(i[s]=u);break}case"object":{c.current=a;break}}}e.cleanup=()=>{for(let s=0;s<t.length;s+=1){const c=t[s];if(c!=null)switch(typeof c){case"function":{const u=i[s];typeof u=="function"?u():c(null);break}case"object":{c.current=null;break}}}}}}}const PD=parseInt(k.version,10);function l_(e){return PD>=e}function Sy(e){if(!k.isValidElement(e))return null;const t=e,a=t.props;return(l_(19)?a?.ref:t.ref)??null}function kh(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function SD(e,t){const a={};for(const i in e){const s=e[i];if(t?.hasOwnProperty(i)){const c=t[i](s);c!=null&&Object.assign(a,c);continue}s===!0?a[`data-${i.toLowerCase()}`]="":s&&(a[`data-${i.toLowerCase()}`]=s.toString())}return a}function CD(e,t){return typeof e=="function"?e(t):e}function TD(e,t){return typeof e=="function"?e(t):e}const Fo={};function c_(e,t,a,i,s){let c={...bh(e,Fo)};return t&&(c=Do(c,t)),a&&(c=Do(c,a)),i&&(c=Do(c,i)),s&&(c=Do(c,s)),c}function ED(e){if(e.length===0)return Fo;if(e.length===1)return bh(e[0],Fo);let t={...bh(e[0],Fo)};for(let a=1;a<e.length;a+=1)t=Do(t,e[a]);return t}function Do(e,t){return u_(t)?t(e):RD(e,t)}function RD(e,t){if(!t)return e;for(const a in t){const i=t[a];switch(a){case"style":{e[a]=kh(e.style,i);break}case"className":{e[a]=d_(e.className,i);break}default:DD(a,i)?e[a]=ID(e[a],i):e[a]=i}}return e}function DD(e,t){const a=e.charCodeAt(0),i=e.charCodeAt(1),s=e.charCodeAt(2);return a===111&&i===110&&s>=65&&s<=90&&(typeof t=="function"||typeof t>"u")}function u_(e){return typeof e=="function"}function bh(e,t){return u_(e)?e(t):e??Fo}function ID(e,t){return t?e?a=>{if(AD(a)){const s=a;_h(s);const c=t(s);return s.baseUIHandlerPrevented||e?.(s),c}const i=t(a);return e?.(a),i}:t:e}function _h(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function d_(e,t){return t?e?t+" "+e:t:e}function AD(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function DI(){}const II=Object.freeze([]),Jr=Object.freeze({}),AI=500,MI={style:{transition:"none"}},LI="data-base-ui-click-trigger",NI={fallbackAxisSide:"none"},jI={fallbackAxisSide:"end"},MD={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function us(e,t,a={}){const i=t.render,s=LD(t,a);if(a.enabled===!1)return null;const c=a.state??Jr;return ND(e,i,s,c)}function LD(e,t={}){const{className:a,style:i,render:s}=e,{state:c=Jr,ref:u,props:d,stateAttributesMapping:p,enabled:f=!0}=t,g=f?CD(a,c):void 0,v=f?TD(i,c):void 0,y=f?SD(c,p):Jr,_=f?kh(y,Array.isArray(d)?ED(d):d)??Jr:Jr;return typeof document<"u"&&(f?Array.isArray(u)?_.ref=_D([_.ref,Sy(s),...u]):_.ref=Py(_.ref,Sy(s),u):Py(null,null)),f?(g!==void 0&&(_.className=d_(_.className,g)),v!==void 0&&(_.style=kh(_.style,v)),_):Jr}function ND(e,t,a,i){if(t){if(typeof t=="function")return t(a,i);const s=c_(a,t.props);return s.ref=a.ref,k.cloneElement(t,s)}if(e&&typeof e=="string")return jD(e,a);throw new Error(ls(8))}function jD(e,t){return e==="button"?k.createElement("button",{type:"button",...t,key:t.key}):e==="img"?k.createElement("img",{alt:"",...t,key:t.key}):k.createElement(e,t)}let OD=(function(e){return e.frontmostHeight="--toast-frontmost-height",e})({});const zD=k.forwardRef(function(t,a){const{render:i,className:s,children:c,...u}=t,{toasts:d,pauseTimers:p,resumeTimers:f,setHovering:g,setFocused:v,viewportRef:y,windowFocusedRef:_,prevFocusElement:w,setPrevFocusElement:P,expanded:S,focused:N}=If(),j=k.useRef(!1),I=k.useRef(!1),D=d.length,B=d[0]?.height??0,Z=k.useMemo(()=>d.some(V=>V.transitionStatus==="ending"),[d]);k.useEffect(()=>{if(!y.current)return;function V(O){D!==0&&O.key==="F6"&&O.target!==y.current&&(O.preventDefault(),P(Zo(Ci(y.current))),y.current?.focus({preventScroll:!0}),p(),v(!0))}const W=aa(y.current);return W.addEventListener("keydown",V),()=>{W.removeEventListener("keydown",V)}},[p,v,P,D,y]),k.useEffect(()=>{if(!y.current||!D)return;const V=aa(y.current);function W(E){E.target===V&&(_.current=!1,p())}function O(E){if(E.relatedTarget||E.target===V)return;const $=mh(E),de=Zo(Ci(y.current));(!za(y.current,$)||!gh(de))&&f(),setTimeout(()=>{_.current=!0})}return V.addEventListener("blur",W,!0),V.addEventListener("focus",O,!0),()=>{V.removeEventListener("blur",W,!0),V.removeEventListener("focus",O,!0)}},[p,f,y,_,v,D]),k.useEffect(()=>{const V=y.current;if(!V||D===0)return;const W=Ci(V);function O(E){if(E.pointerType!=="touch")return;const $=mh(E);za(V,$)||(f(),g(!1),v(!1))}return W.addEventListener("pointerdown",O,!0),()=>{W.removeEventListener("pointerdown",O,!0)}},[D,f,v,g,y]);function oe(V){y.current&&(j.current=!0,V.relatedTarget===y.current?d[0]?.ref?.current?.focus():w?.focus({preventScroll:!0}))}function x(V){V.key==="Tab"&&V.shiftKey&&V.target===y.current&&(V.preventDefault(),w?.focus({preventScroll:!0}),f())}k.useEffect(()=>{!_.current||Z||!I.current||(f(),g(!1),I.current=!1)},[Z,f,g,_]);function ee(){p(),g(!0),I.current=!1}function Y(){d.some(V=>V.transitionStatus==="ending")?I.current=!0:(f(),g(!1))}function ue(){if(j.current){j.current=!1;return}N||gh(Ci(y.current).activeElement)&&(v(!0),p())}function se(V){!N||za(y.current,V.relatedTarget)||(v(!1),f())}const q={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:ee,onMouseMove:ee,onMouseLeave:Y,onFocus:ue,onBlur:se,onKeyDown:x,onClick:ue},ae=k.useMemo(()=>({expanded:S}),[S]),ie=us("div",t,{ref:[a,y],state:ae,props:[q,{style:{[OD.frontmostHeight]:B?`${B}px`:void 0}},u,{children:L.jsxs(k.Fragment,{children:[D>0&&w&&L.jsx(Vo,{onFocus:oe}),c,D>0&&w&&L.jsx(Vo,{onFocus:oe})]})}]}),Q=k.useMemo(()=>({viewportRef:y}),[y]),ne=k.useMemo(()=>d.filter(V=>V.priority==="high"),[d]);return L.jsxs(bD.Provider,{value:Q,children:[D>0&&w&&L.jsx(Vo,{onFocus:oe}),ie,!N&&ne.length>0&&L.jsx("div",{style:i_,children:ne.map(V=>L.jsxs("div",{role:"alert","aria-atomic":!0,children:[L.jsx("div",{children:V.title}),L.jsx("div",{children:V.description})]},V.id))})]})});function VD(e){return l_(19)?e:e?"true":void 0}const h_=k.createContext(void 0);function wh(){const e=k.useContext(h_);if(!e)throw new Error(ls(66));return e}let Af=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const FD={[Af.startingStyle]:""},UD={[Af.endingStyle]:""},BD={transitionStatus(e){return e==="starting"?FD:e==="ending"?UD:null}},Tl=null;class HD{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const a=this.callbacks,i=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,i>0)for(let s=0;s<a.length;s+=1)a[s]?.(t)};request(t){const a=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),a}cancel(t){const a=t-this.startId;a<0||a>=this.callbacks.length||(this.callbacks[a]=null,this.callbacksCount-=1)}}const El=new HD;class Mf{static create(){return new Mf}static request(t){return El.request(t)}static cancel(t){return El.cancel(t)}currentId=Tl;request(t){this.cancel(),this.currentId=El.request(()=>{this.currentId=Tl,t()})}cancel=()=>{this.currentId!==Tl&&(El.cancel(this.currentId),this.currentId=Tl)};disposeEffect=()=>this.cancel}function WD(){const e=ss(Mf.create).current;return Kb(e.disposeEffect),e}function $D(e){return e==null?e:"current"in e?e.current:e}function GD(e,t=!1,a=!0){const i=WD();return rn((s,c=null)=>{i.cancel();function u(){Fa.flushSync(s)}const d=$D(e);if(d==null)return;const p=d;if(typeof p.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)s();else{let f=function(){const v=Af.startingStyle;if(!p.hasAttribute(v)){i.request(g);return}const y=new MutationObserver(()=>{p.hasAttribute(v)||(y.disconnect(),g())});y.observe(p,{attributes:!0,attributeFilter:[v]}),c?.addEventListener("abort",()=>y.disconnect(),{once:!0})},g=function(){Promise.all(p.getAnimations().map(v=>v.finished)).then(()=>{c?.aborted||u()}).catch(()=>{const v=p.getAnimations();if(a){if(c?.aborted)return;u()}else v.length>0&&v.some(y=>y.pending||y.playState!=="finished")&&g()})};if(t){f();return}i.request(g)}})}function KD(e){const{enabled:t=!0,open:a,ref:i,onComplete:s}=e,c=rn(s),u=GD(i,a,!1);k.useEffect(()=>{if(!t)return;const d=new AbortController;return u(c,d.signal),()=>{d.abort()}},[t,a,c,u])}let Da=(function(e){return e.index="--toast-index",e.offsetY="--toast-offset-y",e.height="--toast-height",e.swipeMovementX="--toast-swipe-movement-x",e.swipeMovementY="--toast-swipe-movement-y",e})({});const YD={...BD,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},Co=40,XD=10,Xr=.5,ZD=1;function Cy(e,t,a){switch(e){case"up":return-a;case"down":return a;case"left":return-t;case"right":return t;default:return 0}}function qD(e){const a=window.getComputedStyle(e).transform;let i=0,s=0,c=1;if(a&&a!=="none"){const u=a.match(/matrix(?:3d)?\(([^)]+)\)/);if(u){const d=u[1].split(", ").map(parseFloat);d.length===6?(i=d[4],s=d[5],c=Math.sqrt(d[0]*d[0]+d[1]*d[1])):d.length===16&&(i=d[12],s=d[13],c=d[0])}}return{x:i,y:s,scale:c}}const QD=k.forwardRef(function(t,a){const{toast:i,render:s,className:c,swipeDirection:u=["down","right"],...d}=t,p=i.positionerProps?.anchor!==void 0;let f=[];p||(f=Array.isArray(u)?u:[u]);const g=f.length>0,{toasts:v,focused:y,close:_,remove:w,setToasts:P,pauseTimers:S,expanded:N,setHovering:j}=If(),[I,D]=k.useState(void 0),[B,Z]=k.useState(!1),[oe,x]=k.useState(!1),[ee,Y]=k.useState(!1),[ue,se]=k.useState({x:0,y:0}),[q,ae]=k.useState({x:0,y:0,scale:1}),[ie,Q]=k.useState(),[ne,V]=k.useState(),[W,O]=k.useState(null),E=k.useRef(null),$=k.useRef({x:0,y:0}),de=k.useRef({x:0,y:0,scale:1}),fe=k.useRef(void 0),he=k.useRef(0),pe=k.useRef(!1),De=k.useRef({x:0,y:0}),je=k.useRef(!1),Ce=k.useMemo(()=>v.indexOf(i),[i,v]),ut=k.useMemo(()=>v.filter(Le=>Le.transitionStatus!=="ending").indexOf(i),[i,v]),an=k.useMemo(()=>v.slice(0,v.indexOf(i)).reduce((Le,Ae)=>Le+(Ae.height||0),0),[v,i]);KD({open:i.transitionStatus!=="ending",ref:E,onComplete(){i.transitionStatus==="ending"&&w(i.id)}});const Xt=rn((Le=!1)=>{const Ae=E.current;if(!Ae)return;const Ze=Ae.style.height;Ae.style.height="auto";const ot=Ae.offsetHeight;Ae.style.height=Ze;function mt(){P(Je=>Je.map(Ke=>Ke.id===i.id?{...Ke,ref:E,height:ot,transitionStatus:void 0}:Ke))}Le?Fa.flushSync(mt):mt()});cs(Xt,[Xt]);function qe(Le,Ae){let Ze=Le,ot=Ae;return!f.includes("left")&&!f.includes("right")?Ze=Le>0?Le**Xr:-(Math.abs(Le)**Xr):(!f.includes("right")&&Le>0&&(Ze=Le**Xr),!f.includes("left")&&Le<0&&(Ze=-(Math.abs(Le)**Xr))),!f.includes("up")&&!f.includes("down")?ot=Ae>0?Ae**Xr:-(Math.abs(Ae)**Xr):(!f.includes("down")&&Ae>0&&(ot=Ae**Xr),!f.includes("up")&&Ae<0&&(ot=-(Math.abs(Ae)**Xr))),{x:Ze,y:ot}}function Et(Le){if(Le.button!==0)return;Le.pointerType==="touch"&&S();const Ae=mh(Le.nativeEvent);if(!(Ae&&Ae.closest('button,a,input,textarea,[role="button"],[data-swipe-ignore]'))){if(pe.current=!1,fe.current=void 0,he.current=0,$.current={x:Le.clientX,y:Le.clientY},De.current=$.current,E.current){const ot=qD(E.current);de.current=ot,ae(ot),se({x:ot.x,y:ot.y})}j(!0),Z(!0),x(!1),O(null),je.current=!0,E.current?.setPointerCapture(Le.pointerId)}}function ua(Le){if(!B)return;Le.preventDefault(),je.current&&($.current={x:Le.clientX,y:Le.clientY},je.current=!1);const{clientY:Ae,clientX:Ze,movementX:ot,movementY:mt}=Le;(mt<0&&Ae>De.current.y||mt>0&&Ae<De.current.y)&&(De.current={x:De.current.x,y:Ae}),(ot<0&&Ze>De.current.x||ot>0&&Ze<De.current.x)&&(De.current={x:Ze,y:De.current.y});const Je=Ze-$.current.x,Ke=Ae-$.current.y,or=Ae-De.current.y,ji=Ze-De.current.x;if(!oe&&Math.sqrt(Je*Je+Ke*Ke)>=ZD&&(x(!0),W===null)){const Rn=f.includes("left")||f.includes("right"),ha=f.includes("up")||f.includes("down");if(Rn&&ha){const wr=Math.abs(Je),sn=Math.abs(Ke);O(wr>sn?"horizontal":"vertical")}}let Pt;if(!fe.current)W==="vertical"?Ke>0?Pt="down":Ke<0&&(Pt="up"):W==="horizontal"?Je>0?Pt="right":Je<0&&(Pt="left"):Math.abs(Je)>=Math.abs(Ke)?Pt=Je>0?"right":"left":Pt=Ke>0?"down":"up",Pt&&f.includes(Pt)&&(fe.current=Pt,he.current=Cy(Pt,Je,Ke),D(Pt));else{const Gn=fe.current,Rn=Cy(Gn,ji,or);Rn>Co?(pe.current=!1,D(Gn)):!(f.includes("left")&&f.includes("right"))&&!(f.includes("up")&&f.includes("down"))&&he.current-Rn>=XD&&(pe.current=!0)}const sr=qe(Je,Ke);let Ht=de.current.x,$n=de.current.y;W==="horizontal"?(f.includes("left")||f.includes("right"))&&(Ht+=sr.x):(W==="vertical"||(f.includes("left")||f.includes("right"))&&(Ht+=sr.x),(f.includes("up")||f.includes("down"))&&($n+=sr.y)),se({x:Ht,y:$n})}function Ha(Le){if(!B)return;if(Z(!1),x(!1),O(null),E.current?.releasePointerCapture(Le.pointerId),pe.current){se({x:q.x,y:q.y}),D(void 0);return}let Ae=!1;const Ze=ue.x-q.x,ot=ue.y-q.y;let mt;for(const Je of f){switch(Je){case"right":Ze>Co&&(Ae=!0,mt="right");break;case"left":Ze<-Co&&(Ae=!0,mt="left");break;case"down":ot>Co&&(Ae=!0,mt="down");break;case"up":ot<-Co&&(Ae=!0,mt="up");break}if(Ae)break}Ae?(D(mt),Y(!0),_(i.id)):(se({x:q.x,y:q.y}),D(void 0))}function on(Le){if(Le.key==="Escape"){if(!E.current||!za(E.current,Zo(Ci(E.current))))return;_(i.id)}}k.useEffect(()=>{if(!g)return;const Le=E.current;if(!Le)return;function Ae(Ze){za(Le,Ze.target)&&Ze.preventDefault()}return Le.addEventListener("touchmove",Ae,{passive:!1}),()=>{Le.removeEventListener("touchmove",Ae)}},[g]);function Wa(){if(!B&&ue.x===q.x&&ue.y===q.y&&!ee)return{[Da.swipeMovementX]:"0px",[Da.swipeMovementY]:"0px"};const Le=ue.x-q.x,Ae=ue.y-q.y;return{transition:B?"none":void 0,transform:B?`translateX(${ue.x}px) translateY(${ue.y}px) scale(${q.scale})`:void 0,[Da.swipeMovementX]:`${Le}px`,[Da.swipeMovementY]:`${Ae}px`}}const _r=i.priority==="high",Wn={role:_r?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":ie,"aria-describedby":ne,"aria-hidden":_r&&!y?!0:void 0,onPointerDown:g?Et:void 0,onPointerMove:g?ua:void 0,onPointerUp:g?Ha:void 0,onKeyDown:on,inert:VD(i.limited),style:{...Wa(),[Da.index]:i.transitionStatus==="ending"?Ce:ut,[Da.offsetY]:`${an}px`,[Da.height]:i.height?`${i.height}px`:void 0}},Bt=k.useMemo(()=>({rootRef:E,toast:i,titleId:ie,setTitleId:Q,descriptionId:ne,setDescriptionId:V,swiping:B,swipeDirection:I,recalculateHeight:Xt,index:Ce,visibleIndex:ut,expanded:N}),[i,ie,ne,B,I,Xt,Ce,ut,N]),da=k.useMemo(()=>({transitionStatus:i.transitionStatus,expanded:N,limited:i.limited||!1,type:i.type,swiping:Bt.swiping,swipeDirection:Bt.swipeDirection}),[N,i.transitionStatus,i.limited,i.type,Bt.swiping,Bt.swipeDirection]),$a=us("div",t,{ref:[a,Bt.rootRef],state:da,stateAttributesMapping:YD,props:[Wn,d]});return L.jsx(h_.Provider,{value:Bt,children:$a})}),JD={...Ch};let Ty=0;function e5(e,t="mui"){const[a,i]=k.useState(e),s=e||a;return k.useEffect(()=>{a==null&&(Ty+=1,i(`${t}-${Ty}`))},[a,t]),s}const Ey=JD.useId;function f_(e,t){if(Ey!==void 0){const a=Ey();return e??(t?`${t}-${a}`:a)}return e5(e,t)}const t5=k.forwardRef(function(t,a){const{render:i,className:s,id:c,children:u,...d}=t,{toast:p}=wh(),f=u??p.title,g=!!f,v=f_(c),{setTitleId:y}=wh();cs(()=>{if(g)return y(v),()=>{y(void 0)}},[g,v,y]);const _=k.useMemo(()=>({type:p.type}),[p.type]),w=us("h2",t,{ref:a,state:_,props:{...d,id:v,children:f}});return g?w:null}),n5=k.createContext(void 0);function r5(e=!1){const t=k.useContext(n5);if(t===void 0&&!e)throw new Error(ls(16));return t}function a5(e){const{focusableWhenDisabled:t,disabled:a,composite:i=!1,tabIndex:s=0,isNativeButton:c}=e,u=i&&t!==!1,d=i&&t===!1;return{props:k.useMemo(()=>{const f={onKeyDown(g){a&&t&&g.key!=="Tab"&&g.preventDefault()}};return i||(f.tabIndex=s,!c&&a&&(f.tabIndex=t?s:-1)),(c&&(t||u)||!c&&a)&&(f["aria-disabled"]=a),c&&(!t||d)&&(f.disabled=a),f},[i,a,t,u,d,c,s])}}function i5(e={}){const{disabled:t=!1,focusableWhenDisabled:a,tabIndex:i=0,native:s=!0}=e,c=k.useRef(null),u=r5(!0)!==void 0,d=rn(()=>{const y=c.current;return!!(y?.tagName==="A"&&y?.href)}),{props:p}=a5({focusableWhenDisabled:a,disabled:t,composite:u,tabIndex:i,isNativeButton:s}),f=k.useCallback(()=>{const y=c.current;o5(y)&&u&&t&&p.disabled===void 0&&y.disabled&&(y.disabled=!1)},[t,p.disabled,u]);cs(f,[f]);const g=k.useCallback((y={})=>{const{onClick:_,onMouseDown:w,onKeyUp:P,onKeyDown:S,onPointerDown:N,...j}=y;return c_({type:s?"button":void 0,onClick(D){if(t){D.preventDefault();return}_?.(D)},onMouseDown(D){t||w?.(D)},onKeyDown(D){if(t||(_h(D),S?.(D)),D.baseUIHandlerPrevented)return;const B=D.target===D.currentTarget&&!s&&!d()&&!t,Z=D.key==="Enter",oe=D.key===" ";B&&((oe||Z)&&D.preventDefault(),Z&&_?.(D))},onKeyUp(D){t||(_h(D),P?.(D)),!D.baseUIHandlerPrevented&&D.target===D.currentTarget&&!s&&!t&&D.key===" "&&_?.(D)},onPointerDown(D){if(t){D.preventDefault();return}N?.(D)}},s?void 0:{role:"button"},p,j)},[t,p,s,d]),v=rn(y=>{c.current=y,f()});return{getButtonProps:g,buttonRef:v}}function o5(e){return kc(e)&&e.tagName==="BUTTON"}const s5=k.forwardRef(function(t,a){const{render:i,className:s,disabled:c,nativeButton:u=!0,...d}=t,{close:p,expanded:f}=If(),{toast:g}=wh(),[v,y]=k.useState(!1),{getButtonProps:_,buttonRef:w}=i5({disabled:c,native:u}),P=k.useMemo(()=>({type:g.type}),[g.type]);return us("button",t,{ref:[a,w],state:P,props:[{"aria-hidden":!f&&!v,onClick(){p(g.id)},onFocus(){y(!0)},onBlur(){y(!1)}},d,_]})}),OI="none",zI="trigger-press",VI="trigger-hover",FI="outside-press",UI="item-press",BI="close-press",l5="focus-out",HI="escape-key",WI="list-navigation",$I="cancel-open",GI="imperative-action",KI="window-resize";function c5(e,t,a,i){let s=!1,c=!1;const u=Jr;return{reason:e,event:t??new Event("base-ui"),cancel(){s=!0},allowPropagation(){c=!0},get isCanceled(){return s},get isPropagationAllowed(){return c},trigger:a,...u}}function u5(e){return`data-base-ui-${e}`}const p_=k.createContext(null),d5=()=>k.useContext(p_),h5=u5("portal");function m_(e={}){const{ref:t,container:a,componentProps:i=Jr,elementProps:s,elementState:c}=e,u=f_(),p=d5()?.portalNode,[f,g]=k.useState(null),[v,y]=k.useState(null),_=rn(N=>{N!==null&&y(N)}),w=k.useRef(null);cs(()=>{if(a===null){w.current&&(w.current=null,y(null),g(null));return}if(u==null)return;const N=(a&&(Tf(a)?a:a.current))??p??document.body;if(N==null){w.current&&(w.current=null,y(null),g(null));return}w.current!==N&&(w.current=N,y(null),g(N))},[a,p,u]);const P=us("div",i,{ref:[t,_],state:c,props:[{id:u,[h5]:""},s]});return{portalNode:v,portalSubtree:f&&P?Fa.createPortal(P,f):null}}const YI=k.forwardRef(function(t,a){const{children:i,container:s,className:c,render:u,renderGuards:d,...p}=t,{portalNode:f,portalSubtree:g}=m_({container:s,ref:a,componentProps:t,elementProps:p}),v=k.useRef(null),y=k.useRef(null),_=k.useRef(null),w=k.useRef(null),[P,S]=k.useState(null),N=P?.modal,j=P?.open,I=typeof d=="boolean"?d:!!P&&!P.modal&&P.open&&!!f;k.useEffect(()=>{if(!f||N)return;function B(Z){f&&Z.relatedTarget&&Nd(Z)&&(Z.type==="focusin"?xy:vD)(f)}return f.addEventListener("focusin",B,!0),f.addEventListener("focusout",B,!0),()=>{f.removeEventListener("focusin",B,!0),f.removeEventListener("focusout",B,!0)}},[f,N]),k.useEffect(()=>{!f||j||xy(f)},[j,f]);const D=k.useMemo(()=>({beforeOutsideRef:v,afterOutsideRef:y,beforeInsideRef:_,afterInsideRef:w,portalNode:f,setFocusManagerState:S}),[f]);return L.jsxs(k.Fragment,{children:[g,L.jsxs(p_.Provider,{value:D,children:[I&&f&&L.jsx(Vo,{"data-type":"outside",ref:v,onFocus:B=>{if(Nd(B,f))_.current?.focus();else{const Z=P?P.domReference:null;gD(Z)?.focus()}}}),I&&f&&L.jsx("span",{"aria-owns":f.id,style:MD}),f&&Fa.createPortal(i,f),I&&f&&L.jsx(Vo,{"data-type":"outside",ref:y,onFocus:B=>{if(Nd(B,f))w.current?.focus();else{const Z=P?P.domReference:null;mD(Z)?.focus(),P?.closeOnFocusOut&&P?.onOpenChange(!1,c5(l5,B.nativeEvent))}}})]})]})}),f5=k.forwardRef(function(t,a){const{children:i,container:s,className:c,render:u,...d}=t,{portalNode:p,portalSubtree:f}=m_({container:s,ref:a,componentProps:t,elementProps:d});return!f&&!p?null:L.jsxs(k.Fragment,{children:[f,p&&Fa.createPortal(i,p)]})}),p5=f5;function m5(){const e=k.useContext(Df);if(!e)throw new Error(ls(73));const{toasts:t,add:a,close:i,update:s,promise:c}=e;return k.useMemo(()=>({toasts:t,add:a,close:i,update:s,promise:c}),[t,a,i,s,c])}function g5(){const e=[];function t(a){e.forEach(i=>i(a))}return{" subscribe":function(i){return e.push(i),()=>{const s=e.indexOf(i);s!==-1&&e.splice(s,1)}},add(a){const i=a.id||Gb("toast"),s={...a,id:i,transitionStatus:"starting"};return t({action:"add",options:s}),i},close(a){t({action:"close",options:{id:a}})},update(a,i){t({action:"update",options:{...i,id:a}})},promise(a,i){let s=a;return t({action:"promise",options:{...i,promise:a,setPromise(c){s=c}}}),s}}}const Lf=g5();function XI(e){return Lf.add(e)}function v5({children:e}){return L.jsxs(yD,{toastManager:Lf,children:[e,L.jsx(p5,{children:L.jsx(zD,{className:"fixed inset-x-0 top-6 z-[100] mx-auto flex w-full max-w-sm flex-col items-center gap-2 px-4 outline-none",children:L.jsx(y5,{})})})]})}function y5(){const{toasts:e}=m5();return e.map(t=>{const a=t.data?.onUndo;return L.jsxs(QD,{toast:t,className:Tn("pointer-events-auto flex w-full items-center gap-3 rounded-xl border border-oai-gray-200 bg-oai-white px-4 py-3 shadow-xl transition-all duration-200 ease-out","data-[starting-style]:-translate-y-3 data-[starting-style]:opacity-0","data-[ending-style]:-translate-y-3 data-[ending-style]:opacity-0","dark:border-oai-gray-800 dark:bg-oai-gray-900"),children:[L.jsx(t5,{className:"min-w-0 flex-1 text-sm font-medium text-oai-black dark:text-white"}),a?L.jsx("button",{type:"button",onClick:()=>{a(),Lf.close(t.id)},className:"shrink-0 rounded-md px-2 py-1 text-xs font-semibold text-oai-gray-600 transition-colors hover:bg-oai-gray-100 hover:text-oai-black focus:outline-none focus:ring-2 focus:ring-oai-gray-400/30 dark:text-oai-gray-300 dark:hover:bg-oai-gray-800 dark:hover:text-white",children:He("shared.action.undo")}):null,L.jsx(s5,{"aria-label":He("shared.action.dismiss"),className:"-mr-1 inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-oai-gray-400 transition-colors hover:bg-oai-gray-100 hover:text-oai-black focus:outline-none focus:ring-2 focus:ring-oai-gray-400/30 dark:hover:bg-oai-gray-800 dark:hover:text-white",children:L.jsx(Lk,{className:"h-3.5 w-3.5","aria-hidden":!0})})]},t.id)})}const g_=Object.freeze(["limits"]),k5=Object.freeze({limits:"/limits"}),b5=Object.freeze({limits:()=>oa(()=>import("./LimitsPage-LkZGPYvg.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))}),_5=Object.freeze(["dashboard-existing","silent-preload","page-load","manual-refresh"]);let Ry=0,ia;class w5{constructor(){this.limits=null}read(t,a){return ds(t),!this.limits||this.limits.contextKey!==a?null:xh(this.limits)}write(t){this.limits=t}snapshot(){return{limits:xh(this.limits)}}}class x5{constructor(){Ry+=1,this.sessionId=`dashboard-preload-${Ry}`,this.createdAt=Date.now(),this.completedAt=null,this.startedAfterMainContentVisible=!1,this.cache=new w5,this.targets={limits:P5("limits")}}}function P5(e){return{key:e,route:k5[e],resourceStatus:"idle",stateStatus:"idle",error:null,resourcePromise:null,resourceModule:null,resourceRequestId:0,statePromise:null,stateRequestId:0,pendingStateContextKey:null}}function S5(){return new x5}ia=S5();function ds(e){if(!g_.includes(e))throw new Error(`Unknown dashboard preload target: ${e}`)}function v_(e){return e?typeof e=="string"?e:e.message||String(e):null}function C5(e,t){return _5.includes(e)?e:t}function T5(e){const t=Number(e);return Number.isFinite(t)?t:Date.now()}function xh(e){return e?{...e}:null}function Dy(){const e=g_.every(t=>{const a=ia.targets[t];return a.resourceStatus==="fulfilled"||a.resourceStatus==="rejected"});ia.completedAt=e?Date.now():null}function E5(){ia.startedAfterMainContentVisible=!0}function y_(e,t={}){ds(e);const a=Object.entries(t).filter(([,i])=>i!==void 0).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>`${i}=${s===null?"null":String(s)}`);return`${e}:${a.join("|")}`}function R5(e,t={}){ds(e);const a=ia.targets[e];if(a.resourceStatus==="fulfilled")return Promise.resolve(a.resourceModule);if(a.resourceStatus==="pending"&&a.resourcePromise)return a.resourcePromise;const i=t.loader||b5[e],s=a.resourceRequestId+1;a.resourceRequestId=s,a.resourceStatus="pending",a.error=null;const c=Promise.resolve().then(()=>i()).then(u=>a.resourceRequestId!==s||a.resourcePromise!==c?null:(a.resourceStatus="fulfilled",a.resourceModule=u,a.error=null,Dy(),u)).catch(u=>(a.resourceRequestId!==s||a.resourcePromise!==c||(a.resourceStatus="rejected",a.error=v_(u),Dy()),null));return a.resourcePromise=c,c}function D5(e,t){ds(e);const a=ia.targets[e],i=t?.status,s={targetKey:e,status:i,data:t?.data??null,error:v_(t?.error),source:C5(t?.source,"silent-preload"),generatedAt:T5(t?.generatedAt),updatedAt:Date.now(),contextKey:t?.contextKey||y_(e,t?.context||{})};return a.stateStatus=i,i==="rejected"||i==="skipped"?a.error=s.error:i==="fulfilled"&&(a.error=null,ia.cache.write(s)),xh(s)}function I5(e,t){return ds(e),ia.cache.read(e,t)}function ZI(e,t={}){return D5("limits",{data:e,source:t.source||"dashboard-existing",contextKey:t.contextKey||k_(t.context||{}),generatedAt:t.generatedAt,status:t.status||"fulfilled",error:t.error})}function k_(e={}){return y_("limits",{state:"current",...e})}function qI(e=k_()){return I5("limits",e)}const A5=k.lazy(()=>oa(()=>import("./DashboardPage-DYKHv0m3.js"),__vite__mapDeps([10,2,3,1,11,12,13,5,14,6])).then(e=>({default:e.DashboardPage}))),M5=k.lazy(()=>oa(()=>import("./IpCheckPage-BGALK8Vy.js"),[])),L5=k.lazy(()=>oa(()=>import("./LimitsPage-LkZGPYvg.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.LimitsPage}))),N5=k.lazy(()=>oa(()=>import("./WrappedPage-C-_jLXXU.js"),__vite__mapDeps([15,3]))),j5=k.lazy(()=>oa(()=>import("./SettingsPage-Dxzqpi02.js"),__vite__mapDeps([16,4,11,14,13,17,5,9])).then(e=>({default:e.SettingsPage}))),O5=k.lazy(()=>oa(()=>import("./SkillsPage-Bo7e39AB.js"),__vite__mapDeps([18,7,8,9,2,3,5,12,13,11])).then(e=>({default:e.SkillsPage}))),z5=k.lazy(()=>oa(()=>import("./WidgetsPage-HHcIr_Eq.js"),__vite__mapDeps([19,14,13,17,5,6,8,9])).then(e=>({default:e.WidgetsPage})));function V5(){const{resolvedLocale:e}=Nk(),t=Hn(),a=k.useRef(!1),i=k.useRef(!1);k.useMemo(()=>typeof window>"u"?!1:lC(window.location.search),[]);const s=t?.pathname||"/",c=sC(),u=s.replace(/\/+$/,"")||"/",d=u==="/"||u==="/dashboard",p=u==="/limits",f=u==="/settings",g=u==="/skills",v=u==="/widgets",y=u==="/ip-check",_=u==="/wrapped",w=k.useCallback(()=>{d&&(a.current||(a.current=!0,E5()),i.current||(i.current=!0,R5("limits")))},[d]);let P=A5;p?P=L5:f?P=j5:g?P=O5:v?P=z5:y&&(P=M5);const S=u==="/dashboard"||u==="/"||p||f||g||v||y;let N=null;if(_)N=L.jsx(N5,{});else{const j=L.jsx(P,{baseUrl:c,onMainContentVisible:w},e);N=S?L.jsx(h2,{children:j}):j}return L.jsx(rC,{children:L.jsx(oC,{children:L.jsxs(v5,{children:[L.jsx(k.Suspense,{fallback:null,children:N}),S?L.jsx(j4,{}):null]})})})}const F5=vP([{path:"*",element:L.jsx(V5,{})}]);l1.createRoot(document.getElementById("root")).render(L.jsx(Sh.StrictMode,{children:L.jsx(aS,{children:L.jsx(gS,{children:L.jsx(RP,{router:F5})})})}));export{Un as $,rR as A,nC as B,Wo as C,Nk as D,lC as E,ZI as F,qI as G,M4 as H,Xh as I,Ql as J,Mk as K,dc as L,xf as M,Ak as N,BS as O,I4 as P,G5 as Q,Sh as R,qS as S,Ei as T,Wl as U,gk as V,vk as W,Lk as X,yk as Y,mk as Z,KS as _,At as a,W5 as a$,Lo as a0,$5 as a1,H5 as a2,ls as a3,rn as a4,cs as a5,DI as a6,Py as a7,c_ as a8,Jr as a9,u5 as aA,J4 as aB,VI as aC,bc as aD,mh as aE,za as aF,PI as aG,Xo as aH,YI as aI,VD as aJ,GI as aK,zI as aL,HI as aM,AI as aN,l5 as aO,Kb as aP,LI as aQ,Vo as aR,EI as aS,Nd as aT,TI as aU,mD as aV,jI as aW,GD as aX,kc as aY,mS as aZ,$h as a_,RI as aa,i_ as ab,OI as ac,KD as ad,BD as ae,L4 as af,Z5 as ag,Y5 as ah,iI as ai,oI as aj,sI as ak,XS as al,X5 as am,q5 as an,XI as ao,Q5 as ap,nI as aq,J5 as ar,eI as as,tI as at,aI as au,rI as av,f_ as aw,ss as ax,Ub as ay,dI as az,e0 as b,Hh as b0,B5 as b1,pI as b2,X4 as b3,kI as b4,bI as b5,vI as b6,yI as b7,Cf as b8,xI as b9,_I as bA,Ph as bB,l_ as bC,Mf as bD,_y as bE,mI as bF,gI as bG,WI as bH,II as bI,Ci as bJ,Af as bK,fI as bL,hI as bM,$I as bN,NI as bO,MI as bP,KI as bQ,UI as bR,d5 as ba,WD as bb,Ef as bc,Rf as bd,$D as be,Zo as bf,FI as bg,gD as bh,CI as bi,aa as bj,SI as bk,Wb as bl,eD as bm,yy as bn,O4 as bo,H4 as bp,B4 as bq,z4 as br,ph as bs,Hb as bt,lI as bu,U4 as bv,cI as bw,Bb as bx,uI as by,wI as bz,Mt as c,ra as d,mv as e,Qe as f,i5 as g,us as h,l3 as i,L as j,c5 as k,BI as l,Di as m,d4 as n,vy as o,He as p,JC as q,k as r,Fa as s,ud as t,Zh as u,U5 as v,DS as w,Tn as x,ES as y,wk as z};
696
+ `),()=>{d.current?.removeAttribute("data-motion-pop-id"),B.contains(D)&&B.removeChild(D)}},[t]),L.jsx(JE,{isPresent:t,childRef:d,sizeRef:p,pop:c,children:c===!1?e:k.cloneElement(e,{ref:v})})}const tR=({children:e,initial:t,isPresent:a,onExitComplete:i,custom:s,presenceAffectsLayout:c,mode:u,anchorX:d,anchorY:p,root:f})=>{const g=Zh(nR),v=k.useId();let y=!0,_=k.useMemo(()=>(y=!1,{id:v,initial:t,isPresent:a,custom:s,onExitComplete:w=>{g.set(w,!0);for(const P of g.values())if(!P)return;i&&i()},register:w=>(g.set(w,!1),()=>g.delete(w))}),[a,g,i]);return c&&y&&(_={..._}),k.useMemo(()=>{g.forEach((w,P)=>g.set(P,!1))},[a]),k.useEffect(()=>{!a&&!g.size&&i&&i()},[a]),e=L.jsx(eR,{pop:u==="popLayout",isPresent:a,anchorX:d,anchorY:p,root:f,children:e}),L.jsx(fc.Provider,{value:_,children:e})};function nR(){return new Map}function Tb(e=!0){const t=k.useContext(fc);if(t===null)return[!0,null];const{isPresent:a,onExitComplete:i,register:s}=t,c=k.useId();k.useEffect(()=>{if(e)return s(c)},[e]);const u=k.useCallback(()=>e&&i&&i(c),[c,i,e]);return!a&&i?[!1,u]:[!0]}const Pl=e=>e.key||"";function ry(e){const t=[];return k.Children.forEach(e,a=>{k.isValidElement(a)&&t.push(a)}),t}const rR=({children:e,custom:t,initial:a=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:c="sync",propagate:u=!1,anchorX:d="left",anchorY:p="top",root:f})=>{const[g,v]=Tb(u),y=k.useMemo(()=>ry(e),[e]),_=u&&!g?[]:y.map(Pl),w=k.useRef(!0),P=k.useRef(y),S=Zh(()=>new Map),N=k.useRef(new Set),[j,I]=k.useState(y),[D,B]=k.useState(y);e0(()=>{w.current=!1,P.current=y;for(let x=0;x<D.length;x++){const ee=Pl(D[x]);_.includes(ee)?(S.delete(ee),N.current.delete(ee)):S.get(ee)!==!0&&S.set(ee,!1)}},[D,_.length,_.join("-")]);const Z=[];if(y!==j){let x=[...y];for(let ee=0;ee<D.length;ee++){const Y=D[ee],ue=Pl(Y);_.includes(ue)||(x.splice(ee,0,Y),Z.push(Y))}return c==="wait"&&Z.length&&(x=Z),B(ry(x)),I(y),null}const{forceRender:oe}=k.useContext(Xh);return L.jsx(L.Fragment,{children:D.map(x=>{const ee=Pl(x),Y=u&&!g?!1:y===D||_.includes(ee),ue=()=>{if(N.current.has(ee))return;if(S.has(ee))N.current.add(ee),S.set(ee,!0);else return;let se=!0;S.forEach(q=>{q||(se=!1)}),se&&(oe?.(),B(P.current),u&&v?.(),i&&i())};return L.jsx(tR,{isPresent:Y,initial:!w.current||a?void 0:!1,custom:t,presenceAffectsLayout:s,mode:c,root:f,onExitComplete:Y?void 0:ue,anchorX:d,anchorY:p,children:x},ee)})})},Eb=k.createContext({strict:!1}),ay={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let iy=!1;function aR(){if(iy)return;const e={};for(const t in ay)e[t]={isEnabled:a=>ay[t].some(i=>!!a[i])};rb(e),iy=!0}function Rb(){return aR(),UT()}function iR(e){const t=Rb();for(const a in e)t[a]={...t[a],...e[a]};rb(t)}const oR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function rc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||oR.has(e)}let Db=e=>!rc(e);function sR(e){typeof e=="function"&&(Db=t=>t.startsWith("on")?!rc(t):e(t))}try{sR(require("@emotion/is-prop-valid").default)}catch{}function lR(e,t,a){const i={};for(const s in e)s==="values"&&typeof e.values=="object"||At(e[s])||(Db(s)||a===!0&&rc(s)||!t&&!rc(s)||e.draggable&&s.startsWith("onDrag"))&&(i[s]=e[s]);return i}const vc=k.createContext({});function cR(e,t){if(gc(e)){const{initial:a,animate:i}=e;return{initial:a===!1||Ko(a)?a:void 0,animate:Ko(i)?i:void 0}}return e.inherit!==!1?t:{}}function uR(e){const{initial:t,animate:a}=cR(e,k.useContext(vc));return k.useMemo(()=>({initial:t,animate:a}),[oy(t),oy(a)])}function oy(e){return Array.isArray(e)?e.join(" "):e}const Pf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ib(e,t,a){for(const i in t)!At(t[i])&&!ub(i,a)&&(e[i]=t[i])}function dR({transformTemplate:e},t){return k.useMemo(()=>{const a=Pf();return _f(a,t,e),Object.assign({},a.vars,a.style)},[t])}function hR(e,t){const a=e.style||{},i={};return Ib(i,a,e),Object.assign(i,dR(e,t)),i}function fR(e,t){const a={},i=hR(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=i,a}const Ab=()=>({...Pf(),attrs:{}});function pR(e,t,a,i){const s=k.useMemo(()=>{const c=Ab();return db(c,t,fb(i),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[t]);if(e.style){const c={};Ib(c,e.style,e),s.style={...c,...s.style}}return s}const mR=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Sf(e){return typeof e!="string"||e.includes("-")?!1:!!(mR.indexOf(e)>-1||/[A-Z]/u.test(e))}function gR(e,t,a,{latestValues:i},s,c=!1,u){const p=(u??Sf(e)?pR:fR)(t,i,s,e),f=lR(t,typeof e=="string",c),g=e!==k.Fragment?{...f,...p,ref:a}:{},{children:v}=t,y=k.useMemo(()=>At(v)?v.get():v,[v]);return k.createElement(e,{...g,children:y})}function vR({scrapeMotionValuesFromProps:e,createRenderState:t},a,i,s){return{latestValues:yR(a,i,s,e),renderState:t()}}function yR(e,t,a,i){const s={},c=i(e,{});for(const y in c)s[y]=Fl(c[y]);let{initial:u,animate:d}=e;const p=gc(e),f=tb(e);t&&f&&!p&&e.inherit!==!1&&(u===void 0&&(u=t.initial),d===void 0&&(d=t.animate));let g=a?a.initial===!1:!1;g=g||u===!1;const v=g?d:u;if(v&&typeof v!="boolean"&&!mc(v)){const y=Array.isArray(v)?v:[v];for(let _=0;_<y.length;_++){const w=hf(e,y[_]);if(w){const{transitionEnd:P,transition:S,...N}=w;for(const j in N){let I=N[j];if(Array.isArray(I)){const D=g?I.length-1:0;I=I[D]}I!==null&&(s[j]=I)}for(const j in P)s[j]=P[j]}}}return s}const Mb=e=>(t,a)=>{const i=k.useContext(vc),s=k.useContext(fc),c=()=>vR(e,t,i,s);return a?c():Zh(c)},kR=Mb({scrapeMotionValuesFromProps:wf,createRenderState:Pf}),bR=Mb({scrapeMotionValuesFromProps:pb,createRenderState:Ab}),_R=Symbol.for("motionComponentSymbol");function wR(e,t,a){const i=k.useRef(a);k.useInsertionEffect(()=>{i.current=a});const s=k.useRef(null);return k.useCallback(c=>{c&&e.onMount?.(c);const u=i.current;if(typeof u=="function")if(c){const d=u(c);typeof d=="function"&&(s.current=d)}else s.current?(s.current(),s.current=null):u(c);else u&&(u.current=c);t&&(c?t.mount(c):t.unmount())},[t])}const Lb=k.createContext({});function _i(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function xR(e,t,a,i,s,c){const{visualElement:u}=k.useContext(vc),d=k.useContext(Eb),p=k.useContext(fc),f=k.useContext(xf),g=f.reducedMotion,v=f.skipAnimations,y=k.useRef(null),_=k.useRef(!1);i=i||d.renderer,!y.current&&i&&(y.current=i(e,{visualState:t,parent:u,props:a,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:g,skipAnimations:v,isSVG:c}),_.current&&y.current&&(y.current.manuallyAnimateOnMount=!0));const w=y.current,P=k.useContext(Lb);w&&!w.projection&&s&&(w.type==="html"||w.type==="svg")&&PR(y.current,a,s,P);const S=k.useRef(!1);k.useInsertionEffect(()=>{w&&S.current&&w.update(a,p)});const N=a[B0],j=k.useRef(!!N&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(N)&&window.MotionHasOptimisedAnimation?.(N));return e0(()=>{_.current=!0,w&&(S.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),j.current&&w.animationState&&w.animationState.animateChanges())}),k.useEffect(()=>{w&&(!j.current&&w.animationState&&w.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(N)}),j.current=!1),w.enteringChildren=void 0)}),w}function PR(e,t,a,i){const{layoutId:s,layout:c,drag:u,dragConstraints:d,layoutScroll:p,layoutRoot:f,layoutAnchor:g,layoutCrossfade:v}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:Nb(e.parent)),e.projection.setOptions({layoutId:s,layout:c,alwaysMeasureLayout:!!u||d&&_i(d),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:i,crossfade:v,layoutScroll:p,layoutRoot:f,layoutAnchor:g})}function Nb(e){if(e)return e.options.allowProjection!==!1?e.projection:Nb(e.parent)}function Cd(e,{forwardMotionProps:t=!1,type:a}={},i,s){i&&iR(i);const c=a?a==="svg":Sf(e),u=c?bR:kR;function d(f,g){let v;const y={...k.useContext(xf),...f,layoutId:SR(f)},{isStatic:_}=y,w=uR(f),P=u(f,_);if(!_&&typeof window<"u"){CR();const S=TR(y);v=S.MeasureLayout,w.visualElement=xR(e,P,y,s,S.ProjectionNode,c)}return L.jsxs(vc.Provider,{value:w,children:[v&&w.visualElement?L.jsx(v,{visualElement:w.visualElement,...y}):null,gR(e,f,wR(P,w.visualElement,g),P,_,t,c)]})}d.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const p=k.forwardRef(d);return p[_R]=e,p}function SR({layoutId:e}){const t=k.useContext(Xh).id;return t&&e!==void 0?t+"-"+e:e}function CR(e,t){k.useContext(Eb).strict}function TR(e){const t=Rb(),{drag:a,layout:i}=t;if(!a&&!i)return{};const s={...a,...i};return{MeasureLayout:a?.isEnabled(e)||i?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function ER(e,t){if(typeof Proxy>"u")return Cd;const a=new Map,i=(c,u)=>Cd(c,u,e,t),s=(c,u)=>i(c,u);return new Proxy(s,{get:(c,u)=>u==="create"?i:(a.has(u)||a.set(u,Cd(u,void 0,e,t)),a.get(u))})}const RR=(e,t)=>t.isSVG??Sf(e)?new aE(t):new QT(t,{allowProjection:e!==k.Fragment});class DR extends la{constructor(t){super(t),t.animationState||(t.animationState=cE(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let IR=0;class AR extends la{constructor(){super(...arguments),this.id=IR++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&i===!1){if(this.isExitComplete){const{initial:c,custom:u}=this.node.getProps();if(typeof c=="string"){const d=Oa(this.node,c,u);if(d){const{transition:p,transitionEnd:f,...g}=d;for(const v in g)this.node.getValue(v)?.jump(g[v])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);a&&!t&&s.then(()=>{this.isExitComplete=!0,a(this.id)})}mount(){const{register:t,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const MR={animation:{Feature:DR},exit:{Feature:AR}};function os(e){return{point:{x:e.pageX,y:e.pageY}}}const LR=e=>t=>gf(t)&&e(t,os(t));function zo(e,t,a,i){return Yo(e,t,LR(a),i)}const jb=({current:e})=>e?e.ownerDocument.defaultView:null,sy=(e,t)=>Math.abs(e-t);function NR(e,t){const a=sy(e.x,t.x),i=sy(e.y,t.y);return Math.sqrt(a**2+i**2)}const ly=new Set(["auto","scroll"]);class Ob{constructor(t,a,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:c=!1,distanceThreshold:u=3,element:d}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=_=>{this.handleScroll(_.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Sl(this.lastRawMoveEventInfo,this.transformPagePoint));const _=Td(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,P=NR(_.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!P)return;const{point:S}=_,{timestamp:N}=It;this.history.push({...S,timestamp:N});const{onStart:j,onMove:I}=this.handlers;w||(j&&j(this.lastMoveEvent,_),this.startEvent=this.lastMoveEvent),I&&I(this.lastMoveEvent,_)},this.handlePointerMove=(_,w)=>{this.lastMoveEvent=_,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=Sl(w,this.transformPagePoint),Qe.update(this.updatePoint,!0)},this.handlePointerUp=(_,w)=>{this.end();const{onEnd:P,onSessionEnd:S,resumeAnimation:N}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=Td(_.type==="pointercancel"?this.lastMoveEventInfo:Sl(w,this.transformPagePoint),this.history);this.startEvent&&P&&P(_,j),S&&S(_,j)},!gf(t))return;this.dragSnapToOrigin=c,this.handlers=a,this.transformPagePoint=i,this.distanceThreshold=u,this.contextWindow=s||window;const p=os(t),f=Sl(p,this.transformPagePoint),{point:g}=f,{timestamp:v}=It;this.history=[{...g,timestamp:v}];const{onSessionStart:y}=a;y&&y(t,Td(f,this.history)),this.removeListeners=rs(zo(this.contextWindow,"pointermove",this.handlePointerMove),zo(this.contextWindow,"pointerup",this.handlePointerUp),zo(this.contextWindow,"pointercancel",this.handlePointerUp)),d&&this.startScrollTracking(d)}startScrollTracking(t){let a=t.parentElement;for(;a;){const i=getComputedStyle(a);(ly.has(i.overflowX)||ly.has(i.overflowY))&&this.scrollPositions.set(a,{x:a.scrollLeft,y:a.scrollTop}),a=a.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const a=this.scrollPositions.get(t);if(!a)return;const i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},c={x:s.x-a.x,y:s.y-a.y};c.x===0&&c.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=c.x,this.lastMoveEventInfo.point.y+=c.y):this.history.length>0&&(this.history[0].x-=c.x,this.history[0].y-=c.y),this.scrollPositions.set(t,s),Qe.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ra(this.updatePoint)}}function Sl(e,t){return t?{point:t(e.point)}:e}function cy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Td({point:e},t){return{point:e,delta:cy(e,zb(t)),offset:cy(e,jR(t)),velocity:OR(t,.1)}}function jR(e){return e[0]}function zb(e){return e[e.length-1]}function OR(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,i=null;const s=zb(e);for(;a>=0&&(i=e[a],!(s.timestamp-i.timestamp>pn(t)));)a--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&s.timestamp-i.timestamp>pn(t)*2&&(i=e[1]);const c=xn(s.timestamp-i.timestamp);if(c===0)return{x:0,y:0};const u={x:(s.x-i.x)/c,y:(s.y-i.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function zR(e,{min:t,max:a},i){return t!==void 0&&e<t?e=i?it(t,e,i.min):Math.max(e,t):a!==void 0&&e>a&&(e=i?it(a,e,i.max):Math.min(e,a)),e}function uy(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function VR(e,{top:t,left:a,bottom:i,right:s}){return{x:uy(e.x,a,s),y:uy(e.y,t,i)}}function dy(e,t){let a=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,i]=[i,a]),{min:a,max:i}}function FR(e,t){return{x:dy(e.x,t.x),y:dy(e.y,t.y)}}function UR(e,t){let a=.5;const i=Yt(e),s=Yt(t);return s>i?a=$o(t.min,t.max-i,e.min):i>s&&(a=$o(e.min,e.max-s,t.min)),ar(0,1,a)}function BR(e,t){const a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}const dh=.35;function HR(e=dh){return e===!1?e=0:e===!0&&(e=dh),{x:hy(e,"left","right"),y:hy(e,"top","bottom")}}function hy(e,t,a){return{min:fy(e,t),max:fy(e,a)}}function fy(e,t){return typeof e=="number"?e:e[t]||0}const WR=new WeakMap;class $R{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:a=!1,distanceThreshold:i}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const c=v=>{a&&this.snapToCursor(os(v).point),this.stopAnimation()},u=(v,y)=>{const{drag:_,dragPropagation:w,onDragStart:P}=this.getProps();if(_&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=yT(_),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=y,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),er(N=>{let j=this.getAxisMotionValue(N).get()||0;if(nr.test(j)){const{projection:I}=this.visualElement;if(I&&I.layout){const D=I.layout.layoutBox[N];D&&(j=Yt(D)*(parseFloat(j)/100))}}this.originPoint[N]=j}),P&&Qe.update(()=>P(v,y),!1,!0),rh(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},d=(v,y)=>{this.latestPointerEvent=v,this.latestPanInfo=y;const{dragPropagation:_,dragDirectionLock:w,onDirectionLock:P,onDrag:S}=this.getProps();if(!_&&!this.openDragLock)return;const{offset:N}=y;if(w&&this.currentDirection===null){this.currentDirection=KR(N),this.currentDirection!==null&&P&&P(this.currentDirection);return}this.updateAxis("x",y.point,N),this.updateAxis("y",y.point,N),this.visualElement.render(),S&&Qe.update(()=>S(v,y),!1,!0)},p=(v,y)=>{this.latestPointerEvent=v,this.latestPanInfo=y,this.stop(v,y),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:g}=this.getProps();this.panSession=new Ob(t,{onSessionStart:c,onStart:u,onMove:d,onSessionEnd:p,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:i,contextWindow:jb(this.visualElement),element:this.visualElement.current})}stop(t,a){const i=t||this.latestPointerEvent,s=a||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!s||!i)return;const{velocity:u}=s;this.startAnimation(u);const{onDragEnd:d}=this.getProps();d&&Qe.postRender(()=>d(i,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,a,i){const{drag:s}=this.getProps();if(!i||!Cl(t,s,this.currentDirection))return;const c=this.getAxisMotionValue(t);let u=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(u=zR(u,this.constraints[t],this.elastic[t])),c.set(u)}resolveConstraints(){const{dragConstraints:t,dragElastic:a}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&_i(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=VR(i.layoutBox,t):this.constraints=!1,this.elastic=HR(a),s!==this.constraints&&!_i(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&er(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=BR(i.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!_i(t))return!1;const i=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const c=GT(i,s.root,this.visualElement.getTransformPagePoint());let u=FR(s.layout.layoutBox,c);if(a){const d=a(HT(u));this.hasMutatedConstraints=!!d,d&&(u=ib(d))}return u}startAnimation(t){const{drag:a,dragMomentum:i,dragElastic:s,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),p=this.constraints||{},f=er(g=>{if(!Cl(g,a,this.currentDirection))return;let v=p&&p[g]||{};(u===!0||u===g)&&(v={min:0,max:0});const y=s?200:1e6,_=s?40:1e7,w={type:"inertia",velocity:i?t[g]:0,bounceStiffness:y,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...c,...v};return this.startAxisValueAnimation(g,w)});return Promise.all(f).then(d)}startAxisValueAnimation(t,a){const i=this.getAxisMotionValue(t);return rh(this.visualElement,t),i.start(df(t,i,0,a,this.visualElement,!1))}stopAnimation(){er(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const a=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),s=i[a];return s||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){er(a=>{const{drag:i}=this.getProps();if(!Cl(a,i,this.currentDirection))return;const{projection:s}=this.visualElement,c=this.getAxisMotionValue(a);if(s&&s.layout){const{min:u,max:d}=s.layout.layoutBox[a],p=c.get()||0;c.set(t[a]-it(u,d,.5)+p)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:a}=this.getProps(),{projection:i}=this.visualElement;if(!_i(a)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};er(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const p=d.get();s[u]=UR({min:p,max:p},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),er(u=>{if(!Cl(u,t,null))return;const d=this.getAxisMotionValue(u),{min:p,max:f}=this.constraints[u];d.set(it(p,f,s[u]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;WR.set(this.visualElement,this);const t=this.visualElement.current,a=zo(t,"pointerdown",f=>{const{drag:g,dragListener:v=!0}=this.getProps(),y=f.target,_=y!==t&&PT(y);g&&v&&!_&&this.start(f)});let i;const s=()=>{const{dragConstraints:f}=this.getProps();_i(f)&&f.current&&(this.constraints=this.resolveRefConstraints(),i||(i=GR(t,f.current,()=>this.scalePositionWithinConstraints())))},{projection:c}=this.visualElement,u=c.addEventListener("measure",s);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Qe.read(s);const d=Yo(window,"resize",()=>this.scalePositionWithinConstraints()),p=c.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:g})=>{this.isDragging&&g&&(er(v=>{const y=this.getAxisMotionValue(v);y&&(this.originPoint[v]+=f[v].translate,y.set(y.get()+f[v].translate))}),this.visualElement.render())}));return()=>{d(),a(),u(),p&&p(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:c=!1,dragElastic:u=dh,dragMomentum:d=!0}=t;return{...t,drag:a,dragDirectionLock:i,dragPropagation:s,dragConstraints:c,dragElastic:u,dragMomentum:d}}}function py(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function GR(e,t,a){const i=_v(e,py(a)),s=_v(t,py(a));return()=>{i(),s()}}function Cl(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function KR(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}class YR extends la{constructor(t){super(t),this.removeGroupControls=Sn,this.removeListeners=Sn,this.controls=new $R(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Sn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:a}=this.node.prevProps||{};t!==a&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ed=e=>(t,a)=>{e&&Qe.update(()=>e(t,a),!1,!0)};class XR extends la{constructor(){super(...arguments),this.removePointerDownListener=Sn}onPointerDown(t){this.session=new Ob(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:a,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ed(t),onStart:Ed(a),onMove:Ed(i),onEnd:(c,u)=>{delete this.session,s&&Qe.postRender(()=>s(c,u))}}}mount(){this.removePointerDownListener=zo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Rd=!1;class ZR extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:i,layoutId:s}=this.props,{projection:c}=t;c&&(a.group&&a.group.add(c),i&&i.register&&s&&i.register(c),Rd&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ul.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:a,visualElement:i,drag:s,isPresent:c}=this.props,{projection:u}=i;return u&&(u.isPresent=c,t.layoutDependency!==a&&u.setOptions({...u.options,layoutDependency:a}),Rd=!0,s||t.layoutDependency!==a||a===void 0||t.isPresent!==c?u.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?u.promote():u.relegate()||Qe.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:a}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=a,i.root.didUpdate(),mf.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:i}=this.props,{projection:s}=t;Rd=!0,s&&(s.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Vb(e){const[t,a]=Tb(),i=k.useContext(Xh);return L.jsx(ZR,{...e,layoutGroup:i,switchLayoutGroup:k.useContext(Lb),isPresent:t,safeToRemove:a})}const qR={pan:{Feature:XR},drag:{Feature:YR,ProjectionNode:Cb,MeasureLayout:Vb}};function my(e,t,a){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",a==="Start");const s="onHover"+a,c=i[s];c&&Qe.postRender(()=>c(t,os(t)))}class QR extends la{mount(){const{current:t}=this.node;t&&(this.unmount=bT(t,(a,i)=>(my(this.node,i,"Start"),s=>my(this.node,s,"End"))))}unmount(){}}class JR extends la{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rs(Yo(this.node.current,"focus",()=>this.onFocus()),Yo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function gy(e,t,a){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",a==="Start");const s="onTap"+(a==="End"?"":a),c=i[s];c&&Qe.postRender(()=>c(t,os(t)))}class e4 extends la{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:a,propagate:i}=this.node.props;this.unmount=CT(t,(s,c)=>(gy(this.node,c,"Start"),(u,{success:d})=>gy(this.node,u,d?"End":"Cancel")),{useGlobalTarget:a,stopPropagation:i?.tap===!1})}unmount(){}}const hh=new WeakMap,Dd=new WeakMap,t4=e=>{const t=hh.get(e.target);t&&t(e)},n4=e=>{e.forEach(t4)};function r4({root:e,...t}){const a=e||document;Dd.has(a)||Dd.set(a,{});const i=Dd.get(a),s=JSON.stringify(t);return i[s]||(i[s]=new IntersectionObserver(n4,{root:e,...t})),i[s]}function a4(e,t,a){const i=r4(t);return hh.set(e,a),i.observe(e),()=>{hh.delete(e),i.unobserve(e)}}const i4={some:0,all:1};class o4 extends la{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:a,margin:i,amount:s="some",once:c}=t,u={root:a?a.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:i4[s]},d=p=>{const{isIntersecting:f}=p;if(this.isInView===f||(this.isInView=f,c&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:g,onViewportLeave:v}=this.node.getProps(),y=f?g:v;y&&y(p)};this.stopObserver=a4(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:a}=this.node;["amount","margin","root"].some(s4(t,a))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function s4({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}const l4={inView:{Feature:o4},tap:{Feature:e4},focus:{Feature:JR},hover:{Feature:QR}},c4={layout:{ProjectionNode:Cb,MeasureLayout:Vb}},u4={...MR,...l4,...qR,...c4},vy=ER(u4,RR);function d4(){!bf.current&&nb();const[e]=k.useState(Jl.current);return e}function h4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:L.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})})}function f4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",className:t,children:L.jsx("path",{d:"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"})})}function p4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:L.jsx("path",{d:"M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"})})}function m4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:L.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z"})})}function g4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:L.jsx("path",{d:"M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815"})})}function v4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 -1 22 28",fill:"currentColor",fillRule:"evenodd",className:t,children:L.jsx("path",{d:"M4.125 20.149c-2.69 5.959 3.036 7.453 7.26 3.966 1.24 3.91 5.898.993 7.569-2.036 3.682-6.678 2.195-13.49 1.813-14.895-2.617-9.582-15.699-9.592-17.95.049-.526 1.687-.535 3.606-.833 5.598-.15 1.005-.256 1.646-.645 2.703-.223.607-.53 1.147-1.014 2.056-.75 1.412-.434 4.138 3.434 2.724v.001ZM11.895 11.332c-1.073 0-1.234-1.283-1.234-2.048 0-.69.124-1.239.358-1.586a1 1 0 0 1 .876-.462c.375 0 .697.158.924.47.259.354.395.9.395 1.578 0 1.283-.493 2.048-1.319 2.048Zm4.416 0c-1.073 0-1.234-1.283-1.234-2.048 0-.69.124-1.239.358-1.586a1 1 0 0 1 .876-.462c.375 0 .697.158.924.47.259.354.396.9.396 1.578 0 1.283-.494 2.048-1.32 2.048Z"})})}function y4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:L.jsx("path",{d:"M16 6H8v12h8V6zm4 16H4V2h16v20z"})})}function k4({size:e=16,className:t=""}){return L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:[L.jsx("path",{d:"M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z"}),L.jsx("path",{d:"M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z"})]})}function b4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:L.jsx("path",{d:"M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z"})})}function _4({size:e=16,className:t=""}){return L.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 60",fill:"none",className:t,"aria-hidden":"true",children:[L.jsx("path",{fill:"currentColor",d:"M37.2114 3.75318C37.6821 3.33106 37.7106 3.31457 38.0558 3.29385C38.6149 3.2531 39.1272 3.52199 39.9989 4.31564C42.0356 6.16652 44.8714 9.97183 46.6346 13.2212L47.3163 14.4819L48.2782 14.9605C49.2072 15.4299 50.7308 16.3923 51.3672 16.9085C51.655 17.1464 51.6956 17.1508 51.9947 17.0344C53.3454 16.5084 55.2803 17.206 56.9869 18.8432C58.5231 20.3155 59.9943 22.8312 60.558 24.9308C60.6403 25.2687 60.7493 25.9952 60.7891 26.5362C60.9177 28.4358 60.3092 29.9532 59.1362 30.64C58.8965 30.7784 58.8801 30.8158 58.8868 31.4132C58.9409 34.2583 58.1741 37.0985 56.6335 39.8679C54.8946 42.9773 51.7981 46.1938 47.6074 49.2243C45.357 50.8619 40.0323 53.964 37.6248 55.0532C31.8578 57.6496 27.2346 58.646 23.2188 58.154C20.8236 57.8638 18.1124 56.9287 16.5082 55.8433C16.086 55.5515 16.0191 55.5329 15.6966 55.6251C13.9793 56.1185 11.73 55.1053 9.81931 52.9844C9.05725 52.1366 7.82714 50.0548 7.42839 48.9409C6.50606 46.3339 6.68976 43.9816 7.91836 42.5767C8.23573 42.2149 8.2453 42.1995 8.17598 41.5912C8.06148 40.5951 8.00971 39.1206 8.06202 38.1692L8.10361 37.2803L6.76977 34.9212C4.70378 31.2451 3.3912 28.1582 2.88489 25.7998C2.61762 24.5066 2.63385 23.9324 2.96214 23.5078C3.16198 23.2515 3.81796 22.9866 4.60785 22.8407C6.59665 22.4917 10.9334 22.8076 15.7581 23.6595L16.259 23.7458L17.3608 22.7713C19.1891 21.1519 20.4038 20.244 22.6429 18.8478C24.9768 17.3876 27.6108 16.1858 30.577 15.2346L31.5295 14.9294L32.0526 13.5561C33.9257 8.61146 35.8437 4.96584 37.2114 3.75318ZM21.5208 29.0919C19.404 30.314 18.3453 30.9251 17.5676 31.6099C14.4179 34.3835 13.2414 38.777 14.5823 42.7537C14.9135 43.7357 15.5247 44.7942 16.7469 46.9111C17.9691 49.0279 18.5801 50.0865 19.2649 50.8643C22.0385 54.014 26.4316 55.1918 30.4084 53.8509C31.3904 53.5198 32.4489 52.9085 34.5657 51.6863L46.7442 44.6551C48.8613 43.4328 49.9205 42.8214 50.6983 42.1365C53.8479 39.363 55.0245 34.9695 53.6835 30.9927C53.3524 30.0107 52.7412 28.9522 51.519 26.8354C50.2968 24.7185 49.6858 23.66 49.0009 22.8822C46.2274 19.7325 41.8342 18.5547 37.8575 19.8956C36.8754 20.2267 35.8163 20.8383 33.6993 22.0606L21.5208 29.0919Z"}),L.jsx("g",{transform:"rotate(-30 22.6953 37.6011)",children:L.jsx("rect",{x:"22.6953",y:"37.6011",width:"4.81084",height:"9.99175",rx:"2.40542",fill:"currentColor"})}),L.jsx("g",{transform:"rotate(-30 35.6748 30.1074)",children:L.jsx("rect",{x:"35.6748",y:"30.1074",width:"4.81084",height:"9.99175",rx:"2.40542",fill:"currentColor"})})]})}function w4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",className:t,children:L.jsx("path",{d:"M7 2h10a5 5 0 015 5v10a5 5 0 01-5 5H7a5 5 0 01-5-5V7a5 5 0 015-5zm0 4.5v11h2.35v-4.55h5.3V17.5H17v-11h-2.35v4.1h-5.3V6.5H7z"})})}function x4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"currentColor",className:t,children:L.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"})})}function P4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-hidden":"true",children:L.jsx("g",{transform:"translate(3.4502, 3)",fill:"#9570BE",children:L.jsx("path",{d:"M3.17890888,3.6 L3.17890888,0 L16,0 L16,3.6 L3.17890888,3.6 Z M9.642,7.2 L9.64218223,10.8 L0,10.8 L0,3.6 L16,3.6 L16,7.2 L9.642,7.2 Z M3.17890888,18 L3.178,14.4 L0,14.4 L0,10.8 L16,10.8 L16,18 L3.17890888,18 Z",fillRule:"nonzero"})})})}function S4({size:e=16,className:t=""}){return L.jsxs("svg",{width:e,height:e,viewBox:"0 0 120 90",fill:"currentColor",className:t,children:[L.jsx("rect",{x:"10",y:"8",width:"100",height:"12",rx:"2"}),L.jsx("rect",{x:"25",y:"20",width:"12",height:"62",rx:"2"}),L.jsx("rect",{x:"75",y:"20",width:"12",height:"45",rx:"2"}),L.jsx("rect",{x:"71",y:"55",width:"20",height:"16",rx:"3"}),L.jsx("rect",{x:"76",y:"71",width:"3",height:"8",rx:"1"}),L.jsx("rect",{x:"82",y:"71",width:"3",height:"8",rx:"1"})]})}function C4({size:e=16,className:t=""}){return L.jsxs("svg",{width:e,height:e,viewBox:"0 0 120 90",fill:"currentColor",className:t,children:[L.jsx("rect",{x:"10",y:"8",width:"100",height:"12",rx:"2"}),L.jsx("rect",{x:"25",y:"20",width:"12",height:"62",rx:"2"}),L.jsx("rect",{x:"83",y:"20",width:"12",height:"62",rx:"2"})]})}function T4({size:e=16,className:t=""}){return L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[L.jsx("path",{d:"M9 3v2"}),L.jsx("path",{d:"M15 3v2"}),L.jsx("rect",{x:"4",y:"6",width:"16",height:"13",rx:"3"}),L.jsx("circle",{cx:"9",cy:"13",r:"1.4",fill:"currentColor",stroke:"none"}),L.jsx("circle",{cx:"15",cy:"13",r:"1.4",fill:"currentColor",stroke:"none"}),L.jsx("path",{d:"M9 16h6"})]})}const E4={CLAUDE:h4,CODEBUDDY:_4,CODEX:f4,COPILOT:b4,CRAFT:P4,CURSOR:p4,DROID:T4,GEMINI:m4,GITHUB:x4,GROK:g4,HERMES:w4,KIMI:k4,KIRO:v4,OPENCODE:y4,OMP:S4,PI:C4},R4={ANTIGRAVITY:"/brand-logos/antigravity.svg",CLAUDE:"/brand-logos/claude-code.svg",CODEX:"/brand-logos/codex.svg",GEMINI:"/brand-logos/gemini.svg",HERMES:"/brand-logos/hermes.svg","KILO-CLI":"/brand-logos/kilo.svg","KILO-CODE":"/brand-logos/kilo.svg",OPENCLAW:"/brand-logos/openclaw.svg",OPENCODE:"/brand-logos/opencode.svg"};function D4({size:e=16,className:t=""}){return L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:L.jsx("circle",{cx:"12",cy:"12",r:"7.5",strokeDasharray:"3 3"})})}function I4({provider:e,size:t=16,color:a,className:i=""}){const s=e?.toUpperCase?.()||"",c=R4[s];if(c)return L.jsx("img",{src:c,alt:"",width:t,height:t,className:i,style:{width:t,height:t,objectFit:"contain"},"aria-hidden":!0});const u=E4[s];return u?L.jsx(u,{size:t,className:i}):L.jsx(D4,{size:t,className:`text-oai-gray-400 dark:text-oai-gray-500 shrink-0 ${i}`})}let Id=null;async function A4(e=fetch){if(Id)return Id;const t=await e("/api/local-auth",{method:"GET",headers:{Accept:"application/json"},cache:"no-store"});if(!t.ok)throw new Error(`Local auth request failed with HTTP ${t.status}`);const a=await t.json().catch(()=>null),i=typeof a?.token=="string"?a.token.trim():"";if(!i)throw new Error("Local auth token missing from response");return Id=i,i}async function M4(e=fetch){return{"x-tokentracker-local-auth":await A4(e)}}const Fb="tokentracker-skills";async function Ba(e){const t=new URL(`/functions/${Fb}`,window.location.origin);if(e)for(const[s,c]of Object.entries(e))c!=null&&c!==""&&t.searchParams.set(s,String(c));const a=await fetch(t.toString(),{headers:{Accept:"application/json"},cache:"no-store"}),i=await a.json().catch(()=>null);if(!a.ok)throw new Error(i?.error||`Request failed with HTTP ${a.status}`);return i}async function ca(e){const t=await M4(),a=await fetch(`/functions/${Fb}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",...t},cache:"no-store",body:JSON.stringify(e)}),i=await a.json().catch(()=>null);if(!a.ok||i?.ok===!1)throw new Error(i?.error||`Request failed with HTTP ${a.status}`);return i}function L4(){return Ba({mode:"installed"})}function Y5(e={}){return Ba({mode:"discover",...e.force?{force:1}:{}})}function X5(e,t=0,a=20){return Ba({mode:"search",q:e,offset:t,limit:a})}function Z5(){return Ba({mode:"repos"})}function q5(e,t){return ca({action:"install",skill:e,targets:t})}function Q5(e){return ca({action:"uninstall",id:e})}function J5(e){return ca({action:"restore",id:e})}function eI(e,t){return ca({action:"set_targets",id:e,targets:t})}function tI(e,t){return ca({action:"import_local",directory:e,targets:t})}function nI(e,t){return ca({action:"delete_local",directory:e,targets:t||[]})}function rI(e){return ca({action:"add_repo",repo:e})}function aI(e,t){return ca({action:"remove_repo",owner:e,name:t})}function iI(e={}){return Ba({mode:"popular",...e.force?{force:1}:{}})}function oI(e={}){return Ba({mode:"updates",...e.force?{force:1}:{}})}function sI(e={}){return Ba({mode:"skill_usage",...e.force?{force:1}:{}})}const N4=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1");function j4(){const e=sk(),t=d4(),[a,i]=k.useState(!1),[s,c]=k.useState(""),[u,d]=k.useState(0),[p,f]=k.useState([]),g=k.useRef(null),v=k.useRef(null);k.useEffect(()=>{const I=D=>{(D.metaKey||D.ctrlKey)&&(D.key==="k"||D.key==="K")&&(D.preventDefault(),i(Z=>!Z))};return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[]),k.useEffect(()=>{if(!a)return;c(""),d(0);const I=requestAnimationFrame(()=>g.current?.focus());return N4&&!p.length&&L4().then(D=>f(D?.skills||[])).catch(()=>f([])),()=>cancelAnimationFrame(I)},[a,p.length]);const y=k.useMemo(()=>{const I=Qk().flatMap(B=>B.items.map(Z=>({kind:"page",id:`page:${Z.id}`,label:Z.label,sub:He("cmdk.group.pages"),Icon:Z.icon,run:()=>e(Z.to)}))),D=(p||[]).map(B=>({kind:"skill",id:`skill:${B.id||B.directory}`,label:B.name||B.directory,sub:B.repoOwner&&B.repoName?`${B.repoOwner}/${B.repoName}`:He("cmdk.group.skills"),provider:(B.targets||[])[0]||"claude",run:()=>e(`/skills?skill=${encodeURIComponent(B.directory||B.id)}`)}));return[...I,...D]},[e,p]),_=k.useMemo(()=>{const I=s.trim().toLowerCase();return I?y.filter(D=>D.label.toLowerCase().includes(I)||String(D.sub||"").toLowerCase().includes(I)):y},[y,s]);k.useEffect(()=>{u>=_.length&&d(_.length?_.length-1:0)},[u,_.length]),k.useEffect(()=>{if(!a)return;v.current?.querySelector(`[data-cmdk-index="${u}"]`)?.scrollIntoView({block:"nearest"})},[u,a]);const w=k.useCallback(()=>i(!1),[]),P=k.useCallback(I=>{I&&(w(),I.run())},[w]),S=I=>{I.key==="ArrowDown"?(I.preventDefault(),d(D=>Math.min(D+1,Math.max(0,_.length-1)))):I.key==="ArrowUp"?(I.preventDefault(),d(D=>Math.max(D-1,0))):I.key==="Enter"?(I.preventDefault(),P(_[u])):I.key==="Escape"&&(I.preventDefault(),w())},N={duration:t?0:.12},j=t?{duration:0}:{type:"spring",stiffness:460,damping:34,mass:.6};return L.jsx(rR,{children:a?L.jsxs(vy.div,{className:"fixed inset-0 z-[120] flex items-start justify-center px-4 pt-[16vh]",initial:t?!1:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:N,children:[L.jsx("button",{type:"button","aria-label":He("cmdk.close"),onClick:w,className:"absolute inset-0 cursor-default bg-oai-black/40"}),L.jsxs(vy.div,{role:"dialog","aria-modal":"true","aria-label":He("cmdk.open_aria"),initial:t?!1:{opacity:0,y:-8,scale:.985},animate:{opacity:1,y:0,scale:1},exit:t?{opacity:0}:{opacity:0,y:-8,scale:.985},transition:j,className:"relative w-full max-w-xl overflow-hidden rounded-2xl border border-oai-gray-200 bg-oai-white shadow-2xl dark:border-oai-gray-800 dark:bg-oai-gray-950",children:[L.jsxs("div",{className:"flex items-center gap-2.5 border-b border-oai-gray-200 px-4 dark:border-oai-gray-800",children:[L.jsx(XS,{className:"h-4 w-4 shrink-0 text-oai-gray-400","aria-hidden":!0}),L.jsx("input",{ref:g,type:"text",value:s,onChange:I=>{c(I.target.value),d(0)},onKeyDown:S,"aria-label":He("cmdk.placeholder"),"aria-controls":"cmdk-listbox","aria-activedescendant":_[u]?`cmdk-opt-${u}`:void 0,role:"combobox","aria-expanded":"true",placeholder:He("cmdk.placeholder"),className:"h-12 w-full bg-transparent text-sm text-oai-black placeholder:text-oai-gray-400 focus:outline-none dark:text-white"})]}),L.jsx("div",{ref:v,id:"cmdk-listbox",role:"listbox",className:"max-h-[min(56vh,22rem)] overflow-y-auto p-1.5",children:_.length===0?L.jsx("div",{className:"px-3 py-8 text-center text-sm text-oai-gray-500 dark:text-oai-gray-400",children:He("cmdk.empty")}):_.map((I,D)=>{const B=D===u;return L.jsxs("button",{type:"button",role:"option",id:`cmdk-opt-${D}`,"data-cmdk-index":D,"aria-selected":B,onMouseMove:()=>d(D),onClick:()=>P(I),className:Tn("flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left text-sm transition-colors",B?"bg-oai-gray-100 text-oai-black dark:bg-oai-gray-800/70 dark:text-white":"text-oai-gray-700 dark:text-oai-gray-200"),children:[L.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center text-oai-gray-500 dark:text-oai-gray-400",children:I.kind==="skill"?L.jsx(I4,{provider:I.provider,size:16}):L.jsx(I.Icon,{className:"h-4 w-4","aria-hidden":!0})}),L.jsx("span",{className:"min-w-0 flex-1 truncate font-medium",children:I.label}),L.jsx("span",{className:"shrink-0 truncate text-xs text-oai-gray-400 dark:text-oai-gray-500",children:I.sub}),B?L.jsx(AS,{className:"h-3.5 w-3.5 shrink-0 text-oai-gray-400","aria-hidden":!0}):null]},I.id)})})]})]}):null})}function yc(){return typeof window<"u"}function Cf(e){return Tf(e)?(e.nodeName||"").toLowerCase():"#document"}function aa(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function O4(e){var t;return(t=(Tf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tf(e){return yc()?e instanceof Node||e instanceof aa(e).Node:!1}function Ub(e){return yc()?e instanceof Element||e instanceof aa(e).Element:!1}function kc(e){return yc()?e instanceof HTMLElement||e instanceof aa(e).HTMLElement:!1}function fh(e){return!yc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof aa(e).ShadowRoot}function Bb(e){const{overflow:t,overflowX:a,overflowY:i,display:s}=Wb(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+a)&&s!=="inline"&&s!=="contents"}function lI(e){return/^(table|td|th)$/.test(Cf(e))}function z4(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const V4=/transform|translate|scale|rotate|perspective|filter/,F4=/paint|layout|strict|content/,Ra=e=>!!e&&e!=="none";let Ad;function U4(e){const t=Ub(e)?Wb(e):e;return Ra(t.transform)||Ra(t.translate)||Ra(t.scale)||Ra(t.rotate)||Ra(t.perspective)||!B4()&&(Ra(t.backdropFilter)||Ra(t.filter))||V4.test(t.willChange||"")||F4.test(t.contain||"")}function cI(e){let t=ph(e);for(;kc(t)&&!Hb(t);){if(U4(t))return t;if(z4(t))return null;t=ph(t)}return null}function B4(){return Ad==null&&(Ad=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ad}function Hb(e){return/^(html|body|#document)$/.test(Cf(e))}function Wb(e){return aa(e).getComputedStyle(e)}function uI(e){return Ub(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ph(e){if(Cf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fh(e)&&e.host||O4(e);return fh(t)?t.host:t}function $b(e){const t=ph(e);return Hb(t)?e.ownerDocument?e.ownerDocument.body:e.body:kc(t)&&Bb(t)?t:$b(t)}function yy(e,t,a){var i;t===void 0&&(t=[]),a===void 0&&(a=!0);const s=$b(e),c=s===((i=e.ownerDocument)==null?void 0:i.body),u=aa(s);if(c){const d=H4(u);return t.concat(u,u.visualViewport||[],Bb(s)?s:[],d&&a?yy(d):[])}else return t.concat(s,yy(s,[],a))}function H4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ci(e){return e?.ownerDocument||document}const ky={};function ss(e,t){const a=k.useRef(ky);return a.current===ky&&(a.current=e(t)),a}const Md=Ch[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],W4=Md&&Md!==k.useLayoutEffect?Md:e=>e();function rn(e){const t=ss($4).current;return t.next=e,W4(t.effect),t.trampoline}function $4(){const e={next:void 0,callback:G4,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function G4(){}let by=0;function Gb(e){return by+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${by}`}const K4=[];function Kb(e){k.useEffect(e,K4)}const So=0;class Xo{static create(){return new Xo}currentId=So;start(t,a){this.clear(),this.currentId=setTimeout(()=>{this.currentId=So,a()},t)}isStarted(){return this.currentId!==So}clear=()=>{this.currentId!==So&&(clearTimeout(this.currentId),this.currentId=So)};disposeEffect=()=>this.clear}function dI(){const e=ss(Xo.create).current;return Kb(e.disposeEffect),e}const Ni=typeof navigator<"u",Ld=Z4(),Yb=Q4(),Xb=q4(),hI=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),fI=Ld.platform==="MacIntel"&&Ld.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Ld.platform),Y4=Ni&&/apple/i.test(navigator.vendor),pI=Ni&&/android/i.test(Yb)||/android/i.test(Xb);Ni&&Yb.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const X4=Xb.includes("jsdom/");function Z4(){if(!Ni)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function q4(){if(!Ni)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:a})=>`${t}/${a}`).join(" "):navigator.userAgent}function Q4(){if(!Ni)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const _y="data-base-ui-focusable",mI="active",gI="selected",J4="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",vI="ArrowLeft",yI="ArrowRight",kI="ArrowUp",bI="ArrowDown";function Zo(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function za(e,t){if(!e||!t)return!1;const a=t.getRootNode?.();if(e.contains(t))return!0;if(a&&fh(a)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function mh(e){return"composedPath"in e?e.composedPath()[0]:e.target}function _I(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const a=e;return a.target!=null&&t.contains(a.target)}function wI(e){return e.matches("html,body")}function bc(e){return e?.ownerDocument||document}function eD(e){return kc(e)&&e.matches(J4)}function xI(e){return e?e.getAttribute("role")==="combobox"&&eD(e):!1}function gh(e){if(!e||X4)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function PI(e){return e?e.hasAttribute(_y)?e:e.querySelector(`[${_y}]`)||e:null}function ls(e,...t){const a=new URL("https://base-ui.com/production-error");return a.searchParams.set("code",e.toString()),t.forEach(i=>a.searchParams.append("args[]",i)),`Base UI error #${e}; visit ${a} for the full message.`}var tD=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ac=tD.join(","),Zb=typeof Element>"u",Ii=Zb?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ic=!Zb&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},oc=function(t,a){var i;a===void 0&&(a=!0);var s=t==null||(i=t.getAttribute)===null||i===void 0?void 0:i.call(t,"inert"),c=s===""||s==="true",u=c||a&&t&&(typeof t.closest=="function"?t.closest("[inert]"):oc(t.parentNode));return u},nD=function(t){var a,i=t==null||(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"contenteditable");return i===""||i==="true"},qb=function(t,a,i){if(oc(t))return[];var s=Array.prototype.slice.apply(t.querySelectorAll(ac));return a&&Ii.call(t,ac)&&s.unshift(t),s=s.filter(i),s},sc=function(t,a,i){for(var s=[],c=Array.from(t);c.length;){var u=c.shift();if(!oc(u,!1))if(u.tagName==="SLOT"){var d=u.assignedElements(),p=d.length?d:u.children,f=sc(p,!0,i);i.flatten?s.push.apply(s,f):s.push({scopeParent:u,candidates:f})}else{var g=Ii.call(u,ac);g&&i.filter(u)&&(a||!t.includes(u))&&s.push(u);var v=u.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(u),y=!oc(v,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(u));if(v&&y){var _=sc(v===!0?u.children:v.children,!0,i);i.flatten?s.push.apply(s,_):s.push({scopeParent:u,candidates:_})}else c.unshift.apply(c,u.children)}}return s},Qb=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Jb=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||nD(t))&&!Qb(t)?0:t.tabIndex},rD=function(t,a){var i=Jb(t);return i<0&&a&&!Qb(t)?0:i},aD=function(t,a){return t.tabIndex===a.tabIndex?t.documentOrder-a.documentOrder:t.tabIndex-a.tabIndex},e_=function(t){return t.tagName==="INPUT"},iD=function(t){return e_(t)&&t.type==="hidden"},oD=function(t){var a=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(i){return i.tagName==="SUMMARY"});return a},sD=function(t,a){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===a)return t[i]},lD=function(t){if(!t.name)return!0;var a=t.form||ic(t),i=function(d){return a.querySelectorAll('input[type="radio"][name="'+d+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=i(window.CSS.escape(t.name));else try{s=i(t.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var c=sD(s,t.form);return!c||c===t},cD=function(t){return e_(t)&&t.type==="radio"},uD=function(t){return cD(t)&&!lD(t)},dD=function(t){var a,i=t&&ic(t),s=(a=i)===null||a===void 0?void 0:a.host,c=!1;if(i&&i!==t){var u,d,p;for(c=!!((u=s)!==null&&u!==void 0&&(d=u.ownerDocument)!==null&&d!==void 0&&d.contains(s)||t!=null&&(p=t.ownerDocument)!==null&&p!==void 0&&p.contains(t));!c&&s;){var f,g,v;i=ic(s),s=(f=i)===null||f===void 0?void 0:f.host,c=!!((g=s)!==null&&g!==void 0&&(v=g.ownerDocument)!==null&&v!==void 0&&v.contains(s))}}return c},wy=function(t){var a=t.getBoundingClientRect(),i=a.width,s=a.height;return i===0&&s===0},hD=function(t,a){var i=a.displayCheck,s=a.getShadowRoot;if(i==="full-native"&&"checkVisibility"in t){var c=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!c}if(getComputedStyle(t).visibility==="hidden")return!0;var u=Ii.call(t,"details>summary:first-of-type"),d=u?t.parentElement:t;if(Ii.call(d,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="full-native"||i==="legacy-full"){if(typeof s=="function"){for(var p=t;t;){var f=t.parentElement,g=ic(t);if(f&&!f.shadowRoot&&s(f)===!0)return wy(t);t.assignedSlot?t=t.assignedSlot:!f&&g!==t.ownerDocument?t=g.host:t=f}t=p}if(dD(t))return!t.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return wy(t);return!1},fD=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var a=t.parentElement;a;){if(a.tagName==="FIELDSET"&&a.disabled){for(var i=0;i<a.children.length;i++){var s=a.children.item(i);if(s.tagName==="LEGEND")return Ii.call(a,"fieldset[disabled] *")?!0:!s.contains(t)}return!0}a=a.parentElement}return!1},vh=function(t,a){return!(a.disabled||iD(a)||hD(a,t)||oD(a)||fD(a))},yh=function(t,a){return!(uD(a)||Jb(a)<0||!vh(t,a))},pD=function(t){var a=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(a)||a>=0)},t_=function(t){var a=[],i=[];return t.forEach(function(s,c){var u=!!s.scopeParent,d=u?s.scopeParent:s,p=rD(d,u),f=u?t_(s.candidates):d;p===0?u?a.push.apply(a,f):a.push(d):i.push({documentOrder:c,tabIndex:p,item:s,isScope:u,content:f})}),i.sort(aD).reduce(function(s,c){return c.isScope?s.push.apply(s,c.content):s.push(c.content),s},[]).concat(a)},Ef=function(t,a){a=a||{};var i;return a.getShadowRoot?i=sc([t],a.includeContainer,{filter:yh.bind(null,a),flatten:!1,getShadowRoot:a.getShadowRoot,shadowRootFilter:pD}):i=qb(t,a.includeContainer,yh.bind(null,a)),t_(i)},SI=function(t,a){a=a||{};var i;return a.getShadowRoot?i=sc([t],a.includeContainer,{filter:vh.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):i=qb(t,a.includeContainer,vh.bind(null,a)),i},CI=function(t,a){if(a=a||{},!t)throw new Error("No node provided");return Ii.call(t,ac)===!1?!1:yh(a,t)};const Rf=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function n_(e,t){const a=Ef(e,Rf()),i=a.length;if(i===0)return;const s=Zo(bc(e)),c=a.indexOf(s),u=c===-1?t===1?0:i-1:c+t;return a[u]}function mD(e){return n_(bc(e).body,1)||e}function gD(e){return n_(bc(e).body,-1)||e}function r_(e,t){if(!e)return null;const a=Ef(bc(e).body,Rf()),i=a.length;if(i===0)return null;const s=a.indexOf(e);if(s===-1)return null;const c=(s+t+i)%i;return a[c]}function TI(e){return r_(e,1)}function EI(e){return r_(e,-1)}function Nd(e,t){const a=t||e.currentTarget,i=e.relatedTarget;return!i||!za(a,i)}function vD(e){Ef(e,Rf()).forEach(a=>{a.dataset.tabindex=a.getAttribute("tabindex")||"",a.setAttribute("tabindex","-1")})}function xy(e){e.querySelectorAll("[data-tabindex]").forEach(a=>{const i=a.dataset.tabindex;delete a.dataset.tabindex,i?a.setAttribute("tabindex",i):a.removeAttribute("tabindex")})}const Df=k.createContext(void 0);function If(){const e=k.useContext(Df);if(!e)throw new Error(ls(73));return e}function jd(e,t){if(typeof e=="string")return{description:e};if(typeof e=="function"){const a=e(t);return typeof a=="string"?{description:a}:a}return e}const yD=function(t){const{children:a,timeout:i=5e3,limit:s=3,toastManager:c}=t,[u,d]=k.useState([]),[p,f]=k.useState(!1),[g,v]=k.useState(!1),[y,_]=k.useState(null);u.length===0&&(p&&f(!1),g&&v(!1));const w=p||g,P=k.useRef(new Map),S=k.useRef(null),N=k.useRef(!0),j=k.useRef(!1);function I(q){const ae=Zo(Ci(S.current));if(!S.current||!za(S.current,ae)||!gh(ae))return;const ie=u.findIndex(V=>V.id===q);let Q=null,ne=ie+1;for(;ne<u.length;){if(u[ne].transitionStatus!=="ending"){Q=u[ne];break}ne+=1}if(!Q)for(ne=ie-1;ne>=0;){if(u[ne].transitionStatus!=="ending"){Q=u[ne];break}ne-=1}Q?Q.ref?.current?.focus():y?.focus({preventScroll:!0})}const D=rn(()=>{j.current||(j.current=!0,P.current.forEach(q=>{if(q.timeout){q.timeout.clear();const ae=Date.now()-q.start,ie=q.delay-ae;q.remaining=ie>0?ie:0}}))}),B=rn(()=>{j.current&&(j.current=!1,P.current.forEach((q,ae)=>{q.remaining=q.remaining>0?q.remaining:q.delay,q.timeout??=Xo.create(),q.timeout.start(q.remaining,()=>{P.current.delete(ae),q.callback()}),q.start=Date.now()}))}),Z=rn(q=>{d(Q=>{const ne=Q.map(W=>W.id===q?{...W,transitionStatus:"ending",height:0}:W),V=ne.filter(W=>W.transitionStatus!=="ending");return ne.map(W=>{if(W.transitionStatus==="ending")return W;const O=V.indexOf(W)>=s;return{...W,limited:O}})});const ae=P.current.get(q);ae&&ae.timeout&&(ae.timeout.clear(),P.current.delete(q)),u.find(Q=>Q.id===q)?.onClose?.(),I(q),u.length===1&&(f(!1),v(!1))}),oe=rn(q=>{d(ie=>ie.filter(Q=>Q.id!==q)),u.find(ie=>ie.id===q)?.onRemove?.()}),x=rn((q,ae,ie)=>{const Q=Date.now(),ne=N.current&&!p&&!g,V=ne?Xo.create():void 0;V?.start(ae,()=>{P.current.delete(q),ie()}),P.current.set(q,{timeout:V,start:ne?Q:0,delay:ae,remaining:ae,callback:ie})}),ee=rn(q=>{const ae=q.id||Gb("toast"),ie={...q,id:ae,transitionStatus:"starting"};d(ne=>{const V=[ie,...ne],W=V.filter(O=>O.transitionStatus!=="ending");if(W.length>s){const O=W.length-s,E=W.slice(-O);return V.map($=>E.some(de=>de.id===$.id)?{...$,limited:!0}:{...$,limited:!1})}return V.map(O=>({...O,limited:!1}))});const Q=ie.timeout??i;return ie.type!=="loading"&&Q>0&&x(ae,Q,()=>Z(ae)),(p||g||!N.current)&&D(),ae}),Y=rn((q,ae)=>{const ie=u.find(fe=>fe.id===q)??null,Q=ie?{...ie,...ae}:null;if(Fa.flushSync(()=>{d(fe=>fe.map(he=>he.id===q?{...he,...ae}:he))}),!Q)return;const ne=Q.timeout??i,V=ie?.timeout??i,W=Object.hasOwn(ae,"timeout"),O=Q.transitionStatus!=="ending"&&Q.type!=="loading"&&ne>0,E=P.current.has(q),$=V!==ne,de=ie?.type==="loading";if(!O&&E){P.current.get(q)?.timeout?.clear(),P.current.delete(q);return}if(O&&(!E||$||W||de)){const fe=P.current.get(q);fe&&(fe.timeout?.clear(),P.current.delete(q)),x(q,ne,()=>Z(q)),(p||g||!N.current)&&D()}}),ue=rn((q,ae)=>{const ie=jd(ae.loading),Q=ee({...ie,type:"loading"}),ne=q.then(V=>{const W=jd(ae.success,V);return Y(Q,{...W,type:"success",timeout:W.timeout}),V}).catch(V=>{const W=jd(ae.error,V);return Y(Q,{...W,type:"error",timeout:W.timeout}),Promise.reject(V)});return{}.hasOwnProperty.call(ae,"setPromise")&&ae.setPromise(ne),ne});k.useEffect(function(){return c?c[" subscribe"](({action:ie,options:Q})=>{const ne=Q.id;ie==="promise"&&Q.promise?ue(Q.promise,Q):ie==="update"&&ne?Y(ne,Q):ie==="close"&&ne?Z(ne):ee(Q)}):void 0},[ee,Y,x,i,c,ue,Z]);const se=k.useMemo(()=>({toasts:u,setToasts:d,hovering:p,setHovering:f,focused:g,setFocused:v,expanded:w,add:ee,close:Z,remove:oe,update:Y,promise:ue,pauseTimers:D,resumeTimers:B,prevFocusElement:y,setPrevFocusElement:_,viewportRef:S,scheduleTimer:x,windowFocusedRef:N}),[ee,Z,g,p,w,D,y,ue,oe,B,x,u,Y]);return L.jsx(Df.Provider,{value:se,children:a})},a_={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},i_={...a_,position:"fixed",top:0,left:0},RI={...a_,position:"absolute"},kD=()=>{},cs=typeof document<"u"?k.useLayoutEffect:kD,Vo=k.forwardRef(function(t,a){const[i,s]=k.useState();cs(()=>{Y4&&s("button")},[]);const c={tabIndex:0,role:i};return L.jsx("span",{...t,ref:a,style:i_,"aria-hidden":i?void 0:!0,...c,"data-base-ui-focus-guard":""})}),bD=k.createContext(void 0);function Py(e,t,a,i){const s=ss(o_).current;return wD(s,e,t,a,i)&&s_(s,[e,t,a,i]),s.callback}function _D(e){const t=ss(o_).current;return xD(t,e)&&s_(t,e),t.callback}function o_(){return{callback:null,cleanup:null,refs:[]}}function wD(e,t,a,i,s){return e.refs[0]!==t||e.refs[1]!==a||e.refs[2]!==i||e.refs[3]!==s}function xD(e,t){return e.refs.length!==t.length||e.refs.some((a,i)=>a!==t[i])}function s_(e,t){if(e.refs=t,t.every(a=>a==null)){e.callback=null;return}e.callback=a=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),a!=null){const i=Array(t.length).fill(null);for(let s=0;s<t.length;s+=1){const c=t[s];if(c!=null)switch(typeof c){case"function":{const u=c(a);typeof u=="function"&&(i[s]=u);break}case"object":{c.current=a;break}}}e.cleanup=()=>{for(let s=0;s<t.length;s+=1){const c=t[s];if(c!=null)switch(typeof c){case"function":{const u=i[s];typeof u=="function"?u():c(null);break}case"object":{c.current=null;break}}}}}}}const PD=parseInt(k.version,10);function l_(e){return PD>=e}function Sy(e){if(!k.isValidElement(e))return null;const t=e,a=t.props;return(l_(19)?a?.ref:t.ref)??null}function kh(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function SD(e,t){const a={};for(const i in e){const s=e[i];if(t?.hasOwnProperty(i)){const c=t[i](s);c!=null&&Object.assign(a,c);continue}s===!0?a[`data-${i.toLowerCase()}`]="":s&&(a[`data-${i.toLowerCase()}`]=s.toString())}return a}function CD(e,t){return typeof e=="function"?e(t):e}function TD(e,t){return typeof e=="function"?e(t):e}const Fo={};function c_(e,t,a,i,s){let c={...bh(e,Fo)};return t&&(c=Do(c,t)),a&&(c=Do(c,a)),i&&(c=Do(c,i)),s&&(c=Do(c,s)),c}function ED(e){if(e.length===0)return Fo;if(e.length===1)return bh(e[0],Fo);let t={...bh(e[0],Fo)};for(let a=1;a<e.length;a+=1)t=Do(t,e[a]);return t}function Do(e,t){return u_(t)?t(e):RD(e,t)}function RD(e,t){if(!t)return e;for(const a in t){const i=t[a];switch(a){case"style":{e[a]=kh(e.style,i);break}case"className":{e[a]=d_(e.className,i);break}default:DD(a,i)?e[a]=ID(e[a],i):e[a]=i}}return e}function DD(e,t){const a=e.charCodeAt(0),i=e.charCodeAt(1),s=e.charCodeAt(2);return a===111&&i===110&&s>=65&&s<=90&&(typeof t=="function"||typeof t>"u")}function u_(e){return typeof e=="function"}function bh(e,t){return u_(e)?e(t):e??Fo}function ID(e,t){return t?e?a=>{if(AD(a)){const s=a;_h(s);const c=t(s);return s.baseUIHandlerPrevented||e?.(s),c}const i=t(a);return e?.(a),i}:t:e}function _h(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function d_(e,t){return t?e?t+" "+e:t:e}function AD(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function DI(){}const II=Object.freeze([]),Jr=Object.freeze({}),AI=500,MI={style:{transition:"none"}},LI="data-base-ui-click-trigger",NI={fallbackAxisSide:"none"},jI={fallbackAxisSide:"end"},MD={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function us(e,t,a={}){const i=t.render,s=LD(t,a);if(a.enabled===!1)return null;const c=a.state??Jr;return ND(e,i,s,c)}function LD(e,t={}){const{className:a,style:i,render:s}=e,{state:c=Jr,ref:u,props:d,stateAttributesMapping:p,enabled:f=!0}=t,g=f?CD(a,c):void 0,v=f?TD(i,c):void 0,y=f?SD(c,p):Jr,_=f?kh(y,Array.isArray(d)?ED(d):d)??Jr:Jr;return typeof document<"u"&&(f?Array.isArray(u)?_.ref=_D([_.ref,Sy(s),...u]):_.ref=Py(_.ref,Sy(s),u):Py(null,null)),f?(g!==void 0&&(_.className=d_(_.className,g)),v!==void 0&&(_.style=kh(_.style,v)),_):Jr}function ND(e,t,a,i){if(t){if(typeof t=="function")return t(a,i);const s=c_(a,t.props);return s.ref=a.ref,k.cloneElement(t,s)}if(e&&typeof e=="string")return jD(e,a);throw new Error(ls(8))}function jD(e,t){return e==="button"?k.createElement("button",{type:"button",...t,key:t.key}):e==="img"?k.createElement("img",{alt:"",...t,key:t.key}):k.createElement(e,t)}let OD=(function(e){return e.frontmostHeight="--toast-frontmost-height",e})({});const zD=k.forwardRef(function(t,a){const{render:i,className:s,children:c,...u}=t,{toasts:d,pauseTimers:p,resumeTimers:f,setHovering:g,setFocused:v,viewportRef:y,windowFocusedRef:_,prevFocusElement:w,setPrevFocusElement:P,expanded:S,focused:N}=If(),j=k.useRef(!1),I=k.useRef(!1),D=d.length,B=d[0]?.height??0,Z=k.useMemo(()=>d.some(V=>V.transitionStatus==="ending"),[d]);k.useEffect(()=>{if(!y.current)return;function V(O){D!==0&&O.key==="F6"&&O.target!==y.current&&(O.preventDefault(),P(Zo(Ci(y.current))),y.current?.focus({preventScroll:!0}),p(),v(!0))}const W=aa(y.current);return W.addEventListener("keydown",V),()=>{W.removeEventListener("keydown",V)}},[p,v,P,D,y]),k.useEffect(()=>{if(!y.current||!D)return;const V=aa(y.current);function W(E){E.target===V&&(_.current=!1,p())}function O(E){if(E.relatedTarget||E.target===V)return;const $=mh(E),de=Zo(Ci(y.current));(!za(y.current,$)||!gh(de))&&f(),setTimeout(()=>{_.current=!0})}return V.addEventListener("blur",W,!0),V.addEventListener("focus",O,!0),()=>{V.removeEventListener("blur",W,!0),V.removeEventListener("focus",O,!0)}},[p,f,y,_,v,D]),k.useEffect(()=>{const V=y.current;if(!V||D===0)return;const W=Ci(V);function O(E){if(E.pointerType!=="touch")return;const $=mh(E);za(V,$)||(f(),g(!1),v(!1))}return W.addEventListener("pointerdown",O,!0),()=>{W.removeEventListener("pointerdown",O,!0)}},[D,f,v,g,y]);function oe(V){y.current&&(j.current=!0,V.relatedTarget===y.current?d[0]?.ref?.current?.focus():w?.focus({preventScroll:!0}))}function x(V){V.key==="Tab"&&V.shiftKey&&V.target===y.current&&(V.preventDefault(),w?.focus({preventScroll:!0}),f())}k.useEffect(()=>{!_.current||Z||!I.current||(f(),g(!1),I.current=!1)},[Z,f,g,_]);function ee(){p(),g(!0),I.current=!1}function Y(){d.some(V=>V.transitionStatus==="ending")?I.current=!0:(f(),g(!1))}function ue(){if(j.current){j.current=!1;return}N||gh(Ci(y.current).activeElement)&&(v(!0),p())}function se(V){!N||za(y.current,V.relatedTarget)||(v(!1),f())}const q={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:ee,onMouseMove:ee,onMouseLeave:Y,onFocus:ue,onBlur:se,onKeyDown:x,onClick:ue},ae=k.useMemo(()=>({expanded:S}),[S]),ie=us("div",t,{ref:[a,y],state:ae,props:[q,{style:{[OD.frontmostHeight]:B?`${B}px`:void 0}},u,{children:L.jsxs(k.Fragment,{children:[D>0&&w&&L.jsx(Vo,{onFocus:oe}),c,D>0&&w&&L.jsx(Vo,{onFocus:oe})]})}]}),Q=k.useMemo(()=>({viewportRef:y}),[y]),ne=k.useMemo(()=>d.filter(V=>V.priority==="high"),[d]);return L.jsxs(bD.Provider,{value:Q,children:[D>0&&w&&L.jsx(Vo,{onFocus:oe}),ie,!N&&ne.length>0&&L.jsx("div",{style:i_,children:ne.map(V=>L.jsxs("div",{role:"alert","aria-atomic":!0,children:[L.jsx("div",{children:V.title}),L.jsx("div",{children:V.description})]},V.id))})]})});function VD(e){return l_(19)?e:e?"true":void 0}const h_=k.createContext(void 0);function wh(){const e=k.useContext(h_);if(!e)throw new Error(ls(66));return e}let Af=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const FD={[Af.startingStyle]:""},UD={[Af.endingStyle]:""},BD={transitionStatus(e){return e==="starting"?FD:e==="ending"?UD:null}},Tl=null;class HD{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const a=this.callbacks,i=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,i>0)for(let s=0;s<a.length;s+=1)a[s]?.(t)};request(t){const a=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),a}cancel(t){const a=t-this.startId;a<0||a>=this.callbacks.length||(this.callbacks[a]=null,this.callbacksCount-=1)}}const El=new HD;class Mf{static create(){return new Mf}static request(t){return El.request(t)}static cancel(t){return El.cancel(t)}currentId=Tl;request(t){this.cancel(),this.currentId=El.request(()=>{this.currentId=Tl,t()})}cancel=()=>{this.currentId!==Tl&&(El.cancel(this.currentId),this.currentId=Tl)};disposeEffect=()=>this.cancel}function WD(){const e=ss(Mf.create).current;return Kb(e.disposeEffect),e}function $D(e){return e==null?e:"current"in e?e.current:e}function GD(e,t=!1,a=!0){const i=WD();return rn((s,c=null)=>{i.cancel();function u(){Fa.flushSync(s)}const d=$D(e);if(d==null)return;const p=d;if(typeof p.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)s();else{let f=function(){const v=Af.startingStyle;if(!p.hasAttribute(v)){i.request(g);return}const y=new MutationObserver(()=>{p.hasAttribute(v)||(y.disconnect(),g())});y.observe(p,{attributes:!0,attributeFilter:[v]}),c?.addEventListener("abort",()=>y.disconnect(),{once:!0})},g=function(){Promise.all(p.getAnimations().map(v=>v.finished)).then(()=>{c?.aborted||u()}).catch(()=>{const v=p.getAnimations();if(a){if(c?.aborted)return;u()}else v.length>0&&v.some(y=>y.pending||y.playState!=="finished")&&g()})};if(t){f();return}i.request(g)}})}function KD(e){const{enabled:t=!0,open:a,ref:i,onComplete:s}=e,c=rn(s),u=GD(i,a,!1);k.useEffect(()=>{if(!t)return;const d=new AbortController;return u(c,d.signal),()=>{d.abort()}},[t,a,c,u])}let Da=(function(e){return e.index="--toast-index",e.offsetY="--toast-offset-y",e.height="--toast-height",e.swipeMovementX="--toast-swipe-movement-x",e.swipeMovementY="--toast-swipe-movement-y",e})({});const YD={...BD,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},Co=40,XD=10,Xr=.5,ZD=1;function Cy(e,t,a){switch(e){case"up":return-a;case"down":return a;case"left":return-t;case"right":return t;default:return 0}}function qD(e){const a=window.getComputedStyle(e).transform;let i=0,s=0,c=1;if(a&&a!=="none"){const u=a.match(/matrix(?:3d)?\(([^)]+)\)/);if(u){const d=u[1].split(", ").map(parseFloat);d.length===6?(i=d[4],s=d[5],c=Math.sqrt(d[0]*d[0]+d[1]*d[1])):d.length===16&&(i=d[12],s=d[13],c=d[0])}}return{x:i,y:s,scale:c}}const QD=k.forwardRef(function(t,a){const{toast:i,render:s,className:c,swipeDirection:u=["down","right"],...d}=t,p=i.positionerProps?.anchor!==void 0;let f=[];p||(f=Array.isArray(u)?u:[u]);const g=f.length>0,{toasts:v,focused:y,close:_,remove:w,setToasts:P,pauseTimers:S,expanded:N,setHovering:j}=If(),[I,D]=k.useState(void 0),[B,Z]=k.useState(!1),[oe,x]=k.useState(!1),[ee,Y]=k.useState(!1),[ue,se]=k.useState({x:0,y:0}),[q,ae]=k.useState({x:0,y:0,scale:1}),[ie,Q]=k.useState(),[ne,V]=k.useState(),[W,O]=k.useState(null),E=k.useRef(null),$=k.useRef({x:0,y:0}),de=k.useRef({x:0,y:0,scale:1}),fe=k.useRef(void 0),he=k.useRef(0),pe=k.useRef(!1),De=k.useRef({x:0,y:0}),je=k.useRef(!1),Ce=k.useMemo(()=>v.indexOf(i),[i,v]),ut=k.useMemo(()=>v.filter(Le=>Le.transitionStatus!=="ending").indexOf(i),[i,v]),an=k.useMemo(()=>v.slice(0,v.indexOf(i)).reduce((Le,Ae)=>Le+(Ae.height||0),0),[v,i]);KD({open:i.transitionStatus!=="ending",ref:E,onComplete(){i.transitionStatus==="ending"&&w(i.id)}});const Xt=rn((Le=!1)=>{const Ae=E.current;if(!Ae)return;const Ze=Ae.style.height;Ae.style.height="auto";const ot=Ae.offsetHeight;Ae.style.height=Ze;function mt(){P(Je=>Je.map(Ke=>Ke.id===i.id?{...Ke,ref:E,height:ot,transitionStatus:void 0}:Ke))}Le?Fa.flushSync(mt):mt()});cs(Xt,[Xt]);function qe(Le,Ae){let Ze=Le,ot=Ae;return!f.includes("left")&&!f.includes("right")?Ze=Le>0?Le**Xr:-(Math.abs(Le)**Xr):(!f.includes("right")&&Le>0&&(Ze=Le**Xr),!f.includes("left")&&Le<0&&(Ze=-(Math.abs(Le)**Xr))),!f.includes("up")&&!f.includes("down")?ot=Ae>0?Ae**Xr:-(Math.abs(Ae)**Xr):(!f.includes("down")&&Ae>0&&(ot=Ae**Xr),!f.includes("up")&&Ae<0&&(ot=-(Math.abs(Ae)**Xr))),{x:Ze,y:ot}}function Et(Le){if(Le.button!==0)return;Le.pointerType==="touch"&&S();const Ae=mh(Le.nativeEvent);if(!(Ae&&Ae.closest('button,a,input,textarea,[role="button"],[data-swipe-ignore]'))){if(pe.current=!1,fe.current=void 0,he.current=0,$.current={x:Le.clientX,y:Le.clientY},De.current=$.current,E.current){const ot=qD(E.current);de.current=ot,ae(ot),se({x:ot.x,y:ot.y})}j(!0),Z(!0),x(!1),O(null),je.current=!0,E.current?.setPointerCapture(Le.pointerId)}}function ua(Le){if(!B)return;Le.preventDefault(),je.current&&($.current={x:Le.clientX,y:Le.clientY},je.current=!1);const{clientY:Ae,clientX:Ze,movementX:ot,movementY:mt}=Le;(mt<0&&Ae>De.current.y||mt>0&&Ae<De.current.y)&&(De.current={x:De.current.x,y:Ae}),(ot<0&&Ze>De.current.x||ot>0&&Ze<De.current.x)&&(De.current={x:Ze,y:De.current.y});const Je=Ze-$.current.x,Ke=Ae-$.current.y,or=Ae-De.current.y,ji=Ze-De.current.x;if(!oe&&Math.sqrt(Je*Je+Ke*Ke)>=ZD&&(x(!0),W===null)){const Rn=f.includes("left")||f.includes("right"),ha=f.includes("up")||f.includes("down");if(Rn&&ha){const wr=Math.abs(Je),sn=Math.abs(Ke);O(wr>sn?"horizontal":"vertical")}}let Pt;if(!fe.current)W==="vertical"?Ke>0?Pt="down":Ke<0&&(Pt="up"):W==="horizontal"?Je>0?Pt="right":Je<0&&(Pt="left"):Math.abs(Je)>=Math.abs(Ke)?Pt=Je>0?"right":"left":Pt=Ke>0?"down":"up",Pt&&f.includes(Pt)&&(fe.current=Pt,he.current=Cy(Pt,Je,Ke),D(Pt));else{const Gn=fe.current,Rn=Cy(Gn,ji,or);Rn>Co?(pe.current=!1,D(Gn)):!(f.includes("left")&&f.includes("right"))&&!(f.includes("up")&&f.includes("down"))&&he.current-Rn>=XD&&(pe.current=!0)}const sr=qe(Je,Ke);let Ht=de.current.x,$n=de.current.y;W==="horizontal"?(f.includes("left")||f.includes("right"))&&(Ht+=sr.x):(W==="vertical"||(f.includes("left")||f.includes("right"))&&(Ht+=sr.x),(f.includes("up")||f.includes("down"))&&($n+=sr.y)),se({x:Ht,y:$n})}function Ha(Le){if(!B)return;if(Z(!1),x(!1),O(null),E.current?.releasePointerCapture(Le.pointerId),pe.current){se({x:q.x,y:q.y}),D(void 0);return}let Ae=!1;const Ze=ue.x-q.x,ot=ue.y-q.y;let mt;for(const Je of f){switch(Je){case"right":Ze>Co&&(Ae=!0,mt="right");break;case"left":Ze<-Co&&(Ae=!0,mt="left");break;case"down":ot>Co&&(Ae=!0,mt="down");break;case"up":ot<-Co&&(Ae=!0,mt="up");break}if(Ae)break}Ae?(D(mt),Y(!0),_(i.id)):(se({x:q.x,y:q.y}),D(void 0))}function on(Le){if(Le.key==="Escape"){if(!E.current||!za(E.current,Zo(Ci(E.current))))return;_(i.id)}}k.useEffect(()=>{if(!g)return;const Le=E.current;if(!Le)return;function Ae(Ze){za(Le,Ze.target)&&Ze.preventDefault()}return Le.addEventListener("touchmove",Ae,{passive:!1}),()=>{Le.removeEventListener("touchmove",Ae)}},[g]);function Wa(){if(!B&&ue.x===q.x&&ue.y===q.y&&!ee)return{[Da.swipeMovementX]:"0px",[Da.swipeMovementY]:"0px"};const Le=ue.x-q.x,Ae=ue.y-q.y;return{transition:B?"none":void 0,transform:B?`translateX(${ue.x}px) translateY(${ue.y}px) scale(${q.scale})`:void 0,[Da.swipeMovementX]:`${Le}px`,[Da.swipeMovementY]:`${Ae}px`}}const _r=i.priority==="high",Wn={role:_r?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":ie,"aria-describedby":ne,"aria-hidden":_r&&!y?!0:void 0,onPointerDown:g?Et:void 0,onPointerMove:g?ua:void 0,onPointerUp:g?Ha:void 0,onKeyDown:on,inert:VD(i.limited),style:{...Wa(),[Da.index]:i.transitionStatus==="ending"?Ce:ut,[Da.offsetY]:`${an}px`,[Da.height]:i.height?`${i.height}px`:void 0}},Bt=k.useMemo(()=>({rootRef:E,toast:i,titleId:ie,setTitleId:Q,descriptionId:ne,setDescriptionId:V,swiping:B,swipeDirection:I,recalculateHeight:Xt,index:Ce,visibleIndex:ut,expanded:N}),[i,ie,ne,B,I,Xt,Ce,ut,N]),da=k.useMemo(()=>({transitionStatus:i.transitionStatus,expanded:N,limited:i.limited||!1,type:i.type,swiping:Bt.swiping,swipeDirection:Bt.swipeDirection}),[N,i.transitionStatus,i.limited,i.type,Bt.swiping,Bt.swipeDirection]),$a=us("div",t,{ref:[a,Bt.rootRef],state:da,stateAttributesMapping:YD,props:[Wn,d]});return L.jsx(h_.Provider,{value:Bt,children:$a})}),JD={...Ch};let Ty=0;function e5(e,t="mui"){const[a,i]=k.useState(e),s=e||a;return k.useEffect(()=>{a==null&&(Ty+=1,i(`${t}-${Ty}`))},[a,t]),s}const Ey=JD.useId;function f_(e,t){if(Ey!==void 0){const a=Ey();return e??(t?`${t}-${a}`:a)}return e5(e,t)}const t5=k.forwardRef(function(t,a){const{render:i,className:s,id:c,children:u,...d}=t,{toast:p}=wh(),f=u??p.title,g=!!f,v=f_(c),{setTitleId:y}=wh();cs(()=>{if(g)return y(v),()=>{y(void 0)}},[g,v,y]);const _=k.useMemo(()=>({type:p.type}),[p.type]),w=us("h2",t,{ref:a,state:_,props:{...d,id:v,children:f}});return g?w:null}),n5=k.createContext(void 0);function r5(e=!1){const t=k.useContext(n5);if(t===void 0&&!e)throw new Error(ls(16));return t}function a5(e){const{focusableWhenDisabled:t,disabled:a,composite:i=!1,tabIndex:s=0,isNativeButton:c}=e,u=i&&t!==!1,d=i&&t===!1;return{props:k.useMemo(()=>{const f={onKeyDown(g){a&&t&&g.key!=="Tab"&&g.preventDefault()}};return i||(f.tabIndex=s,!c&&a&&(f.tabIndex=t?s:-1)),(c&&(t||u)||!c&&a)&&(f["aria-disabled"]=a),c&&(!t||d)&&(f.disabled=a),f},[i,a,t,u,d,c,s])}}function i5(e={}){const{disabled:t=!1,focusableWhenDisabled:a,tabIndex:i=0,native:s=!0}=e,c=k.useRef(null),u=r5(!0)!==void 0,d=rn(()=>{const y=c.current;return!!(y?.tagName==="A"&&y?.href)}),{props:p}=a5({focusableWhenDisabled:a,disabled:t,composite:u,tabIndex:i,isNativeButton:s}),f=k.useCallback(()=>{const y=c.current;o5(y)&&u&&t&&p.disabled===void 0&&y.disabled&&(y.disabled=!1)},[t,p.disabled,u]);cs(f,[f]);const g=k.useCallback((y={})=>{const{onClick:_,onMouseDown:w,onKeyUp:P,onKeyDown:S,onPointerDown:N,...j}=y;return c_({type:s?"button":void 0,onClick(D){if(t){D.preventDefault();return}_?.(D)},onMouseDown(D){t||w?.(D)},onKeyDown(D){if(t||(_h(D),S?.(D)),D.baseUIHandlerPrevented)return;const B=D.target===D.currentTarget&&!s&&!d()&&!t,Z=D.key==="Enter",oe=D.key===" ";B&&((oe||Z)&&D.preventDefault(),Z&&_?.(D))},onKeyUp(D){t||(_h(D),P?.(D)),!D.baseUIHandlerPrevented&&D.target===D.currentTarget&&!s&&!t&&D.key===" "&&_?.(D)},onPointerDown(D){if(t){D.preventDefault();return}N?.(D)}},s?void 0:{role:"button"},p,j)},[t,p,s,d]),v=rn(y=>{c.current=y,f()});return{getButtonProps:g,buttonRef:v}}function o5(e){return kc(e)&&e.tagName==="BUTTON"}const s5=k.forwardRef(function(t,a){const{render:i,className:s,disabled:c,nativeButton:u=!0,...d}=t,{close:p,expanded:f}=If(),{toast:g}=wh(),[v,y]=k.useState(!1),{getButtonProps:_,buttonRef:w}=i5({disabled:c,native:u}),P=k.useMemo(()=>({type:g.type}),[g.type]);return us("button",t,{ref:[a,w],state:P,props:[{"aria-hidden":!f&&!v,onClick(){p(g.id)},onFocus(){y(!0)},onBlur(){y(!1)}},d,_]})}),OI="none",zI="trigger-press",VI="trigger-hover",FI="outside-press",UI="item-press",BI="close-press",l5="focus-out",HI="escape-key",WI="list-navigation",$I="cancel-open",GI="imperative-action",KI="window-resize";function c5(e,t,a,i){let s=!1,c=!1;const u=Jr;return{reason:e,event:t??new Event("base-ui"),cancel(){s=!0},allowPropagation(){c=!0},get isCanceled(){return s},get isPropagationAllowed(){return c},trigger:a,...u}}function u5(e){return`data-base-ui-${e}`}const p_=k.createContext(null),d5=()=>k.useContext(p_),h5=u5("portal");function m_(e={}){const{ref:t,container:a,componentProps:i=Jr,elementProps:s,elementState:c}=e,u=f_(),p=d5()?.portalNode,[f,g]=k.useState(null),[v,y]=k.useState(null),_=rn(N=>{N!==null&&y(N)}),w=k.useRef(null);cs(()=>{if(a===null){w.current&&(w.current=null,y(null),g(null));return}if(u==null)return;const N=(a&&(Tf(a)?a:a.current))??p??document.body;if(N==null){w.current&&(w.current=null,y(null),g(null));return}w.current!==N&&(w.current=N,y(null),g(N))},[a,p,u]);const P=us("div",i,{ref:[t,_],state:c,props:[{id:u,[h5]:""},s]});return{portalNode:v,portalSubtree:f&&P?Fa.createPortal(P,f):null}}const YI=k.forwardRef(function(t,a){const{children:i,container:s,className:c,render:u,renderGuards:d,...p}=t,{portalNode:f,portalSubtree:g}=m_({container:s,ref:a,componentProps:t,elementProps:p}),v=k.useRef(null),y=k.useRef(null),_=k.useRef(null),w=k.useRef(null),[P,S]=k.useState(null),N=P?.modal,j=P?.open,I=typeof d=="boolean"?d:!!P&&!P.modal&&P.open&&!!f;k.useEffect(()=>{if(!f||N)return;function B(Z){f&&Z.relatedTarget&&Nd(Z)&&(Z.type==="focusin"?xy:vD)(f)}return f.addEventListener("focusin",B,!0),f.addEventListener("focusout",B,!0),()=>{f.removeEventListener("focusin",B,!0),f.removeEventListener("focusout",B,!0)}},[f,N]),k.useEffect(()=>{!f||j||xy(f)},[j,f]);const D=k.useMemo(()=>({beforeOutsideRef:v,afterOutsideRef:y,beforeInsideRef:_,afterInsideRef:w,portalNode:f,setFocusManagerState:S}),[f]);return L.jsxs(k.Fragment,{children:[g,L.jsxs(p_.Provider,{value:D,children:[I&&f&&L.jsx(Vo,{"data-type":"outside",ref:v,onFocus:B=>{if(Nd(B,f))_.current?.focus();else{const Z=P?P.domReference:null;gD(Z)?.focus()}}}),I&&f&&L.jsx("span",{"aria-owns":f.id,style:MD}),f&&Fa.createPortal(i,f),I&&f&&L.jsx(Vo,{"data-type":"outside",ref:y,onFocus:B=>{if(Nd(B,f))w.current?.focus();else{const Z=P?P.domReference:null;mD(Z)?.focus(),P?.closeOnFocusOut&&P?.onOpenChange(!1,c5(l5,B.nativeEvent))}}})]})]})}),f5=k.forwardRef(function(t,a){const{children:i,container:s,className:c,render:u,...d}=t,{portalNode:p,portalSubtree:f}=m_({container:s,ref:a,componentProps:t,elementProps:d});return!f&&!p?null:L.jsxs(k.Fragment,{children:[f,p&&Fa.createPortal(i,p)]})}),p5=f5;function m5(){const e=k.useContext(Df);if(!e)throw new Error(ls(73));const{toasts:t,add:a,close:i,update:s,promise:c}=e;return k.useMemo(()=>({toasts:t,add:a,close:i,update:s,promise:c}),[t,a,i,s,c])}function g5(){const e=[];function t(a){e.forEach(i=>i(a))}return{" subscribe":function(i){return e.push(i),()=>{const s=e.indexOf(i);s!==-1&&e.splice(s,1)}},add(a){const i=a.id||Gb("toast"),s={...a,id:i,transitionStatus:"starting"};return t({action:"add",options:s}),i},close(a){t({action:"close",options:{id:a}})},update(a,i){t({action:"update",options:{...i,id:a}})},promise(a,i){let s=a;return t({action:"promise",options:{...i,promise:a,setPromise(c){s=c}}}),s}}}const Lf=g5();function XI(e){return Lf.add(e)}function v5({children:e}){return L.jsxs(yD,{toastManager:Lf,children:[e,L.jsx(p5,{children:L.jsx(zD,{className:"fixed inset-x-0 top-6 z-[100] mx-auto flex w-full max-w-sm flex-col items-center gap-2 px-4 outline-none",children:L.jsx(y5,{})})})]})}function y5(){const{toasts:e}=m5();return e.map(t=>{const a=t.data?.onUndo;return L.jsxs(QD,{toast:t,className:Tn("pointer-events-auto flex w-full items-center gap-3 rounded-xl border border-oai-gray-200 bg-oai-white px-4 py-3 shadow-xl transition-all duration-200 ease-out","data-[starting-style]:-translate-y-3 data-[starting-style]:opacity-0","data-[ending-style]:-translate-y-3 data-[ending-style]:opacity-0","dark:border-oai-gray-800 dark:bg-oai-gray-900"),children:[L.jsx(t5,{className:"min-w-0 flex-1 text-sm font-medium text-oai-black dark:text-white"}),a?L.jsx("button",{type:"button",onClick:()=>{a(),Lf.close(t.id)},className:"shrink-0 rounded-md px-2 py-1 text-xs font-semibold text-oai-gray-600 transition-colors hover:bg-oai-gray-100 hover:text-oai-black focus:outline-none focus:ring-2 focus:ring-oai-gray-400/30 dark:text-oai-gray-300 dark:hover:bg-oai-gray-800 dark:hover:text-white",children:He("shared.action.undo")}):null,L.jsx(s5,{"aria-label":He("shared.action.dismiss"),className:"-mr-1 inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-oai-gray-400 transition-colors hover:bg-oai-gray-100 hover:text-oai-black focus:outline-none focus:ring-2 focus:ring-oai-gray-400/30 dark:hover:bg-oai-gray-800 dark:hover:text-white",children:L.jsx(Lk,{className:"h-3.5 w-3.5","aria-hidden":!0})})]},t.id)})}const g_=Object.freeze(["limits"]),k5=Object.freeze({limits:"/limits"}),b5=Object.freeze({limits:()=>oa(()=>import("./LimitsPage-C1y75ftN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))}),_5=Object.freeze(["dashboard-existing","silent-preload","page-load","manual-refresh"]);let Ry=0,ia;class w5{constructor(){this.limits=null}read(t,a){return ds(t),!this.limits||this.limits.contextKey!==a?null:xh(this.limits)}write(t){this.limits=t}snapshot(){return{limits:xh(this.limits)}}}class x5{constructor(){Ry+=1,this.sessionId=`dashboard-preload-${Ry}`,this.createdAt=Date.now(),this.completedAt=null,this.startedAfterMainContentVisible=!1,this.cache=new w5,this.targets={limits:P5("limits")}}}function P5(e){return{key:e,route:k5[e],resourceStatus:"idle",stateStatus:"idle",error:null,resourcePromise:null,resourceModule:null,resourceRequestId:0,statePromise:null,stateRequestId:0,pendingStateContextKey:null}}function S5(){return new x5}ia=S5();function ds(e){if(!g_.includes(e))throw new Error(`Unknown dashboard preload target: ${e}`)}function v_(e){return e?typeof e=="string"?e:e.message||String(e):null}function C5(e,t){return _5.includes(e)?e:t}function T5(e){const t=Number(e);return Number.isFinite(t)?t:Date.now()}function xh(e){return e?{...e}:null}function Dy(){const e=g_.every(t=>{const a=ia.targets[t];return a.resourceStatus==="fulfilled"||a.resourceStatus==="rejected"});ia.completedAt=e?Date.now():null}function E5(){ia.startedAfterMainContentVisible=!0}function y_(e,t={}){ds(e);const a=Object.entries(t).filter(([,i])=>i!==void 0).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>`${i}=${s===null?"null":String(s)}`);return`${e}:${a.join("|")}`}function R5(e,t={}){ds(e);const a=ia.targets[e];if(a.resourceStatus==="fulfilled")return Promise.resolve(a.resourceModule);if(a.resourceStatus==="pending"&&a.resourcePromise)return a.resourcePromise;const i=t.loader||b5[e],s=a.resourceRequestId+1;a.resourceRequestId=s,a.resourceStatus="pending",a.error=null;const c=Promise.resolve().then(()=>i()).then(u=>a.resourceRequestId!==s||a.resourcePromise!==c?null:(a.resourceStatus="fulfilled",a.resourceModule=u,a.error=null,Dy(),u)).catch(u=>(a.resourceRequestId!==s||a.resourcePromise!==c||(a.resourceStatus="rejected",a.error=v_(u),Dy()),null));return a.resourcePromise=c,c}function D5(e,t){ds(e);const a=ia.targets[e],i=t?.status,s={targetKey:e,status:i,data:t?.data??null,error:v_(t?.error),source:C5(t?.source,"silent-preload"),generatedAt:T5(t?.generatedAt),updatedAt:Date.now(),contextKey:t?.contextKey||y_(e,t?.context||{})};return a.stateStatus=i,i==="rejected"||i==="skipped"?a.error=s.error:i==="fulfilled"&&(a.error=null,ia.cache.write(s)),xh(s)}function I5(e,t){return ds(e),ia.cache.read(e,t)}function ZI(e,t={}){return D5("limits",{data:e,source:t.source||"dashboard-existing",contextKey:t.contextKey||k_(t.context||{}),generatedAt:t.generatedAt,status:t.status||"fulfilled",error:t.error})}function k_(e={}){return y_("limits",{state:"current",...e})}function qI(e=k_()){return I5("limits",e)}const A5=k.lazy(()=>oa(()=>import("./DashboardPage-C7b_GjA-.js"),__vite__mapDeps([10,2,3,1,4,11,12,13,5,14,6])).then(e=>({default:e.DashboardPage}))),M5=k.lazy(()=>oa(()=>import("./IpCheckPage-CYgWVZJr.js"),[])),L5=k.lazy(()=>oa(()=>import("./LimitsPage-C1y75ftN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.LimitsPage}))),N5=k.lazy(()=>oa(()=>import("./WrappedPage-BgkuBG_j.js"),__vite__mapDeps([15,3]))),j5=k.lazy(()=>oa(()=>import("./SettingsPage-9K5ST4D_.js"),__vite__mapDeps([16,4,11,14,13,17,5,9])).then(e=>({default:e.SettingsPage}))),O5=k.lazy(()=>oa(()=>import("./SkillsPage-BpCSS7ls.js"),__vite__mapDeps([18,7,8,9,2,3,5,12,13,11])).then(e=>({default:e.SkillsPage}))),z5=k.lazy(()=>oa(()=>import("./WidgetsPage-aBisLWrM.js"),__vite__mapDeps([19,14,13,17,5,6,8,9])).then(e=>({default:e.WidgetsPage})));function V5(){const{resolvedLocale:e}=Nk(),t=Hn(),a=k.useRef(!1),i=k.useRef(!1);k.useMemo(()=>typeof window>"u"?!1:lC(window.location.search),[]);const s=t?.pathname||"/",c=sC(),u=s.replace(/\/+$/,"")||"/",d=u==="/"||u==="/dashboard",p=u==="/limits",f=u==="/settings",g=u==="/skills",v=u==="/widgets",y=u==="/ip-check",_=u==="/wrapped",w=k.useCallback(()=>{d&&(a.current||(a.current=!0,E5()),i.current||(i.current=!0,R5("limits")))},[d]);let P=A5;p?P=L5:f?P=j5:g?P=O5:v?P=z5:y&&(P=M5);const S=u==="/dashboard"||u==="/"||p||f||g||v||y;let N=null;if(_)N=L.jsx(N5,{});else{const j=L.jsx(P,{baseUrl:c,onMainContentVisible:w},e);N=S?L.jsx(h2,{children:j}):j}return L.jsx(rC,{children:L.jsx(oC,{children:L.jsxs(v5,{children:[L.jsx(k.Suspense,{fallback:null,children:N}),S?L.jsx(j4,{}):null]})})})}const F5=vP([{path:"*",element:L.jsx(V5,{})}]);l1.createRoot(document.getElementById("root")).render(L.jsx(Sh.StrictMode,{children:L.jsx(aS,{children:L.jsx(gS,{children:L.jsx(RP,{router:F5})})})}));export{Un as $,rR as A,nC as B,Wo as C,Nk as D,lC as E,ZI as F,qI as G,M4 as H,Xh as I,Ql as J,Mk as K,dc as L,xf as M,Ak as N,BS as O,I4 as P,G5 as Q,Sh as R,qS as S,Ei as T,Wl as U,gk as V,vk as W,Lk as X,yk as Y,mk as Z,KS as _,At as a,W5 as a$,Lo as a0,$5 as a1,H5 as a2,ls as a3,rn as a4,cs as a5,DI as a6,Py as a7,c_ as a8,Jr as a9,u5 as aA,J4 as aB,VI as aC,bc as aD,mh as aE,za as aF,PI as aG,Xo as aH,YI as aI,VD as aJ,GI as aK,zI as aL,HI as aM,AI as aN,l5 as aO,Kb as aP,LI as aQ,Vo as aR,EI as aS,Nd as aT,TI as aU,mD as aV,jI as aW,GD as aX,kc as aY,mS as aZ,$h as a_,RI as aa,i_ as ab,OI as ac,KD as ad,BD as ae,L4 as af,Z5 as ag,Y5 as ah,iI as ai,oI as aj,sI as ak,XS as al,X5 as am,q5 as an,XI as ao,Q5 as ap,nI as aq,J5 as ar,eI as as,tI as at,aI as au,rI as av,f_ as aw,ss as ax,Ub as ay,dI as az,e0 as b,Hh as b0,B5 as b1,pI as b2,X4 as b3,kI as b4,bI as b5,vI as b6,yI as b7,Cf as b8,xI as b9,_I as bA,Ph as bB,l_ as bC,Mf as bD,_y as bE,mI as bF,gI as bG,WI as bH,II as bI,Ci as bJ,Af as bK,fI as bL,hI as bM,$I as bN,NI as bO,MI as bP,KI as bQ,UI as bR,d5 as ba,WD as bb,Ef as bc,Rf as bd,$D as be,Zo as bf,FI as bg,gD as bh,CI as bi,aa as bj,SI as bk,Wb as bl,eD as bm,yy as bn,O4 as bo,H4 as bp,B4 as bq,z4 as br,ph as bs,Hb as bt,lI as bu,U4 as bv,cI as bw,Bb as bx,uI as by,wI as bz,Mt as c,ra as d,mv as e,Qe as f,i5 as g,us as h,l3 as i,L as j,c5 as k,BI as l,Di as m,d4 as n,vy as o,He as p,JC as q,k as r,Fa as s,ud as t,Zh as u,U5 as v,DS as w,Tn as x,ES as y,wk as z};