tokentracker-cli 0.33.0 → 0.35.0

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 (47) hide show
  1. package/dashboard/dist/assets/{ActivityHeatmap-C5lQst9A.js → ActivityHeatmap-_zJmKtP2.js} +1 -1
  2. package/dashboard/dist/assets/{Card-CTEL3aXx.js → Card-BS2ABbwq.js} +1 -1
  3. package/dashboard/dist/assets/DashboardPage-DlkR4Y-l.js +19 -0
  4. package/dashboard/dist/assets/{DevicePage-D4bkFEEt.js → DevicePage-BS_MwVUp.js} +1 -1
  5. package/dashboard/dist/assets/DialogTitle-CSNWjYGj.js +12 -0
  6. package/dashboard/dist/assets/{FadeIn-BXVxQ51G.js → FadeIn-DIxWR6-M.js} +1 -1
  7. package/dashboard/dist/assets/{HeaderGithubStar-BxYJXuVn.js → HeaderGithubStar-CLeDseVx.js} +1 -1
  8. package/dashboard/dist/assets/{IpCheckPage-B3Se3vu3.js → IpCheckPage-BltMdT8r.js} +4 -4
  9. package/dashboard/dist/assets/{LandingPage-B-AM1mgc.js → LandingPage-Ckmf_iGO.js} +1 -1
  10. package/dashboard/dist/assets/{LeaderboardAvatar-BNpzqU-s.js → LeaderboardAvatar-aZZacexT.js} +1 -1
  11. package/dashboard/dist/assets/LeaderboardPage-Chm7475Z.js +6 -0
  12. package/dashboard/dist/assets/{LeaderboardProfileModal-BXUUSlGG.js → LeaderboardProfileModal-B9iPWc5O.js} +1 -1
  13. package/dashboard/dist/assets/LeaderboardProfilePage-B268HOjB.js +1 -0
  14. package/dashboard/dist/assets/LimitsPage-BsLzNCO6.js +2 -0
  15. package/dashboard/dist/assets/{LocalOnlyNotice-ilp-Q8oP.js → LocalOnlyNotice-DFg7yglW.js} +1 -1
  16. package/dashboard/dist/assets/LoginPage-DVCpTEii.js +1 -0
  17. package/dashboard/dist/assets/{PopoverPopup-BvUHJ3fH.js → PopoverPopup-DzFBEvzq.js} +1 -1
  18. package/dashboard/dist/assets/SettingsPage-D2gehORd.js +1 -0
  19. package/dashboard/dist/assets/SkillsPage-CDIbfAxi.js +1 -0
  20. package/dashboard/dist/assets/{WidgetsPage-DEsp4TVs.js → WidgetsPage-DnrCBswn.js} +1 -1
  21. package/dashboard/dist/assets/{WrappedPage-3kImp9sV.js → WrappedPage-BXbapLiE.js} +1 -1
  22. package/dashboard/dist/assets/{agent-logos-4uqTG-g5.js → agent-logos-BT_3vfG7.js} +1 -1
  23. package/dashboard/dist/assets/{arrow-up-right-C6REzMq8.js → arrow-up-right-U3GN7ZK8.js} +1 -1
  24. package/dashboard/dist/assets/check-Bdnp5EHR.js +1 -0
  25. package/dashboard/dist/assets/{chevron-down-p9KAHQhU.js → chevron-down-BdbYSxLt.js} +1 -1
  26. package/dashboard/dist/assets/{download-CvJjPKnF.js → download-Cgae7DJA.js} +1 -1
  27. package/dashboard/dist/assets/{info-R9MgHQlV.js → info-lAuE6Iqy.js} +1 -1
  28. package/dashboard/dist/assets/main-BJQZ96HP.js +964 -0
  29. package/dashboard/dist/assets/{use-limits-display-prefs-CbobmO9m.js → use-limits-display-prefs-BOMVZxxS.js} +1 -1
  30. package/dashboard/dist/assets/{use-native-settings-DtFQtjxR.js → use-native-settings-CDAuv4ZG.js} +1 -1
  31. package/dashboard/dist/assets/use-usage-limits-CvfL47sK.js +1 -0
  32. package/dashboard/dist/assets/{useCurrency-D8PqG8hW.js → useCurrency-B562nxEx.js} +1 -1
  33. package/dashboard/dist/index.html +1 -1
  34. package/dashboard/dist/share.html +1 -1
  35. package/package.json +1 -1
  36. package/src/lib/pricing/seed-snapshot.json +1 -1
  37. package/dashboard/dist/assets/DashboardPage-D7Zl3qdP.js +0 -19
  38. package/dashboard/dist/assets/DialogTitle-DD717-IL.js +0 -12
  39. package/dashboard/dist/assets/LeaderboardPage-BwlrqFjQ.js +0 -6
  40. package/dashboard/dist/assets/LeaderboardProfilePage-CBXZv4R_.js +0 -1
  41. package/dashboard/dist/assets/LimitsPage-Cnk3Do9Y.js +0 -2
  42. package/dashboard/dist/assets/LoginPage-69LMUSLd.js +0 -1
  43. package/dashboard/dist/assets/SettingsPage-B5XGzOcZ.js +0 -1
  44. package/dashboard/dist/assets/SkillsPage-tCvpIDbZ.js +0 -1
  45. package/dashboard/dist/assets/check-DF1-jcTm.js +0 -1
  46. package/dashboard/dist/assets/main-DdKVCJWa.js +0 -964
  47. package/dashboard/dist/assets/use-usage-limits-BwMwzl_A.js +0 -1
@@ -1,964 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-D7Zl3qdP.js","assets/use-usage-limits-BwMwzl_A.js","assets/useCurrency-D8PqG8hW.js","assets/ActivityHeatmap-C5lQst9A.js","assets/info-R9MgHQlV.js","assets/DialogTitle-DD717-IL.js","assets/Card-CTEL3aXx.js","assets/agent-logos-4uqTG-g5.js","assets/PopoverPopup-BvUHJ3fH.js","assets/FadeIn-BXVxQ51G.js","assets/LandingPage-B-AM1mgc.js","assets/HeaderGithubStar-BxYJXuVn.js","assets/LeaderboardPage-BwlrqFjQ.js","assets/LeaderboardAvatar-BNpzqU-s.js","assets/chevron-down-p9KAHQhU.js","assets/LeaderboardProfilePage-CBXZv4R_.js","assets/LeaderboardProfileModal-BXUUSlGG.js","assets/arrow-up-right-C6REzMq8.js","assets/check-DF1-jcTm.js","assets/LimitsPage-Cnk3Do9Y.js","assets/use-limits-display-prefs-CbobmO9m.js","assets/LocalOnlyNotice-ilp-Q8oP.js","assets/download-CvJjPKnF.js","assets/SettingsPage-B5XGzOcZ.js","assets/use-native-settings-DtFQtjxR.js","assets/SkillsPage-tCvpIDbZ.js","assets/WidgetsPage-DEsp4TVs.js"])))=>i.map(i=>d[i]);
2
- function xC(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(a,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function q_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function PC(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function a(){var o=!1;try{o=this instanceof a}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}),n}var Jh={exports:{}},Rs={},ef={exports:{}},Je={};var $v;function SC(){if($v)return Je;$v=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function v(I){return I===null||typeof I!="object"?null:(I=y&&I[y]||I["@@iterator"],typeof I=="function"?I:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function C(I,W,me){this.props=I,this.context=W,this.refs=S,this.updater=me||_}C.prototype.isReactComponent={},C.prototype.setState=function(I,W){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,W,"setState")},C.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function D(){}D.prototype=C.prototype;function M(I,W,me){this.props=I,this.context=W,this.refs=S,this.updater=me||_}var E=M.prototype=new D;E.constructor=M,x(E,C.prototype),E.isPureReactComponent=!0;var A=Array.isArray,B=Object.prototype.hasOwnProperty,z={current:null},H={key:!0,ref:!0,__self:!0,__source:!0};function P(I,W,me){var pe,ye={},xe=null,Fe=null;if(W!=null)for(pe in W.ref!==void 0&&(Fe=W.ref),W.key!==void 0&&(xe=""+W.key),W)B.call(W,pe)&&!H.hasOwnProperty(pe)&&(ye[pe]=W[pe]);var Ye=arguments.length-2;if(Ye===1)ye.children=me;else if(1<Ye){for(var je=Array(Ye),Rt=0;Rt<Ye;Rt++)je[Rt]=arguments[Rt+2];ye.children=je}if(I&&I.defaultProps)for(pe in Ye=I.defaultProps,Ye)ye[pe]===void 0&&(ye[pe]=Ye[pe]);return{$$typeof:e,type:I,key:xe,ref:Fe,props:ye,_owner:z.current}}function Z(I,W){return{$$typeof:e,type:I.type,key:W,ref:I.ref,props:I.props,_owner:I._owner}}function X(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function fe(I){var W={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(me){return W[me]})}var he=/\/+/g;function Q(I,W){return typeof I=="object"&&I!==null&&I.key!=null?fe(""+I.key):W.toString(36)}function J(I,W,me,pe,ye){var xe=typeof I;(xe==="undefined"||xe==="boolean")&&(I=null);var Fe=!1;if(I===null)Fe=!0;else switch(xe){case"string":case"number":Fe=!0;break;case"object":switch(I.$$typeof){case e:case t:Fe=!0}}if(Fe)return Fe=I,ye=ye(Fe),I=pe===""?"."+Q(Fe,0):pe,A(ye)?(me="",I!=null&&(me=I.replace(he,"$&/")+"/"),J(ye,W,me,"",function(Rt){return Rt})):ye!=null&&(X(ye)&&(ye=Z(ye,me+(!ye.key||Fe&&Fe.key===ye.key?"":(""+ye.key).replace(he,"$&/")+"/")+I)),W.push(ye)),1;if(Fe=0,pe=pe===""?".":pe+":",A(I))for(var Ye=0;Ye<I.length;Ye++){xe=I[Ye];var je=pe+Q(xe,Ye);Fe+=J(xe,W,me,je,ye)}else if(je=v(I),typeof je=="function")for(I=je.call(I),Ye=0;!(xe=I.next()).done;)xe=xe.value,je=pe+Q(xe,Ye++),Fe+=J(xe,W,me,je,ye);else if(xe==="object")throw W=String(I),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return Fe}function te(I,W,me){if(I==null)return I;var pe=[],ye=0;return J(I,pe,"","",function(xe){return W.call(me,xe,ye++)}),pe}function ee(I){if(I._status===-1){var W=I._result;W=W(),W.then(function(me){(I._status===0||I._status===-1)&&(I._status=1,I._result=me)},function(me){(I._status===0||I._status===-1)&&(I._status=2,I._result=me)}),I._status===-1&&(I._status=0,I._result=W)}if(I._status===1)return I._result.default;throw I._result}var se={current:null},F={transition:null},Y={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:F,ReactCurrentOwner:z};function V(){throw Error("act(...) is not supported in production builds of React.")}return Je.Children={map:te,forEach:function(I,W,me){te(I,function(){W.apply(this,arguments)},me)},count:function(I){var W=0;return te(I,function(){W++}),W},toArray:function(I){return te(I,function(W){return W})||[]},only:function(I){if(!X(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},Je.Component=C,Je.Fragment=n,Je.Profiler=o,Je.PureComponent=M,Je.StrictMode=a,Je.Suspense=f,Je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,Je.act=V,Je.cloneElement=function(I,W,me){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var pe=x({},I.props),ye=I.key,xe=I.ref,Fe=I._owner;if(W!=null){if(W.ref!==void 0&&(xe=W.ref,Fe=z.current),W.key!==void 0&&(ye=""+W.key),I.type&&I.type.defaultProps)var Ye=I.type.defaultProps;for(je in W)B.call(W,je)&&!H.hasOwnProperty(je)&&(pe[je]=W[je]===void 0&&Ye!==void 0?Ye[je]:W[je])}var je=arguments.length-2;if(je===1)pe.children=me;else if(1<je){Ye=Array(je);for(var Rt=0;Rt<je;Rt++)Ye[Rt]=arguments[Rt+2];pe.children=Ye}return{$$typeof:e,type:I.type,key:ye,ref:xe,props:pe,_owner:Fe}},Je.createContext=function(I){return I={$$typeof:l,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:s,_context:I},I.Consumer=I},Je.createElement=P,Je.createFactory=function(I){var W=P.bind(null,I);return W.type=I,W},Je.createRef=function(){return{current:null}},Je.forwardRef=function(I){return{$$typeof:u,render:I}},Je.isValidElement=X,Je.lazy=function(I){return{$$typeof:m,_payload:{_status:-1,_result:I},_init:ee}},Je.memo=function(I,W){return{$$typeof:h,type:I,compare:W===void 0?null:W}},Je.startTransition=function(I){var W=F.transition;F.transition={};try{I()}finally{F.transition=W}},Je.unstable_act=V,Je.useCallback=function(I,W){return se.current.useCallback(I,W)},Je.useContext=function(I){return se.current.useContext(I)},Je.useDebugValue=function(){},Je.useDeferredValue=function(I){return se.current.useDeferredValue(I)},Je.useEffect=function(I,W){return se.current.useEffect(I,W)},Je.useId=function(){return se.current.useId()},Je.useImperativeHandle=function(I,W,me){return se.current.useImperativeHandle(I,W,me)},Je.useInsertionEffect=function(I,W){return se.current.useInsertionEffect(I,W)},Je.useLayoutEffect=function(I,W){return se.current.useLayoutEffect(I,W)},Je.useMemo=function(I,W){return se.current.useMemo(I,W)},Je.useReducer=function(I,W,me){return se.current.useReducer(I,W,me)},Je.useRef=function(I){return se.current.useRef(I)},Je.useState=function(I){return se.current.useState(I)},Je.useSyncExternalStore=function(I,W,me){return se.current.useSyncExternalStore(I,W,me)},Je.useTransition=function(){return se.current.useTransition()},Je.version="18.3.1",Je}var Hv;function qp(){return Hv||(Hv=1,ef.exports=SC()),ef.exports}var Wv;function CC(){if(Wv)return Rs;Wv=1;var e=qp(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(u,f,h){var m,y={},v=null,_=null;h!==void 0&&(v=""+h),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(_=f.ref);for(m in f)a.call(f,m)&&!s.hasOwnProperty(m)&&(y[m]=f[m]);if(u&&u.defaultProps)for(m in f=u.defaultProps,f)y[m]===void 0&&(y[m]=f[m]);return{$$typeof:t,type:u,key:v,ref:_,props:y,_owner:o.current}}return Rs.Fragment=n,Rs.jsx=l,Rs.jsxs=l,Rs}var Gv;function TC(){return Gv||(Gv=1,Jh.exports=CC()),Jh.exports}var T=TC(),k=qp();const al=q_(k),Yp=xC({__proto__:null,default:al},[k]);var jc={},tf={exports:{}},En={},nf={exports:{}},af={};var Kv;function EC(){return Kv||(Kv=1,(function(e){function t(F,Y){var V=F.length;F.push(Y);e:for(;0<V;){var I=V-1>>>1,W=F[I];if(0<o(W,Y))F[I]=Y,F[V]=W,V=I;else break e}}function n(F){return F.length===0?null:F[0]}function a(F){if(F.length===0)return null;var Y=F[0],V=F.pop();if(V!==Y){F[0]=V;e:for(var I=0,W=F.length,me=W>>>1;I<me;){var pe=2*(I+1)-1,ye=F[pe],xe=pe+1,Fe=F[xe];if(0>o(ye,V))xe<W&&0>o(Fe,ye)?(F[I]=Fe,F[xe]=V,I=xe):(F[I]=ye,F[pe]=V,I=pe);else if(xe<W&&0>o(Fe,V))F[I]=Fe,F[xe]=V,I=xe;else break e}}return Y}function o(F,Y){var V=F.sortIndex-Y.sortIndex;return V!==0?V:F.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var f=[],h=[],m=1,y=null,v=3,_=!1,x=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(F){for(var Y=n(h);Y!==null;){if(Y.callback===null)a(h);else if(Y.startTime<=F)a(h),Y.sortIndex=Y.expirationTime,t(f,Y);else break;Y=n(h)}}function A(F){if(S=!1,E(F),!x)if(n(f)!==null)x=!0,ee(B);else{var Y=n(h);Y!==null&&se(A,Y.startTime-F)}}function B(F,Y){x=!1,S&&(S=!1,D(P),P=-1),_=!0;var V=v;try{for(E(Y),y=n(f);y!==null&&(!(y.expirationTime>Y)||F&&!fe());){var I=y.callback;if(typeof I=="function"){y.callback=null,v=y.priorityLevel;var W=I(y.expirationTime<=Y);Y=e.unstable_now(),typeof W=="function"?y.callback=W:y===n(f)&&a(f),E(Y)}else a(f);y=n(f)}if(y!==null)var me=!0;else{var pe=n(h);pe!==null&&se(A,pe.startTime-Y),me=!1}return me}finally{y=null,v=V,_=!1}}var z=!1,H=null,P=-1,Z=5,X=-1;function fe(){return!(e.unstable_now()-X<Z)}function he(){if(H!==null){var F=e.unstable_now();X=F;var Y=!0;try{Y=H(!0,F)}finally{Y?Q():(z=!1,H=null)}}else z=!1}var Q;if(typeof M=="function")Q=function(){M(he)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,te=J.port2;J.port1.onmessage=he,Q=function(){te.postMessage(null)}}else Q=function(){C(he,0)};function ee(F){H=F,z||(z=!0,Q())}function se(F,Y){P=C(function(){F(e.unstable_now())},Y)}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(F){F.callback=null},e.unstable_continueExecution=function(){x||_||(x=!0,ee(B))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(F){switch(v){case 1:case 2:case 3:var Y=3;break;default:Y=v}var V=v;v=Y;try{return F()}finally{v=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,Y){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var V=v;v=F;try{return Y()}finally{v=V}},e.unstable_scheduleCallback=function(F,Y,V){var I=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?I+V:I):V=I,F){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=V+W,F={id:m++,callback:Y,priorityLevel:F,startTime:V,expirationTime:W,sortIndex:-1},V>I?(F.sortIndex=V,t(h,F),n(f)===null&&F===n(h)&&(S?(D(P),P=-1):S=!0,se(A,V-I))):(F.sortIndex=W,t(f,F),x||_||(x=!0,ee(B))),F},e.unstable_shouldYield=fe,e.unstable_wrapCallback=function(F){var Y=v;return function(){var V=v;v=Y;try{return F.apply(this,arguments)}finally{v=V}}}})(af)),af}var qv;function AC(){return qv||(qv=1,nf.exports=EC()),nf.exports}var Yv;function RC(){if(Yv)return En;Yv=1;var e=qp(),t=AC();function n(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,c=1;c<arguments.length;c++)i+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,o={};function s(r,i){l(r,i),l(r+"Capture",i)}function l(r,i){for(o[r]=i,r=0;r<i.length;r++)a.add(i[r])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},y={};function v(r){return f.call(y,r)?!0:f.call(m,r)?!1:h.test(r)?y[r]=!0:(m[r]=!0,!1)}function _(r,i,c,d){if(c!==null&&c.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return d?!1:c!==null?!c.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function x(r,i,c,d){if(i===null||typeof i>"u"||_(r,i,c,d))return!0;if(d)return!1;if(c!==null)switch(c.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function S(r,i,c,d,p,g,w){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=d,this.attributeNamespace=p,this.mustUseProperty=c,this.propertyName=r,this.type=i,this.sanitizeURL=g,this.removeEmptyString=w}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){C[r]=new S(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];C[i]=new S(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){C[r]=new S(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){C[r]=new S(r,2,!1,r,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(r){C[r]=new S(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){C[r]=new S(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){C[r]=new S(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){C[r]=new S(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){C[r]=new S(r,5,!1,r.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function M(r){return r[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(r){var i=r.replace(D,M);C[i]=new S(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(D,M);C[i]=new S(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(D,M);C[i]=new S(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){C[r]=new S(r,1,!1,r.toLowerCase(),null,!1,!1)}),C.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){C[r]=new S(r,1,!1,r.toLowerCase(),null,!0,!0)});function E(r,i,c,d){var p=C.hasOwnProperty(i)?C[i]:null;(p!==null?p.type!==0:d||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(x(i,c,p,d)&&(c=null),d||p===null?v(i)&&(c===null?r.removeAttribute(i):r.setAttribute(i,""+c)):p.mustUseProperty?r[p.propertyName]=c===null?p.type===3?!1:"":c:(i=p.attributeName,d=p.attributeNamespace,c===null?r.removeAttribute(i):(p=p.type,c=p===3||p===4&&c===!0?"":""+c,d?r.setAttributeNS(d,i,c):r.setAttribute(i,c))))}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,B=Symbol.for("react.element"),z=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),X=Symbol.for("react.provider"),fe=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),F=Symbol.iterator;function Y(r){return r===null||typeof r!="object"?null:(r=F&&r[F]||r["@@iterator"],typeof r=="function"?r:null)}var V=Object.assign,I;function W(r){if(I===void 0)try{throw Error()}catch(c){var i=c.stack.trim().match(/\n( *(at )?)/);I=i&&i[1]||""}return`
3
- `+I+r}var me=!1;function pe(r,i){if(!r||me)return"";me=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(q){var d=q}Reflect.construct(r,[],i)}else{try{i.call()}catch(q){d=q}r.call(i.prototype)}else{try{throw Error()}catch(q){d=q}r()}}catch(q){if(q&&d&&typeof q.stack=="string"){for(var p=q.stack.split(`
4
- `),g=d.stack.split(`
5
- `),w=p.length-1,L=g.length-1;1<=w&&0<=L&&p[w]!==g[L];)L--;for(;1<=w&&0<=L;w--,L--)if(p[w]!==g[L]){if(w!==1||L!==1)do if(w--,L--,0>L||p[w]!==g[L]){var O=`
6
- `+p[w].replace(" at new "," at ");return r.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",r.displayName)),O}while(1<=w&&0<=L);break}}}finally{me=!1,Error.prepareStackTrace=c}return(r=r?r.displayName||r.name:"")?W(r):""}function ye(r){switch(r.tag){case 5:return W(r.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return r=pe(r.type,!1),r;case 11:return r=pe(r.type.render,!1),r;case 1:return r=pe(r.type,!0),r;default:return""}}function xe(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case H:return"Fragment";case z:return"Portal";case Z:return"Profiler";case P:return"StrictMode";case Q:return"Suspense";case J:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case fe:return(r.displayName||"Context")+".Consumer";case X:return(r._context.displayName||"Context")+".Provider";case he:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case te:return i=r.displayName||null,i!==null?i:xe(r.type)||"Memo";case ee:i=r._payload,r=r._init;try{return xe(r(i))}catch{}}return null}function Fe(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(i);case 8:return i===P?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Ye(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function je(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Rt(r){var i=je(r)?"checked":"value",c=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),d=""+r[i];if(!r.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var p=c.get,g=c.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return p.call(this)},set:function(w){d=""+w,g.call(this,w)}}),Object.defineProperty(r,i,{enumerable:c.enumerable}),{getValue:function(){return d},setValue:function(w){d=""+w},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function Rn(r){r._valueTracker||(r._valueTracker=Rt(r))}function wn(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var c=i.getValue(),d="";return r&&(d=je(r)?r.checked?"true":"false":r.value),r=d,r!==c?(i.setValue(r),!0):!1}function pt(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Xt(r,i){var c=i.checked;return V({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??r._wrapperState.initialChecked})}function Jr(r,i){var c=i.defaultValue==null?"":i.defaultValue,d=i.checked!=null?i.checked:i.defaultChecked;c=Ye(i.value!=null?i.value:c),r._wrapperState={initialChecked:d,initialValue:c,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function Fi(r,i){i=i.checked,i!=null&&E(r,"checked",i,!1)}function Ln(r,i){Fi(r,i);var c=Ye(i.value),d=i.type;if(c!=null)d==="number"?(c===0&&r.value===""||r.value!=c)&&(r.value=""+c):r.value!==""+c&&(r.value=""+c);else if(d==="submit"||d==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?sr(r,i.type,c):i.hasOwnProperty("defaultValue")&&sr(r,i.type,Ye(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function zi(r,i,c){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var d=i.type;if(!(d!=="submit"&&d!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,c||i===r.value||(r.value=i),r.defaultValue=i}c=r.name,c!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,c!==""&&(r.name=c)}function sr(r,i,c){(i!=="number"||pt(r.ownerDocument)!==r)&&(c==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+c&&(r.defaultValue=""+c))}var va=Array.isArray;function dn(r,i,c,d){if(r=r.options,i){i={};for(var p=0;p<c.length;p++)i["$"+c[p]]=!0;for(c=0;c<r.length;c++)p=i.hasOwnProperty("$"+r[c].value),r[c].selected!==p&&(r[c].selected=p),p&&d&&(r[c].defaultSelected=!0)}else{for(c=""+Ye(c),i=null,p=0;p<r.length;p++){if(r[p].value===c){r[p].selected=!0,d&&(r[p].defaultSelected=!0);return}i!==null||r[p].disabled||(i=r[p])}i!==null&&(i.selected=!0)}}function ei(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return V({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Vi(r,i){var c=i.value;if(c==null){if(c=i.children,i=i.defaultValue,c!=null){if(i!=null)throw Error(n(92));if(va(c)){if(1<c.length)throw Error(n(93));c=c[0]}i=c}i==null&&(i=""),c=i}r._wrapperState={initialValue:Ye(c)}}function Ke(r,i){var c=Ye(i.value),d=Ye(i.defaultValue);c!=null&&(c=""+c,c!==r.value&&(r.value=c),i.defaultValue==null&&r.defaultValue!==c&&(r.defaultValue=c)),d!=null&&(r.defaultValue=""+d)}function Ve(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function ft(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function St(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?ft(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Ot,yt=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,c,d,p){MSApp.execUnsafeLocalFunction(function(){return r(i,c,d,p)})}:r})(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(Ot=Ot||document.createElement("div"),Ot.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Ot.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function dt(r,i){if(i){var c=r.firstChild;if(c&&c===r.lastChild&&c.nodeType===3){c.nodeValue=i;return}}r.textContent=i}var ba={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ko=["Webkit","ms","Moz","O"];Object.keys(ba).forEach(function(r){Ko.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),ba[i]=ba[r]})});function Wt(r,i,c){return i==null||typeof i=="boolean"||i===""?"":c||typeof i!="number"||i===0||ba.hasOwnProperty(r)&&ba[r]?(""+i).trim():i+"px"}function Ba(r,i){r=r.style;for(var c in i)if(i.hasOwnProperty(c)){var d=c.indexOf("--")===0,p=Wt(c,i[c],d);c==="float"&&(c="cssFloat"),d?r.setProperty(c,p):r[c]=p}}var hn=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ka(r,i){if(i){if(hn[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function _a(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var aa=null;function ti(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var lr=null,Dn=null,Fa=null;function $i(r){if(r=ms(r)){if(typeof lr!="function")throw Error(n(280));var i=r.stateNode;i&&(i=Ql(i),lr(r.stateNode,r.type,i))}}function Nl(r){Dn?Fa?Fa.push(r):Fa=[r]:Dn=r}function qo(){if(Dn){var r=Dn,i=Fa;if(Fa=Dn=null,$i(r),i)for(r=0;r<i.length;r++)$i(i[r])}}function Ol(r,i){return r(i)}function Yo(){}var cr=!1;function ni(r,i,c){if(cr)return r(i,c);cr=!0;try{return Ol(r,i,c)}finally{cr=!1,(Dn!==null||Fa!==null)&&(Yo(),qo())}}function ur(r,i){var c=r.stateNode;if(c===null)return null;var d=Ql(c);if(d===null)return null;c=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(c&&typeof c!="function")throw Error(n(231,i,typeof c));return c}var Zo=!1;if(u)try{var ai={};Object.defineProperty(ai,"passive",{get:function(){Zo=!0}}),window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{Zo=!1}function N(r,i,c,d,p,g,w,L,O){var q=Array.prototype.slice.call(arguments,3);try{i.apply(c,q)}catch(re){this.onError(re)}}var U=!1,K=null,ie=!1,ce=null,Le={onError:function(r){U=!0,K=r}};function ke(r,i,c,d,p,g,w,L,O){U=!1,K=null,N.apply(Le,arguments)}function Me(r,i,c,d,p,g,w,L,O){if(ke.apply(this,arguments),U){if(U){var q=K;U=!1,K=null}else throw Error(n(198));ie||(ie=!0,ce=q)}}function be(r){var i=r,c=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(c=i.return),r=i.return;while(r)}return i.tag===3?c:null}function Ne(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function Oe(r){if(be(r)!==r)throw Error(n(188))}function Ie(r){var i=r.alternate;if(!i){if(i=be(r),i===null)throw Error(n(188));return i!==r?null:r}for(var c=r,d=i;;){var p=c.return;if(p===null)break;var g=p.alternate;if(g===null){if(d=p.return,d!==null){c=d;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===c)return Oe(p),r;if(g===d)return Oe(p),i;g=g.sibling}throw Error(n(188))}if(c.return!==d.return)c=p,d=g;else{for(var w=!1,L=p.child;L;){if(L===c){w=!0,c=p,d=g;break}if(L===d){w=!0,d=p,c=g;break}L=L.sibling}if(!w){for(L=g.child;L;){if(L===c){w=!0,c=g,d=p;break}if(L===d){w=!0,d=g,c=p;break}L=L.sibling}if(!w)throw Error(n(189))}}if(c.alternate!==d)throw Error(n(190))}if(c.tag!==3)throw Error(n(188));return c.stateNode.current===c?r:i}function lt(r){return r=Ie(r),r!==null?nt(r):null}function nt(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=nt(r);if(i!==null)return i;r=r.sibling}return null}var vt=t.unstable_scheduleCallback,It=t.unstable_cancelCallback,Qt=t.unstable_shouldYield,ut=t.unstable_requestPaint,it=t.unstable_now,za=t.unstable_getCurrentPriorityLevel,Va=t.unstable_ImmediatePriority,ra=t.unstable_UserBlockingPriority,fn=t.unstable_NormalPriority,Xo=t.unstable_LowPriority,dr=t.unstable_IdlePriority,Fn=null,pn=null;function Hi(r){if(pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(Fn,r,void 0,(r.current.flags&128)===128)}catch{}}var Ge=Math.clz32?Math.clz32:$a,Gt=Math.log,hr=Math.LN2;function $a(r){return r>>>=0,r===0?32:31-(Gt(r)/hr|0)|0}var mt=64,Ha=4194304;function fr(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Wi(r,i){var c=r.pendingLanes;if(c===0)return 0;var d=0,p=r.suspendedLanes,g=r.pingedLanes,w=c&268435455;if(w!==0){var L=w&~p;L!==0?d=fr(L):(g&=w,g!==0&&(d=fr(g)))}else w=c&~p,w!==0?d=fr(w):g!==0&&(d=fr(g));if(d===0)return 0;if(i!==0&&i!==d&&(i&p)===0&&(p=d&-d,g=i&-i,p>=g||p===16&&(g&4194240)!==0))return i;if((d&4)!==0&&(d|=c&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=d;0<i;)c=31-Ge(i),p=1<<c,d|=r[c],i&=~p;return d}function VP(r,i){switch(r){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $P(r,i){for(var c=r.suspendedLanes,d=r.pingedLanes,p=r.expirationTimes,g=r.pendingLanes;0<g;){var w=31-Ge(g),L=1<<w,O=p[w];O===-1?((L&c)===0||(L&d)!==0)&&(p[w]=VP(L,i)):O<=i&&(r.expiredLanes|=L),g&=~L}}function kd(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function kg(){var r=mt;return mt<<=1,(mt&4194240)===0&&(mt=64),r}function _d(r){for(var i=[],c=0;31>c;c++)i.push(r);return i}function Qo(r,i,c){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-Ge(i),r[i]=c}function HP(r,i){var c=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var d=r.eventTimes;for(r=r.expirationTimes;0<c;){var p=31-Ge(c),g=1<<p;i[p]=0,d[p]=-1,r[p]=-1,c&=~g}}function wd(r,i){var c=r.entangledLanes|=i;for(r=r.entanglements;c;){var d=31-Ge(c),p=1<<d;p&i|r[d]&i&&(r[d]|=i),c&=~p}}var ht=0;function _g(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var wg,xd,xg,Pg,Sg,Pd=!1,jl=[],pr=null,mr=null,gr=null,Jo=new Map,es=new Map,yr=[],WP="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Cg(r,i){switch(r){case"focusin":case"focusout":pr=null;break;case"dragenter":case"dragleave":mr=null;break;case"mouseover":case"mouseout":gr=null;break;case"pointerover":case"pointerout":Jo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":es.delete(i.pointerId)}}function ts(r,i,c,d,p,g){return r===null||r.nativeEvent!==g?(r={blockedOn:i,domEventName:c,eventSystemFlags:d,nativeEvent:g,targetContainers:[p]},i!==null&&(i=ms(i),i!==null&&xd(i)),r):(r.eventSystemFlags|=d,i=r.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),r)}function GP(r,i,c,d,p){switch(i){case"focusin":return pr=ts(pr,r,i,c,d,p),!0;case"dragenter":return mr=ts(mr,r,i,c,d,p),!0;case"mouseover":return gr=ts(gr,r,i,c,d,p),!0;case"pointerover":var g=p.pointerId;return Jo.set(g,ts(Jo.get(g)||null,r,i,c,d,p)),!0;case"gotpointercapture":return g=p.pointerId,es.set(g,ts(es.get(g)||null,r,i,c,d,p)),!0}return!1}function Tg(r){var i=ri(r.target);if(i!==null){var c=be(i);if(c!==null){if(i=c.tag,i===13){if(i=Ne(c),i!==null){r.blockedOn=i,Sg(r.priority,function(){xg(c)});return}}else if(i===3&&c.stateNode.current.memoizedState.isDehydrated){r.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Ul(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var c=Cd(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(c===null){c=r.nativeEvent;var d=new c.constructor(c.type,c);aa=d,c.target.dispatchEvent(d),aa=null}else return i=ms(c),i!==null&&xd(i),r.blockedOn=c,!1;i.shift()}return!0}function Eg(r,i,c){Ul(r)&&c.delete(i)}function KP(){Pd=!1,pr!==null&&Ul(pr)&&(pr=null),mr!==null&&Ul(mr)&&(mr=null),gr!==null&&Ul(gr)&&(gr=null),Jo.forEach(Eg),es.forEach(Eg)}function ns(r,i){r.blockedOn===i&&(r.blockedOn=null,Pd||(Pd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,KP)))}function as(r){function i(p){return ns(p,r)}if(0<jl.length){ns(jl[0],r);for(var c=1;c<jl.length;c++){var d=jl[c];d.blockedOn===r&&(d.blockedOn=null)}}for(pr!==null&&ns(pr,r),mr!==null&&ns(mr,r),gr!==null&&ns(gr,r),Jo.forEach(i),es.forEach(i),c=0;c<yr.length;c++)d=yr[c],d.blockedOn===r&&(d.blockedOn=null);for(;0<yr.length&&(c=yr[0],c.blockedOn===null);)Tg(c),c.blockedOn===null&&yr.shift()}var Gi=A.ReactCurrentBatchConfig,Bl=!0;function qP(r,i,c,d){var p=ht,g=Gi.transition;Gi.transition=null;try{ht=1,Sd(r,i,c,d)}finally{ht=p,Gi.transition=g}}function YP(r,i,c,d){var p=ht,g=Gi.transition;Gi.transition=null;try{ht=4,Sd(r,i,c,d)}finally{ht=p,Gi.transition=g}}function Sd(r,i,c,d){if(Bl){var p=Cd(r,i,c,d);if(p===null)$d(r,i,d,Fl,c),Cg(r,d);else if(GP(p,r,i,c,d))d.stopPropagation();else if(Cg(r,d),i&4&&-1<WP.indexOf(r)){for(;p!==null;){var g=ms(p);if(g!==null&&wg(g),g=Cd(r,i,c,d),g===null&&$d(r,i,d,Fl,c),g===p)break;p=g}p!==null&&d.stopPropagation()}else $d(r,i,d,null,c)}}var Fl=null;function Cd(r,i,c,d){if(Fl=null,r=ti(d),r=ri(r),r!==null)if(i=be(r),i===null)r=null;else if(c=i.tag,c===13){if(r=Ne(i),r!==null)return r;r=null}else if(c===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null);return Fl=r,null}function Ag(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(za()){case Va:return 1;case ra:return 4;case fn:case Xo:return 16;case dr:return 536870912;default:return 16}default:return 16}}var vr=null,Td=null,zl=null;function Rg(){if(zl)return zl;var r,i=Td,c=i.length,d,p="value"in vr?vr.value:vr.textContent,g=p.length;for(r=0;r<c&&i[r]===p[r];r++);var w=c-r;for(d=1;d<=w&&i[c-d]===p[g-d];d++);return zl=p.slice(r,1<d?1-d:void 0)}function Vl(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function $l(){return!0}function Lg(){return!1}function In(r){function i(c,d,p,g,w){this._reactName=c,this._targetInst=p,this.type=d,this.nativeEvent=g,this.target=w,this.currentTarget=null;for(var L in r)r.hasOwnProperty(L)&&(c=r[L],this[L]=c?c(g):g[L]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?$l:Lg,this.isPropagationStopped=Lg,this}return V(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=$l)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=$l)},persist:function(){},isPersistent:$l}),i}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ed=In(Ki),rs=V({},Ki,{view:0,detail:0}),ZP=In(rs),Ad,Rd,is,Hl=V({},rs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dd,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==is&&(is&&r.type==="mousemove"?(Ad=r.screenX-is.screenX,Rd=r.screenY-is.screenY):Rd=Ad=0,is=r),Ad)},movementY:function(r){return"movementY"in r?r.movementY:Rd}}),Dg=In(Hl),XP=V({},Hl,{dataTransfer:0}),QP=In(XP),JP=V({},rs,{relatedTarget:0}),Ld=In(JP),eS=V({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),tS=In(eS),nS=V({},Ki,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),aS=In(nS),rS=V({},Ki,{data:0}),Ig=In(rS),iS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},sS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lS(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=sS[r])?!!i[r]:!1}function Dd(){return lS}var cS=V({},rs,{key:function(r){if(r.key){var i=iS[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Vl(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?oS[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dd,charCode:function(r){return r.type==="keypress"?Vl(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Vl(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),uS=In(cS),dS=V({},Hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mg=In(dS),hS=V({},rs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dd}),fS=In(hS),pS=V({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),mS=In(pS),gS=V({},Hl,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),yS=In(gS),vS=[9,13,27,32],Id=u&&"CompositionEvent"in window,os=null;u&&"documentMode"in document&&(os=document.documentMode);var bS=u&&"TextEvent"in window&&!os,Ng=u&&(!Id||os&&8<os&&11>=os),Og=" ",jg=!1;function Ug(r,i){switch(r){case"keyup":return vS.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var qi=!1;function kS(r,i){switch(r){case"compositionend":return Bg(i);case"keypress":return i.which!==32?null:(jg=!0,Og);case"textInput":return r=i.data,r===Og&&jg?null:r;default:return null}}function _S(r,i){if(qi)return r==="compositionend"||!Id&&Ug(r,i)?(r=Rg(),zl=Td=vr=null,qi=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Ng&&i.locale!=="ko"?null:i.data;default:return null}}var wS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fg(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!wS[r.type]:i==="textarea"}function zg(r,i,c,d){Nl(d),i=Yl(i,"onChange"),0<i.length&&(c=new Ed("onChange","change",null,c,d),r.push({event:c,listeners:i}))}var ss=null,ls=null;function xS(r){iy(r,0)}function Wl(r){var i=Ji(r);if(wn(i))return r}function PS(r,i){if(r==="change")return i}var Vg=!1;if(u){var Md;if(u){var Nd="oninput"in document;if(!Nd){var $g=document.createElement("div");$g.setAttribute("oninput","return;"),Nd=typeof $g.oninput=="function"}Md=Nd}else Md=!1;Vg=Md&&(!document.documentMode||9<document.documentMode)}function Hg(){ss&&(ss.detachEvent("onpropertychange",Wg),ls=ss=null)}function Wg(r){if(r.propertyName==="value"&&Wl(ls)){var i=[];zg(i,ls,r,ti(r)),ni(xS,i)}}function SS(r,i,c){r==="focusin"?(Hg(),ss=i,ls=c,ss.attachEvent("onpropertychange",Wg)):r==="focusout"&&Hg()}function CS(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Wl(ls)}function TS(r,i){if(r==="click")return Wl(i)}function ES(r,i){if(r==="input"||r==="change")return Wl(i)}function AS(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var ia=typeof Object.is=="function"?Object.is:AS;function cs(r,i){if(ia(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var c=Object.keys(r),d=Object.keys(i);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++){var p=c[d];if(!f.call(i,p)||!ia(r[p],i[p]))return!1}return!0}function Gg(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Kg(r,i){var c=Gg(r);r=0;for(var d;c;){if(c.nodeType===3){if(d=r+c.textContent.length,r<=i&&d>=i)return{node:c,offset:i-r};r=d}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=Gg(c)}}function qg(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?qg(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function Yg(){for(var r=window,i=pt();i instanceof r.HTMLIFrameElement;){try{var c=typeof i.contentWindow.location.href=="string"}catch{c=!1}if(c)r=i.contentWindow;else break;i=pt(r.document)}return i}function Od(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function RS(r){var i=Yg(),c=r.focusedElem,d=r.selectionRange;if(i!==c&&c&&c.ownerDocument&&qg(c.ownerDocument.documentElement,c)){if(d!==null&&Od(c)){if(i=d.start,r=d.end,r===void 0&&(r=i),"selectionStart"in c)c.selectionStart=i,c.selectionEnd=Math.min(r,c.value.length);else if(r=(i=c.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var p=c.textContent.length,g=Math.min(d.start,p);d=d.end===void 0?g:Math.min(d.end,p),!r.extend&&g>d&&(p=d,d=g,g=p),p=Kg(c,g);var w=Kg(c,d);p&&w&&(r.rangeCount!==1||r.anchorNode!==p.node||r.anchorOffset!==p.offset||r.focusNode!==w.node||r.focusOffset!==w.offset)&&(i=i.createRange(),i.setStart(p.node,p.offset),r.removeAllRanges(),g>d?(r.addRange(i),r.extend(w.node,w.offset)):(i.setEnd(w.node,w.offset),r.addRange(i)))}}for(i=[],r=c;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<i.length;c++)r=i[c],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var LS=u&&"documentMode"in document&&11>=document.documentMode,Yi=null,jd=null,us=null,Ud=!1;function Zg(r,i,c){var d=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Ud||Yi==null||Yi!==pt(d)||(d=Yi,"selectionStart"in d&&Od(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),us&&cs(us,d)||(us=d,d=Yl(jd,"onSelect"),0<d.length&&(i=new Ed("onSelect","select",null,i,c),r.push({event:i,listeners:d}),i.target=Yi)))}function Gl(r,i){var c={};return c[r.toLowerCase()]=i.toLowerCase(),c["Webkit"+r]="webkit"+i,c["Moz"+r]="moz"+i,c}var Zi={animationend:Gl("Animation","AnimationEnd"),animationiteration:Gl("Animation","AnimationIteration"),animationstart:Gl("Animation","AnimationStart"),transitionend:Gl("Transition","TransitionEnd")},Bd={},Xg={};u&&(Xg=document.createElement("div").style,"AnimationEvent"in window||(delete Zi.animationend.animation,delete Zi.animationiteration.animation,delete Zi.animationstart.animation),"TransitionEvent"in window||delete Zi.transitionend.transition);function Kl(r){if(Bd[r])return Bd[r];if(!Zi[r])return r;var i=Zi[r],c;for(c in i)if(i.hasOwnProperty(c)&&c in Xg)return Bd[r]=i[c];return r}var Qg=Kl("animationend"),Jg=Kl("animationiteration"),ey=Kl("animationstart"),ty=Kl("transitionend"),ny=new Map,ay="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function br(r,i){ny.set(r,i),s(i,[r])}for(var Fd=0;Fd<ay.length;Fd++){var zd=ay[Fd],DS=zd.toLowerCase(),IS=zd[0].toUpperCase()+zd.slice(1);br(DS,"on"+IS)}br(Qg,"onAnimationEnd"),br(Jg,"onAnimationIteration"),br(ey,"onAnimationStart"),br("dblclick","onDoubleClick"),br("focusin","onFocus"),br("focusout","onBlur"),br(ty,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ds="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MS=new Set("cancel close invalid load scroll toggle".split(" ").concat(ds));function ry(r,i,c){var d=r.type||"unknown-event";r.currentTarget=c,Me(d,i,void 0,r),r.currentTarget=null}function iy(r,i){i=(i&4)!==0;for(var c=0;c<r.length;c++){var d=r[c],p=d.event;d=d.listeners;e:{var g=void 0;if(i)for(var w=d.length-1;0<=w;w--){var L=d[w],O=L.instance,q=L.currentTarget;if(L=L.listener,O!==g&&p.isPropagationStopped())break e;ry(p,L,q),g=O}else for(w=0;w<d.length;w++){if(L=d[w],O=L.instance,q=L.currentTarget,L=L.listener,O!==g&&p.isPropagationStopped())break e;ry(p,L,q),g=O}}}if(ie)throw r=ce,ie=!1,ce=null,r}function kt(r,i){var c=i[Yd];c===void 0&&(c=i[Yd]=new Set);var d=r+"__bubble";c.has(d)||(oy(i,r,2,!1),c.add(d))}function Vd(r,i,c){var d=0;i&&(d|=4),oy(c,r,d,i)}var ql="_reactListening"+Math.random().toString(36).slice(2);function hs(r){if(!r[ql]){r[ql]=!0,a.forEach(function(c){c!=="selectionchange"&&(MS.has(c)||Vd(c,!1,r),Vd(c,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[ql]||(i[ql]=!0,Vd("selectionchange",!1,i))}}function oy(r,i,c,d){switch(Ag(i)){case 1:var p=qP;break;case 4:p=YP;break;default:p=Sd}c=p.bind(null,i,c,r),p=void 0,!Zo||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),d?p!==void 0?r.addEventListener(i,c,{capture:!0,passive:p}):r.addEventListener(i,c,!0):p!==void 0?r.addEventListener(i,c,{passive:p}):r.addEventListener(i,c,!1)}function $d(r,i,c,d,p){var g=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var w=d.tag;if(w===3||w===4){var L=d.stateNode.containerInfo;if(L===p||L.nodeType===8&&L.parentNode===p)break;if(w===4)for(w=d.return;w!==null;){var O=w.tag;if((O===3||O===4)&&(O=w.stateNode.containerInfo,O===p||O.nodeType===8&&O.parentNode===p))return;w=w.return}for(;L!==null;){if(w=ri(L),w===null)return;if(O=w.tag,O===5||O===6){d=g=w;continue e}L=L.parentNode}}d=d.return}ni(function(){var q=g,re=ti(c),oe=[];e:{var ae=ny.get(r);if(ae!==void 0){var ve=Ed,Pe=r;switch(r){case"keypress":if(Vl(c)===0)break e;case"keydown":case"keyup":ve=uS;break;case"focusin":Pe="focus",ve=Ld;break;case"focusout":Pe="blur",ve=Ld;break;case"beforeblur":case"afterblur":ve=Ld;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ve=Dg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ve=QP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ve=fS;break;case Qg:case Jg:case ey:ve=tS;break;case ty:ve=mS;break;case"scroll":ve=ZP;break;case"wheel":ve=yS;break;case"copy":case"cut":case"paste":ve=aS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ve=Mg}var Ee=(i&4)!==0,Mt=!Ee&&r==="scroll",$=Ee?ae!==null?ae+"Capture":null:ae;Ee=[];for(var j=q,G;j!==null;){G=j;var de=G.stateNode;if(G.tag===5&&de!==null&&(G=de,$!==null&&(de=ur(j,$),de!=null&&Ee.push(fs(j,de,G)))),Mt)break;j=j.return}0<Ee.length&&(ae=new ve(ae,Pe,null,c,re),oe.push({event:ae,listeners:Ee}))}}if((i&7)===0){e:{if(ae=r==="mouseover"||r==="pointerover",ve=r==="mouseout"||r==="pointerout",ae&&c!==aa&&(Pe=c.relatedTarget||c.fromElement)&&(ri(Pe)||Pe[Wa]))break e;if((ve||ae)&&(ae=re.window===re?re:(ae=re.ownerDocument)?ae.defaultView||ae.parentWindow:window,ve?(Pe=c.relatedTarget||c.toElement,ve=q,Pe=Pe?ri(Pe):null,Pe!==null&&(Mt=be(Pe),Pe!==Mt||Pe.tag!==5&&Pe.tag!==6)&&(Pe=null)):(ve=null,Pe=q),ve!==Pe)){if(Ee=Dg,de="onMouseLeave",$="onMouseEnter",j="mouse",(r==="pointerout"||r==="pointerover")&&(Ee=Mg,de="onPointerLeave",$="onPointerEnter",j="pointer"),Mt=ve==null?ae:Ji(ve),G=Pe==null?ae:Ji(Pe),ae=new Ee(de,j+"leave",ve,c,re),ae.target=Mt,ae.relatedTarget=G,de=null,ri(re)===q&&(Ee=new Ee($,j+"enter",Pe,c,re),Ee.target=G,Ee.relatedTarget=Mt,de=Ee),Mt=de,ve&&Pe)t:{for(Ee=ve,$=Pe,j=0,G=Ee;G;G=Xi(G))j++;for(G=0,de=$;de;de=Xi(de))G++;for(;0<j-G;)Ee=Xi(Ee),j--;for(;0<G-j;)$=Xi($),G--;for(;j--;){if(Ee===$||$!==null&&Ee===$.alternate)break t;Ee=Xi(Ee),$=Xi($)}Ee=null}else Ee=null;ve!==null&&sy(oe,ae,ve,Ee,!1),Pe!==null&&Mt!==null&&sy(oe,Mt,Pe,Ee,!0)}}e:{if(ae=q?Ji(q):window,ve=ae.nodeName&&ae.nodeName.toLowerCase(),ve==="select"||ve==="input"&&ae.type==="file")var Ae=PS;else if(Fg(ae))if(Vg)Ae=ES;else{Ae=CS;var Ue=SS}else(ve=ae.nodeName)&&ve.toLowerCase()==="input"&&(ae.type==="checkbox"||ae.type==="radio")&&(Ae=TS);if(Ae&&(Ae=Ae(r,q))){zg(oe,Ae,c,re);break e}Ue&&Ue(r,ae,q),r==="focusout"&&(Ue=ae._wrapperState)&&Ue.controlled&&ae.type==="number"&&sr(ae,"number",ae.value)}switch(Ue=q?Ji(q):window,r){case"focusin":(Fg(Ue)||Ue.contentEditable==="true")&&(Yi=Ue,jd=q,us=null);break;case"focusout":us=jd=Yi=null;break;case"mousedown":Ud=!0;break;case"contextmenu":case"mouseup":case"dragend":Ud=!1,Zg(oe,c,re);break;case"selectionchange":if(LS)break;case"keydown":case"keyup":Zg(oe,c,re)}var Be;if(Id)e:{switch(r){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else qi?Ug(r,c)&&($e="onCompositionEnd"):r==="keydown"&&c.keyCode===229&&($e="onCompositionStart");$e&&(Ng&&c.locale!=="ko"&&(qi||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&qi&&(Be=Rg()):(vr=re,Td="value"in vr?vr.value:vr.textContent,qi=!0)),Ue=Yl(q,$e),0<Ue.length&&($e=new Ig($e,r,null,c,re),oe.push({event:$e,listeners:Ue}),Be?$e.data=Be:(Be=Bg(c),Be!==null&&($e.data=Be)))),(Be=bS?kS(r,c):_S(r,c))&&(q=Yl(q,"onBeforeInput"),0<q.length&&(re=new Ig("onBeforeInput","beforeinput",null,c,re),oe.push({event:re,listeners:q}),re.data=Be))}iy(oe,i)})}function fs(r,i,c){return{instance:r,listener:i,currentTarget:c}}function Yl(r,i){for(var c=i+"Capture",d=[];r!==null;){var p=r,g=p.stateNode;p.tag===5&&g!==null&&(p=g,g=ur(r,c),g!=null&&d.unshift(fs(r,g,p)),g=ur(r,i),g!=null&&d.push(fs(r,g,p))),r=r.return}return d}function Xi(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function sy(r,i,c,d,p){for(var g=i._reactName,w=[];c!==null&&c!==d;){var L=c,O=L.alternate,q=L.stateNode;if(O!==null&&O===d)break;L.tag===5&&q!==null&&(L=q,p?(O=ur(c,g),O!=null&&w.unshift(fs(c,O,L))):p||(O=ur(c,g),O!=null&&w.push(fs(c,O,L)))),c=c.return}w.length!==0&&r.push({event:i,listeners:w})}var NS=/\r\n?/g,OS=/\u0000|\uFFFD/g;function ly(r){return(typeof r=="string"?r:""+r).replace(NS,`
7
- `).replace(OS,"")}function Zl(r,i,c){if(i=ly(i),ly(r)!==i&&c)throw Error(n(425))}function Xl(){}var Hd=null,Wd=null;function Gd(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Kd=typeof setTimeout=="function"?setTimeout:void 0,jS=typeof clearTimeout=="function"?clearTimeout:void 0,cy=typeof Promise=="function"?Promise:void 0,US=typeof queueMicrotask=="function"?queueMicrotask:typeof cy<"u"?function(r){return cy.resolve(null).then(r).catch(BS)}:Kd;function BS(r){setTimeout(function(){throw r})}function qd(r,i){var c=i,d=0;do{var p=c.nextSibling;if(r.removeChild(c),p&&p.nodeType===8)if(c=p.data,c==="/$"){if(d===0){r.removeChild(p),as(i);return}d--}else c!=="$"&&c!=="$?"&&c!=="$!"||d++;c=p}while(c);as(i)}function kr(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return r}function uy(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var c=r.data;if(c==="$"||c==="$!"||c==="$?"){if(i===0)return r;i--}else c==="/$"&&i++}r=r.previousSibling}return null}var Qi=Math.random().toString(36).slice(2),wa="__reactFiber$"+Qi,ps="__reactProps$"+Qi,Wa="__reactContainer$"+Qi,Yd="__reactEvents$"+Qi,FS="__reactListeners$"+Qi,zS="__reactHandles$"+Qi;function ri(r){var i=r[wa];if(i)return i;for(var c=r.parentNode;c;){if(i=c[Wa]||c[wa]){if(c=i.alternate,i.child!==null||c!==null&&c.child!==null)for(r=uy(r);r!==null;){if(c=r[wa])return c;r=uy(r)}return i}r=c,c=r.parentNode}return null}function ms(r){return r=r[wa]||r[Wa],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Ji(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Ql(r){return r[ps]||null}var Zd=[],eo=-1;function _r(r){return{current:r}}function _t(r){0>eo||(r.current=Zd[eo],Zd[eo]=null,eo--)}function bt(r,i){eo++,Zd[eo]=r.current,r.current=i}var wr={},rn=_r(wr),xn=_r(!1),ii=wr;function to(r,i){var c=r.type.contextTypes;if(!c)return wr;var d=r.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===i)return d.__reactInternalMemoizedMaskedChildContext;var p={},g;for(g in c)p[g]=i[g];return d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=p),p}function Pn(r){return r=r.childContextTypes,r!=null}function Jl(){_t(xn),_t(rn)}function dy(r,i,c){if(rn.current!==wr)throw Error(n(168));bt(rn,i),bt(xn,c)}function hy(r,i,c){var d=r.stateNode;if(i=i.childContextTypes,typeof d.getChildContext!="function")return c;d=d.getChildContext();for(var p in d)if(!(p in i))throw Error(n(108,Fe(r)||"Unknown",p));return V({},c,d)}function ec(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||wr,ii=rn.current,bt(rn,r),bt(xn,xn.current),!0}function fy(r,i,c){var d=r.stateNode;if(!d)throw Error(n(169));c?(r=hy(r,i,ii),d.__reactInternalMemoizedMergedChildContext=r,_t(xn),_t(rn),bt(rn,r)):_t(xn),bt(xn,c)}var Ga=null,tc=!1,Xd=!1;function py(r){Ga===null?Ga=[r]:Ga.push(r)}function VS(r){tc=!0,py(r)}function xr(){if(!Xd&&Ga!==null){Xd=!0;var r=0,i=ht;try{var c=Ga;for(ht=1;r<c.length;r++){var d=c[r];do d=d(!0);while(d!==null)}Ga=null,tc=!1}catch(p){throw Ga!==null&&(Ga=Ga.slice(r+1)),vt(Va,xr),p}finally{ht=i,Xd=!1}}return null}var no=[],ao=0,nc=null,ac=0,zn=[],Vn=0,oi=null,Ka=1,qa="";function si(r,i){no[ao++]=ac,no[ao++]=nc,nc=r,ac=i}function my(r,i,c){zn[Vn++]=Ka,zn[Vn++]=qa,zn[Vn++]=oi,oi=r;var d=Ka;r=qa;var p=32-Ge(d)-1;d&=~(1<<p),c+=1;var g=32-Ge(i)+p;if(30<g){var w=p-p%5;g=(d&(1<<w)-1).toString(32),d>>=w,p-=w,Ka=1<<32-Ge(i)+p|c<<p|d,qa=g+r}else Ka=1<<g|c<<p|d,qa=r}function Qd(r){r.return!==null&&(si(r,1),my(r,1,0))}function Jd(r){for(;r===nc;)nc=no[--ao],no[ao]=null,ac=no[--ao],no[ao]=null;for(;r===oi;)oi=zn[--Vn],zn[Vn]=null,qa=zn[--Vn],zn[Vn]=null,Ka=zn[--Vn],zn[Vn]=null}var Mn=null,Nn=null,Ct=!1,oa=null;function gy(r,i){var c=Gn(5,null,null,0);c.elementType="DELETED",c.stateNode=i,c.return=r,i=r.deletions,i===null?(r.deletions=[c],r.flags|=16):i.push(c)}function yy(r,i){switch(r.tag){case 5:var c=r.type;return i=i.nodeType!==1||c.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(r.stateNode=i,Mn=r,Nn=kr(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,Mn=r,Nn=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(c=oi!==null?{id:Ka,overflow:qa}:null,r.memoizedState={dehydrated:i,treeContext:c,retryLane:1073741824},c=Gn(18,null,null,0),c.stateNode=i,c.return=r,r.child=c,Mn=r,Nn=null,!0):!1;default:return!1}}function eh(r){return(r.mode&1)!==0&&(r.flags&128)===0}function th(r){if(Ct){var i=Nn;if(i){var c=i;if(!yy(r,i)){if(eh(r))throw Error(n(418));i=kr(c.nextSibling);var d=Mn;i&&yy(r,i)?gy(d,c):(r.flags=r.flags&-4097|2,Ct=!1,Mn=r)}}else{if(eh(r))throw Error(n(418));r.flags=r.flags&-4097|2,Ct=!1,Mn=r}}}function vy(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Mn=r}function rc(r){if(r!==Mn)return!1;if(!Ct)return vy(r),Ct=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!Gd(r.type,r.memoizedProps)),i&&(i=Nn)){if(eh(r))throw by(),Error(n(418));for(;i;)gy(r,i),i=kr(i.nextSibling)}if(vy(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8){var c=r.data;if(c==="/$"){if(i===0){Nn=kr(r.nextSibling);break e}i--}else c!=="$"&&c!=="$!"&&c!=="$?"||i++}r=r.nextSibling}Nn=null}}else Nn=Mn?kr(r.stateNode.nextSibling):null;return!0}function by(){for(var r=Nn;r;)r=kr(r.nextSibling)}function ro(){Nn=Mn=null,Ct=!1}function nh(r){oa===null?oa=[r]:oa.push(r)}var $S=A.ReactCurrentBatchConfig;function gs(r,i,c){if(r=c.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(c._owner){if(c=c._owner,c){if(c.tag!==1)throw Error(n(309));var d=c.stateNode}if(!d)throw Error(n(147,r));var p=d,g=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===g?i.ref:(i=function(w){var L=p.refs;w===null?delete L[g]:L[g]=w},i._stringRef=g,i)}if(typeof r!="string")throw Error(n(284));if(!c._owner)throw Error(n(290,r))}return r}function ic(r,i){throw r=Object.prototype.toString.call(i),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function ky(r){var i=r._init;return i(r._payload)}function _y(r){function i($,j){if(r){var G=$.deletions;G===null?($.deletions=[j],$.flags|=16):G.push(j)}}function c($,j){if(!r)return null;for(;j!==null;)i($,j),j=j.sibling;return null}function d($,j){for($=new Map;j!==null;)j.key!==null?$.set(j.key,j):$.set(j.index,j),j=j.sibling;return $}function p($,j){return $=Lr($,j),$.index=0,$.sibling=null,$}function g($,j,G){return $.index=G,r?(G=$.alternate,G!==null?(G=G.index,G<j?($.flags|=2,j):G):($.flags|=2,j)):($.flags|=1048576,j)}function w($){return r&&$.alternate===null&&($.flags|=2),$}function L($,j,G,de){return j===null||j.tag!==6?(j=Kh(G,$.mode,de),j.return=$,j):(j=p(j,G),j.return=$,j)}function O($,j,G,de){var Ae=G.type;return Ae===H?re($,j,G.props.children,de,G.key):j!==null&&(j.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===ee&&ky(Ae)===j.type)?(de=p(j,G.props),de.ref=gs($,j,G),de.return=$,de):(de=Ac(G.type,G.key,G.props,null,$.mode,de),de.ref=gs($,j,G),de.return=$,de)}function q($,j,G,de){return j===null||j.tag!==4||j.stateNode.containerInfo!==G.containerInfo||j.stateNode.implementation!==G.implementation?(j=qh(G,$.mode,de),j.return=$,j):(j=p(j,G.children||[]),j.return=$,j)}function re($,j,G,de,Ae){return j===null||j.tag!==7?(j=mi(G,$.mode,de,Ae),j.return=$,j):(j=p(j,G),j.return=$,j)}function oe($,j,G){if(typeof j=="string"&&j!==""||typeof j=="number")return j=Kh(""+j,$.mode,G),j.return=$,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case B:return G=Ac(j.type,j.key,j.props,null,$.mode,G),G.ref=gs($,null,j),G.return=$,G;case z:return j=qh(j,$.mode,G),j.return=$,j;case ee:var de=j._init;return oe($,de(j._payload),G)}if(va(j)||Y(j))return j=mi(j,$.mode,G,null),j.return=$,j;ic($,j)}return null}function ae($,j,G,de){var Ae=j!==null?j.key:null;if(typeof G=="string"&&G!==""||typeof G=="number")return Ae!==null?null:L($,j,""+G,de);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case B:return G.key===Ae?O($,j,G,de):null;case z:return G.key===Ae?q($,j,G,de):null;case ee:return Ae=G._init,ae($,j,Ae(G._payload),de)}if(va(G)||Y(G))return Ae!==null?null:re($,j,G,de,null);ic($,G)}return null}function ve($,j,G,de,Ae){if(typeof de=="string"&&de!==""||typeof de=="number")return $=$.get(G)||null,L(j,$,""+de,Ae);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case B:return $=$.get(de.key===null?G:de.key)||null,O(j,$,de,Ae);case z:return $=$.get(de.key===null?G:de.key)||null,q(j,$,de,Ae);case ee:var Ue=de._init;return ve($,j,G,Ue(de._payload),Ae)}if(va(de)||Y(de))return $=$.get(G)||null,re(j,$,de,Ae,null);ic(j,de)}return null}function Pe($,j,G,de){for(var Ae=null,Ue=null,Be=j,$e=j=0,Yt=null;Be!==null&&$e<G.length;$e++){Be.index>$e?(Yt=Be,Be=null):Yt=Be.sibling;var ct=ae($,Be,G[$e],de);if(ct===null){Be===null&&(Be=Yt);break}r&&Be&&ct.alternate===null&&i($,Be),j=g(ct,j,$e),Ue===null?Ae=ct:Ue.sibling=ct,Ue=ct,Be=Yt}if($e===G.length)return c($,Be),Ct&&si($,$e),Ae;if(Be===null){for(;$e<G.length;$e++)Be=oe($,G[$e],de),Be!==null&&(j=g(Be,j,$e),Ue===null?Ae=Be:Ue.sibling=Be,Ue=Be);return Ct&&si($,$e),Ae}for(Be=d($,Be);$e<G.length;$e++)Yt=ve(Be,$,$e,G[$e],de),Yt!==null&&(r&&Yt.alternate!==null&&Be.delete(Yt.key===null?$e:Yt.key),j=g(Yt,j,$e),Ue===null?Ae=Yt:Ue.sibling=Yt,Ue=Yt);return r&&Be.forEach(function(Dr){return i($,Dr)}),Ct&&si($,$e),Ae}function Ee($,j,G,de){var Ae=Y(G);if(typeof Ae!="function")throw Error(n(150));if(G=Ae.call(G),G==null)throw Error(n(151));for(var Ue=Ae=null,Be=j,$e=j=0,Yt=null,ct=G.next();Be!==null&&!ct.done;$e++,ct=G.next()){Be.index>$e?(Yt=Be,Be=null):Yt=Be.sibling;var Dr=ae($,Be,ct.value,de);if(Dr===null){Be===null&&(Be=Yt);break}r&&Be&&Dr.alternate===null&&i($,Be),j=g(Dr,j,$e),Ue===null?Ae=Dr:Ue.sibling=Dr,Ue=Dr,Be=Yt}if(ct.done)return c($,Be),Ct&&si($,$e),Ae;if(Be===null){for(;!ct.done;$e++,ct=G.next())ct=oe($,ct.value,de),ct!==null&&(j=g(ct,j,$e),Ue===null?Ae=ct:Ue.sibling=ct,Ue=ct);return Ct&&si($,$e),Ae}for(Be=d($,Be);!ct.done;$e++,ct=G.next())ct=ve(Be,$,$e,ct.value,de),ct!==null&&(r&&ct.alternate!==null&&Be.delete(ct.key===null?$e:ct.key),j=g(ct,j,$e),Ue===null?Ae=ct:Ue.sibling=ct,Ue=ct);return r&&Be.forEach(function(wC){return i($,wC)}),Ct&&si($,$e),Ae}function Mt($,j,G,de){if(typeof G=="object"&&G!==null&&G.type===H&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case B:e:{for(var Ae=G.key,Ue=j;Ue!==null;){if(Ue.key===Ae){if(Ae=G.type,Ae===H){if(Ue.tag===7){c($,Ue.sibling),j=p(Ue,G.props.children),j.return=$,$=j;break e}}else if(Ue.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===ee&&ky(Ae)===Ue.type){c($,Ue.sibling),j=p(Ue,G.props),j.ref=gs($,Ue,G),j.return=$,$=j;break e}c($,Ue);break}else i($,Ue);Ue=Ue.sibling}G.type===H?(j=mi(G.props.children,$.mode,de,G.key),j.return=$,$=j):(de=Ac(G.type,G.key,G.props,null,$.mode,de),de.ref=gs($,j,G),de.return=$,$=de)}return w($);case z:e:{for(Ue=G.key;j!==null;){if(j.key===Ue)if(j.tag===4&&j.stateNode.containerInfo===G.containerInfo&&j.stateNode.implementation===G.implementation){c($,j.sibling),j=p(j,G.children||[]),j.return=$,$=j;break e}else{c($,j);break}else i($,j);j=j.sibling}j=qh(G,$.mode,de),j.return=$,$=j}return w($);case ee:return Ue=G._init,Mt($,j,Ue(G._payload),de)}if(va(G))return Pe($,j,G,de);if(Y(G))return Ee($,j,G,de);ic($,G)}return typeof G=="string"&&G!==""||typeof G=="number"?(G=""+G,j!==null&&j.tag===6?(c($,j.sibling),j=p(j,G),j.return=$,$=j):(c($,j),j=Kh(G,$.mode,de),j.return=$,$=j),w($)):c($,j)}return Mt}var io=_y(!0),wy=_y(!1),oc=_r(null),sc=null,oo=null,ah=null;function rh(){ah=oo=sc=null}function ih(r){var i=oc.current;_t(oc),r._currentValue=i}function oh(r,i,c){for(;r!==null;){var d=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),r===c)break;r=r.return}}function so(r,i){sc=r,ah=oo=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&(Sn=!0),r.firstContext=null)}function $n(r){var i=r._currentValue;if(ah!==r)if(r={context:r,memoizedValue:i,next:null},oo===null){if(sc===null)throw Error(n(308));oo=r,sc.dependencies={lanes:0,firstContext:r}}else oo=oo.next=r;return i}var li=null;function sh(r){li===null?li=[r]:li.push(r)}function xy(r,i,c,d){var p=i.interleaved;return p===null?(c.next=c,sh(i)):(c.next=p.next,p.next=c),i.interleaved=c,Ya(r,d)}function Ya(r,i){r.lanes|=i;var c=r.alternate;for(c!==null&&(c.lanes|=i),c=r,r=r.return;r!==null;)r.childLanes|=i,c=r.alternate,c!==null&&(c.childLanes|=i),c=r,r=r.return;return c.tag===3?c.stateNode:null}var Pr=!1;function lh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Py(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Za(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function Sr(r,i,c){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(ot&2)!==0){var p=d.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),d.pending=i,Ya(r,c)}return p=d.interleaved,p===null?(i.next=i,sh(d)):(i.next=p.next,p.next=i),d.interleaved=i,Ya(r,c)}function lc(r,i,c){if(i=i.updateQueue,i!==null&&(i=i.shared,(c&4194240)!==0)){var d=i.lanes;d&=r.pendingLanes,c|=d,i.lanes=c,wd(r,c)}}function Sy(r,i){var c=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,c===d)){var p=null,g=null;if(c=c.firstBaseUpdate,c!==null){do{var w={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};g===null?p=g=w:g=g.next=w,c=c.next}while(c!==null);g===null?p=g=i:g=g.next=i}else p=g=i;c={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:d.shared,effects:d.effects},r.updateQueue=c;return}r=c.lastBaseUpdate,r===null?c.firstBaseUpdate=i:r.next=i,c.lastBaseUpdate=i}function cc(r,i,c,d){var p=r.updateQueue;Pr=!1;var g=p.firstBaseUpdate,w=p.lastBaseUpdate,L=p.shared.pending;if(L!==null){p.shared.pending=null;var O=L,q=O.next;O.next=null,w===null?g=q:w.next=q,w=O;var re=r.alternate;re!==null&&(re=re.updateQueue,L=re.lastBaseUpdate,L!==w&&(L===null?re.firstBaseUpdate=q:L.next=q,re.lastBaseUpdate=O))}if(g!==null){var oe=p.baseState;w=0,re=q=O=null,L=g;do{var ae=L.lane,ve=L.eventTime;if((d&ae)===ae){re!==null&&(re=re.next={eventTime:ve,lane:0,tag:L.tag,payload:L.payload,callback:L.callback,next:null});e:{var Pe=r,Ee=L;switch(ae=i,ve=c,Ee.tag){case 1:if(Pe=Ee.payload,typeof Pe=="function"){oe=Pe.call(ve,oe,ae);break e}oe=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=Ee.payload,ae=typeof Pe=="function"?Pe.call(ve,oe,ae):Pe,ae==null)break e;oe=V({},oe,ae);break e;case 2:Pr=!0}}L.callback!==null&&L.lane!==0&&(r.flags|=64,ae=p.effects,ae===null?p.effects=[L]:ae.push(L))}else ve={eventTime:ve,lane:ae,tag:L.tag,payload:L.payload,callback:L.callback,next:null},re===null?(q=re=ve,O=oe):re=re.next=ve,w|=ae;if(L=L.next,L===null){if(L=p.shared.pending,L===null)break;ae=L,L=ae.next,ae.next=null,p.lastBaseUpdate=ae,p.shared.pending=null}}while(!0);if(re===null&&(O=oe),p.baseState=O,p.firstBaseUpdate=q,p.lastBaseUpdate=re,i=p.shared.interleaved,i!==null){p=i;do w|=p.lane,p=p.next;while(p!==i)}else g===null&&(p.shared.lanes=0);di|=w,r.lanes=w,r.memoizedState=oe}}function Cy(r,i,c){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var d=r[i],p=d.callback;if(p!==null){if(d.callback=null,d=c,typeof p!="function")throw Error(n(191,p));p.call(d)}}}var ys={},xa=_r(ys),vs=_r(ys),bs=_r(ys);function ci(r){if(r===ys)throw Error(n(174));return r}function ch(r,i){switch(bt(bs,i),bt(vs,r),bt(xa,ys),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:St(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=St(i,r)}_t(xa),bt(xa,i)}function lo(){_t(xa),_t(vs),_t(bs)}function Ty(r){ci(bs.current);var i=ci(xa.current),c=St(i,r.type);i!==c&&(bt(vs,r),bt(xa,c))}function uh(r){vs.current===r&&(_t(xa),_t(vs))}var Et=_r(0);function uc(r){for(var i=r;i!==null;){if(i.tag===13){var c=i.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var dh=[];function hh(){for(var r=0;r<dh.length;r++)dh[r]._workInProgressVersionPrimary=null;dh.length=0}var dc=A.ReactCurrentDispatcher,fh=A.ReactCurrentBatchConfig,ui=0,At=null,zt=null,Kt=null,hc=!1,ks=!1,_s=0,HS=0;function on(){throw Error(n(321))}function ph(r,i){if(i===null)return!1;for(var c=0;c<i.length&&c<r.length;c++)if(!ia(r[c],i[c]))return!1;return!0}function mh(r,i,c,d,p,g){if(ui=g,At=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,dc.current=r===null||r.memoizedState===null?qS:YS,r=c(d,p),ks){g=0;do{if(ks=!1,_s=0,25<=g)throw Error(n(301));g+=1,Kt=zt=null,i.updateQueue=null,dc.current=ZS,r=c(d,p)}while(ks)}if(dc.current=mc,i=zt!==null&&zt.next!==null,ui=0,Kt=zt=At=null,hc=!1,i)throw Error(n(300));return r}function gh(){var r=_s!==0;return _s=0,r}function Pa(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?At.memoizedState=Kt=r:Kt=Kt.next=r,Kt}function Hn(){if(zt===null){var r=At.alternate;r=r!==null?r.memoizedState:null}else r=zt.next;var i=Kt===null?At.memoizedState:Kt.next;if(i!==null)Kt=i,zt=r;else{if(r===null)throw Error(n(310));zt=r,r={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Kt===null?At.memoizedState=Kt=r:Kt=Kt.next=r}return Kt}function ws(r,i){return typeof i=="function"?i(r):i}function yh(r){var i=Hn(),c=i.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=r;var d=zt,p=d.baseQueue,g=c.pending;if(g!==null){if(p!==null){var w=p.next;p.next=g.next,g.next=w}d.baseQueue=p=g,c.pending=null}if(p!==null){g=p.next,d=d.baseState;var L=w=null,O=null,q=g;do{var re=q.lane;if((ui&re)===re)O!==null&&(O=O.next={lane:0,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),d=q.hasEagerState?q.eagerState:r(d,q.action);else{var oe={lane:re,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null};O===null?(L=O=oe,w=d):O=O.next=oe,At.lanes|=re,di|=re}q=q.next}while(q!==null&&q!==g);O===null?w=d:O.next=L,ia(d,i.memoizedState)||(Sn=!0),i.memoizedState=d,i.baseState=w,i.baseQueue=O,c.lastRenderedState=d}if(r=c.interleaved,r!==null){p=r;do g=p.lane,At.lanes|=g,di|=g,p=p.next;while(p!==r)}else p===null&&(c.lanes=0);return[i.memoizedState,c.dispatch]}function vh(r){var i=Hn(),c=i.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=r;var d=c.dispatch,p=c.pending,g=i.memoizedState;if(p!==null){c.pending=null;var w=p=p.next;do g=r(g,w.action),w=w.next;while(w!==p);ia(g,i.memoizedState)||(Sn=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),c.lastRenderedState=g}return[g,d]}function Ey(){}function Ay(r,i){var c=At,d=Hn(),p=i(),g=!ia(d.memoizedState,p);if(g&&(d.memoizedState=p,Sn=!0),d=d.queue,bh(Dy.bind(null,c,d,r),[r]),d.getSnapshot!==i||g||Kt!==null&&Kt.memoizedState.tag&1){if(c.flags|=2048,xs(9,Ly.bind(null,c,d,p,i),void 0,null),qt===null)throw Error(n(349));(ui&30)!==0||Ry(c,i,p)}return p}function Ry(r,i,c){r.flags|=16384,r={getSnapshot:i,value:c},i=At.updateQueue,i===null?(i={lastEffect:null,stores:null},At.updateQueue=i,i.stores=[r]):(c=i.stores,c===null?i.stores=[r]:c.push(r))}function Ly(r,i,c,d){i.value=c,i.getSnapshot=d,Iy(i)&&My(r)}function Dy(r,i,c){return c(function(){Iy(i)&&My(r)})}function Iy(r){var i=r.getSnapshot;r=r.value;try{var c=i();return!ia(r,c)}catch{return!0}}function My(r){var i=Ya(r,1);i!==null&&ua(i,r,1,-1)}function Ny(r){var i=Pa();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ws,lastRenderedState:r},i.queue=r,r=r.dispatch=KS.bind(null,At,r),[i.memoizedState,r]}function xs(r,i,c,d){return r={tag:r,create:i,destroy:c,deps:d,next:null},i=At.updateQueue,i===null?(i={lastEffect:null,stores:null},At.updateQueue=i,i.lastEffect=r.next=r):(c=i.lastEffect,c===null?i.lastEffect=r.next=r:(d=c.next,c.next=r,r.next=d,i.lastEffect=r)),r}function Oy(){return Hn().memoizedState}function fc(r,i,c,d){var p=Pa();At.flags|=r,p.memoizedState=xs(1|i,c,void 0,d===void 0?null:d)}function pc(r,i,c,d){var p=Hn();d=d===void 0?null:d;var g=void 0;if(zt!==null){var w=zt.memoizedState;if(g=w.destroy,d!==null&&ph(d,w.deps)){p.memoizedState=xs(i,c,g,d);return}}At.flags|=r,p.memoizedState=xs(1|i,c,g,d)}function jy(r,i){return fc(8390656,8,r,i)}function bh(r,i){return pc(2048,8,r,i)}function Uy(r,i){return pc(4,2,r,i)}function By(r,i){return pc(4,4,r,i)}function Fy(r,i){if(typeof i=="function")return r=r(),i(r),function(){i(null)};if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function zy(r,i,c){return c=c!=null?c.concat([r]):null,pc(4,4,Fy.bind(null,i,r),c)}function kh(){}function Vy(r,i){var c=Hn();i=i===void 0?null:i;var d=c.memoizedState;return d!==null&&i!==null&&ph(i,d[1])?d[0]:(c.memoizedState=[r,i],r)}function $y(r,i){var c=Hn();i=i===void 0?null:i;var d=c.memoizedState;return d!==null&&i!==null&&ph(i,d[1])?d[0]:(r=r(),c.memoizedState=[r,i],r)}function Hy(r,i,c){return(ui&21)===0?(r.baseState&&(r.baseState=!1,Sn=!0),r.memoizedState=c):(ia(c,i)||(c=kg(),At.lanes|=c,di|=c,r.baseState=!0),i)}function WS(r,i){var c=ht;ht=c!==0&&4>c?c:4,r(!0);var d=fh.transition;fh.transition={};try{r(!1),i()}finally{ht=c,fh.transition=d}}function Wy(){return Hn().memoizedState}function GS(r,i,c){var d=Ar(r);if(c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null},Gy(r))Ky(i,c);else if(c=xy(r,i,c,d),c!==null){var p=gn();ua(c,r,d,p),qy(c,i,d)}}function KS(r,i,c){var d=Ar(r),p={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Gy(r))Ky(i,p);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var w=i.lastRenderedState,L=g(w,c);if(p.hasEagerState=!0,p.eagerState=L,ia(L,w)){var O=i.interleaved;O===null?(p.next=p,sh(i)):(p.next=O.next,O.next=p),i.interleaved=p;return}}catch{}c=xy(r,i,p,d),c!==null&&(p=gn(),ua(c,r,d,p),qy(c,i,d))}}function Gy(r){var i=r.alternate;return r===At||i!==null&&i===At}function Ky(r,i){ks=hc=!0;var c=r.pending;c===null?i.next=i:(i.next=c.next,c.next=i),r.pending=i}function qy(r,i,c){if((c&4194240)!==0){var d=i.lanes;d&=r.pendingLanes,c|=d,i.lanes=c,wd(r,c)}}var mc={readContext:$n,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useInsertionEffect:on,useLayoutEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useMutableSource:on,useSyncExternalStore:on,useId:on,unstable_isNewReconciler:!1},qS={readContext:$n,useCallback:function(r,i){return Pa().memoizedState=[r,i===void 0?null:i],r},useContext:$n,useEffect:jy,useImperativeHandle:function(r,i,c){return c=c!=null?c.concat([r]):null,fc(4194308,4,Fy.bind(null,i,r),c)},useLayoutEffect:function(r,i){return fc(4194308,4,r,i)},useInsertionEffect:function(r,i){return fc(4,2,r,i)},useMemo:function(r,i){var c=Pa();return i=i===void 0?null:i,r=r(),c.memoizedState=[r,i],r},useReducer:function(r,i,c){var d=Pa();return i=c!==void 0?c(i):i,d.memoizedState=d.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},d.queue=r,r=r.dispatch=GS.bind(null,At,r),[d.memoizedState,r]},useRef:function(r){var i=Pa();return r={current:r},i.memoizedState=r},useState:Ny,useDebugValue:kh,useDeferredValue:function(r){return Pa().memoizedState=r},useTransition:function(){var r=Ny(!1),i=r[0];return r=WS.bind(null,r[1]),Pa().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,c){var d=At,p=Pa();if(Ct){if(c===void 0)throw Error(n(407));c=c()}else{if(c=i(),qt===null)throw Error(n(349));(ui&30)!==0||Ry(d,i,c)}p.memoizedState=c;var g={value:c,getSnapshot:i};return p.queue=g,jy(Dy.bind(null,d,g,r),[r]),d.flags|=2048,xs(9,Ly.bind(null,d,g,c,i),void 0,null),c},useId:function(){var r=Pa(),i=qt.identifierPrefix;if(Ct){var c=qa,d=Ka;c=(d&~(1<<32-Ge(d)-1)).toString(32)+c,i=":"+i+"R"+c,c=_s++,0<c&&(i+="H"+c.toString(32)),i+=":"}else c=HS++,i=":"+i+"r"+c.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},YS={readContext:$n,useCallback:Vy,useContext:$n,useEffect:bh,useImperativeHandle:zy,useInsertionEffect:Uy,useLayoutEffect:By,useMemo:$y,useReducer:yh,useRef:Oy,useState:function(){return yh(ws)},useDebugValue:kh,useDeferredValue:function(r){var i=Hn();return Hy(i,zt.memoizedState,r)},useTransition:function(){var r=yh(ws)[0],i=Hn().memoizedState;return[r,i]},useMutableSource:Ey,useSyncExternalStore:Ay,useId:Wy,unstable_isNewReconciler:!1},ZS={readContext:$n,useCallback:Vy,useContext:$n,useEffect:bh,useImperativeHandle:zy,useInsertionEffect:Uy,useLayoutEffect:By,useMemo:$y,useReducer:vh,useRef:Oy,useState:function(){return vh(ws)},useDebugValue:kh,useDeferredValue:function(r){var i=Hn();return zt===null?i.memoizedState=r:Hy(i,zt.memoizedState,r)},useTransition:function(){var r=vh(ws)[0],i=Hn().memoizedState;return[r,i]},useMutableSource:Ey,useSyncExternalStore:Ay,useId:Wy,unstable_isNewReconciler:!1};function sa(r,i){if(r&&r.defaultProps){i=V({},i),r=r.defaultProps;for(var c in r)i[c]===void 0&&(i[c]=r[c]);return i}return i}function _h(r,i,c,d){i=r.memoizedState,c=c(d,i),c=c==null?i:V({},i,c),r.memoizedState=c,r.lanes===0&&(r.updateQueue.baseState=c)}var gc={isMounted:function(r){return(r=r._reactInternals)?be(r)===r:!1},enqueueSetState:function(r,i,c){r=r._reactInternals;var d=gn(),p=Ar(r),g=Za(d,p);g.payload=i,c!=null&&(g.callback=c),i=Sr(r,g,p),i!==null&&(ua(i,r,p,d),lc(i,r,p))},enqueueReplaceState:function(r,i,c){r=r._reactInternals;var d=gn(),p=Ar(r),g=Za(d,p);g.tag=1,g.payload=i,c!=null&&(g.callback=c),i=Sr(r,g,p),i!==null&&(ua(i,r,p,d),lc(i,r,p))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var c=gn(),d=Ar(r),p=Za(c,d);p.tag=2,i!=null&&(p.callback=i),i=Sr(r,p,d),i!==null&&(ua(i,r,d,c),lc(i,r,d))}};function Yy(r,i,c,d,p,g,w){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,g,w):i.prototype&&i.prototype.isPureReactComponent?!cs(c,d)||!cs(p,g):!0}function Zy(r,i,c){var d=!1,p=wr,g=i.contextType;return typeof g=="object"&&g!==null?g=$n(g):(p=Pn(i)?ii:rn.current,d=i.contextTypes,g=(d=d!=null)?to(r,p):wr),i=new i(c,g),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=gc,r.stateNode=i,i._reactInternals=r,d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=p,r.__reactInternalMemoizedMaskedChildContext=g),i}function Xy(r,i,c,d){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(c,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(c,d),i.state!==r&&gc.enqueueReplaceState(i,i.state,null)}function wh(r,i,c,d){var p=r.stateNode;p.props=c,p.state=r.memoizedState,p.refs={},lh(r);var g=i.contextType;typeof g=="object"&&g!==null?p.context=$n(g):(g=Pn(i)?ii:rn.current,p.context=to(r,g)),p.state=r.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(_h(r,i,g,c),p.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(i=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),i!==p.state&&gc.enqueueReplaceState(p,p.state,null),cc(r,c,p,d),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308)}function co(r,i){try{var c="",d=i;do c+=ye(d),d=d.return;while(d);var p=c}catch(g){p=`
8
- Error generating stack: `+g.message+`
9
- `+g.stack}return{value:r,source:i,stack:p,digest:null}}function xh(r,i,c){return{value:r,source:null,stack:c??null,digest:i??null}}function Ph(r,i){try{console.error(i.value)}catch(c){setTimeout(function(){throw c})}}var XS=typeof WeakMap=="function"?WeakMap:Map;function Qy(r,i,c){c=Za(-1,c),c.tag=3,c.payload={element:null};var d=i.value;return c.callback=function(){xc||(xc=!0,Bh=d),Ph(r,i)},c}function Jy(r,i,c){c=Za(-1,c),c.tag=3;var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var p=i.value;c.payload=function(){return d(p)},c.callback=function(){Ph(r,i)}}var g=r.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(c.callback=function(){Ph(r,i),typeof d!="function"&&(Tr===null?Tr=new Set([this]):Tr.add(this));var w=i.stack;this.componentDidCatch(i.value,{componentStack:w!==null?w:""})}),c}function ev(r,i,c){var d=r.pingCache;if(d===null){d=r.pingCache=new XS;var p=new Set;d.set(i,p)}else p=d.get(i),p===void 0&&(p=new Set,d.set(i,p));p.has(c)||(p.add(c),r=dC.bind(null,r,i,c),i.then(r,r))}function tv(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function nv(r,i,c,d,p){return(r.mode&1)===0?(r===i?r.flags|=65536:(r.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(i=Za(-1,1),i.tag=2,Sr(c,i,1))),c.lanes|=1),r):(r.flags|=65536,r.lanes=p,r)}var QS=A.ReactCurrentOwner,Sn=!1;function mn(r,i,c,d){i.child=r===null?wy(i,null,c,d):io(i,r.child,c,d)}function av(r,i,c,d,p){c=c.render;var g=i.ref;return so(i,p),d=mh(r,i,c,d,g,p),c=gh(),r!==null&&!Sn?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~p,Xa(r,i,p)):(Ct&&c&&Qd(i),i.flags|=1,mn(r,i,d,p),i.child)}function rv(r,i,c,d,p){if(r===null){var g=c.type;return typeof g=="function"&&!Gh(g)&&g.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(i.tag=15,i.type=g,iv(r,i,g,d,p)):(r=Ac(c.type,null,d,i,i.mode,p),r.ref=i.ref,r.return=i,i.child=r)}if(g=r.child,(r.lanes&p)===0){var w=g.memoizedProps;if(c=c.compare,c=c!==null?c:cs,c(w,d)&&r.ref===i.ref)return Xa(r,i,p)}return i.flags|=1,r=Lr(g,d),r.ref=i.ref,r.return=i,i.child=r}function iv(r,i,c,d,p){if(r!==null){var g=r.memoizedProps;if(cs(g,d)&&r.ref===i.ref)if(Sn=!1,i.pendingProps=d=g,(r.lanes&p)!==0)(r.flags&131072)!==0&&(Sn=!0);else return i.lanes=r.lanes,Xa(r,i,p)}return Sh(r,i,c,d,p)}function ov(r,i,c){var d=i.pendingProps,p=d.children,g=r!==null?r.memoizedState:null;if(d.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},bt(ho,On),On|=c;else{if((c&1073741824)===0)return r=g!==null?g.baseLanes|c:c,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,bt(ho,On),On|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=g!==null?g.baseLanes:c,bt(ho,On),On|=d}else g!==null?(d=g.baseLanes|c,i.memoizedState=null):d=c,bt(ho,On),On|=d;return mn(r,i,p,c),i.child}function sv(r,i){var c=i.ref;(r===null&&c!==null||r!==null&&r.ref!==c)&&(i.flags|=512,i.flags|=2097152)}function Sh(r,i,c,d,p){var g=Pn(c)?ii:rn.current;return g=to(i,g),so(i,p),c=mh(r,i,c,d,g,p),d=gh(),r!==null&&!Sn?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~p,Xa(r,i,p)):(Ct&&d&&Qd(i),i.flags|=1,mn(r,i,c,p),i.child)}function lv(r,i,c,d,p){if(Pn(c)){var g=!0;ec(i)}else g=!1;if(so(i,p),i.stateNode===null)vc(r,i),Zy(i,c,d),wh(i,c,d,p),d=!0;else if(r===null){var w=i.stateNode,L=i.memoizedProps;w.props=L;var O=w.context,q=c.contextType;typeof q=="object"&&q!==null?q=$n(q):(q=Pn(c)?ii:rn.current,q=to(i,q));var re=c.getDerivedStateFromProps,oe=typeof re=="function"||typeof w.getSnapshotBeforeUpdate=="function";oe||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(L!==d||O!==q)&&Xy(i,w,d,q),Pr=!1;var ae=i.memoizedState;w.state=ae,cc(i,d,w,p),O=i.memoizedState,L!==d||ae!==O||xn.current||Pr?(typeof re=="function"&&(_h(i,c,re,d),O=i.memoizedState),(L=Pr||Yy(i,c,L,d,ae,O,q))?(oe||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(i.flags|=4194308)):(typeof w.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=O),w.props=d,w.state=O,w.context=q,d=L):(typeof w.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{w=i.stateNode,Py(r,i),L=i.memoizedProps,q=i.type===i.elementType?L:sa(i.type,L),w.props=q,oe=i.pendingProps,ae=w.context,O=c.contextType,typeof O=="object"&&O!==null?O=$n(O):(O=Pn(c)?ii:rn.current,O=to(i,O));var ve=c.getDerivedStateFromProps;(re=typeof ve=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(L!==oe||ae!==O)&&Xy(i,w,d,O),Pr=!1,ae=i.memoizedState,w.state=ae,cc(i,d,w,p);var Pe=i.memoizedState;L!==oe||ae!==Pe||xn.current||Pr?(typeof ve=="function"&&(_h(i,c,ve,d),Pe=i.memoizedState),(q=Pr||Yy(i,c,q,d,ae,Pe,O)||!1)?(re||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(d,Pe,O),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(d,Pe,O)),typeof w.componentDidUpdate=="function"&&(i.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof w.componentDidUpdate!="function"||L===r.memoizedProps&&ae===r.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||L===r.memoizedProps&&ae===r.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=Pe),w.props=d,w.state=Pe,w.context=O,d=q):(typeof w.componentDidUpdate!="function"||L===r.memoizedProps&&ae===r.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||L===r.memoizedProps&&ae===r.memoizedState||(i.flags|=1024),d=!1)}return Ch(r,i,c,d,g,p)}function Ch(r,i,c,d,p,g){sv(r,i);var w=(i.flags&128)!==0;if(!d&&!w)return p&&fy(i,c,!1),Xa(r,i,g);d=i.stateNode,QS.current=i;var L=w&&typeof c.getDerivedStateFromError!="function"?null:d.render();return i.flags|=1,r!==null&&w?(i.child=io(i,r.child,null,g),i.child=io(i,null,L,g)):mn(r,i,L,g),i.memoizedState=d.state,p&&fy(i,c,!0),i.child}function cv(r){var i=r.stateNode;i.pendingContext?dy(r,i.pendingContext,i.pendingContext!==i.context):i.context&&dy(r,i.context,!1),ch(r,i.containerInfo)}function uv(r,i,c,d,p){return ro(),nh(p),i.flags|=256,mn(r,i,c,d),i.child}var Th={dehydrated:null,treeContext:null,retryLane:0};function Eh(r){return{baseLanes:r,cachePool:null,transitions:null}}function dv(r,i,c){var d=i.pendingProps,p=Et.current,g=!1,w=(i.flags&128)!==0,L;if((L=w)||(L=r!==null&&r.memoizedState===null?!1:(p&2)!==0),L?(g=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(p|=1),bt(Et,p&1),r===null)return th(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((i.mode&1)===0?i.lanes=1:r.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(w=d.children,r=d.fallback,g?(d=i.mode,g=i.child,w={mode:"hidden",children:w},(d&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=w):g=Rc(w,d,0,null),r=mi(r,d,c,null),g.return=i,r.return=i,g.sibling=r,i.child=g,i.child.memoizedState=Eh(c),i.memoizedState=Th,r):Ah(i,w));if(p=r.memoizedState,p!==null&&(L=p.dehydrated,L!==null))return JS(r,i,w,d,L,p,c);if(g){g=d.fallback,w=i.mode,p=r.child,L=p.sibling;var O={mode:"hidden",children:d.children};return(w&1)===0&&i.child!==p?(d=i.child,d.childLanes=0,d.pendingProps=O,i.deletions=null):(d=Lr(p,O),d.subtreeFlags=p.subtreeFlags&14680064),L!==null?g=Lr(L,g):(g=mi(g,w,c,null),g.flags|=2),g.return=i,d.return=i,d.sibling=g,i.child=d,d=g,g=i.child,w=r.child.memoizedState,w=w===null?Eh(c):{baseLanes:w.baseLanes|c,cachePool:null,transitions:w.transitions},g.memoizedState=w,g.childLanes=r.childLanes&~c,i.memoizedState=Th,d}return g=r.child,r=g.sibling,d=Lr(g,{mode:"visible",children:d.children}),(i.mode&1)===0&&(d.lanes=c),d.return=i,d.sibling=null,r!==null&&(c=i.deletions,c===null?(i.deletions=[r],i.flags|=16):c.push(r)),i.child=d,i.memoizedState=null,d}function Ah(r,i){return i=Rc({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function yc(r,i,c,d){return d!==null&&nh(d),io(i,r.child,null,c),r=Ah(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function JS(r,i,c,d,p,g,w){if(c)return i.flags&256?(i.flags&=-257,d=xh(Error(n(422))),yc(r,i,w,d)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(g=d.fallback,p=i.mode,d=Rc({mode:"visible",children:d.children},p,0,null),g=mi(g,p,w,null),g.flags|=2,d.return=i,g.return=i,d.sibling=g,i.child=d,(i.mode&1)!==0&&io(i,r.child,null,w),i.child.memoizedState=Eh(w),i.memoizedState=Th,g);if((i.mode&1)===0)return yc(r,i,w,null);if(p.data==="$!"){if(d=p.nextSibling&&p.nextSibling.dataset,d)var L=d.dgst;return d=L,g=Error(n(419)),d=xh(g,d,void 0),yc(r,i,w,d)}if(L=(w&r.childLanes)!==0,Sn||L){if(d=qt,d!==null){switch(w&-w){case 4:p=2;break;case 16:p=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(d.suspendedLanes|w))!==0?0:p,p!==0&&p!==g.retryLane&&(g.retryLane=p,Ya(r,p),ua(d,r,p,-1))}return Wh(),d=xh(Error(n(421))),yc(r,i,w,d)}return p.data==="$?"?(i.flags|=128,i.child=r.child,i=hC.bind(null,r),p._reactRetry=i,null):(r=g.treeContext,Nn=kr(p.nextSibling),Mn=i,Ct=!0,oa=null,r!==null&&(zn[Vn++]=Ka,zn[Vn++]=qa,zn[Vn++]=oi,Ka=r.id,qa=r.overflow,oi=i),i=Ah(i,d.children),i.flags|=4096,i)}function hv(r,i,c){r.lanes|=i;var d=r.alternate;d!==null&&(d.lanes|=i),oh(r.return,i,c)}function Rh(r,i,c,d,p){var g=r.memoizedState;g===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:p}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=d,g.tail=c,g.tailMode=p)}function fv(r,i,c){var d=i.pendingProps,p=d.revealOrder,g=d.tail;if(mn(r,i,d.children,c),d=Et.current,(d&2)!==0)d=d&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&hv(r,c,i);else if(r.tag===19)hv(r,c,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}d&=1}if(bt(Et,d),(i.mode&1)===0)i.memoizedState=null;else switch(p){case"forwards":for(c=i.child,p=null;c!==null;)r=c.alternate,r!==null&&uc(r)===null&&(p=c),c=c.sibling;c=p,c===null?(p=i.child,i.child=null):(p=c.sibling,c.sibling=null),Rh(i,!1,p,c,g);break;case"backwards":for(c=null,p=i.child,i.child=null;p!==null;){if(r=p.alternate,r!==null&&uc(r)===null){i.child=p;break}r=p.sibling,p.sibling=c,c=p,p=r}Rh(i,!0,c,null,g);break;case"together":Rh(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function vc(r,i){(i.mode&1)===0&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function Xa(r,i,c){if(r!==null&&(i.dependencies=r.dependencies),di|=i.lanes,(c&i.childLanes)===0)return null;if(r!==null&&i.child!==r.child)throw Error(n(153));if(i.child!==null){for(r=i.child,c=Lr(r,r.pendingProps),i.child=c,c.return=i;r.sibling!==null;)r=r.sibling,c=c.sibling=Lr(r,r.pendingProps),c.return=i;c.sibling=null}return i.child}function eC(r,i,c){switch(i.tag){case 3:cv(i),ro();break;case 5:Ty(i);break;case 1:Pn(i.type)&&ec(i);break;case 4:ch(i,i.stateNode.containerInfo);break;case 10:var d=i.type._context,p=i.memoizedProps.value;bt(oc,d._currentValue),d._currentValue=p;break;case 13:if(d=i.memoizedState,d!==null)return d.dehydrated!==null?(bt(Et,Et.current&1),i.flags|=128,null):(c&i.child.childLanes)!==0?dv(r,i,c):(bt(Et,Et.current&1),r=Xa(r,i,c),r!==null?r.sibling:null);bt(Et,Et.current&1);break;case 19:if(d=(c&i.childLanes)!==0,(r.flags&128)!==0){if(d)return fv(r,i,c);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),bt(Et,Et.current),d)break;return null;case 22:case 23:return i.lanes=0,ov(r,i,c)}return Xa(r,i,c)}var pv,Lh,mv,gv;pv=function(r,i){for(var c=i.child;c!==null;){if(c.tag===5||c.tag===6)r.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},Lh=function(){},mv=function(r,i,c,d){var p=r.memoizedProps;if(p!==d){r=i.stateNode,ci(xa.current);var g=null;switch(c){case"input":p=Xt(r,p),d=Xt(r,d),g=[];break;case"select":p=V({},p,{value:void 0}),d=V({},d,{value:void 0}),g=[];break;case"textarea":p=ei(r,p),d=ei(r,d),g=[];break;default:typeof p.onClick!="function"&&typeof d.onClick=="function"&&(r.onclick=Xl)}ka(c,d);var w;c=null;for(q in p)if(!d.hasOwnProperty(q)&&p.hasOwnProperty(q)&&p[q]!=null)if(q==="style"){var L=p[q];for(w in L)L.hasOwnProperty(w)&&(c||(c={}),c[w]="")}else q!=="dangerouslySetInnerHTML"&&q!=="children"&&q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&q!=="autoFocus"&&(o.hasOwnProperty(q)?g||(g=[]):(g=g||[]).push(q,null));for(q in d){var O=d[q];if(L=p?.[q],d.hasOwnProperty(q)&&O!==L&&(O!=null||L!=null))if(q==="style")if(L){for(w in L)!L.hasOwnProperty(w)||O&&O.hasOwnProperty(w)||(c||(c={}),c[w]="");for(w in O)O.hasOwnProperty(w)&&L[w]!==O[w]&&(c||(c={}),c[w]=O[w])}else c||(g||(g=[]),g.push(q,c)),c=O;else q==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,L=L?L.__html:void 0,O!=null&&L!==O&&(g=g||[]).push(q,O)):q==="children"?typeof O!="string"&&typeof O!="number"||(g=g||[]).push(q,""+O):q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&(o.hasOwnProperty(q)?(O!=null&&q==="onScroll"&&kt("scroll",r),g||L===O||(g=[])):(g=g||[]).push(q,O))}c&&(g=g||[]).push("style",c);var q=g;(i.updateQueue=q)&&(i.flags|=4)}},gv=function(r,i,c,d){c!==d&&(i.flags|=4)};function Ps(r,i){if(!Ct)switch(r.tailMode){case"hidden":i=r.tail;for(var c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?r.tail=null:c.sibling=null;break;case"collapsed":c=r.tail;for(var d=null;c!==null;)c.alternate!==null&&(d=c),c=c.sibling;d===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function sn(r){var i=r.alternate!==null&&r.alternate.child===r.child,c=0,d=0;if(i)for(var p=r.child;p!==null;)c|=p.lanes|p.childLanes,d|=p.subtreeFlags&14680064,d|=p.flags&14680064,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)c|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=d,r.childLanes=c,i}function tC(r,i,c){var d=i.pendingProps;switch(Jd(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sn(i),null;case 1:return Pn(i.type)&&Jl(),sn(i),null;case 3:return d=i.stateNode,lo(),_t(xn),_t(rn),hh(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(r===null||r.child===null)&&(rc(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,oa!==null&&(Vh(oa),oa=null))),Lh(r,i),sn(i),null;case 5:uh(i);var p=ci(bs.current);if(c=i.type,r!==null&&i.stateNode!=null)mv(r,i,c,d,p),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!d){if(i.stateNode===null)throw Error(n(166));return sn(i),null}if(r=ci(xa.current),rc(i)){d=i.stateNode,c=i.type;var g=i.memoizedProps;switch(d[wa]=i,d[ps]=g,r=(i.mode&1)!==0,c){case"dialog":kt("cancel",d),kt("close",d);break;case"iframe":case"object":case"embed":kt("load",d);break;case"video":case"audio":for(p=0;p<ds.length;p++)kt(ds[p],d);break;case"source":kt("error",d);break;case"img":case"image":case"link":kt("error",d),kt("load",d);break;case"details":kt("toggle",d);break;case"input":Jr(d,g),kt("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!g.multiple},kt("invalid",d);break;case"textarea":Vi(d,g),kt("invalid",d)}ka(c,g),p=null;for(var w in g)if(g.hasOwnProperty(w)){var L=g[w];w==="children"?typeof L=="string"?d.textContent!==L&&(g.suppressHydrationWarning!==!0&&Zl(d.textContent,L,r),p=["children",L]):typeof L=="number"&&d.textContent!==""+L&&(g.suppressHydrationWarning!==!0&&Zl(d.textContent,L,r),p=["children",""+L]):o.hasOwnProperty(w)&&L!=null&&w==="onScroll"&&kt("scroll",d)}switch(c){case"input":Rn(d),zi(d,g,!0);break;case"textarea":Rn(d),Ve(d);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(d.onclick=Xl)}d=p,i.updateQueue=d,d!==null&&(i.flags|=4)}else{w=p.nodeType===9?p:p.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=ft(c)),r==="http://www.w3.org/1999/xhtml"?c==="script"?(r=w.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof d.is=="string"?r=w.createElement(c,{is:d.is}):(r=w.createElement(c),c==="select"&&(w=r,d.multiple?w.multiple=!0:d.size&&(w.size=d.size))):r=w.createElementNS(r,c),r[wa]=i,r[ps]=d,pv(r,i,!1,!1),i.stateNode=r;e:{switch(w=_a(c,d),c){case"dialog":kt("cancel",r),kt("close",r),p=d;break;case"iframe":case"object":case"embed":kt("load",r),p=d;break;case"video":case"audio":for(p=0;p<ds.length;p++)kt(ds[p],r);p=d;break;case"source":kt("error",r),p=d;break;case"img":case"image":case"link":kt("error",r),kt("load",r),p=d;break;case"details":kt("toggle",r),p=d;break;case"input":Jr(r,d),p=Xt(r,d),kt("invalid",r);break;case"option":p=d;break;case"select":r._wrapperState={wasMultiple:!!d.multiple},p=V({},d,{value:void 0}),kt("invalid",r);break;case"textarea":Vi(r,d),p=ei(r,d),kt("invalid",r);break;default:p=d}ka(c,p),L=p;for(g in L)if(L.hasOwnProperty(g)){var O=L[g];g==="style"?Ba(r,O):g==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,O!=null&&yt(r,O)):g==="children"?typeof O=="string"?(c!=="textarea"||O!=="")&&dt(r,O):typeof O=="number"&&dt(r,""+O):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(o.hasOwnProperty(g)?O!=null&&g==="onScroll"&&kt("scroll",r):O!=null&&E(r,g,O,w))}switch(c){case"input":Rn(r),zi(r,d,!1);break;case"textarea":Rn(r),Ve(r);break;case"option":d.value!=null&&r.setAttribute("value",""+Ye(d.value));break;case"select":r.multiple=!!d.multiple,g=d.value,g!=null?dn(r,!!d.multiple,g,!1):d.defaultValue!=null&&dn(r,!!d.multiple,d.defaultValue,!0);break;default:typeof p.onClick=="function"&&(r.onclick=Xl)}switch(c){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return sn(i),null;case 6:if(r&&i.stateNode!=null)gv(r,i,r.memoizedProps,d);else{if(typeof d!="string"&&i.stateNode===null)throw Error(n(166));if(c=ci(bs.current),ci(xa.current),rc(i)){if(d=i.stateNode,c=i.memoizedProps,d[wa]=i,(g=d.nodeValue!==c)&&(r=Mn,r!==null))switch(r.tag){case 3:Zl(d.nodeValue,c,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Zl(d.nodeValue,c,(r.mode&1)!==0)}g&&(i.flags|=4)}else d=(c.nodeType===9?c:c.ownerDocument).createTextNode(d),d[wa]=i,i.stateNode=d}return sn(i),null;case 13:if(_t(Et),d=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Ct&&Nn!==null&&(i.mode&1)!==0&&(i.flags&128)===0)by(),ro(),i.flags|=98560,g=!1;else if(g=rc(i),d!==null&&d.dehydrated!==null){if(r===null){if(!g)throw Error(n(318));if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(n(317));g[wa]=i}else ro(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;sn(i),g=!1}else oa!==null&&(Vh(oa),oa=null),g=!0;if(!g)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=c,i):(d=d!==null,d!==(r!==null&&r.memoizedState!==null)&&d&&(i.child.flags|=8192,(i.mode&1)!==0&&(r===null||(Et.current&1)!==0?Vt===0&&(Vt=3):Wh())),i.updateQueue!==null&&(i.flags|=4),sn(i),null);case 4:return lo(),Lh(r,i),r===null&&hs(i.stateNode.containerInfo),sn(i),null;case 10:return ih(i.type._context),sn(i),null;case 17:return Pn(i.type)&&Jl(),sn(i),null;case 19:if(_t(Et),g=i.memoizedState,g===null)return sn(i),null;if(d=(i.flags&128)!==0,w=g.rendering,w===null)if(d)Ps(g,!1);else{if(Vt!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(w=uc(r),w!==null){for(i.flags|=128,Ps(g,!1),d=w.updateQueue,d!==null&&(i.updateQueue=d,i.flags|=4),i.subtreeFlags=0,d=c,c=i.child;c!==null;)g=c,r=d,g.flags&=14680066,w=g.alternate,w===null?(g.childLanes=0,g.lanes=r,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=w.childLanes,g.lanes=w.lanes,g.child=w.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=w.memoizedProps,g.memoizedState=w.memoizedState,g.updateQueue=w.updateQueue,g.type=w.type,r=w.dependencies,g.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),c=c.sibling;return bt(Et,Et.current&1|2),i.child}r=r.sibling}g.tail!==null&&it()>fo&&(i.flags|=128,d=!0,Ps(g,!1),i.lanes=4194304)}else{if(!d)if(r=uc(w),r!==null){if(i.flags|=128,d=!0,c=r.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),Ps(g,!0),g.tail===null&&g.tailMode==="hidden"&&!w.alternate&&!Ct)return sn(i),null}else 2*it()-g.renderingStartTime>fo&&c!==1073741824&&(i.flags|=128,d=!0,Ps(g,!1),i.lanes=4194304);g.isBackwards?(w.sibling=i.child,i.child=w):(c=g.last,c!==null?c.sibling=w:i.child=w,g.last=w)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=it(),i.sibling=null,c=Et.current,bt(Et,d?c&1|2:c&1),i):(sn(i),null);case 22:case 23:return Hh(),d=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==d&&(i.flags|=8192),d&&(i.mode&1)!==0?(On&1073741824)!==0&&(sn(i),i.subtreeFlags&6&&(i.flags|=8192)):sn(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function nC(r,i){switch(Jd(i),i.tag){case 1:return Pn(i.type)&&Jl(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return lo(),_t(xn),_t(rn),hh(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return uh(i),null;case 13:if(_t(Et),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));ro()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return _t(Et),null;case 4:return lo(),null;case 10:return ih(i.type._context),null;case 22:case 23:return Hh(),null;case 24:return null;default:return null}}var bc=!1,ln=!1,aC=typeof WeakSet=="function"?WeakSet:Set,_e=null;function uo(r,i){var c=r.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(d){Lt(r,i,d)}else c.current=null}function Dh(r,i,c){try{c()}catch(d){Lt(r,i,d)}}var yv=!1;function rC(r,i){if(Hd=Bl,r=Yg(),Od(r)){if("selectionStart"in r)var c={start:r.selectionStart,end:r.selectionEnd};else e:{c=(c=r.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&d.rangeCount!==0){c=d.anchorNode;var p=d.anchorOffset,g=d.focusNode;d=d.focusOffset;try{c.nodeType,g.nodeType}catch{c=null;break e}var w=0,L=-1,O=-1,q=0,re=0,oe=r,ae=null;t:for(;;){for(var ve;oe!==c||p!==0&&oe.nodeType!==3||(L=w+p),oe!==g||d!==0&&oe.nodeType!==3||(O=w+d),oe.nodeType===3&&(w+=oe.nodeValue.length),(ve=oe.firstChild)!==null;)ae=oe,oe=ve;for(;;){if(oe===r)break t;if(ae===c&&++q===p&&(L=w),ae===g&&++re===d&&(O=w),(ve=oe.nextSibling)!==null)break;oe=ae,ae=oe.parentNode}oe=ve}c=L===-1||O===-1?null:{start:L,end:O}}else c=null}c=c||{start:0,end:0}}else c=null;for(Wd={focusedElem:r,selectionRange:c},Bl=!1,_e=i;_e!==null;)if(i=_e,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,_e=r;else for(;_e!==null;){i=_e;try{var Pe=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(Pe!==null){var Ee=Pe.memoizedProps,Mt=Pe.memoizedState,$=i.stateNode,j=$.getSnapshotBeforeUpdate(i.elementType===i.type?Ee:sa(i.type,Ee),Mt);$.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var G=i.stateNode.containerInfo;G.nodeType===1?G.textContent="":G.nodeType===9&&G.documentElement&&G.removeChild(G.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(de){Lt(i,i.return,de)}if(r=i.sibling,r!==null){r.return=i.return,_e=r;break}_e=i.return}return Pe=yv,yv=!1,Pe}function Ss(r,i,c){var d=i.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var p=d=d.next;do{if((p.tag&r)===r){var g=p.destroy;p.destroy=void 0,g!==void 0&&Dh(i,c,g)}p=p.next}while(p!==d)}}function kc(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var c=i=i.next;do{if((c.tag&r)===r){var d=c.create;c.destroy=d()}c=c.next}while(c!==i)}}function Ih(r){var i=r.ref;if(i!==null){var c=r.stateNode;r.tag,r=c,typeof i=="function"?i(r):i.current=r}}function vv(r){var i=r.alternate;i!==null&&(r.alternate=null,vv(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[wa],delete i[ps],delete i[Yd],delete i[FS],delete i[zS])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function bv(r){return r.tag===5||r.tag===3||r.tag===4}function kv(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||bv(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Mh(r,i,c){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?c.nodeType===8?c.parentNode.insertBefore(r,i):c.insertBefore(r,i):(c.nodeType===8?(i=c.parentNode,i.insertBefore(r,c)):(i=c,i.appendChild(r)),c=c._reactRootContainer,c!=null||i.onclick!==null||(i.onclick=Xl));else if(d!==4&&(r=r.child,r!==null))for(Mh(r,i,c),r=r.sibling;r!==null;)Mh(r,i,c),r=r.sibling}function Nh(r,i,c){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?c.insertBefore(r,i):c.appendChild(r);else if(d!==4&&(r=r.child,r!==null))for(Nh(r,i,c),r=r.sibling;r!==null;)Nh(r,i,c),r=r.sibling}var Jt=null,la=!1;function Cr(r,i,c){for(c=c.child;c!==null;)_v(r,i,c),c=c.sibling}function _v(r,i,c){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(Fn,c)}catch{}switch(c.tag){case 5:ln||uo(c,i);case 6:var d=Jt,p=la;Jt=null,Cr(r,i,c),Jt=d,la=p,Jt!==null&&(la?(r=Jt,c=c.stateNode,r.nodeType===8?r.parentNode.removeChild(c):r.removeChild(c)):Jt.removeChild(c.stateNode));break;case 18:Jt!==null&&(la?(r=Jt,c=c.stateNode,r.nodeType===8?qd(r.parentNode,c):r.nodeType===1&&qd(r,c),as(r)):qd(Jt,c.stateNode));break;case 4:d=Jt,p=la,Jt=c.stateNode.containerInfo,la=!0,Cr(r,i,c),Jt=d,la=p;break;case 0:case 11:case 14:case 15:if(!ln&&(d=c.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){p=d=d.next;do{var g=p,w=g.destroy;g=g.tag,w!==void 0&&((g&2)!==0||(g&4)!==0)&&Dh(c,i,w),p=p.next}while(p!==d)}Cr(r,i,c);break;case 1:if(!ln&&(uo(c,i),d=c.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(L){Lt(c,i,L)}Cr(r,i,c);break;case 21:Cr(r,i,c);break;case 22:c.mode&1?(ln=(d=ln)||c.memoizedState!==null,Cr(r,i,c),ln=d):Cr(r,i,c);break;default:Cr(r,i,c)}}function wv(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var c=r.stateNode;c===null&&(c=r.stateNode=new aC),i.forEach(function(d){var p=fC.bind(null,r,d);c.has(d)||(c.add(d),d.then(p,p))})}}function ca(r,i){var c=i.deletions;if(c!==null)for(var d=0;d<c.length;d++){var p=c[d];try{var g=r,w=i,L=w;e:for(;L!==null;){switch(L.tag){case 5:Jt=L.stateNode,la=!1;break e;case 3:Jt=L.stateNode.containerInfo,la=!0;break e;case 4:Jt=L.stateNode.containerInfo,la=!0;break e}L=L.return}if(Jt===null)throw Error(n(160));_v(g,w,p),Jt=null,la=!1;var O=p.alternate;O!==null&&(O.return=null),p.return=null}catch(q){Lt(p,i,q)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)xv(i,r),i=i.sibling}function xv(r,i){var c=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(ca(i,r),Sa(r),d&4){try{Ss(3,r,r.return),kc(3,r)}catch(Ee){Lt(r,r.return,Ee)}try{Ss(5,r,r.return)}catch(Ee){Lt(r,r.return,Ee)}}break;case 1:ca(i,r),Sa(r),d&512&&c!==null&&uo(c,c.return);break;case 5:if(ca(i,r),Sa(r),d&512&&c!==null&&uo(c,c.return),r.flags&32){var p=r.stateNode;try{dt(p,"")}catch(Ee){Lt(r,r.return,Ee)}}if(d&4&&(p=r.stateNode,p!=null)){var g=r.memoizedProps,w=c!==null?c.memoizedProps:g,L=r.type,O=r.updateQueue;if(r.updateQueue=null,O!==null)try{L==="input"&&g.type==="radio"&&g.name!=null&&Fi(p,g),_a(L,w);var q=_a(L,g);for(w=0;w<O.length;w+=2){var re=O[w],oe=O[w+1];re==="style"?Ba(p,oe):re==="dangerouslySetInnerHTML"?yt(p,oe):re==="children"?dt(p,oe):E(p,re,oe,q)}switch(L){case"input":Ln(p,g);break;case"textarea":Ke(p,g);break;case"select":var ae=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!g.multiple;var ve=g.value;ve!=null?dn(p,!!g.multiple,ve,!1):ae!==!!g.multiple&&(g.defaultValue!=null?dn(p,!!g.multiple,g.defaultValue,!0):dn(p,!!g.multiple,g.multiple?[]:"",!1))}p[ps]=g}catch(Ee){Lt(r,r.return,Ee)}}break;case 6:if(ca(i,r),Sa(r),d&4){if(r.stateNode===null)throw Error(n(162));p=r.stateNode,g=r.memoizedProps;try{p.nodeValue=g}catch(Ee){Lt(r,r.return,Ee)}}break;case 3:if(ca(i,r),Sa(r),d&4&&c!==null&&c.memoizedState.isDehydrated)try{as(i.containerInfo)}catch(Ee){Lt(r,r.return,Ee)}break;case 4:ca(i,r),Sa(r);break;case 13:ca(i,r),Sa(r),p=r.child,p.flags&8192&&(g=p.memoizedState!==null,p.stateNode.isHidden=g,!g||p.alternate!==null&&p.alternate.memoizedState!==null||(Uh=it())),d&4&&wv(r);break;case 22:if(re=c!==null&&c.memoizedState!==null,r.mode&1?(ln=(q=ln)||re,ca(i,r),ln=q):ca(i,r),Sa(r),d&8192){if(q=r.memoizedState!==null,(r.stateNode.isHidden=q)&&!re&&(r.mode&1)!==0)for(_e=r,re=r.child;re!==null;){for(oe=_e=re;_e!==null;){switch(ae=_e,ve=ae.child,ae.tag){case 0:case 11:case 14:case 15:Ss(4,ae,ae.return);break;case 1:uo(ae,ae.return);var Pe=ae.stateNode;if(typeof Pe.componentWillUnmount=="function"){d=ae,c=ae.return;try{i=d,Pe.props=i.memoizedProps,Pe.state=i.memoizedState,Pe.componentWillUnmount()}catch(Ee){Lt(d,c,Ee)}}break;case 5:uo(ae,ae.return);break;case 22:if(ae.memoizedState!==null){Cv(oe);continue}}ve!==null?(ve.return=ae,_e=ve):Cv(oe)}re=re.sibling}e:for(re=null,oe=r;;){if(oe.tag===5){if(re===null){re=oe;try{p=oe.stateNode,q?(g=p.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(L=oe.stateNode,O=oe.memoizedProps.style,w=O!=null&&O.hasOwnProperty("display")?O.display:null,L.style.display=Wt("display",w))}catch(Ee){Lt(r,r.return,Ee)}}}else if(oe.tag===6){if(re===null)try{oe.stateNode.nodeValue=q?"":oe.memoizedProps}catch(Ee){Lt(r,r.return,Ee)}}else if((oe.tag!==22&&oe.tag!==23||oe.memoizedState===null||oe===r)&&oe.child!==null){oe.child.return=oe,oe=oe.child;continue}if(oe===r)break e;for(;oe.sibling===null;){if(oe.return===null||oe.return===r)break e;re===oe&&(re=null),oe=oe.return}re===oe&&(re=null),oe.sibling.return=oe.return,oe=oe.sibling}}break;case 19:ca(i,r),Sa(r),d&4&&wv(r);break;case 21:break;default:ca(i,r),Sa(r)}}function Sa(r){var i=r.flags;if(i&2){try{e:{for(var c=r.return;c!==null;){if(bv(c)){var d=c;break e}c=c.return}throw Error(n(160))}switch(d.tag){case 5:var p=d.stateNode;d.flags&32&&(dt(p,""),d.flags&=-33);var g=kv(r);Nh(r,g,p);break;case 3:case 4:var w=d.stateNode.containerInfo,L=kv(r);Mh(r,L,w);break;default:throw Error(n(161))}}catch(O){Lt(r,r.return,O)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function iC(r,i,c){_e=r,Pv(r)}function Pv(r,i,c){for(var d=(r.mode&1)!==0;_e!==null;){var p=_e,g=p.child;if(p.tag===22&&d){var w=p.memoizedState!==null||bc;if(!w){var L=p.alternate,O=L!==null&&L.memoizedState!==null||ln;L=bc;var q=ln;if(bc=w,(ln=O)&&!q)for(_e=p;_e!==null;)w=_e,O=w.child,w.tag===22&&w.memoizedState!==null?Tv(p):O!==null?(O.return=w,_e=O):Tv(p);for(;g!==null;)_e=g,Pv(g),g=g.sibling;_e=p,bc=L,ln=q}Sv(r)}else(p.subtreeFlags&8772)!==0&&g!==null?(g.return=p,_e=g):Sv(r)}}function Sv(r){for(;_e!==null;){var i=_e;if((i.flags&8772)!==0){var c=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:ln||kc(5,i);break;case 1:var d=i.stateNode;if(i.flags&4&&!ln)if(c===null)d.componentDidMount();else{var p=i.elementType===i.type?c.memoizedProps:sa(i.type,c.memoizedProps);d.componentDidUpdate(p,c.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var g=i.updateQueue;g!==null&&Cy(i,g,d);break;case 3:var w=i.updateQueue;if(w!==null){if(c=null,i.child!==null)switch(i.child.tag){case 5:c=i.child.stateNode;break;case 1:c=i.child.stateNode}Cy(i,w,c)}break;case 5:var L=i.stateNode;if(c===null&&i.flags&4){c=L;var O=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":O.autoFocus&&c.focus();break;case"img":O.src&&(c.src=O.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var q=i.alternate;if(q!==null){var re=q.memoizedState;if(re!==null){var oe=re.dehydrated;oe!==null&&as(oe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}ln||i.flags&512&&Ih(i)}catch(ae){Lt(i,i.return,ae)}}if(i===r){_e=null;break}if(c=i.sibling,c!==null){c.return=i.return,_e=c;break}_e=i.return}}function Cv(r){for(;_e!==null;){var i=_e;if(i===r){_e=null;break}var c=i.sibling;if(c!==null){c.return=i.return,_e=c;break}_e=i.return}}function Tv(r){for(;_e!==null;){var i=_e;try{switch(i.tag){case 0:case 11:case 15:var c=i.return;try{kc(4,i)}catch(O){Lt(i,c,O)}break;case 1:var d=i.stateNode;if(typeof d.componentDidMount=="function"){var p=i.return;try{d.componentDidMount()}catch(O){Lt(i,p,O)}}var g=i.return;try{Ih(i)}catch(O){Lt(i,g,O)}break;case 5:var w=i.return;try{Ih(i)}catch(O){Lt(i,w,O)}}}catch(O){Lt(i,i.return,O)}if(i===r){_e=null;break}var L=i.sibling;if(L!==null){L.return=i.return,_e=L;break}_e=i.return}}var oC=Math.ceil,_c=A.ReactCurrentDispatcher,Oh=A.ReactCurrentOwner,Wn=A.ReactCurrentBatchConfig,ot=0,qt=null,jt=null,en=0,On=0,ho=_r(0),Vt=0,Cs=null,di=0,wc=0,jh=0,Ts=null,Cn=null,Uh=0,fo=1/0,Qa=null,xc=!1,Bh=null,Tr=null,Pc=!1,Er=null,Sc=0,Es=0,Fh=null,Cc=-1,Tc=0;function gn(){return(ot&6)!==0?it():Cc!==-1?Cc:Cc=it()}function Ar(r){return(r.mode&1)===0?1:(ot&2)!==0&&en!==0?en&-en:$S.transition!==null?(Tc===0&&(Tc=kg()),Tc):(r=ht,r!==0||(r=window.event,r=r===void 0?16:Ag(r.type)),r)}function ua(r,i,c,d){if(50<Es)throw Es=0,Fh=null,Error(n(185));Qo(r,c,d),((ot&2)===0||r!==qt)&&(r===qt&&((ot&2)===0&&(wc|=c),Vt===4&&Rr(r,en)),Tn(r,d),c===1&&ot===0&&(i.mode&1)===0&&(fo=it()+500,tc&&xr()))}function Tn(r,i){var c=r.callbackNode;$P(r,i);var d=Wi(r,r===qt?en:0);if(d===0)c!==null&&It(c),r.callbackNode=null,r.callbackPriority=0;else if(i=d&-d,r.callbackPriority!==i){if(c!=null&&It(c),i===1)r.tag===0?VS(Av.bind(null,r)):py(Av.bind(null,r)),US(function(){(ot&6)===0&&xr()}),c=null;else{switch(_g(d)){case 1:c=Va;break;case 4:c=ra;break;case 16:c=fn;break;case 536870912:c=dr;break;default:c=fn}c=jv(c,Ev.bind(null,r))}r.callbackPriority=i,r.callbackNode=c}}function Ev(r,i){if(Cc=-1,Tc=0,(ot&6)!==0)throw Error(n(327));var c=r.callbackNode;if(po()&&r.callbackNode!==c)return null;var d=Wi(r,r===qt?en:0);if(d===0)return null;if((d&30)!==0||(d&r.expiredLanes)!==0||i)i=Ec(r,d);else{i=d;var p=ot;ot|=2;var g=Lv();(qt!==r||en!==i)&&(Qa=null,fo=it()+500,fi(r,i));do try{cC();break}catch(L){Rv(r,L)}while(!0);rh(),_c.current=g,ot=p,jt!==null?i=0:(qt=null,en=0,i=Vt)}if(i!==0){if(i===2&&(p=kd(r),p!==0&&(d=p,i=zh(r,p))),i===1)throw c=Cs,fi(r,0),Rr(r,d),Tn(r,it()),c;if(i===6)Rr(r,d);else{if(p=r.current.alternate,(d&30)===0&&!sC(p)&&(i=Ec(r,d),i===2&&(g=kd(r),g!==0&&(d=g,i=zh(r,g))),i===1))throw c=Cs,fi(r,0),Rr(r,d),Tn(r,it()),c;switch(r.finishedWork=p,r.finishedLanes=d,i){case 0:case 1:throw Error(n(345));case 2:pi(r,Cn,Qa);break;case 3:if(Rr(r,d),(d&130023424)===d&&(i=Uh+500-it(),10<i)){if(Wi(r,0)!==0)break;if(p=r.suspendedLanes,(p&d)!==d){gn(),r.pingedLanes|=r.suspendedLanes&p;break}r.timeoutHandle=Kd(pi.bind(null,r,Cn,Qa),i);break}pi(r,Cn,Qa);break;case 4:if(Rr(r,d),(d&4194240)===d)break;for(i=r.eventTimes,p=-1;0<d;){var w=31-Ge(d);g=1<<w,w=i[w],w>p&&(p=w),d&=~g}if(d=p,d=it()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*oC(d/1960))-d,10<d){r.timeoutHandle=Kd(pi.bind(null,r,Cn,Qa),d);break}pi(r,Cn,Qa);break;case 5:pi(r,Cn,Qa);break;default:throw Error(n(329))}}}return Tn(r,it()),r.callbackNode===c?Ev.bind(null,r):null}function zh(r,i){var c=Ts;return r.current.memoizedState.isDehydrated&&(fi(r,i).flags|=256),r=Ec(r,i),r!==2&&(i=Cn,Cn=c,i!==null&&Vh(i)),r}function Vh(r){Cn===null?Cn=r:Cn.push.apply(Cn,r)}function sC(r){for(var i=r;;){if(i.flags&16384){var c=i.updateQueue;if(c!==null&&(c=c.stores,c!==null))for(var d=0;d<c.length;d++){var p=c[d],g=p.getSnapshot;p=p.value;try{if(!ia(g(),p))return!1}catch{return!1}}}if(c=i.child,i.subtreeFlags&16384&&c!==null)c.return=i,i=c;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Rr(r,i){for(i&=~jh,i&=~wc,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var c=31-Ge(i),d=1<<c;r[c]=-1,i&=~d}}function Av(r){if((ot&6)!==0)throw Error(n(327));po();var i=Wi(r,0);if((i&1)===0)return Tn(r,it()),null;var c=Ec(r,i);if(r.tag!==0&&c===2){var d=kd(r);d!==0&&(i=d,c=zh(r,d))}if(c===1)throw c=Cs,fi(r,0),Rr(r,i),Tn(r,it()),c;if(c===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,pi(r,Cn,Qa),Tn(r,it()),null}function $h(r,i){var c=ot;ot|=1;try{return r(i)}finally{ot=c,ot===0&&(fo=it()+500,tc&&xr())}}function hi(r){Er!==null&&Er.tag===0&&(ot&6)===0&&po();var i=ot;ot|=1;var c=Wn.transition,d=ht;try{if(Wn.transition=null,ht=1,r)return r()}finally{ht=d,Wn.transition=c,ot=i,(ot&6)===0&&xr()}}function Hh(){On=ho.current,_t(ho)}function fi(r,i){r.finishedWork=null,r.finishedLanes=0;var c=r.timeoutHandle;if(c!==-1&&(r.timeoutHandle=-1,jS(c)),jt!==null)for(c=jt.return;c!==null;){var d=c;switch(Jd(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&Jl();break;case 3:lo(),_t(xn),_t(rn),hh();break;case 5:uh(d);break;case 4:lo();break;case 13:_t(Et);break;case 19:_t(Et);break;case 10:ih(d.type._context);break;case 22:case 23:Hh()}c=c.return}if(qt=r,jt=r=Lr(r.current,null),en=On=i,Vt=0,Cs=null,jh=wc=di=0,Cn=Ts=null,li!==null){for(i=0;i<li.length;i++)if(c=li[i],d=c.interleaved,d!==null){c.interleaved=null;var p=d.next,g=c.pending;if(g!==null){var w=g.next;g.next=p,d.next=w}c.pending=d}li=null}return r}function Rv(r,i){do{var c=jt;try{if(rh(),dc.current=mc,hc){for(var d=At.memoizedState;d!==null;){var p=d.queue;p!==null&&(p.pending=null),d=d.next}hc=!1}if(ui=0,Kt=zt=At=null,ks=!1,_s=0,Oh.current=null,c===null||c.return===null){Vt=1,Cs=i,jt=null;break}e:{var g=r,w=c.return,L=c,O=i;if(i=en,L.flags|=32768,O!==null&&typeof O=="object"&&typeof O.then=="function"){var q=O,re=L,oe=re.tag;if((re.mode&1)===0&&(oe===0||oe===11||oe===15)){var ae=re.alternate;ae?(re.updateQueue=ae.updateQueue,re.memoizedState=ae.memoizedState,re.lanes=ae.lanes):(re.updateQueue=null,re.memoizedState=null)}var ve=tv(w);if(ve!==null){ve.flags&=-257,nv(ve,w,L,g,i),ve.mode&1&&ev(g,q,i),i=ve,O=q;var Pe=i.updateQueue;if(Pe===null){var Ee=new Set;Ee.add(O),i.updateQueue=Ee}else Pe.add(O);break e}else{if((i&1)===0){ev(g,q,i),Wh();break e}O=Error(n(426))}}else if(Ct&&L.mode&1){var Mt=tv(w);if(Mt!==null){(Mt.flags&65536)===0&&(Mt.flags|=256),nv(Mt,w,L,g,i),nh(co(O,L));break e}}g=O=co(O,L),Vt!==4&&(Vt=2),Ts===null?Ts=[g]:Ts.push(g),g=w;do{switch(g.tag){case 3:g.flags|=65536,i&=-i,g.lanes|=i;var $=Qy(g,O,i);Sy(g,$);break e;case 1:L=O;var j=g.type,G=g.stateNode;if((g.flags&128)===0&&(typeof j.getDerivedStateFromError=="function"||G!==null&&typeof G.componentDidCatch=="function"&&(Tr===null||!Tr.has(G)))){g.flags|=65536,i&=-i,g.lanes|=i;var de=Jy(g,L,i);Sy(g,de);break e}}g=g.return}while(g!==null)}Iv(c)}catch(Ae){i=Ae,jt===c&&c!==null&&(jt=c=c.return);continue}break}while(!0)}function Lv(){var r=_c.current;return _c.current=mc,r===null?mc:r}function Wh(){(Vt===0||Vt===3||Vt===2)&&(Vt=4),qt===null||(di&268435455)===0&&(wc&268435455)===0||Rr(qt,en)}function Ec(r,i){var c=ot;ot|=2;var d=Lv();(qt!==r||en!==i)&&(Qa=null,fi(r,i));do try{lC();break}catch(p){Rv(r,p)}while(!0);if(rh(),ot=c,_c.current=d,jt!==null)throw Error(n(261));return qt=null,en=0,Vt}function lC(){for(;jt!==null;)Dv(jt)}function cC(){for(;jt!==null&&!Qt();)Dv(jt)}function Dv(r){var i=Ov(r.alternate,r,On);r.memoizedProps=r.pendingProps,i===null?Iv(r):jt=i,Oh.current=null}function Iv(r){var i=r;do{var c=i.alternate;if(r=i.return,(i.flags&32768)===0){if(c=tC(c,i,On),c!==null){jt=c;return}}else{if(c=nC(c,i),c!==null){c.flags&=32767,jt=c;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Vt=6,jt=null;return}}if(i=i.sibling,i!==null){jt=i;return}jt=i=r}while(i!==null);Vt===0&&(Vt=5)}function pi(r,i,c){var d=ht,p=Wn.transition;try{Wn.transition=null,ht=1,uC(r,i,c,d)}finally{Wn.transition=p,ht=d}return null}function uC(r,i,c,d){do po();while(Er!==null);if((ot&6)!==0)throw Error(n(327));c=r.finishedWork;var p=r.finishedLanes;if(c===null)return null;if(r.finishedWork=null,r.finishedLanes=0,c===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var g=c.lanes|c.childLanes;if(HP(r,g),r===qt&&(jt=qt=null,en=0),(c.subtreeFlags&2064)===0&&(c.flags&2064)===0||Pc||(Pc=!0,jv(fn,function(){return po(),null})),g=(c.flags&15990)!==0,(c.subtreeFlags&15990)!==0||g){g=Wn.transition,Wn.transition=null;var w=ht;ht=1;var L=ot;ot|=4,Oh.current=null,rC(r,c),xv(c,r),RS(Wd),Bl=!!Hd,Wd=Hd=null,r.current=c,iC(c),ut(),ot=L,ht=w,Wn.transition=g}else r.current=c;if(Pc&&(Pc=!1,Er=r,Sc=p),g=r.pendingLanes,g===0&&(Tr=null),Hi(c.stateNode),Tn(r,it()),i!==null)for(d=r.onRecoverableError,c=0;c<i.length;c++)p=i[c],d(p.value,{componentStack:p.stack,digest:p.digest});if(xc)throw xc=!1,r=Bh,Bh=null,r;return(Sc&1)!==0&&r.tag!==0&&po(),g=r.pendingLanes,(g&1)!==0?r===Fh?Es++:(Es=0,Fh=r):Es=0,xr(),null}function po(){if(Er!==null){var r=_g(Sc),i=Wn.transition,c=ht;try{if(Wn.transition=null,ht=16>r?16:r,Er===null)var d=!1;else{if(r=Er,Er=null,Sc=0,(ot&6)!==0)throw Error(n(331));var p=ot;for(ot|=4,_e=r.current;_e!==null;){var g=_e,w=g.child;if((_e.flags&16)!==0){var L=g.deletions;if(L!==null){for(var O=0;O<L.length;O++){var q=L[O];for(_e=q;_e!==null;){var re=_e;switch(re.tag){case 0:case 11:case 15:Ss(8,re,g)}var oe=re.child;if(oe!==null)oe.return=re,_e=oe;else for(;_e!==null;){re=_e;var ae=re.sibling,ve=re.return;if(vv(re),re===q){_e=null;break}if(ae!==null){ae.return=ve,_e=ae;break}_e=ve}}}var Pe=g.alternate;if(Pe!==null){var Ee=Pe.child;if(Ee!==null){Pe.child=null;do{var Mt=Ee.sibling;Ee.sibling=null,Ee=Mt}while(Ee!==null)}}_e=g}}if((g.subtreeFlags&2064)!==0&&w!==null)w.return=g,_e=w;else e:for(;_e!==null;){if(g=_e,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Ss(9,g,g.return)}var $=g.sibling;if($!==null){$.return=g.return,_e=$;break e}_e=g.return}}var j=r.current;for(_e=j;_e!==null;){w=_e;var G=w.child;if((w.subtreeFlags&2064)!==0&&G!==null)G.return=w,_e=G;else e:for(w=j;_e!==null;){if(L=_e,(L.flags&2048)!==0)try{switch(L.tag){case 0:case 11:case 15:kc(9,L)}}catch(Ae){Lt(L,L.return,Ae)}if(L===w){_e=null;break e}var de=L.sibling;if(de!==null){de.return=L.return,_e=de;break e}_e=L.return}}if(ot=p,xr(),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(Fn,r)}catch{}d=!0}return d}finally{ht=c,Wn.transition=i}}return!1}function Mv(r,i,c){i=co(c,i),i=Qy(r,i,1),r=Sr(r,i,1),i=gn(),r!==null&&(Qo(r,1,i),Tn(r,i))}function Lt(r,i,c){if(r.tag===3)Mv(r,r,c);else for(;i!==null;){if(i.tag===3){Mv(i,r,c);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Tr===null||!Tr.has(d))){r=co(c,r),r=Jy(i,r,1),i=Sr(i,r,1),r=gn(),i!==null&&(Qo(i,1,r),Tn(i,r));break}}i=i.return}}function dC(r,i,c){var d=r.pingCache;d!==null&&d.delete(i),i=gn(),r.pingedLanes|=r.suspendedLanes&c,qt===r&&(en&c)===c&&(Vt===4||Vt===3&&(en&130023424)===en&&500>it()-Uh?fi(r,0):jh|=c),Tn(r,i)}function Nv(r,i){i===0&&((r.mode&1)===0?i=1:(i=Ha,Ha<<=1,(Ha&130023424)===0&&(Ha=4194304)));var c=gn();r=Ya(r,i),r!==null&&(Qo(r,i,c),Tn(r,c))}function hC(r){var i=r.memoizedState,c=0;i!==null&&(c=i.retryLane),Nv(r,c)}function fC(r,i){var c=0;switch(r.tag){case 13:var d=r.stateNode,p=r.memoizedState;p!==null&&(c=p.retryLane);break;case 19:d=r.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(i),Nv(r,c)}var Ov;Ov=function(r,i,c){if(r!==null)if(r.memoizedProps!==i.pendingProps||xn.current)Sn=!0;else{if((r.lanes&c)===0&&(i.flags&128)===0)return Sn=!1,eC(r,i,c);Sn=(r.flags&131072)!==0}else Sn=!1,Ct&&(i.flags&1048576)!==0&&my(i,ac,i.index);switch(i.lanes=0,i.tag){case 2:var d=i.type;vc(r,i),r=i.pendingProps;var p=to(i,rn.current);so(i,c),p=mh(null,i,d,r,p,c);var g=gh();return i.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Pn(d)?(g=!0,ec(i)):g=!1,i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,lh(i),p.updater=gc,i.stateNode=p,p._reactInternals=i,wh(i,d,r,c),i=Ch(null,i,d,!0,g,c)):(i.tag=0,Ct&&g&&Qd(i),mn(null,i,p,c),i=i.child),i;case 16:d=i.elementType;e:{switch(vc(r,i),r=i.pendingProps,p=d._init,d=p(d._payload),i.type=d,p=i.tag=mC(d),r=sa(d,r),p){case 0:i=Sh(null,i,d,r,c);break e;case 1:i=lv(null,i,d,r,c);break e;case 11:i=av(null,i,d,r,c);break e;case 14:i=rv(null,i,d,sa(d.type,r),c);break e}throw Error(n(306,d,""))}return i;case 0:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:sa(d,p),Sh(r,i,d,p,c);case 1:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:sa(d,p),lv(r,i,d,p,c);case 3:e:{if(cv(i),r===null)throw Error(n(387));d=i.pendingProps,g=i.memoizedState,p=g.element,Py(r,i),cc(i,d,null,c);var w=i.memoizedState;if(d=w.element,g.isDehydrated)if(g={element:d,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){p=co(Error(n(423)),i),i=uv(r,i,d,c,p);break e}else if(d!==p){p=co(Error(n(424)),i),i=uv(r,i,d,c,p);break e}else for(Nn=kr(i.stateNode.containerInfo.firstChild),Mn=i,Ct=!0,oa=null,c=wy(i,null,d,c),i.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(ro(),d===p){i=Xa(r,i,c);break e}mn(r,i,d,c)}i=i.child}return i;case 5:return Ty(i),r===null&&th(i),d=i.type,p=i.pendingProps,g=r!==null?r.memoizedProps:null,w=p.children,Gd(d,p)?w=null:g!==null&&Gd(d,g)&&(i.flags|=32),sv(r,i),mn(r,i,w,c),i.child;case 6:return r===null&&th(i),null;case 13:return dv(r,i,c);case 4:return ch(i,i.stateNode.containerInfo),d=i.pendingProps,r===null?i.child=io(i,null,d,c):mn(r,i,d,c),i.child;case 11:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:sa(d,p),av(r,i,d,p,c);case 7:return mn(r,i,i.pendingProps,c),i.child;case 8:return mn(r,i,i.pendingProps.children,c),i.child;case 12:return mn(r,i,i.pendingProps.children,c),i.child;case 10:e:{if(d=i.type._context,p=i.pendingProps,g=i.memoizedProps,w=p.value,bt(oc,d._currentValue),d._currentValue=w,g!==null)if(ia(g.value,w)){if(g.children===p.children&&!xn.current){i=Xa(r,i,c);break e}}else for(g=i.child,g!==null&&(g.return=i);g!==null;){var L=g.dependencies;if(L!==null){w=g.child;for(var O=L.firstContext;O!==null;){if(O.context===d){if(g.tag===1){O=Za(-1,c&-c),O.tag=2;var q=g.updateQueue;if(q!==null){q=q.shared;var re=q.pending;re===null?O.next=O:(O.next=re.next,re.next=O),q.pending=O}}g.lanes|=c,O=g.alternate,O!==null&&(O.lanes|=c),oh(g.return,c,i),L.lanes|=c;break}O=O.next}}else if(g.tag===10)w=g.type===i.type?null:g.child;else if(g.tag===18){if(w=g.return,w===null)throw Error(n(341));w.lanes|=c,L=w.alternate,L!==null&&(L.lanes|=c),oh(w,c,i),w=g.sibling}else w=g.child;if(w!==null)w.return=g;else for(w=g;w!==null;){if(w===i){w=null;break}if(g=w.sibling,g!==null){g.return=w.return,w=g;break}w=w.return}g=w}mn(r,i,p.children,c),i=i.child}return i;case 9:return p=i.type,d=i.pendingProps.children,so(i,c),p=$n(p),d=d(p),i.flags|=1,mn(r,i,d,c),i.child;case 14:return d=i.type,p=sa(d,i.pendingProps),p=sa(d.type,p),rv(r,i,d,p,c);case 15:return iv(r,i,i.type,i.pendingProps,c);case 17:return d=i.type,p=i.pendingProps,p=i.elementType===d?p:sa(d,p),vc(r,i),i.tag=1,Pn(d)?(r=!0,ec(i)):r=!1,so(i,c),Zy(i,d,p),wh(i,d,p,c),Ch(null,i,d,!0,r,c);case 19:return fv(r,i,c);case 22:return ov(r,i,c)}throw Error(n(156,i.tag))};function jv(r,i){return vt(r,i)}function pC(r,i,c,d){this.tag=r,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gn(r,i,c,d){return new pC(r,i,c,d)}function Gh(r){return r=r.prototype,!(!r||!r.isReactComponent)}function mC(r){if(typeof r=="function")return Gh(r)?1:0;if(r!=null){if(r=r.$$typeof,r===he)return 11;if(r===te)return 14}return 2}function Lr(r,i){var c=r.alternate;return c===null?(c=Gn(r.tag,i,r.key,r.mode),c.elementType=r.elementType,c.type=r.type,c.stateNode=r.stateNode,c.alternate=r,r.alternate=c):(c.pendingProps=i,c.type=r.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=r.flags&14680064,c.childLanes=r.childLanes,c.lanes=r.lanes,c.child=r.child,c.memoizedProps=r.memoizedProps,c.memoizedState=r.memoizedState,c.updateQueue=r.updateQueue,i=r.dependencies,c.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},c.sibling=r.sibling,c.index=r.index,c.ref=r.ref,c}function Ac(r,i,c,d,p,g){var w=2;if(d=r,typeof r=="function")Gh(r)&&(w=1);else if(typeof r=="string")w=5;else e:switch(r){case H:return mi(c.children,p,g,i);case P:w=8,p|=8;break;case Z:return r=Gn(12,c,i,p|2),r.elementType=Z,r.lanes=g,r;case Q:return r=Gn(13,c,i,p),r.elementType=Q,r.lanes=g,r;case J:return r=Gn(19,c,i,p),r.elementType=J,r.lanes=g,r;case se:return Rc(c,p,g,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case X:w=10;break e;case fe:w=9;break e;case he:w=11;break e;case te:w=14;break e;case ee:w=16,d=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=Gn(w,c,i,p),i.elementType=r,i.type=d,i.lanes=g,i}function mi(r,i,c,d){return r=Gn(7,r,d,i),r.lanes=c,r}function Rc(r,i,c,d){return r=Gn(22,r,d,i),r.elementType=se,r.lanes=c,r.stateNode={isHidden:!1},r}function Kh(r,i,c){return r=Gn(6,r,null,i),r.lanes=c,r}function qh(r,i,c){return i=Gn(4,r.children!==null?r.children:[],r.key,i),i.lanes=c,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function gC(r,i,c,d,p){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_d(0),this.expirationTimes=_d(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_d(0),this.identifierPrefix=d,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Yh(r,i,c,d,p,g,w,L,O){return r=new gC(r,i,c,L,O),i===1?(i=1,g===!0&&(i|=8)):i=0,g=Gn(3,null,null,i),r.current=g,g.stateNode=r,g.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},lh(g),r}function yC(r,i,c){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:d==null?null:""+d,children:r,containerInfo:i,implementation:c}}function Uv(r){if(!r)return wr;r=r._reactInternals;e:{if(be(r)!==r||r.tag!==1)throw Error(n(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Pn(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(r.tag===1){var c=r.type;if(Pn(c))return hy(r,c,i)}return i}function Bv(r,i,c,d,p,g,w,L,O){return r=Yh(c,d,!0,r,p,g,w,L,O),r.context=Uv(null),c=r.current,d=gn(),p=Ar(c),g=Za(d,p),g.callback=i??null,Sr(c,g,p),r.current.lanes=p,Qo(r,p,d),Tn(r,d),r}function Lc(r,i,c,d){var p=i.current,g=gn(),w=Ar(p);return c=Uv(c),i.context===null?i.context=c:i.pendingContext=c,i=Za(g,w),i.payload={element:r},d=d===void 0?null:d,d!==null&&(i.callback=d),r=Sr(p,i,w),r!==null&&(ua(r,p,w,g),lc(r,p,w)),w}function Dc(r){return r=r.current,r.child?(r.child.tag===5,r.child.stateNode):null}function Fv(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var c=r.retryLane;r.retryLane=c!==0&&c<i?c:i}}function Zh(r,i){Fv(r,i),(r=r.alternate)&&Fv(r,i)}function vC(){return null}var zv=typeof reportError=="function"?reportError:function(r){console.error(r)};function Xh(r){this._internalRoot=r}Ic.prototype.render=Xh.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(n(409));Lc(r,i,null,null)},Ic.prototype.unmount=Xh.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;hi(function(){Lc(null,r,null,null)}),i[Wa]=null}};function Ic(r){this._internalRoot=r}Ic.prototype.unstable_scheduleHydration=function(r){if(r){var i=Pg();r={blockedOn:null,target:r,priority:i};for(var c=0;c<yr.length&&i!==0&&i<yr[c].priority;c++);yr.splice(c,0,r),c===0&&Tg(r)}};function Qh(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Mc(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Vv(){}function bC(r,i,c,d,p){if(p){if(typeof d=="function"){var g=d;d=function(){var q=Dc(w);g.call(q)}}var w=Bv(i,d,r,0,null,!1,!1,"",Vv);return r._reactRootContainer=w,r[Wa]=w.current,hs(r.nodeType===8?r.parentNode:r),hi(),w}for(;p=r.lastChild;)r.removeChild(p);if(typeof d=="function"){var L=d;d=function(){var q=Dc(O);L.call(q)}}var O=Yh(r,0,!1,null,null,!1,!1,"",Vv);return r._reactRootContainer=O,r[Wa]=O.current,hs(r.nodeType===8?r.parentNode:r),hi(function(){Lc(i,O,c,d)}),O}function Nc(r,i,c,d,p){var g=c._reactRootContainer;if(g){var w=g;if(typeof p=="function"){var L=p;p=function(){var O=Dc(w);L.call(O)}}Lc(i,w,r,p)}else w=bC(c,i,r,p,d);return Dc(w)}wg=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var c=fr(i.pendingLanes);c!==0&&(wd(i,c|1),Tn(i,it()),(ot&6)===0&&(fo=it()+500,xr()))}break;case 13:hi(function(){var d=Ya(r,1);if(d!==null){var p=gn();ua(d,r,1,p)}}),Zh(r,1)}},xd=function(r){if(r.tag===13){var i=Ya(r,134217728);if(i!==null){var c=gn();ua(i,r,134217728,c)}Zh(r,134217728)}},xg=function(r){if(r.tag===13){var i=Ar(r),c=Ya(r,i);if(c!==null){var d=gn();ua(c,r,i,d)}Zh(r,i)}},Pg=function(){return ht},Sg=function(r,i){var c=ht;try{return ht=r,i()}finally{ht=c}},lr=function(r,i,c){switch(i){case"input":if(Ln(r,c),i=c.name,c.type==="radio"&&i!=null){for(c=r;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<c.length;i++){var d=c[i];if(d!==r&&d.form===r.form){var p=Ql(d);if(!p)throw Error(n(90));wn(d),Ln(d,p)}}}break;case"textarea":Ke(r,c);break;case"select":i=c.value,i!=null&&dn(r,!!c.multiple,i,!1)}},Ol=$h,Yo=hi;var kC={usingClientEntryPoint:!1,Events:[ms,Ji,Ql,Nl,qo,$h]},As={findFiberByHostInstance:ri,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_C={bundleType:As.bundleType,version:As.version,rendererPackageName:As.rendererPackageName,rendererConfig:As.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=lt(r),r===null?null:r.stateNode},findFiberByHostInstance:As.findFiberByHostInstance||vC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oc.isDisabled&&Oc.supportsFiber)try{Fn=Oc.inject(_C),pn=Oc}catch{}}return En.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kC,En.createPortal=function(r,i){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qh(i))throw Error(n(200));return yC(r,i,null,c)},En.createRoot=function(r,i){if(!Qh(r))throw Error(n(299));var c=!1,d="",p=zv;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onRecoverableError!==void 0&&(p=i.onRecoverableError)),i=Yh(r,1,!1,null,null,c,!1,d,p),r[Wa]=i.current,hs(r.nodeType===8?r.parentNode:r),new Xh(i)},En.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=lt(i),r=r===null?null:r.stateNode,r},En.flushSync=function(r){return hi(r)},En.hydrate=function(r,i,c){if(!Mc(i))throw Error(n(200));return Nc(null,r,i,!0,c)},En.hydrateRoot=function(r,i,c){if(!Qh(r))throw Error(n(405));var d=c!=null&&c.hydratedSources||null,p=!1,g="",w=zv;if(c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(g=c.identifierPrefix),c.onRecoverableError!==void 0&&(w=c.onRecoverableError)),i=Bv(i,null,r,1,c??null,p,!1,g,w),r[Wa]=i.current,hs(r),d)for(r=0;r<d.length;r++)c=d[r],p=c._getVersion,p=p(c._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[c,p]:i.mutableSourceEagerHydrationData.push(c,p);return new Ic(i)},En.render=function(r,i,c){if(!Mc(i))throw Error(n(200));return Nc(null,r,i,!1,c)},En.unmountComponentAtNode=function(r){if(!Mc(r))throw Error(n(40));return r._reactRootContainer?(hi(function(){Nc(null,null,r,!1,function(){r._reactRootContainer=null,r[Wa]=null})}),!0):!1},En.unstable_batchedUpdates=$h,En.unstable_renderSubtreeIntoContainer=function(r,i,c,d){if(!Mc(c))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Nc(r,i,c,!1,d)},En.version="18.3.1-next-f1338f8080-20240426",En}var Zv;function Y_(){if(Zv)return tf.exports;Zv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),tf.exports=RC(),tf.exports}var Xv;function LC(){if(Xv)return jc;Xv=1;var e=Y_();return jc.createRoot=e.createRoot,jc.hydrateRoot=e.hydrateRoot,jc}var DC=LC();var Z_=e=>{throw TypeError(e)},IC=(e,t,n)=>t.has(e)||Z_("Cannot "+n),rf=(e,t,n)=>(IC(e,t,"read from private field"),n?n.call(e):t.get(e)),MC=(e,t,n)=>t.has(e)?Z_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Qv="popstate";function Jv(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function NC(e={}){function t(a,o){let s=o.state?.masked,{pathname:l,search:u,hash:f}=s||a.location;return rl("",{pathname:l,search:u,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default",s?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function n(a,o){return typeof o=="string"?o:Da(o)}return jC(t,n,null,e)}function et(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function OC(){return Math.random().toString(36).substring(2,10)}function eb(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function rl(e,t,n=null,a,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ir(t):t,state:n,key:t&&t.key||a||OC(),unstable_mask:o}}function Da({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ir(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function jC(e,t,n,a={}){let{window:o=document.defaultView,v5Compat:s=!1}=a,l=o.history,u="POP",f=null,h=m();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function m(){return(l.state||{idx:null}).idx}function y(){u="POP";let C=m(),D=C==null?null:C-h;h=C,f&&f({action:u,location:S.location,delta:D})}function v(C,D){u="PUSH";let M=Jv(C)?C:rl(S.location,C,D);h=m()+1;let E=eb(M,h),A=S.createHref(M.unstable_mask||M);try{l.pushState(E,"",A)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;o.location.assign(A)}s&&f&&f({action:u,location:S.location,delta:1})}function _(C,D){u="REPLACE";let M=Jv(C)?C:rl(S.location,C,D);h=m();let E=eb(M,h),A=S.createHref(M.unstable_mask||M);l.replaceState(E,"",A),s&&f&&f({action:u,location:S.location,delta:0})}function x(C){return X_(C)}let S={get action(){return u},get location(){return e(o,l)},listen(C){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(Qv,y),f=C,()=>{o.removeEventListener(Qv,y),f=null}},createHref(C){return t(o,C)},createURL:x,encodeLocation(C){let D=x(C);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:v,replace:_,go(C){return l.go(C)}};return S}function X_(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),et(n,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:Da(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=n+a),new URL(a,n)}var Bs,tb=class{constructor(e){if(MC(this,Bs,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(rf(this,Bs).has(e))return rf(this,Bs).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){rf(this,Bs).set(e,t)}};Bs=new WeakMap;var UC=new Set(["lazy","caseSensitive","path","id","index","children"]);function BC(e){return UC.has(e)}var FC=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function zC(e){return FC.has(e)}function VC(e){return e.index===!0}function il(e,t,n=[],a={},o=!1){return e.map((s,l)=>{let u=[...n,String(l)],f=typeof s.id=="string"?s.id:u.join("-");if(et(s.index!==!0||!s.children,"Cannot specify children on an index route"),et(o||!a[f],`Found a route id collision on id "${f}". Route id's must be globally unique within Data Router usages`),VC(s)){let h={...s,id:f};return a[f]=nb(h,t(h)),h}else{let h={...s,id:f,children:void 0};return a[f]=nb(h,t(h)),s.children&&(h.children=il(s.children,t,u,a,o)),h}})}function nb(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Ur(e,t,n="/"){return Fs(e,t,n,!1)}function Fs(e,t,n,a){let o=typeof t=="string"?ir(t):t,s=Xn(o.pathname||"/",n);if(s==null)return null;let l=Q_(e);HC(l);let u=null;for(let f=0;u==null&&f<l.length;++f){let h=tT(s);u=JC(l[f],h,a)}return u}function $C(e,t){let{route:n,pathname:a,params:o}=e;return{id:n.id,pathname:a,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function Q_(e,t=[],n=[],a="",o=!1){let s=(l,u,f=o,h)=>{let m={relativePath:h===void 0?l.path||"":h,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(a)&&f)return;et(m.relativePath.startsWith(a),`Absolute route path "${m.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(a.length)}let y=ma([a,m.relativePath]),v=n.concat(m);l.children&&l.children.length>0&&(et(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Q_(l.children,t,v,y,f)),!(l.path==null&&!l.index)&&t.push({path:y,score:XC(y,l.index),routesMeta:v})};return e.forEach((l,u)=>{if(l.path===""||!l.path?.includes("?"))s(l,u);else for(let f of J_(l.path))s(l,u,!0,f)}),t}function J_(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(a.length===0)return o?[s,""]:[s];let l=J_(a.join("/")),u=[];return u.push(...l.map(f=>f===""?s:[s,f].join("/"))),o&&u.push(...l),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function HC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:QC(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var WC=/^:[\w-]+$/,GC=3,KC=2,qC=1,YC=10,ZC=-2,ab=e=>e==="*";function XC(e,t){let n=e.split("/"),a=n.length;return n.some(ab)&&(a+=ZC),t&&(a+=KC),n.filter(o=>!ab(o)).reduce((o,s)=>o+(WC.test(s)?GC:s===""?qC:YC),a)}function QC(e,t){return e.length===t.length&&e.slice(0,-1).every((a,o)=>a===t[o])?e[e.length-1]-t[t.length-1]:0}function JC(e,t,n=!1){let{routesMeta:a}=e,o={},s="/",l=[];for(let u=0;u<a.length;++u){let f=a[u],h=u===a.length-1,m=s==="/"?t:t.slice(s.length)||"/",y=_u({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},m),v=f.route;if(!y&&h&&n&&!a[a.length-1].route.index&&(y=_u({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!y)return null;Object.assign(o,y.params),l.push({params:o,pathname:ma([s,y.pathname]),pathnameBase:rT(ma([s,y.pathnameBase])),route:v}),y.pathnameBase!=="/"&&(s=ma([s,y.pathnameBase]))}return l}function _u(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=eT(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),u=o.slice(1);return{params:a.reduce((h,{paramName:m,isOptional:y},v)=>{if(m==="*"){let x=u[v]||"";l=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const _=u[v];return y&&!_?h[m]=void 0:h[m]=(_||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:l,pattern:e}}function eT(e,t=!1,n=!0){Nt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,f,h,m)=>{if(a.push({paramName:u,isOptional:f!=null}),f){let y=m.charAt(h+l.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),a]}function tT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Nt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Xn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function nT({basename:e,pathname:t}){return t==="/"?e:ma([e,t])}var e0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zp=e=>e0.test(e);function aT(e,t="/"){let{pathname:n,search:a="",hash:o=""}=typeof e=="string"?ir(e):e,s;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?s=rb(n.substring(1),"/"):s=rb(n,t)):s=t,{pathname:s,search:iT(a),hash:oT(o)}}function rb(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function of(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function t0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Xp(e){let t=t0(e);return t.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase)}function ed(e,t,n,a=!1){let o;typeof e=="string"?o=ir(e):(o={...e},et(!o.pathname||!o.pathname.includes("?"),of("?","pathname","search",o)),et(!o.pathname||!o.pathname.includes("#"),of("#","pathname","hash",o)),et(!o.search||!o.search.includes("#"),of("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,u;if(l==null)u=n;else{let y=t.length-1;if(!a&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),y-=1;o.pathname=v.join("/")}u=y>=0?t[y]:"/"}let f=aT(o,u),h=l&&l!=="/"&&l.endsWith("/"),m=(s||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}var ma=e=>e.join("/").replace(/\/\/+/g,"/"),rT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),iT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,oT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,gl=class{constructor(e,t,n,a=!1){this.status=e,this.statusText=t||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function ol(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function yl(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var n0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function a0(e,t){let n=e;if(typeof n!="string"||!e0.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let a=n,o=!1;if(n0)try{let s=new URL(window.location.href),l=n.startsWith("//")?new URL(s.protocol+n):new URL(n),u=Xn(l.pathname,t);l.origin===s.origin&&u!=null?n=u+l.search+l.hash:o=!0}catch{Nt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:o,to:n}}var Vr=Symbol("Uninstrumented");function sT(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(o=>o({id:t.id,index:t.index,path:t.path,instrument(s){let l=Object.keys(n);for(let u of l)s[u]&&n[u].push(s[u])}}));let a={};if(typeof t.lazy=="function"&&n.lazy.length>0){let o=xo(n.lazy,t.lazy,()=>{});o&&(a.lazy=o)}if(typeof t.lazy=="object"){let o=t.lazy;["middleware","loader","action"].forEach(s=>{let l=o[s],u=n[`lazy.${s}`];if(typeof l=="function"&&u.length>0){let f=xo(u,l,()=>{});f&&(a.lazy=Object.assign(a.lazy||{},{[s]:f}))}})}return["loader","action"].forEach(o=>{let s=t[o];if(typeof s=="function"&&n[o].length>0){let l=s[Vr]??s,u=xo(n[o],l,(...f)=>ib(f[0]));u&&(o==="loader"&&l.hydrate===!0&&(u.hydrate=!0),u[Vr]=l,a[o]=u)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(a.middleware=t.middleware.map(o=>{let s=o[Vr]??o,l=xo(n.middleware,s,(...u)=>ib(u[0]));return l?(l[Vr]=s,l):o})),a}function lT(e,t){let n={navigate:[],fetch:[]};if(t.forEach(a=>a({instrument(o){let s=Object.keys(o);for(let l of s)o[l]&&n[l].push(o[l])}})),n.navigate.length>0){let a=e.navigate[Vr]??e.navigate,o=xo(n.navigate,a,(...s)=>{let[l,u]=s;return{to:typeof l=="number"||typeof l=="string"?l:l?Da(l):".",...ob(e,u??{})}});o&&(o[Vr]=a,e.navigate=o)}if(n.fetch.length>0){let a=e.fetch[Vr]??e.fetch,o=xo(n.fetch,a,(...s)=>{let[l,,u,f]=s;return{href:u??".",fetcherKey:l,...ob(e,f??{})}});o&&(o[Vr]=a,e.fetch=o)}return e}function xo(e,t,n){return e.length===0?null:async(...a)=>{let o=await r0(e,n(...a),()=>t(...a),e.length-1);if(o.type==="error")throw o.value;return o.value}}async function r0(e,t,n,a){let o=e[a],s;if(o){let l,u=async()=>(l?console.error("You cannot call instrumented handlers more than once"):l=r0(e,t,n,a-1),s=await l,et(s,"Expected a result"),s.type==="error"&&s.value instanceof Error?{status:"error",error:s.value}:{status:"success",error:void 0});try{await o(u,t)}catch(f){console.error("An instrumentation function threw an error:",f)}l||await u(),await l}else try{s={type:"success",value:await n()}}catch(l){s={type:"error",value:l}}return s||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function ib(e){let{request:t,context:n,params:a,unstable_pattern:o}=e;return{request:cT(t),params:{...a},unstable_pattern:o,context:uT(n)}}function ob(e,t){return{currentUrl:Da(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function cT(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function uT(e){if(hT(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var dT=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function hT(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===dT}var i0=["POST","PUT","PATCH","DELETE"],fT=new Set(i0),pT=["GET",...i0],mT=new Set(pT),o0=new Set([301,302,303,307,308]),gT=new Set([307,308]),sf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yT={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ls={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},vT=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),s0="remix-router-transitions",l0=Symbol("ResetLoaderData");function bT(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";et(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a=e.hydrationRouteProperties||[],o=e.mapRouteProperties||vT,s=o;if(e.unstable_instrumentations){let N=e.unstable_instrumentations;s=U=>({...o(U),...sT(N.map(K=>K.route).filter(Boolean),U)})}let l={},u=il(e.routes,s,void 0,l),f,h=e.basename||"/";h.startsWith("/")||(h=`/${h}`);let m=e.dataStrategy||PT,y={...e.future},v=null,_=new Set,x=null,S=null,C=null,D=e.hydrationData!=null,M=Ur(u,e.history.location,h),E=!1,A=null,B,z;if(M==null&&!e.patchRoutesOnNavigation){let N=Kn(404,{pathname:e.history.location.pathname}),{matches:U,route:K}=Uc(u);B=!0,z=!B,M=U,A={[K.id]:N}}else if(M&&!e.hydrationData&&cr(M,u,e.history.location.pathname).active&&(M=null),M)if(M.some(N=>N.route.lazy))B=!1,z=!B;else if(!M.some(N=>Qp(N.route)))B=!0,z=!B;else{let N=e.hydrationData?e.hydrationData.loaderData:null,U=e.hydrationData?e.hydrationData.errors:null,K=M;if(U){let ie=M.findIndex(ce=>U[ce.route.id]!==void 0);K=K.slice(0,ie+1)}z=!1,B=K.every(ie=>{let ce=c0(ie.route,N,U);return z=z||ce.renderFallback,!ce.shouldLoad})}else{B=!1,z=!B,M=[];let N=cr(null,u,e.history.location.pathname);N.active&&N.matches&&(E=!0,M=N.matches)}let H,P={historyAction:e.history.action,location:e.history.location,matches:M,initialized:B,renderFallback:z,navigation:sf,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||A,fetchers:new Map,blockers:new Map},Z="POP",X=null,fe=!1,he,Q=!1,J=new Map,te=null,ee=!1,se=!1,F=new Set,Y=new Map,V=0,I=-1,W=new Map,me=new Set,pe=new Map,ye=new Map,xe=new Set,Fe=new Map,Ye,je=null;function Rt(){if(v=e.history.listen(({action:N,location:U,delta:K})=>{if(Ye){Ye(),Ye=void 0;return}Nt(Fe.size===0||K!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ie=Fa({currentLocation:P.location,nextLocation:U,historyAction:N});if(ie&&K!=null){let ce=new Promise(Le=>{Ye=Le});e.history.go(K*-1),Dn(ie,{state:"blocked",location:U,proceed(){Dn(ie,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),ce.then(()=>e.history.go(K))},reset(){let Le=new Map(P.blockers);Le.set(ie,Ls),pt({blockers:Le})}}),X?.resolve(),X=null;return}return Ln(N,U)}),n){VT(t,J);let N=()=>$T(t,J);t.addEventListener("pagehide",N),te=()=>t.removeEventListener("pagehide",N)}return P.initialized||Ln("POP",P.location,{initialHydration:!0}),H}function Rn(){v&&v(),te&&te(),_.clear(),he&&he.abort(),P.fetchers.forEach((N,U)=>Wt(U)),P.blockers.forEach((N,U)=>lr(U))}function wn(N){return _.add(N),()=>_.delete(N)}function pt(N,U={}){N.matches&&(N.matches=N.matches.map(ce=>{let Le=l[ce.route.id],ke=ce.route;return ke.element!==Le.element||ke.errorElement!==Le.errorElement||ke.hydrateFallbackElement!==Le.hydrateFallbackElement?{...ce,route:Le}:ce})),P={...P,...N};let K=[],ie=[];P.fetchers.forEach((ce,Le)=>{ce.state==="idle"&&(xe.has(Le)?K.push(Le):ie.push(Le))}),xe.forEach(ce=>{!P.fetchers.has(ce)&&!Y.has(ce)&&K.push(ce)}),[..._].forEach(ce=>ce(P,{deletedFetchers:K,newErrors:N.errors??null,viewTransitionOpts:U.viewTransitionOpts,flushSync:U.flushSync===!0})),K.forEach(ce=>Wt(ce)),ie.forEach(ce=>P.fetchers.delete(ce))}function Xt(N,U,{flushSync:K}={}){let ie=P.actionData!=null&&P.navigation.formMethod!=null&&cn(P.navigation.formMethod)&&P.navigation.state==="loading"&&N.state?._isRedirect!==!0,ce;U.actionData?Object.keys(U.actionData).length>0?ce=U.actionData:ce=null:ie?ce=P.actionData:ce=null;let Le=U.loaderData?gb(P.loaderData,U.loaderData,U.matches||[],U.errors):P.loaderData,ke=P.blockers;ke.size>0&&(ke=new Map(ke),ke.forEach((Oe,Ie)=>ke.set(Ie,Ls)));let Me=ee?!1:Yo(N,U.matches||P.matches),be=fe===!0||P.navigation.formMethod!=null&&cn(P.navigation.formMethod)&&N.state?._isRedirect!==!0;f&&(u=f,f=void 0),ee||Z==="POP"||(Z==="PUSH"?e.history.push(N,N.state):Z==="REPLACE"&&e.history.replace(N,N.state));let Ne;if(Z==="POP"){let Oe=J.get(P.location.pathname);Oe&&Oe.has(N.pathname)?Ne={currentLocation:P.location,nextLocation:N}:J.has(N.pathname)&&(Ne={currentLocation:N,nextLocation:P.location})}else if(Q){let Oe=J.get(P.location.pathname);Oe?Oe.add(N.pathname):(Oe=new Set([N.pathname]),J.set(P.location.pathname,Oe)),Ne={currentLocation:P.location,nextLocation:N}}pt({...U,actionData:ce,loaderData:Le,historyAction:Z,location:N,initialized:!0,renderFallback:!1,navigation:sf,revalidation:"idle",restoreScrollPosition:Me,preventScrollReset:be,blockers:ke},{viewTransitionOpts:Ne,flushSync:K===!0}),Z="POP",fe=!1,Q=!1,ee=!1,se=!1,X?.resolve(),X=null,je?.resolve(),je=null}async function Jr(N,U){if(X?.resolve(),X=null,typeof N=="number"){X||(X=kb());let vt=X.promise;return e.history.go(N),vt}let K=Hf(P.location,P.matches,h,N,U?.fromRouteId,U?.relative),{path:ie,submission:ce,error:Le}=sb(!1,K,U),ke;U?.unstable_mask&&(ke={pathname:"",search:"",hash:"",...typeof U.unstable_mask=="string"?ir(U.unstable_mask):{...P.location.unstable_mask,...U.unstable_mask}});let Me=P.location,be=rl(Me,ie,U&&U.state,void 0,ke);be={...be,...e.history.encodeLocation(be)};let Ne=U&&U.replace!=null?U.replace:void 0,Oe="PUSH";Ne===!0?Oe="REPLACE":Ne===!1||ce!=null&&cn(ce.formMethod)&&ce.formAction===P.location.pathname+P.location.search&&(Oe="REPLACE");let Ie=U&&"preventScrollReset"in U?U.preventScrollReset===!0:void 0,lt=(U&&U.flushSync)===!0,nt=Fa({currentLocation:Me,nextLocation:be,historyAction:Oe});if(nt){Dn(nt,{state:"blocked",location:be,proceed(){Dn(nt,{state:"proceeding",proceed:void 0,reset:void 0,location:be}),Jr(N,U)},reset(){let vt=new Map(P.blockers);vt.set(nt,Ls),pt({blockers:vt})}});return}await Ln(Oe,be,{submission:ce,pendingError:Le,preventScrollReset:Ie,replace:U&&U.replace,enableViewTransition:U&&U.viewTransition,flushSync:lt,callSiteDefaultShouldRevalidate:U&&U.unstable_defaultShouldRevalidate})}function Fi(){je||(je=kb()),Ot(),pt({revalidation:"loading"});let N=je.promise;return P.navigation.state==="submitting"?N:P.navigation.state==="idle"?(Ln(P.historyAction,P.location,{startUninterruptedRevalidation:!0}),N):(Ln(Z||P.historyAction,P.navigation.location,{overrideNavigation:P.navigation,enableViewTransition:Q===!0}),N)}async function Ln(N,U,K){he&&he.abort(),he=null,Z=N,ee=(K&&K.startUninterruptedRevalidation)===!0,Ol(P.location,P.matches),fe=(K&&K.preventScrollReset)===!0,Q=(K&&K.enableViewTransition)===!0;let ie=f||u,ce=K&&K.overrideNavigation,Le=K?.initialHydration&&P.matches&&P.matches.length>0&&!E?P.matches:Ur(ie,U,h),ke=(K&&K.flushSync)===!0;if(Le&&P.initialized&&!se&&DT(P.location,U)&&!(K&&K.submission&&cn(K.submission.formMethod))){Xt(U,{matches:Le},{flushSync:ke});return}let Me=cr(Le,ie,U.pathname);if(Me.active&&Me.matches&&(Le=Me.matches),!Le){let{error:It,notFoundMatches:Qt,route:ut}=$i(U.pathname);Xt(U,{matches:Qt,loaderData:{},errors:{[ut.id]:It}},{flushSync:ke});return}he=new AbortController;let be=ko(e.history,U,he.signal,K&&K.submission),Ne=e.getContext?await e.getContext():new tb,Oe;if(K&&K.pendingError)Oe=[Br(Le).route.id,{type:"error",error:K.pendingError}];else if(K&&K.submission&&cn(K.submission.formMethod)){let It=await zi(be,U,K.submission,Le,Ne,Me.active,K&&K.initialHydration===!0,{replace:K.replace,flushSync:ke});if(It.shortCircuited)return;if(It.pendingActionResult){let[Qt,ut]=It.pendingActionResult;if(Un(ut)&&ol(ut.error)&&ut.error.status===404){he=null,Xt(U,{matches:It.matches,loaderData:{},errors:{[Qt]:ut.error}});return}}Le=It.matches||Le,Oe=It.pendingActionResult,ce=lf(U,K.submission),ke=!1,Me.active=!1,be=ko(e.history,be.url,be.signal)}let{shortCircuited:Ie,matches:lt,loaderData:nt,errors:vt}=await sr(be,U,Le,Ne,Me.active,ce,K&&K.submission,K&&K.fetcherSubmission,K&&K.replace,K&&K.initialHydration===!0,ke,Oe,K&&K.callSiteDefaultShouldRevalidate);Ie||(he=null,Xt(U,{matches:lt||Le,...yb(Oe),loaderData:nt,errors:vt}))}async function zi(N,U,K,ie,ce,Le,ke,Me={}){Ot();let be=FT(U,K);if(pt({navigation:be},{flushSync:Me.flushSync===!0}),Le){let Ie=await ni(ie,U.pathname,N.signal);if(Ie.type==="aborted")return{shortCircuited:!0};if(Ie.type==="error"){if(Ie.partialMatches.length===0){let{matches:nt,route:vt}=Uc(u);return{matches:nt,pendingActionResult:[vt.id,{type:"error",error:Ie.error}]}}let lt=Br(Ie.partialMatches).route.id;return{matches:Ie.partialMatches,pendingActionResult:[lt,{type:"error",error:Ie.error}]}}else if(Ie.matches)ie=Ie.matches;else{let{notFoundMatches:lt,error:nt,route:vt}=$i(U.pathname);return{matches:lt,pendingActionResult:[vt.id,{type:"error",error:nt}]}}}let Ne,Oe=nu(ie,U);if(!Oe.route.action&&!Oe.route.lazy)Ne={type:"error",error:Kn(405,{method:N.method,pathname:U.pathname,routeId:Oe.route.id})};else{let Ie=Ao(s,l,N,ie,Oe,ke?[]:a,ce),lt=await ft(N,Ie,ce,null);if(Ne=lt[Oe.route.id],!Ne){for(let nt of ie)if(lt[nt.route.id]){Ne=lt[nt.route.id];break}}if(N.signal.aborted)return{shortCircuited:!0}}if(_i(Ne)){let Ie;return Me&&Me.replace!=null?Ie=Me.replace:Ie=fb(Ne.response.headers.get("Location"),new URL(N.url),h,e.history)===P.location.pathname+P.location.search,await Ve(N,Ne,!0,{submission:K,replace:Ie}),{shortCircuited:!0}}if(Un(Ne)){let Ie=Br(ie,Oe.route.id);return(Me&&Me.replace)!==!0&&(Z="PUSH"),{matches:ie,pendingActionResult:[Ie.route.id,Ne,Oe.route.id]}}return{matches:ie,pendingActionResult:[Oe.route.id,Ne]}}async function sr(N,U,K,ie,ce,Le,ke,Me,be,Ne,Oe,Ie,lt){let nt=Le||lf(U,ke),vt=ke||Me||bb(nt),It=!ee&&!Ne;if(ce){if(It){let Gt=va(Ie);pt({navigation:nt,...Gt!==void 0?{actionData:Gt}:{}},{flushSync:Oe})}let Ge=await ni(K,U.pathname,N.signal);if(Ge.type==="aborted")return{shortCircuited:!0};if(Ge.type==="error"){if(Ge.partialMatches.length===0){let{matches:hr,route:$a}=Uc(u);return{matches:hr,loaderData:{},errors:{[$a.id]:Ge.error}}}let Gt=Br(Ge.partialMatches).route.id;return{matches:Ge.partialMatches,loaderData:{},errors:{[Gt]:Ge.error}}}else if(Ge.matches)K=Ge.matches;else{let{error:Gt,notFoundMatches:hr,route:$a}=$i(U.pathname);return{matches:hr,loaderData:{},errors:{[$a.id]:Gt}}}}let Qt=f||u,{dsMatches:ut,revalidatingFetchers:it}=lb(N,ie,s,l,e.history,P,K,vt,U,Ne?[]:a,Ne===!0,se,F,xe,pe,me,Qt,h,e.patchRoutesOnNavigation!=null,Ie,lt);if(I=++V,!e.dataStrategy&&!ut.some(Ge=>Ge.shouldLoad)&&!ut.some(Ge=>Ge.route.middleware&&Ge.route.middleware.length>0)&&it.length===0){let Ge=_a();return Xt(U,{matches:K,loaderData:{},errors:Ie&&Un(Ie[1])?{[Ie[0]]:Ie[1].error}:null,...yb(Ie),...Ge?{fetchers:new Map(P.fetchers)}:{}},{flushSync:Oe}),{shortCircuited:!0}}if(It){let Ge={};if(!ce){Ge.navigation=nt;let Gt=va(Ie);Gt!==void 0&&(Ge.actionData=Gt)}it.length>0&&(Ge.fetchers=dn(it)),pt(Ge,{flushSync:Oe})}it.forEach(Ge=>{hn(Ge.key),Ge.controller&&Y.set(Ge.key,Ge.controller)});let za=()=>it.forEach(Ge=>hn(Ge.key));he&&he.signal.addEventListener("abort",za);let{loaderResults:Va,fetcherResults:ra}=await St(ut,it,N,ie);if(N.signal.aborted)return{shortCircuited:!0};he&&he.signal.removeEventListener("abort",za),it.forEach(Ge=>Y.delete(Ge.key));let fn=Bc(Va);if(fn)return await Ve(N,fn.result,!0,{replace:be}),{shortCircuited:!0};if(fn=Bc(ra),fn)return me.add(fn.key),await Ve(N,fn.result,!0,{replace:be}),{shortCircuited:!0};let{loaderData:Xo,errors:dr}=mb(P,K,Va,Ie,it,ra);Ne&&P.errors&&(dr={...P.errors,...dr});let Fn=_a(),pn=aa(I),Hi=Fn||pn||it.length>0;return{matches:K,loaderData:Xo,errors:dr,...Hi?{fetchers:new Map(P.fetchers)}:{}}}function va(N){if(N&&!Un(N[1]))return{[N[0]]:N[1].data};if(P.actionData)return Object.keys(P.actionData).length===0?null:P.actionData}function dn(N){return N.forEach(U=>{let K=P.fetchers.get(U.key),ie=Ds(void 0,K?K.data:void 0);P.fetchers.set(U.key,ie)}),new Map(P.fetchers)}async function ei(N,U,K,ie){hn(N);let ce=(ie&&ie.flushSync)===!0,Le=f||u,ke=Hf(P.location,P.matches,h,K,U,ie?.relative),Me=Ur(Le,ke,h),be=cr(Me,Le,ke);if(be.active&&be.matches&&(Me=be.matches),!Me){dt(N,U,Kn(404,{pathname:ke}),{flushSync:ce});return}let{path:Ne,submission:Oe,error:Ie}=sb(!0,ke,ie);if(Ie){dt(N,U,Ie,{flushSync:ce});return}let lt=e.getContext?await e.getContext():new tb,nt=(ie&&ie.preventScrollReset)===!0;if(Oe&&cn(Oe.formMethod)){await Vi(N,U,Ne,Me,lt,be.active,ce,nt,Oe,ie&&ie.unstable_defaultShouldRevalidate);return}pe.set(N,{routeId:U,path:Ne}),await Ke(N,U,Ne,Me,lt,be.active,ce,nt,Oe)}async function Vi(N,U,K,ie,ce,Le,ke,Me,be,Ne){Ot(),pe.delete(N);let Oe=P.fetchers.get(N);yt(N,zT(be,Oe),{flushSync:ke});let Ie=new AbortController,lt=ko(e.history,K,Ie.signal,be);if(Le){let mt=await ni(ie,new URL(lt.url).pathname,lt.signal,N);if(mt.type==="aborted")return;if(mt.type==="error"){dt(N,U,mt.error,{flushSync:ke});return}else if(mt.matches)ie=mt.matches;else{dt(N,U,Kn(404,{pathname:K}),{flushSync:ke});return}}let nt=nu(ie,K);if(!nt.route.action&&!nt.route.lazy){let mt=Kn(405,{method:be.formMethod,pathname:K,routeId:U});dt(N,U,mt,{flushSync:ke});return}Y.set(N,Ie);let vt=V,It=Ao(s,l,lt,ie,nt,a,ce),Qt=await ft(lt,It,ce,N),ut=Qt[nt.route.id];if(!ut){for(let mt of It)if(Qt[mt.route.id]){ut=Qt[mt.route.id];break}}if(lt.signal.aborted){Y.get(N)===Ie&&Y.delete(N);return}if(xe.has(N)){if(_i(ut)||Un(ut)){yt(N,er(void 0));return}}else{if(_i(ut))if(Y.delete(N),I>vt){yt(N,er(void 0));return}else return me.add(N),yt(N,Ds(be)),Ve(lt,ut,!1,{fetcherSubmission:be,preventScrollReset:Me});if(Un(ut)){dt(N,U,ut.error);return}}let it=P.navigation.location||P.location,za=ko(e.history,it,Ie.signal),Va=f||u,ra=P.navigation.state!=="idle"?Ur(Va,P.navigation.location,h):P.matches;et(ra,"Didn't find any matches after fetcher action");let fn=++V;W.set(N,fn);let Xo=Ds(be,ut.data);P.fetchers.set(N,Xo);let{dsMatches:dr,revalidatingFetchers:Fn}=lb(za,ce,s,l,e.history,P,ra,be,it,a,!1,se,F,xe,pe,me,Va,h,e.patchRoutesOnNavigation!=null,[nt.route.id,ut],Ne);Fn.filter(mt=>mt.key!==N).forEach(mt=>{let Ha=mt.key,fr=P.fetchers.get(Ha),Wi=Ds(void 0,fr?fr.data:void 0);P.fetchers.set(Ha,Wi),hn(Ha),mt.controller&&Y.set(Ha,mt.controller)}),pt({fetchers:new Map(P.fetchers)});let pn=()=>Fn.forEach(mt=>hn(mt.key));Ie.signal.addEventListener("abort",pn);let{loaderResults:Hi,fetcherResults:Ge}=await St(dr,Fn,za,ce);if(Ie.signal.aborted)return;if(Ie.signal.removeEventListener("abort",pn),W.delete(N),Y.delete(N),Fn.forEach(mt=>Y.delete(mt.key)),P.fetchers.has(N)){let mt=er(ut.data);P.fetchers.set(N,mt)}let Gt=Bc(Hi);if(Gt)return Ve(za,Gt.result,!1,{preventScrollReset:Me});if(Gt=Bc(Ge),Gt)return me.add(Gt.key),Ve(za,Gt.result,!1,{preventScrollReset:Me});let{loaderData:hr,errors:$a}=mb(P,ra,Hi,void 0,Fn,Ge);aa(fn),P.navigation.state==="loading"&&fn>I?(et(Z,"Expected pending action"),he&&he.abort(),Xt(P.navigation.location,{matches:ra,loaderData:hr,errors:$a,fetchers:new Map(P.fetchers)})):(pt({errors:$a,loaderData:gb(P.loaderData,hr,ra,$a),fetchers:new Map(P.fetchers)}),se=!1)}async function Ke(N,U,K,ie,ce,Le,ke,Me,be){let Ne=P.fetchers.get(N);yt(N,Ds(be,Ne?Ne.data:void 0),{flushSync:ke});let Oe=new AbortController,Ie=ko(e.history,K,Oe.signal);if(Le){let ut=await ni(ie,new URL(Ie.url).pathname,Ie.signal,N);if(ut.type==="aborted")return;if(ut.type==="error"){dt(N,U,ut.error,{flushSync:ke});return}else if(ut.matches)ie=ut.matches;else{dt(N,U,Kn(404,{pathname:K}),{flushSync:ke});return}}let lt=nu(ie,K);Y.set(N,Oe);let nt=V,vt=Ao(s,l,Ie,ie,lt,a,ce),Qt=(await ft(Ie,vt,ce,N))[lt.route.id];if(Y.get(N)===Oe&&Y.delete(N),!Ie.signal.aborted){if(xe.has(N)){yt(N,er(void 0));return}if(_i(Qt))if(I>nt){yt(N,er(void 0));return}else{me.add(N),await Ve(Ie,Qt,!1,{preventScrollReset:Me});return}if(Un(Qt)){dt(N,U,Qt.error);return}yt(N,er(Qt.data))}}async function Ve(N,U,K,{submission:ie,fetcherSubmission:ce,preventScrollReset:Le,replace:ke}={}){K||(X?.resolve(),X=null),U.response.headers.has("X-Remix-Revalidate")&&(se=!0);let Me=U.response.headers.get("Location");et(Me,"Expected a Location header on the redirect Response"),Me=fb(Me,new URL(N.url),h,e.history);let be=rl(P.location,Me,{_isRedirect:!0});if(n){let vt=!1;if(U.response.headers.has("X-Remix-Reload-Document"))vt=!0;else if(Zp(Me)){const It=X_(Me,!0);vt=It.origin!==t.location.origin||Xn(It.pathname,h)==null}if(vt){ke?t.location.replace(Me):t.location.assign(Me);return}}he=null;let Ne=ke===!0||U.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Oe,formAction:Ie,formEncType:lt}=P.navigation;!ie&&!ce&&Oe&&Ie&&lt&&(ie=bb(P.navigation));let nt=ie||ce;if(gT.has(U.response.status)&&nt&&cn(nt.formMethod))await Ln(Ne,be,{submission:{...nt,formAction:Me},preventScrollReset:Le||fe,enableViewTransition:K?Q:void 0});else{let vt=lf(be,ie);await Ln(Ne,be,{overrideNavigation:vt,fetcherSubmission:ce,preventScrollReset:Le||fe,enableViewTransition:K?Q:void 0})}}async function ft(N,U,K,ie){let ce,Le={};try{ce=await CT(m,N,U,ie,K,!1)}catch(ke){return U.filter(Me=>Me.shouldLoad).forEach(Me=>{Le[Me.route.id]={type:"error",error:ke}}),Le}if(N.signal.aborted)return Le;if(!cn(N.method))for(let ke of U){if(ce[ke.route.id]?.type==="error")break;!ce.hasOwnProperty(ke.route.id)&&!P.loaderData.hasOwnProperty(ke.route.id)&&(!P.errors||!P.errors.hasOwnProperty(ke.route.id))&&ke.shouldCallHandler()&&(ce[ke.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${ke.route.id}`)})}for(let[ke,Me]of Object.entries(ce))if(OT(Me)){let be=Me.result;Le[ke]={type:"redirect",response:RT(be,N,ke,U,h)}}else Le[ke]=await AT(Me);return Le}async function St(N,U,K,ie){let ce=ft(K,N,ie,null),Le=Promise.all(U.map(async be=>{if(be.matches&&be.match&&be.request&&be.controller){let Oe=(await ft(be.request,be.matches,ie,be.key))[be.match.route.id];return{[be.key]:Oe}}else return Promise.resolve({[be.key]:{type:"error",error:Kn(404,{pathname:be.path})}})})),ke=await ce,Me=(await Le).reduce((be,Ne)=>Object.assign(be,Ne),{});return{loaderResults:ke,fetcherResults:Me}}function Ot(){se=!0,pe.forEach((N,U)=>{Y.has(U)&&F.add(U),hn(U)})}function yt(N,U,K={}){P.fetchers.set(N,U),pt({fetchers:new Map(P.fetchers)},{flushSync:(K&&K.flushSync)===!0})}function dt(N,U,K,ie={}){let ce=Br(P.matches,U);Wt(N),pt({errors:{[ce.route.id]:K},fetchers:new Map(P.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function ba(N){return ye.set(N,(ye.get(N)||0)+1),xe.has(N)&&xe.delete(N),P.fetchers.get(N)||yT}function Ko(N,U){hn(N,U?.reason),yt(N,er(null))}function Wt(N){let U=P.fetchers.get(N);Y.has(N)&&!(U&&U.state==="loading"&&W.has(N))&&hn(N),pe.delete(N),W.delete(N),me.delete(N),xe.delete(N),F.delete(N),P.fetchers.delete(N)}function Ba(N){let U=(ye.get(N)||0)-1;U<=0?(ye.delete(N),xe.add(N)):ye.set(N,U),pt({fetchers:new Map(P.fetchers)})}function hn(N,U){let K=Y.get(N);K&&(K.abort(U),Y.delete(N))}function ka(N){for(let U of N){let K=ba(U),ie=er(K.data);P.fetchers.set(U,ie)}}function _a(){let N=[],U=!1;for(let K of me){let ie=P.fetchers.get(K);et(ie,`Expected fetcher: ${K}`),ie.state==="loading"&&(me.delete(K),N.push(K),U=!0)}return ka(N),U}function aa(N){let U=[];for(let[K,ie]of W)if(ie<N){let ce=P.fetchers.get(K);et(ce,`Expected fetcher: ${K}`),ce.state==="loading"&&(hn(K),W.delete(K),U.push(K))}return ka(U),U.length>0}function ti(N,U){let K=P.blockers.get(N)||Ls;return Fe.get(N)!==U&&Fe.set(N,U),K}function lr(N){P.blockers.delete(N),Fe.delete(N)}function Dn(N,U){let K=P.blockers.get(N)||Ls;et(K.state==="unblocked"&&U.state==="blocked"||K.state==="blocked"&&U.state==="blocked"||K.state==="blocked"&&U.state==="proceeding"||K.state==="blocked"&&U.state==="unblocked"||K.state==="proceeding"&&U.state==="unblocked",`Invalid blocker state transition: ${K.state} -> ${U.state}`);let ie=new Map(P.blockers);ie.set(N,U),pt({blockers:ie})}function Fa({currentLocation:N,nextLocation:U,historyAction:K}){if(Fe.size===0)return;Fe.size>1&&Nt(!1,"A router only supports one blocker at a time");let ie=Array.from(Fe.entries()),[ce,Le]=ie[ie.length-1],ke=P.blockers.get(ce);if(!(ke&&ke.state==="proceeding")&&Le({currentLocation:N,nextLocation:U,historyAction:K}))return ce}function $i(N){let U=Kn(404,{pathname:N}),K=f||u,{matches:ie,route:ce}=Uc(K);return{notFoundMatches:ie,route:ce,error:U}}function Nl(N,U,K){if(x=N,C=U,S=K||null,!D&&P.navigation===sf){D=!0;let ie=Yo(P.location,P.matches);ie!=null&&pt({restoreScrollPosition:ie})}return()=>{x=null,C=null,S=null}}function qo(N,U){return S&&S(N,U.map(ie=>$C(ie,P.loaderData)))||N.key}function Ol(N,U){if(x&&C){let K=qo(N,U);x[K]=C()}}function Yo(N,U){if(x){let K=qo(N,U),ie=x[K];if(typeof ie=="number")return ie}return null}function cr(N,U,K){if(e.patchRoutesOnNavigation)if(N){if(Object.keys(N[0].params).length>0)return{active:!0,matches:Fs(U,K,h,!0)}}else return{active:!0,matches:Fs(U,K,h,!0)||[]};return{active:!1,matches:null}}async function ni(N,U,K,ie){if(!e.patchRoutesOnNavigation)return{type:"success",matches:N};let ce=N;for(;;){let Le=f==null,ke=f||u,Me=l;try{await e.patchRoutesOnNavigation({signal:K,path:U,matches:ce,fetcherKey:ie,patch:(Oe,Ie)=>{K.aborted||cb(Oe,Ie,ke,Me,s,!1)}})}catch(Oe){return{type:"error",error:Oe,partialMatches:ce}}finally{Le&&!K.aborted&&(u=[...u])}if(K.aborted)return{type:"aborted"};let be=Ur(ke,U,h),Ne=null;if(be){if(Object.keys(be[0].params).length===0)return{type:"success",matches:be};if(Ne=Fs(ke,U,h,!0),!(Ne&&ce.length<Ne.length&&ur(ce,Ne.slice(0,ce.length))))return{type:"success",matches:be}}if(Ne||(Ne=Fs(ke,U,h,!0)),!Ne||ur(ce,Ne))return{type:"success",matches:null};ce=Ne}}function ur(N,U){return N.length===U.length&&N.every((K,ie)=>K.route.id===U[ie].route.id)}function Zo(N){l={},f=il(N,s,void 0,l)}function ai(N,U,K=!1){let ie=f==null;cb(N,U,f||u,l,s,K),ie&&(u=[...u],pt({}))}return H={get basename(){return h},get future(){return y},get state(){return P},get routes(){return u},get window(){return t},initialize:Rt,subscribe:wn,enableScrollRestoration:Nl,navigate:Jr,fetch:ei,revalidate:Fi,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:ba,resetFetcher:Ko,deleteFetcher:Ba,dispose:Rn,getBlocker:ti,deleteBlocker:lr,patchRoutes:ai,_internalFetchControllers:Y,_internalSetRoutes:Zo,_internalSetStateDoNotUseOrYouWillBreakYourApp(N){pt(N)}},e.unstable_instrumentations&&(H=lT(H,e.unstable_instrumentations.map(N=>N.router).filter(Boolean))),H}function kT(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Hf(e,t,n,a,o,s){let l,u;if(o){l=[];for(let h of t)if(l.push(h),h.route.id===o){u=h;break}}else l=t,u=t[t.length-1];let f=ed(a||".",Xp(l),Xn(e.pathname,n)||e.pathname,s==="path");if(a==null&&(f.search=e.search,f.hash=e.hash),(a==null||a===""||a===".")&&u){let h=em(f.search);if(u.route.index&&!h)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&h){let m=new URLSearchParams(f.search),y=m.getAll("index");m.delete("index"),y.filter(_=>_).forEach(_=>m.append("index",_));let v=m.toString();f.search=v?`?${v}`:""}}return n!=="/"&&(f.pathname=nT({basename:n,pathname:f.pathname})),Da(f)}function sb(e,t,n){if(!n||!kT(n))return{path:t};if(n.formMethod&&!BT(n.formMethod))return{path:t,error:Kn(405,{method:n.formMethod})};let a=()=>({path:t,error:Kn(400,{type:"invalid-body"})}),s=(n.formMethod||"get").toUpperCase(),l=m0(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!cn(s))return a();let y=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,[_,x])=>`${v}${_}=${x}
10
- `,""):String(n.body);return{path:t,submission:{formMethod:s,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:y}}}else if(n.formEncType==="application/json"){if(!cn(s))return a();try{let y=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:s,formAction:l,formEncType:n.formEncType,formData:void 0,json:y,text:void 0}}}catch{return a()}}}et(typeof FormData=="function","FormData is not available in this environment");let u,f;if(n.formData)u=Gf(n.formData),f=n.formData;else if(n.body instanceof FormData)u=Gf(n.body),f=n.body;else if(n.body instanceof URLSearchParams)u=n.body,f=pb(u);else if(n.body==null)u=new URLSearchParams,f=new FormData;else try{u=new URLSearchParams(n.body),f=pb(u)}catch{return a()}let h={formMethod:s,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(cn(h.formMethod))return{path:t,submission:h};let m=ir(t);return e&&m.search&&em(m.search)&&u.append("index",""),m.search=`?${u}`,{path:Da(m),submission:h}}function lb(e,t,n,a,o,s,l,u,f,h,m,y,v,_,x,S,C,D,M,E,A){let B=E?Un(E[1])?E[1].error:E[1].data:void 0,z=o.createURL(s.location),H=o.createURL(f),P;if(m&&s.errors){let te=Object.keys(s.errors)[0];P=l.findIndex(ee=>ee.route.id===te)}else if(E&&Un(E[1])){let te=E[0];P=l.findIndex(ee=>ee.route.id===te)-1}let Z=E?E[1].statusCode:void 0,X=Z&&Z>=400,fe={currentUrl:z,currentParams:s.matches[0]?.params||{},nextUrl:H,nextParams:l[0].params,...u,actionResult:B,actionStatus:Z},he=yl(l),Q=l.map((te,ee)=>{let{route:se}=te,F=null;if(P!=null&&ee>P)F=!1;else if(se.lazy)F=!0;else if(!Qp(se))F=!1;else if(m){let{shouldLoad:W}=c0(se,s.loaderData,s.errors);F=W}else _T(s.loaderData,s.matches[ee],te)&&(F=!0);if(F!==null)return Wf(n,a,e,he,te,h,t,F);let Y=!1;typeof A=="boolean"?Y=A:X?Y=!1:(y||z.pathname+z.search===H.pathname+H.search||z.search!==H.search||wT(s.matches[ee],te))&&(Y=!0);let V={...fe,defaultShouldRevalidate:Y},I=Ws(te,V);return Wf(n,a,e,he,te,h,t,I,V,A)}),J=[];return x.forEach((te,ee)=>{if(m||!l.some(pe=>pe.route.id===te.routeId)||_.has(ee))return;let se=s.fetchers.get(ee),F=se&&se.state!=="idle"&&se.data===void 0,Y=Ur(C,te.path,D);if(!Y){if(M&&F)return;J.push({key:ee,routeId:te.routeId,path:te.path,matches:null,match:null,request:null,controller:null});return}if(S.has(ee))return;let V=nu(Y,te.path),I=new AbortController,W=ko(o,te.path,I.signal),me=null;if(v.has(ee))v.delete(ee),me=Ao(n,a,W,Y,V,h,t);else if(F)y&&(me=Ao(n,a,W,Y,V,h,t));else{let pe;typeof A=="boolean"?pe=A:X?pe=!1:pe=y;let ye={...fe,defaultShouldRevalidate:pe};Ws(V,ye)&&(me=Ao(n,a,W,Y,V,h,t,ye))}me&&J.push({key:ee,routeId:te.routeId,path:te.path,matches:me,match:V,request:W,controller:I})}),{dsMatches:Q,revalidatingFetchers:J}}function Qp(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function c0(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Qp(e))return{shouldLoad:!1,renderFallback:!1};let a=t!=null&&e.id in t,o=n!=null&&n[e.id]!==void 0;if(!a&&o)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader=="function"&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!a};let s=!a&&!o;return{shouldLoad:s,renderFallback:s}}function _T(e,t,n){let a=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return a||o}function wT(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ws(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function cb(e,t,n,a,o,s){let l;if(e){let h=a[e];et(h,`No route found to patch children into: routeId = ${e}`),h.children||(h.children=[]),l=h.children}else l=n;let u=[],f=[];if(t.forEach(h=>{let m=l.find(y=>u0(h,y));m?f.push({existingRoute:m,newRoute:h}):u.push(h)}),u.length>0){let h=il(u,o,[e||"_","patch",String(l?.length||"0")],a);l.push(...h)}if(s&&f.length>0)for(let h=0;h<f.length;h++){let{existingRoute:m,newRoute:y}=f[h],v=m,[_]=il([y],o,[],{},!0);Object.assign(v,{element:_.element?_.element:v.element,errorElement:_.errorElement?_.errorElement:v.errorElement,hydrateFallbackElement:_.hydrateFallbackElement?_.hydrateFallbackElement:v.hydrateFallbackElement})}}function u0(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((n,a)=>t.children?.some(o=>u0(n,o)))??!1:!1}var ub=new WeakMap,d0=({key:e,route:t,manifest:n,mapRouteProperties:a})=>{let o=n[t.id];if(et(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let s=o.lazy[e];if(!s)return;let l=ub.get(o);l||(l={},ub.set(o,l));let u=l[e];if(u)return u;let f=(async()=>{let h=BC(e),y=o[e]!==void 0&&e!=="hasErrorBoundary";if(h)Nt(!h,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),l[e]=Promise.resolve();else if(y)Nt(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let v=await s();v!=null&&(Object.assign(o,{[e]:v}),Object.assign(o,a(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(v=>v===void 0)&&(o.lazy=void 0))})();return l[e]=f,f},db=new WeakMap;function xT(e,t,n,a,o){let s=n[e.id];if(et(s,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let m=db.get(s);if(m)return{lazyRoutePromise:m,lazyHandlerPromise:m};let y=(async()=>{et(typeof e.lazy=="function","No lazy route function found");let v=await e.lazy(),_={};for(let x in v){let S=v[x];if(S===void 0)continue;let C=zC(x),M=s[x]!==void 0&&x!=="hasErrorBoundary";C?Nt(!C,"Route property "+x+" is not a supported property to be returned from a lazy route function. This property will be ignored."):M?Nt(!M,`Route "${s.id}" has a static property "${x}" defined but its lazy function is also returning a value for this property. The lazy route property "${x}" will be ignored.`):_[x]=S}Object.assign(s,_),Object.assign(s,{...a(s),lazy:void 0})})();return db.set(s,y),y.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:y}}let l=Object.keys(e.lazy),u=[],f;for(let m of l){if(o&&o.includes(m))continue;let y=d0({key:m,route:e,manifest:n,mapRouteProperties:a});y&&(u.push(y),m===t&&(f=y))}let h=u.length>0?Promise.all(u).then(()=>{}):void 0;return h?.catch(()=>{}),f?.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:f}}async function hb(e){let t=e.matches.filter(o=>o.shouldLoad),n={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,s)=>{n[t[s].route.id]=o}),n}async function PT(e){return e.matches.some(t=>t.route.middleware)?h0(e,()=>hb(e)):hb(e)}function h0(e,t){return ST(e,t,a=>{if(UT(a))throw a;return a},MT,n);function n(a,o,s){if(s)return Promise.resolve(Object.assign(s.value,{[o]:{type:"error",result:a}}));{let{matches:l}=e,u=Math.min(Math.max(l.findIndex(h=>h.route.id===o),0),Math.max(l.findIndex(h=>h.shouldCallHandler()),0)),f=Br(l,l[u].route.id).route.id;return Promise.resolve({[f]:{type:"error",result:a}})}}}async function ST(e,t,n,a,o){let{matches:s,request:l,params:u,context:f,unstable_pattern:h}=e,m=s.flatMap(v=>v.route.middleware?v.route.middleware.map(_=>[v.route.id,_]):[]);return await f0({request:l,params:u,context:f,unstable_pattern:h},m,t,n,a,o)}async function f0(e,t,n,a,o,s,l=0){let{request:u}=e;if(u.signal.aborted)throw u.signal.reason??new Error(`Request aborted: ${u.method} ${u.url}`);let f=t[l];if(!f)return await n();let[h,m]=f,y,v=async()=>{if(y)throw new Error("You may only call `next()` once per middleware");try{return y={value:await f0(e,t,n,a,o,s,l+1)},y.value}catch(_){return y={value:await s(_,h,y)},y.value}};try{let _=await m(e,v),x=_!=null?a(_):void 0;return o(x)?x:y?x??y.value:(y={value:await v()},y.value)}catch(_){return await s(_,h,y)}}function p0(e,t,n,a,o){let s=d0({key:"middleware",route:a.route,manifest:t,mapRouteProperties:e}),l=xT(a.route,cn(n.method)?"action":"loader",t,e,o);return{middleware:s,route:l.lazyRoutePromise,handler:l.lazyHandlerPromise}}function Wf(e,t,n,a,o,s,l,u,f=null,h){let m=!1,y=p0(e,t,n,o,s);return{...o,_lazyPromises:y,shouldLoad:u,shouldRevalidateArgs:f,shouldCallHandler(v){return m=!0,f?typeof h=="boolean"?Ws(o,{...f,defaultShouldRevalidate:h}):typeof v=="boolean"?Ws(o,{...f,defaultShouldRevalidate:v}):Ws(o,f):u},resolve(v){let{lazy:_,loader:x,middleware:S}=o.route,C=m||u||v&&!cn(n.method)&&(_||x),D=S&&S.length>0&&!x&&!_;return C&&(cn(n.method)||!D)?TT({request:n,unstable_pattern:a,match:o,lazyHandlerPromise:y?.handler,lazyRoutePromise:y?.route,handlerOverride:v,scopedContext:l}):Promise.resolve({type:"data",result:void 0})}}}function Ao(e,t,n,a,o,s,l,u=null){return a.map(f=>f.route.id!==o.route.id?{...f,shouldLoad:!1,shouldRevalidateArgs:u,shouldCallHandler:()=>!1,_lazyPromises:p0(e,t,n,f,s),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Wf(e,t,n,yl(a),f,s,l,!0,u))}async function CT(e,t,n,a,o,s){n.some(h=>h._lazyPromises?.middleware)&&await Promise.all(n.map(h=>h._lazyPromises?.middleware));let l={request:t,unstable_pattern:yl(n),params:n[0].params,context:o,matches:n},f=await e({...l,fetcherKey:a,runClientMiddleware:h=>{let m=l;return h0(m,()=>h({...m,fetcherKey:a,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(n.flatMap(h=>[h._lazyPromises?.handler,h._lazyPromises?.route]))}catch{}return f}async function TT({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:a,lazyRoutePromise:o,handlerOverride:s,scopedContext:l}){let u,f,h=cn(e.method),m=h?"action":"loader",y=v=>{let _,x=new Promise((D,M)=>_=M);f=()=>_(),e.signal.addEventListener("abort",f);let S=D=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${m}" [routeId: ${n.route.id}]`)):v({request:e,unstable_pattern:t,params:n.params,context:l},...D!==void 0?[D]:[]),C=(async()=>{try{return{type:"data",result:await(s?s(M=>S(M)):S())}}catch(D){return{type:"error",result:D}}})();return Promise.race([C,x])};try{let v=h?n.route.action:n.route.loader;if(a||o)if(v){let _,[x]=await Promise.all([y(v).catch(S=>{_=S}),a,o]);if(_!==void 0)throw _;u=x}else{await a;let _=h?n.route.action:n.route.loader;if(_)[u]=await Promise.all([y(_),o]);else if(m==="action"){let x=new URL(e.url),S=x.pathname+x.search;throw Kn(405,{method:e.method,pathname:S,routeId:n.route.id})}else return{type:"data",result:void 0}}else if(v)u=await y(v);else{let _=new URL(e.url),x=_.pathname+_.search;throw Kn(404,{pathname:x})}}catch(v){return{type:"error",result:v}}finally{f&&e.signal.removeEventListener("abort",f)}return u}async function ET(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function AT(e){let{result:t,type:n}=e;if(Jp(t)){let a;try{a=await ET(t)}catch(o){return{type:"error",error:o}}return n==="error"?{type:"error",error:new gl(t.status,t.statusText,a),statusCode:t.status,headers:t.headers}:{type:"data",data:a,statusCode:t.status,headers:t.headers}}return n==="error"?vb(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:IT(t),statusCode:ol(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:ol(t)?t.status:void 0}:vb(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function RT(e,t,n,a,o){let s=e.headers.get("Location");if(et(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!Zp(s)){let l=a.slice(0,a.findIndex(u=>u.route.id===n)+1);s=Hf(new URL(t.url),l,o,s),e.headers.set("Location",s)}return e}function fb(e,t,n,a){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Zp(e)){let s=e,l=s.startsWith("//")?new URL(t.protocol+s):new URL(s);if(o.includes(l.protocol))throw new Error("Invalid redirect location");let u=Xn(l.pathname,n)!=null;if(l.origin===t.origin&&u)return l.pathname+l.search+l.hash}try{let s=a.createURL(e);if(o.includes(s.protocol))throw new Error("Invalid redirect location")}catch{}return e}function ko(e,t,n,a){let o=e.createURL(m0(t)).toString(),s={signal:n};if(a&&cn(a.formMethod)){let{formMethod:l,formEncType:u}=a;s.method=l.toUpperCase(),u==="application/json"?(s.headers=new Headers({"Content-Type":u}),s.body=JSON.stringify(a.json)):u==="text/plain"?s.body=a.text:u==="application/x-www-form-urlencoded"&&a.formData?s.body=Gf(a.formData):s.body=a.formData}return new Request(o,s)}function Gf(e){let t=new URLSearchParams;for(let[n,a]of e.entries())t.append(n,typeof a=="string"?a:a.name);return t}function pb(e){let t=new FormData;for(let[n,a]of e.entries())t.append(n,a);return t}function LT(e,t,n,a=!1,o=!1){let s={},l=null,u,f=!1,h={},m=n&&Un(n[1])?n[1].error:void 0;return e.forEach(y=>{if(!(y.route.id in t))return;let v=y.route.id,_=t[v];if(et(!_i(_),"Cannot handle redirect results in processLoaderData"),Un(_)){let x=_.error;if(m!==void 0&&(x=m,m=void 0),l=l||{},o)l[v]=x;else{let S=Br(e,v);l[S.route.id]==null&&(l[S.route.id]=x)}a||(s[v]=l0),f||(f=!0,u=ol(_.error)?_.error.status:500),_.headers&&(h[v]=_.headers)}else s[v]=_.data,_.statusCode&&_.statusCode!==200&&!f&&(u=_.statusCode),_.headers&&(h[v]=_.headers)}),m!==void 0&&n&&(l={[n[0]]:m},n[2]&&(s[n[2]]=void 0)),{loaderData:s,errors:l,statusCode:u||200,loaderHeaders:h}}function mb(e,t,n,a,o,s){let{loaderData:l,errors:u}=LT(t,n,a);return o.filter(f=>!f.matches||f.matches.some(h=>h.shouldLoad)).forEach(f=>{let{key:h,match:m,controller:y}=f;if(y&&y.signal.aborted)return;let v=s[h];if(et(v,"Did not find corresponding fetcher result"),Un(v)){let _=Br(e.matches,m?.route.id);u&&u[_.route.id]||(u={...u,[_.route.id]:v.error}),e.fetchers.delete(h)}else if(_i(v))et(!1,"Unhandled fetcher revalidation redirect");else{let _=er(v.data);e.fetchers.set(h,_)}}),{loaderData:l,errors:u}}function gb(e,t,n,a){let o=Object.entries(t).filter(([,s])=>s!==l0).reduce((s,[l,u])=>(s[l]=u,s),{});for(let s of n){let l=s.route.id;if(!t.hasOwnProperty(l)&&e.hasOwnProperty(l)&&s.route.loader&&(o[l]=e[l]),a&&a.hasOwnProperty(l))break}return o}function yb(e){return e?Un(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Br(e,t){return(t?e.slice(0,e.findIndex(a=>a.route.id===t)+1):[...e]).reverse().find(a=>a.route.hasErrorBoundary===!0)||e[0]}function Uc(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Kn(e,{pathname:t,routeId:n,method:a,type:o,message:s}={}){let l="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(l="Bad Request",a&&t&&n?u=`You made a ${a} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:o==="invalid-body"&&(u="Unable to encode submission body")):e===403?(l="Forbidden",u=`Route "${n}" does not match URL "${t}"`):e===404?(l="Not Found",u=`No route matches URL "${t}"`):e===405&&(l="Method Not Allowed",a&&t&&n?u=`You made a ${a.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:a&&(u=`Invalid request method "${a.toUpperCase()}"`)),new gl(e||500,l,new Error(u),!0)}function Bc(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[a,o]=t[n];if(_i(o))return{key:a,result:o}}}function m0(e){let t=typeof e=="string"?ir(e):e;return Da({...t,hash:""})}function DT(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function IT(e){return new gl(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function MT(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&NT(n))}function NT(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function OT(e){return Jp(e.result)&&o0.has(e.result.status)}function Un(e){return e.type==="error"}function _i(e){return(e&&e.type)==="redirect"}function vb(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Jp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function jT(e){return o0.has(e)}function UT(e){return Jp(e)&&jT(e.status)&&e.headers.has("Location")}function BT(e){return mT.has(e.toUpperCase())}function cn(e){return fT.has(e.toUpperCase())}function em(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function nu(e,t){let n=typeof t=="string"?ir(t).search:t.search;if(e[e.length-1].route.index&&em(n||""))return e[e.length-1];let a=t0(e);return a[a.length-1]}function bb(e){let{formMethod:t,formAction:n,formEncType:a,text:o,formData:s,json:l}=e;if(!(!t||!n||!a)){if(o!=null)return{formMethod:t,formAction:n,formEncType:a,formData:void 0,json:void 0,text:o};if(s!=null)return{formMethod:t,formAction:n,formEncType:a,formData:s,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:a,formData:void 0,json:l,text:void 0}}}function lf(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function FT(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ds(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function zT(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function er(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function VT(e,t){try{let n=e.sessionStorage.getItem(s0);if(n){let a=JSON.parse(n);for(let[o,s]of Object.entries(a||{}))s&&Array.isArray(s)&&t.set(o,new Set(s||[]))}}catch{}}function $T(e,t){if(t.size>0){let n={};for(let[a,o]of t)n[a]=[...o];try{e.sessionStorage.setItem(s0,JSON.stringify(n))}catch(a){Nt(!1,`Failed to save applied view transitions in sessionStorage (${a}).`)}}}function kb(){let e,t,n=new Promise((a,o)=>{e=async s=>{a(s);try{await n}catch{}},t=async s=>{o(s);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Mi=k.createContext(null);Mi.displayName="DataRouter";var vl=k.createContext(null);vl.displayName="DataRouterState";var g0=k.createContext(!1);function HT(){return k.useContext(g0)}var tm=k.createContext({isTransitioning:!1});tm.displayName="ViewTransition";var y0=k.createContext(new Map);y0.displayName="Fetchers";var WT=k.createContext(null);WT.displayName="Await";var Qn=k.createContext(null);Qn.displayName="Navigation";var td=k.createContext(null);td.displayName="Location";var or=k.createContext({outlet:null,matches:[],isDataRoute:!1});or.displayName="Route";var nm=k.createContext(null);nm.displayName="RouteError";var v0="REACT_ROUTER_ERROR",GT="REDIRECT",KT="ROUTE_ERROR_RESPONSE";function qT(e){if(e.startsWith(`${v0}:${GT}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function YT(e){if(e.startsWith(`${v0}:${KT}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new gl(t.status,t.statusText,t.data)}catch{}}function ZT(e,{relative:t}={}){et(bl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=k.useContext(Qn),{hash:o,pathname:s,search:l}=_l(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:ma([n,s])),a.createHref({pathname:u,search:l,hash:o})}function bl(){return k.useContext(td)!=null}function Jn(){return et(bl(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(td).location}var b0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function k0(e){k.useContext(Qn).static||k.useLayoutEffect(e)}function kl(){let{isDataRoute:e}=k.useContext(or);return e?c2():XT()}function XT(){et(bl(),"useNavigate() may be used only in the context of a <Router> component.");let e=k.useContext(Mi),{basename:t,navigator:n}=k.useContext(Qn),{matches:a}=k.useContext(or),{pathname:o}=Jn(),s=JSON.stringify(Xp(a)),l=k.useRef(!1);return k0(()=>{l.current=!0}),k.useCallback((f,h={})=>{if(Nt(l.current,b0),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=ed(f,JSON.parse(s),o,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:ma([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,s,o,e])}k.createContext(null);function _l(e,{relative:t}={}){let{matches:n}=k.useContext(or),{pathname:a}=Jn(),o=JSON.stringify(Xp(n));return k.useMemo(()=>ed(e,JSON.parse(o),a,t==="path"),[e,o,a,t])}function QT(e,t,n){et(bl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=k.useContext(Qn),{matches:o}=k.useContext(or),s=o[o.length-1],l=s?s.params:{},u=s?s.pathname:"/",f=s?s.pathnameBase:"/",h=s&&s.route;{let C=h&&h.path||"";w0(u,!h||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
11
-
12
- Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let m=Jn(),y;y=m;let v=y.pathname||"/",_=v;if(f!=="/"){let C=f.replace(/^\//,"").split("/");_="/"+v.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=Ur(e,{pathname:_});return Nt(h||x!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Nt(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),a2(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:ma([f,a.encodeLocation?a.encodeLocation(C.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?f:ma([f,a.encodeLocation?a.encodeLocation(C.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),o,n)}function JT(){let e=l2(),t=ol(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:s},"ErrorBoundary")," or"," ",k.createElement("code",{style:s},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:o},n):null,l)}var e2=k.createElement(JT,null),_0=class extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=YT(e.digest);n&&(e=n)}let t=e!==void 0?k.createElement(or.Provider,{value:this.props.routeContext},k.createElement(nm.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?k.createElement(t2,{error:e},t):t}};_0.contextType=g0;var cf=new WeakMap;function t2({children:e,error:t}){let{basename:n}=k.useContext(Qn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=qT(t.digest);if(a){let o=cf.get(t);if(o)throw o;let s=a0(a.location,n);if(n0&&!cf.get(t))if(s.isExternal||a.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:a.replace}));throw cf.set(t,l),l}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function n2({routeContext:e,match:t,children:n}){let a=k.useContext(Mi);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(or.Provider,{value:e},n)}function a2(e,t=[],n){let a=n?.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let o=e,s=a?.errors;if(s!=null){let m=o.findIndex(y=>y.route.id&&s?.[y.route.id]!==void 0);et(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let l=!1,u=-1;if(n&&a){l=a.renderFallback;for(let m=0;m<o.length;m++){let y=o[m];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(u=m),y.route.id){let{loaderData:v,errors:_}=a,x=y.route.loader&&!v.hasOwnProperty(y.route.id)&&(!_||_[y.route.id]===void 0);if(y.route.lazy||x){n.isStatic&&(l=!0),u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}}let f=n?.onError,h=a&&f?(m,y)=>{f(m,{location:a.location,params:a.matches?.[0]?.params??{},unstable_pattern:yl(a.matches),errorInfo:y})}:void 0;return o.reduceRight((m,y,v)=>{let _,x=!1,S=null,C=null;a&&(_=s&&y.route.id?s[y.route.id]:void 0,S=y.route.errorElement||e2,l&&(u<0&&v===0?(w0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,C=null):u===v&&(x=!0,C=y.route.hydrateFallbackElement||null)));let D=t.concat(o.slice(0,v+1)),M=()=>{let E;return _?E=S:x?E=C:y.route.Component?E=k.createElement(y.route.Component,null):y.route.element?E=y.route.element:E=m,k.createElement(n2,{match:y,routeContext:{outlet:m,matches:D,isDataRoute:a!=null},children:E})};return a&&(y.route.ErrorBoundary||y.route.errorElement||v===0)?k.createElement(_0,{location:a.location,revalidation:a.revalidation,component:S,error:_,children:M(),routeContext:{outlet:null,matches:D,isDataRoute:!0},onError:h}):M()},null)}function am(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function r2(e){let t=k.useContext(Mi);return et(t,am(e)),t}function i2(e){let t=k.useContext(vl);return et(t,am(e)),t}function o2(e){let t=k.useContext(or);return et(t,am(e)),t}function rm(e){let t=o2(e),n=t.matches[t.matches.length-1];return et(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function s2(){return rm("useRouteId")}function l2(){let e=k.useContext(nm),t=i2("useRouteError"),n=rm("useRouteError");return e!==void 0?e:t.errors?.[n]}function c2(){let{router:e}=r2("useNavigate"),t=rm("useNavigate"),n=k.useRef(!1);return k0(()=>{n.current=!0}),k.useCallback(async(o,s={})=>{Nt(n.current,b0),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var _b={};function w0(e,t,n){!t&&!_b[e]&&(_b[e]=!0,Nt(!1,n))}var wb={};function xb(e,t){!e&&!wb[t]&&(wb[t]=!0,console.warn(t))}var u2="useOptimistic",Pb=Yp[u2],d2=()=>{};function h2(e){return Pb?Pb(e):[e,d2]}function f2(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Nt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:k.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Nt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:k.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Nt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:k.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var p2=["HydrateFallback","hydrateFallbackElement"],m2=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function g2({router:e,flushSync:t,onError:n,unstable_useTransitions:a}){a=HT()||a;let[s,l]=k.useState(e.state),[u,f]=h2(s),[h,m]=k.useState(),[y,v]=k.useState({isTransitioning:!1}),[_,x]=k.useState(),[S,C]=k.useState(),[D,M]=k.useState(),E=k.useRef(new Map),A=k.useCallback((P,{deletedFetchers:Z,newErrors:X,flushSync:fe,viewTransitionOpts:he})=>{X&&n&&Object.values(X).forEach(J=>n(J,{location:P.location,params:P.matches[0]?.params??{},unstable_pattern:yl(P.matches)})),P.fetchers.forEach((J,te)=>{J.data!==void 0&&E.current.set(te,J.data)}),Z.forEach(J=>E.current.delete(J)),xb(fe===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let Q=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(xb(he==null||Q,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!he||!Q){t&&fe?t(()=>l(P)):a===!1?l(P):k.startTransition(()=>{a===!0&&f(J=>Sb(J,P)),l(P)});return}if(t&&fe){t(()=>{S&&(_?.resolve(),S.skipTransition()),v({isTransitioning:!0,flushSync:!0,currentLocation:he.currentLocation,nextLocation:he.nextLocation})});let J=e.window.document.startViewTransition(()=>{t(()=>l(P))});J.finished.finally(()=>{t(()=>{x(void 0),C(void 0),m(void 0),v({isTransitioning:!1})})}),t(()=>C(J));return}S?(_?.resolve(),S.skipTransition(),M({state:P,currentLocation:he.currentLocation,nextLocation:he.nextLocation})):(m(P),v({isTransitioning:!0,flushSync:!1,currentLocation:he.currentLocation,nextLocation:he.nextLocation}))},[e.window,t,S,_,a,f,n]);k.useLayoutEffect(()=>e.subscribe(A),[e,A]),k.useEffect(()=>{y.isTransitioning&&!y.flushSync&&x(new m2)},[y]),k.useEffect(()=>{if(_&&h&&e.window){let P=h,Z=_.promise,X=e.window.document.startViewTransition(async()=>{a===!1?l(P):k.startTransition(()=>{a===!0&&f(fe=>Sb(fe,P)),l(P)}),await Z});X.finished.finally(()=>{x(void 0),C(void 0),m(void 0),v({isTransitioning:!1})}),C(X)}},[h,_,e.window,a,f]),k.useEffect(()=>{_&&h&&u.location.key===h.location.key&&_.resolve()},[_,S,u.location,h]),k.useEffect(()=>{!y.isTransitioning&&D&&(m(D.state),v({isTransitioning:!0,flushSync:!1,currentLocation:D.currentLocation,nextLocation:D.nextLocation}),M(void 0))},[y.isTransitioning,D]);let B=k.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:P=>e.navigate(P),push:(P,Z,X)=>e.navigate(P,{state:Z,preventScrollReset:X?.preventScrollReset}),replace:(P,Z,X)=>e.navigate(P,{replace:!0,state:Z,preventScrollReset:X?.preventScrollReset})}),[e]),z=e.basename||"/",H=k.useMemo(()=>({router:e,navigator:B,static:!1,basename:z,onError:n}),[e,B,z,n]);return k.createElement(k.Fragment,null,k.createElement(Mi.Provider,{value:H},k.createElement(vl.Provider,{value:u},k.createElement(y0.Provider,{value:E.current},k.createElement(tm.Provider,{value:y},k.createElement(b2,{basename:z,location:u.location,navigationType:u.historyAction,navigator:B,unstable_useTransitions:a},k.createElement(y2,{routes:e.routes,future:e.future,state:u,isStatic:!1,onError:n})))))),null)}function Sb(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var y2=k.memo(v2);function v2({routes:e,future:t,state:n,isStatic:a,onError:o}){return QT(e,void 0,{state:n,isStatic:a,onError:o})}function b2({basename:e="/",children:t=null,location:n,navigationType:a="POP",navigator:o,static:s=!1,unstable_useTransitions:l}){et(!bl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),f=k.useMemo(()=>({basename:u,navigator:o,static:s,unstable_useTransitions:l,future:{}}),[u,o,s,l]);typeof n=="string"&&(n=ir(n));let{pathname:h="/",search:m="",hash:y="",state:v=null,key:_="default",unstable_mask:x}=n,S=k.useMemo(()=>{let C=Xn(h,u);return C==null?null:{location:{pathname:C,search:m,hash:y,state:v,key:_,unstable_mask:x},navigationType:a}},[u,h,m,y,v,_,a,x]);return Nt(S!=null,`<Router basename="${u}"> is not able to match the URL "${h}${m}${y}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:k.createElement(Qn.Provider,{value:f},k.createElement(td.Provider,{children:t,value:S}))}var au="get",ru="application/x-www-form-urlencoded";function nd(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function k2(e){return nd(e)&&e.tagName.toLowerCase()==="button"}function _2(e){return nd(e)&&e.tagName.toLowerCase()==="form"}function w2(e){return nd(e)&&e.tagName.toLowerCase()==="input"}function x2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function P2(e,t){return e.button===0&&(!t||t==="_self")&&!x2(e)}function Kf(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let a=e[n];return t.concat(Array.isArray(a)?a.map(o=>[n,o]):[[n,a]])},[]))}function S2(e,t){let n=Kf(e);return t&&t.forEach((a,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}var Fc=null;function C2(){if(Fc===null)try{new FormData(document.createElement("form"),0),Fc=!1}catch{Fc=!0}return Fc}var T2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function uf(e){return e!=null&&!T2.has(e)?(Nt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ru}"`),null):e}function E2(e,t){let n,a,o,s,l;if(_2(e)){let u=e.getAttribute("action");a=u?Xn(u,t):null,n=e.getAttribute("method")||au,o=uf(e.getAttribute("enctype"))||ru,s=new FormData(e)}else if(k2(e)||w2(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||u.getAttribute("action");if(a=f?Xn(f,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||au,o=uf(e.getAttribute("formenctype"))||uf(u.getAttribute("enctype"))||ru,s=new FormData(u,e),!C2()){let{name:h,type:m,value:y}=e;if(m==="image"){let v=h?`${h}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else h&&s.append(h,y)}}else{if(nd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=au,a=null,o=ru,l=e}return s&&o==="text/plain"&&(l=s,s=void 0),{action:a,method:n.toLowerCase(),encType:o,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function im(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function A2(e,t,n,a){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${a}`:o.pathname=`${o.pathname}.${a}`:o.pathname==="/"?o.pathname=`_root.${a}`:t&&Xn(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${a}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${a}`,o}async function R2(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function L2(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function D2(e,t,n){let a=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let l=await R2(s,n);return l.links?l.links():[]}return[]}));return O2(a.flat(1).filter(L2).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Cb(e,t,n,a,o,s){let l=(f,h)=>n[h]?f.route.id!==n[h].route.id:!0,u=(f,h)=>n[h].pathname!==f.pathname||n[h].route.path?.endsWith("*")&&n[h].params["*"]!==f.params["*"];return s==="assets"?t.filter((f,h)=>l(f,h)||u(f,h)):s==="data"?t.filter((f,h)=>{let m=a.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(l(f,h)||u(f,h))return!0;if(f.route.shouldRevalidate){let y=f.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function I2(e,t,{includeHydrateFallback:n}={}){return M2(e.map(a=>{let o=t.routes[a.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function M2(e){return[...new Set(e)]}function N2(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function O2(e,t){let n=new Set;return new Set(t),e.reduce((a,o)=>{let s=JSON.stringify(N2(o));return n.has(s)||(n.add(s),a.push({key:s,link:o})),a},[])}function x0(){let e=k.useContext(Mi);return im(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function j2(){let e=k.useContext(vl);return im(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var om=k.createContext(void 0);om.displayName="FrameworkContext";function P0(){let e=k.useContext(om);return im(e,"You must render this element inside a <HydratedRouter> element"),e}function U2(e,t){let n=k.useContext(om),[a,o]=k.useState(!1),[s,l]=k.useState(!1),{onFocus:u,onBlur:f,onMouseEnter:h,onMouseLeave:m,onTouchStart:y}=t,v=k.useRef(null);k.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let S=D=>{D.forEach(M=>{l(M.isIntersecting)})},C=new IntersectionObserver(S,{threshold:.5});return v.current&&C.observe(v.current),()=>{C.disconnect()}}},[e]),k.useEffect(()=>{if(a){let S=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(S)}}},[a]);let _=()=>{o(!0)},x=()=>{o(!1),l(!1)};return n?e!=="intent"?[s,v,{}]:[s,v,{onFocus:Is(u,_),onBlur:Is(f,x),onMouseEnter:Is(h,_),onMouseLeave:Is(m,x),onTouchStart:Is(y,_)}]:[!1,v,{}]}function Is(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function B2({page:e,...t}){let{router:n}=x0(),a=k.useMemo(()=>Ur(n.routes,e,n.basename),[n.routes,e,n.basename]);return a?k.createElement(z2,{page:e,matches:a,...t}):null}function F2(e){let{manifest:t,routeModules:n}=P0(),[a,o]=k.useState([]);return k.useEffect(()=>{let s=!1;return D2(e,t,n).then(l=>{s||o(l)}),()=>{s=!0}},[e,t,n]),a}function z2({page:e,matches:t,...n}){let a=Jn(),{future:o,manifest:s,routeModules:l}=P0(),{basename:u}=x0(),{loaderData:f,matches:h}=j2(),m=k.useMemo(()=>Cb(e,t,h,s,a,"data"),[e,t,h,s,a]),y=k.useMemo(()=>Cb(e,t,h,s,a,"assets"),[e,t,h,s,a]),v=k.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let S=new Set,C=!1;if(t.forEach(M=>{let E=s.routes[M.route.id];!E||!E.hasLoader||(!m.some(A=>A.route.id===M.route.id)&&M.route.id in f&&l[M.route.id]?.shouldRevalidate||E.hasClientLoader?C=!0:S.add(M.route.id))}),S.size===0)return[];let D=A2(e,u,o.unstable_trailingSlashAwareDataRequests,"data");return C&&S.size>0&&D.searchParams.set("_routes",t.filter(M=>S.has(M.route.id)).map(M=>M.route.id).join(",")),[D.pathname+D.search]},[u,o.unstable_trailingSlashAwareDataRequests,f,a,s,m,t,e,l]),_=k.useMemo(()=>I2(y,s),[y,s]),x=F2(y);return k.createElement(k.Fragment,null,v.map(S=>k.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),_.map(S=>k.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),x.map(({key:S,link:C})=>k.createElement("link",{key:S,nonce:n.nonce,...C,crossOrigin:C.crossOrigin??n.crossOrigin})))}function V2(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var $2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{$2&&(window.__reactRouterVersion="7.13.1")}catch{}function H2(e,t){return bT({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:NC({window:t?.window}),hydrationData:W2(),routes:e,mapRouteProperties:f2,hydrationRouteProperties:p2,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function W2(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:G2(e.errors)}),e}function G2(e){if(!e)return null;let t=Object.entries(e),n={};for(let[a,o]of t)if(o&&o.__type==="RouteErrorResponse")n[a]=new gl(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let s=window[o.__subType];if(typeof s=="function")try{let l=new s(o.message);l.stack="",n[a]=l}catch{}}if(n[a]==null){let s=new Error(o.message);s.stack="",n[a]=s}}else n[a]=o;return n}var S0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ad=k.forwardRef(function({onClick:t,discover:n="render",prefetch:a="none",relative:o,reloadDocument:s,replace:l,unstable_mask:u,state:f,target:h,to:m,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:_,...x},S){let{basename:C,navigator:D,unstable_useTransitions:M}=k.useContext(Qn),E=typeof m=="string"&&S0.test(m),A=a0(m,C);m=A.to;let B=ZT(m,{relative:o}),z=Jn(),H=null;if(u){let te=ed(u,[],z.unstable_mask?z.unstable_mask.pathname:"/",!0);C!=="/"&&(te.pathname=te.pathname==="/"?C:ma([C,te.pathname])),H=D.createHref(te)}let[P,Z,X]=U2(a,x),fe=Z2(m,{replace:l,unstable_mask:u,state:f,target:h,preventScrollReset:y,relative:o,viewTransition:v,unstable_defaultShouldRevalidate:_,unstable_useTransitions:M});function he(te){t&&t(te),te.defaultPrevented||fe(te)}let Q=!(A.isExternal||s),J=k.createElement("a",{...x,...X,href:(Q?H:void 0)||A.absoluteURL||B,onClick:Q?he:t,ref:V2(S,Z),target:h,"data-discover":!E&&n==="render"?"true":void 0});return P&&!E?k.createElement(k.Fragment,null,J,k.createElement(B2,{page:B})):J});ad.displayName="Link";var K2=k.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:o=!1,style:s,to:l,viewTransition:u,children:f,...h},m){let y=_l(l,{relative:h.relative}),v=Jn(),_=k.useContext(vl),{navigator:x,basename:S}=k.useContext(Qn),C=_!=null&&tE(y)&&u===!0,D=x.encodeLocation?x.encodeLocation(y).pathname:y.pathname,M=v.pathname,E=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(M=M.toLowerCase(),E=E?E.toLowerCase():null,D=D.toLowerCase()),E&&S&&(E=Xn(E,S)||E);const A=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let B=M===D||!o&&M.startsWith(D)&&M.charAt(A)==="/",z=E!=null&&(E===D||!o&&E.startsWith(D)&&E.charAt(D.length)==="/"),H={isActive:B,isPending:z,isTransitioning:C},P=B?t:void 0,Z;typeof a=="function"?Z=a(H):Z=[a,B?"active":null,z?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let X=typeof s=="function"?s(H):s;return k.createElement(ad,{...h,"aria-current":P,className:Z,ref:m,style:X,to:l,viewTransition:u},typeof f=="function"?f(H):f)});K2.displayName="NavLink";var q2=k.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:o,state:s,method:l=au,action:u,onSubmit:f,relative:h,preventScrollReset:m,viewTransition:y,unstable_defaultShouldRevalidate:v,..._},x)=>{let{unstable_useTransitions:S}=k.useContext(Qn),C=J2(),D=eE(u,{relative:h}),M=l.toLowerCase()==="get"?"get":"post",E=typeof u=="string"&&S0.test(u),A=B=>{if(f&&f(B),B.defaultPrevented)return;B.preventDefault();let z=B.nativeEvent.submitter,H=z?.getAttribute("formmethod")||l,P=()=>C(z||B.currentTarget,{fetcherKey:t,method:H,navigate:n,replace:o,state:s,relative:h,preventScrollReset:m,viewTransition:y,unstable_defaultShouldRevalidate:v});S&&n!==!1?k.startTransition(()=>P()):P()};return k.createElement("form",{ref:x,method:M,action:D,onSubmit:a?f:A,..._,"data-discover":!E&&e==="render"?"true":void 0})});q2.displayName="Form";function Y2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function C0(e){let t=k.useContext(Mi);return et(t,Y2(e)),t}function Z2(e,{target:t,replace:n,unstable_mask:a,state:o,preventScrollReset:s,relative:l,viewTransition:u,unstable_defaultShouldRevalidate:f,unstable_useTransitions:h}={}){let m=kl(),y=Jn(),v=_l(e,{relative:l});return k.useCallback(_=>{if(P2(_,t)){_.preventDefault();let x=n!==void 0?n:Da(y)===Da(v),S=()=>m(e,{replace:x,unstable_mask:a,state:o,preventScrollReset:s,relative:l,viewTransition:u,unstable_defaultShouldRevalidate:f});h?k.startTransition(()=>S()):S()}},[y,m,v,n,a,o,t,e,s,l,u,f,h])}function k9(e){Nt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=k.useRef(Kf(e)),n=k.useRef(!1),a=Jn(),o=k.useMemo(()=>S2(a.search,n.current?null:t.current),[a.search]),s=kl(),l=k.useCallback((u,f)=>{const h=Kf(typeof u=="function"?u(new URLSearchParams(o)):u);n.current=!0,s("?"+h,f)},[s,o]);return[o,l]}var X2=0,Q2=()=>`__${String(++X2)}__`;function J2(){let{router:e}=C0("useSubmit"),{basename:t}=k.useContext(Qn),n=s2(),a=e.fetch,o=e.navigate;return k.useCallback(async(s,l={})=>{let{action:u,method:f,encType:h,formData:m,body:y}=E2(s,t);if(l.navigate===!1){let v=l.fetcherKey||Q2();await a(v,n,l.action||u,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:y,formMethod:l.method||f,formEncType:l.encType||h,flushSync:l.flushSync})}else await o(l.action||u,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:y,formMethod:l.method||f,formEncType:l.encType||h,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[a,o,t,n])}function eE(e,{relative:t}={}){let{basename:n}=k.useContext(Qn),a=k.useContext(or);et(a,"useFormAction must be used inside a RouteContext");let[o]=a.matches.slice(-1),s={..._l(e||".",{relative:t})},l=Jn();if(e==null){s.search=l.search;let u=new URLSearchParams(s.search),f=u.getAll("index");if(f.some(m=>m==="")){u.delete("index"),f.filter(y=>y).forEach(y=>u.append("index",y));let m=u.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:ma([n,s.pathname])),Da(s)}function tE(e,{relative:t}={}){let n=k.useContext(tm);et(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=C0("useViewTransitionState"),o=_l(e,{relative:t});if(!n.isTransitioning)return!1;let s=Xn(n.currentLocation.pathname,a)||n.currentLocation.pathname,l=Xn(n.nextLocation.pathname,a)||n.nextLocation.pathname;return _u(o.pathname,l)!=null||_u(o.pathname,s)!=null}var Ni=Y_();function nE(e){return k.createElement(g2,{flushSync:Ni.flushSync,...e})}var st;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const s={};for(const l of o)s[l]=l;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(u=>typeof o[o[u]]!="number"),l={};for(const u of s)l[u]=o[u];return e.objectValues(l)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const l in o)Object.prototype.hasOwnProperty.call(o,l)&&s.push(l);return s},e.find=(o,s)=>{for(const l of o)if(s(l))return l},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function a(o,s=" | "){return o.map(l=>typeof l=="string"?`'${l}'`:l).join(s)}e.joinValues=a,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(st||(st={}));var Tb;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Tb||(Tb={}));const we=st.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),jr=e=>{switch(typeof e){case"undefined":return we.undefined;case"string":return we.string;case"number":return Number.isNaN(e)?we.nan:we.number;case"boolean":return we.boolean;case"function":return we.function;case"bigint":return we.bigint;case"symbol":return we.symbol;case"object":return Array.isArray(e)?we.array:e===null?we.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?we.promise:typeof Map<"u"&&e instanceof Map?we.map:typeof Set<"u"&&e instanceof Set?we.set:typeof Date<"u"&&e instanceof Date?we.date:we.object;default:return we.unknown}},le=st.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ar extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(s){return s.message},a={_errors:[]},o=s=>{for(const l of s.issues)if(l.code==="invalid_union")l.unionErrors.map(o);else if(l.code==="invalid_return_type")o(l.returnTypeError);else if(l.code==="invalid_arguments")o(l.argumentsError);else if(l.path.length===0)a._errors.push(n(l));else{let u=a,f=0;for(;f<l.path.length;){const h=l.path[f];f===l.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(n(l))):u[h]=u[h]||{_errors:[]},u=u[h],f++}}};return o(this),a}static assert(t){if(!(t instanceof ar))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,st.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},a=[];for(const o of this.issues)if(o.path.length>0){const s=o.path[0];n[s]=n[s]||[],n[s].push(t(o))}else a.push(t(o));return{formErrors:a,fieldErrors:n}}get formErrors(){return this.flatten()}}ar.create=e=>new ar(e);const qf=(e,t)=>{let n;switch(e.code){case le.invalid_type:e.received===we.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case le.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,st.jsonStringifyReplacer)}`;break;case le.unrecognized_keys:n=`Unrecognized key(s) in object: ${st.joinValues(e.keys,", ")}`;break;case le.invalid_union:n="Invalid input";break;case le.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${st.joinValues(e.options)}`;break;case le.invalid_enum_value:n=`Invalid enum value. Expected ${st.joinValues(e.options)}, received '${e.received}'`;break;case le.invalid_arguments:n="Invalid function arguments";break;case le.invalid_return_type:n="Invalid function return type";break;case le.invalid_date:n="Invalid date";break;case le.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:st.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case le.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case le.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case le.custom:n="Invalid input";break;case le.invalid_intersection_types:n="Intersection results could not be merged";break;case le.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case le.not_finite:n="Number must be finite";break;default:n=t.defaultError,st.assertNever(e)}return{message:n}};let aE=qf;function rE(){return aE}const iE=e=>{const{data:t,path:n,errorMaps:a,issueData:o}=e,s=[...n,...o.path||[]],l={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let u="";const f=a.filter(h=>!!h).slice().reverse();for(const h of f)u=h(l,{data:t,defaultError:u}).message;return{...o,path:s,message:u}};function ge(e,t){const n=rE(),a=iE({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===qf?void 0:qf].filter(o=>!!o)});e.common.issues.push(a)}class kn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const a=[];for(const o of n){if(o.status==="aborted")return He;o.status==="dirty"&&t.dirty(),a.push(o.value)}return{status:t.value,value:a}}static async mergeObjectAsync(t,n){const a=[];for(const o of n){const s=await o.key,l=await o.value;a.push({key:s,value:l})}return kn.mergeObjectSync(t,a)}static mergeObjectSync(t,n){const a={};for(const o of n){const{key:s,value:l}=o;if(s.status==="aborted"||l.status==="aborted")return He;s.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof l.value<"u"||o.alwaysSet)&&(a[s.value]=l.value)}return{status:t.value,value:a}}}const He=Object.freeze({status:"aborted"}),zs=e=>({status:"dirty",value:e}),ea=e=>({status:"valid",value:e}),Eb=e=>e.status==="aborted",Ab=e=>e.status==="dirty",Lo=e=>e.status==="valid",wu=e=>typeof Promise<"u"&&e instanceof Promise;var Re;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Re||(Re={}));class Ia{constructor(t,n,a,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=a,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Rb=(e,t)=>{if(Lo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ar(e.common.issues);return this._error=n,this._error}}};function Ze(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:a,description:o}=e;if(t&&(n||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(l,u)=>{const{message:f}=e;return l.code==="invalid_enum_value"?{message:f??u.defaultError}:typeof u.data>"u"?{message:f??a??u.defaultError}:l.code!=="invalid_type"?{message:u.defaultError}:{message:f??n??u.defaultError}},description:o}}class tt{get description(){return this._def.description}_getType(t){return jr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:jr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new kn,ctx:{common:t.parent.common,data:t.data,parsedType:jr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(wu(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const a=this.safeParse(t,n);if(a.success)return a.data;throw a.error}safeParse(t,n){const a={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:jr(t)},o=this._parseSync({data:t,path:a.path,parent:a});return Rb(a,o)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:jr(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return Lo(a)?{value:a.value}:{issues:n.common.issues}}catch(a){a?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(a=>Lo(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(t,n){const a=await this.safeParseAsync(t,n);if(a.success)return a.data;throw a.error}async safeParseAsync(t,n){const a={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:jr(t)},o=this._parse({data:t,path:a.path,parent:a}),s=await(wu(o)?o:Promise.resolve(o));return Rb(a,s)}refine(t,n){const a=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{const l=t(o),u=()=>s.addIssue({code:le.custom,...a(o)});return typeof Promise<"u"&&l instanceof Promise?l.then(f=>f?!0:(u(),!1)):l?!0:(u(),!1)})}refinement(t,n){return this._refinement((a,o)=>t(a)?!0:(o.addIssue(typeof n=="function"?n(a,o):n),!1))}_refinement(t){return new Di({schema:this,typeName:We.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return nr.create(this,this._def)}nullable(){return Ii.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ra.create(this)}promise(){return Eu.create(this,this._def)}or(t){return Pu.create([this,t],this._def)}and(t){return Su.create(this,t,this._def)}transform(t){return new Di({...Ze(this._def),schema:this,typeName:We.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Au({...Ze(this._def),innerType:this,defaultValue:n,typeName:We.ZodDefault})}brand(){return new R0({typeName:We.ZodBranded,type:this,...Ze(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ru({...Ze(this._def),innerType:this,catchValue:n,typeName:We.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return lm.create(this,t)}readonly(){return Lu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const oE=/^c[^\s-]{8,}$/i,sE=/^[0-9a-z]+$/,lE=/^[0-9A-HJKMNP-TV-Z]{26}$/i,cE=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,uE=/^[a-z0-9_-]{21}$/i,dE=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,hE=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,fE=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,pE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let df;const mE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,gE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,yE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,vE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,bE=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,kE=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,T0="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",_E=new RegExp(`^${T0}$`);function E0(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function wE(e){return new RegExp(`^${E0(e)}$`)}function xE(e){let t=`${T0}T${E0(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function PE(e,t){return!!((t==="v4"||!t)&&mE.test(e)||(t==="v6"||!t)&&yE.test(e))}function SE(e,t){if(!dE.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const a=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(a));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function CE(e,t){return!!((t==="v4"||!t)&&gE.test(e)||(t==="v6"||!t)&&vE.test(e))}class Aa extends tt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==we.string){const s=this._getOrReturnCtx(t);return ge(s,{code:le.invalid_type,expected:we.string,received:s.parsedType}),He}const a=new kn;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(o=this._getOrReturnCtx(t,o),ge(o,{code:le.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),a.dirty());else if(s.kind==="max")t.data.length>s.value&&(o=this._getOrReturnCtx(t,o),ge(o,{code:le.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),a.dirty());else if(s.kind==="length"){const l=t.data.length>s.value,u=t.data.length<s.value;(l||u)&&(o=this._getOrReturnCtx(t,o),l?ge(o,{code:le.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):u&&ge(o,{code:le.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),a.dirty())}else if(s.kind==="email")fE.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"email",code:le.invalid_string,message:s.message}),a.dirty());else if(s.kind==="emoji")df||(df=new RegExp(pE,"u")),df.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"emoji",code:le.invalid_string,message:s.message}),a.dirty());else if(s.kind==="uuid")cE.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"uuid",code:le.invalid_string,message:s.message}),a.dirty());else if(s.kind==="nanoid")uE.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"nanoid",code:le.invalid_string,message:s.message}),a.dirty());else if(s.kind==="cuid")oE.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"cuid",code:le.invalid_string,message:s.message}),a.dirty());else if(s.kind==="cuid2")sE.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"cuid2",code:le.invalid_string,message:s.message}),a.dirty());else if(s.kind==="ulid")lE.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"ulid",code:le.invalid_string,message:s.message}),a.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),ge(o,{validation:"url",code:le.invalid_string,message:s.message}),a.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"regex",code:le.invalid_string,message:s.message}),a.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(t,o),ge(o,{code:le.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),a.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(o=this._getOrReturnCtx(t,o),ge(o,{code:le.invalid_string,validation:{startsWith:s.value},message:s.message}),a.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(o=this._getOrReturnCtx(t,o),ge(o,{code:le.invalid_string,validation:{endsWith:s.value},message:s.message}),a.dirty()):s.kind==="datetime"?xE(s).test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{code:le.invalid_string,validation:"datetime",message:s.message}),a.dirty()):s.kind==="date"?_E.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{code:le.invalid_string,validation:"date",message:s.message}),a.dirty()):s.kind==="time"?wE(s).test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{code:le.invalid_string,validation:"time",message:s.message}),a.dirty()):s.kind==="duration"?hE.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"duration",code:le.invalid_string,message:s.message}),a.dirty()):s.kind==="ip"?PE(t.data,s.version)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"ip",code:le.invalid_string,message:s.message}),a.dirty()):s.kind==="jwt"?SE(t.data,s.alg)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"jwt",code:le.invalid_string,message:s.message}),a.dirty()):s.kind==="cidr"?CE(t.data,s.version)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"cidr",code:le.invalid_string,message:s.message}),a.dirty()):s.kind==="base64"?bE.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"base64",code:le.invalid_string,message:s.message}),a.dirty()):s.kind==="base64url"?kE.test(t.data)||(o=this._getOrReturnCtx(t,o),ge(o,{validation:"base64url",code:le.invalid_string,message:s.message}),a.dirty()):st.assertNever(s);return{status:a.value,value:t.data}}_regex(t,n,a){return this.refinement(o=>t.test(o),{validation:n,code:le.invalid_string,...Re.errToObj(a)})}_addCheck(t){return new Aa({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Re.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Re.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Re.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Re.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Re.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Re.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Re.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Re.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Re.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Re.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Re.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Re.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Re.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Re.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Re.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Re.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Re.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...Re.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Re.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Re.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Re.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Re.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Re.errToObj(n)})}nonempty(t){return this.min(1,Re.errToObj(t))}trim(){return new Aa({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Aa({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Aa({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Aa.create=e=>new Aa({checks:[],typeName:We.ZodString,coerce:e?.coerce??!1,...Ze(e)});function TE(e,t){const n=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,o=n>a?n:a,s=Number.parseInt(e.toFixed(o).replace(".","")),l=Number.parseInt(t.toFixed(o).replace(".",""));return s%l/10**o}class Ei extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==we.number){const s=this._getOrReturnCtx(t);return ge(s,{code:le.invalid_type,expected:we.number,received:s.parsedType}),He}let a;const o=new kn;for(const s of this._def.checks)s.kind==="int"?st.isInteger(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{code:le.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(a=this._getOrReturnCtx(t,a),ge(a,{code:le.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(a=this._getOrReturnCtx(t,a),ge(a,{code:le.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?TE(t.data,s.value)!==0&&(a=this._getOrReturnCtx(t,a),ge(a,{code:le.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(a=this._getOrReturnCtx(t,a),ge(a,{code:le.not_finite,message:s.message}),o.dirty()):st.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Re.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Re.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Re.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Re.toString(n))}setLimit(t,n,a,o){return new Ei({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:a,message:Re.toString(o)}]})}_addCheck(t){return new Ei({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Re.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Re.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Re.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Re.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Re.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Re.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Re.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Re.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Re.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&st.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(n===null||a.value>n)&&(n=a.value):a.kind==="max"&&(t===null||a.value<t)&&(t=a.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Ei.create=e=>new Ei({checks:[],typeName:We.ZodNumber,coerce:e?.coerce||!1,...Ze(e)});class Ai extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==we.bigint)return this._getInvalidInput(t);let a;const o=new kn;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(a=this._getOrReturnCtx(t,a),ge(a,{code:le.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(a=this._getOrReturnCtx(t,a),ge(a,{code:le.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(a=this._getOrReturnCtx(t,a),ge(a,{code:le.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):st.assertNever(s);return{status:o.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ge(n,{code:le.invalid_type,expected:we.bigint,received:n.parsedType}),He}gte(t,n){return this.setLimit("min",t,!0,Re.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Re.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Re.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Re.toString(n))}setLimit(t,n,a,o){return new Ai({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:a,message:Re.toString(o)}]})}_addCheck(t){return new Ai({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Re.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Re.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Re.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Re.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Re.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ai.create=e=>new Ai({checks:[],typeName:We.ZodBigInt,coerce:e?.coerce??!1,...Ze(e)});class xu extends tt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==we.boolean){const a=this._getOrReturnCtx(t);return ge(a,{code:le.invalid_type,expected:we.boolean,received:a.parsedType}),He}return ea(t.data)}}xu.create=e=>new xu({typeName:We.ZodBoolean,coerce:e?.coerce||!1,...Ze(e)});class Do extends tt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==we.date){const s=this._getOrReturnCtx(t);return ge(s,{code:le.invalid_type,expected:we.date,received:s.parsedType}),He}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return ge(s,{code:le.invalid_date}),He}const a=new kn;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(o=this._getOrReturnCtx(t,o),ge(o,{code:le.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),a.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(o=this._getOrReturnCtx(t,o),ge(o,{code:le.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),a.dirty()):st.assertNever(s);return{status:a.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Do({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Re.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Re.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Do.create=e=>new Do({checks:[],coerce:e?.coerce||!1,typeName:We.ZodDate,...Ze(e)});class Lb extends tt{_parse(t){if(this._getType(t)!==we.symbol){const a=this._getOrReturnCtx(t);return ge(a,{code:le.invalid_type,expected:we.symbol,received:a.parsedType}),He}return ea(t.data)}}Lb.create=e=>new Lb({typeName:We.ZodSymbol,...Ze(e)});class Yf extends tt{_parse(t){if(this._getType(t)!==we.undefined){const a=this._getOrReturnCtx(t);return ge(a,{code:le.invalid_type,expected:we.undefined,received:a.parsedType}),He}return ea(t.data)}}Yf.create=e=>new Yf({typeName:We.ZodUndefined,...Ze(e)});class Zf extends tt{_parse(t){if(this._getType(t)!==we.null){const a=this._getOrReturnCtx(t);return ge(a,{code:le.invalid_type,expected:we.null,received:a.parsedType}),He}return ea(t.data)}}Zf.create=e=>new Zf({typeName:We.ZodNull,...Ze(e)});class Db extends tt{constructor(){super(...arguments),this._any=!0}_parse(t){return ea(t.data)}}Db.create=e=>new Db({typeName:We.ZodAny,...Ze(e)});class Xf extends tt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ea(t.data)}}Xf.create=e=>new Xf({typeName:We.ZodUnknown,...Ze(e)});class Wr extends tt{_parse(t){const n=this._getOrReturnCtx(t);return ge(n,{code:le.invalid_type,expected:we.never,received:n.parsedType}),He}}Wr.create=e=>new Wr({typeName:We.ZodNever,...Ze(e)});class Ib extends tt{_parse(t){if(this._getType(t)!==we.undefined){const a=this._getOrReturnCtx(t);return ge(a,{code:le.invalid_type,expected:we.void,received:a.parsedType}),He}return ea(t.data)}}Ib.create=e=>new Ib({typeName:We.ZodVoid,...Ze(e)});class Ra extends tt{_parse(t){const{ctx:n,status:a}=this._processInputParams(t),o=this._def;if(n.parsedType!==we.array)return ge(n,{code:le.invalid_type,expected:we.array,received:n.parsedType}),He;if(o.exactLength!==null){const l=n.data.length>o.exactLength.value,u=n.data.length<o.exactLength.value;(l||u)&&(ge(n,{code:l?le.too_big:le.too_small,minimum:u?o.exactLength.value:void 0,maximum:l?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),a.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(ge(n,{code:le.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),a.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(ge(n,{code:le.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),a.dirty()),n.common.async)return Promise.all([...n.data].map((l,u)=>o.type._parseAsync(new Ia(n,l,n.path,u)))).then(l=>kn.mergeArray(a,l));const s=[...n.data].map((l,u)=>o.type._parseSync(new Ia(n,l,n.path,u)));return kn.mergeArray(a,s)}get element(){return this._def.type}min(t,n){return new Ra({...this._def,minLength:{value:t,message:Re.toString(n)}})}max(t,n){return new Ra({...this._def,maxLength:{value:t,message:Re.toString(n)}})}length(t,n){return new Ra({...this._def,exactLength:{value:t,message:Re.toString(n)}})}nonempty(t){return this.min(1,t)}}Ra.create=(e,t)=>new Ra({type:e,minLength:null,maxLength:null,exactLength:null,typeName:We.ZodArray,...Ze(t)});function _o(e){if(e instanceof Ut){const t={};for(const n in e.shape){const a=e.shape[n];t[n]=nr.create(_o(a))}return new Ut({...e._def,shape:()=>t})}else return e instanceof Ra?new Ra({...e._def,type:_o(e.element)}):e instanceof nr?nr.create(_o(e.unwrap())):e instanceof Ii?Ii.create(_o(e.unwrap())):e instanceof Ri?Ri.create(e.items.map(t=>_o(t))):e}class Ut extends tt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=st.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==we.object){const h=this._getOrReturnCtx(t);return ge(h,{code:le.invalid_type,expected:we.object,received:h.parsedType}),He}const{status:a,ctx:o}=this._processInputParams(t),{shape:s,keys:l}=this._getCached(),u=[];if(!(this._def.catchall instanceof Wr&&this._def.unknownKeys==="strip"))for(const h in o.data)l.includes(h)||u.push(h);const f=[];for(const h of l){const m=s[h],y=o.data[h];f.push({key:{status:"valid",value:h},value:m._parse(new Ia(o,y,o.path,h)),alwaysSet:h in o.data})}if(this._def.catchall instanceof Wr){const h=this._def.unknownKeys;if(h==="passthrough")for(const m of u)f.push({key:{status:"valid",value:m},value:{status:"valid",value:o.data[m]}});else if(h==="strict")u.length>0&&(ge(o,{code:le.unrecognized_keys,keys:u}),a.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const m of u){const y=o.data[m];f.push({key:{status:"valid",value:m},value:h._parse(new Ia(o,y,o.path,m)),alwaysSet:m in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const h=[];for(const m of f){const y=await m.key,v=await m.value;h.push({key:y,value:v,alwaysSet:m.alwaysSet})}return h}).then(h=>kn.mergeObjectSync(a,h)):kn.mergeObjectSync(a,f)}get shape(){return this._def.shape()}strict(t){return Re.errToObj,new Ut({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,a)=>{const o=this._def.errorMap?.(n,a).message??a.defaultError;return n.code==="unrecognized_keys"?{message:Re.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new Ut({...this._def,unknownKeys:"strip"})}passthrough(){return new Ut({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ut({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ut({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:We.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ut({...this._def,catchall:t})}pick(t){const n={};for(const a of st.objectKeys(t))t[a]&&this.shape[a]&&(n[a]=this.shape[a]);return new Ut({...this._def,shape:()=>n})}omit(t){const n={};for(const a of st.objectKeys(this.shape))t[a]||(n[a]=this.shape[a]);return new Ut({...this._def,shape:()=>n})}deepPartial(){return _o(this)}partial(t){const n={};for(const a of st.objectKeys(this.shape)){const o=this.shape[a];t&&!t[a]?n[a]=o:n[a]=o.optional()}return new Ut({...this._def,shape:()=>n})}required(t){const n={};for(const a of st.objectKeys(this.shape))if(t&&!t[a])n[a]=this.shape[a];else{let s=this.shape[a];for(;s instanceof nr;)s=s._def.innerType;n[a]=s}return new Ut({...this._def,shape:()=>n})}keyof(){return A0(st.objectKeys(this.shape))}}Ut.create=(e,t)=>new Ut({shape:()=>e,unknownKeys:"strip",catchall:Wr.create(),typeName:We.ZodObject,...Ze(t)});Ut.strictCreate=(e,t)=>new Ut({shape:()=>e,unknownKeys:"strict",catchall:Wr.create(),typeName:We.ZodObject,...Ze(t)});Ut.lazycreate=(e,t)=>new Ut({shape:e,unknownKeys:"strip",catchall:Wr.create(),typeName:We.ZodObject,...Ze(t)});class Pu extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),a=this._def.options;function o(s){for(const u of s)if(u.result.status==="valid")return u.result;for(const u of s)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const l=s.map(u=>new ar(u.ctx.common.issues));return ge(n,{code:le.invalid_union,unionErrors:l}),He}if(n.common.async)return Promise.all(a.map(async s=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(o);{let s;const l=[];for(const f of a){const h={...n,common:{...n.common,issues:[]},parent:null},m=f._parseSync({data:n.data,path:n.path,parent:h});if(m.status==="valid")return m;m.status==="dirty"&&!s&&(s={result:m,ctx:h}),h.common.issues.length&&l.push(h.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const u=l.map(f=>new ar(f));return ge(n,{code:le.invalid_union,unionErrors:u}),He}}get options(){return this._def.options}}Pu.create=(e,t)=>new Pu({options:e,typeName:We.ZodUnion,...Ze(t)});const tr=e=>e instanceof Jf?tr(e.schema):e instanceof Di?tr(e.innerType()):e instanceof Tu?[e.value]:e instanceof Li?e.options:e instanceof ep?st.objectValues(e.enum):e instanceof Au?tr(e._def.innerType):e instanceof Yf?[void 0]:e instanceof Zf?[null]:e instanceof nr?[void 0,...tr(e.unwrap())]:e instanceof Ii?[null,...tr(e.unwrap())]:e instanceof R0||e instanceof Lu?tr(e.unwrap()):e instanceof Ru?tr(e._def.innerType):[];class sm extends tt{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==we.object)return ge(n,{code:le.invalid_type,expected:we.object,received:n.parsedType}),He;const a=this.discriminator,o=n.data[a],s=this.optionsMap.get(o);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(ge(n,{code:le.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),He)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,a){const o=new Map;for(const s of n){const l=tr(s.shape[t]);if(!l.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const u of l){if(o.has(u))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(u)}`);o.set(u,s)}}return new sm({typeName:We.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Ze(a)})}}function Qf(e,t){const n=jr(e),a=jr(t);if(e===t)return{valid:!0,data:e};if(n===we.object&&a===we.object){const o=st.objectKeys(t),s=st.objectKeys(e).filter(u=>o.indexOf(u)!==-1),l={...e,...t};for(const u of s){const f=Qf(e[u],t[u]);if(!f.valid)return{valid:!1};l[u]=f.data}return{valid:!0,data:l}}else if(n===we.array&&a===we.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s<e.length;s++){const l=e[s],u=t[s],f=Qf(l,u);if(!f.valid)return{valid:!1};o.push(f.data)}return{valid:!0,data:o}}else return n===we.date&&a===we.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Su extends tt{_parse(t){const{status:n,ctx:a}=this._processInputParams(t),o=(s,l)=>{if(Eb(s)||Eb(l))return He;const u=Qf(s.value,l.value);return u.valid?((Ab(s)||Ab(l))&&n.dirty(),{status:n.value,value:u.data}):(ge(a,{code:le.invalid_intersection_types}),He)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([s,l])=>o(s,l)):o(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}Su.create=(e,t,n)=>new Su({left:e,right:t,typeName:We.ZodIntersection,...Ze(n)});class Ri extends tt{_parse(t){const{status:n,ctx:a}=this._processInputParams(t);if(a.parsedType!==we.array)return ge(a,{code:le.invalid_type,expected:we.array,received:a.parsedType}),He;if(a.data.length<this._def.items.length)return ge(a,{code:le.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),He;!this._def.rest&&a.data.length>this._def.items.length&&(ge(a,{code:le.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...a.data].map((l,u)=>{const f=this._def.items[u]||this._def.rest;return f?f._parse(new Ia(a,l,a.path,u)):null}).filter(l=>!!l);return a.common.async?Promise.all(s).then(l=>kn.mergeArray(n,l)):kn.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new Ri({...this._def,rest:t})}}Ri.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ri({items:e,typeName:We.ZodTuple,rest:null,...Ze(t)})};class Cu extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:a}=this._processInputParams(t);if(a.parsedType!==we.object)return ge(a,{code:le.invalid_type,expected:we.object,received:a.parsedType}),He;const o=[],s=this._def.keyType,l=this._def.valueType;for(const u in a.data)o.push({key:s._parse(new Ia(a,u,a.path,u)),value:l._parse(new Ia(a,a.data[u],a.path,u)),alwaysSet:u in a.data});return a.common.async?kn.mergeObjectAsync(n,o):kn.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,a){return n instanceof tt?new Cu({keyType:t,valueType:n,typeName:We.ZodRecord,...Ze(a)}):new Cu({keyType:Aa.create(),valueType:t,typeName:We.ZodRecord,...Ze(n)})}}class Mb extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:a}=this._processInputParams(t);if(a.parsedType!==we.map)return ge(a,{code:le.invalid_type,expected:we.map,received:a.parsedType}),He;const o=this._def.keyType,s=this._def.valueType,l=[...a.data.entries()].map(([u,f],h)=>({key:o._parse(new Ia(a,u,a.path,[h,"key"])),value:s._parse(new Ia(a,f,a.path,[h,"value"]))}));if(a.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const f of l){const h=await f.key,m=await f.value;if(h.status==="aborted"||m.status==="aborted")return He;(h.status==="dirty"||m.status==="dirty")&&n.dirty(),u.set(h.value,m.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const f of l){const h=f.key,m=f.value;if(h.status==="aborted"||m.status==="aborted")return He;(h.status==="dirty"||m.status==="dirty")&&n.dirty(),u.set(h.value,m.value)}return{status:n.value,value:u}}}}Mb.create=(e,t,n)=>new Mb({valueType:t,keyType:e,typeName:We.ZodMap,...Ze(n)});class sl extends tt{_parse(t){const{status:n,ctx:a}=this._processInputParams(t);if(a.parsedType!==we.set)return ge(a,{code:le.invalid_type,expected:we.set,received:a.parsedType}),He;const o=this._def;o.minSize!==null&&a.data.size<o.minSize.value&&(ge(a,{code:le.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&a.data.size>o.maxSize.value&&(ge(a,{code:le.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const s=this._def.valueType;function l(f){const h=new Set;for(const m of f){if(m.status==="aborted")return He;m.status==="dirty"&&n.dirty(),h.add(m.value)}return{status:n.value,value:h}}const u=[...a.data.values()].map((f,h)=>s._parse(new Ia(a,f,a.path,h)));return a.common.async?Promise.all(u).then(f=>l(f)):l(u)}min(t,n){return new sl({...this._def,minSize:{value:t,message:Re.toString(n)}})}max(t,n){return new sl({...this._def,maxSize:{value:t,message:Re.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}sl.create=(e,t)=>new sl({valueType:e,minSize:null,maxSize:null,typeName:We.ZodSet,...Ze(t)});class Jf extends tt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Jf.create=(e,t)=>new Jf({getter:e,typeName:We.ZodLazy,...Ze(t)});class Tu extends tt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ge(n,{received:n.data,code:le.invalid_literal,expected:this._def.value}),He}return{status:"valid",value:t.data}}get value(){return this._def.value}}Tu.create=(e,t)=>new Tu({value:e,typeName:We.ZodLiteral,...Ze(t)});function A0(e,t){return new Li({values:e,typeName:We.ZodEnum,...Ze(t)})}class Li extends tt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),a=this._def.values;return ge(n,{expected:st.joinValues(a),received:n.parsedType,code:le.invalid_type}),He}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),a=this._def.values;return ge(n,{received:n.data,code:le.invalid_enum_value,options:a}),He}return ea(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Li.create(t,{...this._def,...n})}exclude(t,n=this._def){return Li.create(this.options.filter(a=>!t.includes(a)),{...this._def,...n})}}Li.create=A0;class ep extends tt{_parse(t){const n=st.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(t);if(a.parsedType!==we.string&&a.parsedType!==we.number){const o=st.objectValues(n);return ge(a,{expected:st.joinValues(o),received:a.parsedType,code:le.invalid_type}),He}if(this._cache||(this._cache=new Set(st.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const o=st.objectValues(n);return ge(a,{received:a.data,code:le.invalid_enum_value,options:o}),He}return ea(t.data)}get enum(){return this._def.values}}ep.create=(e,t)=>new ep({values:e,typeName:We.ZodNativeEnum,...Ze(t)});class Eu extends tt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==we.promise&&n.common.async===!1)return ge(n,{code:le.invalid_type,expected:we.promise,received:n.parsedType}),He;const a=n.parsedType===we.promise?n.data:Promise.resolve(n.data);return ea(a.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Eu.create=(e,t)=>new Eu({type:e,typeName:We.ZodPromise,...Ze(t)});class Di extends tt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===We.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:a}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:l=>{ge(a,l),l.fatal?n.abort():n.dirty()},get path(){return a.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const l=o.transform(a.data,s);if(a.common.async)return Promise.resolve(l).then(async u=>{if(n.value==="aborted")return He;const f=await this._def.schema._parseAsync({data:u,path:a.path,parent:a});return f.status==="aborted"?He:f.status==="dirty"||n.value==="dirty"?zs(f.value):f});{if(n.value==="aborted")return He;const u=this._def.schema._parseSync({data:l,path:a.path,parent:a});return u.status==="aborted"?He:u.status==="dirty"||n.value==="dirty"?zs(u.value):u}}if(o.type==="refinement"){const l=u=>{const f=o.refinement(u,s);if(a.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(a.common.async===!1){const u=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return u.status==="aborted"?He:(u.status==="dirty"&&n.dirty(),l(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(u=>u.status==="aborted"?He:(u.status==="dirty"&&n.dirty(),l(u.value).then(()=>({status:n.value,value:u.value}))))}if(o.type==="transform")if(a.common.async===!1){const l=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Lo(l))return He;const u=o.transform(l.value,s);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(l=>Lo(l)?Promise.resolve(o.transform(l.value,s)).then(u=>({status:n.value,value:u})):He);st.assertNever(o)}}Di.create=(e,t,n)=>new Di({schema:e,typeName:We.ZodEffects,effect:t,...Ze(n)});Di.createWithPreprocess=(e,t,n)=>new Di({schema:t,effect:{type:"preprocess",transform:e},typeName:We.ZodEffects,...Ze(n)});class nr extends tt{_parse(t){return this._getType(t)===we.undefined?ea(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}nr.create=(e,t)=>new nr({innerType:e,typeName:We.ZodOptional,...Ze(t)});class Ii extends tt{_parse(t){return this._getType(t)===we.null?ea(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ii.create=(e,t)=>new Ii({innerType:e,typeName:We.ZodNullable,...Ze(t)});class Au extends tt{_parse(t){const{ctx:n}=this._processInputParams(t);let a=n.data;return n.parsedType===we.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Au.create=(e,t)=>new Au({innerType:e,typeName:We.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ze(t)});class Ru extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),a={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return wu(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ar(a.common.issues)},input:a.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ar(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}Ru.create=(e,t)=>new Ru({innerType:e,typeName:We.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ze(t)});class Nb extends tt{_parse(t){if(this._getType(t)!==we.nan){const a=this._getOrReturnCtx(t);return ge(a,{code:le.invalid_type,expected:we.nan,received:a.parsedType}),He}return{status:"valid",value:t.data}}}Nb.create=e=>new Nb({typeName:We.ZodNaN,...Ze(e)});class R0 extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),a=n.data;return this._def.type._parse({data:a,path:n.path,parent:n})}unwrap(){return this._def.type}}class lm extends tt{_parse(t){const{status:n,ctx:a}=this._processInputParams(t);if(a.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?He:s.status==="dirty"?(n.dirty(),zs(s.value)):this._def.out._parseAsync({data:s.value,path:a.path,parent:a})})();{const o=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?He:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:a.path,parent:a})}}static create(t,n){return new lm({in:t,out:n,typeName:We.ZodPipeline})}}class Lu extends tt{_parse(t){const n=this._def.innerType._parse(t),a=o=>(Lo(o)&&(o.value=Object.freeze(o.value)),o);return wu(n)?n.then(o=>a(o)):a(n)}unwrap(){return this._def.innerType}}Lu.create=(e,t)=>new Lu({innerType:e,typeName:We.ZodReadonly,...Ze(t)});var We;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(We||(We={}));const b=Aa.create,ne=Ei.create;Ai.create;const ze=xu.create,cm=Do.create,un=Xf.create;Wr.create;const ue=Ra.create,R=Ut.create,ta=Pu.create,L0=sm.create;Su.create;Ri.create;const Tt=Cu.create,Qe=Tu.create,rt=Li.create;Eu.create;nr.create;Ii.create;const tp={string:(e=>Aa.create({...e,coerce:!0})),number:(e=>Ei.create({...e,coerce:!0})),boolean:(e=>xu.create({...e,coerce:!0})),bigint:(e=>Ai.create({...e,coerce:!0})),date:(e=>Do.create({...e,coerce:!0}))};var Ca;(function(e){e.STRING="string",e.DATE="date",e.DATETIME="datetime",e.INTEGER="integer",e.FLOAT="float",e.BOOLEAN="boolean",e.UUID="uuid",e.JSON="json"})(Ca||(Ca={}));const EE=rt(["CASCADE","RESTRICT","NO ACTION"]),AE=rt(["CASCADE","SET NULL","SET DEFAULT","RESTRICT","NO ACTION"]),RE=rt([Ca.STRING,Ca.DATE,Ca.DATETIME,Ca.INTEGER,Ca.FLOAT,Ca.BOOLEAN,Ca.UUID,Ca.JSON]),D0=R({referenceTable:b().min(1,"Target table cannot be empty"),referenceColumn:b().min(1,"Target column cannot be empty"),onDelete:AE,onUpdate:EE}),I0=R({columnName:b().min(1,"Column name cannot be empty").max(64,"Column name must be less than 64 characters"),type:ta([RE,b()]),defaultValue:b().optional(),isPrimaryKey:ze().optional(),isNullable:ze(),isUnique:ze(),foreignKey:D0.optional()}),M0=R({tableName:b().min(1,"Table name cannot be empty").max(64,"Table name must be less than 64 characters"),columns:ue(I0).min(1,"At least one column is required"),recordCount:ne().optional(),createdAt:b().optional(),updatedAt:b().optional()}),LE=R({functionName:b(),functionDef:b(),kind:b()}),DE=R({tableName:b(),indexName:b(),indexDef:b(),isUnique:ze().nullable(),isPrimary:ze().nullable()}),IE=R({tableName:b(),policyName:b(),cmd:b(),roles:ue(b()),qual:b().nullable(),withCheck:b().nullable()}),ME=R({tableName:b(),triggerName:b(),actionTiming:b(),eventManipulation:b(),actionOrientation:b(),actionCondition:b().nullable(),actionStatement:b()});M0.pick({tableName:!0,columns:!0}).extend({rlsEnabled:ze().default(!0)});M0.pick({tableName:!0,columns:!0}).extend({message:b(),autoFields:ue(b()),nextActions:b()});R({addColumns:ue(I0.omit({foreignKey:!0})).optional(),dropColumns:ue(b()).optional(),updateColumns:ue(R({columnName:b(),defaultValue:b().optional(),newColumnName:b().min(1,"New column name cannot be empty").max(64,"New column name must be less than 64 characters").optional()})).optional(),addForeignKeys:ue(R({columnName:b().min(1,"Column name is required for adding foreign key"),foreignKey:D0})).optional(),dropForeignKeys:ue(b()).optional(),renameTable:R({newTableName:b().min(1,"New table name cannot be empty").max(64,"New table name must be less than 64 characters")}).optional()});R({message:b(),tableName:b(),operations:ue(b())});R({message:b(),tableName:b(),nextActions:b()});R({query:b().min(1,"Query is required"),params:ue(un()).optional()});R({rows:ue(Tt(b(),un())),rowCount:ne().nullable(),fields:ue(R({name:b(),dataTypeID:ne()})).optional()});R({tables:ue(b()).optional(),format:rt(["sql","json"]).default("sql"),includeData:ze().default(!0),includeFunctions:ze().default(!1),includeSequences:ze().default(!1),includeViews:ze().default(!1),rowLimit:ne().int().positive().max(1e4).default(1e3)});const NE=R({timestamp:b(),tables:Tt(b(),R({schema:ue(R({columnName:b(),dataType:b(),characterMaximumLength:ne().nullable(),isNullable:b(),columnDefault:b().nullable()})),indexes:ue(R({indexname:b(),indexdef:b(),isUnique:ze().nullable(),isPrimary:ze().nullable()})),foreignKeys:ue(R({constraintName:b(),columnName:b(),foreignTableName:b(),foreignColumnName:b(),deleteRule:b().nullable(),updateRule:b().nullable()})),rlsEnabled:ze().optional(),policies:ue(R({policyname:b(),cmd:b(),roles:ue(b()),qual:b().nullable(),withCheck:b().nullable()})),triggers:ue(R({triggerName:b(),actionTiming:b(),eventManipulation:b(),actionOrientation:b(),actionCondition:b().nullable(),actionStatement:b(),newTable:b().nullable(),oldTable:b().nullable()})),rows:ue(Tt(b(),un())).optional(),recordCount:ne().optional()})),functions:ue(R({functionName:b(),functionDef:b(),kind:b()})),sequences:ue(R({sequenceName:b(),startValue:b(),increment:b(),minValue:b().nullable(),maxValue:b().nullable(),cycle:b()})),views:ue(R({viewName:b(),definition:b()}))});R({format:rt(["sql","json"]),data:ta([b(),NE]),timestamp:b()});R({truncate:ta([ze(),b().transform(e=>{if(e==="true")return!0;if(e==="false")return!1;throw new Error("Invalid boolean string")})]).default(!1)});R({success:ze(),message:b(),filename:b(),tables:ue(b()),rowsImported:ne(),fileSize:ne()});R({table:b().min(1,"Table name is required"),upsertKey:b().optional()});R({success:ze(),message:b(),table:b(),rowsAffected:ne(),totalRecords:ne(),filename:b()});R({functions:ue(LE)});R({indexes:ue(DE)});R({policies:ue(IE)});R({triggers:ue(ME)});const OE=R({id:b(),key:b(),isActive:ze(),isReserved:ze(),lastUsedAt:b().nullable(),expiresAt:b().nullable(),createdAt:b(),updatedAt:b()});R({secrets:ue(OE)});R({key:b(),value:b()});R({key:b().regex(/^[A-Z0-9_]+$/,"Use uppercase letters, numbers, and underscores only"),value:b().min(1,"Value is required")});R({success:Qe(!0),message:b(),id:b()});R({success:Qe(!0),message:b()});R({success:Qe(!0),message:b()});const jE=R({key:b(),bucket:b(),size:ne(),mimeType:b().optional(),uploadedAt:b(),url:b()}),UE=R({name:b(),public:ze(),createdAt:b()});R({id:b().uuid(),maxFileSizeMb:ne().int().positive(),createdAt:b(),updatedAt:b()});R({bucketName:b().min(1,"Bucket name cannot be empty"),isPublic:ze().default(!0)});R({isPublic:ze()});R({objects:ue(jE),pagination:R({offset:ne(),limit:ne(),total:ne()})});R({filename:b().min(1,"Filename cannot be empty"),contentType:b().optional(),size:ne().optional()});R({method:rt(["presigned","direct"]),uploadUrl:b(),fields:Tt(b()).optional(),key:b(),confirmRequired:ze(),confirmUrl:b().optional(),expiresAt:cm().optional()});R({expiresIn:ne().optional().default(3600)});R({method:rt(["presigned","direct"]),url:b(),expiresAt:cm().optional(),headers:Tt(b()).optional()});R({size:ne(),contentType:b().optional(),etag:b().optional()});R({maxFileSizeMb:ne().int().min(1,"Must be at least 1 MB").max(200,"Must be at most 200 MB")});const rd=b().uuid("Invalid user ID format"),Ma=b().email("Invalid email format").toLowerCase().trim(),um=b(),BE=b().min(1,"Name is required").max(100,"Name must be less than 100 characters").trim(),FE=rt(["anon","authenticated","project_admin"]),Ob=rt(["code","link"]),N0=R({name:b().optional(),avatar_url:b().url().optional()}).passthrough(),Fo=R({id:rd,email:Ma,emailVerified:ze(),providers:ue(b()).optional(),createdAt:b(),updatedAt:b(),profile:N0.nullable(),metadata:Tt(un()).nullable()}),id=rt(["google","github","discord","linkedin","facebook","instagram","tiktok","apple","x","spotify","microsoft"]);R({provider:id,redirectUri:b().url().optional()});const dm=R({id:b().uuid(),provider:id,clientId:b().optional(),scopes:ue(b()).optional(),redirectUri:b().optional(),useSharedKey:ze(),createdAt:b(),updatedAt:b()}),zE=/^(?:(?:https?:\/\/)(?:(?:\*\.)?[^\s/:?#]+|\[[0-9A-Fa-f:.]+\])(?::\d+)?(?:\/[^\s]*)?|(?!(?:https?|javascript|data|file|vbscript):)[a-zA-Z][a-zA-Z0-9+.-]*:(?:\/\/[^\s/]+(?:\/[^\s]*)?|\/[^\s]*))$/i,O0=R({id:b().uuid(),requireEmailVerification:ze(),passwordMinLength:ne().min(4).max(128),requireNumber:ze(),requireLowercase:ze(),requireUppercase:ze(),requireSpecialChar:ze(),verifyEmailMethod:Ob,resetPasswordMethod:Ob,allowedRedirectUrls:ue(b().regex(zE,{message:"Invalid URL or wildcard URL"})).optional().nullable(),createdAt:b(),updatedAt:b()});R({sub:rd,email:Ma,role:FE,iat:ne().optional(),exp:ne().optional()});const j0=b().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Key must contain only lowercase letters, numbers, hyphens, and underscores"),hm=R({id:b().uuid(),key:j0,name:b().min(1),discoveryEndpoint:b().url(),clientId:b().min(1),createdAt:b(),updatedAt:b()}),VE=R({limit:b().optional(),offset:b().optional()});R({email:Ma,password:um,name:BE.optional(),redirectTo:b().url().optional()});R({email:Ma,password:um});R({refreshToken:b().min(1,"refreshToken is required")});R({code:b()});VE.extend({search:b().optional()}).optional();R({userIds:ue(rd).min(1,"At least one user ID is required")});R({profile:Tt(un())});R({email:Ma,redirectTo:b().url().optional()});R({email:Ma,otp:b().regex(/^\d{6}$/,"OTP code must be a 6-digit numeric code")});R({email:Ma,redirectTo:b().url().optional()});R({email:Ma,code:b().regex(/^\d{6}$/,"Reset password code must be a 6-digit numeric code")});R({newPassword:um,otp:b().min(1,"OTP/token is required")});R({user:Fo.optional(),accessToken:b().nullable(),requireEmailVerification:ze().optional(),csrfToken:b().nullable().optional(),refreshToken:b().optional()});R({user:Fo,accessToken:b(),csrfToken:b().nullable().optional(),refreshToken:b().optional()});R({user:Fo,accessToken:b(),csrfToken:b().nullable().optional(),refreshToken:b().optional()});R({accessToken:b(),user:Fo,csrfToken:b().optional(),refreshToken:b().optional()});R({token:b(),expiresAt:b().datetime()});R({message:b()});R({user:Fo});R({id:rd,profile:N0.nullable()});R({data:ue(Fo),pagination:R({offset:ne(),limit:ne(),total:ne()})});R({message:b(),deletedCount:ne().int().nonnegative()});R({authUrl:b().url()});dm.omit({id:!0,createdAt:!0,updatedAt:!0}).extend({clientSecret:b().optional()});dm.omit({id:!0,provider:!0,createdAt:!0,updatedAt:!0}).extend({clientSecret:b().optional()}).partial();const U0=/^[A-Za-z0-9._~-]+$/;R({redirect_uri:b().url().optional(),code_challenge:b().min(43,"Code challenge must be at least 43 characters").max(128,"Code challenge must be at most 128 characters").regex(U0,"Code challenge must be base64url encoded")});R({code:b().min(1,"Exchange code is required"),code_verifier:b().min(43,"Code verifier must be at least 43 characters").max(128,"Code verifier must be at most 128 characters").regex(U0,"Code verifier must be base64url encoded")});R({data:ue(dm),count:ne()});O0.omit({id:!0,createdAt:!0,updatedAt:!0}).partial();const $E=R({oAuthProviders:ue(id),customOAuthProviders:ue(j0),...O0.omit({id:!0,updatedAt:!0,createdAt:!0,allowedRedirectUrls:!0}).shape});R({error:b(),message:b(),statusCode:ne().int(),nextActions:b().optional()});hm.omit({id:!0,createdAt:!0,updatedAt:!0}).extend({clientSecret:b().min(1,"Client secret is required")});hm.omit({id:!0,key:!0,createdAt:!0,updatedAt:!0}).extend({clientSecret:b().min(1).optional()}).partial();R({data:ue(hm),count:ne()});const B0=rt(["system","user"]),F0=R({id:b().uuid(),pattern:b().min(1),description:b().nullable(),webhookUrls:ue(b().url()).nullable(),enabled:ze(),createdAt:b().datetime(),updatedAt:b().datetime()}),HE=R({id:b().uuid(),eventName:b().min(1),channelId:b().uuid().nullable(),channelName:b().min(1),payload:Tt(b(),un()),senderType:B0,senderId:b().uuid().nullable(),wsAudienceCount:ne().int().min(0),whAudienceCount:ne().int().min(0),whDeliveredCount:ne().int().min(0),createdAt:b().datetime()}),WE=R({retentionDays:ne().int().positive().nullable()});R({channel:b().min(1)});R({channel:b().min(1)});R({channel:b().min(1),event:b().min(1),payload:Tt(b(),un())});L0("ok",[R({ok:Qe(!0),channel:b().min(1)}),R({ok:Qe(!1),channel:b().min(1),error:R({code:b().min(1),message:b().min(1)})})]);R({channel:b().optional(),code:b().min(1),message:b().min(1)});R({messageId:b().uuid(),channel:b().min(1),eventName:b().min(1),payload:Tt(b(),un())});const GE=R({channel:b().optional(),messageId:b().uuid(),senderType:B0,senderId:b().uuid().optional(),timestamp:b().datetime()});R({meta:GE}).passthrough();R({pattern:b().min(1,"Channel pattern is required"),description:b().optional(),webhookUrls:ue(b().url()).optional(),enabled:ze().optional().default(!0)});R({pattern:b().min(1).optional(),description:b().optional(),webhookUrls:ue(b().url()).optional(),enabled:ze().optional()});ue(F0);R({message:b()});R({channelId:b().uuid().optional(),eventName:b().optional(),limit:tp.number().int().min(1).max(1e3).optional().default(100),offset:tp.number().int().min(0).optional().default(0)});ue(HE);R({channelId:b().uuid().optional(),since:tp.date().optional()});R({totalMessages:ne().int().min(0),whDeliveryRate:ne().min(0).max(1),topEvents:ue(R({eventName:b(),count:ne().int().min(0)})),retentionDays:WE.shape.retentionDays});const jb=R({policyName:b(),tableName:b(),command:b(),roles:ue(b()),using:b().nullable(),withCheck:b().nullable()}),KE=R({subscribe:R({policies:ue(jb)}),publish:R({policies:ue(jb)})}),qE=$E,YE=R({tables:ue(R({tableName:b(),recordCount:ne()})),totalSizeInGB:ne(),hint:b().optional()}),ZE=UE.extend({objectCount:ne().optional()}),XE=R({buckets:ue(ZE),totalSizeInGB:ne()}),QE=R({slug:b(),name:b(),description:b().nullable(),status:b()}),JE=R({models:ue(R({inputModality:ue(b()),outputModality:ue(b()),modelId:b()}))}),eA=R({channels:ue(F0),permissions:KE});R({auth:qE,database:YE,storage:XE,aiIntegration:JE.optional(),functions:ue(QE),realtime:eA.optional(),version:b().optional()});const tA=R({host:b(),port:ne(),database:b(),user:b(),password:b(),sslmode:b()});R({connectionURL:b(),parameters:tA});R({databasePassword:b()});R({apiKey:b()});R({projectId:b().nullable()});const Io=rt(["text","image","audio"]),nA=R({inputModality:ue(Io).min(1),outputModality:ue(Io).min(1),provider:b(),modelId:b(),systemPrompt:b().optional()}),z0=nA.extend({id:b().uuid()});z0.extend({usageStats:R({totalInputTokens:ne(),totalOutputTokens:ne(),totalTokens:ne(),totalImageCount:ne(),totalRequests:ne()}).optional()});const aA=R({configId:b().uuid(),inputTokens:ne().int().optional(),outputTokens:ne().int().optional(),imageCount:ne().int().optional(),imageResolution:b().optional()}),rA=aA.extend({id:b().uuid(),createdAt:cm(),modelId:b().nullable().optional(),model:b().nullable(),provider:b().nullable(),inputModality:ue(Io).nullable(),outputModality:ue(Io).nullable()});R({totalInputTokens:ne(),totalOutputTokens:ne(),totalTokens:ne(),totalImageCount:ne(),totalRequests:ne()});const iA=R({type:Qe("text"),text:b()}),oA=R({type:Qe("image_url"),image_url:R({url:b(),detail:rt(["auto","low","high"]).optional()})}),sA=R({type:Qe("input_audio"),input_audio:R({data:b(),format:rt(["wav","mp3","aiff","aac","ogg","flac","m4a"])})}),lA=R({type:Qe("file"),file:R({filename:b(),file_data:b()})}),cA=ta([iA,oA,sA,lA]),uA=R({name:b(),description:b().optional(),parameters:Tt(un()).optional()}),dA=R({type:Qe("function"),function:uA}),hA=ta([rt(["auto","none","required"]),R({type:Qe("function"),function:R({name:b()})})]),V0=R({id:b(),type:Qe("function"),function:R({name:b(),arguments:b()})}),fA=R({role:rt(["user","assistant","system","tool"]),content:ta([b(),ue(cA)]).nullable(),images:ue(R({url:b()})).optional(),tool_calls:ue(V0).optional(),tool_call_id:b().optional()}),pA=R({enabled:ze(),engine:rt(["native","exa"]).optional(),maxResults:ne().min(1).max(10).optional(),searchPrompt:b().optional()}),mA=R({enabled:ze(),pdf:R({engine:rt(["pdf-text","mistral-ocr","native"]).optional()}).optional()});R({model:b(),messages:ue(fA),temperature:ne().min(0).max(2).optional(),maxTokens:ne().positive().optional(),topP:ne().min(0).max(1).optional(),stream:ze().optional(),webSearch:pA.optional(),fileParser:mA.optional(),thinking:ze().optional(),tools:ue(dA).optional(),toolChoice:hA.optional(),parallelToolCalls:ze().optional()});const gA=R({type:Qe("url_citation"),urlCitation:R({url:b(),title:b().optional(),content:b().optional(),startIndex:ne().optional(),endIndex:ne().optional()})}),yA=R({type:Qe("file"),file:R({filename:b(),parsedContent:b().optional(),metadata:Tt(un()).optional()})}),vA=ta([gA,yA]);R({text:b(),tool_calls:ue(V0).optional(),annotations:ue(vA).optional(),metadata:R({model:b(),usage:R({promptTokens:ne().optional(),completionTokens:ne().optional(),totalTokens:ne().optional()}).optional()}).optional()});R({model:b(),input:ta([b(),ue(b())]),encoding_format:rt(["float","base64"]).optional(),dimensions:ne().int().min(0).optional()});const bA=R({object:Qe("embedding"),embedding:ta([ue(ne()),b()]),index:ne()});R({object:Qe("list"),data:ue(bA),metadata:R({model:b(),usage:R({promptTokens:ne().optional(),totalTokens:ne().optional()}).optional()}).optional()});R({model:b(),prompt:b(),images:ue(R({url:b()})).optional()});R({text:b().optional(),images:ue(R({type:Qe("imageUrl"),imageUrl:b()})),metadata:R({model:b(),usage:R({promptTokens:ne().optional(),completionTokens:ne().optional(),totalTokens:ne().optional()}).optional()}).optional()});R({id:b(),inputModality:ue(Io).min(1),outputModality:ue(Io).min(1),provider:b(),modelId:b(),inputPrice:ne().min(0).optional(),outputPrice:ne().min(0).optional()});z0.omit({id:!0});R({systemPrompt:b().nullable()});R({records:ue(rA),total:ne()});R({startDate:b().datetime().optional(),endDate:b().datetime().optional(),limit:b().regex(/^\d+$/).default("50"),offset:b().regex(/^\d+$/).default("0")});R({configId:b().uuid().optional(),startDate:b().datetime().optional(),endDate:b().datetime().optional()});const kA=rt(["byok","cloud","env","unconfigured"]);R({keySource:kA,hasByokKey:ze(),maskedKey:b().optional()});R({apiKey:b().min(1,"API key is required")});const $0=R({id:b(),actor:b(),action:b(),module:b(),details:Tt(un()).nullable(),ipAddress:b().nullable(),createdAt:b(),updatedAt:b()});R({id:b(),name:b(),token:b()});const _A=R({id:b(),eventMessage:b(),timestamp:b(),body:Tt(b(),un()),source:b().optional()});R({source:b(),count:ne(),lastActivity:b()});const wA=R({level:b(),message:b()});R({deploymentId:b(),status:rt(["pending","success","failed"]),logs:ue(wA),createdAt:b()});R({limit:ne().default(100),offset:ne().default(0),actor:b().optional(),action:b().optional(),module:b().optional(),startDate:b().optional(),endDate:b().optional()});R({data:ue($0),pagination:R({limit:ne(),offset:ne(),total:ne()})});R({days:ne().default(7)});R({totalLogs:ne(),uniqueActors:ne(),uniqueModules:ne(),actionsByModule:Tt(ne()),recentActivity:ue($0)});R({daysToKeep:ne().default(90)});R({message:b(),deleted:ne()});R({logs:ue(_A),total:ne()});const H0=R({id:b(),slug:b(),name:b(),description:b().nullable(),code:b(),status:rt(["draft","active","error"]),createdAt:b(),updatedAt:b(),deployedAt:b().nullable()});R({name:b().min(1,"Name is required"),slug:b().regex(/^[a-zA-Z0-9_-]+$/,"Invalid slug format - must be alphanumeric with hyphens or underscores only").optional(),code:b().min(1),description:b().optional(),status:rt(["draft","active"]).optional().default("active")});R({name:b().optional(),code:b().optional(),description:b().optional(),status:rt(["draft","active"]).optional()});R({functions:ue(H0),runtime:R({status:rt(["running","unavailable"])}),deploymentUrl:b().nullable().optional()});const xA=R({id:b(),status:rt(["success","failed"]),url:b().nullable(),buildLogs:ue(b()).optional()});R({success:ze(),function:H0,deployment:xA.nullable().optional()});const PA=R({type:Qe("APP_ROUTE_CHANGE"),path:b()}),SA=R({type:Qe("AUTH_SUCCESS")}),CA=R({type:Qe("AUTH_ERROR"),message:b()}),TA=R({type:Qe("MCP_CONNECTION_STATUS"),connected:ze(),toolName:b(),timestamp:ta([ne(),b()])}),EA=R({type:Qe("SHOW_ONBOARDING_OVERLAY")}),AA=R({type:Qe("SHOW_SETTINGS_OVERLAY")}),RA=R({type:Qe("ONBOARDING_SUCCESS")}),LA=R({type:Qe("NAVIGATE_TO_USAGE")}),DA=R({type:Qe("SHOW_CONTACT_MODAL")}),IA=R({type:Qe("SHOW_CONNECT_OVERLAY")}),MA=R({type:Qe("SHOW_PLAN_MODAL")}),NA=R({type:Qe("AUTHORIZATION_CODE"),code:b()}),OA=R({type:Qe("ROUTE_CHANGE"),path:b()}),jA=R({type:Qe("REQUEST_PROJECT_INFO")}),UA=R({type:Qe("PROJECT_INFO"),name:b(),instanceType:b(),region:b(),latestVersion:b().optional()}),BA=R({type:Qe("REQUEST_INSTANCE_INFO")}),FA=R({type:Qe("INSTANCE_INFO"),currentInstanceType:b(),planName:b(),computeCredits:ne(),currentOrgComputeCost:ne(),instanceTypes:ue(R({id:b(),name:b(),cpu:b(),ram:b(),pricePerHour:ne(),pricePerMonth:ne()})),projects:ue(R({name:b(),instanceType:b(),monthlyCost:ne(),isCurrent:ze(),status:b()}))}),zA=R({type:Qe("REQUEST_INSTANCE_TYPE_CHANGE"),instanceType:b()}),VA=R({type:Qe("INSTANCE_TYPE_CHANGE_RESULT"),success:ze(),instanceType:b().optional(),error:b().optional()});L0("type",[PA,SA,CA,TA,EA,AA,RA,LA,DA,IA,MA,NA,OA,jA,UA,BA,FA,zA,VA]);rt(["db","storage","functions","auth","ai","realtime"]).describe(`
13
- SDK feature categories:
14
-
15
- - "db" - Database operations
16
- - "storage" - File storage
17
- - "functions" - Edge functions
18
- - "auth" - User authentication
19
- - "ai" - AI features
20
- - "realtime" - Real-time WebSockets
21
- `);rt(["typescript","swift","kotlin","rest-api"]).describe(`
22
- SDK languages:
23
-
24
- - "typescript" - JavaScript/TypeScript SDK
25
- - "swift" - Swift SDK
26
- - "kotlin" - Kotlin SDK
27
- - "rest-api" - REST API
28
- `);rt(["instructions","auth-sdk","db-sdk","storage-sdk","functions-sdk","ai-integration-sdk","real-time","deployment"]).describe(`
29
- Documentation type:
30
- "instructions" (essential backend setup - use FIRST),
31
- "db-sdk" (database operations),
32
- "storage-sdk" (file storage),
33
- "functions-sdk" (edge functions),
34
- "auth-sdk" (direct SDK methods for custom auth flows),
35
- "ai-integration-sdk" (AI features),
36
- "real-time" (real-time pub/sub through WebSockets),
37
- "deployment" (deploy frontend applications via MCP tool)
38
- `);const hf=ta([Ma,ue(Ma).min(1,"At least one email is required").max(50,"Maximum 50 recipients allowed")]);R({to:hf,subject:b().trim().min(1,"Subject is required").max(500,"Subject too long"),html:b().trim().min(1,"HTML content is required"),cc:hf.optional(),bcc:hf.optional(),from:b().trim().max(100,"From name too long").optional(),replyTo:b().email("Reply-To must be a valid email").optional()});R({});const $A=rt(["WAITING","UPLOADING","QUEUED","BUILDING","READY","ERROR","CANCELED"]),HA=R({id:b().uuid(),providerDeploymentId:b().nullable(),provider:b(),status:$A,url:b().nullable(),metadata:Tt(un()).nullable(),createdAt:b().datetime(),updatedAt:b().datetime()}),WA=R({buildCommand:b().nullable().optional(),outputDirectory:b().nullable().optional(),installCommand:b().nullable().optional(),devCommand:b().nullable().optional(),rootDirectory:b().nullable().optional()}),GA=R({key:b(),value:b()});R({id:b().uuid(),uploadUrl:b().url(),uploadFields:Tt(b())});R({projectSettings:WA.optional(),envVars:ue(GA).optional(),meta:Tt(b()).optional()});R({data:ue(HA),pagination:R({limit:ne(),offset:ne(),total:ne()})});const KA=R({id:b(),key:b(),type:rt(["plain","encrypted","secret","sensitive","system"]),updatedAt:ne().optional()}),qA=R({id:b(),key:b(),value:b(),type:rt(["plain","encrypted","secret","sensitive","system"]),updatedAt:ne().optional()});R({envVars:ue(KA)});R({envVar:qA});const YA=R({key:b().trim().min(1,"key is required"),value:b()});R({envVars:ue(YA).min(1)}).superRefine(({envVars:e},t)=>{const n=new Map;e.forEach((a,o)=>{if(n.get(a.key)!==void 0){t.addIssue({code:le.custom,message:"duplicate environment variable key",path:["envVars",o,"key"]});return}n.set(a.key,o)})});R({success:Qe(!0),message:b()});R({success:Qe(!0),message:b(),count:ne().int().positive()});R({success:Qe(!0),message:b()});R({slug:b().trim().min(3,"slug must be at least 3 characters").max(63,"slug must be at most 63 characters").regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,"slug must be lowercase alphanumeric with hyphens, not starting or ending with hyphen").nullable()});R({success:ze(),slug:b().nullable(),domain:b().nullable()});R({currentDeploymentId:b().uuid().nullable(),defaultDomainUrl:b().nullable(),customDomainUrl:b().nullable()});const ZA=R({type:b(),domain:b(),value:b()}),XA=R({domain:b(),apexDomain:b(),verified:ze(),misconfigured:ze(),verification:ue(ZA),cnameTarget:b().nullable(),aRecordValue:b().nullable()});R({domain:b().trim().min(1,"Domain is required").regex(/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,}$/i,"Invalid domain format (e.g. myapp.com or www.myapp.com)").refine(e=>!e.toLowerCase().endsWith(".insforge.site"),{message:"Domains ending with .insforge.site are reserved by InsForge"})});R({domains:ue(XA)});const QA=R({id:b().uuid(),name:b(),cronSchedule:b(),functionUrl:b().url(),httpMethod:rt(["GET","POST","PUT","PATCH","DELETE"]),headers:Tt(b()).nullable(),body:ta([b(),Tt(un())]).nullable(),cronJobId:b().nullable(),lastExecutedAt:b().datetime().nullable(),isActive:ze().default(!0),nextRun:b().datetime().nullable(),createdAt:b().datetime(),updatedAt:b().datetime()}),JA=R({id:b().uuid(),scheduleId:b().uuid(),executedAt:b().datetime(),statusCode:ne().int(),success:ze(),durationMs:ne().int(),message:b().nullable()}),W0=b().refine(e=>{const t=e.split(" ");return t.length===5||t.length===6},{message:'Invalid cron schedule format. Use 5 or 6 parts (e.g., "* * * * *").'});R({name:b().min(3,"Schedule name must be at least 3 characters long"),cronSchedule:W0,functionUrl:b().url("The function URL must be a valid URL."),httpMethod:rt(["GET","POST","PUT","PATCH","DELETE"]),headers:Tt(b()).optional().describe("Header values can reference secrets using ${{secrets.KEY_NAME}} syntax."),body:Tt(un()).optional().describe("The JSON body to send with the request.")});R({name:b().min(3,"Schedule name must be at least 3 characters long").optional(),cronSchedule:W0.optional(),functionUrl:b().url("The function URL must be a valid URL.").optional(),httpMethod:rt(["GET","POST","PUT","PATCH","DELETE"]).optional(),headers:Tt(b()).optional().describe("Header values can reference secrets using ${{secrets.KEY_NAME}} syntax."),body:Tt(un()).optional().describe("The JSON body to send with the request."),isActive:ze().optional().describe("Enable or disable the schedule.")});ue(QA);const e3=JA;R({logs:ue(e3),totalCount:ne().int().nonnegative(),limit:ne().int().positive(),offset:ne().int().nonnegative()});R({id:b().uuid(),cronJobId:b(),message:b()});R({id:b().uuid(),cronJobId:b().optional(),message:b()});R({message:b()});var Zt={},mo={},go={},yo={},vo={},bo={},t3=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Mo=t3();const n3=Mo.fetch,a3=Mo.fetch.bind(Mo),r3=Mo.Headers,i3=Mo.Request,o3=Mo.Response,s3=Object.freeze(Object.defineProperty({__proto__:null,Headers:r3,Request:i3,Response:o3,default:a3,fetch:n3},Symbol.toStringTag,{value:"Module"})),l3=PC(s3);var zc={},Ub;function G0(){if(Ub)return zc;Ub=1,Object.defineProperty(zc,"__esModule",{value:!0});class e extends Error{constructor(n){super(n.message),this.name="PostgrestError",this.details=n.details,this.hint=n.hint,this.code=n.code}}return zc.default=e,zc}var Bb;function K0(){if(Bb)return bo;Bb=1;var e=bo&&bo.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(bo,"__esModule",{value:!0});const t=e(l3),n=e(G0());class a{constructor(s){var l,u;this.shouldThrowOnError=!1,this.method=s.method,this.url=s.url,this.headers=new Headers(s.headers),this.schema=s.schema,this.body=s.body,this.shouldThrowOnError=(l=s.shouldThrowOnError)!==null&&l!==void 0?l:!1,this.signal=s.signal,this.isMaybeSingle=(u=s.isMaybeSingle)!==null&&u!==void 0?u:!1,s.fetch?this.fetch=s.fetch:typeof fetch>"u"?this.fetch=t.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(s,l){return this.headers=new Headers(this.headers),this.headers.set(s,l),this}then(s,l){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const u=this.fetch;let f=u(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async h=>{var m,y,v,_;let x=null,S=null,C=null,D=h.status,M=h.statusText;if(h.ok){if(this.method!=="HEAD"){const z=await h.text();z===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((m=this.headers.get("Accept"))===null||m===void 0)&&m.includes("application/vnd.pgrst.plan+text"))?S=z:S=JSON.parse(z))}const A=(y=this.headers.get("Prefer"))===null||y===void 0?void 0:y.match(/count=(exact|planned|estimated)/),B=(v=h.headers.get("content-range"))===null||v===void 0?void 0:v.split("/");A&&B&&B.length>1&&(C=parseInt(B[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(S)&&(S.length>1?(x={code:"PGRST116",details:`Results contain ${S.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},S=null,C=null,D=406,M="Not Acceptable"):S.length===1?S=S[0]:S=null)}else{const A=await h.text();try{x=JSON.parse(A),Array.isArray(x)&&h.status===404&&(S=[],x=null,D=200,M="OK")}catch{h.status===404&&A===""?(D=204,M="No Content"):x={message:A}}if(x&&this.isMaybeSingle&&(!((_=x?.details)===null||_===void 0)&&_.includes("0 rows"))&&(x=null,D=200,M="OK"),x&&this.shouldThrowOnError)throw new n.default(x)}return{error:x,data:S,count:C,status:D,statusText:M}});return this.shouldThrowOnError||(f=f.catch(h=>{var m,y,v;return{error:{message:`${(m=h?.name)!==null&&m!==void 0?m:"FetchError"}: ${h?.message}`,details:`${(y=h?.stack)!==null&&y!==void 0?y:""}`,hint:"",code:`${(v=h?.code)!==null&&v!==void 0?v:""}`},data:null,count:null,status:0,statusText:""}})),f.then(s,l)}returns(){return this}overrideTypes(){return this}}return bo.default=a,bo}var Fb;function q0(){if(Fb)return vo;Fb=1;var e=vo&&vo.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(vo,"__esModule",{value:!0});const t=e(K0());class n extends t.default{select(o){let s=!1;const l=(o??"*").split("").map(u=>/\s/.test(u)&&!s?"":(u==='"'&&(s=!s),u)).join("");return this.url.searchParams.set("select",l),this.headers.append("Prefer","return=representation"),this}order(o,{ascending:s=!0,nullsFirst:l,foreignTable:u,referencedTable:f=u}={}){const h=f?`${f}.order`:"order",m=this.url.searchParams.get(h);return this.url.searchParams.set(h,`${m?`${m},`:""}${o}.${s?"asc":"desc"}${l===void 0?"":l?".nullsfirst":".nullslast"}`),this}limit(o,{foreignTable:s,referencedTable:l=s}={}){const u=typeof l>"u"?"limit":`${l}.limit`;return this.url.searchParams.set(u,`${o}`),this}range(o,s,{foreignTable:l,referencedTable:u=l}={}){const f=typeof u>"u"?"offset":`${u}.offset`,h=typeof u>"u"?"limit":`${u}.limit`;return this.url.searchParams.set(f,`${o}`),this.url.searchParams.set(h,`${s-o+1}`),this}abortSignal(o){return this.signal=o,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:o=!1,verbose:s=!1,settings:l=!1,buffers:u=!1,wal:f=!1,format:h="text"}={}){var m;const y=[o?"analyze":null,s?"verbose":null,l?"settings":null,u?"buffers":null,f?"wal":null].filter(Boolean).join("|"),v=(m=this.headers.get("Accept"))!==null&&m!==void 0?m:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${h}; for="${v}"; options=${y};`),h==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(o){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${o}`),this}}return vo.default=n,vo}var zb;function fm(){if(zb)return yo;zb=1;var e=yo&&yo.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(yo,"__esModule",{value:!0});const t=e(q0());class n extends t.default{eq(o,s){return this.url.searchParams.append(o,`eq.${s}`),this}neq(o,s){return this.url.searchParams.append(o,`neq.${s}`),this}gt(o,s){return this.url.searchParams.append(o,`gt.${s}`),this}gte(o,s){return this.url.searchParams.append(o,`gte.${s}`),this}lt(o,s){return this.url.searchParams.append(o,`lt.${s}`),this}lte(o,s){return this.url.searchParams.append(o,`lte.${s}`),this}like(o,s){return this.url.searchParams.append(o,`like.${s}`),this}likeAllOf(o,s){return this.url.searchParams.append(o,`like(all).{${s.join(",")}}`),this}likeAnyOf(o,s){return this.url.searchParams.append(o,`like(any).{${s.join(",")}}`),this}ilike(o,s){return this.url.searchParams.append(o,`ilike.${s}`),this}ilikeAllOf(o,s){return this.url.searchParams.append(o,`ilike(all).{${s.join(",")}}`),this}ilikeAnyOf(o,s){return this.url.searchParams.append(o,`ilike(any).{${s.join(",")}}`),this}is(o,s){return this.url.searchParams.append(o,`is.${s}`),this}in(o,s){const l=Array.from(new Set(s)).map(u=>typeof u=="string"&&new RegExp("[,()]").test(u)?`"${u}"`:`${u}`).join(",");return this.url.searchParams.append(o,`in.(${l})`),this}contains(o,s){return typeof s=="string"?this.url.searchParams.append(o,`cs.${s}`):Array.isArray(s)?this.url.searchParams.append(o,`cs.{${s.join(",")}}`):this.url.searchParams.append(o,`cs.${JSON.stringify(s)}`),this}containedBy(o,s){return typeof s=="string"?this.url.searchParams.append(o,`cd.${s}`):Array.isArray(s)?this.url.searchParams.append(o,`cd.{${s.join(",")}}`):this.url.searchParams.append(o,`cd.${JSON.stringify(s)}`),this}rangeGt(o,s){return this.url.searchParams.append(o,`sr.${s}`),this}rangeGte(o,s){return this.url.searchParams.append(o,`nxl.${s}`),this}rangeLt(o,s){return this.url.searchParams.append(o,`sl.${s}`),this}rangeLte(o,s){return this.url.searchParams.append(o,`nxr.${s}`),this}rangeAdjacent(o,s){return this.url.searchParams.append(o,`adj.${s}`),this}overlaps(o,s){return typeof s=="string"?this.url.searchParams.append(o,`ov.${s}`):this.url.searchParams.append(o,`ov.{${s.join(",")}}`),this}textSearch(o,s,{config:l,type:u}={}){let f="";u==="plain"?f="pl":u==="phrase"?f="ph":u==="websearch"&&(f="w");const h=l===void 0?"":`(${l})`;return this.url.searchParams.append(o,`${f}fts${h}.${s}`),this}match(o){return Object.entries(o).forEach(([s,l])=>{this.url.searchParams.append(s,`eq.${l}`)}),this}not(o,s,l){return this.url.searchParams.append(o,`not.${s}.${l}`),this}or(o,{foreignTable:s,referencedTable:l=s}={}){const u=l?`${l}.or`:"or";return this.url.searchParams.append(u,`(${o})`),this}filter(o,s,l){return this.url.searchParams.append(o,`${s}.${l}`),this}}return yo.default=n,yo}var Vb;function Y0(){if(Vb)return go;Vb=1;var e=go&&go.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(go,"__esModule",{value:!0});const t=e(fm());class n{constructor(o,{headers:s={},schema:l,fetch:u}){this.url=o,this.headers=new Headers(s),this.schema=l,this.fetch=u}select(o,{head:s=!1,count:l}={}){const u=s?"HEAD":"GET";let f=!1;const h=(o??"*").split("").map(m=>/\s/.test(m)&&!f?"":(m==='"'&&(f=!f),m)).join("");return this.url.searchParams.set("select",h),l&&this.headers.append("Prefer",`count=${l}`),new t.default({method:u,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(o,{count:s,defaultToNull:l=!0}={}){var u;const f="POST";if(s&&this.headers.append("Prefer",`count=${s}`),l||this.headers.append("Prefer","missing=default"),Array.isArray(o)){const h=o.reduce((m,y)=>m.concat(Object.keys(y)),[]);if(h.length>0){const m=[...new Set(h)].map(y=>`"${y}"`);this.url.searchParams.set("columns",m.join(","))}}return new t.default({method:f,url:this.url,headers:this.headers,schema:this.schema,body:o,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch})}upsert(o,{onConflict:s,ignoreDuplicates:l=!1,count:u,defaultToNull:f=!0}={}){var h;const m="POST";if(this.headers.append("Prefer",`resolution=${l?"ignore":"merge"}-duplicates`),s!==void 0&&this.url.searchParams.set("on_conflict",s),u&&this.headers.append("Prefer",`count=${u}`),f||this.headers.append("Prefer","missing=default"),Array.isArray(o)){const y=o.reduce((v,_)=>v.concat(Object.keys(_)),[]);if(y.length>0){const v=[...new Set(y)].map(_=>`"${_}"`);this.url.searchParams.set("columns",v.join(","))}}return new t.default({method:m,url:this.url,headers:this.headers,schema:this.schema,body:o,fetch:(h=this.fetch)!==null&&h!==void 0?h:fetch})}update(o,{count:s}={}){var l;const u="PATCH";return s&&this.headers.append("Prefer",`count=${s}`),new t.default({method:u,url:this.url,headers:this.headers,schema:this.schema,body:o,fetch:(l=this.fetch)!==null&&l!==void 0?l:fetch})}delete({count:o}={}){var s;const l="DELETE";return o&&this.headers.append("Prefer",`count=${o}`),new t.default({method:l,url:this.url,headers:this.headers,schema:this.schema,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}}return go.default=n,go}var $b;function c3(){if($b)return mo;$b=1;var e=mo&&mo.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(mo,"__esModule",{value:!0});const t=e(Y0()),n=e(fm());class a{constructor(s,{headers:l={},schema:u,fetch:f}={}){this.url=s,this.headers=new Headers(l),this.schemaName=u,this.fetch=f}from(s){const l=new URL(`${this.url}/${s}`);return new t.default(l,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(s){return new a(this.url,{headers:this.headers,schema:s,fetch:this.fetch})}rpc(s,l={},{head:u=!1,get:f=!1,count:h}={}){var m;let y;const v=new URL(`${this.url}/rpc/${s}`);let _;u||f?(y=u?"HEAD":"GET",Object.entries(l).filter(([S,C])=>C!==void 0).map(([S,C])=>[S,Array.isArray(C)?`{${C.join(",")}}`:`${C}`]).forEach(([S,C])=>{v.searchParams.append(S,C)})):(y="POST",_=l);const x=new Headers(this.headers);return h&&x.set("Prefer",`count=${h}`),new n.default({method:y,url:v,headers:x,schema:this.schemaName,body:_,fetch:(m=this.fetch)!==null&&m!==void 0?m:fetch})}}return mo.default=a,mo}var Hb;function u3(){if(Hb)return Zt;Hb=1;var e=Zt&&Zt.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.PostgrestError=Zt.PostgrestBuilder=Zt.PostgrestTransformBuilder=Zt.PostgrestFilterBuilder=Zt.PostgrestQueryBuilder=Zt.PostgrestClient=void 0;const t=e(c3());Zt.PostgrestClient=t.default;const n=e(Y0());Zt.PostgrestQueryBuilder=n.default;const a=e(fm());Zt.PostgrestFilterBuilder=a.default;const o=e(q0());Zt.PostgrestTransformBuilder=o.default;const s=e(K0());Zt.PostgrestBuilder=s.default;const l=e(G0());return Zt.PostgrestError=l.default,Zt.default={PostgrestClient:t.default,PostgrestQueryBuilder:n.default,PostgrestFilterBuilder:a.default,PostgrestTransformBuilder:o.default,PostgrestBuilder:s.default,PostgrestError:l.default},Zt}var d3=u3();const h3=q_(d3),{PostgrestClient:f3,PostgrestQueryBuilder:_9,PostgrestFilterBuilder:w9,PostgrestTransformBuilder:x9,PostgrestBuilder:P9,PostgrestError:S9}=h3,Na=Object.create(null);Na.open="0";Na.close="1";Na.ping="2";Na.pong="3";Na.message="4";Na.upgrade="5";Na.noop="6";const iu=Object.create(null);Object.keys(Na).forEach(e=>{iu[Na[e]]=e});const np={type:"error",data:"parser error"},Z0=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",X0=typeof ArrayBuffer=="function",Q0=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,pm=({type:e,data:t},n,a)=>Z0&&t instanceof Blob?n?a(t):Wb(t,a):X0&&(t instanceof ArrayBuffer||Q0(t))?n?a(t):Wb(new Blob([t]),a):a(Na[e]+(t||"")),Wb=(e,t)=>{const n=new FileReader;return n.onload=function(){const a=n.result.split(",")[1];t("b"+(a||""))},n.readAsDataURL(e)};function Gb(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let ff;function p3(e,t){if(Z0&&e.data instanceof Blob)return e.data.arrayBuffer().then(Gb).then(t);if(X0&&(e.data instanceof ArrayBuffer||Q0(e.data)))return t(Gb(e.data));pm(e,!1,n=>{ff||(ff=new TextEncoder),t(ff.encode(n))})}const Kb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Kb.length;e++)Vs[Kb.charCodeAt(e)]=e;const m3=e=>{let t=e.length*.75,n=e.length,a,o=0,s,l,u,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const h=new ArrayBuffer(t),m=new Uint8Array(h);for(a=0;a<n;a+=4)s=Vs[e.charCodeAt(a)],l=Vs[e.charCodeAt(a+1)],u=Vs[e.charCodeAt(a+2)],f=Vs[e.charCodeAt(a+3)],m[o++]=s<<2|l>>4,m[o++]=(l&15)<<4|u>>2,m[o++]=(u&3)<<6|f&63;return h},g3=typeof ArrayBuffer=="function",mm=(e,t)=>{if(typeof e!="string")return{type:"message",data:J0(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:y3(e.substring(1),t)}:iu[n]?e.length>1?{type:iu[n],data:e.substring(1)}:{type:iu[n]}:np},y3=(e,t)=>{if(g3){const n=m3(e);return J0(n,t)}else return{base64:!0,data:e}},J0=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,ew="",v3=(e,t)=>{const n=e.length,a=new Array(n);let o=0;e.forEach((s,l)=>{pm(s,!1,u=>{a[l]=u,++o===n&&t(a.join(ew))})})},b3=(e,t)=>{const n=e.split(ew),a=[];for(let o=0;o<n.length;o++){const s=mm(n[o],t);if(a.push(s),s.type==="error")break}return a};function k3(){return new TransformStream({transform(e,t){p3(e,n=>{const a=n.length;let o;if(a<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,a);else if(a<65536){o=new Uint8Array(3);const s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,a)}else{o=new Uint8Array(9);const s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(a))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let pf;function Vc(e){return e.reduce((t,n)=>t+n.length,0)}function $c(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let a=0;for(let o=0;o<t;o++)n[o]=e[0][a++],a===e[0].length&&(e.shift(),a=0);return e.length&&a<e[0].length&&(e[0]=e[0].slice(a)),n}function _3(e,t){pf||(pf=new TextDecoder);const n=[];let a=0,o=-1,s=!1;return new TransformStream({transform(l,u){for(n.push(l);;){if(a===0){if(Vc(n)<1)break;const f=$c(n,1);s=(f[0]&128)===128,o=f[0]&127,o<126?a=3:o===126?a=1:a=2}else if(a===1){if(Vc(n)<2)break;const f=$c(n,2);o=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),a=3}else if(a===2){if(Vc(n)<8)break;const f=$c(n,8),h=new DataView(f.buffer,f.byteOffset,f.length),m=h.getUint32(0);if(m>Math.pow(2,21)-1){u.enqueue(np);break}o=m*Math.pow(2,32)+h.getUint32(4),a=3}else{if(Vc(n)<o)break;const f=$c(n,o);u.enqueue(mm(s?f:pf.decode(f),t)),a=0}if(o===0||o>e){u.enqueue(np);break}}}})}const tw=4;function Ft(e){if(e)return w3(e)}function w3(e){for(var t in Ft.prototype)e[t]=Ft.prototype[t];return e}Ft.prototype.on=Ft.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ft.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Ft.prototype.off=Ft.prototype.removeListener=Ft.prototype.removeAllListeners=Ft.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var a,o=0;o<n.length;o++)if(a=n[o],a===t||a.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Ft.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(n){n=n.slice(0);for(var a=0,o=n.length;a<o;++a)n[a].apply(this,t)}return this};Ft.prototype.emitReserved=Ft.prototype.emit;Ft.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Ft.prototype.hasListeners=function(e){return!!this.listeners(e).length};const od=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),qn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),x3="arraybuffer";function nw(e,...t){return t.reduce((n,a)=>(e.hasOwnProperty(a)&&(n[a]=e[a]),n),{})}const P3=qn.setTimeout,S3=qn.clearTimeout;function sd(e,t){t.useNativeTimers?(e.setTimeoutFn=P3.bind(qn),e.clearTimeoutFn=S3.bind(qn)):(e.setTimeoutFn=qn.setTimeout.bind(qn),e.clearTimeoutFn=qn.clearTimeout.bind(qn))}const C3=1.33;function T3(e){return typeof e=="string"?E3(e):Math.ceil((e.byteLength||e.size)*C3)}function E3(e){let t=0,n=0;for(let a=0,o=e.length;a<o;a++)t=e.charCodeAt(a),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(a++,n+=4);return n}function aw(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function A3(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function R3(e){let t={},n=e.split("&");for(let a=0,o=n.length;a<o;a++){let s=n[a].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}class L3 extends Error{constructor(t,n,a){super(t),this.description=n,this.context=a,this.type="TransportError"}}class gm extends Ft{constructor(t){super(),this.writable=!1,sd(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,a){return super.emitReserved("error",new L3(t,n,a)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=mm(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=A3(t);return n.length?"?"+n:""}}class D3 extends gm{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let a=0;this._polling&&(a++,this.once("pollComplete",function(){--a||n()})),this.writable||(a++,this.once("drain",function(){--a||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=a=>{if(this.readyState==="opening"&&a.type==="open"&&this.onOpen(),a.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(a)};b3(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,v3(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=aw()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let rw=!1;try{rw=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const I3=rw;function M3(){}class N3 extends D3{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let a=location.port;a||(a=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||a!==t.port}}doWrite(t,n){const a=this.request({method:"POST",data:t});a.on("success",n),a.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,a)=>{this.onError("xhr poll error",n,a)}),this.pollXhr=t}}let Ro=class ou extends Ft{constructor(t,n,a){super(),this.createRequest=t,sd(this,a),this._opts=a,this._method=a.method||"GET",this._uri=n,this._data=a.data!==void 0?a.data:null,this._create()}_create(){var t;const n=nw(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const a=this._xhr=this.createRequest(n);try{a.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&a.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(a),"withCredentials"in a&&(a.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(a.timeout=this._opts.requestTimeout),a.onreadystatechange=()=>{var o;a.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(a.getResponseHeader("set-cookie"))),a.readyState===4&&(a.status===200||a.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof a.status=="number"?a.status:0)},0))},a.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=ou.requestsCount++,ou.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=M3,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ou.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Ro.requestsCount=0;Ro.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",qb);else if(typeof addEventListener=="function"){const e="onpagehide"in qn?"pagehide":"unload";addEventListener(e,qb,!1)}}function qb(){for(let e in Ro.requests)Ro.requests.hasOwnProperty(e)&&Ro.requests[e].abort()}const O3=(function(){const e=iw({xdomain:!1});return e&&e.responseType!==null})();class j3 extends N3{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=O3&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Ro(iw,this.uri(),t)}}function iw(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||I3))return new XMLHttpRequest}catch{}if(!t)try{return new qn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ow=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class U3 extends gm{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,a=ow?{}:nw(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(a.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,a)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const a=t[n],o=n===t.length-1;pm(a,this.supportsBinary,s=>{try{this.doWrite(a,s)}catch{}o&&od(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=aw()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const mf=qn.WebSocket||qn.MozWebSocket;class B3 extends U3{createSocket(t,n,a){return ow?new mf(t,n,a):n?new mf(t,n):new mf(t)}doWrite(t,n){this.ws.send(n)}}class F3 extends gm{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=_3(Number.MAX_SAFE_INTEGER,this.socket.binaryType),a=t.readable.pipeThrough(n).getReader(),o=k3();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const s=()=>{a.read().then(({done:u,value:f})=>{u||(this.onPacket(f),s())}).catch(u=>{})};s();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const a=t[n],o=n===t.length-1;this._writer.write(a).then(()=>{o&&od(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const z3={websocket:B3,webtransport:F3,polling:j3},V3=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$3=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ap(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),a=e.indexOf("]");n!=-1&&a!=-1&&(e=e.substring(0,n)+e.substring(n,a).replace(/:/g,";")+e.substring(a,e.length));let o=V3.exec(e||""),s={},l=14;for(;l--;)s[$3[l]]=o[l]||"";return n!=-1&&a!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=H3(s,s.path),s.queryKey=W3(s,s.query),s}function H3(e,t){const n=/\/{2,9}/g,a=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&a.splice(0,1),t.slice(-1)=="/"&&a.splice(a.length-1,1),a}function W3(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,o,s){o&&(n[o]=s)}),n}const rp=typeof addEventListener=="function"&&typeof removeEventListener=="function",su=[];rp&&addEventListener("offline",()=>{su.forEach(e=>e())},!1);class Hr extends Ft{constructor(t,n){if(super(),this.binaryType=x3,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const a=ap(t);n.hostname=a.host,n.secure=a.protocol==="https"||a.protocol==="wss",n.port=a.port,a.query&&(n.query=a.query)}else n.host&&(n.hostname=ap(n.host).host);sd(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(a=>{const o=a.prototype.name;this.transports.push(o),this._transportsByName[o]=a}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=R3(this.opts.query)),rp&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},su.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=tw,n.transport=t,this.id&&(n.sid=this.id);const a=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](a)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Hr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Hr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let a=0;a<this.writeBuffer.length;a++){const o=this.writeBuffer[a].data;if(o&&(n+=T3(o)),a>0&&n>this._maxPayload)return this.writeBuffer.slice(0,a);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,od(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,a){return this._sendPacket("message",t,n,a),this}send(t,n,a){return this._sendPacket("message",t,n,a),this}_sendPacket(t,n,a,o){if(typeof n=="function"&&(o=n,n=void 0),typeof a=="function"&&(o=a,a=null),this.readyState==="closing"||this.readyState==="closed")return;a=a||{},a.compress=a.compress!==!1;const s={type:t,data:n,options:a};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},a=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?a():t()}):this.upgrading?a():t()),this}_onError(t){if(Hr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),rp&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const a=su.indexOf(this._offlineEventListener);a!==-1&&su.splice(a,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Hr.protocol=tw;class G3 extends Hr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),a=!1;Hr.priorWebsocketSuccess=!1;const o=()=>{a||(n.send([{type:"ping",data:"probe"}]),n.once("packet",y=>{if(!a)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Hr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{a||this.readyState!=="closed"&&(m(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=n.name,this.emitReserved("upgradeError",v)}}))};function s(){a||(a=!0,m(),n.close(),n=null)}const l=y=>{const v=new Error("probe error: "+y);v.transport=n.name,s(),this.emitReserved("upgradeError",v)};function u(){l("transport closed")}function f(){l("socket closed")}function h(y){n&&y.name!==n.name&&s()}const m=()=>{n.removeListener("open",o),n.removeListener("error",l),n.removeListener("close",u),this.off("close",f),this.off("upgrading",h)};n.once("open",o),n.once("error",l),n.once("close",u),this.once("close",f),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{a||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let a=0;a<t.length;a++)~this.transports.indexOf(t[a])&&n.push(t[a]);return n}}let K3=class extends G3{constructor(t,n={}){const a=typeof t=="object"?t:n;(!a.transports||a.transports&&typeof a.transports[0]=="string")&&(a.transports=(a.transports||["polling","websocket","webtransport"]).map(o=>z3[o]).filter(o=>!!o)),super(t,a)}};function q3(e,t="",n){let a=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),a=ap(e)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";const s=a.host.indexOf(":")!==-1?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+s+":"+a.port+t,a.href=a.protocol+"://"+s+(n&&n.port===a.port?"":":"+a.port),a}const Y3=typeof ArrayBuffer=="function",Z3=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,sw=Object.prototype.toString,X3=typeof Blob=="function"||typeof Blob<"u"&&sw.call(Blob)==="[object BlobConstructor]",Q3=typeof File=="function"||typeof File<"u"&&sw.call(File)==="[object FileConstructor]";function ym(e){return Y3&&(e instanceof ArrayBuffer||Z3(e))||X3&&e instanceof Blob||Q3&&e instanceof File}function lu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,a=e.length;n<a;n++)if(lu(e[n]))return!0;return!1}if(ym(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return lu(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&lu(e[n]))return!0;return!1}function J3(e){const t=[],n=e.data,a=e;return a.data=ip(n,t),a.attachments=t.length,{packet:a,buffers:t}}function ip(e,t){if(!e)return e;if(ym(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let a=0;a<e.length;a++)n[a]=ip(e[a],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=ip(e[a],t));return n}return e}function eR(e,t){return e.data=op(e.data,t),delete e.attachments,e}function op(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=op(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=op(e[n],t));return e}const tR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var at;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(at||(at={}));class nR{constructor(t){this.replacer=t}encode(t){return(t.type===at.EVENT||t.type===at.ACK)&&lu(t)?this.encodeAsBinary({type:t.type===at.EVENT?at.BINARY_EVENT:at.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===at.BINARY_EVENT||t.type===at.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=J3(t),a=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(a),o}}class vm extends Ft{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const a=n.type===at.BINARY_EVENT;a||n.type===at.BINARY_ACK?(n.type=a?at.EVENT:at.ACK,this.reconstructor=new aR(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(ym(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const a={type:Number(t.charAt(0))};if(at[a.type]===void 0)throw new Error("unknown packet type "+a.type);if(a.type===at.BINARY_EVENT||a.type===at.BINARY_ACK){const s=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(s,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");const u=Number(l);if(!rR(u)||u<0)throw new Error("Illegal attachments");if(u>this.opts.maxAttachments)throw new Error("too many attachments");a.attachments=u}if(t.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););a.nsp=t.substring(s,n)}else a.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const s=n+1;for(;++n;){const l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}a.id=Number(t.substring(s,n+1))}if(t.charAt(++n)){const s=this.tryParse(t.substr(n));if(vm.isPayloadValid(a.type,s))a.data=s;else throw new Error("invalid payload")}return a}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case at.CONNECT:return Yb(n);case at.DISCONNECT:return n===void 0;case at.CONNECT_ERROR:return typeof n=="string"||Yb(n);case at.EVENT:case at.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&tR.indexOf(n[0])===-1);case at.ACK:case at.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class aR{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=eR(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const rR=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function Yb(e){return Object.prototype.toString.call(e)==="[object Object]"}const iR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:vm,Encoder:nR,get PacketType(){return at}},Symbol.toStringTag,{value:"Module"}));function fa(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const oR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class lw extends Ft{constructor(t,n,a){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,a&&a.auth&&(this.auth=a.auth),this._opts=Object.assign({},a),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[fa(t,"open",this.onopen.bind(this)),fa(t,"packet",this.onpacket.bind(this)),fa(t,"error",this.onerror.bind(this)),fa(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var a,o,s;if(oR.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const l={type:at.EVENT,data:n};if(l.options={},l.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const m=this.ids++,y=n.pop();this._registerAckCallback(m,y),l.id=m}const u=(o=(a=this.io.engine)===null||a===void 0?void 0:a.transport)===null||o===void 0?void 0:o.writable,f=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!u||(f?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),this.flags={},this}_registerAckCallback(t,n){var a;const o=(a=this.flags.timeout)!==null&&a!==void 0?a:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let u=0;u<this.sendBuffer.length;u++)this.sendBuffer[u].id===t&&this.sendBuffer.splice(u,1);n.call(this,new Error("operation has timed out"))},o),l=(...u)=>{this.io.clearTimeoutFn(s),n.apply(this,u)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((a,o)=>{const s=(l,u)=>l?o(l):a(u);s.withError=!0,n.push(s),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const a={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...s)=>(this._queue[0],o!==null?a.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...s)),a.pending=!1,this._drainQueue())),this._queue.push(a),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:at.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(a=>String(a.id)===t)){const a=this.acks[t];delete this.acks[t],a.withError&&a.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case at.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case at.EVENT:case at.BINARY_EVENT:this.onevent(t);break;case at.ACK:case at.BINARY_ACK:this.onack(t);break;case at.DISCONNECT:this.ondisconnect();break;case at.CONNECT_ERROR:this.destroy();const a=new Error(t.data.message);a.data=t.data.data,this.emitReserved("connect_error",a);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const a of n)a.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let a=!1;return function(...o){a||(a=!0,n.packet({type:at.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:at.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let a=0;a<n.length;a++)if(t===n[a])return n.splice(a,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let a=0;a<n.length;a++)if(t===n[a])return n.splice(a,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const a of n)a.apply(this,t.data)}}}function zo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}zo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};zo.prototype.reset=function(){this.attempts=0};zo.prototype.setMin=function(e){this.ms=e};zo.prototype.setMax=function(e){this.max=e};zo.prototype.setJitter=function(e){this.jitter=e};class sp extends Ft{constructor(t,n){var a;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,sd(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((a=n.randomizationFactor)!==null&&a!==void 0?a:.5),this.backoff=new zo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||iR;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new K3(this.uri,this.opts);const n=this.engine,a=this;this._readyState="opening",this.skipReconnect=!1;const o=fa(n,"open",function(){a.onopen(),t&&t()}),s=u=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",u),t?t(u):this.maybeReconnectOnOpen()},l=fa(n,"error",s);if(this._timeout!==!1){const u=this._timeout,f=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),n.close()},u);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(o),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(fa(t,"ping",this.onping.bind(this)),fa(t,"data",this.ondata.bind(this)),fa(t,"error",this.onerror.bind(this)),fa(t,"close",this.onclose.bind(this)),fa(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){od(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let a=this.nsps[t];return a?this._autoConnect&&!a.active&&a.connect():(a=new lw(this,t,n),this.nsps[t]=a),a}_destroy(t){const n=Object.keys(this.nsps);for(const a of n)if(this.nsps[a].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let a=0;a<n.length;a++)this.engine.write(n[a],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var a;this.cleanup(),(a=this.engine)===null||a===void 0||a.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const a=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ms={};function cu(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=q3(e,t.path||"/socket.io"),a=n.source,o=n.id,s=n.path,l=Ms[o]&&s in Ms[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let f;return u?f=new sp(a,t):(Ms[o]||(Ms[o]=new sp(a,t)),f=Ms[o]),n.query&&!t.query&&(t.query=n.queryKey),f.socket(n.path,t)}Object.assign(cu,{Manager:sp,Socket:lw,io:cu,connect:cu});var qe=class cw extends Error{constructor(t,n,a,o){super(t),this.name="InsForgeError",this.statusCode=n,this.error=a,this.nextActions=o}static fromApiError(t){return new cw(t.message,t.statusCode,t.error,t.nextActions)}},sR=["authorization","x-api-key","cookie","set-cookie"],lR=["password","token","accesstoken","refreshtoken","authorization","secret","apikey","api_key","email","ssn","creditcard","credit_card"];function cR(e){const t={};for(const[n,a]of Object.entries(e))sR.includes(n.toLowerCase())?t[n]="***REDACTED***":t[n]=a;return t}function Gs(e){if(e==null)return e;if(typeof e=="string")try{const t=JSON.parse(e);return Gs(t)}catch{return e}if(Array.isArray(e))return e.map(Gs);if(typeof e=="object"){const t={};for(const[n,a]of Object.entries(e))lR.includes(n.toLowerCase().replace(/[-_]/g,""))?t[n]="***REDACTED***":t[n]=Gs(a);return t}return e}function Zb(e){if(e==null)return"";if(typeof e=="string")try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}if(typeof FormData<"u"&&e instanceof FormData)return"[FormData]";try{return JSON.stringify(e,null,2)}catch{return"[Unserializable body]"}}var uw=class{constructor(e){typeof e=="function"?(this.enabled=!0,this.customLog=e):(this.enabled=!!e,this.customLog=null)}log(e,...t){if(!this.enabled)return;const n=`[InsForge Debug] ${e}`;this.customLog?this.customLog(n,...t):console.log(n,...t)}warn(e,...t){if(!this.enabled)return;const n=`[InsForge Debug] ${e}`;this.customLog?this.customLog(n,...t):console.warn(n,...t)}error(e,...t){if(!this.enabled)return;const n=`[InsForge Debug] ${e}`;this.customLog?this.customLog(n,...t):console.error(n,...t)}logRequest(e,t,n,a){if(!this.enabled)return;const o=[`→ ${e} ${t}`];n&&Object.keys(n).length>0&&o.push(` Headers: ${JSON.stringify(cR(n))}`);const s=Zb(Gs(a));if(s){const l=s.length>1e3?s.slice(0,1e3)+"... [truncated]":s;o.push(` Body: ${l}`)}this.log(o.join(`
39
- `))}logResponse(e,t,n,a,o){if(!this.enabled)return;const s=[`← ${e} ${t} ${n} (${a}ms)`],l=Zb(Gs(o));if(l){const u=l.length>1e3?l.slice(0,1e3)+"... [truncated]":l;s.push(` Body: ${u}`)}n>=400?this.error(s.join(`
40
- `)):this.log(s.join(`
41
- `))}},bm="insforge_csrf_token";function dw(){if(typeof document>"u")return null;const e=document.cookie.split(";").find(t=>t.trim().startsWith(`${bm}=`));return e&&e.split("=")[1]||null}function hw(e){if(typeof document>"u")return;const t=10080*60,n=typeof window<"u"&&window.location.protocol==="https:"?"; Secure":"";document.cookie=`${bm}=${encodeURIComponent(e)}; path=/; max-age=${t}; SameSite=Lax${n}`}function fw(){if(typeof document>"u")return;const e=typeof window<"u"&&window.location.protocol==="https:"?"; Secure":"";document.cookie=`${bm}=; path=/; max-age=0; SameSite=Lax${e}`}var pw=class{constructor(){this.accessToken=null,this.user=null,this.onTokenChange=null}saveSession(e){const t=e.accessToken!==this.accessToken;this.accessToken=e.accessToken,this.user=e.user,t&&this.onTokenChange&&this.onTokenChange()}getSession(){return!this.accessToken||!this.user?null:{accessToken:this.accessToken,user:this.user}}getAccessToken(){return this.accessToken}setAccessToken(e){const t=e!==this.accessToken;this.accessToken=e,t&&this.onTokenChange&&this.onTokenChange()}getUser(){return this.user}setUser(e){this.user=e}clearSession(){const e=this.accessToken!==null;this.accessToken=null,this.user=null,e&&this.onTokenChange&&this.onTokenChange()}},uR=new Set([500,502,503,504]),dR=new Set(["GET","HEAD","PUT","DELETE","OPTIONS"]),hR=class{constructor(e,t,n){if(this.userToken=null,this.autoRefreshToken=!0,this.isRefreshing=!1,this.refreshPromise=null,this.refreshToken=null,this.baseUrl=e.baseUrl||"http://localhost:7130",this.autoRefreshToken=e.autoRefreshToken??!0,this.fetch=e.fetch||(globalThis.fetch?globalThis.fetch.bind(globalThis):void 0),this.anonKey=e.anonKey,this.defaultHeaders={...e.headers},this.tokenManager=t??new pw,this.logger=n||new uw(!1),this.timeout=e.timeout??3e4,this.retryCount=e.retryCount??3,this.retryDelay=e.retryDelay??500,!this.fetch)throw new Error("Fetch is not available. Please provide a fetch implementation in the config.")}buildUrl(e,t){const n=new URL(e,this.baseUrl);return t&&Object.entries(t).forEach(([a,o])=>{if(a==="select"){let s=o.replace(/\s+/g," ").trim();s=s.replace(/\s*\(\s*/g,"(").replace(/\s*\)\s*/g,")").replace(/\(\s+/g,"(").replace(/\s+\)/g,")").replace(/,\s+(?=[^()]*\))/g,","),n.searchParams.append(a,s)}else n.searchParams.append(a,o)}),n.toString()}isRetryableStatus(e){return uR.has(e)}computeRetryDelay(e){const n=this.retryDelay*Math.pow(2,e-1)*(.85+Math.random()*.3);return Math.round(n)}async handleRequest(e,t,n={}){const{params:a,headers:o={},body:s,signal:l,...u}=n,f=this.buildUrl(t,a),h=Date.now(),y=dR.has(e.toUpperCase())||n.idempotent===!0?this.retryCount:0,v={...this.defaultHeaders},_=this.userToken||this.anonKey;_&&(v.Authorization=`Bearer ${_}`);let x;s!==void 0&&(typeof FormData<"u"&&s instanceof FormData?x=s:(e!=="GET"&&(v["Content-Type"]="application/json;charset=UTF-8"),x=JSON.stringify(s))),o instanceof Headers?o.forEach((C,D)=>{v[D]=C}):Array.isArray(o)?o.forEach(([C,D])=>{v[C]=D}):Object.assign(v,o),this.logger.logRequest(e,f,v,x);let S;for(let C=0;C<=y;C++){if(C>0){const E=this.computeRetryDelay(C);if(this.logger.warn(`Retry ${C}/${y} for ${e} ${f} in ${E}ms`),l?.aborted)throw l.reason;await new Promise((A,B)=>{const z=()=>{clearTimeout(H),B(l.reason)},H=setTimeout(()=>{l&&l.removeEventListener("abort",z),A()},E);l&&l.addEventListener("abort",z,{once:!0})})}let D,M;if((this.timeout>0||l)&&(D=new AbortController,this.timeout>0&&(M=setTimeout(()=>D.abort(),this.timeout)),l))if(l.aborted)D.abort(l.reason);else{const E=()=>D.abort(l.reason);l.addEventListener("abort",E,{once:!0}),D.signal.addEventListener("abort",()=>{l.removeEventListener("abort",E)},{once:!0})}try{const E=await this.fetch(f,{method:e,headers:v,body:x,...u,...D?{signal:D.signal}:{}});if(this.isRetryableStatus(E.status)&&C<y){M!==void 0&&clearTimeout(M),await E.body?.cancel(),S=new qe(`Server error: ${E.status} ${E.statusText}`,E.status,"SERVER_ERROR");continue}if(E.status===204){M!==void 0&&clearTimeout(M);return}let A;const B=E.headers.get("content-type");try{B?.includes("json")?A=await E.json():A=await E.text()}catch(z){throw M!==void 0&&clearTimeout(M),new qe(`Failed to parse response body: ${z?.message||"Unknown error"}`,E.status,E.ok?"PARSE_ERROR":"REQUEST_FAILED")}if(M!==void 0&&clearTimeout(M),!E.ok){if(this.logger.logResponse(e,f,E.status,Date.now()-h,A),A&&typeof A=="object"&&"error"in A){!A.statusCode&&!A.status&&(A.statusCode=E.status);const z=qe.fromApiError(A);throw Object.keys(A).forEach(H=>{H!=="error"&&H!=="message"&&H!=="statusCode"&&(z[H]=A[H])}),z}throw new qe(`Request failed: ${E.statusText}`,E.status,"REQUEST_FAILED")}return this.logger.logResponse(e,f,E.status,Date.now()-h,A),A}catch(E){if(M!==void 0&&clearTimeout(M),E?.name==="AbortError")throw D&&D.signal.aborted&&this.timeout>0&&!l?.aborted?new qe(`Request timed out after ${this.timeout}ms`,408,"REQUEST_TIMEOUT"):E;if(E instanceof qe)throw E;if(C<y){S=E;continue}throw new qe(`Network request failed: ${E?.message||"Unknown error"}`,0,"NETWORK_ERROR")}}throw S||new qe("Request failed after all retry attempts",0,"NETWORK_ERROR")}async request(e,t,n={}){try{return await this.handleRequest(e,t,{...n})}catch(a){if(a instanceof qe&&a.statusCode===401&&a.error==="INVALID_TOKEN"&&this.autoRefreshToken)try{const o=await this.handleTokenRefresh();return this.setAuthToken(o.accessToken),this.tokenManager.saveSession(o),o.csrfToken&&hw(o.csrfToken),o.refreshToken&&this.setRefreshToken(o.refreshToken),await this.handleRequest(e,t,{...n})}catch(o){throw this.tokenManager.clearSession(),this.userToken=null,this.refreshToken=null,fw(),o}throw a}}get(e,t){return this.request("GET",e,t)}post(e,t,n){return this.request("POST",e,{...n,body:t})}put(e,t,n){return this.request("PUT",e,{...n,body:t})}patch(e,t,n){return this.request("PATCH",e,{...n,body:t})}delete(e,t){return this.request("DELETE",e,t)}setAuthToken(e){this.userToken=e}setRefreshToken(e){this.refreshToken=e}getHeaders(){const e={...this.defaultHeaders},t=this.userToken||this.anonKey;return t&&(e.Authorization=`Bearer ${t}`),e}async handleTokenRefresh(){return this.isRefreshing?this.refreshPromise:(this.isRefreshing=!0,this.refreshPromise=(async()=>{try{const e=dw(),t=this.refreshToken?{refreshToken:this.refreshToken}:void 0;return await this.handleRequest("POST","/api/auth/sessions/current",{body:t,headers:e?{"X-CSRF-Token":e}:{},credentials:"include"})}finally{this.isRefreshing=!1,this.refreshPromise=null}})(),this.refreshPromise)}},lp="insforge_pkce_verifier";function mw(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function fR(){const e=new Uint8Array(32);return crypto.getRandomValues(e),mw(e)}async function pR(e){const n=new TextEncoder().encode(e),a=await crypto.subtle.digest("SHA-256",n);return mw(new Uint8Array(a))}function mR(e){typeof sessionStorage<"u"&&sessionStorage.setItem(lp,e)}function gR(){if(typeof sessionStorage>"u")return null;const e=sessionStorage.getItem(lp);return e&&sessionStorage.removeItem(lp),e}function jn(e,t){return e instanceof qe?{data:null,error:e}:{data:null,error:new qe(e instanceof Error?e.message:t,500,"UNEXPECTED_ERROR")}}function Xb(...e){if(typeof window>"u")return;const t=new URL(window.location.href);e.forEach(n=>t.searchParams.delete(n)),window.history.replaceState({},document.title,t.toString())}var yR=class{constructor(e,t,n={}){this.http=e,this.tokenManager=t,this.options=n,this.authCallbackHandled=this.detectAuthCallback()}isServerMode(){return!!this.options.isServerMode}saveSessionFromResponse(e){if(!e.accessToken||!e.user)return!1;const t={accessToken:e.accessToken,user:e.user};return!this.isServerMode()&&e.csrfToken&&hw(e.csrfToken),this.isServerMode()||this.tokenManager.saveSession(t),this.http.setAuthToken(e.accessToken),this.http.setRefreshToken(e.refreshToken??null),!0}async detectAuthCallback(){if(!(this.isServerMode()||typeof window>"u"))try{const e=new URLSearchParams(window.location.search),t=e.get("error");if(t){Xb("error"),console.debug("OAuth callback error:",t);return}const n=e.get("insforge_code");if(n){Xb("insforge_code");const{error:a}=await this.exchangeOAuthCode(n);a&&console.debug("OAuth code exchange failed:",a.message);return}}catch(e){console.debug("OAuth callback detection skipped:",e)}}async signUp(e){try{const t=await this.http.post(this.isServerMode()?"/api/auth/users?client_type=mobile":"/api/auth/users",e,{credentials:"include"});return t.accessToken&&t.user&&this.saveSessionFromResponse(t),t.refreshToken&&this.http.setRefreshToken(t.refreshToken),{data:t,error:null}}catch(t){return jn(t,"An unexpected error occurred during sign up")}}async signInWithPassword(e){try{const t=await this.http.post(this.isServerMode()?"/api/auth/sessions?client_type=mobile":"/api/auth/sessions",e,{credentials:"include"});return this.saveSessionFromResponse(t),t.refreshToken&&this.http.setRefreshToken(t.refreshToken),{data:t,error:null}}catch(t){return jn(t,"An unexpected error occurred during sign in")}}async signOut(){try{try{await this.http.post(this.isServerMode()?"/api/auth/logout?client_type=mobile":"/api/auth/logout",void 0,{credentials:"include"})}catch{}return this.tokenManager.clearSession(),this.http.setAuthToken(null),this.http.setRefreshToken(null),this.isServerMode()||fw(),{error:null}}catch{return{error:new qe("Failed to sign out",500,"SIGNOUT_ERROR")}}}async signInWithOAuth(e){try{const{provider:t,redirectTo:n,skipBrowserRedirect:a}=e,o=encodeURIComponent(t.toLowerCase()),s=fR(),l=await pR(s);mR(s);const u={code_challenge:l};n&&(u.redirect_uri=n);const h=id.options.includes(o)?`/api/auth/oauth/${o}`:`/api/auth/oauth/custom/${o}`,m=await this.http.get(h,{params:u});return!this.isServerMode()&&typeof window<"u"&&!a?(window.location.href=m.authUrl,{data:{},error:null}):{data:{url:m.authUrl,provider:o,codeVerifier:s},error:null}}catch(t){return t instanceof qe?{data:{},error:t}:{data:{},error:new qe("An unexpected error occurred during OAuth initialization",500,"UNEXPECTED_ERROR")}}}async exchangeOAuthCode(e,t){try{const n=t??gR();if(!n)return{data:null,error:new qe("PKCE code verifier not found. Ensure signInWithOAuth was called in the same browser session.",400,"PKCE_VERIFIER_MISSING")};const a={code:e,code_verifier:n},o=await this.http.post(this.isServerMode()?"/api/auth/oauth/exchange?client_type=mobile":"/api/auth/oauth/exchange",a,{credentials:"include"});return this.saveSessionFromResponse(o),{data:o,error:null}}catch(n){return jn(n,"An unexpected error occurred during OAuth code exchange")}}async signInWithIdToken(e){try{const{provider:t,token:n}=e,a=await this.http.post("/api/auth/id-token?client_type=mobile",{provider:t,token:n},{credentials:"include"});return this.saveSessionFromResponse(a),a.refreshToken&&this.http.setRefreshToken(a.refreshToken),{data:a,error:null}}catch(t){return jn(t,"An unexpected error occurred during ID token sign in")}}async refreshSession(e){try{if(this.isServerMode()&&!e?.refreshToken)return{data:null,error:new qe("refreshToken is required when refreshing session in server mode",400,"REFRESH_TOKEN_REQUIRED")};const t=this.isServerMode()?null:dw(),n=await this.http.post(this.isServerMode()?"/api/auth/refresh?client_type=mobile":"/api/auth/refresh",this.isServerMode()?{refresh_token:e?.refreshToken}:void 0,{headers:t?{"X-CSRF-Token":t}:{},credentials:"include"});return n.accessToken&&this.saveSessionFromResponse(n),{data:n,error:null}}catch(t){return jn(t,"An unexpected error occurred during session refresh")}}async getCurrentUser(){await this.authCallbackHandled;try{if(this.isServerMode()){const t=this.tokenManager.getAccessToken();return t?(this.http.setAuthToken(t),{data:{user:(await this.http.get("/api/auth/sessions/current")).user??null},error:null}):{data:{user:null},error:null}}const e=this.tokenManager.getSession();if(e)return this.http.setAuthToken(e.accessToken),{data:{user:e.user},error:null};if(typeof window<"u"){const{data:t,error:n}=await this.refreshSession();if(n)return{data:{user:null},error:n};if(t?.accessToken)return{data:{user:t.user??null},error:null}}return{data:{user:null},error:null}}catch(e){return e instanceof qe?{data:{user:null},error:e}:{data:{user:null},error:new qe("An unexpected error occurred while getting user",500,"UNEXPECTED_ERROR")}}}async getProfile(e){try{return{data:await this.http.get(`/api/auth/profiles/${e}`),error:null}}catch(t){return jn(t,"An unexpected error occurred while fetching user profile")}}async setProfile(e){try{const t=await this.http.patch("/api/auth/profiles/current",{profile:e}),n=this.tokenManager.getUser();return!this.isServerMode()&&n&&t.profile!==void 0&&this.tokenManager.setUser({...n,profile:t.profile}),{data:t,error:null}}catch(t){return jn(t,"An unexpected error occurred while updating user profile")}}async resendVerificationEmail(e){try{return{data:await this.http.post("/api/auth/email/send-verification",e),error:null}}catch(t){return jn(t,"An unexpected error occurred while sending verification email")}}async verifyEmail(e){try{const t=await this.http.post(this.isServerMode()?"/api/auth/email/verify?client_type=mobile":"/api/auth/email/verify",e,{credentials:"include"});return this.saveSessionFromResponse(t),t.refreshToken&&this.http.setRefreshToken(t.refreshToken),{data:t,error:null}}catch(t){return jn(t,"An unexpected error occurred while verifying email")}}async sendResetPasswordEmail(e){try{return{data:await this.http.post("/api/auth/email/send-reset-password",e),error:null}}catch(t){return jn(t,"An unexpected error occurred while sending password reset email")}}async exchangeResetPasswordToken(e){try{return{data:await this.http.post("/api/auth/email/exchange-reset-password-token",e),error:null}}catch(t){return jn(t,"An unexpected error occurred while verifying reset code")}}async resetPassword(e){try{return{data:await this.http.post("/api/auth/email/reset-password",e),error:null}}catch(t){return jn(t,"An unexpected error occurred while resetting password")}}async getPublicAuthConfig(){try{return{data:await this.http.get("/api/auth/public-config"),error:null}}catch(e){return jn(e,"An unexpected error occurred while fetching auth configuration")}}};function vR(e,t){return async(n,a)=>{const o=typeof n=="string"?n:n.toString(),s=new URL(o),l=s.pathname.slice(1),u=l.match(/^rpc\/(.+)$/),f=u?`/api/database/rpc/${u[1]}`:`/api/database/records/${l}`,h=`${e.baseUrl}${f}${s.search}`,m=t.getAccessToken(),y=e.getHeaders(),v=m||y.Authorization?.replace("Bearer ",""),_=new Headers(a?.headers);return v&&!_.has("Authorization")&&_.set("Authorization",`Bearer ${v}`),await fetch(h,{...a,headers:_})}}var bR=class{constructor(e,t){this.postgrest=new f3("http://dummy",{fetch:vR(e,t),headers:{}})}from(e){return this.postgrest.from(e)}rpc(e,t,n){return this.postgrest.rpc(e,t,n)}},kR=class{constructor(e,t){this.bucketName=e,this.http=t}async upload(e,t){try{const n=await this.http.post(`/api/storage/buckets/${this.bucketName}/upload-strategy`,{filename:e,contentType:t.type||"application/octet-stream",size:t.size});if(n.method==="presigned")return await this.uploadWithPresignedUrl(n,t);if(n.method==="direct"){const a=new FormData;return a.append("file",t),{data:await this.http.request("PUT",`/api/storage/buckets/${this.bucketName}/objects/${encodeURIComponent(e)}`,{body:a,headers:{}}),error:null}}throw new qe(`Unsupported upload method: ${n.method}`,500,"STORAGE_ERROR")}catch(n){return{data:null,error:n instanceof qe?n:new qe("Upload failed",500,"STORAGE_ERROR")}}}async uploadAuto(e){try{const t=e instanceof File?e.name:"file",n=await this.http.post(`/api/storage/buckets/${this.bucketName}/upload-strategy`,{filename:t,contentType:e.type||"application/octet-stream",size:e.size});if(n.method==="presigned")return await this.uploadWithPresignedUrl(n,e);if(n.method==="direct"){const a=new FormData;return a.append("file",e),{data:await this.http.request("POST",`/api/storage/buckets/${this.bucketName}/objects`,{body:a,headers:{}}),error:null}}throw new qe(`Unsupported upload method: ${n.method}`,500,"STORAGE_ERROR")}catch(t){return{data:null,error:t instanceof qe?t:new qe("Upload failed",500,"STORAGE_ERROR")}}}async uploadWithPresignedUrl(e,t){try{const n=new FormData;e.fields&&Object.entries(e.fields).forEach(([o,s])=>{n.append(o,s)}),n.append("file",t);const a=await fetch(e.uploadUrl,{method:"POST",body:n});if(!a.ok)throw new qe(`Upload to storage failed: ${a.statusText}`,a.status,"STORAGE_ERROR");return e.confirmRequired&&e.confirmUrl?{data:await this.http.post(e.confirmUrl,{size:t.size,contentType:t.type||"application/octet-stream"}),error:null}:{data:{key:e.key,bucket:this.bucketName,size:t.size,mimeType:t.type||"application/octet-stream",uploadedAt:new Date().toISOString(),url:this.getPublicUrl(e.key)},error:null}}catch(n){throw n instanceof qe?n:new qe("Presigned upload failed",500,"STORAGE_ERROR")}}async download(e){try{const t=await this.http.post(`/api/storage/buckets/${this.bucketName}/objects/${encodeURIComponent(e)}/download-strategy`,{expiresIn:3600}),n=t.url,a={};t.method==="direct"&&Object.assign(a,this.http.getHeaders());const o=await fetch(n,{method:"GET",headers:a});if(!o.ok)try{const l=await o.json();throw qe.fromApiError(l)}catch{throw new qe(`Download failed: ${o.statusText}`,o.status,"STORAGE_ERROR")}return{data:await o.blob(),error:null}}catch(t){return{data:null,error:t instanceof qe?t:new qe("Download failed",500,"STORAGE_ERROR")}}}getPublicUrl(e){return`${this.http.baseUrl}/api/storage/buckets/${this.bucketName}/objects/${encodeURIComponent(e)}`}async list(e){try{const t={};return e?.prefix&&(t.prefix=e.prefix),e?.search&&(t.search=e.search),e?.limit&&(t.limit=e.limit.toString()),e?.offset&&(t.offset=e.offset.toString()),{data:await this.http.get(`/api/storage/buckets/${this.bucketName}/objects`,{params:t}),error:null}}catch(t){return{data:null,error:t instanceof qe?t:new qe("List failed",500,"STORAGE_ERROR")}}}async remove(e){try{return{data:await this.http.delete(`/api/storage/buckets/${this.bucketName}/objects/${encodeURIComponent(e)}`),error:null}}catch(t){return{data:null,error:t instanceof qe?t:new qe("Delete failed",500,"STORAGE_ERROR")}}}},_R=class{constructor(e){this.http=e}from(e){return new kR(e,this.http)}},wR=class{constructor(e){this.http=e,this.chat=new xR(e),this.images=new CR(e),this.embeddings=new SR(e)}},xR=class{constructor(e){this.completions=new PR(e)}},PR=class{constructor(e){this.http=e}async create(e){const t={model:e.model,messages:e.messages,temperature:e.temperature,maxTokens:e.maxTokens,topP:e.topP,stream:e.stream,webSearch:e.webSearch,fileParser:e.fileParser,thinking:e.thinking,tools:e.tools,toolChoice:e.toolChoice,parallelToolCalls:e.parallelToolCalls};if(e.stream){const o=this.http.getHeaders();o["Content-Type"]="application/json";const s=await this.http.fetch(`${this.http.baseUrl}/api/ai/chat/completion`,{method:"POST",headers:o,body:JSON.stringify(t)});if(!s.ok){const l=await s.json();throw new Error(l.error||"Stream request failed")}return this.parseSSEStream(s,e.model)}const n=await this.http.post("/api/ai/chat/completion",t),a=n.text||"";return{id:`chatcmpl-${Date.now()}`,object:"chat.completion",created:Math.floor(Date.now()/1e3),model:n.metadata?.model,choices:[{index:0,message:{role:"assistant",content:a,...n.tool_calls?.length&&{tool_calls:n.tool_calls},...n.annotations?.length&&{annotations:n.annotations}},finish_reason:n.tool_calls?.length?"tool_calls":"stop"}],usage:n.metadata?.usage||{prompt_tokens:0,completion_tokens:0,total_tokens:0}}}async*parseSSEStream(e,t){const n=e.body.getReader(),a=new TextDecoder;let o="";try{for(;;){const{done:s,value:l}=await n.read();if(s)break;o+=a.decode(l,{stream:!0});const u=o.split(`
42
- `);o=u.pop()||"";for(const f of u)if(f.startsWith("data: ")){const h=f.slice(6).trim();if(h)try{const m=JSON.parse(h);if((m.chunk||m.content)&&(yield{id:`chatcmpl-${Date.now()}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:t,choices:[{index:0,delta:{content:m.chunk||m.content},finish_reason:null}]}),m.tool_calls?.length&&(yield{id:`chatcmpl-${Date.now()}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:t,choices:[{index:0,delta:{tool_calls:m.tool_calls},finish_reason:"tool_calls"}]}),m.done){n.releaseLock();return}}catch{console.warn("Failed to parse SSE data:",h)}}}}finally{n.releaseLock()}}},SR=class{constructor(e){this.http=e}async create(e){const t=await this.http.post("/api/ai/embeddings",e);return{object:t.object,data:t.data,model:t.metadata?.model,usage:t.metadata?.usage?{prompt_tokens:t.metadata.usage.promptTokens||0,total_tokens:t.metadata.usage.totalTokens||0}:{prompt_tokens:0,total_tokens:0}}}},CR=class{constructor(e){this.http=e}async generate(e){const t=await this.http.post("/api/ai/image/generation",e);let n=[];return t.images&&t.images.length>0?n=t.images.map(a=>({b64_json:a.imageUrl.replace(/^data:image\/\w+;base64,/,""),content:t.text})):t.text&&(n=[{content:t.text}]),{created:Math.floor(Date.now()/1e3),data:n,...t.metadata?.usage&&{usage:{total_tokens:t.metadata.usage.totalTokens||0,input_tokens:t.metadata.usage.promptTokens||0,output_tokens:t.metadata.usage.completionTokens||0}}}}},TR=class gw{constructor(t,n){this.http=t,this.functionsUrl=n||gw.deriveSubhostingUrl(t.baseUrl)}static deriveSubhostingUrl(t){try{const{hostname:n}=new URL(t);return n.endsWith(".insforge.app")?`https://${n.split(".")[0]}.functions.insforge.app`:void 0}catch{return}}async invoke(t,n={}){const{method:a="POST",body:o,headers:s={}}=n;if(this.functionsUrl)try{return{data:await this.http.request(a,`${this.functionsUrl}/${t}`,{body:o,headers:s}),error:null}}catch(l){if(l instanceof Error&&l.name==="AbortError")throw l;if(!(l instanceof qe&&l.statusCode===404))return{data:null,error:l instanceof qe?l:new qe(l instanceof Error?l.message:"Function invocation failed",500,"FUNCTION_ERROR")}}try{const l=`/functions/${t}`;return{data:await this.http.request(a,l,{body:o,headers:s}),error:null}}catch(l){if(l instanceof Error&&l.name==="AbortError")throw l;return{data:null,error:l instanceof qe?l:new qe(l instanceof Error?l.message:"Function invocation failed",500,"FUNCTION_ERROR")}}}},Qb=1e4,ER=class{constructor(e,t,n){this.socket=null,this.connectPromise=null,this.subscribedChannels=new Set,this.eventListeners=new Map,this.baseUrl=e,this.tokenManager=t,this.anonKey=n,this.tokenManager.onTokenChange=()=>this.onTokenChange()}notifyListeners(e,t){const n=this.eventListeners.get(e);if(n)for(const a of n)try{a(t)}catch(o){console.error(`Error in ${e} callback:`,o)}}connect(){return this.socket?.connected?Promise.resolve():this.connectPromise?this.connectPromise:(this.connectPromise=new Promise((e,t)=>{const n=this.tokenManager.getAccessToken()??this.anonKey;this.socket=cu(this.baseUrl,{transports:["websocket"],auth:n?{token:n}:void 0});let a=!0,o=null;const s=()=>{o&&(clearTimeout(o),o=null)};o=setTimeout(()=>{a&&(a=!1,this.connectPromise=null,this.socket?.disconnect(),this.socket=null,t(new Error(`Connection timeout after ${Qb}ms`)))},Qb),this.socket.on("connect",()=>{s();for(const l of this.subscribedChannels)this.socket.emit("realtime:subscribe",{channel:l});this.notifyListeners("connect"),a&&(a=!1,this.connectPromise=null,e())}),this.socket.on("connect_error",l=>{s(),this.notifyListeners("connect_error",l),a&&(a=!1,this.connectPromise=null,t(l))}),this.socket.on("disconnect",l=>{this.notifyListeners("disconnect",l)}),this.socket.on("realtime:error",l=>{this.notifyListeners("error",l)}),this.socket.onAny((l,u)=>{l!=="realtime:error"&&this.notifyListeners(l,u)})}),this.connectPromise)}disconnect(){this.socket&&(this.socket.disconnect(),this.socket=null),this.subscribedChannels.clear()}onTokenChange(){const e=this.tokenManager.getAccessToken()??this.anonKey;this.socket&&(this.socket.auth=e?{token:e}:{}),this.socket&&(this.socket.connected||this.connectPromise)&&(this.socket.disconnect(),this.socket.connect())}get isConnected(){return this.socket?.connected??!1}get connectionState(){return this.socket?this.socket.connected?"connected":"connecting":"disconnected"}get socketId(){return this.socket?.id}async subscribe(e){if(this.subscribedChannels.has(e))return{ok:!0,channel:e};if(!this.socket?.connected)try{await this.connect()}catch(t){const n=t instanceof Error?t.message:"Connection failed";return{ok:!1,channel:e,error:{code:"CONNECTION_FAILED",message:n}}}return new Promise(t=>{this.socket.emit("realtime:subscribe",{channel:e},n=>{n.ok&&this.subscribedChannels.add(e),t(n)})})}unsubscribe(e){this.subscribedChannels.delete(e),this.socket?.connected&&this.socket.emit("realtime:unsubscribe",{channel:e})}async publish(e,t,n){if(!this.socket?.connected)throw new Error("Not connected to realtime server. Call connect() first.");this.socket.emit("realtime:publish",{channel:e,event:t,payload:n})}on(e,t){this.eventListeners.has(e)||this.eventListeners.set(e,new Set),this.eventListeners.get(e).add(t)}off(e,t){const n=this.eventListeners.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners.delete(e))}once(e,t){const n=a=>{this.off(e,n),t(a)};this.on(e,n)}getSubscribedChannels(){return Array.from(this.subscribedChannels)}},AR=class{constructor(e){this.http=e}async send(e){try{return{data:await this.http.post("/api/email/send-raw",e),error:null}}catch(t){if(t instanceof Error&&t.name==="AbortError")throw t;return{data:null,error:t instanceof qe?t:new qe(t instanceof Error?t.message:"Email send failed",500,"EMAIL_ERROR")}}}},RR=class{constructor(e={}){const t=new uw(e.debug);this.tokenManager=new pw,this.http=new hR(e,this.tokenManager,t),e.edgeFunctionToken&&(this.http.setAuthToken(e.edgeFunctionToken),this.tokenManager.setAccessToken(e.edgeFunctionToken)),this.auth=new yR(this.http,this.tokenManager,{isServerMode:e.isServerMode??!1}),this.database=new bR(this.http,this.tokenManager),this.storage=new _R(this.http),this.ai=new wR(this.http),this.functions=new TR(this.http,e.functionsUrl),this.realtime=new ER(this.http.baseUrl,this.tokenManager,e.anonKey),this.emails=new AR(this.http)}getHttpClient(){return this.http}};function LR(e){return new RR(e)}const km={VITE_INSFORGE_ANON_KEY:"ik_9f35735991b684f7cf57fa00bb4d0487",VITE_INSFORGE_BASE_URL:"https://srctyff5.us-east.insforge.app"},yw="https://srctyff5.us-east.insforge.app",DR="ik_9f35735991b684f7cf57fa00bb4d0487";function rr(){const e=typeof import.meta<"u"?km:void 0;return(e?.VITE_INSFORGE_BASE_URL||e?.VITE_TOKENTRACKER_BACKEND_BASE_URL||yw).trim()}function vw(){if(typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"))return window.location.origin;const t=typeof import.meta<"u"?km:void 0;return(t?.VITE_INSFORGE_BASE_URL||t?.VITE_TOKENTRACKER_BACKEND_BASE_URL||yw).trim()}function wl(){const e=typeof import.meta<"u"?km:void 0;return(e?.VITE_INSFORGE_ANON_KEY||e?.VITE_TOKENTRACKER_BACKEND_ANON_KEY||DR).trim()}function cp(){return!!vw()}let gf=null;function IR(){return cp()?(gf||(gf=LR({baseUrl:vw(),anonKey:wl()||void 0,autoRefreshToken:!0})),gf):null}const bw="tokentracker_cloud_sync_enabled",MR="tokentracker_cloud_device_session_v1",_m="tokentracker_cloud_last_sync_ts";let wm=null;function xm(){try{localStorage.removeItem(MR)}catch{}}function NR(){if(typeof window>"u")return!1;const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"}function OR(){try{const e=localStorage.getItem(bw);return e===null||e===""?!1:e==="1"||e==="true"}catch{return!1}}function T9(e){try{localStorage.setItem(bw,e?"1":"0")}catch{}}function kw(){return xm(),wm}function jR(e){wm=e,xm()}function _w(){wm=null;try{localStorage.removeItem(_m)}catch{}xm()}function UR(){try{const e=Number(localStorage.getItem(_m));return Number.isFinite(e)?e:0}catch{return 0}}function ww(e){try{localStorage.setItem(_m,String(e))}catch{}}function Fr(e){if(typeof e!="string")return null;const t=e.trim();return t.length>0?t:null}function BR(e){const t=Fr(e);if(!t)return null;const n=t.split(".");if(n.length<2)return null;const a=n[1];try{const o=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),s=typeof atob=="function"?atob(o):Buffer.from(o,"base64").toString("utf8"),u=JSON.parse(s)?.exp;return typeof u!="number"||!Number.isFinite(u)||u<=0?null:Math.floor(u*1e3)}catch{return null}}function xw(e){const t=Fr(e);if(!t)return!1;const n=t.split(".");if(n.length!==3)return!1;try{for(let a=0;a<2;a++){const o=n[a];if(!/^[A-Za-z0-9_-]+$/.test(o))return!1;const s=o.replace(/-/g,"+").replace(/_/g,"/").padEnd(o.length+(4-o.length%4)%4,"="),l=typeof atob=="function"?atob(s):Buffer.from(s,"base64").toString("utf8");a===1&&JSON.parse(l)}return!0}catch{return!1}}function FR(e,t=3e4){const n=BR(e);return n?n<=Date.now()+Math.max(0,Number(t)||0):!1}async function zR(e){if(!e)return null;if(typeof e=="string")return Fr(e);if(typeof e=="function")try{const t=await e();return Fr(t)}catch{return null}if(typeof e=="object"){if(typeof e.getAccessToken=="function"){try{const t=await e.getAccessToken(),n=Fr(t);if(n)return n}catch{}return Fr(e.accessToken)}return null}return Fr(e)}async function E9(e,t={}){const n=Math.max(1,Math.min(12,Math.floor(Number(t.maxAttempts)||8))),a=Math.max(20,Math.floor(Number(t.baseDelayMs)||50));for(let o=0;o<n;o++){const s=await zR(e);if(s)return s;o<n-1&&await new Promise(l=>setTimeout(l,a*(o+1)))}return null}function A9(e){return typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1")||typeof e=="function"||e&&typeof e=="object"&&typeof e.getAccessToken=="function"?!0:!!Fr(e)}function R9(){if(typeof Intl>"u"||!Intl.DateTimeFormat)return null;try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}}function L9(e=new Date){const t=e instanceof Date?e:new Date(e);if(!Number.isFinite(t.getTime()))return 0;const n=t.getTimezoneOffset();return Number.isFinite(n)?-n:0}function Pw(e){if(!Number.isFinite(e)||e===0)return"UTC";const t=e>=0?"+":"-",n=Math.abs(e),a=String(Math.floor(n/60)).padStart(2,"0"),o=String(n%60).padStart(2,"0");return`UTC${t}${a}:${o}`}function D9({timeZone:e,offsetMinutes:t}={}){const n=Pw(t);return e&&e!=="UTC"?`${e} (${n})`:n}function I9({timeZone:e,offsetMinutes:t}={}){return Number.isFinite(t)?Pw(t):e||"UTC"}function M9({timeZone:e,offsetMinutes:t,date:n=new Date}={}){const a=n instanceof Date?n:new Date(n);if(!Number.isFinite(a.getTime()))return"";if(e&&typeof Intl<"u"&&Intl.DateTimeFormat)try{const l=new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(a).reduce((m,y)=>(y.type&&y.value&&(m[y.type]=y.value),m),{}),u=l.year,f=l.month,h=l.day;if(u&&f&&h)return`${u}-${f}-${h}`}catch{}if(typeof t=="number"&&Number.isFinite(t)){const o=new Date(a.getTime()+t*6e4);return $R(o)}return HR(a)}function VR({timeZone:e,offsetMinutes:t,date:n=new Date}={}){const a=n instanceof Date?n:new Date(n);if(!Number.isFinite(a.getTime()))return null;if(e&&typeof Intl<"u"&&Intl.DateTimeFormat)try{const l=new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(a).reduce((m,y)=>(y.type&&y.value&&(m[y.type]=y.value),m),{}),u=Number(l.year),f=Number(l.month),h=Number(l.day);if(Number.isFinite(u)&&Number.isFinite(f)&&Number.isFinite(h))return{year:u,month:f,day:h}}catch{}if(typeof t=="number"&&Number.isFinite(t)){const o=new Date(a.getTime()+t*6e4);return{year:o.getUTCFullYear(),month:o.getUTCMonth()+1,day:o.getUTCDate()}}return{year:a.getFullYear(),month:a.getMonth()+1,day:a.getDate()}}function N9({timeZone:e,offsetMinutes:t}={}){return e?`tz:${e}`:typeof t=="number"&&Number.isFinite(t)?`offset:${Math.trunc(t)}`:"utc"}function $R(e){const t=e.getUTCFullYear(),n=String(e.getUTCMonth()+1).padStart(2,"0"),a=String(e.getUTCDate()).padStart(2,"0");return`${t}-${n}-${a}`}function HR(e){const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return`${t}-${n}-${a}`}function xt(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())).toISOString().slice(0,10)}function ja(e){const t=e instanceof Date?e:new Date(e);if(!Number.isFinite(t.getTime()))return"";const n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0");return`${n}-${a}-${o}`}function WR(e){if(!e)return null;const t=String(e).trim(),n=t.split("-");if(n.length!==3)return null;const a=Number(n[0]),o=Number(n[1])-1,s=Number(n[2]);if(!Number.isFinite(a)||!Number.isFinite(o)||!Number.isFinite(s))return null;const l=new Date(Date.UTC(a,o,s));return Number.isFinite(l.getTime())&&xt(l)===t?l:null}function GR(e){if(!e)return"";const t=e.year,n=String(e.month).padStart(2,"0"),a=String(e.day).padStart(2,"0");return!t||!n||!a?"":`${t}-${n}-${a}`}function KR(e,{timeZone:t,offsetMinutes:n,now:a}={}){const o=a instanceof Date&&Number.isFinite(a.getTime())?a:new Date,s=VR({timeZone:t,offsetMinutes:n,date:o});if(!s){const f=ja(new Date);return{from:f,to:f}}const l=GR(s),u=WR(l);if(!u)return{from:l,to:l};if(e==="day")return{from:l,to:l};if(e==="week"){const f=new Date(u),m=(f.getUTCDay()+6)%7;f.setUTCDate(f.getUTCDate()-m);const y=new Date(f);return y.setUTCDate(y.getUTCDate()+6),{from:xt(f),to:xt(y)}}if(e==="month"){const f=new Date(Date.UTC(u.getUTCFullYear(),u.getUTCMonth(),1)),h=new Date(Date.UTC(u.getUTCFullYear(),u.getUTCMonth()+1,0));return{from:xt(f),to:xt(h)}}if(e==="total"){const f=new Date(Date.UTC(u.getUTCFullYear(),u.getUTCMonth()-23,1));return{from:xt(f),to:l}}return KR("week")}function Sw(){return typeof window>"u"?null:window.localStorage||null}function Cw(){return typeof navigator>"u"?null:navigator.clipboard||null}function qR(){return typeof window>"u"?null:window.ClipboardItem||null}function Ks(e,{storage:t}={}){const n=t??Sw();if(!n||typeof n.getItem!="function")return null;try{return n.getItem(e)}catch{return null}}function qs(e,t,{storage:n}={}){const a=n??Sw();if(!a||typeof a.setItem!="function")return!1;try{return a.setItem(e,t),!0}catch{return!1}}async function O9(e,{clipboard:t}={}){const n=t??Cw();if(!n||typeof n.writeText!="function")return!1;try{return await n.writeText(e),!0}catch{return!1}}async function j9(e,{clipboard:t}={}){const n=t??Cw(),a=qR();if(!e||!n||typeof n.write!="function"||!a)return!1;try{const o=e.type||"image/png",s=e.type&&e.type!==o?e.slice(0,e.size,o):e.type?e:e.slice(0,e.size,o),l=new a({[o]:s});return await n.write([l]),!0}catch{return!1}}const ll="USD",Pm=["USD","EUR","GBP","CNY","JPY","HKD"],Tw={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"}},Sm={USD:1,EUR:.92,GBP:.79,CNY:7.2,JPY:155,HKD:7.8},Ew="tokentracker-currency",Aw="tokentracker-exchange-rates",Rw="tokentracker-exchange-rate-source",Lw="tokentracker-exchange-rate-fetched-at";function Du(e){return typeof e=="number"&&Number.isFinite(e)&&e>0}function Cm(e){if(typeof e!="string")return ll;const t=e.trim().toUpperCase();return Pm.includes(t)?t:ll}function uu(e){const t=typeof e=="string"?e.trim().toUpperCase():ll;return Tw[t]?.symbol??"$"}function U9(){return Pm.map(e=>({code:e,...Tw[e]}))}function YR(){return Cm(Ks(Ew))}function ZR(e){return qs(Ew,Cm(e))}function Dw(e){return e==="fetched"?"fetched":"default"}function XR(e){if(e==null)return null;try{const t=JSON.parse(String(e));if(!t||typeof t!="object")return null;const n={};for(const[a,o]of Object.entries(t)){const s=Number(o);Number.isFinite(s)&&s>0&&(n[a.toUpperCase()]=s)}return n}catch{return null}}function QR(){const e=XR(Ks(Aw)),t=Ks(Lw),n=t==null?NaN:Number(t),a=Number.isFinite(n)&&n>0?n:null,o=Ks(Rw),s=Dw(o);return e&&Object.keys(e).length>0?{rates:{USD:1,...e},source:s,fetchedAt:a}:{rates:{...Sm},source:"default",fetchedAt:null}}function JR(e){const{rates:t,source:n,fetchedAt:a}=e;if(!t||typeof t!="object")return!1;const o=qs(Aw,JSON.stringify(t)),s=qs(Rw,Dw(n)),l=a?qs(Lw,String(a)):!0;return o&&s&&l}function yf(e,t){if(t===ll)return 1;const n=e?.[t];if(Du(n))return n;const a=Sm[t];return Du(a)?a:1}function B9(e){if(e==null)return"-";try{if(typeof e=="bigint")return new Intl.NumberFormat().format(e);if(typeof e=="number")return new Intl.NumberFormat().format(e);const t=String(e).trim();return/^[0-9]+$/.test(t)?new Intl.NumberFormat().format(BigInt(t)):t}catch{return String(e)}}function F9(e,{thousandSuffix:t="K",millionSuffix:n="M",billionSuffix:a="B",decimals:o=1}={}){const s=Number(String(e));if(!Number.isFinite(s))return"-";const l=s<0?"-":"",u=Math.abs(s),f=Math.max(0,Math.min(6,Math.floor(o)));if(u<1e3)return`${l}${String(u)}`;const h=(_,x)=>{const S=_.toFixed(f),C=Number(S).toString();return`${l}${C}${x}`},m=(_,x,S)=>{const C=_.toFixed(f),D=Number(C);return S&&D>=1e3?h(D/1e3,S):`${l}${D.toString()}${x}`};if(u>=1e9)return h(u/1e9,a);if(u>=1e6)return m(u/1e6,n,a);const y=u/1e3,v=Number(y.toFixed(f));return v>=1e3?h(v/1e3,n):h(v,t)}function Iw(e){const t=Number(String(e));return Number.isFinite(t)?t:null}function z9(e,t={}){const{decimals:n=2,currency:a="USD",rate:o=1}=t;if(e==null||typeof e=="string"&&e.trim()==="")return"-";let s;if(typeof e=="number")s=e;else if(typeof e=="bigint")s=Number(e);else{const C=String(e).trim(),D=Number(C);if(!Number.isFinite(D))return C;s=D}if(!Number.isFinite(s))return String(e);const l=uu(a);a!=="USD"&&typeof o=="number"&&Number.isFinite(o)&&o>0&&(s=s*o);const f=s.toFixed(6).match(/^(-?\d+)(?:\.(\d+))?$/);if(!f)return`${l}${String(s)}`;const h=f[1],m=f[2]||"";let y=h;try{y=new Intl.NumberFormat().format(BigInt(h))}catch{y=h}const v=Math.max(0,Math.min(6,Math.floor(n))),_=v?m.slice(0,v).padEnd(v,"0"):"",x=h.startsWith("-")?"-":"",S=v?`${y.replace("-","")}.${_}`:y.replace("-","");return`${x}${l}${S}`}function Iu(e){if(typeof e!="string")return null;const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());if(!t)return null;const n=Number(t[1]),a=Number(t[2])-1,o=Number(t[3]),s=new Date(Date.UTC(n,a,o));return Number.isFinite(s.getTime())&&xt(s)===e.trim()?s:null}function wi(e,t){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()+t))}function eL(e,t){const n=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())-Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate());return Math.floor(n/864e5)}function vf(e,t){if(!Array.isArray(e)||e.length===0)return 0;const n=e.length,a=(n-1)*t,o=Math.floor(a),s=a-o,l=e[o]??e[n-1],u=e[Math.min(n-1,o+1)]??e[n-1];return Math.round(l+(u-l)*s)}function tL(e){return e<=0?0:e>=4?4:e}function Mw({weeks:e=52,now:t,weekStartsOn:n="sun"}={}){const a=t instanceof Date&&Number.isFinite(t.getTime())?t:new Date,o=ja(a),s=Iu(o)||new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate())),l=n==="mon"?1:0,u=s.getUTCDay(),f=wi(s,-((u-l+7)%7)),h=wi(f,-7*(Math.max(1,e)-1));return{from:xt(h),to:o}}function nL({dailyRows:e,weeks:t=52,to:n,weekStartsOn:a="sun"}={}){const o=Iu(n)||new Date(Date.UTC(new Date().getFullYear(),new Date().getMonth(),new Date().getDate())),{from:s}=Mw({weeks:t,now:o,weekStartsOn:a}),l=Iu(s)||wi(o,-(t*7-1)),u=(()=>{const A=(l.getUTCDay()-(a==="mon"?1:0)+7)%7;return wi(l,-A)})(),f=new Map;for(const M of Array.isArray(e)?e:[]){const E=typeof M?.day=="string"?M.day:null;if(!E)continue;const A=Iw(M?.billable_total_tokens??M?.total_tokens)??0;f.set(E,{value:Math.max(0,A),models:M?.models||null})}const h=eL(u,o)+1,m=Math.ceil(h/7),y=[];for(let M=0;M<h;M++){const E=wi(u,M),A=xt(E),B=f.get(A),z=B?B.value:0;z>0&&y.push(z)}y.sort((M,E)=>M-E);const v=vf(y,.5),_=vf(y,.75),x=vf(y,.9);function S(M){return!M||M<=0?0:M<=v?1:M<=_?2:M<=x?3:4}const C=[];for(let M=0;M<m;M++){const E=[];for(let A=0;A<7;A++){const B=M*7+A,z=wi(u,B);if(z.getTime()>o.getTime()){E.push(null);continue}const H=xt(z),P=f.get(H),Z=P?P.value:0,X=P?P.models:null;E.push({day:H,value:Z,level:tL(S(Z)),models:X})}C.push(E)}const D=C.length>t?C.slice(C.length-t):C;return{from:s,to:xt(o),weeks:D,thresholds:{t1:v,t2:_,t3:x}}}function aL({dailyRows:e,to:t}={}){const n=Iu(t)||new Date(Date.UTC(new Date().getFullYear(),new Date().getMonth(),new Date().getDate())),a=new Map;for(const s of Array.isArray(e)?e:[]){const l=typeof s?.day=="string"?s.day:null;if(!l)continue;const u=Iw(s?.billable_total_tokens??s?.total_tokens)??0;a.set(l,Math.max(0,u))}let o=0;for(let s=0;s<370;s++){const l=xt(wi(n,-s));if((a.get(l)??0)>0){o+=1;continue}break}return o}const ld={},Nw="tokentracker",rL=["tokentracker/tokentracker","spacedriveapp/spacedrive","acme/alpha","acme/beta","neo/nebula","signal/flux","matrix/terminal","orbit/atlas","lumen/core","delta/horizon"],Jb=["NEO","TRINITY","MORPHEUS","ORACLE","CYPHER","SWITCH","APOC","TANK","SMITH","SERAPH","NIOBE","MOUSE","DOZER","LINK","BLADE"];function _n(){if(typeof window<"u"){const e=new URLSearchParams(window.location.search),t=String(e.get("mock")||"").toLowerCase();if(t==="0"||t==="false"||t==="off"||t==="no")return!1;if(t==="1"||t==="true"||t==="on"||t==="yes")return!0}if(typeof import.meta<"u"&&ld){const e="".toLowerCase();if(e==="1"||e==="true")return!0}return!1}function iL(){if(typeof import.meta<"u"&&ld){const e="".trim();if(e)return e;const t="".trim();if(t)return t}if(typeof window<"u"){const e=new URLSearchParams(window.location.search),t=String(e.get("mock_now")||"").trim();if(t)return t;const n=String(e.get("mock_today")||"").trim();if(n)return n}return""}function oL(e){if(!e)return null;const t=String(e).trim();if(!t)return null;if(/^\d{4}-\d{2}-\d{2}$/.test(t)){const[a,o,s]=t.split("-").map(Number);if(!Number.isFinite(a)||!Number.isFinite(o)||!Number.isFinite(s))return null;const l=new Date(a,o-1,s,12,0,0);return Number.isFinite(l.getTime())?l:null}const n=new Date(t);return Number.isFinite(n.getTime())?n:null}function V9(){return _n()?oL(iL()):null}function sL(){if(typeof import.meta<"u"&&ld){const e="".trim();if(e)return e}if(typeof window<"u"){const e=new URLSearchParams(window.location.search),t=String(e.get("mock_seed")||"").trim();if(t)return t}return Nw}function lL(){if(typeof import.meta<"u"&&ld){const e="".trim(),t=Number(e);if(Number.isFinite(t)&&t>0)return Math.floor(t)}if(typeof window<"u"){const e=new URLSearchParams(window.location.search),t=String(e.get("mock_missing")||"").trim(),n=Number(t);if(Number.isFinite(n)&&n>0)return Math.floor(n)}return 0}function xl(e){return(e==null?sL():String(e)).trim()||Nw}function Pl(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}function bn(e){if(typeof e!="string")return null;const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());if(!t)return null;const n=Number(t[1]),a=Number(t[2])-1,o=Number(t[3]),s=new Date(Date.UTC(n,a,o));return Number.isFinite(s.getTime())&&xt(s)===e.trim()?s:null}function cl(e,t){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()+t))}function Ow(e,t){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+t,1))}function cL(e){return`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,"0")}`}function No({from:e,to:t,seed:n}){const a=bn(ja(new Date))||new Date,o=bn(e)||a,s=bn(t)||o,l=[],u=xl(n),f=Math.floor((Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate())-Date.UTC(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()))/864e5)+1;for(let h=0;h<f;h+=1){const m=cl(o,h),y=xt(m),v=Pl(`${u}:${y}`),_=v%1e3/1e3,x=.6+.4*Math.sin(h/6*Math.PI*.5),S=m.getUTCDay()===0||m.getUTCDay()===6?.65:1,C=18e3+Math.round(12e3*_),D=Math.max(0,Math.round(C*x*S)),M=Math.round(D*.46),E=Math.round(D*.34),A=Math.round(D*.14),B=Math.max(0,D-M-E-A),z={};if(D>0){const H=["gpt-4o","claude-3.5-sonnet","gemini-1.5-pro","deepseek-coder"],P=1+v%3;let Z=D;for(let X=0;X<P;X++){const fe=H[(v+X)%H.length];if(X===P-1)z[fe]=Z;else{const he=Math.round(Z*(.3+.4*((v+X*17)%10)/10));z[fe]=he,Z-=he}}}l.push({day:y,total_tokens:D,billable_total_tokens:D,input_tokens:M,output_tokens:E,cached_input_tokens:A,reasoning_output_tokens:B,conversation_count:1+v%5,models:z})}return l}function uL({day:e,seed:t}){const n=bn(e)||bn(ja(new Date))||new Date,a=xt(n),o=xl(t),s=Array.from({length:48},(u,f)=>{const h=Math.floor(f/2),m=f%2===0?0:30,y=Pl(`${o}:${a}:${h}:${m}`),v=y%1e3/1e3,_=(h+m/60)/24,x=.4+.6*Math.sin(_*Math.PI*2),S=900+Math.round(700*v),C=Math.max(0,Math.round(S*x)),D=Math.round(C*.46),M=Math.round(C*.34),E=Math.round(C*.14),A=Math.max(0,C-D-M-E),B={};if(C>0){const z=["gpt-4o","claude-3.5-sonnet","gemini-1.5-pro","deepseek-coder"],H=1+y%2;let P=C;for(let Z=0;Z<H;Z++){const X=z[(y+Z)%z.length];if(Z===H-1)B[X]=P;else{const fe=Math.round(P*(.3+.4*((y+Z*17)%10)/10));B[X]=fe,P-=fe}}}return{hour:`${a}T${String(h).padStart(2,"0")}:${String(m).padStart(2,"0")}:00`,total_tokens:C,billable_total_tokens:C,input_tokens:D,output_tokens:M,cached_input_tokens:E,reasoning_output_tokens:A,models:B}}),l=Math.max(0,Math.min(48,lL()));if(l>0){const u=Date.now(),f=s.map((y,v)=>{const _=Date.parse(y.hour);return Number.isFinite(_)&&_<=u?{index:v,ts:_}:null}).filter(Boolean),h=Math.max(0,f.length-l),m=f.slice(h);for(const y of m){const v=s[y.index];v&&(s[y.index]={...v,missing:!0})}}return s}function dL({months:e=24,to:t,seed:n}){const a=bn(t)||bn(ja(new Date))||new Date,o=new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)),s=xl(n),l=[];for(let u=e-1;u>=0;u-=1){const f=Ow(o,-u),h=cL(f),m=Pl(`${s}:${h}`),y=m%1e3/1e3,v=.7+.3*Math.sin(l.length/6*Math.PI*.5),_=36e4+Math.round(2e5*y),x=Math.max(0,Math.round(_*v)),S=Math.round(x*.46),C=Math.round(x*.34),D=Math.round(x*.14),M=Math.max(0,x-S-C-D),E={};if(x>0){const A=["gpt-4o","claude-3.5-sonnet","gemini-1.5-pro","deepseek-coder"],B=1+m%3;let z=x;for(let H=0;H<B;H++){const P=A[(m+H)%A.length];if(H===B-1)E[P]=z;else{const Z=Math.round(z*(.3+.4*((m+H*17)%10)/10));E[P]=Z,z-=Z}}}l.push({month:h,total_tokens:x,billable_total_tokens:x,input_tokens:S,output_tokens:C,cached_input_tokens:D,reasoning_output_tokens:M,models:E})}return l}function Tm(e){return e.reduce((t,n)=>(t.total_tokens+=Number(n.total_tokens||0),t.billable_total_tokens+=Number(n.billable_total_tokens||n.total_tokens||0),t.input_tokens+=Number(n.input_tokens||0),t.output_tokens+=Number(n.output_tokens||0),t.cached_input_tokens+=Number(n.cached_input_tokens||0),t.reasoning_output_tokens+=Number(n.reasoning_output_tokens||0),t.conversation_count+=Number(n.conversation_count||0),t),{total_tokens:0,billable_total_tokens:0,input_tokens:0,output_tokens:0,cached_input_tokens:0,reasoning_output_tokens:0,conversation_count:0})}function hL(e,t=1.75){const n=Number(e||0);return!Number.isFinite(n)||n<=0?"0.000000":(n*t/1e6).toFixed(6)}function ek(e,t){const n=Number.isFinite(t)?t:0;return{total_tokens:Math.max(0,Math.round(e.total_tokens*n)),billable_total_tokens:Math.max(0,Math.round((e.billable_total_tokens??e.total_tokens)*n)),input_tokens:Math.max(0,Math.round(e.input_tokens*n)),output_tokens:Math.max(0,Math.round(e.output_tokens*n)),cached_input_tokens:Math.max(0,Math.round(e.cached_input_tokens*n)),reasoning_output_tokens:Math.max(0,Math.round(e.reasoning_output_tokens*n))}}function up(e){return{...e,total_cost_usd:hL(e.total_tokens)}}function fL({from:e,to:t,seed:n}={}){const a=No({from:e,to:t,seed:n});return{from:e,to:t,data:a}}function pL({day:e,seed:t}={}){const n=bn(e)||new Date,a=xt(n),o=uL({day:a,seed:t});return{day:a,data:o}}function mL({months:e=24,to:t,seed:n}={}){const a=bn(t)||bn(ja(new Date))||new Date,o=xt(a),s=dL({months:e,to:o,seed:n}),l=Ow(new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)),-(e-1));return{from:xt(l),to:o,months:e,data:s}}function gL({from:e,to:t,seed:n,rolling:a=!0}={}){const o=No({from:e,to:t,seed:n}),s=Tm(o),l=up(s),u=a?yL({to:t,seed:n}):null;return{from:e,to:t,days:o.length,totals:l,...u?{rolling:u}:{}}}function yL({to:e,seed:t}={}){const n=bn(e)||bn(ja(new Date))||new Date,a=xt(n),o=xt(cl(n,-6)),s=xt(cl(n,-29)),l=No({from:o,to:a,seed:t}),u=No({from:s,to:a,seed:t});return{last_7d:tk({rows:l,from:o,to:a}),last_30d:tk({rows:u,from:s,to:a})}}function tk({rows:e,from:t,to:n}={}){const a=Tm(e||[]),o=(e||[]).filter(l=>Number(l.billable_total_tokens??l.total_tokens)>0).length,s=o>0?Math.floor(a.billable_total_tokens/o):0;return{from:t,to:n,totals:{billable_total_tokens:a.billable_total_tokens,conversation_count:a.conversation_count},active_days:o,avg_per_active_day:s}}function vL({seed:e,limit:t=3}={}){const n=xl(e),a=rL.map((o,s)=>{const u=12e4+Pl(`${n}:${o}`)%9e5,f=s%4*4200,h=Math.max(0,u+f),m=Math.max(0,Math.round(h*.96));return{project_key:o,project_ref:`https://github.com/${o}`,total_tokens:String(h),billable_total_tokens:String(m)}}).sort((o,s)=>Number(s.billable_total_tokens)-Number(o.billable_total_tokens)).slice(0,Math.max(1,Math.min(10,Math.floor(Number(t)||3))));return{generated_at:new Date().toISOString(),entries:a}}function bL(e){const t=bn(ja(new Date))||new Date,n=String(e).trim().toLowerCase()||"week";if(n==="total")return{from:"1970-01-01",to:"9999-12-31"};if(n==="month"){const l=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),1)),u=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()+1,0));return{from:xt(l),to:xt(u)}}const a=t.getUTCDay(),o=xt(cl(t,-a)),s=xt(cl(t,-a+6));return{from:o,to:s}}function jw({seed:e,period:t,metric:n,limit:a=20,offset:o=0}={}){const s=xl(e),l=Math.max(1,Math.min(100,Math.floor(Number(a)||20))),u=Math.max(0,Math.min(1e4,Math.floor(Number(o)||0))),f=String(n||"all").trim().toLowerCase()||"all",h=String(t||"week").trim().toLowerCase()||"week",m=h==="month"||h==="total"||h==="week"?h:"week",{from:y,to:v}=bL(m),_=250,x=_>0?Math.ceil(_/l):0,S=Math.floor(u/l)+1,C=Array.from({length:_},(H,P)=>{const Z=P+1,X=`00000000-0000-0000-0000-${String(Z).padStart(12,"0")}`,fe=Jb[Z%Jb.length],Q=18e4+Pl(`${s}:${fe}:${Z}`)%9e5,J=Math.max(0,Q+Z*1200),te=Math.floor(J*.28),ee=Math.floor(J*.18),se=Math.floor(J*.1),F=Math.floor(J*.1),Y=Math.floor(J*.08),V=Math.floor(J*.03),I=Math.floor(J*.02),W=Math.floor(J*.04),me=Math.floor(J*.03),pe=Math.max(0,J-te-ee-se-F-Y-V-I-W-me),ye=Z%7!==0;return{id:Z,user_id:X,is_public:ye,is_me:!1,display_name:ye?fe:"Anonymous",avatar_url:null,gpt_tokens:te,claude_tokens:ee,gemini_tokens:se,cursor_tokens:F,opencode_tokens:Y,openclaw_tokens:pe,hermes_tokens:V,kiro_tokens:I,copilot_tokens:W,kimi_tokens:me,other_tokens:0,total_tokens:J}}),D=Math.max(0,Math.min(_-1,Math.floor(_*.8)));C[D]&&(C[D].is_me=!0);const M=f==="gpt"||f==="codex"?"gpt_tokens":f==="claude"?"claude_tokens":f==="gemini"?"gemini_tokens":f==="cursor"?"cursor_tokens":f==="opencode"?"opencode_tokens":f==="openclaw"?"openclaw_tokens":f==="hermes"?"hermes_tokens":f==="kiro"?"kiro_tokens":f==="copilot"?"copilot_tokens":f==="kimi"?"kimi_tokens":"total_tokens",E=C.slice().sort((H,P)=>Number(P[M])-Number(H[M])||H.id-P.id).map((H,P)=>({user_id:H.is_public?H.user_id:null,rank:P+1,is_me:!!H.is_me,display_name:H.display_name,avatar_url:H.avatar_url,gpt_tokens:String(H.gpt_tokens),claude_tokens:String(H.claude_tokens),gemini_tokens:String(H.gemini_tokens),cursor_tokens:String(H.cursor_tokens),opencode_tokens:String(H.opencode_tokens),openclaw_tokens:String(H.openclaw_tokens),hermes_tokens:String(H.hermes_tokens??0),kiro_tokens:String(H.kiro_tokens??0),copilot_tokens:String(H.copilot_tokens??0),kimi_tokens:String(H.kimi_tokens??0),other_tokens:String(H.other_tokens??0),total_tokens:String(H.total_tokens),is_public:!!H.is_public})),A=E.find(H=>H?.is_me)||null,B=A?{rank:A.rank,gpt_tokens:A.gpt_tokens,claude_tokens:A.claude_tokens,gemini_tokens:A.gemini_tokens,cursor_tokens:A.cursor_tokens,opencode_tokens:A.opencode_tokens,openclaw_tokens:A.openclaw_tokens,hermes_tokens:A.hermes_tokens,kiro_tokens:A.kiro_tokens,copilot_tokens:A.copilot_tokens,kimi_tokens:A.kimi_tokens,other_tokens:A.other_tokens,total_tokens:A.total_tokens}:{rank:null,gpt_tokens:"0",claude_tokens:"0",gemini_tokens:"0",cursor_tokens:"0",opencode_tokens:"0",openclaw_tokens:"0",hermes_tokens:"0",kiro_tokens:"0",copilot_tokens:"0",kimi_tokens:"0",other_tokens:"0",total_tokens:"0"},z=E.slice(u,u+l);return{period:m,metric:f,from:y,to:v,generated_at:new Date().toISOString(),page:S,limit:l,offset:u,total_entries:_,total_pages:x,entries:z,me:B}}function kL({weeks:e=52,to:t,weekStartsOn:n="sun",seed:a}={}){const o=Mw({weeks:e,now:bn(t)||bn(ja(new Date))||new Date,weekStartsOn:n}),s=No({from:o.from,to:o.to,seed:a});return{...nL({dailyRows:s,weeks:e,to:o.to,weekStartsOn:n}),week_starts_on:n,active_days:s.filter(u=>Number(u.billable_total_tokens??u.total_tokens)>0).length,streak_days:aL({dailyRows:s,to:o.to})}}function _L({from:e,to:t,seed:n}={}){const a=No({from:e,to:t,seed:n}),o=Tm(a),l=[{source:"codex",weight:.7,models:[{model:"gpt-5.2-codex",model_id:"gpt-5.2-codex",weight:.2},{model:"unknown",model_id:"unknown",weight:.8}]},{source:"claude",weight:.2,models:[{model:"claude-3.5",model_id:"claude-3.5",weight:.3},{model:"unknown",model_id:"unknown",weight:.7}]},{source:"every-code",weight:.1,models:[{model:"unknown",model_id:"unknown",weight:1}]}].map(u=>{const f=ek(o,u.weight),h=u.models.map(m=>{const y=ek(f,m.weight);return{model:m.model,model_id:m.model_id||m.model,totals:up(y)}});return{source:u.source,totals:up(f),models:h}});return{from:e,to:t,days:a.length,sources:l,pricing:{model:"mock",pricing_mode:"add",source:"mock",effective_from:ja(new Date),rates_per_million_usd:{input:"1.750000",cached_input:"0.175000",output:"14.000000",reasoning_output:"14.000000"}}}}function wL({from:e,to:t,source:n="claude"}={}){if(n==="codex")return{from:e,to:t,source:"codex",scope:"supported",totals:{input_tokens:142e4,cached_input_tokens:588e4,cache_creation_input_tokens:92e4,output_tokens:256e4,reasoning_output_tokens:61e4,total_tokens:1078e4},session_count:188,message_count:5436,tool_calls_breakdown:{categories:[{name:"Execution",calls:742,totals:{input_tokens:32e4,cached_input_tokens:104e4,cache_creation_input_tokens:11e4,output_tokens:46e4,reasoning_output_tokens:12e4,total_tokens:193e4},tools:[{name:"exec_command",calls:510,totals:{input_tokens:25e4,cached_input_tokens:82e4,cache_creation_input_tokens:8e4,output_tokens:37e4,reasoning_output_tokens:9e4,total_tokens:152e4}},{name:"write_stdin",calls:232,totals:{input_tokens:7e4,cached_input_tokens:22e4,cache_creation_input_tokens:3e4,output_tokens:9e4,reasoning_output_tokens:3e4,total_tokens:41e4}}]},{name:"Browser",calls:406,totals:{input_tokens:21e4,cached_input_tokens:88e4,cache_creation_input_tokens:9e4,output_tokens:42e4,reasoning_output_tokens:1e5,total_tokens:17e5},tools:[{name:"take_snapshot",calls:180,totals:{input_tokens:1e5,cached_input_tokens:4e5,cache_creation_input_tokens:4e4,output_tokens:18e4,reasoning_output_tokens:4e4,total_tokens:76e4}},{name:"click",calls:126,totals:{input_tokens:6e4,cached_input_tokens:25e4,cache_creation_input_tokens:3e4,output_tokens:12e4,reasoning_output_tokens:35e3,total_tokens:495e3}},{name:"evaluate_script",calls:100,totals:{input_tokens:5e4,cached_input_tokens:23e4,cache_creation_input_tokens:2e4,output_tokens:12e4,reasoning_output_tokens:25e3,total_tokens:445e3}}]}],tools_total:363e4,privacy:{includes_inputs:!1,note:"Aggregated tool names only; no tool arguments or outputs are included."}},exec_command_breakdown:{by_type:[{name:"test",calls:168,failures:14,duration_ms:482e3,max_duration_ms:18400,output_chars:45e4,output_lines:8600,totals:{input_tokens:9e4,cached_input_tokens:32e4,output_tokens:16e4,reasoning_output_tokens:42e3,total_tokens:612e3}},{name:"build",calls:116,failures:9,duration_ms:392e3,max_duration_ms:22100,output_chars:31e4,output_lines:5200,totals:{input_tokens:7e4,cached_input_tokens:24e4,output_tokens:13e4,reasoning_output_tokens:3e4,total_tokens:47e4}}],by_exit:[{name:"completed:0",calls:438,failures:0,duration_ms:104e4,max_duration_ms:22100,output_chars:83e4,output_lines:13100,totals:{input_tokens:22e4,cached_input_tokens:78e4,output_tokens:35e4,reasoning_output_tokens:82e3,total_tokens:1432e3}},{name:"completed:1",calls:72,failures:72,duration_ms:155e3,max_duration_ms:11800,output_chars:12e4,output_lines:2300,totals:{input_tokens:3e4,cached_input_tokens:11e4,output_tokens:55e3,reasoning_output_tokens:8e3,total_tokens:195e3}}]}};if(n!=="claude")return{from:e,to:t,source:n,scope:"unsupported",totals:{input_tokens:0,cached_input_tokens:0,cache_creation_input_tokens:0,output_tokens:0,reasoning_output_tokens:0,total_tokens:0},categories:["system_prefix","conversation_history","user_input","tool_calls","subagents","reasoning","assistant_response"].map(l=>({key:l,totals:{input_tokens:0,cached_input_tokens:0,cache_creation_input_tokens:0,output_tokens:0,reasoning_output_tokens:0,total_tokens:0},percent:0})),session_count:0,message_count:0};const a=[{key:"system_prefix",total:12896539},{key:"conversation_history",total:320207200},{key:"user_input",total:998025},{key:"tool_calls",total:4808739},{key:"subagents",total:1022828},{key:"reasoning",total:11073118},{key:"assistant_response",total:1289174}],o=a.reduce((l,u)=>l+u.total,0),s=a.map(({key:l,total:u})=>({key:l,totals:{input_tokens:l==="user_input"?u:0,cached_input_tokens:l==="conversation_history"?Math.round(u*.95):0,cache_creation_input_tokens:l==="system_prefix"?u:l==="conversation_history"?Math.round(u*.05):0,output_tokens:["tool_calls","subagents","reasoning","assistant_response"].includes(l)?u:0,reasoning_output_tokens:l==="reasoning"?u:0,total_tokens:u},percent:Number((u/o*100).toFixed(2))}));return{from:e,to:t,source:"claude",scope:"supported",totals:{input_tokens:998025,cached_input_tokens:Math.round(320207200*.95),cache_creation_input_tokens:12896539+Math.round(320207200*.05),output_tokens:18193859,reasoning_output_tokens:11073118,total_tokens:o},categories:s,session_count:312,message_count:12046}}let du=null;function xL(){du=null}async function PL(e=fetch){if(du)return du;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 n=await t.json().catch(()=>null),a=typeof n?.token=="string"?n.token.trim():"";if(!a)throw new Error("Local auth token missing from response");return du=a,a}async function cd(e=fetch){return{"x-tokentracker-local-auth":await PL(e)}}const ya={usageSummary:"tokentracker-usage-summary",usageDaily:"tokentracker-usage-daily",usageHourly:"tokentracker-usage-hourly",usageMonthly:"tokentracker-usage-monthly",usageHeatmap:"tokentracker-usage-heatmap",usageModelBreakdown:"tokentracker-usage-model-breakdown",usageCategoryBreakdown:"tokentracker-usage-category-breakdown",projectUsageSummary:"tokentracker-project-usage-summary",userStatus:"tokentracker-user-status",localSync:"tokentracker-local-sync",usageLimits:"tokentracker-usage-limits"},SL={"tokentracker-usage-summary":"tokentracker-account-summary","tokentracker-usage-daily":"tokentracker-account-daily","tokentracker-usage-hourly":"tokentracker-account-hourly","tokentracker-usage-monthly":"tokentracker-account-monthly","tokentracker-usage-heatmap":"tokentracker-account-heatmap","tokentracker-usage-model-breakdown":"tokentracker-account-model-breakdown"};function CL(){return typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1")}async function Ua(e,t,n){const a=n?.accessToken,o=SL[e];if(!CL()&&a&&o){const h=rr().replace(/\/$/,""),m=new URL(`${h}/functions/${o}`);if(t)for(const[x,S]of Object.entries(t))S!=null&&S!==""&&m.searchParams.set(x,String(S));const y={Accept:"application/json"},v=wl();v&&(y.apikey=v),xw(a)&&(y.Authorization=`Bearer ${a}`);const _=await fetch(m.toString(),{headers:y,cache:"no-store"});if(!_.ok){const x=new Error(`Request failed with HTTP ${_.status}`);throw x.status=_.status,x}return _.json()}const s=new URL(`/functions/${e}`,window.location.origin);if(t)for(const[h,m]of Object.entries(t))m!=null&&m!==""&&s.searchParams.set(h,String(m));const{accessToken:l,...u}=n||{},f=await fetch(s.toString(),{headers:{Accept:"application/json"},cache:"no-store",...u});if(!f.ok){const h=new Error(`Request failed with HTTP ${f.status}`);throw h.status=f.status,h}return f.json()}function Yr({timeZone:e,tzOffsetMinutes:t}={}){const n={},a=typeof e=="string"?e.trim():"";return a&&(n.tz=a),Number.isFinite(t)&&(n.tz_offset_minutes=String(Math.trunc(t))),n}function Oi({source:e,model:t}={}){const n={},a=typeof e=="string"?e.trim().toLowerCase():"";a&&(n.source=a);const o=typeof t=="string"?t.trim():"";return o&&(n.model=o),n}async function $9({from:e,to:t,source:n,model:a,timeZone:o,tzOffsetMinutes:s,rolling:l=!1,accessToken:u}={}){if(_n())return gL({from:e,to:t,seed:u,rolling:l});const f=Yr({timeZone:o,tzOffsetMinutes:s}),h=Oi({source:n,model:a}),m=l?{rolling:"1"}:{};return Ua(ya.usageSummary,{from:e,to:t,...h,...f,...m},{accessToken:u})}async function H9({from:e,to:t,source:n,limit:a,timeZone:o,tzOffsetMinutes:s,accessToken:l}={}){if(_n())return vL({seed:l,limit:a});const u=Yr({timeZone:o,tzOffsetMinutes:s}),h={...Oi({source:n}),...u};return e&&(h.from=e),t&&(h.to=t),a!=null&&(h.limit=String(a)),Ua(ya.projectUsageSummary,h)}async function ji(e,t={}){const n=rr();if(!n)throw new Error("InsForge base URL not configured");const a=n.replace(/\/$/,""),o=new URL(`${a}/functions/${e}`);if(t.params)for(const[f,h]of Object.entries(t.params))h!=null&&h!==""&&o.searchParams.set(f,String(h));const s={Accept:"application/json","Content-Type":"application/json"},l=wl();l&&(s.apikey=l),t.accessToken&&xw(t.accessToken)&&(s.Authorization=`Bearer ${t.accessToken}`);const u=await fetch(o.toString(),{method:t.method||"GET",headers:s,...t.body!=null?{body:JSON.stringify(t.body)}:{}});if(!u.ok){const f=new Error(`Request failed with HTTP ${u.status}`);throw f.status=u.status,f}return u.json()}async function W9({accessToken:e,userId:t,period:n,metric:a,limit:o,offset:s}={}){return _n()?jw({seed:e||t,period:n,metric:a,limit:o,offset:s}):ji("tokentracker-leaderboard",{params:{period:n,limit:o,offset:s,user_id:t}})}async function nk({accessToken:e}={}){return ji("tokentracker-public-visibility",{accessToken:e,method:"GET"})}async function G9({accessToken:e,enabled:t,anonymous:n,display_name:a,github_url:o,show_github_url:s}={}){const l={};return t!==void 0&&(l.enabled=!!t),n!==void 0&&(l.anonymous=!!n),a!==void 0&&(l.display_name=String(a)),o!==void 0&&(l.github_url=o===null?null:String(o)),s!==void 0&&(l.show_github_url=!!s),ji("tokentracker-public-visibility",{accessToken:e,method:"POST",body:l})}async function K9({accessToken:e,period:t,source:n}={}){const a={};return t&&(a.period=t),typeof n=="string"&&n.trim()&&(a.source=n.trim()),ji("tokentracker-leaderboard-refresh",{accessToken:e,method:"POST",body:a})}async function q9({accessToken:e,userId:t,period:n}={}){if(_n()){const a=jw({seed:e,period:n,metric:"all",limit:250,offset:0}),o=Array.isArray(a?.entries)?a.entries:[],s=o.find(m=>m?.user_id===t)||o[0]||null,l=Number(s?.total_tokens)||0,u=new Date,f=Array.from({length:365}).map((m,y)=>{const v=new Date(u);return v.setUTCDate(v.getUTCDate()-(364-y)),{date:v.toISOString().slice(0,10),total_tokens:y%7===0?Math.floor(l/365):0}}),h=f.slice(-7);return{user:{user_id:t,display_name:s?.display_name||"Mock User",avatar_url:s?.avatar_url||null,github_url:s?.github_url||null,is_anonymous:!1,rank:s?.rank??null},period:{kind:n||"week",from:a?.from??null,to:a?.to??null,generated_at:a?.generated_at??new Date().toISOString()},totals:{total_tokens:l,estimated_cost_usd:Number(s?.estimated_cost_usd)||0,active_days:53,avg_per_day_usd:0},streak:{current_days:3,longest_days:12},best_day:l?{date:u.toISOString().slice(0,10),total_tokens:Math.floor(l/30),estimated_cost_usd:0}:null,models:{count:5,favorite:{model_name:"claude-opus-4-7",total_tokens:Math.floor(l/2)}},by_provider:[],heatmap:f,daily_trend:h}}return ji("tokentracker-leaderboard-profile",{accessToken:e,params:{user_id:t,period:n}})}function Uw(e){if(!e)return 0;let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return Math.abs(t%165)+24}async function Y9({userId:e}={}){return _n()?{count:Uw(e)}:ji("tokentracker-profile-likes",{params:{user_id:e}})}async function Z9({userId:e,delta:t,accessToken:n}={}){return _n()?{count:Math.max(0,Uw(e)+Number(t||0))}:ji("tokentracker-profile-likes",{accessToken:n,method:"POST",body:{user_id:e,delta:t}})}async function X9(e={}){if(_n()){const t=new Date().toISOString();return{user_id:"local-user",created_at:t,pro:{active:!1,sources:[],expires_at:null,partial:!1,as_of:t},subscriptions:{partial:!1,as_of:t,items:[]},install:{partial:!1,as_of:t,has_active_device_token:!1,has_active_device:!1,active_device_tokens:0,active_devices:0,latest_token_activity_at:null,latest_device_seen_at:null}}}return Ua(ya.userStatus)}async function Q9({signal:e}={}){const t=await cd(),n=await fetch(`/functions/${ya.localSync}`,{method:"POST",headers:{Accept:"application/json",...t},cache:"no-store",signal:e}),a=await n.json().catch(()=>({ok:!1,error:`Local sync request failed with HTTP ${n.status}`}));if(!n.ok||a?.ok===!1){const o=a?.error||a?.message||`Local sync request failed with HTTP ${n.status}`,s=new Error(o);throw s.status=n.status,s}return a}async function J9({from:e,to:t,source:n,timeZone:a,tzOffsetMinutes:o,accessToken:s}={}){if(_n())return _L({from:e,to:t,seed:s});const l=Yr({timeZone:a,tzOffsetMinutes:o}),u=Oi({source:n});return Ua(ya.usageModelBreakdown,{from:e,to:t,...u,...l},{accessToken:s})}async function eU({from:e,to:t,source:n="claude",timeZone:a,tzOffsetMinutes:o}={}){if(_n())return wL({from:e,to:t,source:n});const s=Yr({timeZone:a,tzOffsetMinutes:o});return Ua(ya.usageCategoryBreakdown,{from:e,to:t,source:n,...s})}async function tU({from:e,to:t,source:n,model:a,timeZone:o,tzOffsetMinutes:s,accessToken:l}={}){if(_n())return fL({from:e,to:t,seed:l});const u=Yr({timeZone:o,tzOffsetMinutes:s}),f=Oi({source:n,model:a});return Ua(ya.usageDaily,{from:e,to:t,...f,...u},{accessToken:l})}async function nU({day:e,source:t,model:n,timeZone:a,tzOffsetMinutes:o,accessToken:s}={}){if(_n())return pL({day:e,seed:s});const l=Yr({timeZone:a,tzOffsetMinutes:o}),u=Oi({source:t,model:n}),f=e?{day:e,...u,...l}:{...u,...l};return Ua(ya.usageHourly,f,{accessToken:s})}async function aU({months:e,to:t,source:n,model:a,timeZone:o,tzOffsetMinutes:s,accessToken:l}={}){if(_n())return mL({months:e,to:t,seed:l});const u=Yr({timeZone:o,tzOffsetMinutes:s}),f=Oi({source:n,model:a});return Ua(ya.usageMonthly,{...e?{months:String(e)}:{},...t?{to:t}:{},...f,...u},{accessToken:l})}async function rU(e={}){const t=e?.refresh?{refresh:"1"}:void 0;return Ua(ya.usageLimits,t)}async function iU({weeks:e,to:t,weekStartsOn:n,source:a,model:o,timeZone:s,tzOffsetMinutes:l,accessToken:u}={}){if(_n())return kL({weeks:e,to:t,weekStartsOn:n,seed:u});const f=Yr({timeZone:s,tzOffsetMinutes:l}),h=Oi({source:a,model:o});return Ua(ya.usageHeatmap,{weeks:String(e),to:t,week_starts_on:n,...h,...f},{accessToken:u})}const ak="tokentracker_native_app";let Bw=null;const dp=new Set;typeof window<"u"&&window.addEventListener("native:systemAppearanceChanged",e=>{const t=e?.detail?.isDark;if(typeof t=="boolean"){Bw=t;try{const n=document.documentElement;t?n.classList.add("dark"):n.classList.remove("dark")}catch{}dp.forEach(n=>{try{n(t)}catch{}})}});function rk(){return Bw}function TL(e){return dp.add(e),()=>dp.delete(e)}function ud(){if(typeof window>"u")return!1;try{if(new URLSearchParams(window.location.search).get("app")==="1"){try{window.localStorage.setItem(ak,"1")}catch{}return!0}return window.localStorage.getItem(ak)==="1"}catch{return!1}}function pa(){return typeof window>"u"?!1:!!window.webkit?.messageHandlers?.nativeBridge}function Em(){return typeof window>"u"?!1:!!window.chrome?.webview&&ud()}function Fw(){return typeof window>"u"?null:window.webkit?.messageHandlers?.nativeBridge??null}function oU(){return!!Fw()}function Sl(e){const t=Fw();if(!t)return!1;try{return t.postMessage(e),!0}catch(n){return console.warn("[tokentracker] nativeBridge post failed:",n),!1}}function sU(){return Sl({type:"getSettings"})}function Ys(e,t){return Sl({type:"setSetting",key:e,value:t})}function lU(e){return Sl({type:"action",name:e})}function EL(){return Sl({type:"getSystemAppearance"})}function AL(e,t){if(!pa())return;Sl({type:"setChromeAppearance",isDark:e==="dark",theme:t??"system"})}function cU(e){if(typeof window>"u")return()=>{};const t=n=>{n&&n.detail&&typeof n.detail=="object"&&e(n.detail)};return window.addEventListener("native:settings",t),()=>window.removeEventListener("native:settings",t)}const zw=k.createContext(null);function RL(e){if(!e||typeof e!="object")return"";const t=e.user_metadata&&typeof e.user_metadata=="object"?e.user_metadata:{},n=e.profile&&typeof e.profile=="object"?e.profile:{},a=t.full_name||t.name||n.name||t.user_name||t.preferred_username;return typeof a=="string"&&a.trim()?a.trim():typeof e.email=="string"&&e.email.includes("@")?e.email.split("@")[0].trim()||e.email.trim():typeof e.email=="string"?e.email.trim():""}function ik(e){if(!e||typeof e!="object")return null;const t=e,n=t.session&&typeof t.session=="object"?t.session:null,a=typeof t.accessToken=="string"&&t.accessToken||typeof t.access_token=="string"&&t.access_token||n&&typeof n.accessToken=="string"&&n.accessToken||n&&typeof n.access_token=="string"&&n.access_token||null;return a&&a.length>0?a:null}async function bf(e,t={}){if(!e)return null;const n=Math.max(0,Math.floor(Number(t.skewMs)||6e4)),a=e.tokenManager,o=()=>a?.getAccessToken?.()??a?.getSession?.()?.accessToken??null;let s=o();if(!s||FR(s,n)){const{data:l}=await e.auth.refreshSession();if(s=o()??ik(l)??null,!s&&typeof e.auth.getCurrentUser=="function")try{await e.auth.getCurrentUser(),s=o()??ik(l)??null}catch{}}return s||null}function LL({children:e}){const[t,n]=k.useState(null),[a,o]=k.useState(null),[s,l]=k.useState(!0);k.useEffect(()=>{if(!cp()){n(null),o(null),l(!1);return}n(IR())},[]),k.useEffect(()=>{if(!t)return;let z=!0;return l(!0),(async()=>{try{let{data:H,error:P}=await t.auth.getCurrentUser();if(!z)return;if(!P&&!H?.user){if(await new Promise(X=>setTimeout(X,150)),!z)return;const Z=await t.auth.getCurrentUser();H=Z.data,P=Z.error}if(P){o(null);return}o(H?.user??null)}catch{z&&o(null)}finally{z&&l(!1)}})(),()=>{z=!1}},[t]);const u=k.useCallback(async()=>{if(t)try{let{data:z,error:H}=await t.auth.getCurrentUser();if(!H&&!z?.user){await new Promise(Z=>setTimeout(Z,150));const P=await t.auth.getCurrentUser();z=P.data,H=P.error}if(H){o(null);return}o(z?.user??null)}catch{o(null)}},[t]),f=k.useCallback(async(z,H)=>{if(!t)return{error:new Error("InsForge client not configured")};const P=typeof window<"u"&&window.webkit?.messageHandlers?.nativeOAuth;if(P){const fe=Em()?`${window.location.origin}/auth/callback`:typeof H=="string"&&H.trim()?H.trim():`${window.location.origin}/auth/callback`,he=await t.auth.signInWithOAuth({provider:z,redirectTo:fe,skipBrowserRedirect:!0});if(he.data?.url){try{const Q=await cd();await fetch("/api/auth-bridge/verifier",{method:"PUT",headers:{"Content-Type":"application/json",...Q},body:JSON.stringify({native:!0})})}catch{}P.postMessage(he.data.url)}return he}const Z=typeof H=="string"&&H.trim()?H.trim():typeof window<"u"?`${window.location.origin}/dashboard`:void 0;return await t.auth.signInWithOAuth({provider:z,redirectTo:Z})},[t]),h=k.useCallback(async z=>{if(!t)return{data:null,error:new Error("InsForge client not configured")};const{data:H,error:P}=await t.auth.signInWithPassword(z);return H?.user&&o(H.user),{data:H,error:P}},[t]),m=k.useCallback(async z=>{if(!t)return{data:null,error:new Error("InsForge client not configured")};const{data:H,error:P}=await t.auth.signUp(z);return H?.user&&H?.accessToken&&o(H.user),{data:H,error:P}},[t]),y=k.useCallback(async()=>t?t.auth.getPublicAuthConfig():{data:null,error:new Error("InsForge client not configured")},[t]),v=k.useCallback(async()=>{t&&(await t.auth.signOut(),_w(),xL(),o(null))},[t]),_=k.useCallback(async()=>bf(t),[t]),[x,S]=k.useState(null),[C,D]=k.useState(!1),M=k.useMemo(()=>RL(a),[a]);k.useEffect(()=>{if(!a||!t){S(null),D(!1);return}let z=!0;return(async()=>{try{const H=await bf(t);if(!z||!H){z&&D(!0);return}const P=await nk({accessToken:H});z&&P?.display_name&&S(P.display_name)}catch{}z&&D(!0)})(),()=>{z=!1}},[a,t]);const E=C?x||M:"",A=k.useCallback(async()=>{if(t)try{const z=await bf(t);if(!z)return;const H=await nk({accessToken:z});H?.display_name&&S(H.display_name)}catch{}},[t]),B=k.useMemo(()=>!cp()||!t?{enabled:!1,client:null,user:null,signedIn:!1,loading:!1,displayName:"",refreshUser:async()=>{},refreshDisplayName:async()=>{},signInWithOAuth:async()=>({error:new Error("InsForge not configured")}),signInWithPassword:async()=>({data:null,error:new Error("InsForge not configured")}),signUp:async()=>({data:null,error:new Error("InsForge not configured")}),getPublicAuthConfig:async()=>({data:null,error:new Error("InsForge not configured")}),signOut:async()=>{},getAccessToken:async()=>null}:{enabled:!0,client:t,user:a,signedIn:!!a,loading:s,displayName:E,refreshUser:u,refreshDisplayName:A,signInWithOAuth:f,signInWithPassword:h,signUp:m,getPublicAuthConfig:y,signOut:v,getAccessToken:_},[t,a,s,E,u,A,f,h,m,y,v,_]);return T.jsx(zw.Provider,{value:B,children:e})}function Vo(){return k.useContext(zw)}const DL=`key,module,page,component,slot,text,notes,status
43
- header.auth.sign_in_aria,shared,*,InsforgeUserHeaderControls,sign_in_aria,"Sign in",,active
44
- login.back_home,shared,LoginPage,LoginPage,back_home,"Back to home",,active
45
- login.cloud_only,shared,LoginPage,LoginPage,cloud_only,"Cloud sign-in is not configured. Use the local dashboard on localhost.",,active
46
- login.title,shared,LoginPage,LoginPage,title,"Sign in",,active
47
- login.subtitle,shared,LoginPage,LoginPage,subtitle,"Choose email or a connected account.",,active
48
- login.dismiss,shared,LoginPage,LoginPage,dismiss,"Dismiss",,active
49
- login.verify_email_success,shared,LoginPage,LoginPage,verify_ok,"Email verified. You can sign in below.",,active
50
- login.verify_email_pending,shared,LoginPage,LoginPage,verify_pending,"Check your email to verify your account, then sign in.",,active
51
- login.oauth.continue,shared,LoginPage,LoginPage,oauth_continue,"Continue with {{provider}}",,active
52
- login.divider,shared,LoginPage,LoginPage,divider,"Or",,active
53
- login.tab.sign_in,shared,LoginPage,LoginPage,tab_sign_in,"Sign in",,active
54
- login.tab.sign_up,shared,LoginPage,LoginPage,tab_sign_up,"Create account",,active
55
- login.field.name,shared,LoginPage,LoginPage,field_name,"Display name",,active
56
- login.field.name_placeholder,shared,LoginPage,LoginPage,name_placeholder,"Optional",,active
57
- login.field.email,shared,LoginPage,LoginPage,field_email,"Email",,active
58
- login.field.password,shared,LoginPage,LoginPage,field_password,"Password",,active
59
- login.password_hint,shared,LoginPage,LoginPage,pw_hint,"At least {{min}} characters.",,active
60
- login.submit.sign_in,shared,LoginPage,LoginPage,submit_sign_in,"Sign in with email",,active
61
- login.submit.sign_up,shared,LoginPage,LoginPage,submit_sign_up,"Create account",,active
62
- login_modal.subtitle,shared,*,LoginModal,subtitle,"Sign in to join the leaderboard",,active
63
- login_modal.continue_email,shared,*,LoginModal,continue_email,"Continue with Email",,active
64
- login_modal.divider_email,shared,*,LoginModal,divider_email,"email",,active
65
- shared.placeholder.short,shared,*,*,placeholder_short,"--",,active
66
- shared.unit.percent,shared,*,*,unit_percent,"%",,active
67
- shared.unit.thousand_abbrev,shared,*,*,unit_thousand_abbrev,"K",,active
68
- shared.unit.million_abbrev,shared,*,*,unit_million_abbrev,"M",,active
69
- shared.unit.billion_abbrev,shared,*,*,unit_billion_abbrev,"B",,active
70
- shared.data_source,shared,*,*,label,"Data source: {{source}}",,active
71
- shared.error.prefix,shared,*,*,label,"Error: {{error}}",,active
72
- shared.status.unsynced,shared,*,*,status,"—",,active
73
- error.boundary.title,shared,*,ErrorBoundary,title,"Something went wrong",,active
74
- error.boundary.subtitle,shared,*,ErrorBoundary,subtitle,"This view failed to render",,active
75
- error.boundary.hint,shared,*,ErrorBoundary,hint,"Open the console, then reload the page",,active
76
- error.boundary.no_details,shared,*,ErrorBoundary,details,"No error details",,active
77
- error.boundary.action.reload,shared,*,ErrorBoundary,action_reload,"Reload",,active
78
-
79
- landing.handle.default,landing,LandingPage,LandingPage,handle_default,"VIBE_USER",,active
80
- landing.handle.special,landing,LandingPage,LandingPage,handle_special,"VOLT",,active
81
- landing.screenshot.alt,landing,LandingPage,LandingPage,screenshot_alt,"TokenTracker dashboard screenshot",,active
82
- landing.nav.login,landing,LandingPage,LandingPage,nav_login,"LOGIN",,active
83
- landing.nav.signup,landing,LandingPage,LandingPage,nav_signup,"SIGN UP",,active
84
- landing.install.command,landing,LandingPage,LandingPage,install_command,"npx --yes tokentracker-cli",,active
85
- landing.install.action.copy,landing,LandingPage,LandingPage,install_copy,"COPY COMMAND",,active
86
- landing.install.action.copied,landing,LandingPage,LandingPage,install_copied,"COPIED",,active
87
- landing.meta.title,landing,LandingPage,Meta,title,"Token Tracker — Token Usage Tracker for AI Agent CLIs",,active
88
- landing.meta.description,landing,LandingPage,Meta,description,"Automatically monitor token usage across Claude Code, Cursor, Codex, and more. Local-first, privacy-focused, and zero manual configuration.",,active
89
- landing.meta.og_site_name,landing,LandingPage,Meta,og_site_name,"Token Tracker",,active
90
- landing.meta.og_type,landing,LandingPage,Meta,og_type,"website",,active
91
- landing.meta.og_image,landing,LandingPage,Meta,og_image,"https://www.tokentracker.cc/dashboard-dark.png",,active
92
- landing.meta.og_url,landing,LandingPage,Meta,og_url,"https://www.tokentracker.cc/",,active
93
- landing.meta.twitter_card,landing,LandingPage,Meta,twitter_card,"summary_large_image",,active
94
- share.meta.title,share,SharePage,Meta,title,"Token Tracker Share",,active
95
- share.meta.description,share,SharePage,Meta,description,"Share a Token Tracker dashboard snapshot with token usage insights across models, projects, and time windows.",,active
96
- share.meta.og_site_name,share,SharePage,Meta,og_site_name,"Token Tracker",,active
97
- share.meta.og_type,share,SharePage,Meta,og_type,"website",,active
98
- share.meta.og_image,share,SharePage,Meta,og_image,"https://www.tokentracker.cc/dashboard-dark.png",,active
99
- share.meta.og_url,share,SharePage,Meta,og_url,"https://www.tokentracker.cc/share",,active
100
- share.meta.twitter_card,share,SharePage,Meta,twitter_card,"summary_large_image",,active
101
- landing.handle.placeholder,landing,LandingPage,LandingPage,handle_placeholder,"TRY '{{handle}}'",,active
102
- landing.rank.expectation,landing,LandingPage,LandingPage,rank_expectation,"RANK_EXPECTATION: {{rank}}",,active
103
- landing.rank.singularity,landing,LandingPage,LandingPage,rank_singularity,"APEX",,active
104
- landing.rank.unranked,landing,LandingPage,LandingPage,rank_unranked,"UNRANKED",,active
105
- landing.cta.primary,landing,LandingPage,LandingPage,cta_primary,"View Dashboard",,active
106
- landing.cta.secondary,landing,LandingPage,LandingPage,cta_secondary,"GitHub",,active
107
-
108
-
109
-
110
-
111
-
112
-
113
- landing.v2.hero.title_line1,landing,LandingPage,MarketingLanding,hero_title_1,"TRACK ALL YOUR",,active
114
- landing.v2.hero.title_line2,landing,LandingPage,MarketingLanding,hero_title_2,"AI TOKENS",,active
115
- landing.v2.install.mac_cta,landing,LandingPage,MarketingLanding,mac_cta,"Download for macOS",,active
116
- landing.v2.install.win_cta,landing,LandingPage,MarketingLanding,win_cta,"Download for Windows",,active
117
- landing.v2.install.desktop_cta,landing,LandingPage,MarketingLanding,desktop_cta,"Download desktop app",,active
118
- landing.v2.install.os_macos,landing,LandingPage,MarketingLanding,os_macos,"macOS",,active
119
- landing.v2.install.os_windows,landing,LandingPage,MarketingLanding,os_windows,"Windows",,active
120
- landing.v2.install.availability,landing,LandingPage,MarketingLanding,availability,"Available for macOS and Windows",,active
121
- landing.v2.models.title,landing,LandingPage,MarketingLanding,models_title,"SUPPORTED AI CLI TOOLS",,active
122
- landing.v2.compare.kicker,landing,LandingPage,MarketingLanding,compare_kicker,"SEAMLESS TRACKING",,active
123
- landing.v2.compare.title,landing,LandingPage,MarketingLanding,compare_title,"Stop guessing your AI usage.",,active
124
- landing.v2.compare.subtitle,landing,LandingPage,MarketingLanding,compare_subtitle,"AI CLI tools hide raw usage data in obscure local files. TokenTracker consolidates them into a local-first dashboard in real-time.",,active
125
- landing.v2.distill.body,landing,LandingPage,MarketingLanding,distill_body,"100% local processing. No prompts or code are ever collected.",,active
126
- landing.v2.compare.with.title,landing,LandingPage,MarketingLanding,with_title,"WITH TOKEN TRACKER",,active
127
- landing.v2.compare.with.p1,landing,LandingPage,MarketingLanding,with_p1,"Centralized usage dashboard",,active
128
- landing.v2.compare.with.p2,landing,LandingPage,MarketingLanding,with_p2,"Real-time token metrics",,active
129
- landing.v2.compare.with.p3,landing,LandingPage,MarketingLanding,with_p3,"100% local, privacy-guaranteed",,active
130
- landing.v2.compare.with.p4,landing,LandingPage,MarketingLanding,with_p4,"Multi-client terminal audit trail",,active
131
- landing.v2.compare.without.title,landing,LandingPage,MarketingLanding,without_title,"WITHOUT IT",,active
132
- landing.v2.compare.without.p1,landing,LandingPage,MarketingLanding,without_p1,"Scattered JSON log files",,active
133
- landing.v2.compare.without.p2,landing,LandingPage,MarketingLanding,without_p2,"Blind to token consumption",,active
134
- landing.v2.compare.without.p3,landing,LandingPage,MarketingLanding,without_p3,"Unexpected API bills",,active
135
- landing.v2.compare.without.p4,landing,LandingPage,MarketingLanding,without_p4,"Zero historical audit logs",,active
136
- landing.v2.footer.line,landing,LandingPage,MarketingLanding,footer_line,"Token Tracker — Made by developers, for developers.",,active
137
- landing.v2.nav.status,landing,LandingPage,MarketingLanding,nav_status,"Status",,active
138
- landing.v2.nav.github,landing,LandingPage,MarketingLanding,nav_github,"GitHub",,active
139
- landing.v2.models.agent.codex,landing,LandingPage,MarketingLanding,agent_codex,"CODEX",,active
140
- landing.v2.models.agent.claude_code,landing,LandingPage,MarketingLanding,agent_claude_code,"CLAUDE CODE",,active
141
- landing.v2.models.agent.cursor,landing,LandingPage,MarketingLanding,agent_cursor,"CURSOR",,active
142
- landing.v2.models.agent.gemini,landing,LandingPage,MarketingLanding,agent_gemini,"GEMINI",,active
143
- landing.v2.models.agent.opencode,landing,LandingPage,MarketingLanding,agent_opencode,"OPENCODE",,active
144
- landing.v2.models.agent.openclaw,landing,LandingPage,MarketingLanding,agent_openclaw,"OPENCLAW",,active
145
- landing.v2.cta.primary,landing,LandingPage,MarketingLanding,cta_primary,"Dashboard",,active
146
- landing.v2.hero.subtagline,landing,LandingPage,MarketingLanding,hero_subtagline,"Automatically monitor token usage across Claude Code, Cursor, Codex, and more. Local-first, privacy-focused, and zero manual configuration.",,active
147
-
148
-
149
-
150
-
151
- identity_card.rank_label,ui,IdentityCard,IdentityCard,rank_label,"Started",,active
152
- identity_card.streak_label,ui,IdentityCard,IdentityCard,streak_label,"Active days",,active
153
- identity_card.rank_placeholder,ui,IdentityCard,IdentityCard,rank_placeholder,"—",,active
154
- identity_card.streak_value,ui,IdentityCard,IdentityCard,streak_value,"{{days}} DAY",,active
155
-
156
-
157
- dashboard.core_index.collapse_label,dashboard,DashboardPage,UsagePanel,toggle,"▾",,active
158
- dashboard.core_index.expand_label,dashboard,DashboardPage,UsagePanel,toggle,"▸",,active
159
- dashboard.core_index.collapse_aria,dashboard,DashboardPage,UsagePanel,toggle_aria,"Collapse model breakdown",,active
160
- dashboard.core_index.expand_aria,dashboard,DashboardPage,UsagePanel,toggle_aria,"Expand model breakdown",,active
161
- usage.summary.total,ui,UsagePanel,UsagePanel,summary_label_total,"Total tokens",,active
162
- usage.metric.total,ui,UsagePanel,UsagePanel,metric_total,"Total",,active
163
- usage.metric.input,ui,UsagePanel,UsagePanel,metric_input,"Input",,active
164
- usage.metric.output,ui,UsagePanel,UsagePanel,metric_output,"Output",,active
165
- usage.metric.cached_input,ui,UsagePanel,UsagePanel,metric_cached_input,"Cached input",,active
166
- usage.metric.reasoning_output,ui,UsagePanel,UsagePanel,metric_reasoning_output,"Reasoning output",,active
167
- usage.button.refresh,ui,UsagePanel,UsagePanel,button_refresh,"Refresh",,active
168
-
169
- dashboard.rolling.title,ui,RollingUsagePanel,RollingUsagePanel,title,"Recent Activity",,active
170
- dashboard.rolling.last_7d,ui,RollingUsagePanel,RollingUsagePanel,label_last_7d,"Last 7 days",,active
171
- dashboard.rolling.last_30d,ui,RollingUsagePanel,RollingUsagePanel,label_last_30d,"Last 30 days",,active
172
- dashboard.rolling.avg_active_day,ui,RollingUsagePanel,RollingUsagePanel,label_avg_active_day,"Daily average",,active
173
-
174
- dashboard.projects.title,ui,ProjectUsagePanel,ProjectUsagePanel,title,"Project Usage",,active
175
- dashboard.projects.tokens_label,ui,ProjectUsagePanel,ProjectUsagePanel,tokens_label,"Tokens",,active
176
- dashboard.projects.stars_label,ui,ProjectUsagePanel,ProjectUsagePanel,stars_label,"STAR",,active
177
- dashboard.projects.limit_label,ui,ProjectUsagePanel,ProjectUsagePanel,limit_label,"Show",,active
178
- dashboard.projects.limit_aria,ui,ProjectUsagePanel,ProjectUsagePanel,limit_aria,"Select repository limit",,active
179
- dashboard.projects.limit_top_3,ui,ProjectUsagePanel,ProjectUsagePanel,limit_top_3,"TOP 3",,active
180
- dashboard.projects.limit_top_6,ui,ProjectUsagePanel,ProjectUsagePanel,limit_top_6,"TOP 6",,active
181
- dashboard.projects.limit_top_10,ui,ProjectUsagePanel,ProjectUsagePanel,limit_top_10,"TOP 10",,active
182
- dashboard.projects.empty,ui,ProjectUsagePanel,ProjectUsagePanel,empty,"No public repositories",,active
183
- dashboard.widgets.title,dashboard,DashboardPage,WidgetOnboardingCard,title,"Desktop Widgets",,active
184
- dashboard.widgets.hint,dashboard,DashboardPage,WidgetOnboardingCard,hint,"Right-click your desktop → Edit Widgets → search ""TokenTracker""",,active
185
- dashboard.widgets.dismiss_aria,dashboard,DashboardPage,WidgetOnboardingCard,dismiss_aria,"Dismiss widget intro",,active
186
- widgets.page.title,dashboard,WidgetsPage,WidgetsPage,title,"Widgets",,active
187
- widgets.cta.open_gallery,dashboard,WidgetsPage,WidgetsPage,cta_open_gallery,"Open Widget Gallery",,active
188
- widgets.cta.download,dashboard,WidgetsPage,WidgetsPage,cta_download,"Download Mac App",,active
189
- widgets.cta.macos_only,dashboard,WidgetsPage,WidgetsPage,cta_macos_only,"macOS only",,active
190
- widgets.menubar.section.title,dashboard,WidgetsPage,WidgetsPage,menubar_section_title,"Menu Bar",,active
191
- widgets.gallery.section.title,dashboard,WidgetsPage,WidgetsPage,gallery_section_title,"Desktop Widgets",,active
192
- widgets.summary.name,dashboard,WidgetsPage,WidgetsPage,summary_name,"Usage Summary",,active
193
- widgets.summary.description,dashboard,WidgetsPage,WidgetsPage,summary_desc,"Today and seven-day usage with a compact sparkline.",,active
194
- widgets.heatmap.name,dashboard,WidgetsPage,WidgetsPage,heatmap_name,"Activity Heatmap",,active
195
- widgets.heatmap.description,dashboard,WidgetsPage,WidgetsPage,heatmap_desc,"GitHub-style daily calendar. Spot streaks and quiet days at a glance.",,active
196
- widgets.topModels.name,dashboard,WidgetsPage,WidgetsPage,topmodels_name,"Top Models",,active
197
- widgets.topModels.description,dashboard,WidgetsPage,WidgetsPage,topmodels_desc,"Your heaviest-used models ranked by token share.",,active
198
- widgets.limits.name,dashboard,WidgetsPage,WidgetsPage,limits_name,"Usage Limits",,active
199
- widgets.limits.description,dashboard,WidgetsPage,WidgetsPage,limits_desc,"Live rate-limit progress for Claude, Codex, Cursor, Gemini and more.",,active
200
- dashboard.cost_breakdown.title,ui,CostAnalysisModal,CostAnalysisModal,title,"Cost Breakdown",,active
201
- dashboard.cost_breakdown.total_label,ui,CostAnalysisModal,CostAnalysisModal,total_label,"Estimated Total Cost",,active
202
- dashboard.cost_breakdown.close,ui,CostAnalysisModal,CostAnalysisModal,close_label,"Close",,active
203
-
204
-
205
- trend.monitor.label,ui,TrendMonitor,TrendMonitor,label,"Usage Trend",,active
206
- trend.zoom.open_aria,ui,TrendMonitor,TrendMonitor,zoom_open_aria,"Expand to full screen",,active
207
- trend.zoom.close_aria,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_close_aria,"Close",,active
208
- trend.zoom.badge,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_badge,"Trend Insight",,active
209
- trend.zoom.desc,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_desc,"Hover any bar to inspect tokens, cost and conversations. Switch granularity to drill from months down to half-hours.",,active
210
- trend.zoom.insight_badge,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_insight_badge,"Insight",,active
211
- trend.zoom.tooltip.cost,ui,TrendMonitor,TrendMonitor,zoom_tooltip_cost,"cost",,active
212
- trend.zoom.tooltip.conversations,ui,TrendMonitor,TrendMonitor,zoom_tooltip_conversations,"conversations",,active
213
- trend.zoom.stats.tokens,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_stats_tokens,"Total Tokens",,active
214
- trend.zoom.stats.cost,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_stats_cost,"Total Cost",,active
215
- trend.zoom.stats.conversations,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_stats_conversations,"Conversations",,active
216
- trend.zoom.stats.peak,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_stats_peak,"Peak Bucket",,active
217
- trend.zoom.gran.aria,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_gran_aria,"Granularity",,active
218
- trend.zoom.gran.30min,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_gran_30min,"30 min",,active
219
- trend.zoom.gran.day,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_gran_day,"Day",,active
220
- trend.zoom.gran.month,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_gran_month,"Month",,active
221
- trend.zoom.prev_day,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_prev_day,"Previous day",,active
222
- trend.zoom.next_day,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_next_day,"Next day",,active
223
- trend.zoom.loading,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_loading,"Loading…",,active
224
- trend.zoom.pick_day,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_pick_day,"Pick a day",,active
225
- trend.zoom.pick_range,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_pick_range,"Pick a date range",,active
226
- trend.zoom.insight.empty,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_insight_empty,"A quiet stretch. Not a single token crossed the wire.",,active
227
- trend.zoom.insight.calm,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_insight_calm,"Light touch. The model mostly sat on standby, waking only when you reached for it.",,active
228
- trend.zoom.insight.steady,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_insight_steady,"A steady rhythm across {{active}} active stretches, cresting at {{peak}}. The kind of pace that ships things without drama.",,active
229
- trend.zoom.insight.heavy,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_insight_heavy,"Heavy lifting: {{active}} stretches running hot, peaking at {{peak}}. This is output from someone who manufactures momentum instead of waiting for it.",,active
230
- trend.zoom.insight.massive,ui,TrendMonitorZoomModal,TrendMonitorZoomModal,zoom_insight_massive,"Industrial scale. A {{peak}} peak and throughput that never cools. At this volume you are not using the model, you are running a foundry.",,active
231
-
232
- heatmap.title,ui,ActivityHeatmap,ActivityHeatmap,title,"Activity Heatmap",,active
233
- heatmap.empty,ui,ActivityHeatmap,ActivityHeatmap,empty_state,"No activity data yet.",,active
234
- heatmap.legend.less,ui,ActivityHeatmap,ActivityHeatmap,legend_less,"Less",,active
235
- heatmap.legend.more,ui,ActivityHeatmap,ActivityHeatmap,legend_more,"More",,active
236
- heatmap.legend.utc,ui,ActivityHeatmap,ActivityHeatmap,legend_utc,"UTC",,active
237
- heatmap.tooltip,ui,ActivityHeatmap,ActivityHeatmap,tooltip,"{{day}} • {{value}} {{unit}} • {{tz}}",,active
238
- heatmap.unit.tokens,ui,ActivityHeatmap,ActivityHeatmap,unit_tokens,"tokens",,active
239
- heatmap.iso.aria,ui,ActivityHeatmap,ActivityHeatmap3D,iso_aria,"3D isometric activity heatmap",,active
240
- heatmap.view.2d,ui,ActivityHeatmap,ActivityHeatmap,view_2d,"2D",,active
241
- heatmap.view.3d,ui,ActivityHeatmap,ActivityHeatmap,view_3d,"3D",,active
242
- heatmap.month.jan,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Jan",,active
243
- heatmap.month.feb,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Feb",,active
244
- heatmap.month.mar,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Mar",,active
245
- heatmap.month.apr,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Apr",,active
246
- heatmap.month.may,ui,ActivityHeatmap,ActivityHeatmap,month_label,"May",,active
247
- heatmap.month.jun,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Jun",,active
248
- heatmap.month.jul,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Jul",,active
249
- heatmap.month.aug,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Aug",,active
250
- heatmap.month.sep,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Sep",,active
251
- heatmap.month.oct,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Oct",,active
252
- heatmap.month.nov,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Nov",,active
253
- heatmap.month.dec,ui,ActivityHeatmap,ActivityHeatmap,month_label,"Dec",,active
254
- heatmap.day.sun,ui,ActivityHeatmap,ActivityHeatmap,day_label,"Sun",,active
255
- heatmap.day.mon,ui,ActivityHeatmap,ActivityHeatmap,day_label,"Mon",,active
256
- heatmap.day.tue,ui,ActivityHeatmap,ActivityHeatmap,day_label,"Tue",,active
257
- heatmap.day.wed,ui,ActivityHeatmap,ActivityHeatmap,day_label,"Wed",,active
258
- heatmap.day.thu,ui,ActivityHeatmap,ActivityHeatmap,day_label,"Thu",,active
259
- heatmap.day.fri,ui,ActivityHeatmap,ActivityHeatmap,day_label,"Fri",,active
260
- heatmap.day.sat,ui,ActivityHeatmap,ActivityHeatmap,day_label,"Sat",,active
261
-
262
-
263
-
264
-
265
- daily.sort.date.label,dashboard,DashboardPage,DailyTable,sort_label,"Date",,active
266
- daily.sort.date.title,dashboard,DashboardPage,DailyTable,sort_title,"Sort by Date",,active
267
- daily.sort.total.label,dashboard,DashboardPage,DailyTable,sort_label,"Total",,active
268
- daily.sort.total.title,dashboard,DashboardPage,DailyTable,sort_title,"Sort by Total",,active
269
- daily.sort.input.label,dashboard,DashboardPage,DailyTable,sort_label,"Input",,active
270
- daily.sort.input.title,dashboard,DashboardPage,DailyTable,sort_title,"Sort by Input",,active
271
- daily.sort.output.label,dashboard,DashboardPage,DailyTable,sort_label,"Output",,active
272
- daily.sort.output.title,dashboard,DashboardPage,DailyTable,sort_title,"Sort by Output",,active
273
- daily.sort.cached.label,dashboard,DashboardPage,DailyTable,sort_label,"Cached",,active
274
- daily.sort.cached.title,dashboard,DashboardPage,DailyTable,sort_title,"Sort by Cached input",,active
275
- daily.sort.reasoning.label,dashboard,DashboardPage,DailyTable,sort_label,"Reasoning",,active
276
- daily.sort.reasoning.title,dashboard,DashboardPage,DailyTable,sort_title,"Sort by Reasoning output",,active
277
- daily.sort.conversations.label,dashboard,DashboardPage,DailyTable,sort_label,"Convs",,active
278
- daily.sort.conversations.title,dashboard,DashboardPage,DailyTable,sort_title,"Sort by Conversations",,active
279
- details.pagination.prev,dashboard,DashboardPage,DailyTable,pagination_prev,"Prev",,active
280
- details.pagination.next,dashboard,DashboardPage,DailyTable,pagination_next,"Next",,active
281
-
282
-
283
-
284
- leaderboard.profile.nav.back,dashboard,LeaderboardProfilePage,Header,nav_back,"Leaderboard",,active
285
- leaderboard.profile.hero.rank_label,dashboard,LeaderboardProfilePage,Hero,rank_label,"Rank",,active
286
- leaderboard.title,dashboard,LeaderboardPage,LeaderboardPage,title,"Leaderboard",,active
287
- leaderboard.range,dashboard,LeaderboardPage,LeaderboardPage,range,"UTC {{period}} · {{from}} – {{to}}",,active
288
- leaderboard.range_loading,dashboard,LeaderboardPage,LeaderboardPage,range_loading,"UTC {{period}} · …",,active
289
- leaderboard.range.total,dashboard,LeaderboardPage,LeaderboardPage,range_total,"All time",,active
290
- leaderboard.generated_at,dashboard,LeaderboardPage,LeaderboardPage,generated_at,"Updated {{ts}}",,active
291
- leaderboard.period.week,dashboard,LeaderboardPage,LeaderboardPage,period_week,"Week",,active
292
- leaderboard.period.month,dashboard,LeaderboardPage,LeaderboardPage,period_month,"Month",,active
293
- leaderboard.period.total,dashboard,LeaderboardPage,LeaderboardPage,period_total,"All",,active
294
-
295
- leaderboard.me_label,dashboard,LeaderboardPage,LeaderboardPage,me_label,"You",,active
296
- leaderboard.anon_label,dashboard,LeaderboardPage,LeaderboardPage,anon_label,"Anonymous",,active
297
- leaderboard.error.unknown,dashboard,LeaderboardPage,LeaderboardPage,error_unknown,"Unknown error",,active
298
-
299
-
300
-
301
- leaderboard.loading,dashboard,LeaderboardPage,LeaderboardPage,state_loading,"Loading…",,active
302
- leaderboard.empty,dashboard,LeaderboardPage,LeaderboardPage,state_empty,"No data",,active
303
-
304
- leaderboard.column.rank,dashboard,LeaderboardPage,LeaderboardPage,column_rank,"Rank",,active
305
- leaderboard.column.user,dashboard,LeaderboardPage,LeaderboardPage,column_user,"User",,active
306
- leaderboard.column.total,dashboard,LeaderboardPage,LeaderboardPage,column_total,"Total",,active
307
- leaderboard.column.codex,dashboard,LeaderboardPage,LeaderboardPage,column_codex,"Codex",,active
308
- leaderboard.column.claude,dashboard,LeaderboardPage,LeaderboardPage,column_claude,"Claude",,active
309
- leaderboard.column.gemini,dashboard,LeaderboardPage,LeaderboardPage,column_gemini,"Gemini",,active
310
- leaderboard.column.cursor,dashboard,LeaderboardPage,LeaderboardPage,column_cursor,"Cursor",,active
311
- leaderboard.column.opencode,dashboard,LeaderboardPage,LeaderboardPage,column_opencode,"OpenCode",,active
312
- leaderboard.column.openclaw,dashboard,LeaderboardPage,LeaderboardPage,column_openclaw,"OpenClaw",,active
313
- leaderboard.column.hermes,dashboard,LeaderboardPage,LeaderboardPage,column_hermes,"Hermes",,active
314
- leaderboard.column.kiro,dashboard,LeaderboardPage,LeaderboardPage,column_kiro,"Kiro",,active
315
- leaderboard.column.copilot,dashboard,LeaderboardPage,LeaderboardPage,column_copilot,"GitHub Copilot",,active
316
- leaderboard.column.kimi,dashboard,LeaderboardPage,LeaderboardPage,column_kimi,"Kimi Code",,active
317
- leaderboard.column.kilo-cli,dashboard,LeaderboardPage,LeaderboardPage,column_kilo_cli,"Kilo CLI",,active
318
- leaderboard.column.kilo-code,dashboard,LeaderboardPage,LeaderboardPage,column_kilo_code,"Kilo Code",,active
319
- limits.copilot.otelHint.title,dashboard,LimitsPage,LimitsPage,otel_hint_title,"Track Copilot token usage",,active
320
- limits.copilot.otelHint.body,dashboard,LimitsPage,LimitsPage,otel_hint_body,"Limits load via your GitHub OAuth token. To also record per-token usage, enable Copilot's OpenTelemetry export and add these lines to your shell profile (~/.zshrc or ~/.bashrc):",,active
321
- limits.copilot.otelHint.copy,dashboard,LimitsPage,LimitsPage,otel_hint_copy,"Copy",,active
322
- limits.copilot.otelHint.copied,dashboard,LimitsPage,LimitsPage,otel_hint_copied,"Copied",,active
323
- leaderboard.column.supplemental,dashboard,LeaderboardPage,LeaderboardPage,column_supplemental,"Supplemental",,active
324
-
325
-
326
- leaderboard.pagination.prev,dashboard,LeaderboardPage,LeaderboardPage,pagination_prev,"Previous",,active
327
- leaderboard.pagination.next,dashboard,LeaderboardPage,LeaderboardPage,pagination_next,"Next",,active
328
- leaderboard.pagination.ellipsis,dashboard,LeaderboardPage,LeaderboardPage,pagination_ellipsis,"…",,active
329
- leaderboard.pagination.page_unknown,dashboard,LeaderboardPage,LeaderboardPage,pagination_unknown,"Page {{page}}",,active
330
-
331
-
332
-
333
-
334
- dashboard.session_expired.copy_label,dashboard,DashboardPage,AsciiBox,body,"run npx --yes tokentracker-cli init",,active
335
- dashboard.session_expired.copied,dashboard,DashboardPage,AsciiBox,body,"copied",,active
336
-
337
-
338
- dashboard.install.prompt,dashboard,DashboardPage,AsciiBox,install_prompt,"Install Node.js 18+ then run:",,active
339
- dashboard.install.cmd.init,dashboard,DashboardPage,AsciiBox,install_cmd,"npx --yes tokentracker-cli init",,active
340
- dashboard.install.cmd.init_link_code,dashboard,DashboardPage,AsciiBox,install_cmd,"npx --yes tokentracker-cli init --link-code {{link_code}}",,active
341
- dashboard.install.copy,dashboard,DashboardPage,AsciiBox,install_copy,"Copy install command",,active
342
- dashboard.install.copy_base,dashboard,DashboardPage,AsciiBox,install_copy,"Copy init command",,active
343
- dashboard.install.copied,dashboard,DashboardPage,AsciiBox,install_copy,"Copied to clipboard",,active
344
- dashboard.install.link_code.loading,dashboard,DashboardPage,AsciiBox,install_status,"Generating private code...",,active
345
- dashboard.install.link_code.failed,dashboard,DashboardPage,AsciiBox,install_status,"Private code unavailable",,active
346
- dashboard.install.cmd.sync,dashboard,DashboardPage,AsciiBox,install_cmd,"npx --yes tokentracker-cli sync",,active
347
-
348
-
349
-
350
- dashboard.daily.title,dashboard,DashboardPage,AsciiBox,title,"Daily Breakdown",,active
351
- dashboard.daily.empty,dashboard,DashboardPage,AsciiBox,empty_state,"No data yet. Use your AI CLI then run {{cmd}}.",,active
352
-
353
- dashboard.identity.title,dashboard,DashboardPage,IdentityCard,title,"Your Profile",,active
354
- dashboard.identity.subtitle,dashboard,DashboardPage,IdentityCard,subtitle,"Track your coding journey",,active
355
- dashboard.identity.fallback,dashboard,DashboardPage,IdentityCard,handle_fallback,"Anonymous",,active
356
-
357
-
358
- dashboard.screenshot.title_line1,dashboard,DashboardPage,ScreenshotTitle,title_line,"Coding Agent",,active
359
- dashboard.screenshot.title_line2,dashboard,DashboardPage,ScreenshotTitle,title_line,"2025 Wrapped",,active
360
- dashboard.screenshot.twitter_button,dashboard,DashboardPage,ScreenshotShare,button_label,"Share on X",,active
361
- dashboard.screenshot.twitter_label,dashboard,DashboardPage,ScreenshotShare,aria_label,"Share on X",,active
362
- dashboard.screenshot.twitter_hint,dashboard,DashboardPage,ScreenshotShare,helper_text,"Auto-copies image to clipboard",,active
363
- dashboard.screenshot.twitter_text,dashboard,DashboardPage,ScreenshotShare,share_text,"{{total_tokens}} tokens on the record.\\n{{model_name}} led with {{model_percent}}%.\\n\\nMy AI usage, unaudited →\\ntokentracker.cc",,active
364
-
365
- nav.usage,shared,*,Sidebar,nav_usage,"Tokens",,active
366
- nav.limits,shared,*,Sidebar,nav_limits,"Limits",,active
367
- nav.widgets,shared,*,Sidebar,nav_widgets,"macOS Widgets",,active
368
- nav.leaderboard,shared,*,Sidebar,nav_leaderboard,"Leaderboard",,active
369
- nav.collapse,shared,*,Sidebar,nav_collapse,"Collapse sidebar",,active
370
- nav.expand,shared,*,Sidebar,nav_expand,"Expand sidebar",,active
371
- nav.menu,shared,*,Sidebar,nav_menu,"Open navigation menu",,active
372
- nav.close_menu,shared,*,Sidebar,nav_close_menu,"Close navigation menu",,active
373
- nav.aside_label,shared,*,Sidebar,aside_label,"Main navigation",,active
374
- nav.nav_label,shared,*,Sidebar,nav_label,"Primary",,active
375
- limits.page.subtitle,ui,LimitsPage,LimitsPage,subtitle,"Rate limits and quota usage across your AI tools.",,active
376
- limits.settings.toggle_visible,ui,LimitsPage,LimitsSettingsPanel,toggle_visible,"Toggle visibility",,active
377
- limits.page.openSettings,ui,LimitsPage,LimitsPage,open_settings,"Display settings",,active
378
- nav.group.general,shared,*,Sidebar,group_general,"General",,active
379
- nav.group.tools,shared,*,Sidebar,group_tools,"Tools",,active
380
- nav.group.account,shared,*,Sidebar,group_account,"Account",,active
381
- nav.settings,shared,*,Sidebar,nav_settings,"Settings",,active
382
- header.auth.open_settings,shared,*,InsforgeUserHeaderControls,open_settings,"Open settings",,active
383
- settings.page.title,ui,SettingsPage,SettingsPage,title,"Settings",,active
384
- settings.page.subtitle,ui,SettingsPage,SettingsPage,subtitle,"Manage your account, appearance, and display preferences.",,active
385
- settings.section.appearance,ui,SettingsPage,SettingsPage,sec_appearance,"Appearance",,active
386
- settings.section.account,ui,SettingsPage,SettingsPage,sec_account,"Account",,active
387
- settings.section.limits,ui,SettingsPage,SettingsPage,sec_limits,"Limits Display",,active
388
- settings.appearance.theme.label,ui,SettingsPage,SettingsPage,theme_label,"Theme",,active
389
- settings.appearance.theme.hint,ui,SettingsPage,SettingsPage,theme_hint,"Choose how Token Tracker looks across the dashboard.",,active
390
- settings.appearance.theme.light,ui,SettingsPage,SettingsPage,theme_light,"Light",,active
391
- settings.appearance.theme.dark,ui,SettingsPage,SettingsPage,theme_dark,"Dark",,active
392
- settings.appearance.theme.system,ui,SettingsPage,SettingsPage,theme_system,"System",,active
393
- settings.appearance.currency.label,ui,SettingsPage,SettingsPage,currency_label,"Currency",,active
394
- settings.appearance.currency.hint,ui,SettingsPage,SettingsPage,currency_hint,"Select the display currency for usage costs.",,active
395
- settings.appearance.currency.opt.usd,ui,SettingsPage,SettingsPage,currency_opt_usd,"USD ($)",,active
396
- settings.appearance.currency.opt.eur,ui,SettingsPage,SettingsPage,currency_opt_eur,"EUR (€)",,active
397
- settings.appearance.currency.opt.gbp,ui,SettingsPage,SettingsPage,currency_opt_gbp,"GBP (£)",,active
398
- settings.appearance.currency.opt.cny,ui,SettingsPage,SettingsPage,currency_opt_cny,"CNY (¥)",,active
399
- settings.appearance.currency.opt.jpy,ui,SettingsPage,SettingsPage,currency_opt_jpy,"JPY (¥)",,active
400
- settings.appearance.currency.opt.hkd,ui,SettingsPage,SettingsPage,currency_opt_hkd,"HKD (HK$)",,active
401
- settings.appearance.currency.rate_source.default,ui,SettingsPage,SettingsPage,rate_source_default,"Bundled default rate",,active
402
- settings.appearance.currency.rate_source.fetched,ui,SettingsPage,SettingsPage,rate_source_fetched,"Source: open.er-api.com",,active
403
- settings.appearance.currency.rate_updated,ui,SettingsPage,SettingsPage,rate_updated,"updated {{when}}",,active
404
- settings.appearance.currency.rate_never,ui,SettingsPage,SettingsPage,rate_never,"awaiting first refresh",,active
405
- settings.account.displayName,ui,SettingsPage,SettingsPage,display_name,"Display name",,active
406
- settings.account.edit,ui,SettingsPage,SettingsPage,edit,"Edit",,active
407
- settings.account.save,ui,SettingsPage,SettingsPage,save,"Save",,active
408
- settings.account.saving,ui,SettingsPage,SettingsPage,saving,"Saving...",,active
409
- settings.account.cancel,ui,SettingsPage,SettingsPage,cancel,"Cancel",,active
410
- settings.account.userId,ui,SettingsPage,SettingsPage,user_id,"User ID",,active
411
- settings.account.copyUserId,ui,SettingsPage,SettingsPage,copy_user_id,"Copy user ID",,active
412
- settings.account.copy,ui,SettingsPage,SettingsPage,copy,"Copy",,active
413
- settings.account.copied,ui,SettingsPage,SettingsPage,copied,"Copied",,active
414
- settings.account.cloudSync,ui,SettingsPage,SettingsPage,cloud_sync,"Cloud sync",,active
415
- settings.account.cloudSyncHint,ui,SettingsPage,SettingsPage,cloud_sync_hint,"Upload local usage to your Token Tracker cloud account.",,active
416
- settings.account.publicProfile,ui,SettingsPage,SettingsPage,public_profile,"Public profile",,active
417
- settings.account.publicProfileHint,ui,SettingsPage,SettingsPage,public_profile_hint,"Show your usage on the public leaderboard.",,active
418
- settings.account.displayNameAnonymousHint,ui,SettingsPage,SettingsPage,display_name_anon_hint,"Anonymous — your name and avatar are hidden on the leaderboard",,active
419
- settings.account.displayNameDisabledWhileAnon,ui,SettingsPage,SettingsPage,display_name_disabled,"Turn on the switch first to edit your name",,active
420
- settings.account.githubUrl,ui,SettingsPage,SettingsPage,github_url,"GitHub profile",,active
421
- settings.account.githubUrlHint,ui,SettingsPage,SettingsPage,github_url_hint,"Show a GitHub link next to your name on the leaderboard.",,active
422
- settings.account.githubUrlPlaceholder,ui,SettingsPage,SettingsPage,github_url_placeholder,"username or https://github.com/username",,active
423
- settings.account.githubUrlInvalid,ui,SettingsPage,SettingsPage,github_url_invalid,"Use a GitHub username or https://github.com/username URL.",,active
424
- leaderboard.github.aria,ui,LeaderboardPage,LeaderboardPage,github_aria,"Open GitHub profile",,active
425
- auth.callback.processing,ui,*,NativeAuthCallbackPage,processing,"Processing…",,active
426
- auth.callback.success,ui,*,NativeAuthCallbackPage,success,"Signed in successfully",,active
427
- auth.callback.redirecting,ui,*,NativeAuthCallbackPage,redirecting,"Returning to TokenTracker…",,active
428
- auth.callback.failed,ui,*,NativeAuthCallbackPage,failed,"Sign-in incomplete. Please try again.",,active
429
- auth.callback.close,ui,*,NativeAuthCallbackPage,close,"Close this page",,active
430
- stats.period.today,ui,DashboardPage,StatsPanel,period_today,"today",,active
431
- stats.period.week,ui,DashboardPage,StatsPanel,period_week,"week",,active
432
- stats.period.month,ui,DashboardPage,StatsPanel,period_month,"month",,active
433
- stats.period.all,ui,DashboardPage,StatsPanel,period_all,"all",,active
434
- stats.period.convs,ui,DashboardPage,StatsPanel,period_convs,"convs",,active
435
- leaderboard.column.est_cost,ui,LeaderboardPage,LeaderboardPage,column_est_cost,"Est. Cost",,active
436
- leaderboard.signin_prompt,ui,LeaderboardPage,LeaderboardPage,signin_prompt,"Sign in to join the leaderboard",,active
437
- leaderboard.signin_button,ui,LeaderboardPage,LeaderboardPage,signin_button,"Sign In",,active
438
- leaderboard.sync_prompt,ui,LeaderboardPage,LeaderboardPage,sync_prompt,"Enable Cloud Sync to appear in rankings",,active
439
- leaderboard.sync_button.idle,ui,LeaderboardPage,LeaderboardPage,sync_button_idle,"Enable & Sync",,active
440
- leaderboard.sync_button.busy,ui,LeaderboardPage,LeaderboardPage,sync_button_busy,"Syncing...",,active
441
- leaderboard.pagination.page_size_label,ui,LeaderboardPage,LeaderboardPage,page_size_label,"Rows per page",,active
442
- leaderboard.github.tooltipAction,ui,LeaderboardPage,LeaderboardPage,github_tooltip_action,"Click to open GitHub profile",,active
443
- leaderboard.github.tooltipPrefix,ui,LeaderboardPage,LeaderboardPage,github_tooltip_prefix,"Set yours in",,active
444
- leaderboard.github.tooltipSettingsLink,ui,LeaderboardPage,LeaderboardPage,github_tooltip_link,"Settings",,active
445
- leaderboard.github.tooltipSuffix,ui,LeaderboardPage,LeaderboardPage,github_tooltip_suffix," to appear here",,active
446
- leaderboard.summary.percentile,ui,LeaderboardPage,LeaderboardMeChip,summary_percentile,"Top {{p}}%",,active
447
- leaderboard.summary.jump_to_me,ui,LeaderboardPage,LeaderboardMeChip,summary_jump_to_me,"Jump to my row",,active
448
- leaderboard.summary.view_profile,ui,LeaderboardPage,LeaderboardMeChip,summary_view_profile,"View your profile",,active
449
- settings.account.signOut,ui,SettingsPage,SettingsPage,sign_out,"Sign out",,active
450
- settings.account.signIn,ui,SettingsPage,SettingsPage,sign_in,"Sign in",,active
451
- settings.account.signedOutHint,ui,SettingsPage,SettingsPage,signed_out_hint,"Sign in to manage cloud sync and leaderboard preferences.",,active
452
- settings.section.menubar,ui,SettingsPage,SettingsPage,sec_menubar,"Menu Bar App",,active
453
- settings.menubar.showStats,ui,SettingsPage,SettingsPage,mb_show_stats,"Show stats in menu bar",,active
454
- settings.menubar.showStatsHint,ui,SettingsPage,SettingsPage,mb_show_stats_hint,"Display today's token count and cost beside the menu bar icon.",,active
455
- settings.menubar.animatedIcon,ui,SettingsPage,SettingsPage,mb_anim,"Animated icon",,active
456
- settings.menubar.animatedIconHint,ui,SettingsPage,SettingsPage,mb_anim_hint,"Blink the Clawd character and play the syncing animation in the menu bar.",,active
457
- settings.menubar.launchAtLogin,ui,SettingsPage,SettingsPage,mb_login,"Launch at login",,active
458
- settings.menubar.launchAtLoginHint,ui,SettingsPage,SettingsPage,mb_login_hint,"Start TokenTrackerBar automatically when you sign in to macOS.",,active
459
- settings.menubar.syncNow,ui,SettingsPage,SettingsPage,mb_sync_now,"Sync now",,active
460
- settings.menubar.syncNowHint,ui,SettingsPage,SettingsPage,mb_sync_now_hint,"Trigger an immediate parse and upload of local AI tool logs.",,active
461
- settings.menubar.syncing,ui,SettingsPage,SettingsPage,mb_syncing,"Syncing…",,active
462
- settings.menubar.updates,ui,SettingsPage,SettingsPage,mb_updates,"Updates",,active
463
- settings.menubar.checkUpdates,ui,SettingsPage,SettingsPage,mb_check_updates,"Check for updates",,active
464
- settings.footer.statusPage,ui,SettingsPage,NativeAppFooter,status_page,"System status",,active
465
- menubar.slot.primary,ui,WidgetsPage,MenuBarDisplayCard,slot_primary,"Primary slot",,active
466
- menubar.slot.secondary,ui,WidgetsPage,MenuBarDisplayCard,slot_secondary,"Secondary slot",,active
467
- menubar.native_only,ui,WidgetsPage,MenuBarDisplayCard,native_only,"Open TokenTrackerBar for macOS to edit the live menu bar display.",,active
468
- menubar.metric.today_tokens,ui,WidgetsPage,MenuBarDisplayCard,metric_today_tokens,"Today Tokens",,active
469
- menubar.metric.today_cost,ui,WidgetsPage,MenuBarDisplayCard,metric_today_cost,"Today Cost",,active
470
- menubar.metric.last_7d_tokens,ui,WidgetsPage,MenuBarDisplayCard,metric_last_7d,"Last 7 Days",,active
471
- menubar.metric.total_tokens,ui,WidgetsPage,MenuBarDisplayCard,metric_total_tokens,"Total Tokens",,active
472
- menubar.metric.total_cost,ui,WidgetsPage,MenuBarDisplayCard,metric_total_cost,"Total Cost",,active
473
- menubar.metric.claude_5h,ui,WidgetsPage,MenuBarDisplayCard,metric_claude_5h,"Claude 5h Limit",,active
474
- menubar.metric.claude_7d,ui,WidgetsPage,MenuBarDisplayCard,metric_claude_7d,"Claude 7d Limit",,active
475
- menubar.metric.codex_5h,ui,WidgetsPage,MenuBarDisplayCard,metric_codex_5h,"Codex 5h Limit",,active
476
- menubar.metric.codex_7d,ui,WidgetsPage,MenuBarDisplayCard,metric_codex_7d,"Codex 7d Limit",,active
477
- share.modal.title,share,DashboardPage,ShareModal,title,"Share your stats",,active
478
- share.modal.subtitle,share,DashboardPage,ShareModal,subtitle,"Generate a poster-style card and share anywhere.",,active
479
- share.modal.close,share,DashboardPage,ShareModal,close,"Close",,active
480
- share.modal.action.x,share,DashboardPage,ShareModal,action_x,"Share on X",,active
481
- share.modal.action.download,share,DashboardPage,ShareModal,action_download,"Download",,active
482
- share.modal.action.copy,share,DashboardPage,ShareModal,action_copy,"Copy image",,active
483
- share.modal.hint.x,share,DashboardPage,ShareModal,hint_x,"Paste image in tweet",,active
484
- share.modal.hint.copy,share,DashboardPage,ShareModal,hint_copy,"to clipboard",,active
485
- share.modal.name_label,share,DashboardPage,ShareModal,name_label,"Display name",,active
486
- share.modal.name_placeholder,share,DashboardPage,ShareModal,name_placeholder,"Enter your name",,active
487
- share.modal.footer,share,DashboardPage,ShareModal,footer,"Your data stays local — images are generated in your browser and never uploaded.",,active
488
- share.button.label,share,DashboardPage,DashboardHeader,share_button,"Share",,active
489
- share.button.aria,share,DashboardPage,DashboardHeader,share_button_aria,"Open share card",,active
490
- share.toast.copied,share,DashboardPage,ShareModal,toast_copied,"Image copied to clipboard",,active
491
- share.toast.downloaded,share,DashboardPage,ShareModal,toast_downloaded,"Image saved",,active
492
- share.toast.failed,share,DashboardPage,ShareModal,toast_failed,"Couldn't generate image",,active
493
- share.toast.working,share,DashboardPage,ShareModal,toast_working,"Generating…",,active
494
- share.modal.style_label,share,DashboardPage,ShareModal,style_label,"Style",,active
495
- share.variant.neon,share,DashboardPage,ShareModal,variant_neon,"Neon",,active
496
- share.variant.broadsheet,share,DashboardPage,ShareModal,variant_broadsheet,"Broadsheet",,active
497
- share.date.month_year,share,DashboardPage,ShareCard,date_month_year,"{{month}} {{year}}",,active
498
- share.issue.all_time,share,DashboardPage,ShareCard,issue_all_time,"ALL TIME",,active
499
- share.month_short.jan,share,DashboardPage,ShareCard,month_short,"JAN",,active
500
- share.month_short.feb,share,DashboardPage,ShareCard,month_short,"FEB",,active
501
- share.month_short.mar,share,DashboardPage,ShareCard,month_short,"MAR",,active
502
- share.month_short.apr,share,DashboardPage,ShareCard,month_short,"APR",,active
503
- share.month_short.may,share,DashboardPage,ShareCard,month_short,"MAY",,active
504
- share.month_short.jun,share,DashboardPage,ShareCard,month_short,"JUN",,active
505
- share.month_short.jul,share,DashboardPage,ShareCard,month_short,"JUL",,active
506
- share.month_short.aug,share,DashboardPage,ShareCard,month_short,"AUG",,active
507
- share.month_short.sep,share,DashboardPage,ShareCard,month_short,"SEP",,active
508
- share.month_short.oct,share,DashboardPage,ShareCard,month_short,"OCT",,active
509
- share.month_short.nov,share,DashboardPage,ShareCard,month_short,"NOV",,active
510
- share.month_short.dec,share,DashboardPage,ShareCard,month_short,"DEC",,active
511
- share.hook.top_loyal,share,DashboardPage,ShareCard,hook_top_loyal,"{{percent}}% loyal to {{name}}.",,active
512
- share.hook.days_record,share,DashboardPage,ShareCard,hook_days_record,"{{days}} days on the record.",,active
513
- share.hook.top_led,share,DashboardPage,ShareCard,hook_top_led,"Led by {{name}} ({{percent}}%).",,active
514
- share.hook.multi_models,share,DashboardPage,ShareCard,hook_multi_models,"Across {{count}} models, {{days}} days.",,active
515
- share.hook.days_with_model,share,DashboardPage,ShareCard,hook_days_with_model,"{{days}} days with {{name}}.",,active
516
- share.hook.new_chapter,share,DashboardPage,ShareCard,hook_new_chapter,"The beginning of a new chapter.",,active
517
- share.card.broadsheet.issue,share,DashboardPage,BroadsheetCard,issue_label,"Issue",,active
518
- share.card.broadsheet.by,share,DashboardPage,BroadsheetCard,by_label,"By",,active
519
- share.card.broadsheet.tracked_since,share,DashboardPage,BroadsheetCard,tracked_since,"Tracked since",,active
520
- share.card.broadsheet.total_tokens,share,DashboardPage,BroadsheetCard,total_tokens,"Total tokens",,active
521
- share.card.broadsheet.estimated_spend,share,DashboardPage,BroadsheetCard,estimated_spend,"Estimated spend",,active
522
- share.card.broadsheet.billable_days,share,DashboardPage,BroadsheetCard,billable_days,"{{days}} billable days",,active
523
- share.card.broadsheet.heatmap_title,share,DashboardPage,BroadsheetCard,heatmap_title,"The Year in Print",,active
524
- share.card.broadsheet.heatmap_days_on_record,share,DashboardPage,BroadsheetCard,heatmap_days,"{{active}} / {{total}} days on record",,active
525
- share.card.broadsheet.roster_title,share,DashboardPage,BroadsheetCard,roster_title,"The Roster",,active
526
- share.card.broadsheet.roster_subtitle,share,DashboardPage,BroadsheetCard,roster_subtitle,"Models in regular rotation",,active
527
- share.card.broadsheet.empty,share,DashboardPage,BroadsheetCard,empty,"An empty week — the press was quiet.",,active
528
- share.card.broadsheet.global_rank,share,DashboardPage,BroadsheetCard,global_rank,"Global rank",,active
529
- share.card.broadsheet.active_days,share,DashboardPage,BroadsheetCard,active_days,"Active",,active
530
- share.card.broadsheet.days_count,share,DashboardPage,BroadsheetCard,days_count,"{{days}} days",,active
531
- share.card.broadsheet.track_yours,share,DashboardPage,BroadsheetCard,track_yours,"Track yours",,active
532
- share.card.annual.report_title,share,DashboardPage,AnnualReportCard,report_title,"Token Report",,active
533
- share.card.annual.less,share,DashboardPage,AnnualReportCard,legend_less,"Less",,active
534
- share.card.annual.more,share,DashboardPage,AnnualReportCard,legend_more,"More",,active
535
- share.card.annual.heatmap_title,share,DashboardPage,AnnualReportCard,heatmap_title,"TOKEN USAGE HEATMAP",,active
536
- share.card.annual.total_tokens,share,DashboardPage,AnnualReportCard,total_tokens,"Total Tokens",,active
537
- share.card.annual.estimated_cost,share,DashboardPage,AnnualReportCard,estimated_cost,"Estimated Cost",,active
538
- share.card.annual.longest_streak,share,DashboardPage,AnnualReportCard,longest_streak,"Longest Streak",,active
539
- share.card.annual.days_count,share,DashboardPage,AnnualReportCard,days_count,"{{days}} days",,active
540
- share.card.annual.top_model,share,DashboardPage,AnnualReportCard,top_model,"Top Model",,active
541
- usage.period.day,ui,DashboardPage,UsageOverview,period_day,"Day",,active
542
- usage.period.week,ui,DashboardPage,UsageOverview,period_week,"Week",,active
543
- usage.period.month,ui,DashboardPage,UsageOverview,period_month,"Month",,active
544
- usage.period.total,ui,DashboardPage,UsageOverview,period_total,"Total",,active
545
- usage.period.custom,ui,DashboardPage,UsageOverview,period_custom,"Custom",,active
546
- usage.overview.tablist_aria,ui,DashboardPage,UsageOverview,tablist_aria,"Time period",,active
547
- usage.overview.cost_breakdown_aria,ui,DashboardPage,UsageOverview,cost_breakdown_aria,"View cost breakdown",,active
548
- usage.overview.distribution_aria,ui,DashboardPage,UsageOverview,distribution_aria,"Provider distribution: {{items}}",,active
549
- usage.overview.distribution_item,ui,DashboardPage,UsageOverview,distribution_item,"{{label}} {{percent}}%",,active
550
- usage.overview.provider_card_aria,ui,DashboardPage,UsageOverview,provider_card_aria,"{{provider}}: {{percent}}%, {{tokens}} tokens, {{cost}}. Click to {{action}} details",,active
551
- usage.overview.expand,ui,DashboardPage,UsageOverview,expand,"expand",,active
552
- usage.overview.collapse,ui,DashboardPage,UsageOverview,collapse,"collapse",,active
553
- usage.overview.model_count,ui,DashboardPage,UsageOverview,model_count,"{{count}} models",,active
554
- usage.overview.model_details_aria,ui,DashboardPage,UsageOverview,model_details_aria,"{{provider}} model details",,active
555
- usage.overview.antigravity_notice_title,ui,DashboardPage,UsageOverview,antigravity_notice_title,"Estimated tokens",,active
556
- 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
557
- limits.panel.title,ui,LimitsPage,UsageLimitsPanel,title,"Usage Limits",,active
558
- limits.label.cursor_plan,ui,LimitsPage,UsageLimitsPanel,cursor_plan,"Plan",,active
559
- limits.label.cursor_auto,ui,LimitsPage,UsageLimitsPanel,cursor_auto,"Auto",,active
560
- limits.label.cursor_api,ui,LimitsPage,UsageLimitsPanel,cursor_api,"API",,active
561
- limits.label.kiro_month,ui,LimitsPage,UsageLimitsPanel,kiro_month,"Month",,active
562
- limits.label.kiro_bonus,ui,LimitsPage,UsageLimitsPanel,kiro_bonus,"Bonus",,active
563
- limits.label.kimi_weekly,ui,LimitsPage,UsageLimitsPanel,kimi_weekly,"Weekly",,active
564
- limits.label.kimi_5h,ui,LimitsPage,UsageLimitsPanel,kimi_5h,"5h",,active
565
- limits.label.kimi_total,ui,LimitsPage,UsageLimitsPanel,kimi_total,"Total",,active
566
- limits.label.kimi_parallel,ui,LimitsPage,UsageLimitsPanel,kimi_parallel,"Parallel: {{count}}",,active
567
- limits.label.copilot_premium,ui,LimitsPage,UsageLimitsPanel,copilot_premium,"Premium",,active
568
- limits.label.copilot_chat,ui,LimitsPage,UsageLimitsPanel,copilot_chat,"Chat",,active
569
- limits.status.not_connected,ui,LimitsPage,UsageLimitsPanel,status_not_connected,"Not connected",,active
570
- limits.status.no_data,ui,LimitsPage,UsageLimitsPanel,status_no_data,"No live limit data returned",,active
571
- limits.status.all_hidden,ui,LimitsPage,UsageLimitsPanel,status_all_hidden,"All limit providers are hidden. Open display settings to show them.",,active
572
- shared.time.now,shared,*,Shared,time_now,"now",,active
573
- nav.ip_check,shared,*,Sidebar,nav_ip_check,Claude IP Check,,active
574
- nav.skills,shared,*,Sidebar,nav_skills,Skills,,active
575
- skills.page.title,ui,SkillsPage,SkillsPage,title,Skills,,active
576
- skills.tab.my,ui,SkillsPage,SkillsPage,tab_my,My Skills,,active
577
- skills.tab.browse,ui,SkillsPage,SkillsPage,tab_browse,Browse,,active
578
- skills.action.refresh,ui,SkillsPage,SkillsPage,action_refresh,Refresh,,active
579
- skills.action.install,ui,SkillsPage,SkillCard,action_install,Install,,active
580
- skills.action.choose_targets,ui,SkillsPage,SkillCard,action_choose_targets,"Choose targets",,active
581
- skills.target.menu_label,ui,SkillsPage,SkillCard,target_menu_label,"Install to",,active
582
- skills.target.none,ui,SkillsPage,SkillsPage,target_none,"no targets",,active
583
- skills.toast.installed,ui,SkillsPage,SkillsPage,toast_installed,"Installed {{name}} to {{targets}}.",,active
584
- skills.action.remove,ui,SkillsPage,SkillsPage,action_remove,Remove,,active
585
- skills.action.search,ui,SkillsPage,SkillsPage,action_search,Search,,active
586
- skills.action.search_aria,ui,SkillsPage,SkillsPage,action_search_aria,"Search skills",,active
587
- skills.target.synced_summary,ui,SkillsPage,InstalledSkillRow,target_synced_summary,"Synced to {{targets}}",,active
588
- skills.target.synced_none,ui,SkillsPage,InstalledSkillRow,target_synced_none,"Not synced to any agent",,active
589
- skills.row.open_details,ui,SkillsPage,InstalledSkillRow,row_open_details,"Open details for {{name}}",,active
590
- skills.detail.close,ui,SkillsPage,SkillDetailPanel,detail_close,"Close details",,active
591
- skills.detail.sync_section_title,ui,SkillsPage,SkillDetailPanel,detail_sync_section_title,"Sync to",,active
592
- skills.detail.remove_button,ui,SkillsPage,SkillDetailPanel,detail_remove_button,"Remove from all agents",,active
593
- skills.detail.remove_confirm_hint,ui,SkillsPage,SkillDetailPanel,detail_remove_confirm_hint,"This unsyncs the skill from every agent and deletes its local copy.",,active
594
- skills.filter.agent_label,ui,SkillsPage,SkillsPage,filter_agent_label,"Agent",,active
595
- skills.filter.agent_all,ui,SkillsPage,SkillsPage,filter_agent_all,"All agents",,active
596
- skills.filter.clear,ui,SkillsPage,SkillsPage,filter_clear,"Clear filters",,active
597
- skills.filter.result_count,ui,SkillsPage,SkillsPage,filter_result_count,"{{filtered}} of {{total}} skills",,active
598
- skills.filter.result_count_browse,ui,SkillsPage,SkillsPage,filter_result_count_browse,"{{count}} results",,active
599
- skills.empty.no_match,ui,SkillsPage,SkillsPage,empty_no_match,"No skills match the current filters.",,active
600
- hint.dismiss,ui,shared,DismissibleHint,hint_dismiss,"Dismiss hint",,active
601
- hint.dismissible_aria,ui,shared,DismissibleHint,hint_dismissible_aria,"Dismissible hint",,active
602
- skills.card.installed,ui,SkillsPage,SkillCard,card_installed,Installed,,active
603
- skills.card.manage,ui,SkillsPage,SkillCard,card_manage,Manage,,active
604
- skills.card.targets_prefix,ui,SkillsPage,SkillCard,card_targets_prefix,"Will install to:",,active
605
- skills.card.targets_change,ui,SkillsPage,SkillCard,card_targets_change,Change,,active
606
- skills.card.installs,ui,SkillsPage,SkillCard,installs,"{{count}} installs",,active
607
- skills.source.label,ui,SkillsPage,SkillsPage,source_label,Source,,active
608
- skills.source.all,ui,SkillsPage,SkillsPage,source_all,All repositories,,active
609
- skills.mode.repo,ui,SkillsPage,SkillsPage,mode_repo,Repositories,,active
610
- skills.mode.skillssh,ui,SkillsPage,SkillsPage,mode_skillssh,skills.sh,,active
611
- skills.browse.placeholder_all,ui,SkillsPage,SkillsPage,browse_placeholder_all,"Search across enabled repositories…",,active
612
- skills.browse.placeholder_repo,ui,SkillsPage,SkillsPage,browse_placeholder_repo,"Search in {{repo}}…",,active
613
- skills.browse.placeholder_skillssh,ui,SkillsPage,SkillsPage,browse_placeholder_skillssh,"Search the skills.sh registry…",,active
614
- skills.browse.empty_sources,ui,SkillsPage,SkillsPage,browse_empty_sources,"Add a GitHub repository below to start browsing skills.",,active
615
- skills.browse.add_repo_hint,ui,SkillsPage,SkillsPage,browse_add_repo_hint,"Need more skills? Add a GitHub repository.",,active
616
- skills.browse.manage_sources,ui,SkillsPage,SkillsPage,browse_manage_sources,Manage sources,,active
617
- skills.browse.hint_skillssh,ui,SkillsPage,SkillsPage,browse_hint_skillssh,"Type at least 2 characters to search skills.sh.",,active
618
- skills.browse.loading_hint,ui,SkillsPage,SkillsPage,browse_loading_hint,"Fetching skill metadata from GitHub. First load can take up to a minute; results are cached.",,active
619
- skills.error.generic,ui,SkillsPage,SkillsPage,error_generic,"Skill operation failed.",,active
620
- skills.confirm.remove_title,ui,SkillsPage,SkillsPage,confirm_remove_title,"Remove {{name}}?",,active
621
- skills.confirm.remove_managed,ui,SkillsPage,SkillsPage,confirm_remove_managed,"This skill will be removed from every connected AI tool. You'll have a few seconds to undo.",,active
622
- skills.confirm.remove_local,ui,SkillsPage,SkillsPage,confirm_remove_local,"This will delete the skill folder on disk from every connected AI tool. This cannot be undone.",,active
623
- skills.toast.removed,ui,SkillsPage,SkillsPage,toast_removed,"Removed {{name}}.",,active
624
- shared.action.undo,shared,*,Shared,action_undo,"Undo",,active
625
- shared.action.dismiss,shared,*,Shared,action_dismiss,"Dismiss",,active
626
- shared.action.cancel,shared,*,Shared,action_cancel,"Cancel",,active
627
- skills.empty.my,ui,SkillsPage,SkillsPage,empty_my,"No skills yet. Open Discover to search and install.",,active
628
- skills.empty.my_cta,ui,SkillsPage,SkillsPage,empty_my_cta,"Browse",,active
629
- skills.empty.browse,ui,SkillsPage,SkillsPage,empty_browse,"No skills found for this source.",,active
630
- skills.empty.search,ui,SkillsPage,SkillsPage,empty_search,"No results. Try a different query.",,active
631
- skills.repo.placeholder,ui,SkillsPage,SkillsPage,repo_placeholder,"owner/repository",,active
632
- skills.repo.add,ui,SkillsPage,SkillsPage,repo_add,"Add repository",,active
633
- skills.repo.invalid,ui,SkillsPage,SkillsPage,repo_invalid,"Use owner/repository or a GitHub repository URL.",,active
634
- skills.repo.remove,ui,SkillsPage,RepoRow,repo_remove,"Remove repository",,active
635
- settings.appearance.language.label,ui,SettingsPage,SettingsPage,language_label,Language,,active
636
- settings.appearance.language.hint,ui,SettingsPage,SettingsPage,language_hint,Use System to follow your computer language by default.,,active
637
- settings.appearance.language.system,ui,SettingsPage,SettingsPage,language_system,System,,active
638
- settings.appearance.language.english,ui,SettingsPage,SettingsPage,language_english,English,,active
639
- settings.appearance.language.chinese,ui,SettingsPage,SettingsPage,language_chinese,Simplified Chinese,,active
640
- settings.appearance.language.traditional_chinese,ui,SettingsPage,SettingsPage,language_traditional_chinese,Traditional Chinese,,active
641
- settings.appearance.language.japanese,ui,SettingsPage,SettingsPage,language_japanese,Japanese,,active
642
- settings.appearance.language.korean,ui,SettingsPage,SettingsPage,language_korean,Korean,,active
643
- dashboard.context_breakdown.empty,dashboard,DashboardPage,ContextBreakdownPanel,empty,"No Claude Code activity in the selected period.",,active
644
- dashboard.context_breakdown.empty_codex,dashboard,DashboardPage,ContextBreakdownPanel,empty_codex,"No Codex activity in the selected period.",,active
645
- dashboard.context_breakdown.error,dashboard,DashboardPage,ContextBreakdownPanel,error,"Couldn't read Claude Code logs for this view.",,active
646
- dashboard.context_breakdown.error_codex,dashboard,DashboardPage,ContextBreakdownPanel,error_codex,"Couldn't read Codex logs for this view.",,active
647
- dashboard.context_breakdown.bar_aria,dashboard,DashboardPage,ContextBreakdownPanel,bar_aria,"Token distribution: {{summary}}",,active
648
- dashboard.context_breakdown.system_prefix_tooltip,dashboard,DashboardPage,ContextBreakdownPanel,tooltip,"System prompt, tools schema, skills, rules, and MCP descriptions are cached together as one prefix and can't be separated from the logs.",,active
649
- dashboard.context_breakdown.footnote,dashboard,DashboardPage,ContextBreakdownPanel,footnote,"Approximate: cache reads accumulate across turns, so conversation history dominates over time. Only Claude Code logs expose the per-message detail this view requires.",,active
650
- dashboard.context_breakdown.footnote_codex,dashboard,DashboardPage,ContextBreakdownPanel,footnote_codex,"Codex uses non-overlapping token buckets here. Tool and exec drill-downs are separate heuristic attributions over the same turns.",,active
651
- dashboard.context_breakdown.category.system_prompt,dashboard,DashboardPage,ContextBreakdownPanel,cat,"System prompt",,active
652
- dashboard.context_breakdown.category.messages,dashboard,DashboardPage,ContextBreakdownPanel,cat,"Messages",,active
653
- dashboard.context_breakdown.category.tool_calls,dashboard,DashboardPage,ContextBreakdownPanel,cat,"Tool calls",,active
654
- dashboard.context_breakdown.category.mcp_servers,dashboard,DashboardPage,ContextBreakdownPanel,cat,"MCP servers",,active
655
- dashboard.context_breakdown.category.custom_agents,dashboard,DashboardPage,ContextBreakdownPanel,cat,"Custom agents",,active
656
- dashboard.context_breakdown.category.reasoning,dashboard,DashboardPage,ContextBreakdownPanel,cat,"Reasoning",,active
657
- dashboard.context_breakdown.category.skills,dashboard,DashboardPage,ContextBreakdownPanel,cat,"Skills",,active
658
- dashboard.context_breakdown.loading_aria,dashboard,DashboardPage,ContextBreakdownPanel,loading_aria,"Loading context breakdown",,active
659
- dashboard.context_breakdown.loading_hint,dashboard,DashboardPage,ContextBreakdownPanel,loading_hint,"Scanning session logs…",,active
660
- dashboard.context_breakdown.tool_details.total_column,dashboard,DashboardPage,ContextBreakdownPanel,tool_details_total_column,"Total",,active
661
- dashboard.context_breakdown.tool_details.unavailable_codex,dashboard,DashboardPage,ContextBreakdownPanel,tool_details_unavailable_codex,"Tool-level Codex details are unavailable for this period; showing queue totals only.",,active
662
- dashboard.context_breakdown.message_details.title,dashboard,DashboardPage,ContextBreakdownPanel,message_details_title,"Message details",,active
663
- dashboard.context_breakdown.message_details.note,dashboard,DashboardPage,ContextBreakdownPanel,message_details_note,"Aggregated only — message text is not stored.",,active
664
- dashboard.context_breakdown.message_details.category_column,dashboard,DashboardPage,ContextBreakdownPanel,message_details_category_column,"Category",,active
665
- dashboard.context_breakdown.message_details.user_input,dashboard,DashboardPage,ContextBreakdownPanel,message_details_user_input,"User input",,active
666
- dashboard.context_breakdown.message_details.conversation_history,dashboard,DashboardPage,ContextBreakdownPanel,message_details_conversation_history,"Conversation history",,active
667
- dashboard.context_breakdown.message_details.assistant_response,dashboard,DashboardPage,ContextBreakdownPanel,message_details_assistant_response,"Assistant response",,active
668
- dashboard.context_breakdown.exec_details.title,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_title,"Exec command details",,active
669
- dashboard.context_breakdown.exec_details.kind_column,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_kind_column,"Type",,active
670
- dashboard.context_breakdown.exec_details.calls_column,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_calls_column,"Calls",,active
671
- dashboard.context_breakdown.exec_details.failures_column,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_failures_column,"Fail",,active
672
- dashboard.context_breakdown.exec_details.duration_column,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_duration_column,"Duration",,active
673
- dashboard.context_breakdown.exec_details.max_duration_column,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_max_duration_column,"Max",,active
674
- dashboard.context_breakdown.exec_details.output_column,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_output_column,"Lines",,active
675
- dashboard.context_breakdown.exec_details.group_by_type,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_group_by_type,"By type",,active
676
- dashboard.context_breakdown.exec_details.group_by_executable,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_group_by_executable,"Executable",,active
677
- dashboard.context_breakdown.exec_details.group_by_command,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_group_by_command,"Command",,active
678
- dashboard.context_breakdown.exec_details.group_by_duration,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_group_by_duration,"Duration",,active
679
- dashboard.context_breakdown.exec_details.group_by_output,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_group_by_output,"Output",,active
680
- dashboard.context_breakdown.exec_details.group_by_exit,dashboard,DashboardPage,ContextBreakdownPanel,exec_details_group_by_exit,"By exit",,active
681
- heatmap.3d.hover_tip,ui,ActivityHeatmap,ActivityHeatmap,hover_tip,"Click to enter 3D fullscreen rotation analysis mode",,active
682
- heatmap.3d.modal.title,ui,ActivityHeatmap,ActivityHeatmap,title,"Token 3D Perspective",,active
683
- heatmap.3d.modal.desc,ui,ActivityHeatmap,ActivityHeatmap,desc,"Drag with left mouse button to rotate. Hover to inspect daily activity and multidimensional metrics.",,active
684
- heatmap.3d.modal.stats.total_tokens,ui,ActivityHeatmap,ActivityHeatmap,stats_total_tokens,"Annual Total Tokens",,active
685
- heatmap.3d.modal.stats.precision_total_tokens,ui,ActivityHeatmap,ActivityHeatmap,stats_precision_total_tokens,"Precise annual consumption",,active
686
- heatmap.3d.modal.stats.estimated_cost,ui,ActivityHeatmap,ActivityHeatmap,stats_estimated_cost,"Annual Estimated Cost",,active
687
- heatmap.3d.modal.stats.active_rate_days,ui,ActivityHeatmap,ActivityHeatmap,stats_active_rate_days,"Active Rate / Days",,active
688
- heatmap.3d.modal.stats.max_streak,ui,ActivityHeatmap,ActivityHeatmap,stats_max_streak,"Longest Active Streak",,active
689
- heatmap.3d.modal.stats.days_suffix,ui,ActivityHeatmap,ActivityHeatmap,stats_days_suffix,"Days",,active
690
- heatmap.3d.modal.stats.peak_day,ui,ActivityHeatmap,ActivityHeatmap,stats_peak_day,"Peak Day Blowout",,active
691
- heatmap.3d.modal.stats.precision_peak_value,ui,ActivityHeatmap,ActivityHeatmap,stats_precision_peak_value,"Precise daily peak",,active
692
- heatmap.3d.modal.stats.no_data,ui,ActivityHeatmap,ActivityHeatmap,stats_no_data,"No data",,active
693
- heatmap.3d.modal.legend.title,ui,ActivityHeatmap,ActivityHeatmap,legend_title,"Activity Levels",,active
694
- heatmap.3d.modal.palette.emerald,ui,ActivityHeatmap,ActivityHeatmap,palette_emerald,"Emerald City",,active
695
- heatmap.3d.modal.palette.ocean,ui,ActivityHeatmap,ActivityHeatmap,palette_ocean,"Ocean Abyss",,active
696
- heatmap.3d.modal.palette.neon,ui,ActivityHeatmap,ActivityHeatmap,palette_neon,"Cyber Neon",,active
697
- heatmap.3d.modal.palette.amber,ui,ActivityHeatmap,ActivityHeatmap,palette_amber,"Blazing Amber",,active
698
- heatmap.3d.modal.control.play,ui,ActivityHeatmap,ActivityHeatmap,control_play,"Start slow rotation",,active
699
- heatmap.3d.modal.control.pause,ui,ActivityHeatmap,ActivityHeatmap,control_pause,"Pause auto-rotation",,active
700
- heatmap.3d.modal.control.reset,ui,ActivityHeatmap,ActivityHeatmap,control_reset,"Reset 3D view",,active
701
- heatmap.3d.modal.footer.tip,ui,ActivityHeatmap,ActivityHeatmap,footer_tip,"Pinch to zoom / Scroll to zoom / Drag to rotate 3D chart",,active
702
- heatmap.3d.modal.ai.title.default,ui,ActivityHeatmap,ActivityHeatmap,ai_title_default,"Persistent Creator",,active
703
- heatmap.3d.modal.ai.eval.default,ui,ActivityHeatmap,ActivityHeatmap,ai_eval_default,"Persist in the river of technology. Daily coding may not always be majestic, but every tiny active point records your thoughts and exploration. Sparks accumulate, eventually converging into your own digital ocean.",,active
704
- heatmap.3d.modal.ai.title.peak,ui,ActivityHeatmap,ActivityHeatmap,ai_title_peak,"Peak Contributor",,active
705
- heatmap.3d.modal.ai.eval.peak,ui,ActivityHeatmap,ActivityHeatmap,ai_eval_peak,"This year, your token output shows extremely high engineering density. This scale of development is equivalent to deeply participating in the refactoring of a medium-to-large system base, with each keystroke converging complex logic into deterministic code. A testament to pure engineering passion.",,active
706
- heatmap.3d.modal.ai.title.heavy,ui,ActivityHeatmap,ActivityHeatmap,ai_title_heavy,"Heavy Producer",,active
707
- heatmap.3d.modal.ai.eval.heavy,ui,ActivityHeatmap,ActivityHeatmap,ai_eval_heavy,"Exceptional continuous output. Your accumulated tokens have reached millions, equivalent to the volume of dozens of technical novellas. The highly saturated coding pace demonstrates your great execution in building digital assets.",,active
708
- heatmap.3d.modal.ai.title.core,ui,ActivityHeatmap,ActivityHeatmap,ai_title_core,"Core Productivity Expert",,active
709
- heatmap.3d.modal.ai.eval.core,ui,ActivityHeatmap,ActivityHeatmap,ai_eval_core,"Highly resilient long-term commitment. Over the past year, you have steadily maintained a high-intensity development rhythm. With solid code volume and token output, you have silently built the core architecture, a true engineering backbone.",,active
710
- heatmap.3d.modal.ai.title.steady,ui,ActivityHeatmap,ActivityHeatmap,ai_title_steady,"Steady Developer",,active
711
- heatmap.3d.modal.ai.eval.steady,ui,ActivityHeatmap,ActivityHeatmap,ai_eval_steady,"Steady and firm accumulation of technology. Every step of token increment is a brick in the foundation of your future. This slow but steady pace is the path for an excellent developer to become an engineering master.",,active
712
- heatmap.3d.voxel.joke.1,ui,ActivityHeatmap3D,ActivityHeatmap3D,voxel_joke1,"🔥 Extremely crazy! Produced {{value}} tokens! Are you training a large language model or writing a compiler by hand?",,active
713
- heatmap.3d.voxel.joke.2,ui,ActivityHeatmap3D,ActivityHeatmap3D,voxel_joke2,"🚀 Epic output! Total {{value}} tokens. Today's production can circle the earth once, even the AI is amazed by you!",,active
714
- heatmap.3d.voxel.joke.3,ui,ActivityHeatmap3D,ActivityHeatmap3D,voxel_joke3,"⚡ Critical Day! {{value}} tokens. Code is gushing out, and the keyboard is starting to smoke!",,active
715
- heatmap.3d.voxel.level3,ui,ActivityHeatmap3D,ActivityHeatmap3D,voxel_level3,"⚡ Productivity explosion ({{value}} tokens)! High efficiency and focus, keep up this peak state!",,active
716
- heatmap.3d.voxel.level2,ui,ActivityHeatmap3D,ActivityHeatmap3D,voxel_level2,"🌱 Getting into the groove ({{value}} tokens)! Steady output, every keystroke is contributing to the architecture.",,active
717
- heatmap.3d.voxel.level1,ui,ActivityHeatmap3D,ActivityHeatmap3D,voxel_level1,"🍃 Every drop counts ({{value}} tokens). Tiny commits are investments in the future, embrace compound interest!",,active
718
- heatmap.3d.voxel.level0,ui,ActivityHeatmap3D,ActivityHeatmap3D,voxel_level0,"💤 Recharging. On days without coding, inspiration grows silently.",,active
719
- ipcheck.page.title,ui,IpCheckPage,IpCheckPage,page_title,"Claude IP Check",,active
720
- ipcheck.page.subtitle,ui,IpCheckPage,IpCheckPage,page_subtitle,"Inspect the exit IP used to reach Claude, plus reputation, geo, and risk signals that may affect sign-in or trigger rate-limiting.",,active
721
- ipcheck.mask.toggle,ui,IpCheckPage,IpCheckPage,mask_toggle,"Hide IP",,active
722
- ipcheck.ipv6.warn,ui,IpCheckPage,IpCheckPage,ipv6_warn,"IPv6 detected. Using IPv6 to reach Claude Code is not recommended; some checks may be incomplete.",,active
723
- ipcheck.ip.cn,ui,IpCheckPage,IpCheckPage,ip_cn,"China exit IPv4",,active
724
- ipcheck.ip.cloudflare,ui,IpCheckPage,IpCheckPage,ip_cloudflare,"Cloudflare exit",,active
725
- ipcheck.ip.claude,ui,IpCheckPage,IpCheckPage,ip_claude,"Claude exit",,active
726
- ipcheck.ip.failed,ui,IpCheckPage,IpCheckPage,ip_failed,"Unable to fetch",,active
727
- ipcheck.ip.loading,ui,IpCheckPage,IpCheckPage,ip_loading,"Loading...",,active
728
- ipcheck.trust.title,ui,IpCheckPage,IpCheckPage,trust_title,"Trust Score",,active
729
- ipcheck.trust.subtitle,ui,IpCheckPage,IpCheckPage,trust_subtitle,"IP cleanliness from Claude's risk view",,active
730
- ipcheck.trust.no_data,ui,IpCheckPage,IpCheckPage,trust_no_data,"No data",,active
731
- ipcheck.trust.no_ip,ui,IpCheckPage,IpCheckPage,trust_no_ip,"Claude exit IP not detected — cannot score",,active
732
- ipcheck.trust.no_score,ui,IpCheckPage,IpCheckPage,trust_no_score,"No score data for this IP",,active
733
- ipcheck.trust.gauge.low,ui,IpCheckPage,IpCheckPage,trust_gauge_low,"0 High risk",,active
734
- ipcheck.trust.gauge.high,ui,IpCheckPage,IpCheckPage,trust_gauge_high,"100 Trusted",,active
735
- ipcheck.trust.label.pristine,ui,IpCheckPage,IpCheckPage,trust_label_pristine,"Pristine",,active
736
- ipcheck.trust.label.clean,ui,IpCheckPage,IpCheckPage,trust_label_clean,"Clean",,active
737
- ipcheck.trust.label.good,ui,IpCheckPage,IpCheckPage,trust_label_good,"Good",,active
738
- ipcheck.trust.label.neutral,ui,IpCheckPage,IpCheckPage,trust_label_neutral,"Neutral",,active
739
- ipcheck.trust.label.suspicious,ui,IpCheckPage,IpCheckPage,trust_label_suspicious,"Suspicious",,active
740
- ipcheck.trust.label.unreachable,ui,IpCheckPage,IpCheckPage,trust_label_unreachable,"Unreachable",,active
741
- ipcheck.trust.text.excellent,ui,IpCheckPage,IpCheckPage,trust_text_excellent,"Excellent reputation",,active
742
- ipcheck.trust.text.great,ui,IpCheckPage,IpCheckPage,trust_text_great,"Strong reputation",,active
743
- ipcheck.trust.text.minor,ui,IpCheckPage,IpCheckPage,trust_text_minor,"Minor risk",,active
744
- ipcheck.trust.text.moderate,ui,IpCheckPage,IpCheckPage,trust_text_moderate,"Moderate risk",,active
745
- ipcheck.trust.text.severe,ui,IpCheckPage,IpCheckPage,trust_text_severe,"Severe risk",,active
746
- ipcheck.trust.text.restricted,ui,IpCheckPage,IpCheckPage,trust_text_restricted,"Restricted region — Claude enforces strict risk controls",,active
747
- ipcheck.trust.region_warn.title,ui,IpCheckPage,IpCheckPage,region_warn_title,"Claude exit IP is in {{region}}",,active
748
- ipcheck.trust.region_warn.body,ui,IpCheckPage,IpCheckPage,region_warn_body,"Avoid signing in — high chance of triggering account flagging.",,active
749
- ipcheck.trust.region_support,ui,IpCheckPage,IpCheckPage,region_support,"Claude support",,active
750
- ipcheck.trust.region.accessible,ui,IpCheckPage,IpCheckPage,region_accessible,"Accessible",,active
751
- ipcheck.common.unknown,ui,IpCheckPage,IpCheckPage,common_unknown,"Unknown",,active
752
- ipcheck.props.title,ui,IpCheckPage,IpCheckPage,props_title,"IP Attributes",,active
753
- ipcheck.props.region,ui,IpCheckPage,IpCheckPage,props_region,"Region",,active
754
- ipcheck.props.city,ui,IpCheckPage,IpCheckPage,props_city,"City",,active
755
- ipcheck.props.type,ui,IpCheckPage,IpCheckPage,props_type,"Type",,active
756
- ipcheck.props.asn,ui,IpCheckPage,IpCheckPage,props_asn,"ASN",,active
757
- ipcheck.props.org,ui,IpCheckPage,IpCheckPage,props_org,"ISP",,active
758
- ipcheck.props.residential,ui,IpCheckPage,IpCheckPage,props_residential,"Residential",,active
759
- ipcheck.props.datacenter,ui,IpCheckPage,IpCheckPage,props_datacenter,"Datacenter",,active
760
- ipcheck.security.title,ui,IpCheckPage,IpCheckPage,sec_title,"Security Checks",,active
761
- ipcheck.security.vpn,ui,IpCheckPage,IpCheckPage,sec_vpn,"VPN",,active
762
- ipcheck.security.proxy,ui,IpCheckPage,IpCheckPage,sec_proxy,"Proxy",,active
763
- ipcheck.security.tor,ui,IpCheckPage,IpCheckPage,sec_tor,"Tor",,active
764
- ipcheck.security.crawler,ui,IpCheckPage,IpCheckPage,sec_crawler,"Crawler",,active
765
- ipcheck.security.abuser,ui,IpCheckPage,IpCheckPage,sec_abuser,"Abuse history",,active
766
- ipcheck.security.proxy_flag,ui,IpCheckPage,IpCheckPage,sec_proxy_flag,"Proxy",,active
767
- ipcheck.security.crawler_yes,ui,IpCheckPage,IpCheckPage,sec_crawler_yes,"Yes",,active
768
- ipcheck.security.crawler_no,ui,IpCheckPage,IpCheckPage,sec_crawler_no,"No",,active
769
- ipcheck.security.abuser_yes,ui,IpCheckPage,IpCheckPage,sec_abuser_yes,"Reported",,active
770
- ipcheck.security.abuser_no,ui,IpCheckPage,IpCheckPage,sec_abuser_no,"Clean",,active
771
- ipcheck.security.clean,ui,IpCheckPage,IpCheckPage,sec_clean,"Not detected",,active
772
- ipcheck.avail.title,ui,IpCheckPage,IpCheckPage,avail_title,"Claude Availability",,active
773
- ipcheck.avail.tooltip,ui,IpCheckPage,IpCheckPage,avail_tooltip,"Claude servers run in the US; latency above 100ms from Asia is normal.",,active
774
- ipcheck.avail.refresh,ui,IpCheckPage,IpCheckPage,avail_refresh,"Refresh",,active
775
- ipcheck.avail.svc_row,ui,IpCheckPage,IpCheckPage,avail_svc_row,"Service status",,active
776
- ipcheck.avail.latency.normal,ui,IpCheckPage,IpCheckPage,avail_lat_normal,"Normal",,active
777
- ipcheck.avail.latency.good,ui,IpCheckPage,IpCheckPage,avail_lat_good,"Good",,active
778
- ipcheck.avail.latency.slow,ui,IpCheckPage,IpCheckPage,avail_lat_slow,"Slow",,active
779
- ipcheck.avail.latency.unreachable,ui,IpCheckPage,IpCheckPage,avail_lat_unreach,"Unreachable",,active
780
- ipcheck.avail.svc.none,ui,IpCheckPage,IpCheckPage,avail_svc_none,"All systems normal",,active
781
- ipcheck.avail.svc.minor,ui,IpCheckPage,IpCheckPage,avail_svc_minor,"Minor outage",,active
782
- ipcheck.avail.svc.major,ui,IpCheckPage,IpCheckPage,avail_svc_major,"Major outage",,active
783
- ipcheck.avail.svc.critical,ui,IpCheckPage,IpCheckPage,avail_svc_critical,"Critical outage",,active
784
- ipcheck.avail.svc.maintenance,ui,IpCheckPage,IpCheckPage,avail_svc_maintenance,"Maintenance",,active
785
- ipcheck.avail.svc.other,ui,IpCheckPage,IpCheckPage,avail_svc_other,"Disrupted",,active
786
- ipcheck.dns.title,ui,IpCheckPage,IpCheckPage,dns_title,"DNS Leak",,active
787
- ipcheck.dns.status,ui,IpCheckPage,IpCheckPage,dns_status,"Status",,active
788
- ipcheck.dns.outlet,ui,IpCheckPage,IpCheckPage,dns_outlet,"DNS exit",,active
789
- ipcheck.dns.outlet_ip,ui,IpCheckPage,IpCheckPage,dns_outlet_ip,"DNS exit IP",,active
790
- ipcheck.dns.isp,ui,IpCheckPage,IpCheckPage,dns_isp,"Provider",,active
791
- ipcheck.dns.leaked,ui,IpCheckPage,IpCheckPage,dns_leaked,"Possible leak",,active
792
- ipcheck.dns.no_leak,ui,IpCheckPage,IpCheckPage,dns_no_leak,"No leak detected",,active
793
- ipcheck.dns.encrypted,ui,IpCheckPage,IpCheckPage,dns_encrypted,"DNS encrypted or hidden",,active
794
- ipcheck.dns.cn_tag,ui,IpCheckPage,IpCheckPage,dns_cn_tag,"China DNS",,active
795
- ipcheck.udp.title,ui,IpCheckPage,IpCheckPage,udp_title,"WebRTC UDP Leak",,active
796
- ipcheck.udp.status,ui,IpCheckPage,IpCheckPage,udp_status,"Status",,active
797
- ipcheck.udp.outlet,ui,IpCheckPage,IpCheckPage,udp_outlet,"UDP exit",,active
798
- ipcheck.udp.outlet_ip,ui,IpCheckPage,IpCheckPage,udp_outlet_ip,"UDP exit IP",,active
799
- ipcheck.udp.origin,ui,IpCheckPage,IpCheckPage,udp_origin,"Origin",,active
800
- ipcheck.udp.disabled,ui,IpCheckPage,IpCheckPage,udp_disabled,"WebRTC disabled",,active
801
- ipcheck.udp.no_leak,ui,IpCheckPage,IpCheckPage,udp_no_leak,"No leak detected",,active
802
- ipcheck.udp.leaked,ui,IpCheckPage,IpCheckPage,udp_leaked,"Possible leak",,active
803
- ipcheck.udp.anomaly,ui,IpCheckPage,IpCheckPage,udp_anomaly,"Anomaly",,active
804
- ipcheck.device.title,ui,IpCheckPage,IpCheckPage,dev_title,"Device Info",,active
805
- ipcheck.device.tz,ui,IpCheckPage,IpCheckPage,dev_tz,"Timezone",,active
806
- ipcheck.device.lang,ui,IpCheckPage,IpCheckPage,dev_lang,"Language",,active
807
- ipcheck.device.os,ui,IpCheckPage,IpCheckPage,dev_os,"OS / Browser",,active
808
- ipcheck.device.touch,ui,IpCheckPage,IpCheckPage,dev_touch,"Touch",,active
809
- ipcheck.device.net,ui,IpCheckPage,IpCheckPage,dev_net,"Network type",,active
810
- ipcheck.device.dnt,ui,IpCheckPage,IpCheckPage,dev_dnt,"Do Not Track",,active
811
- ipcheck.device.webgl_render,ui,IpCheckPage,IpCheckPage,dev_webgl_render,"WebGL renderer",,active
812
- ipcheck.device.canvas_fp,ui,IpCheckPage,IpCheckPage,dev_canvas_fp,"Canvas fingerprint",,active
813
- ipcheck.device.webgl_fp,ui,IpCheckPage,IpCheckPage,dev_webgl_fp,"WebGL fingerprint",,active
814
- ipcheck.device.match,ui,IpCheckPage,IpCheckPage,dev_match,"Match",,active
815
- ipcheck.device.mismatch,ui,IpCheckPage,IpCheckPage,dev_mismatch,"Mismatch",,active
816
- ipcheck.device.local,ui,IpCheckPage,IpCheckPage,dev_local,"Local",,active
817
- ipcheck.device.estimate_suffix,ui,IpCheckPage,IpCheckPage,dev_est_suffix,"(est.)",,active
818
- ipcheck.device.diff_equal,ui,IpCheckPage,IpCheckPage,dev_diff_eq,"Slight offset",,active
819
- ipcheck.device.diff_ahead,ui,IpCheckPage,IpCheckPage,dev_diff_ahead,"Claude is {{h}}h ahead",,active
820
- ipcheck.device.diff_behind,ui,IpCheckPage,IpCheckPage,dev_diff_behind,"Claude is {{h}}h behind",,active
821
- ipcheck.device.lang_expected,ui,IpCheckPage,IpCheckPage,dev_lang_expected,"Claude region usually",,active
822
- ipcheck.device.touch_yes,ui,IpCheckPage,IpCheckPage,dev_touch_yes,"Yes",,active
823
- ipcheck.device.touch_no,ui,IpCheckPage,IpCheckPage,dev_touch_no,"No",,active
824
- ipcheck.device.dnt_on,ui,IpCheckPage,IpCheckPage,dev_dnt_on,"On",,active
825
- ipcheck.device.dnt_off,ui,IpCheckPage,IpCheckPage,dev_dnt_off,"Off",,active
826
- ipcheck.device.dnt_unset,ui,IpCheckPage,IpCheckPage,dev_dnt_unset,"Unset",,active
827
- ipcheck.device.net_unsupported,ui,IpCheckPage,IpCheckPage,dev_net_unsup,"Not detected",,active
828
- ipcheck.device.unsupported,ui,IpCheckPage,IpCheckPage,dev_unsupported,"Unsupported",,active
829
- ipcheck.history.title,ui,IpCheckPage,IpCheckPage,hist_title,"Claude exit IP history",,active
830
- ipcheck.history.subtitle,ui,IpCheckPage,IpCheckPage,hist_subtitle,"Stored only in this browser, up to 6 entries",,active
831
- ipcheck.history.clear,ui,IpCheckPage,IpCheckPage,hist_clear,"Clear",,active
832
- ipcheck.history.empty,ui,IpCheckPage,IpCheckPage,hist_empty,"No history yet",,active
833
- ipcheck.history.current,ui,IpCheckPage,IpCheckPage,hist_current,"Now",,active
834
- ipcheck.region.CN,ui,IpCheckPage,IpCheckPage,region_cn,"Mainland China",,active
835
- ipcheck.region.HK,ui,IpCheckPage,IpCheckPage,region_hk,"Hong Kong",,active
836
- ipcheck.region.MO,ui,IpCheckPage,IpCheckPage,region_mo,"Macao",,active
837
- ipcheck.region.RU,ui,IpCheckPage,IpCheckPage,region_ru,"Russia",,active
838
- ipcheck.region.KP,ui,IpCheckPage,IpCheckPage,region_kp,"North Korea",,active
839
- ipcheck.region.IR,ui,IpCheckPage,IpCheckPage,region_ir,"Iran",,active
840
- ipcheck.region.SY,ui,IpCheckPage,IpCheckPage,region_sy,"Syria",,active
841
- ipcheck.region.CU,ui,IpCheckPage,IpCheckPage,region_cu,"Cuba",,active
842
- ipcheck.region.BY,ui,IpCheckPage,IpCheckPage,region_by,"Belarus",,active
843
- ipcheck.region.VE,ui,IpCheckPage,IpCheckPage,region_ve,"Venezuela",,active
844
- leaderboard.profile_modal.close,dashboard,LeaderboardProfileModal,LeaderboardProfileModal,close,"Close",,active
845
- leaderboard.profile_modal.loading,dashboard,LeaderboardProfileModal,LeaderboardProfileModal,loading,"Loading profile…",,active
846
- leaderboard.profile_modal.error,dashboard,LeaderboardProfileModal,LeaderboardProfileModal,error,"Failed to load profile.",,active
847
- leaderboard.profile_modal.empty,dashboard,LeaderboardProfileModal,LeaderboardProfileModal,empty,"This profile is not public.",,active
848
- leaderboard.profile_modal.row_aria,dashboard,LeaderboardPage,LeaderboardRow,row_aria,"Open profile for {{name}}",,active
849
- leaderboard.profile_modal.rank,dashboard,LeaderboardProfileModal,Hero,rank,"#{{rank}}",,active
850
- leaderboard.profile_modal.hero.total_tokens,dashboard,LeaderboardProfileModal,Hero,total_tokens,"Total Tokens",,active
851
- leaderboard.profile_modal.hero.total_cost,dashboard,LeaderboardProfileModal,Hero,total_cost,"Total Cost",,active
852
- leaderboard.profile_modal.hero.github,dashboard,LeaderboardProfileModal,Hero,github,"GitHub profile",,active
853
- leaderboard.profile_modal.stat.total_cost,dashboard,LeaderboardProfileModal,StatCards,total_cost,"Total Cost",,active
854
- leaderboard.profile_modal.stat.total_tokens,dashboard,LeaderboardProfileModal,StatCards,total_tokens,"Total Tokens",,active
855
- leaderboard.profile_modal.stat.active_days,dashboard,LeaderboardProfileModal,StatCards,active_days,"Active Days",,active
856
- leaderboard.profile_modal.stat.avg_per_day,dashboard,LeaderboardProfileModal,StatCards,avg_per_day,"Avg/Day",,active
857
- leaderboard.profile_modal.streak.current,dashboard,LeaderboardProfileModal,Streak,current,"Current Streak",,active
858
- leaderboard.profile_modal.streak.longest,dashboard,LeaderboardProfileModal,Streak,longest,"Longest Streak",,active
859
- leaderboard.profile_modal.streak.days,dashboard,LeaderboardProfileModal,Streak,days,"{{count}} days",,active
860
- leaderboard.profile_modal.best_day.title,dashboard,LeaderboardProfileModal,BestDay,title,"Best Day",,active
861
- leaderboard.profile_modal.best_day.none,dashboard,LeaderboardProfileModal,BestDay,none,"—",,active
862
- leaderboard.profile_modal.models.count,dashboard,LeaderboardProfileModal,Models,count,"{{count}} models used",,active
863
- leaderboard.profile_modal.models.favorite,dashboard,LeaderboardProfileModal,Models,favorite,"Favorite",,active
864
- leaderboard.profile_modal.models.none,dashboard,LeaderboardProfileModal,Models,none,"No models tracked",,active
865
- leaderboard.profile_modal.heatmap.title,dashboard,LeaderboardProfileModal,Heatmap,title,"Activity (last 365 days)",,active
866
- leaderboard.profile_modal.providers.title,dashboard,LeaderboardProfileModal,Providers,title,"By provider",,active
867
- leaderboard.profile_modal.providers.none,dashboard,LeaderboardProfileModal,Providers,none,"No usage this period.",,active
868
- leaderboard.profile_modal.view_full,dashboard,LeaderboardProfileModal,Footer,view_full,"View full profile",,active
869
- leaderboard.profile_modal.badge.copy_url,dashboard,LeaderboardProfileModal,Badge,copy_url,"Copy profile URL",,active
870
- leaderboard.profile_modal.badge.copy,dashboard,LeaderboardProfileModal,Badge,copy,"Copy README badge",,active
871
- leaderboard.profile_modal.badge.copied,dashboard,LeaderboardProfileModal,Badge,copied,"Copied!",,active
872
- local_only.title,dashboard,LocalOnlyNotice,LocalOnlyNotice,title,"Available in the app",,active
873
- local_only.body,dashboard,LocalOnlyNotice,LocalOnlyNotice,body,"This page reads data from your own machine, so it only works in the Mac app or the CLI dashboard.",,active
874
- local_only.open_app,dashboard,LocalOnlyNotice,LocalOnlyNotice,open_app,"Open in Mac app",,active
875
- local_only.download,dashboard,LocalOnlyNotice,LocalOnlyNotice,download,"Get the Mac app",,active
876
- leaderboard.profile.like.aria_like,dashboard,LeaderboardProfileModal,LikeButton,aria_like,"Like profile",,active
877
- leaderboard.profile.like.aria_unlike,dashboard,LeaderboardProfileModal,LikeButton,aria_unlike,"Unlike profile",,active
878
- dashboard.auth_gate.title,dashboard,DashboardPage,DashboardView,auth_gate_title,"Sign in to Token Tracker",,active
879
- dashboard.auth_gate.subtitle,dashboard,DashboardPage,DashboardView,auth_gate_subtitle,"Sign in to sync and view your API usage, cost, and token consumption trends in the cloud.",,active
880
- dashboard.auth_gate.button,dashboard,DashboardPage,DashboardView,auth_gate_button,"Sign In",,active
881
- dashboard.expired_gate.title,dashboard,DashboardPage,DashboardView,expired_gate_title,"Session Expired",,active
882
- dashboard.expired_gate.subtitle,dashboard,DashboardPage,DashboardView,expired_gate_subtitle,"Your session has expired. Please sign in again to continue viewing your cloud dashboard.",,active
883
- dashboard.expired_gate.button,dashboard,DashboardPage,DashboardView,expired_gate_button,"Sign In Again",,active
884
- shared.app_name,shared,*,*,app_name,"Token Tracker",,active
885
- dashboard.auth_gate.hero_title,dashboard,DashboardPage,DashboardView,hero_title,"Track every AI agent token seamlessly",,active
886
- dashboard.auth_gate.hero_subtitle,dashboard,DashboardPage,DashboardView,hero_subtitle,"Clear, transparent, and multi-endpoint control",,active
887
- dashboard.auth_gate.desc,dashboard,DashboardPage,DashboardView,desc,"Securely sync token quotas, concurrent costs, and latency across Claude Code, Cursor, and Gemini CLI in a beautifully unified real-time dashboard.",,active
888
- dashboard.auth_gate.feature.sync.title,dashboard,DashboardPage,DashboardView,sync_title,"Real-time Cloud Sync",,active
889
- dashboard.auth_gate.feature.sync.desc,dashboard,DashboardPage,DashboardView,sync_desc,"Automated pipeline harvesting terminal execution costs into secure cloud records.",,active
890
- dashboard.auth_gate.feature.anal.title,dashboard,DashboardPage,DashboardView,anal_title,"Multi-dimensional Analytics",,active
891
- dashboard.auth_gate.feature.anal.desc,dashboard,DashboardPage,DashboardView,anal_desc,"Slice and dice by models or period to isolate high-cost peaks and allocations.",,active
892
- dashboard.auth_gate.feature.guard.title,dashboard,DashboardPage,DashboardView,guard_title,"Local-first Autonomy",,active
893
- dashboard.auth_gate.feature.guard.desc,dashboard,DashboardPage,DashboardView,guard_desc,"Skip all auth steps entirely on localhost. Preserves local debug speed.",,active
894
- dashboard.expired_gate.hero_title,dashboard,DashboardPage,DashboardView,expired_hero_title,"Your cloud session has expired",,active
895
- dashboard.expired_gate.desc,dashboard,DashboardPage,DashboardView,expired_desc,"For privacy and cloud drive security, active sessions expire automatically after a period. Verify again to restore your dashboard instantly.",,active
896
- dashboard.expired_gate.feature.sec.title,dashboard,DashboardPage,DashboardView,sec_title,"Secure Protection",,active
897
- dashboard.expired_gate.feature.sec.desc,dashboard,DashboardPage,DashboardView,sec_desc,"Encrypted tokens automatically rotate, guaranteeing complete assets privacy.",,active
898
- dashboard.expired_gate.feature.restore.title,dashboard,DashboardPage,DashboardView,restore_title,"Seamless Restore",,active
899
- dashboard.expired_gate.feature.restore.desc,dashboard,DashboardPage,DashboardView,restore_desc,"Instantly resume telemetry charts without reconfiguring terminal hooks.",,active
900
- dashboard.expired_gate.feature.cloud.title,dashboard,DashboardPage,DashboardView,cloud_title,"Multi-device Sync",,active
901
- dashboard.expired_gate.feature.cloud.desc,dashboard,DashboardPage,DashboardView,cloud_desc,"Readily access parsed token logs anywhere through synced dashboard.",,active
902
- landing.v2.leaderboard.kicker,landing,LandingPage,MarketingLanding,leaderboard_kicker,"GLOBAL TOKEN LEADERBOARD",,active
903
- landing.v2.leaderboard.title,landing,LandingPage,MarketingLanding,leaderboard_title,"AI Token Efficiency",,active
904
- landing.v2.leaderboard.subtitle,landing,LandingPage,MarketingLanding,leaderboard_subtitle,"Optionally and anonymously sync your local AI token usage to join the global efficiency leaderboard. Benchmark cost efficiency and model rotations with developers worldwide.",,active
905
- landing.v2.leaderboard.active_developers,landing,LandingPage,MarketingLanding,active_developers,"1,240+ developers actively syncing",,active
906
- landing.v2.leaderboard.top_badge,landing,LandingPage,MarketingLanding,top_badge,"EFFICIENCY CHAMP",,active
907
- landing.v2.leaderboard.rank_first,landing,LandingPage,MarketingLanding,rank_first,"NO. 1 GLOBAL",,active
908
- landing.v2.leaderboard.rank_second,landing,LandingPage,MarketingLanding,rank_second,"NO. 2",,active
909
- landing.v2.leaderboard.rank_third,landing,LandingPage,MarketingLanding,rank_third,"NO. 3",,active
910
- landing.v2.leaderboard.synced_tokens,landing,LandingPage,MarketingLanding,synced_tokens,"{{count}} tokens synced",,active
911
- landing.v2.leaderboard.efficiency,landing,LandingPage,MarketingLanding,efficiency,"Efficiency: {{value}}",,active
912
- landing.v2.leaderboard.streak_days,landing,LandingPage,MarketingLanding,streak_days,"{{count}} day streak",,active
913
- landing.v2.leaderboard.view_more,landing,LandingPage,MarketingLanding,view_more,"View full leaderboard",,active
914
- cmdk.placeholder,ui,CommandPalette,CommandPalette,placeholder,"Search pages and skills…",,active
915
- cmdk.empty,ui,CommandPalette,CommandPalette,empty,"No matches",,active
916
- cmdk.group.pages,ui,CommandPalette,CommandPalette,group_pages,"Pages",,active
917
- cmdk.group.skills,ui,CommandPalette,CommandPalette,group_skills,"Skills",,active
918
- cmdk.close,ui,CommandPalette,CommandPalette,close,"Close command menu",,active
919
- cmdk.open_aria,ui,CommandPalette,CommandPalette,open_aria,"Command menu",,active
920
- skills.dot.synced_aria,ui,SkillsPage,AgentDots,dot_synced_aria,"{{agent}}: synced. Click to unsync.",,active
921
- skills.dot.off_aria,ui,SkillsPage,AgentDots,dot_off_aria,"{{agent}}: not synced. Click to sync.",,active
922
- skills.dot.orphan_aria,ui,SkillsPage,AgentDots,dot_orphan_aria,"{{agent}}: link broken. Click to re-sync.",,active
923
- skills.update.badge,ui,SkillsPage,InstalledSkillRow,update_badge,"Update",,active
924
- skills.select.row_aria,ui,SkillsPage,InstalledSkillRow,select_row_aria,"Select {{name}}",,active
925
- skills.select.toolbar_aria,ui,SkillsPage,BatchToolbar,select_toolbar_aria,"Bulk actions",,active
926
- skills.select.count,ui,SkillsPage,BatchToolbar,select_count,"{{count}} selected",,active
927
- skills.select.bulk_sync,ui,SkillsPage,BatchToolbar,select_bulk_sync,"Sync to",,active
928
- skills.select.bulk_sync_hint,ui,SkillsPage,BatchToolbar,select_bulk_sync_hint,"Add agent to all selected",,active
929
- skills.select.bulk_remove,ui,SkillsPage,BatchToolbar,select_bulk_remove,"Remove",,active
930
- skills.select.clear,ui,SkillsPage,BatchToolbar,select_clear,"Clear",,active
931
- skills.mode.popular,ui,SkillsPage,SkillsPage,mode_popular,"Popular",,active
932
- skills.browse.placeholder_popular,ui,SkillsPage,SkillsPage,browse_placeholder_popular,"Filter popular skills",,active
933
- skills.empty.popular,ui,SkillsPage,SkillsPage,empty_popular,"No popular skills right now.",,active
934
- skills.toast.bulk_synced,ui,SkillsPage,SkillsPage,toast_bulk_synced,"Synced {{count}} skills to {{agent}}.",,active
935
- skills.toast.bulk_removed,ui,SkillsPage,SkillsPage,toast_bulk_removed,"Removed {{count}} skills.",,active
936
- skills.toast.synced_one,ui,SkillsPage,SkillsPage,toast_synced_one,"Synced {{name}} to {{agent}}.",,active
937
- skills.toast.unsynced_one,ui,SkillsPage,SkillsPage,toast_unsynced_one,"Unsynced {{name}} from {{agent}}.",,active
938
- skills.toast.updated,ui,SkillsPage,SkillsPage,toast_updated,"Updated {{name}}.",,active
939
- skills.confirm.bulk_remove_title,ui,SkillsPage,SkillsPage,confirm_bulk_remove_title,"Remove {{count}} skills?",,active
940
- skills.confirm.bulk_remove_desc,ui,SkillsPage,SkillsPage,confirm_bulk_remove_desc,"This unsyncs each skill from every agent and deletes its local copy.",,active
941
- skills.update.available,ui,SkillsPage,SkillDetailPanel,update_available,"A newer version is available upstream.",,active
942
- skills.update.action,ui,SkillsPage,SkillDetailPanel,update_action,"Update",,active
943
- skills.usage.section_title,ui,SkillsPage,SkillDetailPanel,usage_section_title,"Activity",,active
944
- skills.usage.invocations,ui,SkillsPage,SkillDetailPanel,usage_invocations,"Invocations",,active
945
- skills.usage.cost,ui,SkillsPage,SkillDetailPanel,usage_cost,"Est. cost",,active
946
- skills.usage.never,ui,SkillsPage,SkillDetailPanel,usage_never,"Never",,active
947
- skills.usage.last_used,ui,SkillsPage,SkillDetailPanel,usage_last_used,"Last used",,active
948
- skills.usage.today,ui,SkillsPage,SkillDetailPanel,usage_today,"Today",,active
949
- skills.usage.days_ago,ui,SkillsPage,SkillDetailPanel,usage_days_ago,"{{days}}d ago",,active
950
- skills.usage.months_ago,ui,SkillsPage,SkillDetailPanel,usage_months_ago,"{{months}}mo ago",,active
951
- skills.usage.unknown,ui,SkillsPage,SkillDetailPanel,usage_unknown,"Unknown",,active
952
- skills.usage.unused,ui,SkillsPage,SkillDetailPanel,usage_unused,"Not invoked yet. Possible dead weight if you never use it.",,active
953
- skills.usage.disclaimer,ui,SkillsPage,SkillDetailPanel,usage_disclaimer,"Counts from Claude transcripts. Cost is the approximate spend of turns that invoked this skill.",,active
954
- `,IL={"header.auth.sign_in_aria":"登录","login.back_home":"返回首页","login.cloud_only":"未配置云端登录。请使用 localhost 上的本地仪表盘。","login.title":"登录","login.subtitle":"选择邮箱或已连接账号。","login.dismiss":"关闭","login.verify_email_success":"邮箱已验证。你现在可以登录。","login.verify_email_pending":"请先在邮箱中完成验证,然后再登录。","login.oauth.continue":"使用 {{provider}} 继续","login.divider":"或","login.tab.sign_in":"登录","login.tab.sign_up":"创建账户","login.field.name":"显示名称","login.field.name_placeholder":"可选","login.field.email":"电子邮件","login.field.password":"密码","login.password_hint":"至少 {{min}} 个字符。","login.submit.sign_in":"使用邮箱登录","login.submit.sign_up":"创建账号","auth.callback.processing":"处理中…","auth.callback.success":"登录成功","auth.callback.redirecting":"正在返回 TokenTracker…","auth.callback.failed":"登录未完成,请重试。","auth.callback.close":"关闭此页","login_modal.subtitle":"登录以加入排行榜","login_modal.continue_email":"使用邮箱继续","login_modal.divider_email":"邮箱","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.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.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.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.leaderboard":"排行榜","nav.collapse":"折叠侧边栏","nav.expand":"展开侧边栏","nav.menu":"打开导航菜单","nav.close_menu":"关闭导航菜单","nav.aside_label":"主导航","nav.nav_label":"导航","limits.page.subtitle":"AI 工具的速率限制和配额使用情况。","limits.settings.toggle_visible":"切换可见性","limits.page.openSettings":"显示设置","nav.group.general":"常规","nav.group.tools":"工具","nav.group.account":"账户","nav.settings":"设置","header.auth.open_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.account.displayName":"显示名称","settings.account.edit":"编辑","settings.account.save":"保存","settings.account.saving":"保存...","settings.account.cancel":"取消","settings.account.userId":"用户 ID","settings.account.copyUserId":"复制用户 ID","settings.account.copy":"复制","settings.account.copied":"已复制","settings.account.cloudSync":"云同步","settings.account.cloudSyncHint":"将本地用量上传到你的 Token Tracker 云端账号。","settings.account.publicProfile":"公开主页","settings.account.publicProfileHint":"在公开排行榜中展示你的用量。","settings.account.displayNameAnonymousHint":"匿名状态下,排行榜会隐藏你的名字和头像","settings.account.displayNameDisabledWhileAnon":"请先关闭匿名,再编辑名字","settings.account.githubUrl":"GitHub 主页","settings.account.githubUrlHint":"在排行榜名字旁显示 GitHub 链接。","settings.account.githubUrlPlaceholder":"用户名或 https://github.com/用户名","settings.account.githubUrlInvalid":"请输入 GitHub 用户名,或 https://github.com/用户名","leaderboard.github.aria":"打开 GitHub 主页","leaderboard.github.tooltipAction":"点击查看 GitHub 主页","leaderboard.github.tooltipPrefix":"可在","leaderboard.github.tooltipSettingsLink":"设置","leaderboard.github.tooltipSuffix":"中配置你的主页","settings.account.signOut":"退出登录","settings.account.signIn":"登录","settings.account.signedOutHint":"登录后可管理云同步和排行榜偏好。","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":"检查更新","settings.footer.statusPage":"系统状态","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.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":"取消","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":"尚未刷新"},ML={"usage.overview.antigravity_notice_title":"Token 为估算值","usage.overview.antigravity_notice_body":"Antigravity 的本地日志没有真实用量字段,这里的数字是按字符长度(约 4 字符/Token)估算出来的,也没有扣除 Gemini 的 prompt cache 折扣。请把它当作上限估算,不要直接对账账单。","stats.period.today":"今日","stats.period.week":"本周","stats.period.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 tokentracker-cli init","dashboard.session_expired.copied":"已复制","dashboard.install.prompt":"安装 Node.js 18+ 然后运行:","dashboard.install.cmd.init":"npx --yes tokentracker-cli init","dashboard.install.cmd.init_link_code":"npx --yes 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 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 年度回顾","dashboard.screenshot.twitter_button":"分享到 X","dashboard.screenshot.twitter_label":"分享到 X","dashboard.screenshot.twitter_hint":"自动将图像复制到剪贴板","dashboard.screenshot.twitter_text":"记录中的 {{total_tokens}} Token。\\n{{model_name}} 以 {{model_percent}}% 领先。\\n\\n我的 AI 使用情况,未经审计 →\\ntokentracker.cc","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":"委内瑞拉","leaderboard.profile_modal.close":"关闭","leaderboard.profile_modal.loading":"正在加载用户资料…","leaderboard.profile_modal.error":"加载用户资料失败。","leaderboard.profile_modal.empty":"这个用户的资料未公开。","leaderboard.profile_modal.row_aria":"查看 {{name}} 的资料","leaderboard.profile_modal.rank":"#{{rank}}","leaderboard.profile.hero.rank_label":"排名","leaderboard.profile_modal.hero.total_tokens":"总 Token","leaderboard.profile_modal.hero.total_cost":"总花费","leaderboard.profile_modal.hero.github":"GitHub 主页","leaderboard.profile_modal.stat.total_cost":"总花费","leaderboard.profile_modal.stat.total_tokens":"总 Token","leaderboard.profile_modal.stat.active_days":"活跃天数","leaderboard.profile_modal.stat.avg_per_day":"日均花费","leaderboard.profile_modal.streak.current":"当前连续","leaderboard.profile_modal.streak.longest":"最长连续","leaderboard.profile_modal.streak.days":"{{count}} 天","leaderboard.profile_modal.best_day.title":"最佳日","leaderboard.profile_modal.best_day.none":"—","leaderboard.profile_modal.models.count":"使用了 {{count}} 个模型","leaderboard.profile_modal.models.favorite":"最爱模型","leaderboard.profile_modal.models.none":"暂无模型记录","leaderboard.profile_modal.heatmap.title":"活跃度(最近 365 天)","leaderboard.profile_modal.providers.title":"按 Provider 分布","leaderboard.profile_modal.providers.none":"本周期无使用数据。","leaderboard.profile_modal.view_full":"查看完整主页","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":"立即登录","dashboard.expired_gate.title":"会话已过期","dashboard.expired_gate.subtitle":"您的会话已过期。请重新登录以继续查看您的云端仪表盘。","dashboard.expired_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 模式下自动跳过所有登录验证,完美保护本地离线调试体验。","dashboard.expired_gate.hero_title":"您的云端会话已过期","dashboard.expired_gate.desc":"为了您的隐私与云盘数据安全,安全凭证会在一段时间后自动过期。请重新验证以极速同步仪表盘。","dashboard.expired_gate.feature.sec.title":"安全证书保护","dashboard.expired_gate.feature.sec.desc":"加密证书到期自动销毁,严密守护您的 Token 账单资产。","dashboard.expired_gate.feature.restore.title":"无缝数据恢复","dashboard.expired_gate.feature.restore.desc":"重新登入后自动恢复多端实时看板刷新,无需重新绑定。","dashboard.expired_gate.feature.cloud.title":"跨端云端同步","dashboard.expired_gate.feature.cloud.desc":"多端随时离线统计并同步至个人控制台,多地协同掌握开销。"},NL={"landing.handle.default":"VIBE_USER","landing.handle.special":"伏特","landing.screenshot.alt":"TokenTracker 仪表板截图","landing.nav.login":"登录","landing.nav.signup":"注册","landing.install.command":"npx --yes tokentracker-cli","landing.install.action.copy":"复制命令","landing.install.action.copied":"已复制","landing.meta.title":"Token Tracker —— AI Coding CLI 的 Token 用量追踪器","landing.meta.description":"自动监控 Claude Code、Cursor、Codex 等工具的 Token 用量。本地优先、注重隐私、零配置。","landing.meta.og_site_name":"Token Tracker","landing.meta.og_type":"website","landing.meta.og_image":"https://www.tokentracker.cc/og-image.jpg","landing.meta.og_url":"https://www.tokentracker.cc/","landing.meta.twitter_card":"summary_large_image","share.meta.title":"Token Tracker 分享","share.meta.description":"分享你的 Token Tracker 仪表板快照,包含跨模型、项目和时间窗口的用量洞察。","share.meta.og_site_name":"Token Tracker","share.meta.og_type":"website","share.meta.og_image":"https://www.tokentracker.cc/share-dashboard.jpg","share.meta.og_url":"https://www.tokentracker.cc/share","share.meta.twitter_card":"summary_large_image","landing.handle.placeholder":"试试 “{{handle}}”","landing.rank.expectation":"预期排名:{{rank}}","landing.rank.singularity":"登顶","landing.rank.unranked":"未上榜","landing.cta.primary":"进入仪表板","landing.cta.secondary":"GitHub","landing.v2.hero.title_line1":"追踪你所有的","landing.v2.hero.title_line2":"AI Token","landing.v2.install.mac_cta":"下载 macOS 版","landing.v2.install.win_cta":"下载 Windows 版","landing.v2.install.desktop_cta":"下载桌面版","landing.v2.install.os_macos":"macOS","landing.v2.install.os_windows":"Windows","landing.v2.install.availability":"支持 macOS 与 Windows","landing.v2.models.title":"支持的 AI CLI 工具","landing.v2.compare.kicker":"无缝追踪","landing.v2.compare.title":"别再瞎猜你的 AI 用量。","landing.v2.compare.subtitle":"AI CLI 工具常把原始用量数据隐藏在零散的本地文件中。TokenTracker 将它们实时整理为本地优先的仪表板。","landing.v2.distill.body":"100% 本地处理,不上传任何 prompt 或代码。","landing.v2.compare.with.title":"用 Token Tracker","landing.v2.compare.with.p1":"集中式用量仪表板","landing.v2.compare.with.p2":"实时 Token 指标","landing.v2.compare.with.p3":"100% 本地,隐私无忧","landing.v2.compare.with.p4":"多客户端终端审计轨迹","landing.v2.compare.without.title":"不用","landing.v2.compare.without.p1":"散落的 JSON 日志文件","landing.v2.compare.without.p2":"对 Token 消耗一无所知","landing.v2.compare.without.p3":"突如其来的 API 账单","landing.v2.compare.without.p4":"缺失历史审计日志","landing.v2.leaderboard.kicker":"全球 TOKEN 排行榜","landing.v2.leaderboard.title":"AI Token 效率","landing.v2.leaderboard.subtitle":"您可以选择匿名同步本地 AI Token 用量,加入全球效率排行榜。与全球开发者一同评估模型开销效率与调用频次。","landing.v2.leaderboard.view_more":"查看完整排行榜","landing.v2.footer.line":"Token Tracker —— 开发者打造,服务开发者。","landing.v2.nav.status":"状态","landing.v2.nav.github":"GitHub","landing.v2.models.agent.codex":"Codex","landing.v2.models.agent.claude_code":"Claude Code","landing.v2.models.agent.cursor":"Cursor","landing.v2.models.agent.gemini":"Gemini","landing.v2.models.agent.opencode":"OpenCode","landing.v2.models.agent.openclaw":"OpenClaw","landing.v2.cta.primary":"Dashboard","landing.v2.hero.subtagline":"自动监控 Claude Code、Cursor、Codex 等工具的 Token 用量。本地优先、注重隐私、零配置。","leaderboard.profile.nav.back":"排行榜","leaderboard.title":"排行榜","leaderboard.range":"UTC {{period}} · {{from}} – {{to}}","leaderboard.range_loading":"UTC {{period}} · …","leaderboard.range.total":"全部时间","leaderboard.generated_at":"更新于 {{ts}}","leaderboard.period.week":"周","leaderboard.period.month":"月","leaderboard.period.total":"全部","leaderboard.me_label":"你","leaderboard.anon_label":"匿名","leaderboard.error.unknown":"未知错误","leaderboard.loading":"加载中…","leaderboard.empty":"暂无数据","leaderboard.column.rank":"排名","leaderboard.column.user":"用户","leaderboard.column.total":"总计","leaderboard.column.codex":"Codex","leaderboard.column.claude":"Claude","leaderboard.column.gemini":"Gemini","leaderboard.column.cursor":"Cursor","leaderboard.column.opencode":"OpenCode","leaderboard.column.openclaw":"OpenClaw","leaderboard.column.hermes":"Hermes","leaderboard.column.kiro":"Kiro","leaderboard.column.copilot":"Copilot","leaderboard.column.kimi":"Kimi","leaderboard.column.supplemental":"其他","leaderboard.column.est_cost":"预估花费","leaderboard.signin_prompt":"登录后即可上榜","leaderboard.signin_button":"登录","leaderboard.sync_prompt":"开启云同步即可参与排名","leaderboard.sync_button.idle":"开启并同步","leaderboard.sync_button.busy":"同步中…","leaderboard.pagination.page_size_label":"每页显示","leaderboard.pagination.prev":"上一页","leaderboard.pagination.next":"下一页","leaderboard.pagination.ellipsis":"……","leaderboard.pagination.page_unknown":"第 {{page}} 页","share.modal.title":"分享你的数据","share.modal.subtitle":"生成海报卡片,随处分享。","share.modal.close":"关闭","share.modal.action.x":"分享到 X","share.modal.action.download":"下载","share.modal.action.copy":"复制图片","share.modal.hint.x":"把图片粘贴到推文里","share.modal.hint.copy":"到剪贴板","share.modal.name_label":"显示名称","share.modal.name_placeholder":"输入你的名字","share.modal.style_label":"样式","share.modal.footer":"数据始终保留在本地——图片在你的浏览器内生成,绝不上传。","share.button.label":"分享","share.button.aria":"打开分享卡片","share.toast.copied":"图片已复制到剪贴板","share.toast.downloaded":"图片已保存","share.toast.failed":"图片生成失败","share.toast.working":"生成中…","share.variant.neon":"霓虹","share.variant.broadsheet":"特刊","share.date.month_year":"{{year}} 年 {{month}}","share.issue.all_time":"总计","share.month_short.jan":"1 月","share.month_short.feb":"2 月","share.month_short.mar":"3 月","share.month_short.apr":"4 月","share.month_short.may":"5 月","share.month_short.jun":"6 月","share.month_short.jul":"7 月","share.month_short.aug":"8 月","share.month_short.sep":"9 月","share.month_short.oct":"10 月","share.month_short.nov":"11 月","share.month_short.dec":"12 月","share.hook.top_loyal":"{{name}} 占了 {{percent}}% 的用量。","share.hook.days_record":"共记录 {{days}} 天。","share.hook.top_led":"{{name}} 领跑,占比 {{percent}}%。","share.hook.multi_models":"{{days}} 天里用了 {{count}} 个模型。","share.hook.days_with_model":"{{name}} 陪你跑了 {{days}} 天。","share.hook.new_chapter":"新的记录,从这里开始。","share.card.broadsheet.issue":"期号","share.card.broadsheet.by":"分享者","share.card.broadsheet.tracked_since":"追踪起始","share.card.broadsheet.total_tokens":"总 Token 数","share.card.broadsheet.estimated_spend":"预估花费","share.card.broadsheet.billable_days":"{{days}} 个活跃日","share.card.broadsheet.heatmap_title":"年度热图","share.card.broadsheet.heatmap_days_on_record":"{{active}} / {{total}} 天有记录","share.card.broadsheet.roster_title":"模型榜","share.card.broadsheet.roster_subtitle":"常用模型轮换","share.card.broadsheet.empty":"这一周很安静,还没有模型数据。","share.card.broadsheet.global_rank":"全站排名","share.card.broadsheet.active_days":"活跃","share.card.broadsheet.days_count":"{{days}} 天","share.card.broadsheet.track_yours":"追踪你自己的","share.card.annual.report_title":"用量报告","share.card.annual.less":"少","share.card.annual.more":"多","share.card.annual.heatmap_title":"Token 热图","share.card.annual.total_tokens":"总 Token 数","share.card.annual.estimated_cost":"预估成本","share.card.annual.longest_streak":"最长连击","share.card.annual.days_count":"{{days}} 天","share.card.annual.top_model":"热门模型"},OL={"header.auth.sign_in_aria":"登入","login.back_home":"返回首頁","login.cloud_only":"未配置雲端登入。請使用 localhost 上的本地儀表盤。","login.title":"登入","login.subtitle":"選擇郵箱或已連線賬號。","login.dismiss":"關閉","login.verify_email_success":"郵箱已驗證。你現在可以登入。","login.verify_email_pending":"請先在郵箱中完成驗證,然後再登入。","login.oauth.continue":"使用 {{provider}} 繼續","login.divider":"或","login.tab.sign_in":"登入","login.tab.sign_up":"建立賬戶","login.field.name":"顯示名稱","login.field.name_placeholder":"可選","login.field.email":"電子郵件","login.field.password":"密碼","login.password_hint":"至少 {{min}} 個字元。","login.submit.sign_in":"使用郵箱登入","login.submit.sign_up":"建立賬號","auth.callback.processing":"處理中…","auth.callback.success":"登入成功","auth.callback.redirecting":"正在返回 TokenTracker…","auth.callback.failed":"登入未完成,請重試。","auth.callback.close":"關閉此頁","login_modal.subtitle":"登入以加入排行榜","login_modal.continue_email":"使用郵箱繼續","login_modal.divider_email":"郵箱","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.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.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.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.leaderboard":"排行榜","nav.collapse":"摺疊側邊欄","nav.expand":"展開側邊欄","nav.menu":"開啟導航選單","nav.close_menu":"關閉導航選單","nav.aside_label":"主導航","nav.nav_label":"導航","limits.page.subtitle":"AI 工具的速率限制和配額使用情況。","limits.settings.toggle_visible":"切換可見性","limits.page.openSettings":"顯示設定","nav.group.general":"常規","nav.group.tools":"工具","nav.group.account":"賬戶","nav.settings":"設定","header.auth.open_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.account.displayName":"顯示名稱","settings.account.edit":"編輯","settings.account.save":"儲存","settings.account.saving":"儲存...","settings.account.cancel":"取消","settings.account.userId":"使用者 ID","settings.account.copyUserId":"複製使用者 ID","settings.account.copy":"複製","settings.account.copied":"已複製","settings.account.cloudSync":"雲同步","settings.account.cloudSyncHint":"將本地用量上傳到你的 Token Tracker 雲端賬號。","settings.account.publicProfile":"公開主頁","settings.account.publicProfileHint":"在公開排行榜中展示你的用量。","settings.account.displayNameAnonymousHint":"匿名狀態下,排行榜會隱藏你的名字和頭像","settings.account.displayNameDisabledWhileAnon":"請先關閉匿名,再編輯名字","settings.account.githubUrl":"GitHub 主頁","settings.account.githubUrlHint":"在排行榜名字旁顯示 GitHub 連結。","settings.account.githubUrlPlaceholder":"使用者名稱或 https://github.com/使用者名稱","settings.account.githubUrlInvalid":"請輸入 GitHub 使用者名稱,或 https://github.com/使用者名稱","leaderboard.github.aria":"開啟 GitHub 主頁","leaderboard.github.tooltipAction":"點選檢視 GitHub 主頁","leaderboard.github.tooltipPrefix":"可在","leaderboard.github.tooltipSettingsLink":"設定","leaderboard.github.tooltipSuffix":"中配置你的主頁","settings.account.signOut":"退出登入","settings.account.signIn":"登入","settings.account.signedOutHint":"登入後可管理雲同步和排行榜偏好。","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":"檢查更新","settings.footer.statusPage":"系統狀態","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.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":"取消","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":"尚未重新整理"},jL={"usage.overview.antigravity_notice_title":"Token 為估算值","usage.overview.antigravity_notice_body":"Antigravity 的本地日誌沒有真實用量欄位,這裡的數字是按字元長度(約 4 字元/Token)估算出來的,也沒有扣除 Gemini 的 prompt cache 折扣。請把它當作上限估算,不要直接對賬賬單。","stats.period.today":"今日","stats.period.week":"本週","stats.period.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 tokentracker-cli init","dashboard.session_expired.copied":"已複製","dashboard.install.prompt":"安裝 Node.js 18+ 然後執行:","dashboard.install.cmd.init":"npx --yes tokentracker-cli init","dashboard.install.cmd.init_link_code":"npx --yes 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 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 年度回顧","dashboard.screenshot.twitter_button":"分享到 X","dashboard.screenshot.twitter_label":"分享到 X","dashboard.screenshot.twitter_hint":"自動將影像複製到剪貼簿","dashboard.screenshot.twitter_text":"記錄中的 {{total_tokens}} Token。\\n{{model_name}} 以 {{model_percent}}% 領先。\\n\\n我的 AI 使用情況,未經審計 →\\ntokentracker.cc","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":"委內瑞拉","leaderboard.profile_modal.close":"關閉","leaderboard.profile_modal.loading":"正在載入使用者資料…","leaderboard.profile_modal.error":"載入使用者資料失敗。","leaderboard.profile_modal.empty":"這個使用者的資料未公開。","leaderboard.profile_modal.row_aria":"檢視 {{name}} 的資料","leaderboard.profile_modal.rank":"#{{rank}}","leaderboard.profile.hero.rank_label":"排名","leaderboard.profile_modal.hero.total_tokens":"總 Token","leaderboard.profile_modal.hero.total_cost":"總花費","leaderboard.profile_modal.hero.github":"GitHub 主頁","leaderboard.profile_modal.stat.total_cost":"總花費","leaderboard.profile_modal.stat.total_tokens":"總 Token","leaderboard.profile_modal.stat.active_days":"活躍天數","leaderboard.profile_modal.stat.avg_per_day":"日均花費","leaderboard.profile_modal.streak.current":"當前連續","leaderboard.profile_modal.streak.longest":"最長連續","leaderboard.profile_modal.streak.days":"{{count}} 天","leaderboard.profile_modal.best_day.title":"最佳日","leaderboard.profile_modal.best_day.none":"—","leaderboard.profile_modal.models.count":"使用了 {{count}} 個模型","leaderboard.profile_modal.models.favorite":"最愛模型","leaderboard.profile_modal.models.none":"暫無模型記錄","leaderboard.profile_modal.heatmap.title":"活躍度(最近 365 天)","leaderboard.profile_modal.providers.title":"按 Provider 分佈","leaderboard.profile_modal.providers.none":"本週期無使用資料。","leaderboard.profile_modal.view_full":"檢視完整主頁","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":"立即登入","dashboard.expired_gate.title":"會話已過期","dashboard.expired_gate.subtitle":"您的會話已過期。請重新登入以繼續檢視您的雲端儀表板。","dashboard.expired_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 模式下自動跳過所有登錄驗證,完美保護本地離線調試體驗。","dashboard.expired_gate.hero_title":"您的雲端會話已過期","dashboard.expired_gate.desc":"為了您的隱私與雲盤數據安全,安全憑證會在一段時間後自動過期。請重新驗證以極速同步儀表盤。","dashboard.expired_gate.feature.sec.title":"安全證書保護","dashboard.expired_gate.feature.sec.desc":"加密證書到期自動銷毀,嚴密守護您的 Token 賬單資產。","dashboard.expired_gate.feature.restore.title":"無縫數據恢復","dashboard.expired_gate.feature.restore.desc":"重新登入後自動恢復多端實時看板刷新,無需重新綁定。","dashboard.expired_gate.feature.cloud.title":"跨端雲端同步","dashboard.expired_gate.feature.cloud.desc":"多端隨時離線統計並同步至個人控制台,多地協同掌握開銷。"},UL={"landing.handle.default":"VIBE_USER","landing.handle.special":"伏特","landing.screenshot.alt":"TokenTracker 儀表板截圖","landing.nav.login":"登入","landing.nav.signup":"註冊","landing.install.command":"npx --yes tokentracker-cli","landing.install.action.copy":"複製命令","landing.install.action.copied":"已複製","landing.meta.title":"Token Tracker —— AI Coding CLI 的 Token 用量追蹤器","landing.meta.description":"自動監控 Claude Code、Cursor、Codex 等工具的 Token 用量。本地優先、注重隱私、零配置。","landing.meta.og_site_name":"Token Tracker","landing.meta.og_type":"website","landing.meta.og_image":"https://www.tokentracker.cc/og-image.jpg","landing.meta.og_url":"https://www.tokentracker.cc/","landing.meta.twitter_card":"summary_large_image","share.meta.title":"Token Tracker 分享","share.meta.description":"分享你的 Token Tracker 儀表板快照,包含跨模型、專案和時間視窗的用量洞察。","share.meta.og_site_name":"Token Tracker","share.meta.og_type":"website","share.meta.og_image":"https://www.tokentracker.cc/share-dashboard.jpg","share.meta.og_url":"https://www.tokentracker.cc/share","share.meta.twitter_card":"summary_large_image","landing.handle.placeholder":"試試 “{{handle}}”","landing.rank.expectation":"預期排名:{{rank}}","landing.rank.singularity":"登頂","landing.rank.unranked":"未上榜","landing.cta.primary":"進入儀表板","landing.cta.secondary":"GitHub","landing.v2.hero.title_line1":"追蹤你所有的","landing.v2.hero.title_line2":"AI Token","landing.v2.install.mac_cta":"下載 macOS 版","landing.v2.install.win_cta":"下載 Windows 版","landing.v2.install.desktop_cta":"下載桌面版","landing.v2.install.os_macos":"macOS","landing.v2.install.os_windows":"Windows","landing.v2.install.availability":"支援 macOS 與 Windows","landing.v2.models.title":"支援的 AI CLI 工具","landing.v2.compare.kicker":"無縫追蹤","landing.v2.compare.title":"別再瞎猜你的 AI 用量。","landing.v2.compare.subtitle":"AI CLI 工具常把原始用量數據隱藏在零散的本地文件中。TokenTracker 將它們即時整理為本地優先的儀表板。","landing.v2.distill.body":"100% 本地處理,不上傳任何 prompt 或程式碼。","landing.v2.compare.with.title":"用 Token Tracker","landing.v2.compare.with.p1":"集中式用量儀表板","landing.v2.compare.with.p2":"即時 Token 指標","landing.v2.compare.with.p3":"100% 本地,隱私無憂","landing.v2.compare.with.p4":"多用戶端終端審計軌跡","landing.v2.compare.without.title":"不用","landing.v2.compare.without.p1":"散落的 JSON 日誌檔案","landing.v2.compare.without.p2":"對 Token 消耗一無所知","landing.v2.compare.without.p3":"突如其來的 API 賬單","landing.v2.compare.without.p4":"缺失歷史審計記錄","landing.v2.leaderboard.kicker":"全球 TOKEN 排行榜","landing.v2.leaderboard.title":"AI Token 效率","landing.v2.leaderboard.subtitle":"您可以選擇匿名同步本地 AI Token 用量,加入全球效率排行榜。與全球開發者一同評估模型開銷效率與調用頻次。","landing.v2.leaderboard.view_more":"檢視完整排行榜","landing.v2.footer.line":"Token Tracker —— 開發者打造,服務開發者。","landing.v2.nav.status":"狀態","landing.v2.nav.github":"GitHub","landing.v2.models.agent.codex":"Codex","landing.v2.models.agent.claude_code":"Claude Code","landing.v2.models.agent.cursor":"Cursor","landing.v2.models.agent.gemini":"Gemini","landing.v2.models.agent.opencode":"OpenCode","landing.v2.models.agent.openclaw":"OpenClaw","landing.v2.cta.primary":"Dashboard","landing.v2.hero.subtagline":"自動監控 Claude Code、Cursor、Codex 等工具的 Token 用量。本地優先、注重隱私、零配置。","leaderboard.profile.nav.back":"排行榜","leaderboard.title":"排行榜","leaderboard.range":"UTC {{period}} · {{from}} – {{to}}","leaderboard.range_loading":"UTC {{period}} · …","leaderboard.range.total":"全部時間","leaderboard.generated_at":"更新於 {{ts}}","leaderboard.period.week":"周","leaderboard.period.month":"月","leaderboard.period.total":"全部","leaderboard.me_label":"你","leaderboard.anon_label":"匿名","leaderboard.error.unknown":"未知錯誤","leaderboard.loading":"載入中…","leaderboard.empty":"暫無資料","leaderboard.column.rank":"排名","leaderboard.column.user":"使用者","leaderboard.column.total":"總計","leaderboard.column.codex":"Codex","leaderboard.column.claude":"Claude","leaderboard.column.gemini":"Gemini","leaderboard.column.cursor":"Cursor","leaderboard.column.opencode":"OpenCode","leaderboard.column.openclaw":"OpenClaw","leaderboard.column.hermes":"Hermes","leaderboard.column.kiro":"Kiro","leaderboard.column.copilot":"Copilot","leaderboard.column.kimi":"Kimi","leaderboard.column.supplemental":"其他","leaderboard.column.est_cost":"預估花費","leaderboard.signin_prompt":"登入後即可上榜","leaderboard.signin_button":"登入","leaderboard.sync_prompt":"開啟雲同步即可參與排名","leaderboard.sync_button.idle":"開啟並同步","leaderboard.sync_button.busy":"同步中…","leaderboard.pagination.page_size_label":"每頁顯示","leaderboard.pagination.prev":"上一頁","leaderboard.pagination.next":"下一頁","leaderboard.pagination.ellipsis":"……","leaderboard.pagination.page_unknown":"第 {{page}} 頁","share.modal.title":"分享你的資料","share.modal.subtitle":"生成海報卡片,隨處分享。","share.modal.close":"關閉","share.modal.action.x":"分享到 X","share.modal.action.download":"下載","share.modal.action.copy":"複製圖片","share.modal.hint.x":"把圖片貼上到推文裡","share.modal.hint.copy":"到剪貼簿","share.modal.name_label":"顯示名稱","share.modal.name_placeholder":"輸入你的名字","share.modal.style_label":"樣式","share.modal.footer":"資料始終保留在本地——圖片在你的瀏覽器內生成,絕不上傳。","share.button.label":"分享","share.button.aria":"開啟分享卡片","share.toast.copied":"圖片已複製到剪貼簿","share.toast.downloaded":"圖片已儲存","share.toast.failed":"圖片生成失敗","share.toast.working":"生成中…","share.variant.neon":"霓虹","share.variant.broadsheet":"特刊","share.date.month_year":"{{year}} 年 {{month}}","share.issue.all_time":"總計","share.month_short.jan":"1 月","share.month_short.feb":"2 月","share.month_short.mar":"3 月","share.month_short.apr":"4 月","share.month_short.may":"5 月","share.month_short.jun":"6 月","share.month_short.jul":"7 月","share.month_short.aug":"8 月","share.month_short.sep":"9 月","share.month_short.oct":"10 月","share.month_short.nov":"11 月","share.month_short.dec":"12 月","share.hook.top_loyal":"{{name}} 佔了 {{percent}}% 的用量。","share.hook.days_record":"共記錄 {{days}} 天。","share.hook.top_led":"{{name}} 領跑,佔比 {{percent}}%。","share.hook.multi_models":"{{days}} 天裡用了 {{count}} 個模型。","share.hook.days_with_model":"{{name}} 陪你跑了 {{days}} 天。","share.hook.new_chapter":"新的記錄,從這裡開始。","share.card.broadsheet.issue":"期號","share.card.broadsheet.by":"分享者","share.card.broadsheet.tracked_since":"追蹤起始","share.card.broadsheet.total_tokens":"總 Token 數","share.card.broadsheet.estimated_spend":"預估花費","share.card.broadsheet.billable_days":"{{days}} 個活躍日","share.card.broadsheet.heatmap_title":"年度熱圖","share.card.broadsheet.heatmap_days_on_record":"{{active}} / {{total}} 天有記錄","share.card.broadsheet.roster_title":"模型榜","share.card.broadsheet.roster_subtitle":"常用模型輪換","share.card.broadsheet.empty":"這一週很安靜,還沒有模型資料。","share.card.broadsheet.global_rank":"全站排名","share.card.broadsheet.active_days":"活躍","share.card.broadsheet.days_count":"{{days}} 天","share.card.broadsheet.track_yours":"追蹤你自己的","share.card.annual.report_title":"用量報告","share.card.annual.less":"少","share.card.annual.more":"多","share.card.annual.heatmap_title":"Token 熱圖","share.card.annual.total_tokens":"總 Token 數","share.card.annual.estimated_cost":"預估成本","share.card.annual.longest_streak":"最長連擊","share.card.annual.days_count":"{{days}} 天","share.card.annual.top_model":"熱門模型"},BL={"header.auth.sign_in_aria":"ログイン","login.back_home":"ホームに戻る","login.cloud_only":"クラウドログインが設定されていません。localhost のローカルダッシュボードをご利用ください。","login.title":"ログイン","login.subtitle":"メールまたは連携済みアカウントを選択してください。","login.dismiss":"閉じる","login.verify_email_success":"メールアドレスが確認されました。ログインできます。","login.verify_email_pending":"ログインの前に、メールでの確認を完了してください。","login.oauth.continue":"{{provider}} で続ける","login.divider":"または","login.tab.sign_in":"ログイン","login.tab.sign_up":"アカウント作成","login.field.name":"表示名","login.field.name_placeholder":"任意","login.field.email":"メールアドレス","login.field.password":"パスワード","login.password_hint":"{{min}} 文字以上。","login.submit.sign_in":"メールでログイン","login.submit.sign_up":"アカウントを作成","auth.callback.processing":"処理中…","auth.callback.success":"ログインに成功しました","auth.callback.redirecting":"TokenTracker に戻っています…","auth.callback.failed":"ログインが完了しませんでした。もう一度お試しください。","auth.callback.close":"このページを閉じる","login_modal.subtitle":"ログインしてリーダーボードに参加","login_modal.continue_email":"メールで続ける","login_modal.divider_email":"メール","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.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.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.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.leaderboard":"リーダーボード","nav.collapse":"サイドバーを折りたたむ","nav.expand":"サイドバーを展開","nav.menu":"ナビゲーションメニューを開く","nav.close_menu":"ナビゲーションメニューを閉じる","nav.aside_label":"メインナビゲーション","nav.nav_label":"ナビゲーション","limits.page.subtitle":"AI ツールのレート制限とクォータの使用状況。","limits.settings.toggle_visible":"表示を切り替え","limits.page.openSettings":"表示設定","nav.group.general":"一般","nav.group.tools":"ツール","nav.group.account":"アカウント","nav.settings":"設定","header.auth.open_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.account.displayName":"表示名","settings.account.edit":"編集","settings.account.save":"保存","settings.account.saving":"保存中...","settings.account.cancel":"キャンセル","settings.account.userId":"ユーザー ID","settings.account.copyUserId":"ユーザー ID をコピー","settings.account.copy":"コピー","settings.account.copied":"コピーしました","settings.account.cloudSync":"クラウド同期","settings.account.cloudSyncHint":"ローカルの使用状況を Token Tracker のクラウドアカウントにアップロードします。","settings.account.publicProfile":"公開プロフィール","settings.account.publicProfileHint":"公開リーダーボードで使用状況を表示します。","settings.account.displayNameAnonymousHint":"匿名の状態では、リーダーボードであなたの名前とアバターが非表示になります","settings.account.displayNameDisabledWhileAnon":"名前を編集する前に、匿名を解除してください","settings.account.githubUrl":"GitHub プロフィール","settings.account.githubUrlHint":"リーダーボードの名前の横に GitHub リンクを表示します。","settings.account.githubUrlPlaceholder":"ユーザー名または https://github.com/ユーザー名","settings.account.githubUrlInvalid":"GitHub のユーザー名、または https://github.com/ユーザー名 を入力してください","leaderboard.github.aria":"GitHub プロフィールを開く","leaderboard.github.tooltipAction":"クリックして GitHub プロフィールを表示","leaderboard.github.tooltipPrefix":"ここに表示するには","leaderboard.github.tooltipSettingsLink":"設定","leaderboard.github.tooltipSuffix":"で設定してください","settings.account.signOut":"ログアウト","settings.account.signIn":"ログイン","settings.account.signedOutHint":"ログインすると、クラウド同期とリーダーボードの設定を管理できます。","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":"更新を確認","settings.footer.statusPage":"システムステータス","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.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":"キャンセル","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":"まだ更新されていません"},FL={"usage.overview.antigravity_notice_title":"トークンは推定値です","usage.overview.antigravity_notice_body":"Antigravity のローカルログには実際の使用量フィールドがないため、ここの数値は文字数(約 4 文字/トークン)から推定したもので、Gemini の prompt cache 割引も差し引かれていません。上限の推定値として扱い、請求書との照合には使わないでください。","stats.period.today":"今日","stats.period.week":"今週","stats.period.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 tokentracker-cli init を実行","dashboard.session_expired.copied":"コピーしました","dashboard.install.prompt":"Node.js 18+ をインストールしてから実行:","dashboard.install.cmd.init":"npx --yes tokentracker-cli init","dashboard.install.cmd.init_link_code":"npx --yes 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 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 年振り返り","dashboard.screenshot.twitter_button":"X にシェア","dashboard.screenshot.twitter_label":"X にシェア","dashboard.screenshot.twitter_hint":"画像を自動的にクリップボードにコピーします","dashboard.screenshot.twitter_text":"記録された {{total_tokens}} トークン。\\n{{model_name}} が {{model_percent}}% でリード。\\n\\n私の AI 使用状況、未監査 →\\ntokentracker.cc","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":"ベネズエラ","leaderboard.profile_modal.close":"閉じる","leaderboard.profile_modal.loading":"ユーザープロフィールを読み込み中…","leaderboard.profile_modal.error":"ユーザープロフィールの読み込みに失敗しました。","leaderboard.profile_modal.empty":"このユーザーのプロフィールは公開されていません。","leaderboard.profile_modal.row_aria":"{{name}} のプロフィールを表示","leaderboard.profile_modal.rank":"#{{rank}}","leaderboard.profile.hero.rank_label":"ランク","leaderboard.profile_modal.hero.total_tokens":"トークン合計","leaderboard.profile_modal.hero.total_cost":"支出合計","leaderboard.profile_modal.hero.github":"GitHub プロフィール","leaderboard.profile_modal.stat.total_cost":"支出合計","leaderboard.profile_modal.stat.total_tokens":"トークン合計","leaderboard.profile_modal.stat.active_days":"アクティブ日数","leaderboard.profile_modal.stat.avg_per_day":"1 日平均支出","leaderboard.profile_modal.streak.current":"現在の連続","leaderboard.profile_modal.streak.longest":"最長連続","leaderboard.profile_modal.streak.days":"{{count}} 日","leaderboard.profile_modal.best_day.title":"ベストデー","leaderboard.profile_modal.best_day.none":"—","leaderboard.profile_modal.models.count":"{{count}} 個のモデルを使用","leaderboard.profile_modal.models.favorite":"お気に入りモデル","leaderboard.profile_modal.models.none":"モデルの記録はまだありません","leaderboard.profile_modal.heatmap.title":"アクティビティ(直近 365 日)","leaderboard.profile_modal.providers.title":"プロバイダー別の分布","leaderboard.profile_modal.providers.none":"この期間の使用データはありません。","leaderboard.profile_modal.view_full":"完全なプロフィールを表示","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":"今すぐサインイン","dashboard.expired_gate.title":"セッションの有効期限切れ","dashboard.expired_gate.subtitle":"セッションの有効期限が切れました。クラウドダッシュボードの表示を続けるには、もう一度サインインしてください。","dashboard.expired_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モードではすべてのログイン認証を自動的にスキップし、ローカルのオフラインデバッグエクスペリエンスを完全に保護します。","dashboard.expired_gate.hero_title":"クラウドセッションの有効期限切れ","dashboard.expired_gate.desc":"プライバシーとクラウドドライブのセキュリティのため、有効なセッションは一定期間後に自動的に終了します。ダッシュボードを即座に復元するには、もう一度検証してください。","dashboard.expired_gate.feature.sec.title":"安全な保護","dashboard.expired_gate.feature.sec.desc":"暗号化された資格情報は期限が切れると自動的に破壊され、トークン資産のプライバシーを厳密に保護します。","dashboard.expired_gate.feature.restore.title":"シームレスな復元","dashboard.expired_gate.feature.restore.desc":"再ログイン後、ターミナルフックを再構成することなく、マルチデバイスのリアルタイムダッシュボードが自動的に復元されます。","dashboard.expired_gate.feature.cloud.title":"クロスデバイス同期","dashboard.expired_gate.feature.cloud.desc":"同期されたダッシュボードを介して、どこからでもトークンログを簡単に確認して開消を管理できます。"},zL={"landing.handle.default":"VIBE_USER","landing.handle.special":"ボルト","landing.screenshot.alt":"TokenTracker ダッシュボードのスクリーンショット","landing.nav.login":"ログイン","landing.nav.signup":"登録","landing.install.command":"npx --yes tokentracker-cli","landing.install.action.copy":"コマンドをコピー","landing.install.action.copied":"コピーしました","landing.meta.title":"Token Tracker — AI Coding CLI のトークン使用状況トラッカー","landing.meta.description":"Claude Code、Cursor、Codex などのツールのトークン使用量を自動的に監視。ローカルファースト、プライバシー重視、設定不要。","landing.meta.og_site_name":"Token Tracker","landing.meta.og_type":"website","landing.meta.og_image":"https://www.tokentracker.cc/og-image.jpg","landing.meta.og_url":"https://www.tokentracker.cc/","landing.meta.twitter_card":"summary_large_image","share.meta.title":"Token Tracker シェア","share.meta.description":"Token Tracker ダッシュボードのスナップショットをシェア。モデル、プロジェクト、期間をまたいだ使用状況のインサイトを含みます。","share.meta.og_site_name":"Token Tracker","share.meta.og_type":"website","share.meta.og_image":"https://www.tokentracker.cc/share-dashboard.jpg","share.meta.og_url":"https://www.tokentracker.cc/share","share.meta.twitter_card":"summary_large_image","landing.handle.placeholder":"「{{handle}}」を試す","landing.rank.expectation":"予想ランク:{{rank}}","landing.rank.singularity":"トップ","landing.rank.unranked":"ランク外","landing.cta.primary":"ダッシュボードへ","landing.cta.secondary":"GitHub","landing.v2.hero.title_line1":"あなたのすべての","landing.v2.hero.title_line2":"AI トークンを追跡","landing.v2.install.mac_cta":"macOS 版をダウンロード","landing.v2.install.win_cta":"Windows 版をダウンロード","landing.v2.install.desktop_cta":"デスクトップ版をダウンロード","landing.v2.install.os_macos":"macOS","landing.v2.install.os_windows":"Windows","landing.v2.install.availability":"macOS と Windows に対応","landing.v2.models.title":"対応する AI CLI ツール","landing.v2.compare.kicker":"シームレスな追跡","landing.v2.compare.title":"AI の使用量を当てずっぽうで考えるのはもうやめましょう。","landing.v2.compare.subtitle":"AI CLI ツールは生の履歴データを散らかったローカルファイルに隠しがちです。TokenTracker はそれらをローカルファーストのダッシュボードにリアルタイムで集約します。","landing.v2.distill.body":"100% ローカル処理。prompt やコードは一切アップロードしません。","landing.v2.compare.with.title":"Token Tracker あり","landing.v2.compare.with.p1":"集約された使用状況ダッシュボード","landing.v2.compare.with.p2":"リアルタイムのトークン指標","landing.v2.compare.with.p3":"100% ローカルでプライバシーも安心","landing.v2.compare.with.p4":"マルチクライアントのターミナル監査証跡","landing.v2.compare.without.title":"なし","landing.v2.compare.without.p1":"散らばった JSON ログファイル","landing.v2.compare.without.p2":"トークン消費がまったく見えない","landing.v2.compare.without.p3":"突然の API 請求","landing.v2.compare.without.p4":"過去の監査ログが皆無","landing.v2.leaderboard.kicker":"グローバル TOKEN リーダーボード","landing.v2.leaderboard.title":"AI Token 効率","landing.v2.leaderboard.subtitle":"ローカルの AI Token 使用量を匿名で同期し、グローバル効率リーダーボードに参加できます。世界中の開発者とモデルのコスト効率や呼び出し頻度を比較できます。","landing.v2.leaderboard.view_more":"リーダーボード全体を見る","landing.v2.footer.line":"Token Tracker — 開発者が、開発者のために作りました。","landing.v2.nav.status":"ステータス","landing.v2.nav.github":"GitHub","landing.v2.models.agent.codex":"Codex","landing.v2.models.agent.claude_code":"Claude Code","landing.v2.models.agent.cursor":"Cursor","landing.v2.models.agent.gemini":"Gemini","landing.v2.models.agent.opencode":"OpenCode","landing.v2.models.agent.openclaw":"OpenClaw","landing.v2.cta.primary":"Dashboard","landing.v2.hero.subtagline":"Claude Code、Cursor、Codex などのツールのトークン使用量を自動的に監視。ローカルファースト、プライバシー重視、設定不要。","leaderboard.profile.nav.back":"リーダーボード","leaderboard.title":"リーダーボード","leaderboard.range":"UTC {{period}} · {{from}} – {{to}}","leaderboard.range_loading":"UTC {{period}} · …","leaderboard.range.total":"全期間","leaderboard.generated_at":"{{ts}} に更新","leaderboard.period.week":"週","leaderboard.period.month":"月","leaderboard.period.total":"全期間","leaderboard.me_label":"あなた","leaderboard.anon_label":"匿名","leaderboard.error.unknown":"不明なエラー","leaderboard.loading":"読み込み中…","leaderboard.empty":"データがありません","leaderboard.column.rank":"ランク","leaderboard.column.user":"ユーザー","leaderboard.column.total":"合計","leaderboard.column.codex":"Codex","leaderboard.column.claude":"Claude","leaderboard.column.gemini":"Gemini","leaderboard.column.cursor":"Cursor","leaderboard.column.opencode":"OpenCode","leaderboard.column.openclaw":"OpenClaw","leaderboard.column.hermes":"Hermes","leaderboard.column.kiro":"Kiro","leaderboard.column.copilot":"Copilot","leaderboard.column.kimi":"Kimi","leaderboard.column.supplemental":"その他","leaderboard.column.est_cost":"推定支出","leaderboard.signin_prompt":"ログインするとランキングに参加できます","leaderboard.signin_button":"ログイン","leaderboard.sync_prompt":"クラウド同期を有効にするとランキングに参加できます","leaderboard.sync_button.idle":"有効にして同期","leaderboard.sync_button.busy":"同期中…","leaderboard.pagination.page_size_label":"ページあたりの表示数","leaderboard.pagination.prev":"前のページ","leaderboard.pagination.next":"次のページ","leaderboard.pagination.ellipsis":"……","leaderboard.pagination.page_unknown":"{{page}} ページ目","share.modal.title":"あなたのデータをシェア","share.modal.subtitle":"ポスターカードを生成して、どこでもシェア。","share.modal.close":"閉じる","share.modal.action.x":"X にシェア","share.modal.action.download":"ダウンロード","share.modal.action.copy":"画像をコピー","share.modal.hint.x":"画像をツイートに貼り付け","share.modal.hint.copy":"クリップボードへ","share.modal.name_label":"表示名","share.modal.name_placeholder":"名前を入力","share.modal.style_label":"スタイル","share.modal.footer":"データは常にローカルに保持されます。画像はブラウザ内で生成され、アップロードされることはありません。","share.button.label":"シェア","share.button.aria":"シェアカードを開く","share.toast.copied":"画像をクリップボードにコピーしました","share.toast.downloaded":"画像を保存しました","share.toast.failed":"画像の生成に失敗しました","share.toast.working":"生成中…","share.variant.neon":"ネオン","share.variant.broadsheet":"特集号","share.date.month_year":"{{year}} 年 {{month}}","share.issue.all_time":"全期間","share.month_short.jan":"1 月","share.month_short.feb":"2 月","share.month_short.mar":"3 月","share.month_short.apr":"4 月","share.month_short.may":"5 月","share.month_short.jun":"6 月","share.month_short.jul":"7 月","share.month_short.aug":"8 月","share.month_short.sep":"9 月","share.month_short.oct":"10 月","share.month_short.nov":"11 月","share.month_short.dec":"12 月","share.hook.top_loyal":"{{name}} が使用量の {{percent}}% を占めました。","share.hook.days_record":"合計 {{days}} 日を記録。","share.hook.top_led":"{{name}} がリードし、割合は {{percent}}%。","share.hook.multi_models":"{{days}} 日間で {{count}} 個のモデルを使用。","share.hook.days_with_model":"{{name}} が {{days}} 日間付き合ってくれました。","share.hook.new_chapter":"新しい記録が、ここから始まります。","share.card.broadsheet.issue":"号数","share.card.broadsheet.by":"シェアした人","share.card.broadsheet.tracked_since":"追跡開始","share.card.broadsheet.total_tokens":"トークン総数","share.card.broadsheet.estimated_spend":"推定支出","share.card.broadsheet.billable_days":"{{days}} 日のアクティブ日","share.card.broadsheet.heatmap_title":"年間ヒートマップ","share.card.broadsheet.heatmap_days_on_record":"{{active}} / {{total}} 日に記録あり","share.card.broadsheet.roster_title":"モデルランキング","share.card.broadsheet.roster_subtitle":"よく使うモデルのローテーション","share.card.broadsheet.empty":"今週は静かで、まだモデルのデータがありません。","share.card.broadsheet.global_rank":"全体ランク","share.card.broadsheet.active_days":"アクティブ","share.card.broadsheet.days_count":"{{days}} 日","share.card.broadsheet.track_yours":"あなた自身を追跡する","share.card.annual.report_title":"使用状況レポート","share.card.annual.less":"少","share.card.annual.more":"多","share.card.annual.heatmap_title":"トークンヒートマップ","share.card.annual.total_tokens":"トークン総数","share.card.annual.estimated_cost":"推定コスト","share.card.annual.longest_streak":"最長連続","share.card.annual.days_count":"{{days}} 日","share.card.annual.top_model":"人気モデル"},VL={"header.auth.sign_in_aria":"로그인","login.back_home":"홈으로 돌아가기","login.cloud_only":"클라우드 로그인이 설정되지 않았습니다. localhost의 로컬 대시보드를 사용하세요.","login.title":"로그인","login.subtitle":"이메일 또는 연결된 계정을 선택하세요.","login.dismiss":"닫기","login.verify_email_success":"이메일이 인증되었습니다. 아래에서 로그인할 수 있습니다.","login.verify_email_pending":"이메일에서 계정 인증을 완료한 후 로그인하세요.","login.oauth.continue":"{{provider}}(으)로 계속하기","login.divider":"또는","login.tab.sign_in":"로그인","login.tab.sign_up":"계정 만들기","login.field.name":"표시 이름","login.field.name_placeholder":"선택 사항","login.field.email":"이메일","login.field.password":"비밀번호","login.password_hint":"최소 {{min}}자 이상.","login.submit.sign_in":"이메일로 로그인","login.submit.sign_up":"계정 만들기","auth.callback.processing":"처리 중…","auth.callback.success":"로그인 성공","auth.callback.redirecting":"TokenTracker로 돌아가는 중…","auth.callback.failed":"로그인을 완료하지 못했습니다. 다시 시도해 주세요.","auth.callback.close":"이 페이지 닫기","login_modal.subtitle":"로그인하여 리더보드에 참여하세요","login_modal.continue_email":"이메일로 계속하기","login_modal.divider_email":"이메일","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.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.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.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.leaderboard":"리더보드","nav.collapse":"사이드바 접기","nav.expand":"사이드바 펼치기","nav.menu":"내비게이션 메뉴 열기","nav.close_menu":"내비게이션 메뉴 닫기","nav.aside_label":"주 내비게이션","nav.nav_label":"기본","limits.page.subtitle":"AI 도구 전반의 사용 한도와 할당량 사용 현황.","limits.settings.toggle_visible":"표시 여부 전환","limits.page.openSettings":"표시 설정","nav.group.general":"일반","nav.group.tools":"도구","nav.group.account":"계정","nav.settings":"설정","header.auth.open_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.account.displayName":"표시 이름","settings.account.edit":"편집","settings.account.save":"저장","settings.account.saving":"저장 중...","settings.account.cancel":"취소","settings.account.userId":"사용자 ID","settings.account.copyUserId":"사용자 ID 복사","settings.account.copy":"복사","settings.account.copied":"복사됨","settings.account.cloudSync":"클라우드 동기화","settings.account.cloudSyncHint":"로컬 사용량을 Token Tracker 클라우드 계정에 업로드합니다.","settings.account.publicProfile":"공개 프로필","settings.account.publicProfileHint":"공개 리더보드에 사용량을 표시합니다.","settings.account.displayNameAnonymousHint":"익명 — 리더보드에서 이름과 아바타가 숨겨집니다","settings.account.displayNameDisabledWhileAnon":"이름을 편집하려면 먼저 스위치를 켜세요","settings.account.githubUrl":"GitHub 프로필","settings.account.githubUrlHint":"리더보드에서 이름 옆에 GitHub 링크를 표시합니다.","settings.account.githubUrlPlaceholder":"사용자명 또는 https://github.com/사용자명","settings.account.githubUrlInvalid":"GitHub 사용자명 또는 https://github.com/사용자명 형식의 URL을 입력하세요.","leaderboard.github.aria":"GitHub 프로필 열기","leaderboard.github.tooltipAction":"클릭하여 GitHub 프로필 열기","leaderboard.github.tooltipPrefix":"여기에 표시하려면","leaderboard.github.tooltipSettingsLink":"설정","leaderboard.github.tooltipSuffix":"에서 설정하세요","settings.account.signOut":"로그아웃","settings.account.signIn":"로그인","settings.account.signedOutHint":"로그인하여 클라우드 동기화와 리더보드 환경설정을 관리하세요.","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":"업데이트 확인","settings.footer.statusPage":"시스템 상태","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.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":"취소","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":"첫 새로고침 대기 중"},$L={"usage.overview.antigravity_notice_title":"추정 토큰","usage.overview.antigravity_notice_body":"Antigravity 기록에는 실제 사용량 수치가 저장되지 않습니다. 여기 표시된 수치는 텍스트 길이(약 4자/토큰)로 추정한 값이며 Gemini의 프롬프트 캐시 할인은 반영되지 않으므로, 청구 금액이 아니라 상한 추정치로 참고하세요.","stats.period.today":"오늘","stats.period.week":"이번 주","stats.period.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 tokentracker-cli init 실행","dashboard.session_expired.copied":"복사됨","dashboard.install.prompt":"Node.js 18+ 설치 후 실행:","dashboard.install.cmd.init":"npx --yes tokentracker-cli init","dashboard.install.cmd.init_link_code":"npx --yes 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 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 연말 결산","dashboard.screenshot.twitter_button":"X에 공유","dashboard.screenshot.twitter_label":"X에 공유","dashboard.screenshot.twitter_hint":"이미지를 클립보드에 자동 복사합니다","dashboard.screenshot.twitter_text":"기록된 {{total_tokens}} 토큰.\\n{{model_name}}이(가) {{model_percent}}%로 1위.\\n\\n검증되지 않은 나의 AI 사용량 →\\ntokentracker.cc","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":"베네수엘라","leaderboard.profile_modal.close":"닫기","leaderboard.profile_modal.loading":"프로필 불러오는 중…","leaderboard.profile_modal.error":"프로필을 불러오지 못했습니다.","leaderboard.profile_modal.empty":"이 프로필은 공개되지 않았습니다.","leaderboard.profile_modal.row_aria":"{{name}}의 프로필 열기","leaderboard.profile_modal.rank":"#{{rank}}","leaderboard.profile.hero.rank_label":"순위","leaderboard.profile_modal.hero.total_tokens":"총 토큰","leaderboard.profile_modal.hero.total_cost":"총비용","leaderboard.profile_modal.hero.github":"GitHub 프로필","leaderboard.profile_modal.stat.total_cost":"총비용","leaderboard.profile_modal.stat.total_tokens":"총 토큰","leaderboard.profile_modal.stat.active_days":"활동 일수","leaderboard.profile_modal.stat.avg_per_day":"일 평균","leaderboard.profile_modal.streak.current":"현재 연속","leaderboard.profile_modal.streak.longest":"최장 연속","leaderboard.profile_modal.streak.days":"{{count}}일","leaderboard.profile_modal.best_day.title":"최고의 날","leaderboard.profile_modal.best_day.none":"—","leaderboard.profile_modal.models.count":"{{count}}개 모델 사용","leaderboard.profile_modal.models.favorite":"최애 모델","leaderboard.profile_modal.models.none":"추적된 모델 없음","leaderboard.profile_modal.heatmap.title":"활동 (최근 365일)","leaderboard.profile_modal.providers.title":"제공자별","leaderboard.profile_modal.providers.none":"이 기간에는 사용 데이터가 없습니다.","leaderboard.profile_modal.view_full":"전체 프로필 보기","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":"로그인","dashboard.expired_gate.title":"세션 만료됨","dashboard.expired_gate.subtitle":"세션이 만료되었습니다. 클라우드 대시보드를 계속 보려면 다시 로그인하세요.","dashboard.expired_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 모드에서는 모든 로그인 인증을 자동으로 건너뛰어 로컬 오프라인 디버깅 경험을 완벽하게 보호합니다.","dashboard.expired_gate.hero_title":"클라우드 세션 만료됨","dashboard.expired_gate.desc":"개인 정보 및 클라우드 드라이브 보안을 위해 활성 세션은 일정 기간 후 자동으로 종료됩니다. 대시보드를 즉시 복원하려면 다시 인증해 주세요.","dashboard.expired_gate.feature.sec.title":"안전한 보호","dashboard.expired_gate.feature.sec.desc":"암호화된 자격 증명은 만료 시 자동으로 파기되어 토큰 자산의 개인 정보를 철저히 보호합니다.","dashboard.expired_gate.feature.restore.title":"원활한 데이터 복원","dashboard.expired_gate.feature.restore.desc":"다시 로그인하면 터미널 훅을 재구성할 필요 없이 멀티 디바이스 실시간 대시보드가 자동으로 복원됩니다.","dashboard.expired_gate.feature.cloud.title":"교차 장치 동기화","dashboard.expired_gate.feature.cloud.desc":"동기화된 대시보드를 통해 어디서나 토큰 로그를 간편하게 확인하고 지출을 관리할 수 있습니다."},HL={"landing.handle.default":"VIBE_USER","landing.handle.special":"VOLT","landing.screenshot.alt":"TokenTracker 대시보드 스크린샷","landing.nav.login":"로그인","landing.nav.signup":"회원가입","landing.install.command":"npx --yes tokentracker-cli","landing.install.action.copy":"명령 복사","landing.install.action.copied":"복사됨","landing.meta.title":"Token Tracker — AI Agent CLI를 위한 토큰 사용량 추적기","landing.meta.description":"Claude Code, Cursor, Codex 등의 토큰 사용량을 자동으로 모니터링하세요. 로컬 우선, 개인정보 보호 중심, 수동 설정 불필요.","landing.meta.og_site_name":"Token Tracker","landing.meta.og_type":"website","landing.meta.og_image":"https://www.tokentracker.cc/dashboard-dark.png","landing.meta.og_url":"https://www.tokentracker.cc/","landing.meta.twitter_card":"summary_large_image","share.meta.title":"Token Tracker 공유","share.meta.description":"모델, 프로젝트, 기간별 토큰 사용량 인사이트가 담긴 Token Tracker 대시보드 스냅샷을 공유하세요.","share.meta.og_site_name":"Token Tracker","share.meta.og_type":"website","share.meta.og_image":"https://www.tokentracker.cc/dashboard-dark.png","share.meta.og_url":"https://www.tokentracker.cc/share","share.meta.twitter_card":"summary_large_image","landing.handle.placeholder":"'{{handle}}' 입력해 보기","landing.rank.expectation":"예상 순위: {{rank}}","landing.rank.singularity":"정점","landing.rank.unranked":"순위 없음","landing.cta.primary":"대시보드 보기","landing.cta.secondary":"GitHub","landing.v2.hero.title_line1":"당신의 모든","landing.v2.hero.title_line2":"AI 토큰 추적","landing.v2.install.mac_cta":"macOS용 다운로드","landing.v2.install.win_cta":"Windows용 다운로드","landing.v2.install.desktop_cta":"데스크톱 앱 다운로드","landing.v2.install.os_macos":"macOS","landing.v2.install.os_windows":"Windows","landing.v2.install.availability":"macOS 및 Windows 지원","landing.v2.models.title":"지원하는 AI CLI 도구","landing.v2.compare.kicker":"매끄러운 추적","landing.v2.compare.title":"AI 사용량을 더 이상 추측하지 마세요.","landing.v2.compare.subtitle":"AI CLI 도구는 원본 사용량 데이터를 흩어진 로컬 파일에 숨겨둡니다. TokenTracker는 이를 로컬 퍼스트 대시보드로 실시간 정리합니다.","landing.v2.distill.body":"100% 로컬 처리. 프롬프트나 코드는 절대 수집하지 않습니다.","landing.v2.compare.with.title":"TOKEN TRACKER 사용 시","landing.v2.compare.with.p1":"통합된 사용량 대시보드","landing.v2.compare.with.p2":"실시간 토큰 지표","landing.v2.compare.with.p3":"100% 로컬, 개인정보 보장","landing.v2.compare.with.p4":"멀티 클라이언트 터미널 감사 추적","landing.v2.compare.without.title":"사용하지 않을 때","landing.v2.compare.without.p1":"흩어진 JSON 로그 파일","landing.v2.compare.without.p2":"토큰 소비량에 대한 깜깜이","landing.v2.compare.without.p3":"예상치 못한 API 청구서","landing.v2.compare.without.p4":"과거 감사 로그 부재","landing.v2.leaderboard.kicker":"글로벌 TOKEN 리더보드","landing.v2.leaderboard.title":"AI Token 효율성","landing.v2.leaderboard.subtitle":"로컬 AI Token 사용량을 익명으로 동기화하여 글로벌 효율성 리더보드에 참여할 수 있습니다. 전 세계 개발자들과 함께 모델 비용 효율성 및 호출 빈도를 벤치마킹하세요.","landing.v2.leaderboard.view_more":"전체 리더보드 보기","landing.v2.footer.line":"Token Tracker — 개발자가 만든, 개발자를 위한.","landing.v2.nav.status":"상태","landing.v2.nav.github":"GitHub","landing.v2.models.agent.codex":"CODEX","landing.v2.models.agent.claude_code":"CLAUDE CODE","landing.v2.models.agent.cursor":"CURSOR","landing.v2.models.agent.gemini":"GEMINI","landing.v2.models.agent.opencode":"OPENCODE","landing.v2.models.agent.openclaw":"OPENCLAW","landing.v2.cta.primary":"Dashboard","landing.v2.hero.subtagline":"Claude Code, Cursor, Codex 등의 토큰 사용량을 자동으로 모니터링하세요. 로컬 우선, 개인정보 보호 중심, 수동 설정 불필요.","leaderboard.profile.nav.back":"리더보드","leaderboard.title":"리더보드","leaderboard.range":"UTC {{period}} · {{from}} – {{to}}","leaderboard.range_loading":"UTC {{period}} · …","leaderboard.range.total":"전체 기간","leaderboard.generated_at":"{{ts}} 업데이트됨","leaderboard.period.week":"주","leaderboard.period.month":"월","leaderboard.period.total":"전체","leaderboard.me_label":"나","leaderboard.anon_label":"익명","leaderboard.error.unknown":"알 수 없는 오류","leaderboard.loading":"불러오는 중…","leaderboard.empty":"데이터 없음","leaderboard.column.rank":"순위","leaderboard.column.user":"사용자","leaderboard.column.total":"전체","leaderboard.column.codex":"Codex","leaderboard.column.claude":"Claude","leaderboard.column.gemini":"Gemini","leaderboard.column.cursor":"Cursor","leaderboard.column.opencode":"OpenCode","leaderboard.column.openclaw":"OpenClaw","leaderboard.column.hermes":"Hermes","leaderboard.column.kiro":"Kiro","leaderboard.column.copilot":"GitHub Copilot","leaderboard.column.kimi":"Kimi Code","leaderboard.column.supplemental":"기타","leaderboard.column.est_cost":"예상 비용","leaderboard.signin_prompt":"로그인하여 리더보드에 참여하세요","leaderboard.signin_button":"로그인","leaderboard.sync_prompt":"클라우드 동기화를 켜면 순위에 표시됩니다","leaderboard.sync_button.idle":"켜고 동기화","leaderboard.sync_button.busy":"동기화 중...","leaderboard.pagination.page_size_label":"페이지당 행 수","leaderboard.pagination.prev":"이전","leaderboard.pagination.next":"다음","leaderboard.pagination.ellipsis":"…","leaderboard.pagination.page_unknown":"{{page}} 페이지","share.modal.title":"내 통계 공유","share.modal.subtitle":"포스터 스타일 카드를 생성해 어디든 공유하세요.","share.modal.close":"닫기","share.modal.action.x":"X에 공유","share.modal.action.download":"다운로드","share.modal.action.copy":"이미지 복사","share.modal.hint.x":"트윗에 이미지 붙여넣기","share.modal.hint.copy":"클립보드로","share.modal.name_label":"표시 이름","share.modal.name_placeholder":"이름을 입력하세요","share.modal.style_label":"스타일","share.modal.footer":"데이터는 항상 로컬에 보관됩니다 — 이미지는 브라우저에서 생성되며 절대 업로드되지 않습니다.","share.button.label":"공유","share.button.aria":"공유 카드 열기","share.toast.copied":"이미지가 클립보드에 복사되었습니다","share.toast.downloaded":"이미지가 저장되었습니다","share.toast.failed":"이미지를 생성하지 못했습니다","share.toast.working":"생성 중…","share.variant.neon":"네온","share.variant.broadsheet":"특집","share.date.month_year":"{{year}}년 {{month}}","share.issue.all_time":"전체 기간","share.month_short.jan":"1월","share.month_short.feb":"2월","share.month_short.mar":"3월","share.month_short.apr":"4월","share.month_short.may":"5월","share.month_short.jun":"6월","share.month_short.jul":"7월","share.month_short.aug":"8월","share.month_short.sep":"9월","share.month_short.oct":"10월","share.month_short.nov":"11월","share.month_short.dec":"12월","share.hook.top_loyal":"{{percent}}%를 {{name}}에 집중.","share.hook.days_record":"{{days}}일 기록.","share.hook.top_led":"{{name}} 선두 ({{percent}}%).","share.hook.multi_models":"{{count}}개 모델, {{days}}일에 걸쳐.","share.hook.days_with_model":"{{name}}와(과) 함께한 {{days}}일.","share.hook.new_chapter":"새로운 장의 시작.","share.card.broadsheet.issue":"호","share.card.broadsheet.by":"작성자","share.card.broadsheet.tracked_since":"추적 시작","share.card.broadsheet.total_tokens":"총 토큰","share.card.broadsheet.estimated_spend":"예상 지출","share.card.broadsheet.billable_days":"활동 {{days}}일","share.card.broadsheet.heatmap_title":"올해의 인쇄본","share.card.broadsheet.heatmap_days_on_record":"{{active}} / {{total}}일 기록","share.card.broadsheet.roster_title":"모델 명단","share.card.broadsheet.roster_subtitle":"정기적으로 사용하는 모델","share.card.broadsheet.empty":"한산한 한 주 — 윤전기가 조용했습니다.","share.card.broadsheet.global_rank":"전체 순위","share.card.broadsheet.active_days":"활동","share.card.broadsheet.days_count":"{{days}}일","share.card.broadsheet.track_yours":"내 것도 추적하기","share.card.annual.report_title":"토큰 리포트","share.card.annual.less":"적음","share.card.annual.more":"많음","share.card.annual.heatmap_title":"토큰 사용량 히트맵","share.card.annual.total_tokens":"총 토큰","share.card.annual.estimated_cost":"예상 비용","share.card.annual.longest_streak":"최장 연속","share.card.annual.days_count":"{{days}}일","share.card.annual.top_model":"인기 모델"},Vw="tokentracker-locale",Oo="system",Mu="en",$w="zh-CN",Hw="zh-TW",Ww="ja",Gw="ko",WL=/^zh[-_](hant|tw|hk|mo)\b/i;function Kw(e){return/^zh(?:[-_]|$)/i.test(e)?WL.test(e)?Hw:$w:/^ja(?:[-_]|$)/i.test(e)?Ww:/^ko(?:[-_]|$)/i.test(e)?Gw:null}function qw(e){return typeof e!="string"?Mu:Kw(e.trim())||Mu}function dd(e){return e===Oo?Oo:qw(e)}function GL(){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 Nu(e,t=GL()){const n=dd(e);if(n!==Oo)return n;const a=t.map(o=>typeof o=="string"?o.trim():"").find(o=>o.length>0);return a&&Kw(a)||Mu}function Am(){return dd(Ks(Vw)||Oo)}function KL(e){return qs(Vw,dd(e))}const qL=["key","module","page","component","slot","text"],YL={[$w]:{...IL,...ML,...NL},[Hw]:{...OL,...jL,...UL},[Ww]:{...BL,...FL,...zL},[Gw]:{...VL,...$L,...HL}};let kf=null,Yw=Nu(Am());function ZL(e){const t=[];let n=[],a="",o=!1;for(let s=0;s<e.length;s+=1){const l=e[s];if(o){l==='"'?e[s+1]==='"'?(a+='"',s+=1):o=!1:a+=l;continue}if(l==='"'){o=!0;continue}if(l===","){n.push(a),a="";continue}if(l===`
955
- `){n.push(a),a="",n.every(u=>u.trim()==="")||t.push(n),n=[];continue}l!=="\r"&&(a+=l)}return n.push(a),n.every(s=>s.trim()==="")||t.push(n),t}function XL(e){const t=ZL(e);if(!t.length)return{map:new Map,rows:[]};const n=t[0].map(u=>String(u).trim());if(qL.filter(u=>!n.includes(u)).length)return{map:new Map,rows:[]};const o=Object.fromEntries(n.map((u,f)=>[u,f])),s=[],l=new Map;return t.slice(1).forEach((u,f)=>{const h={key:String(u[o.key]||"").trim(),module:String(u[o.module]||"").trim(),page:String(u[o.page]||"").trim(),component:String(u[o.component]||"").trim(),slot:String(u[o.slot]||"").trim(),text:String(u[o.text]??"").trim()};h.key&&(l.has(h.key),l.set(h.key,h),s.push(h))}),{map:l,rows:s}}function QL(){return kf||(kf=XL(DL)),kf}function JL(){return YL[Yw]||{}}function eD(e){const t=JL()[String(e)];return typeof t=="string"&&t.trim()?t:null}function tD(e,t){return t?e.replace(/\{\{(\w+)\}\}/g,(n,a)=>t[a]==null?n:String(t[a])):e}function nD(e){return String(e).replace(/\\n/g,`
956
- `)}function aD(e,t){return eD(t)||e?.text||t}function rD(e){Yw=qw(e)}function De(e,t){const a=QL().map.get(e);return tD(nD(aD(a,e)),t)}const Zw=k.createContext(null);function iD(){return Nu(Am())}function oD(e){typeof document>"u"||(document.documentElement.lang=e)}function ok(e,t){rD(e),t(n=>n===e?n:e)}function sD({children:e}){const[t,n]=k.useState(Am),[a,o]=k.useState(iD);k.useLayoutEffect(()=>{oD(a)},[a]),k.useLayoutEffect(()=>{pa()&&Ys("locale",t)},[t]),k.useLayoutEffect(()=>{if(t!==Oo||typeof window>"u")return;const u=()=>ok(Nu(Oo),o);return window.addEventListener("languagechange",u),()=>window.removeEventListener("languagechange",u)},[t]);const s=k.useCallback(u=>{const f=dd(u);ok(Nu(f),o),n(f),KL(f),pa()&&Ys("locale",f)},[]),l=k.useMemo(()=>({locale:t,setLocale:s,resolvedLocale:a}),[t,a,s]);return T.jsx(Zw.Provider,{value:l,children:e})}const lD="https://open.er-api.com/v6/latest/USD",cD=1440*60*1e3,uD=5e3;function dD(e,t=cD,n=Date.now()){return!e||!Number.isFinite(e)?!0:n-e>t}async function hD(e={}){const{timeoutMs:t=uD,fetchImpl:n,url:a=lD,codes:o=Pm}=e,s=n??(typeof fetch<"u"?fetch:null);if(!s)throw new Error("fetch is not available");const l=typeof AbortController<"u"?new AbortController:null,u=l?setTimeout(()=>l.abort(),t):null;try{const f=await s(a,l?{signal:l.signal}:void 0);if(!f||!f.ok)throw new Error(`exchange rate fetch failed: ${f?.status??"no-response"}`);const m=(await f.json())?.rates;if(!m||typeof m!="object")throw new Error("exchange rate response missing rates");const y={USD:1};for(const v of o){if(v==="USD")continue;const _=m[v];Du(_)&&(y[v]=_)}if(Object.keys(y).length<=1)throw new Error("no supported currency rates in response");return{rates:y,fetchedAt:Date.now()}}finally{u&&clearTimeout(u)}}const fD=k.createContext(null);function sk(e,t,n){pa()&&(Ys("currency",e),Ys("currencySymbol",n),Du(t)&&Ys("exchangeRate",t))}function pD({children:e}){const[t,n]=k.useState(YR),a=k.useMemo(()=>QR(),[]),[o,s]=k.useState(a.rates),[l,u]=k.useState(a.source),[f,h]=k.useState(a.fetchedAt),m=k.useRef(!1),y=k.useRef(!1),v=k.useCallback((M,E,A)=>{s(M),u(E),h(A),JR({rates:M,source:E,fetchedAt:A})},[]),_=k.useCallback(async()=>{if(!m.current){m.current=!0;try{const{rates:M,fetchedAt:E}=await hD();v({...Sm,...M},"fetched",E)}catch{}finally{m.current=!1}}},[v]),x=k.useCallback(M=>{const E=Cm(M);n(E),ZR(E);const A=yf(o,E),B=uu(E);sk(E,A,B)},[o]);k.useEffect(()=>{y.current||t!==ll&&dD(f)&&(y.current=!0,_())},[t,f,_]),k.useEffect(()=>{const M=yf(o,t),E=uu(t);sk(t,M,E)},[t,o]);const S=k.useMemo(()=>yf(o,t),[o,t]),C=k.useMemo(()=>uu(t),[t]),D=k.useMemo(()=>({currency:t,rate:S,symbol:C,rates:o,rateSource:l,rateFetchedAt:f,setCurrency:x}),[t,S,C,o,l,f,x]);return T.jsx(fD.Provider,{value:D,children:e})}const mD="modulepreload",gD=function(e){return"/"+e},lk={},na=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){let f=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=l?.nonce||l?.getAttribute("nonce");o=f(n.map(h=>{if(h=gD(h),h in lk)return;lk[h]=!0;const m=h.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${y}`))return;const v=document.createElement("link");if(v.rel=m?"stylesheet":mD,m||(v.as="script"),v.crossOrigin="",v.href=h,u&&v.setAttribute("nonce",u),document.head.appendChild(v),m)return new Promise((_,x)=>{v.addEventListener("load",_),v.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return o.then(l=>{for(const u of l||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};var Ou={},yD=()=>{window.va||(window.va=function(...t){window.vaq||(window.vaq=[]),window.vaq.push(t)})},vD="@vercel/analytics",bD="2.0.1";function Xw(){return typeof window<"u"}function Qw(){try{const e="production"}catch{}return"production"}function kD(e="auto"){if(e==="auto"){window.vam=Qw();return}window.vam=e}function _D(){return(Xw()?window.vam:Qw())||"production"}function Rm(){return _D()==="development"}function wD(e){return e.scriptSrc?Po(e.scriptSrc):Rm()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?Po(`${e.basePath}/insights/script.js`):"/_vercel/insights/script.js"}function xD(e,t){var n;let a=e;if(t)try{a={...(n=JSON.parse(t))==null?void 0:n.analytics,...e}}catch{}kD(a.mode);const o={sdkn:vD+(a.framework?`/${a.framework}`:""),sdkv:bD};return a.disableAutoTrack&&(o.disableAutoTrack="1"),a.viewEndpoint&&(o.viewEndpoint=Po(a.viewEndpoint)),a.eventEndpoint&&(o.eventEndpoint=Po(a.eventEndpoint)),a.sessionEndpoint&&(o.sessionEndpoint=Po(a.sessionEndpoint)),Rm()&&a.debug===!1&&(o.debug="false"),a.dsn&&(o.dsn=a.dsn),a.endpoint?o.endpoint=a.endpoint:a.basePath&&(o.endpoint=Po(`${a.basePath}/insights`)),{beforeSend:a.beforeSend,src:wD(a),dataset:o}}function Po(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function PD(e={debug:!0},t){var n;if(!Xw())return;const{beforeSend:a,src:o,dataset:s}=xD(e,t);if(yD(),a&&((n=window.va)==null||n.call(window,"beforeSend",a)),document.head.querySelector(`script[src*="${o}"]`))return;const l=document.createElement("script");l.src=o;for(const[u,f]of Object.entries(s))l.dataset[u]=f;l.defer=!0,l.onerror=()=>{const u=Rm()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${o}. ${u}`)},document.head.appendChild(l)}function SD({route:e,path:t}){var n;(n=window.va)==null||n.call(window,"pageview",{route:e,path:t})}function CD(){if(!(typeof process>"u"||typeof Ou>"u"))return Ou.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function TD(){if(!(typeof process>"u"||typeof Ou>"u"))return Ou.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}function ED(e){return k.useEffect(()=>{var t;e.beforeSend&&((t=window.va)==null||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),k.useEffect(()=>{PD({framework:e.framework||"react",basePath:e.basePath??CD(),...e.route!==void 0&&{disableAutoTrack:!0},...e},e.configString??TD())},[]),k.useEffect(()=>{e.route&&e.path&&SD({route:e.route,path:e.path})},[e.route,e.path]),null}var ju={},AD=()=>{window.si||(window.si=function(...t){window.siq=window.siq||[],window.siq.push(t)})},RD="@vercel/speed-insights",LD="2.0.0";function DD(){return typeof window<"u"}function ID(){try{const e="production"}catch{}return"production"}function Jw(){return ID()==="development"}function MD(e){return e.scriptSrc?Uu(e.scriptSrc):Jw()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?Uu(`${e.basePath}/speed-insights/script.js`):"/_vercel/speed-insights/script.js"}function ND(e,t){var n;let a=e;if(t)try{a={...(n=JSON.parse(t))==null?void 0:n.speedInsights,...e}}catch{}const o={sdkn:RD+(a.framework?`/${a.framework}`:""),sdkv:LD};return a.sampleRate&&(o.sampleRate=a.sampleRate.toString()),a.route&&(o.route=a.route),Jw()&&a.debug===!1&&(o.debug="false"),a.dsn&&(o.dsn=a.dsn),a.endpoint?o.endpoint=Uu(a.endpoint):a.basePath&&(o.endpoint=Uu(`${a.basePath}/speed-insights/vitals`)),{src:MD(a),beforeSend:a.beforeSend,dataset:o}}function Uu(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function OD(e={},t){var n;if(!DD()||e.route===null)return null;AD();const{beforeSend:a,src:o,dataset:s}=ND(e,t);if(document.head.querySelector(`script[src*="${o}"]`))return null;a&&((n=window.si)==null||n.call(window,"beforeSend",a));const l=document.createElement("script");l.src=o,l.defer=!0;for(const[u,f]of Object.entries(s))l.dataset[u]=f;return l.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${o}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(l),{setRoute:u=>{l.dataset.route=u??void 0}}}function jD(){if(!(typeof process>"u"||typeof ju>"u"))return ju.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function UD(){if(!(typeof process>"u"||typeof ju>"u"))return ju.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}function BD(e){k.useEffect(()=>{var n;e.beforeSend&&((n=window.si)==null||n.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);const t=k.useRef(null);return k.useEffect(()=>{if(!t.current){const n=OD({framework:e.framework??"react",basePath:e.basePath??jD(),...e},e.configString??UD());n&&(t.current=n.setRoute)}},[e]),k.useEffect(()=>{t.current&&e.route&&t.current(e.route)},[e.route]),null}const ex=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim();const FD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const zD=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase());const ck=e=>{const t=zD(e);return t.charAt(0).toUpperCase()+t.slice(1)};var _f={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 VD=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},$D=k.createContext({}),HD=()=>k.useContext($D),WD=k.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:a,className:o="",children:s,iconNode:l,...u},f)=>{const{size:h=24,strokeWidth:m=2,absoluteStrokeWidth:y=!1,color:v="currentColor",className:_=""}=HD()??{},x=a??y?Number(n??m)*24/Number(t??h):n??m;return k.createElement("svg",{ref:f,..._f,width:t??h??_f.width,height:t??h??_f.height,stroke:e??v,strokeWidth:x,className:ex("lucide",_,o),...!s&&!VD(u)&&{"aria-hidden":"true"},...u},[...l.map(([S,C])=>k.createElement(S,C)),...Array.isArray(s)?s:[s]])});const an=(e,t)=>{const n=k.forwardRef(({className:a,...o},s)=>k.createElement(WD,{ref:s,iconNode:t,className:ex(`lucide-${FD(ck(e))}`,`lucide-${e}`,a),...o}));return n.displayName=ck(e),n};const GD=[["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"}]],KD=an("chart-column",GD);const qD=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],YD=an("corner-down-left",qD);const ZD=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],XD=an("gauge",ZD);const QD=[["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"}]],JD=an("globe",QD);const eI=[["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"}]],tI=an("layout-grid",eI);const nI=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],aI=an("mail",nI);const rI=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],iI=an("menu",rI);const oI=[["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"}]],sI=an("monitor",oI);const lI=[["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"}]],tx=an("moon",lI);const cI=[["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"}]],uI=an("puzzle",cI);const dI=[["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"}]],hI=an("refresh-cw",dI);const fI=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],pI=an("search",fI);const mI=[["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"}]],gI=an("settings",mI);const yI=[["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"}]],nx=an("sun",yI);const vI=[["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"}]],bI=an("triangle-alert",vI);const kI=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],_I=an("trophy",kI);const wI=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Lm=an("x",wI);function xI({children:e,variant:t="primary",size:n="md",onClick:a,disabled:o=!1,className:s="",as:l="button",...u}){const f="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",h={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"},m={sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-sm",lg:"h-12 px-6 text-base"},y=o?"cursor-not-allowed opacity-60":"cursor-pointer",v=`${f} ${h[t]} ${m[n]} ${y} ${s}`;return T.jsx(l,{className:v,onClick:a,disabled:o,...u,children:e})}class PI extends al.Component{constructor(t){super(t),this.state={error:null},this.handleReload=this.handleReload.bind(this)}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){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 n=String(t?.message||t||""),a=n?De("shared.error.prefix",{error:n}):De("error.boundary.no_details");return T.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:T.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:[T.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:T.jsx(bI,{className:"h-5 w-5","aria-hidden":!0})}),T.jsx("div",{className:"mt-4 text-xs font-medium uppercase text-oai-gray-500 dark:text-oai-gray-400",children:De("error.boundary.title")}),T.jsx("h1",{className:"mt-2 text-xl font-semibold text-oai-black dark:text-white",children:De("error.boundary.subtitle")}),T.jsx("p",{className:"mt-2 text-sm text-oai-gray-500 dark:text-oai-gray-400",children:De("error.boundary.hint")}),T.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:a}),T.jsxs(xI,{type:"button",size:"md",onClick:this.handleReload,className:"mt-5",children:[T.jsx(hI,{className:"mr-2 h-4 w-4","aria-hidden":!0}),De("error.boundary.action.reload")]})]})})}}function Cl(){const e=k.useContext(Zw);if(e===null)throw new Error("useLocale must be used within a LocaleProvider");return e}const hp="tokentracker-theme",ax=k.createContext(null);function SI(){if(typeof window>"u")return"system";try{const e=localStorage.getItem(hp);if(e==="light"||e==="dark"||e==="system")return e}catch{}return"system"}function Hc(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function CI(e){if(typeof document>"u")return;const t=document.documentElement;e==="dark"?t.classList.add("dark"):t.classList.remove("dark")}function TI({children:e}){const[t,n]=k.useState(SI),[a,o]=k.useState(()=>{if(t!=="system")return t;if(pa()){const h=rk();if(typeof h=="boolean")return h?"dark":"light"}return Hc()}),s=k.useRef(t);k.useEffect(()=>{s.current=t},[t]),k.useEffect(()=>{CI(a)},[a]),k.useLayoutEffect(()=>{if(t==="system"){if(pa()){const h=rk();o(typeof h=="boolean"?h?"dark":"light":Hc()),EL();return}o(Hc())}else o(t)},[t]),k.useEffect(()=>pa()?TL(m=>{s.current==="system"&&o(m?"dark":"light")}):void 0,[]),k.useEffect(()=>{if(typeof window>"u"||t!=="system"||pa())return;const h=window.matchMedia("(prefers-color-scheme: dark)"),m=y=>{const v=y.matches?"dark":"light";o(v)};return h.addEventListener?(h.addEventListener("change",m),()=>h.removeEventListener("change",m)):(h.addListener(m),()=>h.removeListener(m))},[t]),k.useEffect(()=>{const h=t==="system"&&!pa()?Hc():a;AL(h,t)},[a,t]);const l=k.useCallback(h=>{if(n(h),typeof window<"u")try{localStorage.setItem(hp,h)}catch{}},[]),u=k.useCallback(()=>{l(h=>{const m=h==="dark"?"light":"dark";if(typeof window<"u")try{localStorage.setItem(hp,m)}catch{}return m})},[]),f=k.useMemo(()=>({theme:t,setTheme:l,toggleTheme:u,resolvedTheme:a}),[t,l,u,a]);return T.jsx(ax.Provider,{value:f,children:e})}const rx=k.createContext({isOpen:!1,openLoginModal:()=>{},closeLoginModal:()=>{}});function EI({children:e}){const[t,n]=k.useState(!1),a=k.useCallback(()=>n(!0),[]),o=k.useCallback(()=>n(!1),[]);return T.jsx(rx.Provider,{value:{isOpen:t,openLoginModal:a,closeLoginModal:o},children:e})}function ix(){return k.useContext(rx)}const Dm=k.createContext({});function Im(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const AI=typeof window<"u",ox=AI?k.useLayoutEffect:k.useEffect,hd=k.createContext(null);function Mm(e,t){e.indexOf(t)===-1&&e.push(t)}function Bu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Oa=(e,t,n)=>n>t?t:n<e?e:n;let Nm=()=>{};const Gr={},sx=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function lx(e){return typeof e=="object"&&e!==null}const cx=e=>/^0[^.\s]+$/u.test(e);function ux(e){let t;return()=>(t===void 0&&(t=e()),t)}const Zn=e=>e,RI=(e,t)=>n=>t(e(n)),Tl=(...e)=>e.reduce(RI),ul=(e,t,n)=>{const a=t-e;return a===0?1:(n-e)/a};class Om{constructor(){this.subscriptions=[]}add(t){return Mm(this.subscriptions,t),()=>Bu(this.subscriptions,t)}notify(t,n,a){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,a);else for(let s=0;s<o;s++){const l=this.subscriptions[s];l&&l(t,n,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Bn=e=>e*1e3,Yn=e=>e/1e3;function dx(e,t){return t?e*(1e3/t):0}const hx=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,LI=1e-7,DI=12;function II(e,t,n,a,o){let s,l,u=0;do l=t+(n-t)/2,s=hx(l,a,o)-e,s>0?n=l:t=l;while(Math.abs(s)>LI&&++u<DI);return l}function El(e,t,n,a){if(e===t&&n===a)return Zn;const o=s=>II(s,0,1,e,n);return s=>s===0||s===1?s:hx(o(s),t,a)}const fx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,px=e=>t=>1-e(1-t),mx=El(.33,1.53,.69,.99),jm=px(mx),gx=fx(jm),yx=e=>e>=1?1:(e*=2)<1?.5*jm(e):.5*(2-Math.pow(2,-10*(e-1))),Um=e=>1-Math.sin(Math.acos(e)),vx=px(Um),bx=fx(Um),MI=El(.42,0,1,1),NI=El(0,0,.58,1),kx=El(.42,0,.58,1),OI=e=>Array.isArray(e)&&typeof e[0]!="number",_x=e=>Array.isArray(e)&&typeof e[0]=="number",jI={linear:Zn,easeIn:MI,easeInOut:kx,easeOut:NI,circIn:Um,circInOut:bx,circOut:vx,backIn:jm,backInOut:gx,backOut:mx,anticipate:yx},UI=e=>typeof e=="string",uk=e=>{if(_x(e)){Nm(e.length===4);const[t,n,a,o]=e;return El(t,n,a,o)}else if(UI(e))return jI[e];return e},Wc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function BI(e,t){let n=new Set,a=new Set,o=!1,s=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function f(m){l.has(m)&&(h.schedule(m),e()),m(u)}const h={schedule:(m,y=!1,v=!1)=>{const x=v&&o?n:a;return y&&l.add(m),x.add(m),m},cancel:m=>{a.delete(m),l.delete(m)},process:m=>{if(u=m,o){s=!0;return}o=!0;const y=n;n=a,a=y,n.forEach(f),n.clear(),o=!1,s&&(s=!1,h.process(m))}};return h}const FI=40;function wx(e,t){let n=!1,a=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=Wc.reduce((E,A)=>(E[A]=BI(s),E),{}),{setup:u,read:f,resolveKeyframes:h,preUpdate:m,update:y,preRender:v,render:_,postRender:x}=l,S=()=>{const E=Gr.useManualTiming,A=E?o.timestamp:performance.now();n=!1,E||(o.delta=a?1e3/60:Math.max(Math.min(A-o.timestamp,FI),1)),o.timestamp=A,o.isProcessing=!0,u.process(o),f.process(o),h.process(o),m.process(o),y.process(o),v.process(o),_.process(o),x.process(o),o.isProcessing=!1,n&&t&&(a=!1,e(S))},C=()=>{n=!0,a=!0,o.isProcessing||e(S)};return{schedule:Wc.reduce((E,A)=>{const B=l[A];return E[A]=(z,H=!1,P=!1)=>(n||C(),B.schedule(z,H,P)),E},{}),cancel:E=>{for(let A=0;A<Wc.length;A++)l[Wc[A]].cancel(E)},state:o,steps:l}}const{schedule:gt,cancel:Kr,state:tn,steps:wf}=wx(typeof requestAnimationFrame<"u"?requestAnimationFrame:Zn,!0);let hu;function zI(){hu=void 0}const yn={now:()=>(hu===void 0&&yn.set(tn.isProcessing||Gr.useManualTiming?tn.timestamp:performance.now()),hu),set:e=>{hu=e,queueMicrotask(zI)}},xx=e=>t=>typeof t=="string"&&t.startsWith(e),Px=xx("--"),VI=xx("var(--"),Bm=e=>VI(e)?$I.test(e.split("/*")[0].trim()):!1,$I=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function dk(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const $o={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},dl={...$o,transform:e=>Oa(0,1,e)},Gc={...$o,default:1},Zs=e=>Math.round(e*1e5)/1e5,Fm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function HI(e){return e==null}const WI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,zm=(e,t)=>n=>!!(typeof n=="string"&&WI.test(n)&&n.startsWith(e)||t&&!HI(n)&&Object.prototype.hasOwnProperty.call(n,t)),Sx=(e,t,n)=>a=>{if(typeof a!="string")return a;const[o,s,l,u]=a.match(Fm);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},GI=e=>Oa(0,255,e),xf={...$o,transform:e=>Math.round(GI(e))},xi={test:zm("rgb","red"),parse:Sx("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:a=1})=>"rgba("+xf.transform(e)+", "+xf.transform(t)+", "+xf.transform(n)+", "+Zs(dl.transform(a))+")"};function KI(e){let t="",n="",a="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),a=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),a=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,a+=a,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(a,16),alpha:o?parseInt(o,16)/255:1}}const fp={test:zm("#"),parse:KI,transform:xi.transform},Al=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Or=Al("deg"),La=Al("%"),Ce=Al("px"),qI=Al("vh"),YI=Al("vw"),hk={...La,parse:e=>La.parse(e)/100,transform:e=>La.transform(e*100)},So={test:zm("hsl","hue"),parse:Sx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+La.transform(Zs(t))+", "+La.transform(Zs(n))+", "+Zs(dl.transform(a))+")"},Bt={test:e=>xi.test(e)||fp.test(e)||So.test(e),parse:e=>xi.test(e)?xi.parse(e):So.test(e)?So.parse(e):fp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?xi.transform(e):So.transform(e),getAnimatableNone:e=>{const t=Bt.parse(e);return t.alpha=0,Bt.transform(t)}},ZI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function XI(e){return isNaN(e)&&typeof e=="string"&&(e.match(Fm)?.length||0)+(e.match(ZI)?.length||0)>0}const Cx="number",Tx="color",QI="var",JI="var(",fk="${}",eM=/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 jo(e){const t=e.toString(),n=[],a={color:[],number:[],var:[]},o=[];let s=0;const u=t.replace(eM,f=>(Bt.test(f)?(a.color.push(s),o.push(Tx),n.push(Bt.parse(f))):f.startsWith(JI)?(a.var.push(s),o.push(QI),n.push(f)):(a.number.push(s),o.push(Cx),n.push(parseFloat(f))),++s,fk)).split(fk);return{values:n,split:u,indexes:a,types:o}}function tM(e){return jo(e).values}function Ex({split:e,types:t}){const n=e.length;return a=>{let o="";for(let s=0;s<n;s++)if(o+=e[s],a[s]!==void 0){const l=t[s];l===Cx?o+=Zs(a[s]):l===Tx?o+=Bt.transform(a[s]):o+=a[s]}return o}}function nM(e){return Ex(jo(e))}const aM=e=>typeof e=="number"?0:Bt.test(e)?Bt.getAnimatableNone(e):e,rM=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:aM(e);function iM(e){const t=jo(e);return Ex(t)(t.values.map((a,o)=>rM(a,t.split[o])))}const ga={test:XI,parse:tM,createTransformer:nM,getAnimatableNone:iM};function Pf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function oM({hue:e,saturation:t,lightness:n,alpha:a}){e/=360,t/=100,n/=100;let o=0,s=0,l=0;if(!t)o=s=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;o=Pf(f,u,e+1/3),s=Pf(f,u,e),l=Pf(f,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:a}}function Fu(e,t){return n=>n>0?t:e}const Pt=(e,t,n)=>e+(t-e)*n,Sf=(e,t,n)=>{const a=e*e,o=n*(t*t-a)+a;return o<0?0:Math.sqrt(o)},sM=[fp,xi,So],lM=e=>sM.find(t=>t.test(e));function pk(e){const t=lM(e);if(!t)return!1;let n=t.parse(e);return t===So&&(n=oM(n)),n}const mk=(e,t)=>{const n=pk(e),a=pk(t);if(!n||!a)return Fu(e,t);const o={...n};return s=>(o.red=Sf(n.red,a.red,s),o.green=Sf(n.green,a.green,s),o.blue=Sf(n.blue,a.blue,s),o.alpha=Pt(n.alpha,a.alpha,s),xi.transform(o))},pp=new Set(["none","hidden"]);function cM(e,t){return pp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function uM(e,t){return n=>Pt(e,t,n)}function Vm(e){return typeof e=="number"?uM:typeof e=="string"?Bm(e)?Fu:Bt.test(e)?mk:fM:Array.isArray(e)?Ax:typeof e=="object"?Bt.test(e)?mk:dM:Fu}function Ax(e,t){const n=[...e],a=n.length,o=e.map((s,l)=>Vm(s)(s,t[l]));return s=>{for(let l=0;l<a;l++)n[l]=o[l](s);return n}}function dM(e,t){const n={...e,...t},a={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(a[o]=Vm(e[o])(e[o],t[o]));return o=>{for(const s in a)n[s]=a[s](o);return n}}function hM(e,t){const n=[],a={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],l=e.indexes[s][a[s]],u=e.values[l]??0;n[o]=u,a[s]++}return n}const fM=(e,t)=>{const n=ga.createTransformer(t),a=jo(e),o=jo(t);return a.indexes.var.length===o.indexes.var.length&&a.indexes.color.length===o.indexes.color.length&&a.indexes.number.length>=o.indexes.number.length?pp.has(e)&&!o.values.length||pp.has(t)&&!a.values.length?cM(e,t):Tl(Ax(hM(a,o),o.values),n):Fu(e,t)};function Rx(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pt(e,t,n):Vm(e)(e,t)}const pM=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>gt.update(t,n),stop:()=>Kr(t),now:()=>tn.isProcessing?tn.timestamp:yn.now()}},Lx=(e,t,n=10)=>{let a="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)a+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},zu=2e4;function $m(e){let t=0;const n=50;let a=e.next(t);for(;!a.done&&t<zu;)t+=n,a=e.next(t);return t>=zu?1/0:t}function mM(e,t=100,n){const a=n({...e,keyframes:[0,t]}),o=Math.min($m(a),zu);return{type:"keyframes",ease:s=>a.next(o*s).value/t,duration:Yn(o)}}const Dt={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 mp(e,t){return e*Math.sqrt(1-t*t)}const gM=12;function yM(e,t,n){let a=n;for(let o=1;o<gM;o++)a=a-e(a)/t(a);return a}const Cf=.001;function vM({duration:e=Dt.duration,bounce:t=Dt.bounce,velocity:n=Dt.velocity,mass:a=Dt.mass}){let o,s,l=1-t;l=Oa(Dt.minDamping,Dt.maxDamping,l),e=Oa(Dt.minDuration,Dt.maxDuration,Yn(e)),l<1?(o=h=>{const m=h*l,y=m*e,v=m-n,_=mp(h,l),x=Math.exp(-y);return Cf-v/_*x},s=h=>{const y=h*l*e,v=y*n+n,_=Math.pow(l,2)*Math.pow(h,2)*e,x=Math.exp(-y),S=mp(Math.pow(h,2),l);return(-o(h)+Cf>0?-1:1)*((v-_)*x)/S}):(o=h=>{const m=Math.exp(-h*e),y=(h-n)*e+1;return-Cf+m*y},s=h=>{const m=Math.exp(-h*e),y=(n-h)*(e*e);return m*y});const u=5/e,f=yM(o,s,u);if(e=Bn(e),isNaN(f))return{stiffness:Dt.stiffness,damping:Dt.damping,duration:e};{const h=Math.pow(f,2)*a;return{stiffness:h,damping:l*2*Math.sqrt(a*h),duration:e}}}const bM=["duration","bounce"],kM=["stiffness","damping","mass"];function gk(e,t){return t.some(n=>e[n]!==void 0)}function _M(e){let t={velocity:Dt.velocity,stiffness:Dt.stiffness,damping:Dt.damping,mass:Dt.mass,isResolvedFromDuration:!1,...e};if(!gk(e,kM)&&gk(e,bM))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,a=2*Math.PI/(n*1.2),o=a*a,s=2*Oa(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Dt.mass,stiffness:o,damping:s}}else{const n=vM({...e,velocity:0});t={...t,...n,mass:Dt.mass},t.isResolvedFromDuration=!0}return t}function Vu(e=Dt.visualDuration,t=Dt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:a,restDelta:o}=n;const s=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:f,damping:h,mass:m,duration:y,velocity:v,isResolvedFromDuration:_}=_M({...n,velocity:-Yn(n.velocity||0)}),x=v||0,S=h/(2*Math.sqrt(f*m)),C=l-s,D=Yn(Math.sqrt(f/m)),M=Math.abs(C)<5;a||(a=M?Dt.restSpeed.granular:Dt.restSpeed.default),o||(o=M?Dt.restDelta.granular:Dt.restDelta.default);let E,A,B,z,H,P;if(S<1)B=mp(D,S),z=(x+S*D*C)/B,E=X=>{const fe=Math.exp(-S*D*X);return l-fe*(z*Math.sin(B*X)+C*Math.cos(B*X))},H=S*D*z+C*B,P=S*D*C-z*B,A=X=>Math.exp(-S*D*X)*(H*Math.sin(B*X)+P*Math.cos(B*X));else if(S===1){E=fe=>l-Math.exp(-D*fe)*(C+(x+D*C)*fe);const X=x+D*C;A=fe=>Math.exp(-D*fe)*(D*X*fe-x)}else{const X=D*Math.sqrt(S*S-1);E=J=>{const te=Math.exp(-S*D*J),ee=Math.min(X*J,300);return l-te*((x+S*D*C)*Math.sinh(ee)+X*C*Math.cosh(ee))/X};const fe=(x+S*D*C)/X,he=S*D*fe-C*X,Q=S*D*C-fe*X;A=J=>{const te=Math.exp(-S*D*J),ee=Math.min(X*J,300);return te*(he*Math.sinh(ee)+Q*Math.cosh(ee))}}const Z={calculatedDuration:_&&y||null,velocity:X=>Bn(A(X)),next:X=>{if(!_&&S<1){const he=Math.exp(-S*D*X),Q=Math.sin(B*X),J=Math.cos(B*X),te=l-he*(z*Q+C*J),ee=Bn(he*(H*Q+P*J));return u.done=Math.abs(ee)<=a&&Math.abs(l-te)<=o,u.value=u.done?l:te,u}const fe=E(X);if(_)u.done=X>=y;else{const he=Bn(A(X));u.done=Math.abs(he)<=a&&Math.abs(l-fe)<=o}return u.value=u.done?l:fe,u},toString:()=>{const X=Math.min($m(Z),zu),fe=Lx(he=>Z.next(X*he).value,X,30);return X+"ms "+fe},toTransition:()=>{}};return Z}Vu.applyToOptions=e=>{const t=mM(e,100,Vu);return e.ease=t.ease,e.duration=Bn(t.duration),e.type="keyframes",e};const wM=5;function Dx(e,t,n){const a=Math.max(t-wM,0);return dx(n-e(a),t-a)}function gp({keyframes:e,velocity:t=0,power:n=.8,timeConstant:a=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:l,min:u,max:f,restDelta:h=.5,restSpeed:m}){const y=e[0],v={done:!1,value:y},_=P=>u!==void 0&&P<u||f!==void 0&&P>f,x=P=>u===void 0?f:f===void 0||Math.abs(u-P)<Math.abs(f-P)?u:f;let S=n*t;const C=y+S,D=l===void 0?C:l(C);D!==C&&(S=D-y);const M=P=>-S*Math.exp(-P/a),E=P=>D+M(P),A=P=>{const Z=M(P),X=E(P);v.done=Math.abs(Z)<=h,v.value=v.done?D:X};let B,z;const H=P=>{_(v.value)&&(B=P,z=Vu({keyframes:[v.value,x(v.value)],velocity:Dx(E,P,v.value),damping:o,stiffness:s,restDelta:h,restSpeed:m}))};return H(0),{calculatedDuration:null,next:P=>{let Z=!1;return!z&&B===void 0&&(Z=!0,A(P),H(P)),B!==void 0&&P>=B?z.next(P-B):(!Z&&A(P),v)}}}function xM(e,t,n){const a=[],o=n||Gr.mix||Rx,s=e.length-1;for(let l=0;l<s;l++){let u=o(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||Zn:t;u=Tl(f,u)}a.push(u)}return a}function PM(e,t,{clamp:n=!0,ease:a,mixer:o}={}){const s=e.length;if(Nm(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=xM(t,a,o),f=u.length,h=m=>{if(l&&m<e[0])return t[0];let y=0;if(f>1)for(;y<e.length-2&&!(m<e[y+1]);y++);const v=ul(e[y],e[y+1],m);return u[y](v)};return n?m=>h(Oa(e[0],e[s-1],m)):h}function SM(e,t){const n=e[e.length-1];for(let a=1;a<=t;a++){const o=ul(0,t,a);e.push(Pt(n,1,o))}}function CM(e){const t=[0];return SM(t,e.length-1),t}function TM(e,t){return e.map(n=>n*t)}function EM(e,t){return e.map(()=>t||kx).splice(0,e.length-1)}function Xs({duration:e=300,keyframes:t,times:n,ease:a="easeInOut"}){const o=OI(a)?a.map(uk):uk(a),s={done:!1,value:t[0]},l=TM(n&&n.length===t.length?n:CM(t),e),u=PM(l,t,{ease:Array.isArray(o)?o:EM(t,o)});return{calculatedDuration:e,next:f=>(s.value=u(f),s.done=f>=e,s)}}const AM=e=>e!==null;function fd(e,{repeat:t,repeatType:n="loop"},a,o=1){const s=e.filter(AM),u=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!u||a===void 0?s[u]:a}const RM={decay:gp,inertia:gp,tween:Xs,keyframes:Xs,spring:Vu};function Ix(e){typeof e.type=="string"&&(e.type=RM[e.type])}class Hm{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const LM=e=>e/100;class $u extends Hm{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:n}=this.options;n&&n.updatedAt!==yn.now()&&this.tick(yn.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;Ix(t);const{type:n=Xs,repeat:a=0,repeatDelay:o=0,repeatType:s,velocity:l=0}=t;let{keyframes:u}=t;const f=n||Xs;f!==Xs&&typeof u[0]!="number"&&(this.mixKeyframes=Tl(LM,Rx(u[0],u[1])),u=[0,100]);const h=f({...t,keyframes:u});s==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...u].reverse(),velocity:-l})),h.calculatedDuration===null&&(h.calculatedDuration=$m(h));const{calculatedDuration:m}=h;this.calculatedDuration=m,this.resolvedDuration=m+o,this.totalDuration=this.resolvedDuration*(a+1)-o,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:a,totalDuration:o,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:u,calculatedDuration:f}=this;if(this.startTime===null)return a.next(0);const{delay:h=0,keyframes:m,repeat:y,repeatType:v,repeatDelay:_,type:x,onUpdate:S,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const D=this.currentTime-h*(this.playbackSpeed>=0?1:-1),M=this.playbackSpeed>=0?D<0:D>o;this.currentTime=Math.max(D,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let E=this.currentTime,A=a;if(y){const P=Math.min(this.currentTime,o)/u;let Z=Math.floor(P),X=P%1;!X&&P>=1&&(X=1),X===1&&Z--,Z=Math.min(Z,y+1),Z%2&&(v==="reverse"?(X=1-X,_&&(X-=_/u)):v==="mirror"&&(A=l)),E=Oa(0,1,X)*u}let B;M?(this.delayState.value=m[0],B=this.delayState):B=A.next(E),s&&!M&&(B.value=s(B.value));let{done:z}=B;!M&&f!==null&&(z=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return H&&x!==gp&&(B.value=fd(m,this.options,C,this.speed)),S&&S(B.value),H&&this.finish(),B}then(t,n){return this.finished.then(t,n)}get duration(){return Yn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Yn(t)}get time(){return Yn(this.currentTime)}set time(t){t=Bn(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 n=this.generator.next(t).value;return Dx(a=>this.generator.next(a).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(yn.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Yn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=pM,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=n??a),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(yn.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 DM(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Pi=e=>e*180/Math.PI,yp=e=>{const t=Pi(Math.atan2(e[1],e[0]));return vp(t)},IM={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:yp,rotateZ:yp,skewX:e=>Pi(Math.atan(e[1])),skewY:e=>Pi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vp=e=>(e=e%360,e<0&&(e+=360),e),yk=yp,vk=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),bk=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),MM={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:vk,scaleY:bk,scale:e=>(vk(e)+bk(e))/2,rotateX:e=>vp(Pi(Math.atan2(e[6],e[5]))),rotateY:e=>vp(Pi(Math.atan2(-e[2],e[0]))),rotateZ:yk,rotate:yk,skewX:e=>Pi(Math.atan(e[4])),skewY:e=>Pi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function bp(e){return e.includes("scale")?1:0}function kp(e,t){if(!e||e==="none")return bp(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,o;if(n)a=MM,o=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=IM,o=u}if(!o)return bp(t);const s=a[t],l=o[1].split(",").map(OM);return typeof s=="function"?s(l):l[s]}const NM=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return kp(n,t)};function OM(e){return parseFloat(e.trim())}const Ho=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wo=new Set(Ho),kk=e=>e===$o||e===Ce,jM=new Set(["x","y","z"]),UM=Ho.filter(e=>!jM.has(e));function BM(e){const t=[];return UM.forEach(n=>{const a=e.getValue(n);a!==void 0&&(t.push([n,a.get()]),a.set(n.startsWith("scale")?1:0))}),t}const $r={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:a})=>{const o=e.max-e.min;return a==="border-box"?o:o-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:a})=>{const o=e.max-e.min;return a==="border-box"?o:o-parseFloat(t)-parseFloat(n)},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})=>kp(t,"x"),y:(e,{transform:t})=>kp(t,"y")};$r.translateX=$r.x;$r.translateY=$r.y;const Si=new Set;let _p=!1,wp=!1,xp=!1;function Mx(){if(wp){const e=Array.from(Si).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),n=new Map;t.forEach(a=>{const o=BM(a);o.length&&(n.set(a,o),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();const o=n.get(a);o&&o.forEach(([s,l])=>{a.getValue(s)?.set(l)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}wp=!1,_p=!1,Si.forEach(e=>e.complete(xp)),Si.clear()}function Nx(){Si.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(wp=!0)})}function FM(){xp=!0,Nx(),Mx(),xp=!1}class Wm{constructor(t,n,a,o,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=a,this.motionValue=o,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(Si.add(this),_p||(_p=!0,gt.read(Nx),gt.resolveKeyframes(Mx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:a,motionValue:o}=this;if(t[0]===null){const s=o?.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(a&&n){const u=a.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),o&&s===void 0&&o.set(t[0])}DM(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Si.delete(this)}cancel(){this.state==="scheduled"&&(Si.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const zM=e=>e.startsWith("--");function Ox(e,t,n){zM(t)?e.style.setProperty(t,n):e.style[t]=n}const VM={};function jx(e,t){const n=ux(e);return()=>VM[t]??n()}const $M=jx(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ux=jx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$s=([e,t,n,a])=>`cubic-bezier(${e}, ${t}, ${n}, ${a})`,_k={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$s([0,.65,.55,1]),circOut:$s([.55,0,1,.45]),backIn:$s([.31,.01,.66,-.59]),backOut:$s([.33,1.53,.69,.99])};function Bx(e,t){if(e)return typeof e=="function"?Ux()?Lx(e,t):"ease-out":_x(e)?$s(e):Array.isArray(e)?e.map(n=>Bx(n,t)||_k.easeOut):_k[e]}function HM(e,t,n,{delay:a=0,duration:o=300,repeat:s=0,repeatType:l="loop",ease:u="easeOut",times:f}={},h=void 0){const m={[t]:n};f&&(m.offset=f);const y=Bx(u,o);Array.isArray(y)&&(m.easing=y);const v={delay:a,duration:o,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return h&&(v.pseudoElement=h),e.animate(m,v)}function Fx(e){return typeof e=="function"&&"applyToOptions"in e}function WM({type:e,...t}){return Fx(e)&&Ux()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class zx extends Hm{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:a,keyframes:o,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:u,onComplete:f}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,Nm(typeof t.type!="string");const h=WM(t);this.animation=HM(n,a,o,h,s),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const m=fd(o,this.options,u,this.speed);this.updateMotionValue&&this.updateMotionValue(m),Ox(n,a,m),this.animation.cancel()}f?.(),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 Yn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Yn(t)}get time(){return Yn(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Bn(t),n&&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:n,rangeEnd:a,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&$M()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),a&&(this.animation.rangeEnd=a),Zn):o(this)}}const Vx={anticipate:yx,backInOut:gx,circInOut:bx};function GM(e){return e in Vx}function KM(e){typeof e.ease=="string"&&GM(e.ease)&&(e.ease=Vx[e.ease])}const Tf=10;class qM extends zx{constructor(t){KM(t),Ix(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:a,onComplete:o,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new $u({...l,autoplay:!1}),f=Math.max(Tf,yn.now()-this.startTime),h=Oa(0,Tf,f-Tf),m=u.sample(f).value,{name:y}=this.options;s&&y&&Ox(s,y,m),n.setWithVelocity(u.sample(Math.max(0,f-h)).value,m,h),u.stop()}}const wk=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ga.test(e)||e==="0")&&!e.startsWith("url("));function YM(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ZM(e,t,n,a){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=wk(o,t),u=wk(s,t);return!l||!u?!1:YM(e)||(n==="spring"||Fx(n))&&a}function Pp(e){e.duration=0,e.type="keyframes"}const $x=new Set(["opacity","clipPath","filter","transform"]),XM=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function QM(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&XM.test(e[t]))return!0;return!1}const JM=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),e4=ux(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function t4(e){const{motionValue:t,name:n,repeatDelay:a,repeatType:o,damping:s,type:l,keyframes:u}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:m}=t.owner.getProps();return e4()&&n&&($x.has(n)||JM.has(n)&&QM(u))&&(n!=="transform"||!m)&&!h&&!a&&o!=="mirror"&&s!==0&&l!=="inertia"}const n4=40;class a4 extends Hm{constructor({autoplay:t=!0,delay:n=0,type:a="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",keyframes:u,name:f,motionValue:h,element:m,...y}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=yn.now();const v={autoplay:t,delay:n,type:a,repeat:o,repeatDelay:s,repeatType:l,name:f,motionValue:h,element:m,...y},_=m?.KeyframeResolver||Wm;this.keyframeResolver=new _(u,(x,S,C)=>this.onKeyframesResolved(x,S,v,!C),f,h,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,a,o){this.keyframeResolver=void 0;const{name:s,type:l,velocity:u,delay:f,isHandoff:h,onUpdate:m}=a;this.resolvedAt=yn.now();let y=!0;ZM(t,s,l,u)||(y=!1,(Gr.instantAnimations||!f)&&m?.(fd(t,a,n)),t[0]=t[t.length-1],Pp(a),a.repeat=0);const _={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>n4?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...a,keyframes:t},x=y&&!h&&t4(_),S=_.motionValue?.owner?.current;let C;if(x)try{C=new qM({..._,element:S})}catch{C=new $u(_)}else C=new $u(_);C.finished.then(()=>{this.notifyFinished()}).catch(Zn),this.pendingTimeline&&(this.stopTimeline=C.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=C}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),FM()),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 Hx(e,t,n,a=0,o=1){const s=Array.from(e).sort((h,m)=>h.sortNodePosition(m)).indexOf(t),l=e.size,u=(l-1)*a;return typeof n=="function"?n(s,l):o===1?s*a:u-s*a}const r4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function i4(e){const t=r4.exec(e);if(!t)return[,];const[,n,a,o]=t;return[`--${n??a}`,o]}function Wx(e,t,n=1){const[a,o]=i4(e);if(!a)return;const s=window.getComputedStyle(t).getPropertyValue(a);if(s){const l=s.trim();return sx(l)?parseFloat(l):l}return Bm(o)?Wx(o,t,n+1):o}const o4={type:"spring",stiffness:500,damping:25,restSpeed:10},s4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),l4={type:"keyframes",duration:.8},c4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},u4=(e,{keyframes:t})=>t.length>2?l4:Wo.has(e)?e.startsWith("scale")?s4(t[1]):o4:c4;function Gx(e,t){if(e?.inherit&&t){const{inherit:n,...a}=e;return{...t,...a}}return e}function Gm(e,t){const n=e?.[t]??e?.default??e;return n!==e?Gx(n,e):n}const d4=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function h4(e){for(const t in e)if(!d4.has(t))return!0;return!1}const Km=(e,t,n,a={},o,s)=>l=>{const u=Gm(a,e)||{},f=u.delay||a.delay||0;let{elapsed:h=0}=a;h=h-Bn(f);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-h,onUpdate:v=>{t.set(v),u.onUpdate&&u.onUpdate(v)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:o};h4(u)||Object.assign(m,u4(e,m)),m.duration&&(m.duration=Bn(m.duration)),m.repeatDelay&&(m.repeatDelay=Bn(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let y=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Pp(m),m.delay===0&&(y=!0)),(Gr.instantAnimations||Gr.skipAnimations||o?.shouldSkipAnimations)&&(y=!0,Pp(m),m.delay=0),m.allowFlatten=!u.type&&!u.ease,y&&!s&&t.get()!==void 0){const v=fd(m.keyframes,u);if(v!==void 0){gt.update(()=>{m.onUpdate(v),m.onComplete()});return}}return u.isSync?new $u(m):new a4(m)};function xk(e){const t=[{},{}];return e?.values.forEach((n,a)=>{t[0][a]=n.get(),t[1][a]=n.getVelocity()}),t}function qm(e,t,n,a){if(typeof t=="function"){const[o,s]=xk(a);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=xk(a);t=t(n!==void 0?n:e.custom,o,s)}return t}function Ci(e,t,n){const a=e.getProps();return qm(a,t,n!==void 0?n:a.custom,e)}const Kx=new Set(["width","height","top","left","right","bottom",...Ho]),Pk=30,f4=e=>!isNaN(parseFloat(e)),Sk={current:void 0};class p4{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{const o=yn.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=yn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=f4(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Om);const a=this.events[t].add(n);return t==="change"?()=>{a(),gt.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,a){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&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 Sk.current&&Sk.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=yn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Pk)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Pk);return dx(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 Uo(e,t){return new p4(e,t)}const Sp=e=>Array.isArray(e);function m4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Uo(n))}function g4(e){return Sp(e)?e[e.length-1]||0:e}function y4(e,t){const n=Ci(e,t);let{transitionEnd:a={},transition:o={},...s}=n||{};s={...s,...a};for(const l in s){const u=g4(s[l]);m4(e,l,u)}}const nn=e=>!!(e&&e.getVelocity);function v4(e){return!!(nn(e)&&e.add)}function Cp(e,t){const n=e.getValue("willChange");if(v4(n))return n.add(t);if(!n&&Gr.WillChange){const a=new Gr.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function Ym(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const b4="framerAppearId",qx="data-"+Ym(b4);function Yx(e){return e.props[qx]}function k4({protectedKeys:e,needsAnimating:t},n){const a=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,a}function Zx(e,t,{delay:n=0,transitionOverride:a,type:o}={}){let{transition:s,transitionEnd:l,...u}=t;const f=e.getDefaultTransition();s=s?Gx(s,f):f;const h=s?.reduceMotion;a&&(s=a);const m=[],y=o&&e.animationState&&e.animationState.getState()[o];for(const v in u){const _=e.getValue(v,e.latestValues[v]??null),x=u[v];if(x===void 0||y&&k4(y,v))continue;const S={delay:n,...Gm(s||{},v)},C=_.get();if(C!==void 0&&!_.isAnimating()&&!Array.isArray(x)&&x===C&&!S.velocity){gt.update(()=>_.set(x));continue}let D=!1;if(window.MotionHandoffAnimation){const A=Yx(e);if(A){const B=window.MotionHandoffAnimation(A,v,gt);B!==null&&(S.startTime=B,D=!0)}}Cp(e,v);const M=h??e.shouldReduceMotion;_.start(Km(v,_,x,M&&Kx.has(v)?{type:!1}:S,e,D));const E=_.animation;E&&m.push(E)}if(l){const v=()=>gt.update(()=>{l&&y4(e,l)});m.length?Promise.all(m).then(v):v()}return m}function Tp(e,t,n={}){const a=Ci(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(o=n.transitionOverride);const s=a?()=>Promise.all(Zx(e,a,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:y}=o;return _4(e,t,f,h,m,y,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[f,h]=u==="beforeChildren"?[s,l]:[l,s];return f().then(()=>h())}else return Promise.all([s(),l(n.delay)])}function _4(e,t,n=0,a=0,o=0,s=1,l){const u=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),u.push(Tp(f,t,{...l,delay:n+(typeof a=="function"?0:a)+Hx(e.variantChildren,f,a,o,s)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(u)}function w4(e,t,n={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){const o=t.map(s=>Tp(e,s,n));a=Promise.all(o)}else if(typeof t=="string")a=Tp(e,t,n);else{const o=typeof t=="function"?Ci(e,t,n.custom):t;a=Promise.all(Zx(e,o,n))}return a.then(()=>{e.notify("AnimationComplete",t)})}const x4={test:e=>e==="auto",parse:e=>e},Xx=e=>t=>t.test(e),Qx=[$o,Ce,La,Or,YI,qI,x4],Ck=e=>Qx.find(Xx(e));function P4(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||cx(e):!0}const S4=new Set(["brightness","contrast","saturate","opacity"]);function C4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[a]=n.match(Fm)||[];if(!a)return e;const o=n.replace(a,"");let s=S4.has(t)?1:0;return a!==n&&(s*=100),t+"("+s+o+")"}const T4=/\b([a-z-]*)\(.*?\)/gu,Ep={...ga,getAnimatableNone:e=>{const t=e.match(T4);return t?t.map(C4).join(" "):e}},Ap={...ga,getAnimatableNone:e=>{const t=ga.parse(e);return ga.createTransformer(e)(t.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}},Tk={...$o,transform:Math.round},E4={rotate:Or,rotateX:Or,rotateY:Or,rotateZ:Or,scale:Gc,scaleX:Gc,scaleY:Gc,scaleZ:Gc,skew:Or,skewX:Or,skewY:Or,distance:Ce,translateX:Ce,translateY:Ce,translateZ:Ce,x:Ce,y:Ce,z:Ce,perspective:Ce,transformPerspective:Ce,opacity:dl,originX:hk,originY:hk,originZ:Ce},Zm={borderWidth:Ce,borderTopWidth:Ce,borderRightWidth:Ce,borderBottomWidth:Ce,borderLeftWidth:Ce,borderRadius:Ce,borderTopLeftRadius:Ce,borderTopRightRadius:Ce,borderBottomRightRadius:Ce,borderBottomLeftRadius:Ce,width:Ce,maxWidth:Ce,height:Ce,maxHeight:Ce,top:Ce,right:Ce,bottom:Ce,left:Ce,inset:Ce,insetBlock:Ce,insetBlockStart:Ce,insetBlockEnd:Ce,insetInline:Ce,insetInlineStart:Ce,insetInlineEnd:Ce,padding:Ce,paddingTop:Ce,paddingRight:Ce,paddingBottom:Ce,paddingLeft:Ce,paddingBlock:Ce,paddingBlockStart:Ce,paddingBlockEnd:Ce,paddingInline:Ce,paddingInlineStart:Ce,paddingInlineEnd:Ce,margin:Ce,marginTop:Ce,marginRight:Ce,marginBottom:Ce,marginLeft:Ce,marginBlock:Ce,marginBlockStart:Ce,marginBlockEnd:Ce,marginInline:Ce,marginInlineStart:Ce,marginInlineEnd:Ce,fontSize:Ce,backgroundPositionX:Ce,backgroundPositionY:Ce,...E4,zIndex:Tk,fillOpacity:dl,strokeOpacity:dl,numOctaves:Tk},A4={...Zm,color:Bt,backgroundColor:Bt,outlineColor:Bt,fill:Bt,stroke:Bt,borderColor:Bt,borderTopColor:Bt,borderRightColor:Bt,borderBottomColor:Bt,borderLeftColor:Bt,filter:Ep,WebkitFilter:Ep,mask:Ap,WebkitMask:Ap},Jx=e=>A4[e],R4=new Set([Ep,Ap]);function e1(e,t){let n=Jx(e);return R4.has(n)||(n=ga),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const L4=new Set(["auto","none","0"]);function D4(e,t,n){let a=0,o;for(;a<e.length&&!o;){const s=e[a];typeof s=="string"&&!L4.has(s)&&jo(s).values.length&&(o=e[a]),a++}if(o&&n)for(const s of t)e[s]=e1(n,o)}class I4 extends Wm{constructor(t,n,a,o,s){super(t,n,a,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:a}=this;if(!n||!n.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let y=t[m];if(typeof y=="string"&&(y=y.trim(),Bm(y))){const v=Wx(y,n.current);v!==void 0&&(t[m]=v),m===t.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!Kx.has(a)||t.length!==2)return;const[o,s]=t,l=Ck(o),u=Ck(s),f=dk(o),h=dk(s);if(f!==h&&$r[a]){this.needsMeasurement=!0;return}if(l!==u)if(kk(l)&&kk(u))for(let m=0;m<t.length;m++){const y=t[m];typeof y=="string"&&(t[m]=parseFloat(y))}else $r[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,a=[];for(let o=0;o<t.length;o++)(t[o]===null||P4(t[o]))&&a.push(o);a.length&&D4(t,a,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$r[a](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(a,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:a}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=a.length-1,l=a[s];a[s]=$r[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),this.removedTransforms?.length&&this.removedTransforms.forEach(([u,f])=>{t.getValue(u).set(f)}),this.resolveNoneKeyframes()}}function t1(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;const o=n?.[e]??a.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(a=>a!=null)}const n1=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function fu(e){return lx(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Xm}=wx(queueMicrotask,!1),ha={x:!1,y:!1};function a1(){return ha.x||ha.y}function M4(e){return e==="x"||e==="y"?ha[e]?null:(ha[e]=!0,()=>{ha[e]=!1}):ha.x||ha.y?null:(ha.x=ha.y=!0,()=>{ha.x=ha.y=!1})}function r1(e,t){const n=t1(e),a=new AbortController,o={passive:!0,...t,signal:a.signal};return[n,o,()=>a.abort()]}function N4(e){return!(e.pointerType==="touch"||a1())}function O4(e,t,n={}){const[a,o,s]=r1(e,n);return a.forEach(l=>{let u=!1,f=!1,h;const m=()=>{l.removeEventListener("pointerleave",x)},y=C=>{h&&(h(C),h=void 0),m()},v=C=>{u=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),f&&(f=!1,y(C))},_=()=>{u=!0,window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",v,o)},x=C=>{if(C.pointerType!=="touch"){if(u){f=!0;return}y(C)}},S=C=>{if(!N4(C))return;f=!1;const D=t(l,C);typeof D=="function"&&(h=D,l.addEventListener("pointerleave",x,o))};l.addEventListener("pointerenter",S,o),l.addEventListener("pointerdown",_,o)}),s}const i1=(e,t)=>t?e===t?!0:i1(e,t.parentElement):!1,Qm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,j4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function U4(e){return j4.has(e.tagName)||e.isContentEditable===!0}const B4=new Set(["INPUT","SELECT","TEXTAREA"]);function F4(e){return B4.has(e.tagName)||e.isContentEditable===!0}const pu=new WeakSet;function Ek(e){return t=>{t.key==="Enter"&&e(t)}}function Ef(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const z4=(e,t)=>{const n=e.currentTarget;if(!n)return;const a=Ek(()=>{if(pu.has(n))return;Ef(n,"down");const o=Ek(()=>{Ef(n,"up")}),s=()=>Ef(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",a,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",a),t)};function Ak(e){return Qm(e)&&!a1()}const Rk=new WeakSet;function V4(e,t,n={}){const[a,o,s]=r1(e,n),l=u=>{const f=u.currentTarget;if(!Ak(u)||Rk.has(u))return;pu.add(f),n.stopPropagation&&Rk.add(u);const h=t(f,u),m=(_,x)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",v),pu.has(f)&&pu.delete(f),Ak(_)&&typeof h=="function"&&h(_,{success:x})},y=_=>{m(_,f===window||f===document||n.useGlobalTarget||i1(f,_.target))},v=_=>{m(_,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",v,o)};return a.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,o),fu(u)&&(u.addEventListener("focus",h=>z4(h,o)),!U4(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),s}function Jm(e){return lx(e)&&"ownerSVGElement"in e}const mu=new WeakMap;let gu;const o1=(e,t,n)=>(a,o)=>o&&o[0]?o[0][e+"Size"]:Jm(a)&&"getBBox"in a?a.getBBox()[t]:a[n],$4=o1("inline","width","offsetWidth"),H4=o1("block","height","offsetHeight");function W4({target:e,borderBoxSize:t}){mu.get(e)?.forEach(n=>{n(e,{get width(){return $4(e,t)},get height(){return H4(e,t)}})})}function G4(e){e.forEach(W4)}function K4(){typeof ResizeObserver>"u"||(gu=new ResizeObserver(G4))}function q4(e,t){gu||K4();const n=t1(e);return n.forEach(a=>{let o=mu.get(a);o||(o=new Set,mu.set(a,o)),o.add(t),gu?.observe(a)}),()=>{n.forEach(a=>{const o=mu.get(a);o?.delete(t),o?.size||gu?.unobserve(a)})}}const yu=new Set;let Co;function Y4(){Co=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};yu.forEach(t=>t(e))},window.addEventListener("resize",Co)}function Z4(e){return yu.add(e),Co||Y4(),()=>{yu.delete(e),!yu.size&&typeof Co=="function"&&(window.removeEventListener("resize",Co),Co=void 0)}}function Lk(e,t){return typeof e=="function"?Z4(e):q4(e,t)}function X4(e){return Jm(e)&&e.tagName==="svg"}const Q4=[...Qx,Bt,ga],J4=e=>Q4.find(Xx(e)),Dk=()=>({translate:0,scale:1,origin:0,originPoint:0}),To=()=>({x:Dk(),y:Dk()}),Ik=()=>({min:0,max:0}),Ht=()=>({x:Ik(),y:Ik()}),e5=new WeakMap;function pd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function hl(e){return typeof e=="string"||Array.isArray(e)}const eg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tg=["initial",...eg];function md(e){return pd(e.animate)||tg.some(t=>hl(e[t]))}function s1(e){return!!(md(e)||e.variants)}function t5(e,t,n){for(const a in t){const o=t[a],s=n[a];if(nn(o))e.addValue(a,o);else if(nn(s))e.addValue(a,Uo(o,{owner:e}));else if(s!==o)if(e.hasValue(a)){const l=e.getValue(a);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(a);e.addValue(a,Uo(l!==void 0?l:o,{owner:e}))}}for(const a in n)t[a]===void 0&&e.removeValue(a);return t}const Hu={current:null},ng={current:!1},n5=typeof window<"u";function l1(){if(ng.current=!0,!!n5)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Hu.current=e.matches;e.addEventListener("change",t),t()}else Hu.current=!1}const Mk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Wu={};function c1(e){Wu=e}function a5(){return Wu}class r5{scrapeMotionValuesFromProps(t,n,a){return{}}constructor({parent:t,props:n,presenceContext:a,reducedMotionConfig:o,skipAnimations:s,blockInitialAnimation:l,visualState:u},f={}){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=Wm,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 _=yn.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,gt.render(this.render,!1,!0))};const{latestValues:h,renderState:m}=u;this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=s,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=md(n),this.isVariantNode=s1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const _ in v){const x=v[_];h[_]!==void 0&&nn(x)&&x.set(h[_])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,e5.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((n,a)=>this.bindToMotionValue(a,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ng.current||l1(),this.shouldReduceMotion=Hu.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(),Kr(this.notifyUpdate),Kr(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 n=this.features[t];n&&(n.unmount(),n.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,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&$x.has(t)&&this.current instanceof HTMLElement){const{factory:l,keyframes:u,times:f,ease:h,duration:m}=n.accelerate,y=new zx({element:this.current,name:t,keyframes:u,times:f,ease:h,duration:Bn(m)}),v=l(y);this.valueSubscriptions.set(t,()=>{v(),y.cancel()});return}const a=Wo.has(t);a&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&gt.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),n.owner&&n.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 Wu){const n=Wu[t];if(!n)continue;const{isEnabled:a,Feature:o}=n;if(!this.features[t]&&o&&a(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ht()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let a=0;a<Mk.length;a++){const o=Mk[a];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,l=t[s];l&&(this.propEventSubscriptions[o]=this.on(o,l))}this.prevMotionValues=t5(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 n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const a=this.values.get(t);n!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&n!==void 0&&(a=Uo(n===null?void 0:n,{owner:this}),this.addValue(t,a)),a}readValue(t,n){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(sx(a)||cx(a))?a=parseFloat(a):!J4(a)&&ga.test(n)&&(a=e1(t,n)),this.setBaseTarget(t,nn(a)?a.get():a)),nn(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let a;if(typeof n=="string"||typeof n=="object"){const s=qm(this.props,n,this.presenceContext?.custom);s&&(a=s[t])}if(n&&a!==void 0)return a;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!nn(o)?o:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Om),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Xm.render(this.render)}}class u1 extends r5{constructor(){super(...arguments),this.KeyframeResolver=I4}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const a=t.style;return a?a[n]:void 0}removeValueFromRenderState(t,{vars:n,style:a}){delete n[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;nn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Zr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function d1({top:e,left:t,right:n,bottom:a}){return{x:{min:t,max:n},y:{min:e,max:a}}}function i5({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function o5(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:a.y,right:a.x}}function Af(e){return e===void 0||e===1}function Rp({scale:e,scaleX:t,scaleY:n}){return!Af(e)||!Af(t)||!Af(n)}function ki(e){return Rp(e)||h1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function h1(e){return Nk(e.x)||Nk(e.y)}function Nk(e){return e&&e!=="0%"}function Gu(e,t,n){const a=e-n,o=t*a;return n+o}function Ok(e,t,n,a,o){return o!==void 0&&(e=Gu(e,o,a)),Gu(e,n,a)+t}function Lp(e,t=0,n=1,a,o){e.min=Ok(e.min,t,n,a,o),e.max=Ok(e.max,t,n,a,o)}function f1(e,{x:t,y:n}){Lp(e.x,t.translate,t.scale,t.originPoint),Lp(e.y,n.translate,n.scale,n.originPoint)}const jk=.999999999999,Uk=1.0000000000001;function s5(e,t,n,a=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,l;for(let u=0;u<o;u++){s=n[u],l=s.projectionDelta;const{visualElement:f}=s.options;f&&f.props.style&&f.props.style.display==="contents"||(a&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(Ea(e.x,-s.scroll.offset.x),Ea(e.y,-s.scroll.offset.y)),l&&(t.x*=l.x.scale,t.y*=l.y.scale,f1(e,l)),a&&ki(s.latestValues)&&vu(e,s.latestValues,s.layout?.layoutBox))}t.x<Uk&&t.x>jk&&(t.x=1),t.y<Uk&&t.y>jk&&(t.y=1)}function Ea(e,t){e.min+=t,e.max+=t}function Bk(e,t,n,a,o=.5){const s=Pt(e.min,e.max,o);Lp(e,t,n,s,a)}function Fk(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function vu(e,t,n){const a=n??e;Bk(e.x,Fk(t.x,a.x),t.scaleX,t.scale,t.originX),Bk(e.y,Fk(t.y,a.y),t.scaleY,t.scale,t.originY)}function p1(e,t){return d1(o5(e.getBoundingClientRect(),t))}function l5(e,t,n){const a=p1(e,n),{scroll:o}=t;return o&&(Ea(a.x,o.offset.x),Ea(a.y,o.offset.y)),a}const c5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},u5=Ho.length;function d5(e,t,n){let a="",o=!0;for(let s=0;s<u5;s++){const l=Ho[s],u=e[l];if(u===void 0)continue;let f=!0;if(typeof u=="number")f=u===(l.startsWith("scale")?1:0);else{const h=parseFloat(u);f=l.startsWith("scale")?h===1:h===0}if(!f||n){const h=n1(u,Zm[l]);if(!f){o=!1;const m=c5[l]||l;a+=`${m}(${h}) `}n&&(t[l]=h)}}return a=a.trim(),n?a=n(t,o?"":a):o&&(a="none"),a}function ag(e,t,n){const{style:a,vars:o,transformOrigin:s}=e;let l=!1,u=!1;for(const f in t){const h=t[f];if(Wo.has(f)){l=!0;continue}else if(Px(f)){o[f]=h;continue}else{const m=n1(h,Zm[f]);f.startsWith("origin")?(u=!0,s[f]=m):a[f]=m}}if(t.transform||(l||n?a.transform=d5(t,e.transform,n):a.transform&&(a.transform="none")),u){const{originX:f="50%",originY:h="50%",originZ:m=0}=s;a.transformOrigin=`${f} ${h} ${m}`}}function m1(e,{style:t,vars:n},a,o){const s=e.style;let l;for(l in t)s[l]=t[l];o?.applyProjectionStyles(s,a);for(l in n)s.setProperty(l,n[l])}function zk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ns={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ce.test(e))e=parseFloat(e);else return e;const n=zk(e,t.target.x),a=zk(e,t.target.y);return`${n}% ${a}%`}},h5={correct:(e,{treeScale:t,projectionDelta:n})=>{const a=e,o=ga.parse(e);if(o.length>5)return a;const s=ga.createTransformer(e),l=typeof o[0]!="number"?1:0,u=n.x.scale*t.x,f=n.y.scale*t.y;o[0+l]/=u,o[1+l]/=f;const h=Pt(u,f,.5);return typeof o[2+l]=="number"&&(o[2+l]/=h),typeof o[3+l]=="number"&&(o[3+l]/=h),s(o)}},Dp={borderRadius:{...Ns,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ns,borderTopRightRadius:Ns,borderBottomLeftRadius:Ns,borderBottomRightRadius:Ns,boxShadow:h5};function g1(e,{layout:t,layoutId:n}){return Wo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Dp[e]||e==="opacity")}function rg(e,t,n){const a=e.style,o=t?.style,s={};if(!a)return s;for(const l in a)(nn(a[l])||o&&nn(o[l])||g1(l,e)||n?.getValue(l)?.liveStyle!==void 0)&&(s[l]=a[l]);return s}function f5(e){return window.getComputedStyle(e)}class p5 extends u1{constructor(){super(...arguments),this.type="html",this.renderInstance=m1}readValueFromInstance(t,n){if(Wo.has(n))return this.projection?.isProjecting?bp(n):NM(t,n);{const a=f5(t),o=(Px(n)?a.getPropertyValue(n):a[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return p1(t,n)}build(t,n,a){ag(t,n,a.transformTemplate)}scrapeMotionValuesFromProps(t,n,a){return rg(t,n,a)}}const m5={offset:"stroke-dashoffset",array:"stroke-dasharray"},g5={offset:"strokeDashoffset",array:"strokeDasharray"};function y5(e,t,n=1,a=0,o=!0){e.pathLength=1;const s=o?m5:g5;e[s.offset]=`${-a}`,e[s.array]=`${t} ${n}`}const v5=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function y1(e,{attrX:t,attrY:n,attrScale:a,pathLength:o,pathSpacing:s=1,pathOffset:l=0,...u},f,h,m){if(ag(e,u,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:v}=e;y.transform&&(v.transform=y.transform,delete y.transform),(v.transform||y.transformOrigin)&&(v.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),v.transform&&(v.transformBox=m?.transformBox??"fill-box",delete y.transformBox);for(const _ of v5)y[_]!==void 0&&(v[_]=y[_],delete y[_]);t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),a!==void 0&&(y.scale=a),o!==void 0&&y5(y,o,s,l,!1)}const v1=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"]),b1=e=>typeof e=="string"&&e.toLowerCase()==="svg";function b5(e,t,n,a){m1(e,t,void 0,a);for(const o in t.attrs)e.setAttribute(v1.has(o)?o:Ym(o),t.attrs[o])}function k1(e,t,n){const a=rg(e,t,n);for(const o in e)if(nn(e[o])||nn(t[o])){const s=Ho.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;a[s]=e[o]}return a}class k5 extends u1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ht}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Wo.has(n)){const a=Jx(n);return a&&a.default||0}return n=v1.has(n)?n:Ym(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,a){return k1(t,n,a)}build(t,n,a){y1(t,n,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,n,a,o){b5(t,n,a,o)}mount(t){this.isSVGTag=b1(t.tagName),super.mount(t)}}const _5=tg.length;function _1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?_1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<_5;n++){const a=tg[n],o=e.props[a];(hl(o)||o===!1)&&(t[a]=o)}return t}function w1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let a=0;a<n;a++)if(t[a]!==e[a])return!1;return!0}const w5=[...eg].reverse(),x5=eg.length;function P5(e){return t=>Promise.all(t.map(({animation:n,options:a})=>w4(e,n,a)))}function S5(e){let t=P5(e),n=Vk(),a=!0,o=!1;const s=h=>(m,y)=>{const v=Ci(e,y,h==="exit"?e.presenceContext?.custom:void 0);if(v){const{transition:_,transitionEnd:x,...S}=v;m={...m,...S,...x}}return m};function l(h){t=h(e)}function u(h){const{props:m}=e,y=_1(e.parent)||{},v=[],_=new Set;let x={},S=1/0;for(let D=0;D<x5;D++){const M=w5[D],E=n[M],A=m[M]!==void 0?m[M]:y[M],B=hl(A),z=M===h?E.isActive:null;z===!1&&(S=D);let H=A===y[M]&&A!==m[M]&&B;if(H&&(a||o)&&e.manuallyAnimateOnMount&&(H=!1),E.protectedKeys={...x},!E.isActive&&z===null||!A&&!E.prevProp||pd(A)||typeof A=="boolean")continue;if(M==="exit"&&E.isActive&&z!==!0){E.prevResolvedValues&&(x={...x,...E.prevResolvedValues});continue}const P=C5(E.prevProp,A);let Z=P||M===h&&E.isActive&&!H&&B||D>S&&B,X=!1;const fe=Array.isArray(A)?A:[A];let he=fe.reduce(s(M),{});z===!1&&(he={});const{prevResolvedValues:Q={}}=E,J={...Q,...he},te=F=>{Z=!0,_.has(F)&&(X=!0,_.delete(F)),E.needsAnimating[F]=!0;const Y=e.getValue(F);Y&&(Y.liveStyle=!1)};for(const F in J){const Y=he[F],V=Q[F];if(x.hasOwnProperty(F))continue;let I=!1;Sp(Y)&&Sp(V)?I=!w1(Y,V):I=Y!==V,I?Y!=null?te(F):_.add(F):Y!==void 0&&_.has(F)?te(F):E.protectedKeys[F]=!0}E.prevProp=A,E.prevResolvedValues=he,E.isActive&&(x={...x,...he}),(a||o)&&e.blockInitialAnimation&&(Z=!1);const ee=H&&P;Z&&(!ee||X)&&v.push(...fe.map(F=>{const Y={type:M};if(typeof F=="string"&&(a||o)&&!ee&&e.manuallyAnimateOnMount&&e.parent){const{parent:V}=e,I=Ci(V,F);if(V.enteringChildren&&I){const{delayChildren:W}=I.transition||{};Y.delay=Hx(V.enteringChildren,e,W)}}return{animation:F,options:Y}}))}if(_.size){const D={};if(typeof m.initial!="boolean"){const M=Ci(e,Array.isArray(m.initial)?m.initial[0]:m.initial);M&&M.transition&&(D.transition=M.transition)}_.forEach(M=>{const E=e.getBaseTarget(M),A=e.getValue(M);A&&(A.liveStyle=!0),D[M]=E??null}),v.push({animation:D})}let C=!!v.length;return a&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(C=!1),a=!1,o=!1,C?t(v):Promise.resolve()}function f(h,m){if(n[h].isActive===m)return Promise.resolve();e.variantChildren?.forEach(v=>v.animationState?.setActive(h,m)),n[h].isActive=m;const y=u(h);for(const v in n)n[v].protectedKeys={};return y}return{animateChanges:u,setActive:f,setAnimateFunction:l,getState:()=>n,reset:()=>{n=Vk(),o=!0}}}function C5(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!w1(t,e):!1}function gi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Vk(){return{animate:gi(!0),whileInView:gi(),whileHover:gi(),whileTap:gi(),whileDrag:gi(),whileFocus:gi(),exit:gi()}}function Ip(e,t){e.min=t.min,e.max=t.max}function da(e,t){Ip(e.x,t.x),Ip(e.y,t.y)}function $k(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const x1=1e-4,T5=1-x1,E5=1+x1,P1=.01,A5=0-P1,R5=0+P1;function vn(e){return e.max-e.min}function L5(e,t,n){return Math.abs(e-t)<=n}function Hk(e,t,n,a=.5){e.origin=a,e.originPoint=Pt(t.min,t.max,e.origin),e.scale=vn(n)/vn(t),e.translate=Pt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=T5&&e.scale<=E5||isNaN(e.scale))&&(e.scale=1),(e.translate>=A5&&e.translate<=R5||isNaN(e.translate))&&(e.translate=0)}function Qs(e,t,n,a){Hk(e.x,t.x,n.x,a?a.originX:void 0),Hk(e.y,t.y,n.y,a?a.originY:void 0)}function Wk(e,t,n,a=0){const o=a?Pt(n.min,n.max,a):n.min;e.min=o+t.min,e.max=e.min+vn(t)}function D5(e,t,n,a){Wk(e.x,t.x,n.x,a?.x),Wk(e.y,t.y,n.y,a?.y)}function Gk(e,t,n,a=0){const o=a?Pt(n.min,n.max,a):n.min;e.min=t.min-o,e.max=e.min+vn(t)}function Ku(e,t,n,a){Gk(e.x,t.x,n.x,a?.x),Gk(e.y,t.y,n.y,a?.y)}function Kk(e,t,n,a,o){return e-=t,e=Gu(e,1/n,a),o!==void 0&&(e=Gu(e,1/o,a)),e}function I5(e,t=0,n=1,a=.5,o,s=e,l=e){if(La.test(t)&&(t=parseFloat(t),t=Pt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=Pt(s.min,s.max,a);e===s&&(u-=t),e.min=Kk(e.min,t,n,u,o),e.max=Kk(e.max,t,n,u,o)}function qk(e,t,[n,a,o],s,l){I5(e,t[n],t[a],t[o],t.scale,s,l)}const M5=["x","scaleX","originX"],N5=["y","scaleY","originY"];function Yk(e,t,n,a){qk(e.x,t,M5,n?n.x:void 0,a?a.x:void 0),qk(e.y,t,N5,n?n.y:void 0,a?a.y:void 0)}function Zk(e){return e.translate===0&&e.scale===1}function S1(e){return Zk(e.x)&&Zk(e.y)}function Xk(e,t){return e.min===t.min&&e.max===t.max}function O5(e,t){return Xk(e.x,t.x)&&Xk(e.y,t.y)}function Qk(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function C1(e,t){return Qk(e.x,t.x)&&Qk(e.y,t.y)}function Jk(e){return vn(e.x)/vn(e.y)}function e_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ta(e){return[e("x"),e("y")]}function j5(e,t,n){let a="";const o=e.x.translate/t.x,s=e.y.translate/t.y,l=n?.z||0;if((o||s||l)&&(a=`translate3d(${o}px, ${s}px, ${l}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:y,rotateY:v,skewX:_,skewY:x}=n;h&&(a=`perspective(${h}px) ${a}`),m&&(a+=`rotate(${m}deg) `),y&&(a+=`rotateX(${y}deg) `),v&&(a+=`rotateY(${v}deg) `),_&&(a+=`skewX(${_}deg) `),x&&(a+=`skewY(${x}deg) `)}const u=e.x.scale*t.x,f=e.y.scale*t.y;return(u!==1||f!==1)&&(a+=`scale(${u}, ${f})`),a||"none"}const T1=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],U5=T1.length,t_=e=>typeof e=="string"?parseFloat(e):e,n_=e=>typeof e=="number"||Ce.test(e);function B5(e,t,n,a,o,s){o?(e.opacity=Pt(0,n.opacity??1,F5(a)),e.opacityExit=Pt(t.opacity??1,0,z5(a))):s&&(e.opacity=Pt(t.opacity??1,n.opacity??1,a));for(let l=0;l<U5;l++){const u=T1[l];let f=a_(t,u),h=a_(n,u);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||n_(f)===n_(h)?(e[u]=Math.max(Pt(t_(f),t_(h),a),0),(La.test(h)||La.test(f))&&(e[u]+="%")):e[u]=h}(t.rotate||n.rotate)&&(e.rotate=Pt(t.rotate||0,n.rotate||0,a))}function a_(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const F5=E1(0,.5,vx),z5=E1(.5,.95,Zn);function E1(e,t,n){return a=>a<e?0:a>t?1:n(ul(e,t,a))}function V5(e,t,n){const a=nn(e)?e:Uo(e);return a.start(Km("",a,t,n)),a.animation}function fl(e,t,n,a={passive:!0}){return e.addEventListener(t,n,a),()=>e.removeEventListener(t,n)}const $5=(e,t)=>e.depth-t.depth;class H5{constructor(){this.children=[],this.isDirty=!1}add(t){Mm(this.children,t),this.isDirty=!0}remove(t){Bu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($5),this.isDirty=!1,this.children.forEach(t)}}function W5(e,t){const n=yn.now(),a=({timestamp:o})=>{const s=o-n;s>=t&&(Kr(a),e(s-t))};return gt.setup(a,!0),()=>Kr(a)}function bu(e){return nn(e)?e.get():e}class G5{constructor(){this.members=[]}add(t){Mm(this.members,t);for(let n=this.members.length-1;n>=0;n--){const a=this.members[n];if(a===t||a===this.lead||a===this.prevLead)continue;const o=a.instance;(!o||o.isConnected===!1)&&!a.snapshot&&(Bu(this.members,a),a.unmount())}t.scheduleRender()}remove(t){if(Bu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){const a=this.members[n];if(a.isPresent!==!1&&a.instance?.isConnected!==!1)return this.promote(a),!0}return!1}promote(t,n){const a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=a.options,{layoutDependency:s}=t.options;(o===void 0||o!==s)&&(t.resumeFrom=a,n&&(a.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&a.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 ku={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Rf=["","X","Y","Z"],K5=1e3;let q5=0;function Lf(e,t,n,a){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),a&&(a[e]=0))}function A1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Yx(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",gt,!(o||s))}const{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&A1(a)}function R1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:a,resetTransform:o}){return class{constructor(l={},u=t?.()){this.id=q5++,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(X5),this.nodes.forEach(aN),this.nodes.forEach(rN),this.nodes.forEach(Q5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new H5)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Om),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const f=this.eventHandlers.get(l);f&&f.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=Jm(l)&&!X4(l),this.instance=l;const{layoutId:u,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||u)&&(this.isLayoutDirty=!0),e){let m,y=0;const v=()=>this.root.updateBlockedByResize=!1;gt.read(()=>{y=window.innerWidth}),e(l,()=>{const _=window.innerWidth;_!==y&&(y=_,this.root.updateBlockedByResize=!0,m&&m(),m=W5(v,250),ku.hasAnimatedSinceResize&&(ku.hasAnimatedSinceResize=!1,this.nodes.forEach(o_)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:y,hasRelativeLayoutChanged:v,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||cN,{onLayoutAnimationStart:S,onLayoutAnimationComplete:C}=h.getProps(),D=!this.targetLayout||!C1(this.targetLayout,_),M=!y&&v;if(this.options.layoutRoot||this.resumeFrom||M||y&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const E={...Gm(x,"layout"),onPlay:S,onComplete:C};(h.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E),this.setAnimationOrigin(m,M)}else y||o_(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Kr(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(iN),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&A1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const y=this.path[m];y.shouldResetTransform=!0,(typeof y.latestValues.x=="string"||typeof y.latestValues.y=="string")&&(y.isLayoutDirty=!0),y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:u,layout:f}=this.options;if(u===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const f=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),f&&this.nodes.forEach(eN),this.nodes.forEach(r_);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(i_);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(tN),this.nodes.forEach(nN),this.nodes.forEach(Y5),this.nodes.forEach(Z5)):this.nodes.forEach(i_),this.clearAllSnapshots();const u=yn.now();tn.delta=Oa(0,1e3/60,u-tn.timestamp),tn.timestamp=u,tn.isProcessing=!0,wf.update.process(tn),wf.preRender.process(tn),wf.render.process(tn),tn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(J5),this.sharedNodes.forEach(oN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vn(this.snapshot.measuredBox.x)&&!vn(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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ht()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u&&this.instance){const f=a(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!o)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!S1(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;l&&this.instance&&(u||ki(this.latestValues)||m)&&(o(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let f=this.removeElementScroll(u);return l&&(f=this.removeTransform(f)),uN(f),{animationId:this.root.animationId,measuredBox:u,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return Ht();const u=l.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(dN))){const{scroll:h}=this.root;h&&(Ea(u.x,h.offset.x),Ea(u.y,h.offset.y))}return u}removeElementScroll(l){const u=Ht();if(da(u,l),this.scroll?.wasRoot)return u;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:m,options:y}=h;h!==this.root&&m&&y.layoutScroll&&(m.wasRoot&&da(u,l),Ea(u.x,m.offset.x),Ea(u.y,m.offset.y))}return u}applyTransform(l,u=!1,f){const h=f||Ht();da(h,l);for(let m=0;m<this.path.length;m++){const y=this.path[m];!u&&y.options.layoutScroll&&y.scroll&&y!==y.root&&(Ea(h.x,-y.scroll.offset.x),Ea(h.y,-y.scroll.offset.y)),ki(y.latestValues)&&vu(h,y.latestValues,y.layout?.layoutBox)}return ki(this.latestValues)&&vu(h,this.latestValues,this.layout?.layoutBox),h}removeTransform(l){const u=Ht();da(u,l);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!ki(h.latestValues))continue;let m;h.instance&&(Rp(h.latestValues)&&h.updateSnapshot(),m=Ht(),da(m,h.measurePageBox())),Yk(u,h.latestValues,h.snapshot?.layoutBox,m)}return ki(this.latestValues)&&Yk(u,this.latestValues),u}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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!==tn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==u;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:y}=this.options;if(!this.layout||!(m||y))return;this.resolvedRelativeTargetAt=tn.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ht(),this.targetWithTransforms=Ht()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),D5(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):da(this.target,this.layout.layoutBox),f1(this.target,this.targetDelta)):da(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Rp(this.parent.latestValues)||h1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(l,u,f){this.relativeParent=l,this.linkedParentVersion=l.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ht(),this.relativeTargetOrigin=Ht(),Ku(this.relativeTargetOrigin,u,f,this.options.layoutAnchor||void 0),da(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const l=this.getLead(),u=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===tn.timestamp&&(f=!1),f)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;da(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,v=this.treeScale.y;s5(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Ht());const{target:_}=l;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($k(this.prevProjectionDelta.x,this.projectionDelta.x),$k(this.prevProjectionDelta.y,this.projectionDelta.y)),Qs(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==v||!e_(this.projectionDelta.x,this.prevProjectionDelta.x)||!e_(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.visualElement?.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=To(),this.projectionDelta=To(),this.projectionDeltaWithTransform=To()}setAnimationOrigin(l,u=!1){const f=this.snapshot,h=f?f.latestValues:{},m={...this.latestValues},y=To();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const v=Ht(),_=f?f.source:void 0,x=this.layout?this.layout.source:void 0,S=_!==x,C=this.getStack(),D=!C||C.members.length<=1,M=!!(S&&!D&&this.options.crossfade===!0&&!this.path.some(lN));this.animationProgress=0;let E;this.mixTargetDelta=A=>{const B=A/1e3;s_(y.x,l.x,B),s_(y.y,l.y,B),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ku(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),sN(this.relativeTarget,this.relativeTargetOrigin,v,B),E&&O5(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Ht()),da(E,this.relativeTarget)),S&&(this.animationValues=m,B5(m,h,this.latestValues,B,M,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=B},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Kr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=gt.update(()=>{ku.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Uo(0)),this.motionValue.jump(0,!1),this.currentAnimation=V5(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),l.onUpdate&&l.onUpdate(u)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(K5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:f,layout:h,latestValues:m}=l;if(!(!u||!f||!h)){if(this!==l&&this.layout&&h&&L1(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Ht();const y=vn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+y;const v=vn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+v}da(u,f),vu(u,m),Qs(this.projectionDeltaWithTransform,this.layoutCorrected,u,m)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new G5),this.sharedNodes.get(l).add(u);const h=u.options.initialPromotionConfig;u.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){const{layoutId:l}=this.options;return l?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:l}=this.options;return l?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(u=!0),!u)return;const h={};f.z&&Lf("z",l,h,this.animationValues);for(let m=0;m<Rf.length;m++)Lf(`rotate${Rf[m]}`,l,h,this.animationValues),Lf(`skew${Rf[m]}`,l,h,this.animationValues);l.render();for(const m in h)l.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);l.scheduleRender()}applyProjectionStyles(l,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=bu(u?.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=bu(u?.pointerEvents)||""),this.hasProjected&&!ki(this.latestValues)&&(l.transform=f?f({},""):"none",this.hasProjected=!1);return}l.visibility="";const m=h.animationValues||h.latestValues;this.applyTransformsToTarget();let y=j5(this.projectionDeltaWithTransform,this.treeScale,m);f&&(y=f(m,y)),l.transform=y;const{x:v,y:_}=this.projectionDelta;l.transformOrigin=`${v.origin*100}% ${_.origin*100}% 0`,h.animationValues?l.opacity=h===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:l.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const x in Dp){if(m[x]===void 0)continue;const{correct:S,applyTo:C,isCSSVariable:D}=Dp[x],M=y==="none"?m[x]:S(m[x],h);if(C){const E=C.length;for(let A=0;A<E;A++)l[C[A]]=M}else D?this.options.visualElement.renderState.vars[x]=M:l[x]=M}this.options.layoutId&&(l.pointerEvents=h===this?bu(u?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>l.currentAnimation?.stop()),this.root.nodes.forEach(r_),this.root.sharedNodes.clear()}}}function Y5(e){e.updateLayout()}function Z5(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:a}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;if(o==="size")Ta(m=>{const y=s?t.measuredBox[m]:t.layoutBox[m],v=vn(y);y.min=n[m].min,y.max=y.min+v});else if(o==="x"||o==="y"){const m=o==="x"?"y":"x";Ip(s?t.measuredBox[m]:t.layoutBox[m],n[m])}else L1(o,t.layoutBox,n)&&Ta(m=>{const y=s?t.measuredBox[m]:t.layoutBox[m],v=vn(n[m]);y.max=y.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+v)});const l=To();Qs(l,n,t.layoutBox);const u=To();s?Qs(u,e.applyTransform(a,!0),t.measuredBox):Qs(u,n,t.layoutBox);const f=!S1(l);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:y,layout:v}=m;if(y&&v){const _=e.options.layoutAnchor||void 0,x=Ht();Ku(x,t.layoutBox,y.layoutBox,_);const S=Ht();Ku(S,n,v.layoutBox,_),C1(x,S)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=x,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:u,layoutDelta:l,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function X5(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 Q5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function J5(e){e.clearSnapshot()}function r_(e){e.clearMeasurements()}function eN(e){e.isLayoutDirty=!0,e.updateLayout()}function i_(e){e.isLayoutDirty=!1}function tN(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function nN(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function o_(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aN(e){e.resolveTargetDelta()}function rN(e){e.calcProjection()}function iN(e){e.resetSkewAndRotation()}function oN(e){e.removeLeadSnapshot()}function s_(e,t,n){e.translate=Pt(t.translate,0,n),e.scale=Pt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function l_(e,t,n,a){e.min=Pt(t.min,n.min,a),e.max=Pt(t.max,n.max,a)}function sN(e,t,n,a){l_(e.x,t.x,n.x,a),l_(e.y,t.y,n.y,a)}function lN(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const cN={duration:.45,ease:[.4,0,.1,1]},c_=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),u_=c_("applewebkit/")&&!c_("chrome/")?Math.round:Zn;function d_(e){e.min=u_(e.min),e.max=u_(e.max)}function uN(e){d_(e.x),d_(e.y)}function L1(e,t,n){return e==="position"||e==="preserve-aspect"&&!L5(Jk(t),Jk(n),.2)}function dN(e){return e!==e.root&&e.scroll?.wasRoot}const hN=R1({attachResizeListener:(e,t)=>fl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Df={current:void 0},D1=R1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Df.current){const e=new hN({});e.mount(window),e.setOptions({layoutScroll:!0}),Df.current=e}return Df.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ig=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function h_(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fN(...e){return t=>{let n=!1;const a=e.map(o=>{const s=h_(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():h_(e[o],null)}}}}function pN(...e){return k.useCallback(fN(...e),e)}class mN extends k.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(fu(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const a=n.offsetParent,o=fu(a)&&a.offsetWidth||0,s=fu(a)&&a.offsetHeight||0,l=getComputedStyle(n),u=this.props.sizeRef.current;u.height=parseFloat(l.height),u.width=parseFloat(l.width),u.top=n.offsetTop,u.left=n.offsetLeft,u.right=o-u.width-u.left,u.bottom=s-u.height-u.top}return null}componentDidUpdate(){}render(){return this.props.children}}function gN({children:e,isPresent:t,anchorX:n,anchorY:a,root:o,pop:s}){const l=k.useId(),u=k.useRef(null),f=k.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:h}=k.useContext(ig),m=e.props?.ref??e?.ref,y=pN(u,m);return k.useInsertionEffect(()=>{const{width:v,height:_,top:x,left:S,right:C,bottom:D}=f.current;if(t||s===!1||!u.current||!v||!_)return;const M=n==="left"?`left: ${S}`:`right: ${C}`,E=a==="bottom"?`bottom: ${D}`:`top: ${x}`;u.current.dataset.motionPopId=l;const A=document.createElement("style");h&&(A.nonce=h);const B=o??document.head;return B.appendChild(A),A.sheet&&A.sheet.insertRule(`
957
- [data-motion-pop-id="${l}"] {
958
- position: absolute !important;
959
- width: ${v}px !important;
960
- height: ${_}px !important;
961
- ${M}px !important;
962
- ${E}px !important;
963
- }
964
- `),()=>{u.current?.removeAttribute("data-motion-pop-id"),B.contains(A)&&B.removeChild(A)}},[t]),T.jsx(mN,{isPresent:t,childRef:u,sizeRef:f,pop:s,children:s===!1?e:k.cloneElement(e,{ref:y})})}const yN=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:o,presenceAffectsLayout:s,mode:l,anchorX:u,anchorY:f,root:h})=>{const m=Im(vN),y=k.useId();let v=!0,_=k.useMemo(()=>(v=!1,{id:y,initial:t,isPresent:n,custom:o,onExitComplete:x=>{m.set(x,!0);for(const S of m.values())if(!S)return;a&&a()},register:x=>(m.set(x,!1),()=>m.delete(x))}),[n,m,a]);return s&&v&&(_={..._}),k.useMemo(()=>{m.forEach((x,S)=>m.set(S,!1))},[n]),k.useEffect(()=>{!n&&!m.size&&a&&a()},[n]),e=T.jsx(gN,{pop:l==="popLayout",isPresent:n,anchorX:u,anchorY:f,root:h,children:e}),T.jsx(hd.Provider,{value:_,children:e})};function vN(){return new Map}function I1(e=!0){const t=k.useContext(hd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:a,register:o}=t,s=k.useId();k.useEffect(()=>{if(e)return o(s)},[e]);const l=k.useCallback(()=>e&&a&&a(s),[s,a,e]);return!n&&a?[!1,l]:[!0]}const Kc=e=>e.key||"";function f_(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const M1=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:s="sync",propagate:l=!1,anchorX:u="left",anchorY:f="top",root:h})=>{const[m,y]=I1(l),v=k.useMemo(()=>f_(e),[e]),_=l&&!m?[]:v.map(Kc),x=k.useRef(!0),S=k.useRef(v),C=Im(()=>new Map),D=k.useRef(new Set),[M,E]=k.useState(v),[A,B]=k.useState(v);ox(()=>{x.current=!1,S.current=v;for(let P=0;P<A.length;P++){const Z=Kc(A[P]);_.includes(Z)?(C.delete(Z),D.current.delete(Z)):C.get(Z)!==!0&&C.set(Z,!1)}},[A,_.length,_.join("-")]);const z=[];if(v!==M){let P=[...v];for(let Z=0;Z<A.length;Z++){const X=A[Z],fe=Kc(X);_.includes(fe)||(P.splice(Z,0,X),z.push(X))}return s==="wait"&&z.length&&(P=z),B(f_(P)),E(v),null}const{forceRender:H}=k.useContext(Dm);return T.jsx(T.Fragment,{children:A.map(P=>{const Z=Kc(P),X=l&&!m?!1:v===A||_.includes(Z),fe=()=>{if(D.current.has(Z))return;if(C.has(Z))D.current.add(Z),C.set(Z,!0);else return;let he=!0;C.forEach(Q=>{Q||(he=!1)}),he&&(H?.(),B(S.current),l&&y?.(),a&&a())};return T.jsx(yN,{isPresent:X,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:h,onExitComplete:X?void 0:fe,anchorX:u,anchorY:f,children:P},Z)})})},N1=k.createContext({strict:!1}),p_={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 m_=!1;function bN(){if(m_)return;const e={};for(const t in p_)e[t]={isEnabled:n=>p_[t].some(a=>!!n[a])};c1(e),m_=!0}function O1(){return bN(),a5()}function kN(e){const t=O1();for(const n in e)t[n]={...t[n],...e[n]};c1(t)}const _N=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 qu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||_N.has(e)}let j1=e=>!qu(e);function wN(e){typeof e=="function"&&(j1=t=>t.startsWith("on")?!qu(t):e(t))}try{wN(require("@emotion/is-prop-valid").default)}catch{}function xN(e,t,n){const a={};for(const o in e)o==="values"&&typeof e.values=="object"||nn(e[o])||(j1(o)||n===!0&&qu(o)||!t&&!qu(o)||e.draggable&&o.startsWith("onDrag"))&&(a[o]=e[o]);return a}const gd=k.createContext({});function PN(e,t){if(md(e)){const{initial:n,animate:a}=e;return{initial:n===!1||hl(n)?n:void 0,animate:hl(a)?a:void 0}}return e.inherit!==!1?t:{}}function SN(e){const{initial:t,animate:n}=PN(e,k.useContext(gd));return k.useMemo(()=>({initial:t,animate:n}),[g_(t),g_(n)])}function g_(e){return Array.isArray(e)?e.join(" "):e}const og=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function U1(e,t,n){for(const a in t)!nn(t[a])&&!g1(a,n)&&(e[a]=t[a])}function CN({transformTemplate:e},t){return k.useMemo(()=>{const n=og();return ag(n,t,e),Object.assign({},n.vars,n.style)},[t])}function TN(e,t){const n=e.style||{},a={};return U1(a,n,e),Object.assign(a,CN(e,t)),a}function EN(e,t){const n={},a=TN(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=a,n}const B1=()=>({...og(),attrs:{}});function AN(e,t,n,a){const o=k.useMemo(()=>{const s=B1();return y1(s,t,b1(a),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};U1(s,e.style,e),o.style={...s,...o.style}}return o}const RN=["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 sg(e){return typeof e!="string"||e.includes("-")?!1:!!(RN.indexOf(e)>-1||/[A-Z]/u.test(e))}function LN(e,t,n,{latestValues:a},o,s=!1,l){const f=(l??sg(e)?AN:EN)(t,a,o,e),h=xN(t,typeof e=="string",s),m=e!==k.Fragment?{...h,...f,ref:n}:{},{children:y}=t,v=k.useMemo(()=>nn(y)?y.get():y,[y]);return k.createElement(e,{...m,children:v})}function DN({scrapeMotionValuesFromProps:e,createRenderState:t},n,a,o){return{latestValues:IN(n,a,o,e),renderState:t()}}function IN(e,t,n,a){const o={},s=a(e,{});for(const v in s)o[v]=bu(s[v]);let{initial:l,animate:u}=e;const f=md(e),h=s1(e);t&&h&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const y=m?u:l;if(y&&typeof y!="boolean"&&!pd(y)){const v=Array.isArray(y)?y:[y];for(let _=0;_<v.length;_++){const x=qm(e,v[_]);if(x){const{transitionEnd:S,transition:C,...D}=x;for(const M in D){let E=D[M];if(Array.isArray(E)){const A=m?E.length-1:0;E=E[A]}E!==null&&(o[M]=E)}for(const M in S)o[M]=S[M]}}}return o}const F1=e=>(t,n)=>{const a=k.useContext(gd),o=k.useContext(hd),s=()=>DN(e,t,a,o);return n?s():Im(s)},MN=F1({scrapeMotionValuesFromProps:rg,createRenderState:og}),NN=F1({scrapeMotionValuesFromProps:k1,createRenderState:B1}),ON=Symbol.for("motionComponentSymbol");function jN(e,t,n){const a=k.useRef(n);k.useInsertionEffect(()=>{a.current=n});const o=k.useRef(null);return k.useCallback(s=>{s&&e.onMount?.(s);const l=a.current;if(typeof l=="function")if(s){const u=l(s);typeof u=="function"&&(o.current=u)}else o.current?(o.current(),o.current=null):l(s);else l&&(l.current=s);t&&(s?t.mount(s):t.unmount())},[t])}const z1=k.createContext({});function wo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function UN(e,t,n,a,o,s){const{visualElement:l}=k.useContext(gd),u=k.useContext(N1),f=k.useContext(hd),h=k.useContext(ig),m=h.reducedMotion,y=h.skipAnimations,v=k.useRef(null),_=k.useRef(!1);a=a||u.renderer,!v.current&&a&&(v.current=a(e,{visualState:t,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:m,skipAnimations:y,isSVG:s}),_.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const x=v.current,S=k.useContext(z1);x&&!x.projection&&o&&(x.type==="html"||x.type==="svg")&&BN(v.current,n,o,S);const C=k.useRef(!1);k.useInsertionEffect(()=>{x&&C.current&&x.update(n,f)});const D=n[qx],M=k.useRef(!!D&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(D)&&window.MotionHasOptimisedAnimation?.(D));return ox(()=>{_.current=!0,x&&(C.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),M.current&&x.animationState&&x.animationState.animateChanges())}),k.useEffect(()=>{x&&(!M.current&&x.animationState&&x.animationState.animateChanges(),M.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(D)}),M.current=!1),x.enteringChildren=void 0)}),x}function BN(e,t,n,a){const{layoutId:o,layout:s,drag:l,dragConstraints:u,layoutScroll:f,layoutRoot:h,layoutAnchor:m,layoutCrossfade:y}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:V1(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!l||u&&wo(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:a,crossfade:y,layoutScroll:f,layoutRoot:h,layoutAnchor:m})}function V1(e){if(e)return e.options.allowProjection!==!1?e.projection:V1(e.parent)}function If(e,{forwardMotionProps:t=!1,type:n}={},a,o){a&&kN(a);const s=n?n==="svg":sg(e),l=s?NN:MN;function u(h,m){let y;const v={...k.useContext(ig),...h,layoutId:FN(h)},{isStatic:_}=v,x=SN(h),S=l(h,_);if(!_&&typeof window<"u"){zN();const C=VN(v);y=C.MeasureLayout,x.visualElement=UN(e,S,v,o,C.ProjectionNode,s)}return T.jsxs(gd.Provider,{value:x,children:[y&&x.visualElement?T.jsx(y,{visualElement:x.visualElement,...v}):null,LN(e,h,jN(S,x.visualElement,m),S,_,t,s)]})}u.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=k.forwardRef(u);return f[ON]=e,f}function FN({layoutId:e}){const t=k.useContext(Dm).id;return t&&e!==void 0?t+"-"+e:e}function zN(e,t){k.useContext(N1).strict}function VN(e){const t=O1(),{drag:n,layout:a}=t;if(!n&&!a)return{};const o={...n,...a};return{MeasureLayout:n?.isEnabled(e)||a?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function $N(e,t){if(typeof Proxy>"u")return If;const n=new Map,a=(s,l)=>If(s,l,e,t),o=(s,l)=>a(s,l);return new Proxy(o,{get:(s,l)=>l==="create"?a:(n.has(l)||n.set(l,If(l,void 0,e,t)),n.get(l))})}const HN=(e,t)=>t.isSVG??sg(e)?new k5(t):new p5(t,{allowProjection:e!==k.Fragment});class WN extends Zr{constructor(t){super(t),t.animationState||(t.animationState=S5(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();pd(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let GN=0;class KN extends Zr{constructor(){super(...arguments),this.id=GN++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;if(t&&a===!1){if(this.isExitComplete){const{initial:s,custom:l}=this.node.getProps();if(typeof s=="string"){const u=Ci(this.node,s,l);if(u){const{transition:f,transitionEnd:h,...m}=u;for(const y in m)this.node.getValue(y)?.jump(m[y])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const qN={animation:{Feature:WN},exit:{Feature:KN}};function Rl(e){return{point:{x:e.pageX,y:e.pageY}}}const YN=e=>t=>Qm(t)&&e(t,Rl(t));function Js(e,t,n,a){return fl(e,t,YN(n),a)}const $1=({current:e})=>e?e.ownerDocument.defaultView:null,y_=(e,t)=>Math.abs(e-t);function ZN(e,t){const n=y_(e.x,t.x),a=y_(e.y,t.y);return Math.sqrt(n**2+a**2)}const v_=new Set(["auto","scroll"]);class H1{constructor(t,n,{transformPagePoint:a,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:l=3,element:u}={}){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=qc(this.lastRawMoveEventInfo,this.transformPagePoint));const _=Mf(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,S=ZN(_.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!S)return;const{point:C}=_,{timestamp:D}=tn;this.history.push({...C,timestamp:D});const{onStart:M,onMove:E}=this.handlers;x||(M&&M(this.lastMoveEvent,_),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,_)},this.handlePointerMove=(_,x)=>{this.lastMoveEvent=_,this.lastRawMoveEventInfo=x,this.lastMoveEventInfo=qc(x,this.transformPagePoint),gt.update(this.updatePoint,!0)},this.handlePointerUp=(_,x)=>{this.end();const{onEnd:S,onSessionEnd:C,resumeAnimation:D}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&D&&D(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=Mf(_.type==="pointercancel"?this.lastMoveEventInfo:qc(x,this.transformPagePoint),this.history);this.startEvent&&S&&S(_,M),C&&C(_,M)},!Qm(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=a,this.distanceThreshold=l,this.contextWindow=o||window;const f=Rl(t),h=qc(f,this.transformPagePoint),{point:m}=h,{timestamp:y}=tn;this.history=[{...m,timestamp:y}];const{onSessionStart:v}=n;v&&v(t,Mf(h,this.history)),this.removeListeners=Tl(Js(this.contextWindow,"pointermove",this.handlePointerMove),Js(this.contextWindow,"pointerup",this.handlePointerUp),Js(this.contextWindow,"pointercancel",this.handlePointerUp)),u&&this.startScrollTracking(u)}startScrollTracking(t){let n=t.parentElement;for(;n;){const a=getComputedStyle(n);(v_.has(a.overflowX)||v_.has(a.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.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 n=this.scrollPositions.get(t);if(!n)return;const a=t===window,o=a?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:o.x-n.x,y:o.y-n.y};s.x===0&&s.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,o),gt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Kr(this.updatePoint)}}function qc(e,t){return t?{point:t(e.point)}:e}function b_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mf({point:e},t){return{point:e,delta:b_(e,W1(t)),offset:b_(e,XN(t)),velocity:QN(t,.1)}}function XN(e){return e[0]}function W1(e){return e[e.length-1]}function QN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,a=null;const o=W1(e);for(;n>=0&&(a=e[n],!(o.timestamp-a.timestamp>Bn(t)));)n--;if(!a)return{x:0,y:0};a===e[0]&&e.length>2&&o.timestamp-a.timestamp>Bn(t)*2&&(a=e[1]);const s=Yn(o.timestamp-a.timestamp);if(s===0)return{x:0,y:0};const l={x:(o.x-a.x)/s,y:(o.y-a.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function JN(e,{min:t,max:n},a){return t!==void 0&&e<t?e=a?Pt(t,e,a.min):Math.max(e,t):n!==void 0&&e>n&&(e=a?Pt(n,e,a.max):Math.min(e,n)),e}function k_(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function eO(e,{top:t,left:n,bottom:a,right:o}){return{x:k_(e.x,n,o),y:k_(e.y,t,a)}}function __(e,t){let n=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,a]=[a,n]),{min:n,max:a}}function tO(e,t){return{x:__(e.x,t.x),y:__(e.y,t.y)}}function nO(e,t){let n=.5;const a=vn(e),o=vn(t);return o>a?n=ul(t.min,t.max-a,e.min):a>o&&(n=ul(e.min,e.max-o,t.min)),Oa(0,1,n)}function aO(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Mp=.35;function rO(e=Mp){return e===!1?e=0:e===!0&&(e=Mp),{x:w_(e,"left","right"),y:w_(e,"top","bottom")}}function w_(e,t,n){return{min:x_(e,t),max:x_(e,n)}}function x_(e,t){return typeof e=="number"?e:e[t]||0}const iO=new WeakMap;class oO{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=Ht(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:a}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=y=>{n&&this.snapToCursor(Rl(y).point),this.stopAnimation()},l=(y,v)=>{const{drag:_,dragPropagation:x,onDragStart:S}=this.getProps();if(_&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=M4(_),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ta(D=>{let M=this.getAxisMotionValue(D).get()||0;if(La.test(M)){const{projection:E}=this.visualElement;if(E&&E.layout){const A=E.layout.layoutBox[D];A&&(M=vn(A)*(parseFloat(M)/100))}}this.originPoint[D]=M}),S&&gt.update(()=>S(y,v),!1,!0),Cp(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},u=(y,v)=>{this.latestPointerEvent=y,this.latestPanInfo=v;const{dragPropagation:_,dragDirectionLock:x,onDirectionLock:S,onDrag:C}=this.getProps();if(!_&&!this.openDragLock)return;const{offset:D}=v;if(x&&this.currentDirection===null){this.currentDirection=lO(D),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",v.point,D),this.updateAxis("y",v.point,D),this.visualElement.render(),C&&gt.update(()=>C(y,v),!1,!0)},f=(y,v)=>{this.latestPointerEvent=y,this.latestPanInfo=v,this.stop(y,v),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>{const{dragSnapToOrigin:y}=this.getProps();(y||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new H1(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:a,contextWindow:$1(this.visualElement),element:this.visualElement.current})}stop(t,n){const a=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!a)return;const{velocity:l}=o;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&gt.postRender(()=>u(a,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,a){const{drag:o}=this.getProps();if(!a||!Yc(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(l=JN(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&wo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=eO(a.layoutBox,t):this.constraints=!1,this.elastic=rO(n),o!==this.constraints&&!wo(t)&&a&&this.constraints&&!this.hasMutatedConstraints&&Ta(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=aO(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!wo(t))return!1;const a=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=l5(a,o.root,this.visualElement.getTransformPagePoint());let l=tO(o.layout.layoutBox,s);if(n){const u=n(i5(l));this.hasMutatedConstraints=!!u,u&&(l=d1(u))}return l}startAnimation(t){const{drag:n,dragMomentum:a,dragElastic:o,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),f=this.constraints||{},h=Ta(m=>{if(!Yc(m,n,this.currentDirection))return;let y=f&&f[m]||{};(l===!0||l===m)&&(y={min:0,max:0});const v=o?200:1e6,_=o?40:1e7,x={type:"inertia",velocity:a?t[m]:0,bounceStiffness:v,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...s,...y};return this.startAxisValueAnimation(m,x)});return Promise.all(h).then(u)}startAxisValueAnimation(t,n){const a=this.getAxisMotionValue(t);return Cp(this.visualElement,t),a.start(Km(t,a,0,n,this.visualElement,!1))}stopAnimation(){Ta(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps(),o=a[n];return o||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){Ta(n=>{const{drag:a}=this.getProps();if(!Yc(n,a,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:u}=o.layout.layoutBox[n],f=s.get()||0;s.set(t[n]-Pt(l,u,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:a}=this.visualElement;if(!wo(n)||!a||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ta(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const f=u.get();o[l]=nO({min:f,max:f},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ta(l=>{if(!Yc(l,t,null))return;const u=this.getAxisMotionValue(l),{min:f,max:h}=this.constraints[l];u.set(Pt(f,h,o[l]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;iO.set(this.visualElement,this);const t=this.visualElement.current,n=Js(t,"pointerdown",h=>{const{drag:m,dragListener:y=!0}=this.getProps(),v=h.target,_=v!==t&&F4(v);m&&y&&!_&&this.start(h)});let a;const o=()=>{const{dragConstraints:h}=this.getProps();wo(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),a||(a=sO(t,h.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,l=s.addEventListener("measure",o);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),gt.read(o);const u=fl(window,"resize",()=>this.scalePositionWithinConstraints()),f=s.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(Ta(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=h[y].translate,v.set(v.get()+h[y].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),f&&f(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:a=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:l=Mp,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:a,dragPropagation:o,dragConstraints:s,dragElastic:l,dragMomentum:u}}}function P_(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function sO(e,t,n){const a=Lk(e,P_(n)),o=Lk(t,P_(n));return()=>{a(),o()}}function Yc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function lO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class cO extends Zr{constructor(t){super(t),this.removeGroupControls=Zn,this.removeListeners=Zn,this.controls=new oO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Nf=e=>(t,n)=>{e&&gt.update(()=>e(t,n),!1,!0)};class uO extends Zr{constructor(){super(...arguments),this.removePointerDownListener=Zn}onPointerDown(t){this.session=new H1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:a,onPanEnd:o}=this.node.getProps();return{onSessionStart:Nf(t),onStart:Nf(n),onMove:Nf(a),onEnd:(s,l)=>{delete this.session,o&&gt.postRender(()=>o(s,l))}}}mount(){this.removePointerDownListener=Js(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 Of=!1;class dO extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a,layoutId:o}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),a&&a.register&&o&&a.register(s),Of&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ku.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:a,drag:o,isPresent:s}=this.props,{projection:l}=a;return l&&(l.isPresent=s,t.layoutDependency!==n&&l.setOptions({...l.options,layoutDependency:n}),Of=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||gt.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:a}=t;a&&(a.options.layoutAnchor=n,a.root.didUpdate(),Xm.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a}=this.props,{projection:o}=t;Of=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),a&&a.deregister&&a.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function G1(e){const[t,n]=I1(),a=k.useContext(Dm);return T.jsx(dO,{...e,layoutGroup:a,switchLayoutGroup:k.useContext(z1),isPresent:t,safeToRemove:n})}const hO={pan:{Feature:uO},drag:{Feature:cO,ProjectionNode:D1,MeasureLayout:G1}};function S_(e,t,n){const{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=a[o];s&&gt.postRender(()=>s(t,Rl(t)))}class fO extends Zr{mount(){const{current:t}=this.node;t&&(this.unmount=O4(t,(n,a)=>(S_(this.node,a,"Start"),o=>S_(this.node,o,"End"))))}unmount(){}}class pO extends Zr{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=Tl(fl(this.node.current,"focus",()=>this.onFocus()),fl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function C_(e,t,n){const{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=a[o];s&&gt.postRender(()=>s(t,Rl(t)))}class mO extends Zr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:a}=this.node.props;this.unmount=V4(t,(o,s)=>(C_(this.node,s,"Start"),(l,{success:u})=>C_(this.node,l,u?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:a?.tap===!1})}unmount(){}}const Np=new WeakMap,jf=new WeakMap,gO=e=>{const t=Np.get(e.target);t&&t(e)},yO=e=>{e.forEach(gO)};function vO({root:e,...t}){const n=e||document;jf.has(n)||jf.set(n,{});const a=jf.get(n),o=JSON.stringify(t);return a[o]||(a[o]=new IntersectionObserver(yO,{root:e,...t})),a[o]}function bO(e,t,n){const a=vO(t);return Np.set(e,n),a.observe(e),()=>{Np.delete(e),a.unobserve(e)}}const kO={some:0,all:1};class _O extends Zr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:a,amount:o="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:a,threshold:typeof o=="number"?o:kO[o]},u=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,s&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:y}=this.node.getProps(),v=h?m:y;v&&v(f)};this.stopObserver=bO(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wO(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function wO({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const xO={inView:{Feature:_O},tap:{Feature:mO},focus:{Feature:pO},hover:{Feature:fO}},PO={layout:{ProjectionNode:D1,MeasureLayout:G1}},SO={...qN,...xO,...hO,...PO},el=$N(SO,HN);function CO(){!ng.current&&l1();const[e]=k.useState(Hu.current);return e}function K1(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=K1(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function TO(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=K1(e))&&(a&&(a+=" "),a+=t);return a}const EO=(e,t)=>{const n=new Array(e.length+t.length);for(let a=0;a<e.length;a++)n[a]=e[a];for(let a=0;a<t.length;a++)n[e.length+a]=t[a];return n},AO=(e,t)=>({classGroupId:e,validator:t}),q1=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Yu="-",T_=[],RO="arbitrary..",LO=e=>{const t=IO(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return DO(l);const u=l.split(Yu),f=u[0]===""&&u.length>1?1:0;return Y1(u,f,t)},getConflictingClassGroupIds:(l,u)=>{if(u){const f=a[l],h=n[l];return f?h?EO(h,f):f:h||T_}return n[l]||T_}}},Y1=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const h=Y1(e,t+1,s);if(h)return h}const l=n.validators;if(l===null)return;const u=t===0?e.join(Yu):e.slice(t).join(Yu),f=l.length;for(let h=0;h<f;h++){const m=l[h];if(m.validator(u))return m.classGroupId}},DO=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),a=t.slice(0,n);return a?RO+a:void 0})(),IO=e=>{const{theme:t,classGroups:n}=e;return MO(n,t)},MO=(e,t)=>{const n=q1();for(const a in e){const o=e[a];lg(o,n,a,t)}return n},lg=(e,t,n,a)=>{const o=e.length;for(let s=0;s<o;s++){const l=e[s];NO(l,t,n,a)}},NO=(e,t,n,a)=>{if(typeof e=="string"){OO(e,t,n);return}if(typeof e=="function"){jO(e,t,n,a);return}UO(e,t,n,a)},OO=(e,t,n)=>{const a=e===""?t:Z1(t,e);a.classGroupId=n},jO=(e,t,n,a)=>{if(BO(e)){lg(e(a),t,n,a);return}t.validators===null&&(t.validators=[]),t.validators.push(AO(n,e))},UO=(e,t,n,a)=>{const o=Object.entries(e),s=o.length;for(let l=0;l<s;l++){const[u,f]=o[l];lg(f,Z1(t,u),n,a)}},Z1=(e,t)=>{let n=e;const a=t.split(Yu),o=a.length;for(let s=0;s<o;s++){const l=a[s];let u=n.nextPart.get(l);u||(u=q1(),n.nextPart.set(l,u)),n=u}return n},BO=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,FO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),a=Object.create(null);const o=(s,l)=>{n[s]=l,t++,t>e&&(t=0,a=n,n=Object.create(null))};return{get(s){let l=n[s];if(l!==void 0)return l;if((l=a[s])!==void 0)return o(s,l),l},set(s,l){s in n?n[s]=l:o(s,l)}}},Op="!",E_=":",zO=[],A_=(e,t,n,a,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:a,isExternal:o}),VO=e=>{const{prefix:t,experimentalParseClassName:n}=e;let a=o=>{const s=[];let l=0,u=0,f=0,h;const m=o.length;for(let S=0;S<m;S++){const C=o[S];if(l===0&&u===0){if(C===E_){s.push(o.slice(f,S)),f=S+1;continue}if(C==="/"){h=S;continue}}C==="["?l++:C==="]"?l--:C==="("?u++:C===")"&&u--}const y=s.length===0?o:o.slice(f);let v=y,_=!1;y.endsWith(Op)?(v=y.slice(0,-1),_=!0):y.startsWith(Op)&&(v=y.slice(1),_=!0);const x=h&&h>f?h-f:void 0;return A_(s,_,v,x)};if(t){const o=t+E_,s=a;a=l=>l.startsWith(o)?s(l.slice(o.length)):A_(zO,!1,l,void 0,!0)}if(n){const o=a;a=s=>n({className:s,parseClassName:o})}return a},$O=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,a)=>{t.set(n,1e6+a)}),n=>{const a=[];let o=[];for(let s=0;s<n.length;s++){const l=n[s],u=l[0]==="[",f=t.has(l);u||f?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(l)):o.push(l)}return o.length>0&&(o.sort(),a.push(...o)),a}},HO=e=>({cache:FO(e.cacheSize),parseClassName:VO(e),sortModifiers:$O(e),...LO(e)}),WO=/\s+/,GO=(e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:s}=t,l=[],u=e.trim().split(WO);let f="";for(let h=u.length-1;h>=0;h-=1){const m=u[h],{isExternal:y,modifiers:v,hasImportantModifier:_,baseClassName:x,maybePostfixModifierPosition:S}=n(m);if(y){f=m+(f.length>0?" "+f:f);continue}let C=!!S,D=a(C?x.substring(0,S):x);if(!D){if(!C){f=m+(f.length>0?" "+f:f);continue}if(D=a(x),!D){f=m+(f.length>0?" "+f:f);continue}C=!1}const M=v.length===0?"":v.length===1?v[0]:s(v).join(":"),E=_?M+Op:M,A=E+D;if(l.indexOf(A)>-1)continue;l.push(A);const B=o(D,C);for(let z=0;z<B.length;++z){const H=B[z];l.push(E+H)}f=m+(f.length>0?" "+f:f)}return f},KO=(...e)=>{let t=0,n,a,o="";for(;t<e.length;)(n=e[t++])&&(a=X1(n))&&(o&&(o+=" "),o+=a);return o},X1=e=>{if(typeof e=="string")return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=X1(e[a]))&&(n&&(n+=" "),n+=t);return n},qO=(e,...t)=>{let n,a,o,s;const l=f=>{const h=t.reduce((m,y)=>y(m),e());return n=HO(h),a=n.cache.get,o=n.cache.set,s=u,u(f)},u=f=>{const h=a(f);if(h)return h;const m=GO(f,n);return o(f,m),m};return s=l,(...f)=>s(KO(...f))},YO=[],$t=e=>{const t=n=>n[e]||YO;return t.isThemeGetter=!0,t},Q1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,J1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ZO=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,XO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,QO=/\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$/,JO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,e6=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,t6=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ir=e=>ZO.test(e),Xe=e=>!!e&&!Number.isNaN(Number(e)),Mr=e=>!!e&&Number.isInteger(Number(e)),Uf=e=>e.endsWith("%")&&Xe(e.slice(0,-1)),Ja=e=>XO.test(e),eP=()=>!0,n6=e=>QO.test(e)&&!JO.test(e),cg=()=>!1,a6=e=>e6.test(e),r6=e=>t6.test(e),i6=e=>!Se(e)&&!Te(e),o6=e=>Xr(e,aP,cg),Se=e=>Q1.test(e),yi=e=>Xr(e,rP,n6),R_=e=>Xr(e,p6,Xe),s6=e=>Xr(e,oP,eP),l6=e=>Xr(e,iP,cg),L_=e=>Xr(e,tP,cg),c6=e=>Xr(e,nP,r6),Zc=e=>Xr(e,sP,a6),Te=e=>J1.test(e),Os=e=>Ui(e,rP),u6=e=>Ui(e,iP),D_=e=>Ui(e,tP),d6=e=>Ui(e,aP),h6=e=>Ui(e,nP),Xc=e=>Ui(e,sP,!0),f6=e=>Ui(e,oP,!0),Xr=(e,t,n)=>{const a=Q1.exec(e);return a?a[1]?t(a[1]):n(a[2]):!1},Ui=(e,t,n=!1)=>{const a=J1.exec(e);return a?a[1]?t(a[1]):n:!1},tP=e=>e==="position"||e==="percentage",nP=e=>e==="image"||e==="url",aP=e=>e==="length"||e==="size"||e==="bg-size",rP=e=>e==="length",p6=e=>e==="number",iP=e=>e==="family-name",oP=e=>e==="number"||e==="weight",sP=e=>e==="shadow",m6=()=>{const e=$t("color"),t=$t("font"),n=$t("text"),a=$t("font-weight"),o=$t("tracking"),s=$t("leading"),l=$t("breakpoint"),u=$t("container"),f=$t("spacing"),h=$t("radius"),m=$t("shadow"),y=$t("inset-shadow"),v=$t("text-shadow"),_=$t("drop-shadow"),x=$t("blur"),S=$t("perspective"),C=$t("aspect"),D=$t("ease"),M=$t("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...A(),Te,Se],z=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],P=()=>[Te,Se,f],Z=()=>[Ir,"full","auto",...P()],X=()=>[Mr,"none","subgrid",Te,Se],fe=()=>["auto",{span:["full",Mr,Te,Se]},Mr,Te,Se],he=()=>[Mr,"auto",Te,Se],Q=()=>["auto","min","max","fr",Te,Se],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...P()],se=()=>[Ir,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],F=()=>[Ir,"screen","full","dvw","lvw","svw","min","max","fit",...P()],Y=()=>[Ir,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],V=()=>[e,Te,Se],I=()=>[...A(),D_,L_,{position:[Te,Se]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],me=()=>["auto","cover","contain",d6,o6,{size:[Te,Se]}],pe=()=>[Uf,Os,yi],ye=()=>["","none","full",h,Te,Se],xe=()=>["",Xe,Os,yi],Fe=()=>["solid","dashed","dotted","double"],Ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],je=()=>[Xe,Uf,D_,L_],Rt=()=>["","none",x,Te,Se],Rn=()=>["none",Xe,Te,Se],wn=()=>["none",Xe,Te,Se],pt=()=>[Xe,Te,Se],Xt=()=>[Ir,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ja],breakpoint:[Ja],color:[eP],container:[Ja],"drop-shadow":[Ja],ease:["in","out","in-out"],font:[i6],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ja],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ja],shadow:[Ja],spacing:["px",Xe],text:[Ja],"text-shadow":[Ja],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ir,Se,Te,C]}],container:["container"],columns:[{columns:[Xe,Se,Te,u]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{"inset-s":Z(),start:Z()}],end:[{"inset-e":Z(),end:Z()}],"inset-bs":[{"inset-bs":Z()}],"inset-be":[{"inset-be":Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Mr,"auto",Te,Se]}],basis:[{basis:[Ir,"full","auto",u,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Xe,Ir,"auto","initial","none",Se]}],grow:[{grow:["",Xe,Te,Se]}],shrink:[{shrink:["",Xe,Te,Se]}],order:[{order:[Mr,"first","last","none",Te,Se]}],"grid-cols":[{"grid-cols":X()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":X()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mbs:[{mbs:ee()}],mbe:[{mbe:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...Y()]}],"min-block-size":[{"min-block":["auto",...Y()]}],"max-block-size":[{"max-block":["none",...Y()]}],w:[{w:[u,"screen",...se()]}],"min-w":[{"min-w":[u,"screen","none",...se()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",n,Os,yi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,f6,s6]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Uf,Se]}],"font-family":[{font:[u6,l6,t]}],"font-features":[{"font-features":[Se]}],"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:[o,Te,Se]}],"line-clamp":[{"line-clamp":[Xe,"none",Te,R_]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",Te,Se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,Se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Xe,"from-font","auto",Te,yi]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Xe,"auto",Te,Se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,Se]}],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",Te,Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Mr,Te,Se],radial:["",Te,Se],conic:[Mr,Te,Se]},h6,c6]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:pe()}],"gradient-via-pos":[{via:pe()}],"gradient-to-pos":[{to:pe()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:ye()}],"rounded-s":[{"rounded-s":ye()}],"rounded-e":[{"rounded-e":ye()}],"rounded-t":[{"rounded-t":ye()}],"rounded-r":[{"rounded-r":ye()}],"rounded-b":[{"rounded-b":ye()}],"rounded-l":[{"rounded-l":ye()}],"rounded-ss":[{"rounded-ss":ye()}],"rounded-se":[{"rounded-se":ye()}],"rounded-ee":[{"rounded-ee":ye()}],"rounded-es":[{"rounded-es":ye()}],"rounded-tl":[{"rounded-tl":ye()}],"rounded-tr":[{"rounded-tr":ye()}],"rounded-br":[{"rounded-br":ye()}],"rounded-bl":[{"rounded-bl":ye()}],"border-w":[{border:xe()}],"border-w-x":[{"border-x":xe()}],"border-w-y":[{"border-y":xe()}],"border-w-s":[{"border-s":xe()}],"border-w-e":[{"border-e":xe()}],"border-w-bs":[{"border-bs":xe()}],"border-w-be":[{"border-be":xe()}],"border-w-t":[{"border-t":xe()}],"border-w-r":[{"border-r":xe()}],"border-w-b":[{"border-b":xe()}],"border-w-l":[{"border-l":xe()}],"divide-x":[{"divide-x":xe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":xe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Fe(),"hidden","none"]}],"divide-style":[{divide:[...Fe(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-bs":[{"border-bs":V()}],"border-color-be":[{"border-be":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...Fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Xe,Te,Se]}],"outline-w":[{outline:["",Xe,Os,yi]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",m,Xc,Zc]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",y,Xc,Zc]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:xe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Xe,yi]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":xe()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",v,Xc,Zc]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Xe,Te,Se]}],"mix-blend":[{"mix-blend":[...Ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ye()}],"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":[Xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":je()}],"mask-image-linear-to-pos":[{"mask-linear-to":je()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":je()}],"mask-image-t-to-pos":[{"mask-t-to":je()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":je()}],"mask-image-r-to-pos":[{"mask-r-to":je()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":je()}],"mask-image-b-to-pos":[{"mask-b-to":je()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":je()}],"mask-image-l-to-pos":[{"mask-l-to":je()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":je()}],"mask-image-x-to-pos":[{"mask-x-to":je()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":je()}],"mask-image-y-to-pos":[{"mask-y-to":je()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[Te,Se]}],"mask-image-radial-from-pos":[{"mask-radial-from":je()}],"mask-image-radial-to-pos":[{"mask-radial-to":je()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"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":A()}],"mask-image-conic-pos":[{"mask-conic":[Xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":je()}],"mask-image-conic-to-pos":[{"mask-conic-to":je()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,Se]}],filter:[{filter:["","none",Te,Se]}],blur:[{blur:Rt()}],brightness:[{brightness:[Xe,Te,Se]}],contrast:[{contrast:[Xe,Te,Se]}],"drop-shadow":[{"drop-shadow":["","none",_,Xc,Zc]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Xe,Te,Se]}],"hue-rotate":[{"hue-rotate":[Xe,Te,Se]}],invert:[{invert:["",Xe,Te,Se]}],saturate:[{saturate:[Xe,Te,Se]}],sepia:[{sepia:["",Xe,Te,Se]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,Se]}],"backdrop-blur":[{"backdrop-blur":Rt()}],"backdrop-brightness":[{"backdrop-brightness":[Xe,Te,Se]}],"backdrop-contrast":[{"backdrop-contrast":[Xe,Te,Se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Xe,Te,Se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Xe,Te,Se]}],"backdrop-invert":[{"backdrop-invert":["",Xe,Te,Se]}],"backdrop-opacity":[{"backdrop-opacity":[Xe,Te,Se]}],"backdrop-saturate":[{"backdrop-saturate":[Xe,Te,Se]}],"backdrop-sepia":[{"backdrop-sepia":["",Xe,Te,Se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,Se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Xe,"initial",Te,Se]}],ease:[{ease:["linear","initial",D,Te,Se]}],delay:[{delay:[Xe,Te,Se]}],animate:[{animate:["none",M,Te,Se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Te,Se]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:Rn()}],"rotate-x":[{"rotate-x":Rn()}],"rotate-y":[{"rotate-y":Rn()}],"rotate-z":[{"rotate-z":Rn()}],scale:[{scale:wn()}],"scale-x":[{"scale-x":wn()}],"scale-y":[{"scale-y":wn()}],"scale-z":[{"scale-z":wn()}],"scale-3d":["scale-3d"],skew:[{skew:pt()}],"skew-x":[{"skew-x":pt()}],"skew-y":[{"skew-y":pt()}],transform:[{transform:[Te,Se,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Xt()}],"translate-x":[{"translate-x":Xt()}],"translate-y":[{"translate-y":Xt()}],"translate-z":[{"translate-z":Xt()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"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",Te,Se]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",Te,Se]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[Xe,Os,yi,R_]}],stroke:[{stroke:["none",...V()]}],"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"]}},g6=qO(m6);function wt(...e){return g6(TO(e))}const y6=T.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:[T.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1Z",fill:"#4285F4"}),T.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23Z",fill:"#34A853"}),T.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18A10.96 10.96 0 0 0 1 12c0 1.77.42 3.44 1.18 4.93l3.66-2.84Z",fill:"#FBBC05"}),T.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53Z",fill:"#EA4335"})]}),v6=T.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:T.jsx("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12Z"})}),b6={google:y6,github:v6},k6={google:"Google",github:"GitHub",microsoft:"Microsoft",discord:"Discord",apple:"Apple"};function _6(e){return k6[e]||String(e||"").replace(/-/g," ")}function w6({title:e,subtitle:t,className:n="",onSuccess:a,hideLogo:o=!1}){Cl();const{enabled:s,signedIn:l,refreshUser:u,signInWithPassword:f,signUp:h,signInWithOAuth:m,getPublicAuthConfig:y}=Vo(),[v,_]=k.useState("signin"),[x,S]=k.useState(""),[C,D]=k.useState(""),[M,E]=k.useState(""),[A,B]=k.useState(!1),[z,H]=k.useState(null),[P,Z]=k.useState(null),[X,fe]=k.useState(!1),[he,Q]=k.useState(!0),[J,te]=k.useState([]),[ee,se]=k.useState(8);k.useEffect(()=>{if(!s)return;let I=!0;return Q(!0),(async()=>{const{data:W,error:me}=await y();if(I){if(me||!W)te(["google","github"]);else{const pe=Array.isArray(W.oAuthProviders)?W.oAuthProviders:[],ye=Array.isArray(W.customOAuthProviders)?W.customOAuthProviders:[];te([...pe,...ye]),typeof W.passwordMinLength=="number"&&W.passwordMinLength>0&&se(W.passwordMinLength)}Q(!1)}})(),()=>{I=!1}},[s,y]),k.useEffect(()=>{l&&a&&a()},[l,a]);const F=k.useMemo(()=>typeof window>"u"?"":!!window.webkit?.messageHandlers?.nativeOAuth?`${window.location.origin}/auth/callback`:`${window.location.origin}/`,[]),Y=k.useCallback(async I=>{H(null),B(!0);try{const{error:W}=await m(I,F);W&&H(W.message||String(W))}finally{B(!1)}},[m,F]),V=k.useCallback(async I=>{I.preventDefault(),H(null),B(!0);try{if(v==="signup"){const{data:me,error:pe}=await h({email:x.trim(),password:C,name:M.trim()||void 0});if(pe){H(pe.message||String(pe));return}if(me?.requireEmailVerification){Z(De("login.verify_email_pending")),_("signin");return}await u();return}const{error:W}=await f({email:x.trim(),password:C});if(W){H(W.message||String(W));return}await u()}finally{B(!1)}},[v,x,C,M,h,f,u]);return s?T.jsxs("div",{className:wt("w-full bg-white dark:bg-oai-gray-950 p-6 transition-colors duration-200",n),children:[T.jsxs("div",{className:"text-center mb-6",children:[!o&&T.jsxs("div",{className:"flex items-center justify-center gap-2 mb-2",children:[T.jsx("img",{src:"/app-icon.png",alt:"",width:28,height:28,className:"rounded-md"}),T.jsx("span",{className:"text-lg font-semibold text-oai-black dark:text-white font-oai tracking-tight",children:De("shared.app_name")})]}),T.jsx("h2",{className:wt("text-sm font-semibold text-oai-black dark:text-white tracking-tight mb-1",o&&"text-base font-bold md:text-lg"),children:e||De("login_modal.subtitle")}),t&&T.jsx("p",{className:"text-xs text-oai-gray-500 dark:text-oai-gray-400 mt-1.5 leading-relaxed max-w-[320px] mx-auto",children:t})]}),P&&T.jsx("div",{className:"mb-4 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900/50 px-3 py-2 text-xs text-oai-gray-700 dark:text-oai-gray-300",children:P}),z&&T.jsx("p",{className:"mb-4 text-sm text-red-500 dark:text-red-400 text-center",role:"alert",children:z}),T.jsx("div",{className:"space-y-2.5 mb-5",children:he?T.jsxs("div",{className:"space-y-2.5",children:[T.jsx("div",{className:"h-10 rounded-lg bg-oai-gray-100 dark:bg-oai-gray-900/50 animate-pulse"}),T.jsx("div",{className:"h-10 rounded-lg bg-oai-gray-100 dark:bg-oai-gray-900/50 animate-pulse"})]}):J.map(I=>T.jsxs("button",{type:"button",disabled:A,onClick:()=>Y(I),className:wt("w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-700 bg-oai-gray-50 dark:bg-oai-gray-900 text-sm font-medium text-oai-black dark:text-white","hover:bg-oai-gray-100 dark:hover:bg-oai-gray-800 hover:border-oai-gray-300 dark:hover:border-oai-gray-600 transition-colors disabled:opacity-50","flex items-center justify-center gap-2.5"),children:[b6[I]||null,De("login.oauth.continue",{provider:_6(I)})]},I))}),X?T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"relative mb-5",children:[T.jsx("div",{className:"absolute inset-0 flex items-center",children:T.jsx("span",{className:"w-full border-t border-oai-gray-200 dark:border-oai-gray-800"})}),T.jsx("div",{className:"relative flex justify-center text-xs uppercase tracking-wider",children:T.jsx("span",{className:"bg-white dark:bg-oai-gray-950 px-3 text-oai-gray-400 dark:text-oai-gray-600",children:De("login_modal.divider_email")})})]}),T.jsxs("div",{className:"flex rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 p-0.5 bg-oai-gray-50 dark:bg-oai-gray-900/50 mb-4",children:[T.jsx("button",{type:"button",className:wt("flex-1 py-1.5 text-xs font-medium rounded-md transition-colors",v==="signin"?"bg-white dark:bg-oai-gray-800 text-oai-black dark:text-white shadow-sm":"text-oai-gray-500 hover:text-oai-gray-700 dark:hover:text-oai-gray-300"),onClick:()=>{_("signin"),H(null)},children:De("login.tab.sign_in")}),T.jsx("button",{type:"button",className:wt("flex-1 py-1.5 text-xs font-medium rounded-md transition-colors",v==="signup"?"bg-white dark:bg-oai-gray-800 text-oai-black dark:text-white shadow-sm":"text-oai-gray-500 hover:text-oai-gray-700 dark:hover:text-oai-gray-300"),onClick:()=>{_("signup"),H(null)},children:De("login.tab.sign_up")})]}),T.jsxs("form",{onSubmit:V,className:"space-y-3",children:[v==="signup"&&T.jsxs("div",{children:[T.jsx("label",{htmlFor:"card-name",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:De("login.field.name")}),T.jsx("input",{id:"card-name",type:"text",autoComplete:"name",value:M,onChange:I=>E(I.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500",placeholder:De("login.field.name_placeholder")})]}),T.jsxs("div",{children:[T.jsx("label",{htmlFor:"card-email",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:De("login.field.email")}),T.jsx("input",{id:"card-email",type:"email",autoComplete:"email",required:!0,value:x,onChange:I=>S(I.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"})]}),T.jsxs("div",{children:[T.jsx("label",{htmlFor:"card-password",className:"block text-xs font-medium text-oai-gray-500 mb-1",children:De("login.field.password")}),T.jsx("input",{id:"card-password",type:"password",autoComplete:v==="signup"?"new-password":"current-password",required:!0,minLength:v==="signup"?ee:void 0,value:C,onChange:I=>D(I.target.value),className:"w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-800 bg-oai-gray-50 dark:bg-oai-gray-900 px-3 text-sm text-oai-black dark:text-white placeholder-oai-gray-400 dark:placeholder-oai-gray-600 focus:outline-none focus:ring-2 focus:ring-oai-brand-500"}),v==="signup"&&T.jsx("p",{className:"mt-1 text-xs text-oai-gray-400 dark:text-oai-gray-600",children:De("login.password_hint",{min:String(ee)})})]}),T.jsx("button",{type:"submit",disabled:A,className:"w-full h-10 rounded-lg bg-oai-gray-900 dark:bg-white text-white dark:text-oai-gray-950 text-sm font-semibold hover:bg-oai-gray-800 dark:hover:bg-oai-gray-100 transition-colors disabled:opacity-50",children:De(v==="signup"?"login.submit.sign_up":"login.submit.sign_in")})]})]}):T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"relative mb-5",children:[T.jsx("div",{className:"absolute inset-0 flex items-center",children:T.jsx("span",{className:"w-full border-t border-oai-gray-200 dark:border-oai-gray-800"})}),T.jsx("div",{className:"relative flex justify-center text-xs uppercase tracking-wider",children:T.jsx("span",{className:"bg-white dark:bg-oai-gray-950 px-3 text-oai-gray-400 dark:text-oai-gray-600",children:De("login.divider")})})]}),T.jsxs("button",{type:"button",onClick:()=>fe(!0),className:wt("w-full h-10 rounded-lg border border-oai-gray-200 dark:border-oai-gray-700 bg-oai-gray-50 dark:bg-oai-gray-900 text-sm font-medium text-oai-black dark:text-white","hover:bg-oai-gray-100 dark:hover:bg-oai-gray-800 hover:border-oai-gray-300 dark:hover:border-oai-gray-600 transition-colors","flex items-center justify-center gap-2.5"),children:[T.jsx(aI,{className:"h-[18px] w-[18px] text-oai-gray-500 dark:text-oai-gray-400",strokeWidth:1.75}),De("login_modal.continue_email")]})]})]}):null}function x6(){const{isOpen:e,closeLoginModal:t}=ix(),{enabled:n}=Vo();return k.useEffect(()=>{if(!e)return;const a=o=>{o.key==="Escape"&&t()};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,t]),n?T.jsx(M1,{children:e&&T.jsxs(el.div,{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[T.jsx(el.div,{className:"absolute inset-0 bg-black/40 dark:bg-black/60",onClick:t,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),T.jsxs(el.div,{className:"relative w-full max-w-[420px] rounded-2xl border border-oai-gray-200 dark:border-oai-gray-800 bg-white dark:bg-oai-gray-950 shadow-2xl overflow-hidden",initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.2},onClick:a=>a.stopPropagation(),children:[T.jsx("button",{type:"button",onClick:t,className:"absolute right-4 top-4 z-10 text-oai-gray-400 dark:text-oai-gray-500 hover:text-oai-black dark:hover:text-white transition-colors",children:T.jsx(Lm,{className:"h-5 w-5"})}),T.jsx(w6,{onSuccess:t,className:"p-6 bg-transparent"})]})]})}):null}const P6={VITE_INSFORGE_BASE_URL:"https://srctyff5.us-east.insforge.app"},dU="https://tokentracker.statuspage.io/";function S6(){if(typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"))return"";const t=typeof import.meta<"u"?P6:void 0;return(t?.VITE_TOKENTRACKER_BACKEND_BASE_URL||t?.VITE_INSFORGE_BASE_URL||rr()).trim()}function hU(){return rr()}function C6(e=""){if(typeof e!="string"||e.length===0)return!1;const t=new URLSearchParams(e),n=String(t.get("screenshot")||"").toLowerCase();return n==="1"||n==="true"}const T6=300*1e3,E6=720*60*1e3;function ug(e){return typeof e=="string"&&/^https?:\/\//i.test(e.trim())}function A6(e,t=Date.now()){if(!e?.token||!e?.deviceId||!e?.issuedAt)return!0;const n=Date.parse(e.issuedAt);return Number.isFinite(n)?n+E6<=t:!0}async function lP(e,t){const n=rr();if(!ug(n)||!e)return;const a=n.replace(/\/$/,""),o=wl(),s={Accept:"application/json","Content-Type":"application/json",Authorization:`Bearer ${e}`};o&&(s.apikey=o);try{await fetch(`${a}/functions/tokentracker-leaderboard-refresh`,{method:"POST",headers:s,body:JSON.stringify({period:"week",source:t})})}catch{}}async function R6(e){const t=rr();if(!ug(t)||!e)return null;const n=t.replace(/\/$/,""),a=wl(),o={Accept:"application/json","Content-Type":"application/json",Authorization:`Bearer ${e}`};a&&(o.apikey=a);const s=typeof navigator<"u"&&typeof navigator.platform=="string"?navigator.platform:"web",l=await fetch(`${n}/functions/tokentracker-device-token-issue`,{method:"POST",headers:o,body:JSON.stringify({device_name:"Token Tracker (dashboard)",platform:s})});if(!l.ok)return null;const u=await l.json().catch(()=>null),f=typeof u?.token=="string"?u.token:null,h=typeof u?.device_id=="string"?u.device_id:null;return!f||!h?null:{token:f,deviceId:h,issuedAt:typeof u?.created_at=="string"?u.created_at:new Date().toISOString()}}async function I_(e){const{deviceToken:t,insforgeBaseUrl:n}=e,a={deviceToken:t},o=n||rr();ug(o)&&(a.insforgeBaseUrl=o.trim());const s=await cd(),l=await fetch("/functions/tokentracker-local-sync",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",...s},body:JSON.stringify(a)}),u=await l.json().catch(()=>({}));if(!l.ok){const f=typeof u.error=="string"?u.error:`HTTP ${l.status}`;throw new Error(f)}return u}async function M_(e){const t=await e();if(!t)return null;const n=kw();if(n&&!A6(n))return n;const a=await R6(t);return a?(jR(a),a):null}async function cP(e){let t=await e();if(!t)return null;let n=await M_(async()=>t);if(!n)return t;try{return await I_({deviceToken:n.token,insforgeBaseUrl:rr()}),t}catch(a){if(!kw()||(_w(),t=await e(),!t)||(n=await M_(async()=>t),!n))throw a;return await I_({deviceToken:n.token,insforgeBaseUrl:rr()}),t}}async function L6(e){const t=UR();if(Date.now()-t<T6)return;const n=await cP(e);n&&(ww(Date.now()),await lP(n,"cloud-sync-auto"))}async function fU(e){const t=await cP(e);t&&(ww(Date.now()),await lP(t,"cloud-sync-now"))}function D6(e){const t=e.replace(/\/+$/,"")||"/";return t==="/share"||t==="/share.html"||t.startsWith("/share/")}function I6(e){const t=e.replace(/\/+$/,"")||"/";return t==="/login"||t==="/landing"||D6(t)?!1:t==="/"||t==="/dashboard"||t.startsWith("/leaderboard")}function M6(){const e=Jn(),t=Vo(),n=k.useRef(!1);k.useEffect(()=>{if(!NR()||!I6(e.pathname||"/")||!t.enabled||!t.signedIn||t.loading||!OR())return;let a=!1;const o=window.setTimeout(()=>{(async()=>{if(!(a||n.current)){n.current=!0;try{await L6(()=>t.getAccessToken())}catch(s){console.warn("[tokentracker] cloud usage sync:",s)}finally{n.current=!1}}})()},2500);return()=>{a=!0,window.clearTimeout(o)}},[e.pathname,t.enabled,t.signedIn,t.loading,t.getAccessToken])}function N6(){const e=k.useContext(ax);if(e===null)throw new Error("useTheme must be used within a ThemeProvider");return e}function O6({prefersReducedMotion:e,screenshotCapture:t}){return!(t||e)}function j6(e){if(!e||typeof e!="object")return null;const t=e.user_metadata&&typeof e.user_metadata=="object"?e.user_metadata:{},n=e.profile&&typeof e.profile=="object"?e.profile:{},a=t.avatar_url||t.picture||n.avatar_url||e.avatar_url;return typeof a=="string"&&a.trim()?a.trim():null}function U6(e){return e?ud()?`/api/avatar-proxy?url=${encodeURIComponent(e)}`:e:null}function Qc(e){const t=String(e||"").trim();if(!t)return"?";const n=t.split(/\s+/).filter(Boolean);return n.length>=2?(n[0][0]+n[n.length-1][0]).toUpperCase():t.slice(0,2).toUpperCase()}function N_({className:e,variant:t="header",collapsed:n=!1,onAfterAction:a}){Cl();const o=t==="sidebar",{enabled:s,loading:l,signedIn:u,user:f,displayName:h}=Vo(),{openLoginModal:m}=ix(),y=kl(),v=k.useMemo(()=>j6(f),[f]),_=k.useMemo(()=>U6(v),[v]),[x,S]=al.useState(!1);if(al.useEffect(()=>{S(!1)},[_]),!s)return null;if(l)return T.jsx("div",{className:wt("h-9 w-9 shrink-0 rounded-full bg-oai-gray-200 dark:bg-oai-gray-800 animate-pulse",e),"aria-hidden":!0});if(!u)return o?T.jsxs("button",{type:"button",onClick:()=>{m(),a?.()},className:wt("flex items-center gap-2 rounded-md px-2 py-1.5 text-[13px] font-medium text-oai-gray-700 dark:text-oai-gray-300 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 hover:text-oai-black dark:hover:text-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500 min-w-0",n?"h-8 w-8 justify-center px-0":"w-full",e),"aria-label":De("header.auth.sign_in_aria"),title:n?De("header.auth.sign_in_aria"):void 0,children:[T.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:T.jsx("img",{src:"/app-icon.png",alt:"",width:18,height:18,className:"h-[18px] w-[18px] rounded"})}),!n&&T.jsx("span",{className:"truncate flex-1 text-left",children:De("header.auth.sign_in_aria")})]}):T.jsx("button",{type:"button",onClick:m,className:wt("shrink-0 inline-flex h-9 items-center justify-center gap-1.5 rounded-md px-4 text-sm font-medium transition-colors duration-200 ease-out shadow-sm ring-1 ring-oai-gray-200 dark:ring-white/10 bg-oai-gray-900 text-white hover:bg-oai-gray-800 active:bg-oai-gray-950 dark:bg-white dark:text-oai-gray-900 dark:hover:bg-oai-gray-100 dark:active:bg-oai-gray-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-oai-gray-950",e),"aria-label":De("header.auth.sign_in_aria"),children:De("header.auth.sign_in_aria")});const C=()=>{y("/settings"),a?.()};return T.jsx("div",{className:wt(o?"relative flex w-full shrink-0 items-center":"relative flex shrink-0 items-center",e),children:T.jsxs("button",{type:"button",onClick:C,className:wt(o?wt("flex w-full items-center gap-2 rounded-md px-2 py-1.5 hover:bg-oai-gray-200/60 dark:hover:bg-oai-gray-800 transition-colors min-w-0",n&&"justify-center px-0 py-0 h-9 w-9"):"flex items-center gap-2 rounded-md pl-1 pr-2 py-1 border border-transparent hover:bg-oai-gray-100 dark:hover:bg-oai-gray-900/80 hover:border-oai-gray-200 dark:hover:border-oai-gray-800 transition-colors"),"aria-label":De("header.auth.open_settings"),title:o&&n?h:void 0,children:[o?T.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:_&&!x?T.jsx("img",{src:_,alt:"",width:20,height:20,className:"h-5 w-5 rounded-full object-cover ring-1 ring-oai-gray-300 dark:ring-oai-gray-700",referrerPolicy:"no-referrer",onError:()=>S(!0)}):Qc(h)==="?"?T.jsx("span",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-oai-brand-600/30 text-white ring-1 ring-oai-brand-500/50",children:T.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",className:"w-3 h-3 opacity-80",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"})})}):T.jsx("span",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-oai-brand-600 text-[9px] font-semibold text-white ring-1 ring-oai-brand-500/50",children:Qc(h)})}):_&&!x?T.jsx("img",{src:_,alt:"",width:32,height:32,className:"h-8 w-8 rounded-full object-cover ring-1 ring-oai-gray-300 dark:ring-oai-gray-700 shrink-0",referrerPolicy:"no-referrer",onError:()=>S(!0)}):Qc(h)==="?"?T.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-oai-brand-600/30 text-white ring-1 ring-oai-brand-500/50",children:T.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",className:"w-4 h-4 opacity-80",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"})})}):T.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-oai-brand-600 text-xs font-semibold text-white ring-1 ring-oai-brand-500/50",children:Qc(h)}),o?!n&&T.jsx("span",{className:"truncate text-[13px] font-medium text-oai-gray-900 dark:text-oai-gray-200 flex-1 text-left min-w-0",children:h}):T.jsx("span",{className:"hidden sm:inline truncate text-sm font-medium text-oai-gray-900 dark:text-oai-gray-200 max-w-[120px]",children:h})]})})}const jp="tt.sidebarCollapsed";function uP(){return[{id:"general",label:De("nav.group.general"),items:[{id:"usage",to:"/dashboard",icon:KD,label:De("nav.usage")},{id:"limits",to:"/limits",icon:XD,label:De("nav.limits")},{id:"leaderboard",to:"/leaderboard",icon:_I,label:De("nav.leaderboard")}]},{id:"tools",label:De("nav.group.tools"),items:[{id:"widgets",to:"/widgets",icon:tI,label:De("nav.widgets")},{id:"skills",to:"/skills",icon:uI,label:De("nav.skills")},{id:"ip-check",to:"/ip-check",icon:JD,label:De("nav.ip_check")}]},{id:"account",label:De("nav.group.account"),items:[{id:"settings",to:"/settings",icon:gI,label:De("nav.settings")}]}]}function B6(){if(typeof window>"u")return!1;try{return window.localStorage.getItem(jp)==="1"}catch{return!1}}function F6(){const[e,t]=k.useState(B6),n=k.useCallback(()=>{t(a=>{const o=!a;try{typeof window<"u"&&window.localStorage.setItem(jp,o?"1":"0")}catch{}return o})},[]);return k.useEffect(()=>{if(typeof window>"u")return;const a=o=>{o.key===jp&&t(o.newValue==="1")};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)},[]),{collapsed:e,toggle:n}}function z6(e,t){const n=e.replace(/\/+$/,"")||"/";return t==="/dashboard"?n==="/dashboard"||n==="/":t==="/leaderboard"?n==="/leaderboard"||n.startsWith("/leaderboard/"):n===t}function V6({label:e,collapsed:t,first:n}){return t?n?null:T.jsx("div",{className:"mx-2 my-2 h-px bg-oai-gray-200/70 dark:bg-oai-gray-800/70","aria-hidden":!0}):T.jsx("div",{className:wt("px-3 pb-1 text-[10px] uppercase tracking-wider text-oai-gray-500 dark:text-oai-gray-500",n?"pt-2":"pt-4"),children:e})}function $6({item:e,collapsed:t,active:n,onClick:a}){const o=e.icon;return T.jsxs(ad,{to:e.to,onClick:a,title:t?e.label:void 0,"aria-current":n?"page":void 0,className:wt("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",n?"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:[T.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:T.jsx(o,{className:"h-[15px] w-[15px]","aria-hidden":!0})}),!t&&T.jsx("span",{className:"truncate",children:e.label})]})}function H6({as:e="button",title:t,onClick:n,href:a,children:o,className:s,...l}){const u=wt("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",s);return e==="a"?T.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",title:t,"aria-label":t,className:u,...l,children:o}):T.jsx("button",{type:"button",title:t,"aria-label":t,onClick:n,className:u,...l,children:o})}function W6({repo:e="mm7894215/TokenTracker",glassChrome:t=!1}){const[n,a]=k.useState(null);return k.useEffect(()=>{if(typeof window>"u")return;const o=typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;O6({prefersReducedMotion:o,screenshotCapture:!1})&&fetch(`https://api.github.com/repos/${e}`).then(s=>s.json()).then(s=>{s&&typeof s.stargazers_count=="number"&&a(s.stargazers_count)}).catch(()=>{})},[e]),T.jsxs("a",{href:`https://github.com/${e}`,target:"_blank",rel:"noopener noreferrer","aria-label":n!==null?`Star on GitHub (${n})`:"Star on GitHub",className:wt("inline-flex h-7 items-center gap-1.5 rounded-full px-2.5 text-xs font-medium transition-colors no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-oai-brand-500",t?"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:[T.jsx("svg",{height:"12",viewBox:"0 0 16 16",width:"12",className:"shrink-0 fill-current",children:T.jsx("path",{d:"M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"})}),T.jsx("span",{children:"Star"}),n!==null&&T.jsx("span",{className:"text-[10px] text-oai-gray-500 dark:text-oai-gray-500 tabular-nums",children:n})]})}const G6=[{value:"light",label:"Light",Icon:nx},{value:"dark",label:"Dark",Icon:tx},{value:"system",label:"System",Icon:sI}];function K6({theme:e,resolvedTheme:t,onSetTheme:n,glassChrome:a=!1}){const[o,s]=k.useState(!1),l=k.useRef(null),u=t==="dark"?tx:nx;return k.useEffect(()=>{if(!o)return;const f=m=>{l.current&&!l.current.contains(m.target)&&s(!1)},h=m=>{m.key==="Escape"&&s(!1)};return document.addEventListener("mousedown",f),document.addEventListener("keydown",h),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keydown",h)}},[o]),T.jsxs("div",{ref:l,className:"relative",children:[T.jsx("button",{type:"button","aria-label":"Theme","aria-expanded":o,"aria-haspopup":"menu",title:"Theme",onClick:()=>s(f=>!f),className:wt("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",a?"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:T.jsx(u,{className:"h-3.5 w-3.5","aria-hidden":!0})}),o&&T.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:G6.map(({value:f,label:h,Icon:m})=>{const y=e===f;return T.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{n(f),s(!1)},className:wt("flex w-full items-center gap-2.5 px-3 py-1.5 text-[13px] transition-colors",y?"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:[T.jsx(m,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}),T.jsx("span",{children:h})]},f)})})]})}function dP({collapsed:e,onToggleCollapsed:t,onItemClick:n,showCloseButton:a=!1,onClose:o,glassChrome:s=!1}){const u=Jn()?.pathname||"/",{theme:f,resolvedTheme:h,setTheme:m}=N6(),{resolvedLocale:y}=Cl(),v=k.useMemo(()=>uP(),[y]);return T.jsxs(T.Fragment,{children:[T.jsx("div",{className:wt("px-2 pt-2 pb-2",e&&"flex justify-center"),children:a?T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("div",{className:"flex-1 min-w-0",children:T.jsx(N_,{variant:"sidebar",collapsed:e,onAfterAction:n})}),T.jsx("button",{type:"button",onClick:o,"aria-label":De("nav.close_menu"),title:De("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:T.jsx(Lm,{className:"h-4 w-4",strokeWidth:1.75,"aria-hidden":!0})})]}):T.jsx(N_,{variant:"sidebar",collapsed:e,onAfterAction:n})}),T.jsx("nav",{"aria-label":De("nav.nav_label"),className:"flex-1 px-2 pb-2 flex flex-col overflow-y-auto",children:v.map((_,x)=>T.jsxs("div",{className:"flex flex-col",children:[T.jsx(V6,{label:_.label,collapsed:e,first:x===0}),T.jsx("div",{className:"flex flex-col gap-0.5",children:_.items.filter(S=>!(S.to==="/widgets"&&Em())).map(S=>T.jsx($6,{item:S,collapsed:e,active:z6(u,S.to),onClick:n},S.id))})]},_.id))}),T.jsxs("div",{className:wt("flex items-center px-2 py-3",e?"flex-col justify-center gap-2":"justify-between gap-2"),children:[T.jsx(K6,{theme:f,resolvedTheme:h,onSetTheme:m,glassChrome:s}),T.jsx("div",{className:"flex items-center gap-1.5",children:!e&&T.jsx(W6,{glassChrome:s})})]})]})}function q6({collapsed:e,onToggleCollapsed:t}){const n=k.useMemo(()=>typeof window>"u"?!1:pa()||ud(),[]);return T.jsx("aside",{"aria-label":De("nav.aside_label"),className:wt("hidden lg:flex flex-col shrink-0 h-full min-h-0 transition-[width] duration-200",e?"w-[72px]":"w-[220px]"),children:T.jsx(dP,{collapsed:e,onToggleCollapsed:t,glassChrome:n})})}function Y6({open:e,onClose:t}){return k.useEffect(()=>{if(!e)return;const n=a=>{a.key==="Escape"&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,t]),k.useEffect(()=>{if(!e)return;const n=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=n}},[e]),e?T.jsxs("div",{className:"lg:hidden fixed inset-0 z-[80] flex",children:[T.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:t,"aria-hidden":!0}),T.jsx("aside",{"aria-label":De("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:T.jsx(dP,{collapsed:!1,showCloseButton:!0,onClose:t,onItemClick:t})})]}):null}function Z6({onOpenDrawer:e}){return T.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:[T.jsx(H6,{title:De("nav.menu"),onClick:e,children:T.jsx(iI,{className:"h-5 w-5","aria-hidden":!0})}),T.jsxs(ad,{to:"/landing",className:"flex items-center gap-2 no-underline hover:opacity-80 transition-opacity","aria-label":"Token Tracker",children:[T.jsx("img",{src:"/app-icon.png",alt:"",width:24,height:24,className:"rounded-md"}),T.jsx("span",{className:"text-sm font-semibold text-oai-black dark:text-oai-white",children:"Token Tracker"})]}),T.jsx("div",{className:"w-10 shrink-0","aria-hidden":!0})]})}function X6({children:e}){const{collapsed:t,toggle:n}=F6(),[a,o]=k.useState(!1),s=k.useCallback(()=>o(!0),[]),l=k.useCallback(()=>o(!1),[]),u=k.useMemo(()=>typeof window>"u"?!1:pa()||ud(),[]);return T.jsxs("div",{className:wt("fixed inset-0 flex flex-col text-oai-black dark:text-oai-white font-sans overflow-hidden",Em()&&"tt-native-glass-shell",u?"bg-transparent":"bg-oai-gray-100 dark:bg-oai-gray-950"),children:[u&&T.jsx("div",{className:"h-7 shrink-0",style:{WebkitAppRegion:"drag"},"aria-hidden":!0}),T.jsxs("div",{className:"flex-1 min-h-0 flex",children:[T.jsx(q6,{collapsed:t,onToggleCollapsed:n}),T.jsx(Y6,{open:a,onClose:l}),T.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:T.jsxs("div",{className:wt("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",u?"tt-native-main-card":"rounded-2xl",!u&&"shadow-sm"),children:[T.jsx(Z6,{onOpenDrawer:s}),T.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:e})]})})]})]})}function Q6({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:T.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 J6({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",className:t,children:T.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 ej({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:T.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 tj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:T.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 nj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:T.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 aj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 -1 22 28",fill:"currentColor",fillRule:"evenodd",className:t,children:T.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 rj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:T.jsx("path",{d:"M16 6H8v12h8V6zm4 16H4V2h16v20z"})})}function ij({size:e=16,className:t=""}){return T.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:[T.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"}),T.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 oj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:t,children:T.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 sj({size:e=16,className:t=""}){return T.jsxs("svg",{width:e,height:e,viewBox:"0 0 64 60",fill:"none",className:t,"aria-hidden":"true",children:[T.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"}),T.jsx("g",{transform:"rotate(-30 22.6953 37.6011)",children:T.jsx("rect",{x:"22.6953",y:"37.6011",width:"4.81084",height:"9.99175",rx:"2.40542",fill:"currentColor"})}),T.jsx("g",{transform:"rotate(-30 35.6748 30.1074)",children:T.jsx("rect",{x:"35.6748",y:"30.1074",width:"4.81084",height:"9.99175",rx:"2.40542",fill:"currentColor"})})]})}function lj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",className:t,children:T.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 cj({size:e=16,className:t=""}){return T.jsx("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"currentColor",className:t,children:T.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 uj({size:e=16,className:t=""}){return T.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:T.jsx("g",{transform:"translate(3.4502, 3)",fill:"#9570BE",children:T.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 dj({size:e=16,className:t=""}){return T.jsxs("svg",{width:e,height:e,viewBox:"0 0 120 90",fill:"currentColor",className:t,children:[T.jsx("rect",{x:"10",y:"8",width:"100",height:"12",rx:"2"}),T.jsx("rect",{x:"25",y:"20",width:"12",height:"62",rx:"2"}),T.jsx("rect",{x:"75",y:"20",width:"12",height:"45",rx:"2"}),T.jsx("rect",{x:"71",y:"55",width:"20",height:"16",rx:"3"}),T.jsx("rect",{x:"76",y:"71",width:"3",height:"8",rx:"1"}),T.jsx("rect",{x:"82",y:"71",width:"3",height:"8",rx:"1"})]})}function hj({size:e=16,className:t=""}){return T.jsxs("svg",{width:e,height:e,viewBox:"0 0 120 90",fill:"currentColor",className:t,children:[T.jsx("rect",{x:"10",y:"8",width:"100",height:"12",rx:"2"}),T.jsx("rect",{x:"25",y:"20",width:"12",height:"62",rx:"2"}),T.jsx("rect",{x:"83",y:"20",width:"12",height:"62",rx:"2"})]})}function fj({size:e=16,className:t=""}){return T.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:[T.jsx("path",{d:"M9 3v2"}),T.jsx("path",{d:"M15 3v2"}),T.jsx("rect",{x:"4",y:"6",width:"16",height:"13",rx:"3"}),T.jsx("circle",{cx:"9",cy:"13",r:"1.4",fill:"currentColor",stroke:"none"}),T.jsx("circle",{cx:"15",cy:"13",r:"1.4",fill:"currentColor",stroke:"none"}),T.jsx("path",{d:"M9 16h6"})]})}const pj={CLAUDE:Q6,CODEBUDDY:sj,CODEX:J6,COPILOT:oj,CRAFT:uj,CURSOR:ej,DROID:fj,GEMINI:tj,GITHUB:cj,GROK:nj,HERMES:lj,KIMI:ij,KIRO:aj,OPENCODE:rj,OMP:dj,PI:hj},mj={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 gj({size:e=16,className:t=""}){return T.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:T.jsx("circle",{cx:"12",cy:"12",r:"7.5",strokeDasharray:"3 3"})})}function yj({provider:e,size:t=16,color:n,className:a=""}){const o=e?.toUpperCase?.()||"",s=mj[o];if(s)return T.jsx("img",{src:s,alt:"",width:t,height:t,className:a,style:{width:t,height:t,objectFit:"contain"},"aria-hidden":!0});const l=pj[o];return l?T.jsx(l,{size:t,className:a}):T.jsx(gj,{size:t,className:`text-oai-gray-400 dark:text-oai-gray-500 shrink-0 ${a}`})}const hP="tokentracker-skills";async function Bi(e){const t=new URL(`/functions/${hP}`,window.location.origin);if(e)for(const[o,s]of Object.entries(e))s!=null&&s!==""&&t.searchParams.set(o,String(s));const n=await fetch(t.toString(),{headers:{Accept:"application/json"},cache:"no-store"}),a=await n.json().catch(()=>null);if(!n.ok)throw new Error(a?.error||`Request failed with HTTP ${n.status}`);return a}async function Qr(e){const t=await cd(),n=await fetch(`/functions/${hP}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",...t},cache:"no-store",body:JSON.stringify(e)}),a=await n.json().catch(()=>null);if(!n.ok||a?.ok===!1)throw new Error(a?.error||`Request failed with HTTP ${n.status}`);return a}function vj(){return Bi({mode:"installed"})}function pU(e={}){return Bi({mode:"discover",...e.force?{force:1}:{}})}function mU(e,t=0,n=20){return Bi({mode:"search",q:e,offset:t,limit:n})}function gU(){return Bi({mode:"repos"})}function yU(e,t){return Qr({action:"install",skill:e,targets:t})}function vU(e){return Qr({action:"uninstall",id:e})}function bU(e){return Qr({action:"restore",id:e})}function kU(e,t){return Qr({action:"set_targets",id:e,targets:t})}function _U(e,t){return Qr({action:"import_local",directory:e,targets:t})}function wU(e,t){return Qr({action:"delete_local",directory:e,targets:t||[]})}function xU(e){return Qr({action:"add_repo",repo:e})}function PU(e,t){return Qr({action:"remove_repo",owner:e,name:t})}function SU(e={}){return Bi({mode:"popular",...e.force?{force:1}:{}})}function CU(e={}){return Bi({mode:"updates",...e.force?{force:1}:{}})}function TU(e={}){return Bi({mode:"skill_usage",...e.force?{force:1}:{}})}const bj=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1");function kj(){const e=kl(),t=CO(),[n,a]=k.useState(!1),[o,s]=k.useState(""),[l,u]=k.useState(0),[f,h]=k.useState([]),m=k.useRef(null),y=k.useRef(null);k.useEffect(()=>{const E=A=>{(A.metaKey||A.ctrlKey)&&(A.key==="k"||A.key==="K")&&(A.preventDefault(),a(z=>!z))};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[]),k.useEffect(()=>{if(!n)return;s(""),u(0);const E=requestAnimationFrame(()=>m.current?.focus());return bj&&!f.length&&vj().then(A=>h(A?.skills||[])).catch(()=>h([])),()=>cancelAnimationFrame(E)},[n,f.length]);const v=k.useMemo(()=>{const E=uP().flatMap(B=>B.items.map(z=>({kind:"page",id:`page:${z.id}`,label:z.label,sub:De("cmdk.group.pages"),Icon:z.icon,run:()=>e(z.to)}))),A=(f||[]).map(B=>({kind:"skill",id:`skill:${B.id||B.directory}`,label:B.name||B.directory,sub:B.repoOwner&&B.repoName?`${B.repoOwner}/${B.repoName}`:De("cmdk.group.skills"),provider:(B.targets||[])[0]||"claude",run:()=>e(`/skills?skill=${encodeURIComponent(B.directory||B.id)}`)}));return[...E,...A]},[e,f]),_=k.useMemo(()=>{const E=o.trim().toLowerCase();return E?v.filter(A=>A.label.toLowerCase().includes(E)||String(A.sub||"").toLowerCase().includes(E)):v},[v,o]);k.useEffect(()=>{l>=_.length&&u(_.length?_.length-1:0)},[l,_.length]),k.useEffect(()=>{if(!n)return;y.current?.querySelector(`[data-cmdk-index="${l}"]`)?.scrollIntoView({block:"nearest"})},[l,n]);const x=k.useCallback(()=>a(!1),[]),S=k.useCallback(E=>{E&&(x(),E.run())},[x]),C=E=>{E.key==="ArrowDown"?(E.preventDefault(),u(A=>Math.min(A+1,Math.max(0,_.length-1)))):E.key==="ArrowUp"?(E.preventDefault(),u(A=>Math.max(A-1,0))):E.key==="Enter"?(E.preventDefault(),S(_[l])):E.key==="Escape"&&(E.preventDefault(),x())},D={duration:t?0:.12},M=t?{duration:0}:{type:"spring",stiffness:460,damping:34,mass:.6};return T.jsx(M1,{children:n?T.jsxs(el.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:D,children:[T.jsx("button",{type:"button","aria-label":De("cmdk.close"),onClick:x,className:"absolute inset-0 cursor-default bg-oai-black/40"}),T.jsxs(el.div,{role:"dialog","aria-modal":"true","aria-label":De("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:M,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:[T.jsxs("div",{className:"flex items-center gap-2.5 border-b border-oai-gray-200 px-4 dark:border-oai-gray-800",children:[T.jsx(pI,{className:"h-4 w-4 shrink-0 text-oai-gray-400","aria-hidden":!0}),T.jsx("input",{ref:m,type:"text",value:o,onChange:E=>{s(E.target.value),u(0)},onKeyDown:C,"aria-label":De("cmdk.placeholder"),"aria-controls":"cmdk-listbox","aria-activedescendant":_[l]?`cmdk-opt-${l}`:void 0,role:"combobox","aria-expanded":"true",placeholder:De("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"})]}),T.jsx("div",{ref:y,id:"cmdk-listbox",role:"listbox",className:"max-h-[min(56vh,22rem)] overflow-y-auto p-1.5",children:_.length===0?T.jsx("div",{className:"px-3 py-8 text-center text-sm text-oai-gray-500 dark:text-oai-gray-400",children:De("cmdk.empty")}):_.map((E,A)=>{const B=A===l;return T.jsxs("button",{type:"button",role:"option",id:`cmdk-opt-${A}`,"data-cmdk-index":A,"aria-selected":B,onMouseMove:()=>u(A),onClick:()=>S(E),className:wt("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:[T.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center text-oai-gray-500 dark:text-oai-gray-400",children:E.kind==="skill"?T.jsx(yj,{provider:E.provider,size:16}):T.jsx(E.Icon,{className:"h-4 w-4","aria-hidden":!0})}),T.jsx("span",{className:"min-w-0 flex-1 truncate font-medium",children:E.label}),T.jsx("span",{className:"shrink-0 truncate text-xs text-oai-gray-400 dark:text-oai-gray-500",children:E.sub}),B?T.jsx(YD,{className:"h-3.5 w-3.5 shrink-0 text-oai-gray-400","aria-hidden":!0}):null]},E.id)})})]})]}):null})}function yd(){return typeof window<"u"}function dg(e){return hg(e)?(e.nodeName||"").toLowerCase():"#document"}function qr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _j(e){var t;return(t=(hg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hg(e){return yd()?e instanceof Node||e instanceof qr(e).Node:!1}function fP(e){return yd()?e instanceof Element||e instanceof qr(e).Element:!1}function vd(e){return yd()?e instanceof HTMLElement||e instanceof qr(e).HTMLElement:!1}function Up(e){return!yd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qr(e).ShadowRoot}function pP(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=gP(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&o!=="inline"&&o!=="contents"}function EU(e){return/^(table|td|th)$/.test(dg(e))}function wj(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const xj=/transform|translate|scale|rotate|perspective|filter/,Pj=/paint|layout|strict|content/,vi=e=>!!e&&e!=="none";let Bf;function Sj(e){const t=fP(e)?gP(e):e;return vi(t.transform)||vi(t.translate)||vi(t.scale)||vi(t.rotate)||vi(t.perspective)||!Cj()&&(vi(t.backdropFilter)||vi(t.filter))||xj.test(t.willChange||"")||Pj.test(t.contain||"")}function AU(e){let t=Bp(e);for(;vd(t)&&!mP(t);){if(Sj(t))return t;if(wj(t))return null;t=Bp(t)}return null}function Cj(){return Bf==null&&(Bf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Bf}function mP(e){return/^(html|body|#document)$/.test(dg(e))}function gP(e){return qr(e).getComputedStyle(e)}function RU(e){return fP(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bp(e){if(dg(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Up(e)&&e.host||_j(e);return Up(t)?t.host:t}function yP(e){const t=Bp(e);return mP(t)?e.ownerDocument?e.ownerDocument.body:e.body:vd(t)&&pP(t)?t:yP(t)}function O_(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yP(e),s=o===((a=e.ownerDocument)==null?void 0:a.body),l=qr(o);if(s){const u=Tj(l);return t.concat(l,l.visualViewport||[],pP(o)?o:[],u&&n?O_(u):[])}else return t.concat(o,O_(o,[],n))}function Tj(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Eo(e){return e?.ownerDocument||document}const j_={};function Ll(e,t){const n=k.useRef(j_);return n.current===j_&&(n.current=e(t)),n}const Ff=Yp[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],Ej=Ff&&Ff!==k.useLayoutEffect?Ff:e=>e();function An(e){const t=Ll(Aj).current;return t.next=e,Ej(t.effect),t.trampoline}function Aj(){const e={next:void 0,callback:Rj,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Rj(){}let U_=0;function vP(e){return U_+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${U_}`}const Lj=[];function bP(e){k.useEffect(e,Lj)}const js=0;class pl{static create(){return new pl}currentId=js;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=js,n()},t)}isStarted(){return this.currentId!==js}clear=()=>{this.currentId!==js&&(clearTimeout(this.currentId),this.currentId=js)};disposeEffect=()=>this.clear}function LU(){const e=Ll(pl.create).current;return bP(e.disposeEffect),e}const Go=typeof navigator<"u",zf=Mj(),kP=Oj(),_P=Nj(),DU=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),IU=zf.platform==="MacIntel"&&zf.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(zf.platform),Dj=Go&&/apple/i.test(navigator.vendor),MU=Go&&/android/i.test(kP)||/android/i.test(_P);Go&&kP.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const Ij=_P.includes("jsdom/");function Mj(){if(!Go)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 Nj(){if(!Go)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function Oj(){if(!Go)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const B_="data-base-ui-focusable",NU="active",OU="selected",jj="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",jU="ArrowLeft",UU="ArrowRight",BU="ArrowUp",FU="ArrowDown";function ml(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Ti(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Up(n)){let a=t;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function Fp(e){return"composedPath"in e?e.composedPath()[0]:e.target}function zU(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function VU(e){return e.matches("html,body")}function bd(e){return e?.ownerDocument||document}function Uj(e){return vd(e)&&e.matches(jj)}function $U(e){return e?e.getAttribute("role")==="combobox"&&Uj(e):!1}function zp(e){if(!e||Ij)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function HU(e){return e?e.hasAttribute(B_)?e:e.querySelector(`[${B_}]`)||e:null}function Dl(e,...t){const n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(a=>n.searchParams.append("args[]",a)),`Base UI error #${e}; visit ${n} for the full message.`}var Bj=["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] *)"],Zu=Bj.join(","),wP=typeof Element>"u",Bo=wP?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Xu=!wP&&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},Qu=function(t,n){var a;n===void 0&&(n=!0);var o=t==null||(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"inert"),s=o===""||o==="true",l=s||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Qu(t.parentNode));return l},Fj=function(t){var n,a=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return a===""||a==="true"},xP=function(t,n,a){if(Qu(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Zu));return n&&Bo.call(t,Zu)&&o.unshift(t),o=o.filter(a),o},Ju=function(t,n,a){for(var o=[],s=Array.from(t);s.length;){var l=s.shift();if(!Qu(l,!1))if(l.tagName==="SLOT"){var u=l.assignedElements(),f=u.length?u:l.children,h=Ju(f,!0,a);a.flatten?o.push.apply(o,h):o.push({scopeParent:l,candidates:h})}else{var m=Bo.call(l,Zu);m&&a.filter(l)&&(n||!t.includes(l))&&o.push(l);var y=l.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(l),v=!Qu(y,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(l));if(y&&v){var _=Ju(y===!0?l.children:y.children,!0,a);a.flatten?o.push.apply(o,_):o.push({scopeParent:l,candidates:_})}else s.unshift.apply(s,l.children)}}return o},PP=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},SP=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Fj(t))&&!PP(t)?0:t.tabIndex},zj=function(t,n){var a=SP(t);return a<0&&n&&!PP(t)?0:a},Vj=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},CP=function(t){return t.tagName==="INPUT"},$j=function(t){return CP(t)&&t.type==="hidden"},Hj=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(a){return a.tagName==="SUMMARY"});return n},Wj=function(t,n){for(var a=0;a<t.length;a++)if(t[a].checked&&t[a].form===n)return t[a]},Gj=function(t){if(!t.name)return!0;var n=t.form||Xu(t),a=function(u){return n.querySelectorAll('input[type="radio"][name="'+u+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=a(window.CSS.escape(t.name));else try{o=a(t.name)}catch(l){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",l.message),!1}var s=Wj(o,t.form);return!s||s===t},Kj=function(t){return CP(t)&&t.type==="radio"},qj=function(t){return Kj(t)&&!Gj(t)},Yj=function(t){var n,a=t&&Xu(t),o=(n=a)===null||n===void 0?void 0:n.host,s=!1;if(a&&a!==t){var l,u,f;for(s=!!((l=o)!==null&&l!==void 0&&(u=l.ownerDocument)!==null&&u!==void 0&&u.contains(o)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!s&&o;){var h,m,y;a=Xu(o),o=(h=a)===null||h===void 0?void 0:h.host,s=!!((m=o)!==null&&m!==void 0&&(y=m.ownerDocument)!==null&&y!==void 0&&y.contains(o))}}return s},F_=function(t){var n=t.getBoundingClientRect(),a=n.width,o=n.height;return a===0&&o===0},Zj=function(t,n){var a=n.displayCheck,o=n.getShadowRoot;if(a==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var l=Bo.call(t,"details>summary:first-of-type"),u=l?t.parentElement:t;if(Bo.call(u,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="full-native"||a==="legacy-full"){if(typeof o=="function"){for(var f=t;t;){var h=t.parentElement,m=Xu(t);if(h&&!h.shadowRoot&&o(h)===!0)return F_(t);t.assignedSlot?t=t.assignedSlot:!h&&m!==t.ownerDocument?t=m.host:t=h}t=f}if(Yj(t))return!t.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return F_(t);return!1},Xj=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var a=0;a<n.children.length;a++){var o=n.children.item(a);if(o.tagName==="LEGEND")return Bo.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},Vp=function(t,n){return!(n.disabled||$j(n)||Zj(n,t)||Hj(n)||Xj(n))},$p=function(t,n){return!(qj(n)||SP(n)<0||!Vp(t,n))},Qj=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},TP=function(t){var n=[],a=[];return t.forEach(function(o,s){var l=!!o.scopeParent,u=l?o.scopeParent:o,f=zj(u,l),h=l?TP(o.candidates):u;f===0?l?n.push.apply(n,h):n.push(u):a.push({documentOrder:s,tabIndex:f,item:o,isScope:l,content:h})}),a.sort(Vj).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(n)},fg=function(t,n){n=n||{};var a;return n.getShadowRoot?a=Ju([t],n.includeContainer,{filter:$p.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Qj}):a=xP(t,n.includeContainer,$p.bind(null,n)),TP(a)},WU=function(t,n){n=n||{};var a;return n.getShadowRoot?a=Ju([t],n.includeContainer,{filter:Vp.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):a=xP(t,n.includeContainer,Vp.bind(null,n)),a},GU=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Bo.call(t,Zu)===!1?!1:$p(n,t)};const pg=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function EP(e,t){const n=fg(e,pg()),a=n.length;if(a===0)return;const o=ml(bd(e)),s=n.indexOf(o),l=s===-1?t===1?0:a-1:s+t;return n[l]}function Jj(e){return EP(bd(e).body,1)||e}function e8(e){return EP(bd(e).body,-1)||e}function AP(e,t){if(!e)return null;const n=fg(bd(e).body,pg()),a=n.length;if(a===0)return null;const o=n.indexOf(e);if(o===-1)return null;const s=(o+t+a)%a;return n[s]}function KU(e){return AP(e,1)}function qU(e){return AP(e,-1)}function Vf(e,t){const n=t||e.currentTarget,a=e.relatedTarget;return!a||!Ti(n,a)}function t8(e){fg(e,pg()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function z_(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const a=n.dataset.tabindex;delete n.dataset.tabindex,a?n.setAttribute("tabindex",a):n.removeAttribute("tabindex")})}const mg=k.createContext(void 0);function gg(){const e=k.useContext(mg);if(!e)throw new Error(Dl(73));return e}function $f(e,t){if(typeof e=="string")return{description:e};if(typeof e=="function"){const n=e(t);return typeof n=="string"?{description:n}:n}return e}const n8=function(t){const{children:n,timeout:a=5e3,limit:o=3,toastManager:s}=t,[l,u]=k.useState([]),[f,h]=k.useState(!1),[m,y]=k.useState(!1),[v,_]=k.useState(null);l.length===0&&(f&&h(!1),m&&y(!1));const x=f||m,S=k.useRef(new Map),C=k.useRef(null),D=k.useRef(!0),M=k.useRef(!1);function E(Q){const J=ml(Eo(C.current));if(!C.current||!Ti(C.current,J)||!zp(J))return;const te=l.findIndex(F=>F.id===Q);let ee=null,se=te+1;for(;se<l.length;){if(l[se].transitionStatus!=="ending"){ee=l[se];break}se+=1}if(!ee)for(se=te-1;se>=0;){if(l[se].transitionStatus!=="ending"){ee=l[se];break}se-=1}ee?ee.ref?.current?.focus():v?.focus({preventScroll:!0})}const A=An(()=>{M.current||(M.current=!0,S.current.forEach(Q=>{if(Q.timeout){Q.timeout.clear();const J=Date.now()-Q.start,te=Q.delay-J;Q.remaining=te>0?te:0}}))}),B=An(()=>{M.current&&(M.current=!1,S.current.forEach((Q,J)=>{Q.remaining=Q.remaining>0?Q.remaining:Q.delay,Q.timeout??=pl.create(),Q.timeout.start(Q.remaining,()=>{S.current.delete(J),Q.callback()}),Q.start=Date.now()}))}),z=An(Q=>{u(ee=>{const se=ee.map(Y=>Y.id===Q?{...Y,transitionStatus:"ending",height:0}:Y),F=se.filter(Y=>Y.transitionStatus!=="ending");return se.map(Y=>{if(Y.transitionStatus==="ending")return Y;const V=F.indexOf(Y)>=o;return{...Y,limited:V}})});const J=S.current.get(Q);J&&J.timeout&&(J.timeout.clear(),S.current.delete(Q)),l.find(ee=>ee.id===Q)?.onClose?.(),E(Q),l.length===1&&(h(!1),y(!1))}),H=An(Q=>{u(te=>te.filter(ee=>ee.id!==Q)),l.find(te=>te.id===Q)?.onRemove?.()}),P=An((Q,J,te)=>{const ee=Date.now(),se=D.current&&!f&&!m,F=se?pl.create():void 0;F?.start(J,()=>{S.current.delete(Q),te()}),S.current.set(Q,{timeout:F,start:se?ee:0,delay:J,remaining:J,callback:te})}),Z=An(Q=>{const J=Q.id||vP("toast"),te={...Q,id:J,transitionStatus:"starting"};u(se=>{const F=[te,...se],Y=F.filter(V=>V.transitionStatus!=="ending");if(Y.length>o){const V=Y.length-o,I=Y.slice(-V);return F.map(W=>I.some(me=>me.id===W.id)?{...W,limited:!0}:{...W,limited:!1})}return F.map(V=>({...V,limited:!1}))});const ee=te.timeout??a;return te.type!=="loading"&&ee>0&&P(J,ee,()=>z(J)),(f||m||!D.current)&&A(),J}),X=An((Q,J)=>{const te=l.find(pe=>pe.id===Q)??null,ee=te?{...te,...J}:null;if(Ni.flushSync(()=>{u(pe=>pe.map(ye=>ye.id===Q?{...ye,...J}:ye))}),!ee)return;const se=ee.timeout??a,F=te?.timeout??a,Y=Object.hasOwn(J,"timeout"),V=ee.transitionStatus!=="ending"&&ee.type!=="loading"&&se>0,I=S.current.has(Q),W=F!==se,me=te?.type==="loading";if(!V&&I){S.current.get(Q)?.timeout?.clear(),S.current.delete(Q);return}if(V&&(!I||W||Y||me)){const pe=S.current.get(Q);pe&&(pe.timeout?.clear(),S.current.delete(Q)),P(Q,se,()=>z(Q)),(f||m||!D.current)&&A()}}),fe=An((Q,J)=>{const te=$f(J.loading),ee=Z({...te,type:"loading"}),se=Q.then(F=>{const Y=$f(J.success,F);return X(ee,{...Y,type:"success",timeout:Y.timeout}),F}).catch(F=>{const Y=$f(J.error,F);return X(ee,{...Y,type:"error",timeout:Y.timeout}),Promise.reject(F)});return{}.hasOwnProperty.call(J,"setPromise")&&J.setPromise(se),se});k.useEffect(function(){return s?s[" subscribe"](({action:te,options:ee})=>{const se=ee.id;te==="promise"&&ee.promise?fe(ee.promise,ee):te==="update"&&se?X(se,ee):te==="close"&&se?z(se):Z(ee)}):void 0},[Z,X,P,a,s,fe,z]);const he=k.useMemo(()=>({toasts:l,setToasts:u,hovering:f,setHovering:h,focused:m,setFocused:y,expanded:x,add:Z,close:z,remove:H,update:X,promise:fe,pauseTimers:A,resumeTimers:B,prevFocusElement:v,setPrevFocusElement:_,viewportRef:C,scheduleTimer:P,windowFocusedRef:D}),[Z,z,m,f,x,A,v,fe,H,B,P,l,X]);return T.jsx(mg.Provider,{value:he,children:n})},RP={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},LP={...RP,position:"fixed",top:0,left:0},YU={...RP,position:"absolute"},a8=()=>{},Il=typeof document<"u"?k.useLayoutEffect:a8,tl=k.forwardRef(function(t,n){const[a,o]=k.useState();Il(()=>{Dj&&o("button")},[]);const s={tabIndex:0,role:a};return T.jsx("span",{...t,ref:n,style:LP,"aria-hidden":a?void 0:!0,...s,"data-base-ui-focus-guard":""})}),r8=k.createContext(void 0);function V_(e,t,n,a){const o=Ll(DP).current;return o8(o,e,t,n,a)&&IP(o,[e,t,n,a]),o.callback}function i8(e){const t=Ll(DP).current;return s8(t,e)&&IP(t,e),t.callback}function DP(){return{callback:null,cleanup:null,refs:[]}}function o8(e,t,n,a,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==a||e.refs[3]!==o}function s8(e,t){return e.refs.length!==t.length||e.refs.some((n,a)=>n!==t[a])}function IP(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const a=Array(t.length).fill(null);for(let o=0;o<t.length;o+=1){const s=t[o];if(s!=null)switch(typeof s){case"function":{const l=s(n);typeof l=="function"&&(a[o]=l);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){const s=t[o];if(s!=null)switch(typeof s){case"function":{const l=a[o];typeof l=="function"?l():s(null);break}case"object":{s.current=null;break}}}}}}}const l8=parseInt(k.version,10);function MP(e){return l8>=e}function $_(e){if(!k.isValidElement(e))return null;const t=e,n=t.props;return(MP(19)?n?.ref:t.ref)??null}function Hp(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function c8(e,t){const n={};for(const a in e){const o=e[a];if(t?.hasOwnProperty(a)){const s=t[a](o);s!=null&&Object.assign(n,s);continue}o===!0?n[`data-${a.toLowerCase()}`]="":o&&(n[`data-${a.toLowerCase()}`]=o.toString())}return n}function u8(e,t){return typeof e=="function"?e(t):e}function d8(e,t){return typeof e=="function"?e(t):e}const nl={};function NP(e,t,n,a,o){let s={...Wp(e,nl)};return t&&(s=Hs(s,t)),n&&(s=Hs(s,n)),a&&(s=Hs(s,a)),o&&(s=Hs(s,o)),s}function h8(e){if(e.length===0)return nl;if(e.length===1)return Wp(e[0],nl);let t={...Wp(e[0],nl)};for(let n=1;n<e.length;n+=1)t=Hs(t,e[n]);return t}function Hs(e,t){return OP(t)?t(e):f8(e,t)}function f8(e,t){if(!t)return e;for(const n in t){const a=t[n];switch(n){case"style":{e[n]=Hp(e.style,a);break}case"className":{e[n]=jP(e.className,a);break}default:p8(n,a)?e[n]=m8(e[n],a):e[n]=a}}return e}function p8(e,t){const n=e.charCodeAt(0),a=e.charCodeAt(1),o=e.charCodeAt(2);return n===111&&a===110&&o>=65&&o<=90&&(typeof t=="function"||typeof t>"u")}function OP(e){return typeof e=="function"}function Wp(e,t){return OP(e)?e(t):e??nl}function m8(e,t){return t?e?n=>{if(g8(n)){const o=n;Gp(o);const s=t(o);return o.baseUIHandlerPrevented||e?.(o),s}const a=t(n);return e?.(n),a}:t:e}function Gp(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function jP(e,t){return t?e?t+" "+e:t:e}function g8(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function ZU(){}const XU=Object.freeze([]),zr=Object.freeze({}),QU=500,JU={style:{transition:"none"}},e7="data-base-ui-click-trigger",t7={fallbackAxisSide:"none"},n7={fallbackAxisSide:"end"},y8={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function Ml(e,t,n={}){const a=t.render,o=v8(t,n);if(n.enabled===!1)return null;const s=n.state??zr;return b8(e,a,o,s)}function v8(e,t={}){const{className:n,style:a,render:o}=e,{state:s=zr,ref:l,props:u,stateAttributesMapping:f,enabled:h=!0}=t,m=h?u8(n,s):void 0,y=h?d8(a,s):void 0,v=h?c8(s,f):zr,_=h?Hp(v,Array.isArray(u)?h8(u):u)??zr:zr;return typeof document<"u"&&(h?Array.isArray(l)?_.ref=i8([_.ref,$_(o),...l]):_.ref=V_(_.ref,$_(o),l):V_(null,null)),h?(m!==void 0&&(_.className=jP(_.className,m)),y!==void 0&&(_.style=Hp(_.style,y)),_):zr}function b8(e,t,n,a){if(t){if(typeof t=="function")return t(n,a);const o=NP(n,t.props);return o.ref=n.ref,k.cloneElement(t,o)}if(e&&typeof e=="string")return k8(e,n);throw new Error(Dl(8))}function k8(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 _8=(function(e){return e.frontmostHeight="--toast-frontmost-height",e})({});const w8=k.forwardRef(function(t,n){const{render:a,className:o,children:s,...l}=t,{toasts:u,pauseTimers:f,resumeTimers:h,setHovering:m,setFocused:y,viewportRef:v,windowFocusedRef:_,prevFocusElement:x,setPrevFocusElement:S,expanded:C,focused:D}=gg(),M=k.useRef(!1),E=k.useRef(!1),A=u.length,B=u[0]?.height??0,z=k.useMemo(()=>u.some(F=>F.transitionStatus==="ending"),[u]);k.useEffect(()=>{if(!v.current)return;function F(V){A!==0&&V.key==="F6"&&V.target!==v.current&&(V.preventDefault(),S(ml(Eo(v.current))),v.current?.focus({preventScroll:!0}),f(),y(!0))}const Y=qr(v.current);return Y.addEventListener("keydown",F),()=>{Y.removeEventListener("keydown",F)}},[f,y,S,A,v]),k.useEffect(()=>{if(!v.current||!A)return;const F=qr(v.current);function Y(I){I.target===F&&(_.current=!1,f())}function V(I){if(I.relatedTarget||I.target===F)return;const W=Fp(I),me=ml(Eo(v.current));(!Ti(v.current,W)||!zp(me))&&h(),setTimeout(()=>{_.current=!0})}return F.addEventListener("blur",Y,!0),F.addEventListener("focus",V,!0),()=>{F.removeEventListener("blur",Y,!0),F.removeEventListener("focus",V,!0)}},[f,h,v,_,y,A]),k.useEffect(()=>{const F=v.current;if(!F||A===0)return;const Y=Eo(F);function V(I){if(I.pointerType!=="touch")return;const W=Fp(I);Ti(F,W)||(h(),m(!1),y(!1))}return Y.addEventListener("pointerdown",V,!0),()=>{Y.removeEventListener("pointerdown",V,!0)}},[A,h,y,m,v]);function H(F){v.current&&(M.current=!0,F.relatedTarget===v.current?u[0]?.ref?.current?.focus():x?.focus({preventScroll:!0}))}function P(F){F.key==="Tab"&&F.shiftKey&&F.target===v.current&&(F.preventDefault(),x?.focus({preventScroll:!0}),h())}k.useEffect(()=>{!_.current||z||!E.current||(h(),m(!1),E.current=!1)},[z,h,m,_]);function Z(){f(),m(!0),E.current=!1}function X(){u.some(F=>F.transitionStatus==="ending")?E.current=!0:(h(),m(!1))}function fe(){if(M.current){M.current=!1;return}D||zp(Eo(v.current).activeElement)&&(y(!0),f())}function he(F){!D||Ti(v.current,F.relatedTarget)||(y(!1),h())}const Q={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:Z,onMouseMove:Z,onMouseLeave:X,onFocus:fe,onBlur:he,onKeyDown:P,onClick:fe},J=k.useMemo(()=>({expanded:C}),[C]),te=Ml("div",t,{ref:[n,v],state:J,props:[Q,{style:{[_8.frontmostHeight]:B?`${B}px`:void 0}},l,{children:T.jsxs(k.Fragment,{children:[A>0&&x&&T.jsx(tl,{onFocus:H}),s,A>0&&x&&T.jsx(tl,{onFocus:H})]})}]}),ee=k.useMemo(()=>({viewportRef:v}),[v]),se=k.useMemo(()=>u.filter(F=>F.priority==="high"),[u]);return T.jsxs(r8.Provider,{value:ee,children:[A>0&&x&&T.jsx(tl,{onFocus:H}),te,!D&&se.length>0&&T.jsx("div",{style:LP,children:se.map(F=>T.jsxs("div",{role:"alert","aria-atomic":!0,children:[T.jsx("div",{children:F.title}),T.jsx("div",{children:F.description})]},F.id))})]})});function x8(e){return MP(19)?e:e?"true":void 0}const UP=k.createContext(void 0);function Kp(){const e=k.useContext(UP);if(!e)throw new Error(Dl(66));return e}let yg=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const P8={[yg.startingStyle]:""},S8={[yg.endingStyle]:""},C8={transitionStatus(e){return e==="starting"?P8:e==="ending"?S8:null}},Jc=null;class T8{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,a=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,a>0)for(let o=0;o<n.length;o+=1)n[o]?.(t)};request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const eu=new T8;class vg{static create(){return new vg}static request(t){return eu.request(t)}static cancel(t){return eu.cancel(t)}currentId=Jc;request(t){this.cancel(),this.currentId=eu.request(()=>{this.currentId=Jc,t()})}cancel=()=>{this.currentId!==Jc&&(eu.cancel(this.currentId),this.currentId=Jc)};disposeEffect=()=>this.cancel}function E8(){const e=Ll(vg.create).current;return bP(e.disposeEffect),e}function A8(e){return e==null?e:"current"in e?e.current:e}function R8(e,t=!1,n=!0){const a=E8();return An((o,s=null)=>{a.cancel();function l(){Ni.flushSync(o)}const u=A8(e);if(u==null)return;const f=u;if(typeof f.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)o();else{let h=function(){const y=yg.startingStyle;if(!f.hasAttribute(y)){a.request(m);return}const v=new MutationObserver(()=>{f.hasAttribute(y)||(v.disconnect(),m())});v.observe(f,{attributes:!0,attributeFilter:[y]}),s?.addEventListener("abort",()=>v.disconnect(),{once:!0})},m=function(){Promise.all(f.getAnimations().map(y=>y.finished)).then(()=>{s?.aborted||l()}).catch(()=>{const y=f.getAnimations();if(n){if(s?.aborted)return;l()}else y.length>0&&y.some(v=>v.pending||v.playState!=="finished")&&m()})};if(t){h();return}a.request(m)}})}function L8(e){const{enabled:t=!0,open:n,ref:a,onComplete:o}=e,s=An(o),l=R8(a,n,!1);k.useEffect(()=>{if(!t)return;const u=new AbortController;return l(s,u.signal),()=>{u.abort()}},[t,n,s,l])}let bi=(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 D8={...C8,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},Us=40,I8=10,Nr=.5,M8=1;function H_(e,t,n){switch(e){case"up":return-n;case"down":return n;case"left":return-t;case"right":return t;default:return 0}}function N8(e){const n=window.getComputedStyle(e).transform;let a=0,o=0,s=1;if(n&&n!=="none"){const l=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(l){const u=l[1].split(", ").map(parseFloat);u.length===6?(a=u[4],o=u[5],s=Math.sqrt(u[0]*u[0]+u[1]*u[1])):u.length===16&&(a=u[12],o=u[13],s=u[0])}}return{x:a,y:o,scale:s}}const O8=k.forwardRef(function(t,n){const{toast:a,render:o,className:s,swipeDirection:l=["down","right"],...u}=t,f=a.positionerProps?.anchor!==void 0;let h=[];f||(h=Array.isArray(l)?l:[l]);const m=h.length>0,{toasts:y,focused:v,close:_,remove:x,setToasts:S,pauseTimers:C,expanded:D,setHovering:M}=gg(),[E,A]=k.useState(void 0),[B,z]=k.useState(!1),[H,P]=k.useState(!1),[Z,X]=k.useState(!1),[fe,he]=k.useState({x:0,y:0}),[Q,J]=k.useState({x:0,y:0,scale:1}),[te,ee]=k.useState(),[se,F]=k.useState(),[Y,V]=k.useState(null),I=k.useRef(null),W=k.useRef({x:0,y:0}),me=k.useRef({x:0,y:0,scale:1}),pe=k.useRef(void 0),ye=k.useRef(0),xe=k.useRef(!1),Fe=k.useRef({x:0,y:0}),Ye=k.useRef(!1),je=k.useMemo(()=>y.indexOf(a),[a,y]),Rt=k.useMemo(()=>y.filter(Ke=>Ke.transitionStatus!=="ending").indexOf(a),[a,y]),Rn=k.useMemo(()=>y.slice(0,y.indexOf(a)).reduce((Ke,Ve)=>Ke+(Ve.height||0),0),[y,a]);L8({open:a.transitionStatus!=="ending",ref:I,onComplete(){a.transitionStatus==="ending"&&x(a.id)}});const wn=An((Ke=!1)=>{const Ve=I.current;if(!Ve)return;const ft=Ve.style.height;Ve.style.height="auto";const St=Ve.offsetHeight;Ve.style.height=ft;function Ot(){S(yt=>yt.map(dt=>dt.id===a.id?{...dt,ref:I,height:St,transitionStatus:void 0}:dt))}Ke?Ni.flushSync(Ot):Ot()});Il(wn,[wn]);function pt(Ke,Ve){let ft=Ke,St=Ve;return!h.includes("left")&&!h.includes("right")?ft=Ke>0?Ke**Nr:-(Math.abs(Ke)**Nr):(!h.includes("right")&&Ke>0&&(ft=Ke**Nr),!h.includes("left")&&Ke<0&&(ft=-(Math.abs(Ke)**Nr))),!h.includes("up")&&!h.includes("down")?St=Ve>0?Ve**Nr:-(Math.abs(Ve)**Nr):(!h.includes("down")&&Ve>0&&(St=Ve**Nr),!h.includes("up")&&Ve<0&&(St=-(Math.abs(Ve)**Nr))),{x:ft,y:St}}function Xt(Ke){if(Ke.button!==0)return;Ke.pointerType==="touch"&&C();const Ve=Fp(Ke.nativeEvent);if(!(Ve&&Ve.closest('button,a,input,textarea,[role="button"],[data-swipe-ignore]'))){if(xe.current=!1,pe.current=void 0,ye.current=0,W.current={x:Ke.clientX,y:Ke.clientY},Fe.current=W.current,I.current){const St=N8(I.current);me.current=St,J(St),he({x:St.x,y:St.y})}M(!0),z(!0),P(!1),V(null),Ye.current=!0,I.current?.setPointerCapture(Ke.pointerId)}}function Jr(Ke){if(!B)return;Ke.preventDefault(),Ye.current&&(W.current={x:Ke.clientX,y:Ke.clientY},Ye.current=!1);const{clientY:Ve,clientX:ft,movementX:St,movementY:Ot}=Ke;(Ot<0&&Ve>Fe.current.y||Ot>0&&Ve<Fe.current.y)&&(Fe.current={x:Fe.current.x,y:Ve}),(St<0&&ft>Fe.current.x||St>0&&ft<Fe.current.x)&&(Fe.current={x:ft,y:Fe.current.y});const yt=ft-W.current.x,dt=Ve-W.current.y,ba=Ve-Fe.current.y,Ko=ft-Fe.current.x;if(!H&&Math.sqrt(yt*yt+dt*dt)>=M8&&(P(!0),Y===null)){const aa=h.includes("left")||h.includes("right"),ti=h.includes("up")||h.includes("down");if(aa&&ti){const lr=Math.abs(yt),Dn=Math.abs(dt);V(lr>Dn?"horizontal":"vertical")}}let Wt;if(!pe.current)Y==="vertical"?dt>0?Wt="down":dt<0&&(Wt="up"):Y==="horizontal"?yt>0?Wt="right":yt<0&&(Wt="left"):Math.abs(yt)>=Math.abs(dt)?Wt=yt>0?"right":"left":Wt=dt>0?"down":"up",Wt&&h.includes(Wt)&&(pe.current=Wt,ye.current=H_(Wt,yt,dt),A(Wt));else{const _a=pe.current,aa=H_(_a,Ko,ba);aa>Us?(xe.current=!1,A(_a)):!(h.includes("left")&&h.includes("right"))&&!(h.includes("up")&&h.includes("down"))&&ye.current-aa>=I8&&(xe.current=!0)}const Ba=pt(yt,dt);let hn=me.current.x,ka=me.current.y;Y==="horizontal"?(h.includes("left")||h.includes("right"))&&(hn+=Ba.x):(Y==="vertical"||(h.includes("left")||h.includes("right"))&&(hn+=Ba.x),(h.includes("up")||h.includes("down"))&&(ka+=Ba.y)),he({x:hn,y:ka})}function Fi(Ke){if(!B)return;if(z(!1),P(!1),V(null),I.current?.releasePointerCapture(Ke.pointerId),xe.current){he({x:Q.x,y:Q.y}),A(void 0);return}let Ve=!1;const ft=fe.x-Q.x,St=fe.y-Q.y;let Ot;for(const yt of h){switch(yt){case"right":ft>Us&&(Ve=!0,Ot="right");break;case"left":ft<-Us&&(Ve=!0,Ot="left");break;case"down":St>Us&&(Ve=!0,Ot="down");break;case"up":St<-Us&&(Ve=!0,Ot="up");break}if(Ve)break}Ve?(A(Ot),X(!0),_(a.id)):(he({x:Q.x,y:Q.y}),A(void 0))}function Ln(Ke){if(Ke.key==="Escape"){if(!I.current||!Ti(I.current,ml(Eo(I.current))))return;_(a.id)}}k.useEffect(()=>{if(!m)return;const Ke=I.current;if(!Ke)return;function Ve(ft){Ti(Ke,ft.target)&&ft.preventDefault()}return Ke.addEventListener("touchmove",Ve,{passive:!1}),()=>{Ke.removeEventListener("touchmove",Ve)}},[m]);function zi(){if(!B&&fe.x===Q.x&&fe.y===Q.y&&!Z)return{[bi.swipeMovementX]:"0px",[bi.swipeMovementY]:"0px"};const Ke=fe.x-Q.x,Ve=fe.y-Q.y;return{transition:B?"none":void 0,transform:B?`translateX(${fe.x}px) translateY(${fe.y}px) scale(${Q.scale})`:void 0,[bi.swipeMovementX]:`${Ke}px`,[bi.swipeMovementY]:`${Ve}px`}}const sr=a.priority==="high",va={role:sr?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":te,"aria-describedby":se,"aria-hidden":sr&&!v?!0:void 0,onPointerDown:m?Xt:void 0,onPointerMove:m?Jr:void 0,onPointerUp:m?Fi:void 0,onKeyDown:Ln,inert:x8(a.limited),style:{...zi(),[bi.index]:a.transitionStatus==="ending"?je:Rt,[bi.offsetY]:`${Rn}px`,[bi.height]:a.height?`${a.height}px`:void 0}},dn=k.useMemo(()=>({rootRef:I,toast:a,titleId:te,setTitleId:ee,descriptionId:se,setDescriptionId:F,swiping:B,swipeDirection:E,recalculateHeight:wn,index:je,visibleIndex:Rt,expanded:D}),[a,te,se,B,E,wn,je,Rt,D]),ei=k.useMemo(()=>({transitionStatus:a.transitionStatus,expanded:D,limited:a.limited||!1,type:a.type,swiping:dn.swiping,swipeDirection:dn.swipeDirection}),[D,a.transitionStatus,a.limited,a.type,dn.swiping,dn.swipeDirection]),Vi=Ml("div",t,{ref:[n,dn.rootRef],state:ei,stateAttributesMapping:D8,props:[va,u]});return T.jsx(UP.Provider,{value:dn,children:Vi})}),j8={...Yp};let W_=0;function U8(e,t="mui"){const[n,a]=k.useState(e),o=e||n;return k.useEffect(()=>{n==null&&(W_+=1,a(`${t}-${W_}`))},[n,t]),o}const G_=j8.useId;function BP(e,t){if(G_!==void 0){const n=G_();return e??(t?`${t}-${n}`:n)}return U8(e,t)}const B8=k.forwardRef(function(t,n){const{render:a,className:o,id:s,children:l,...u}=t,{toast:f}=Kp(),h=l??f.title,m=!!h,y=BP(s),{setTitleId:v}=Kp();Il(()=>{if(m)return v(y),()=>{v(void 0)}},[m,y,v]);const _=k.useMemo(()=>({type:f.type}),[f.type]),x=Ml("h2",t,{ref:n,state:_,props:{...u,id:y,children:h}});return m?x:null}),F8=k.createContext(void 0);function z8(e=!1){const t=k.useContext(F8);if(t===void 0&&!e)throw new Error(Dl(16));return t}function V8(e){const{focusableWhenDisabled:t,disabled:n,composite:a=!1,tabIndex:o=0,isNativeButton:s}=e,l=a&&t!==!1,u=a&&t===!1;return{props:k.useMemo(()=>{const h={onKeyDown(m){n&&t&&m.key!=="Tab"&&m.preventDefault()}};return a||(h.tabIndex=o,!s&&n&&(h.tabIndex=t?o:-1)),(s&&(t||l)||!s&&n)&&(h["aria-disabled"]=n),s&&(!t||u)&&(h.disabled=n),h},[a,n,t,l,u,s,o])}}function $8(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:a=0,native:o=!0}=e,s=k.useRef(null),l=z8(!0)!==void 0,u=An(()=>{const v=s.current;return!!(v?.tagName==="A"&&v?.href)}),{props:f}=V8({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:a,isNativeButton:o}),h=k.useCallback(()=>{const v=s.current;H8(v)&&l&&t&&f.disabled===void 0&&v.disabled&&(v.disabled=!1)},[t,f.disabled,l]);Il(h,[h]);const m=k.useCallback((v={})=>{const{onClick:_,onMouseDown:x,onKeyUp:S,onKeyDown:C,onPointerDown:D,...M}=v;return NP({type:o?"button":void 0,onClick(A){if(t){A.preventDefault();return}_?.(A)},onMouseDown(A){t||x?.(A)},onKeyDown(A){if(t||(Gp(A),C?.(A)),A.baseUIHandlerPrevented)return;const B=A.target===A.currentTarget&&!o&&!u()&&!t,z=A.key==="Enter",H=A.key===" ";B&&((H||z)&&A.preventDefault(),z&&_?.(A))},onKeyUp(A){t||(Gp(A),S?.(A)),!A.baseUIHandlerPrevented&&A.target===A.currentTarget&&!o&&!t&&A.key===" "&&_?.(A)},onPointerDown(A){if(t){A.preventDefault();return}D?.(A)}},o?void 0:{role:"button"},f,M)},[t,f,o,u]),y=An(v=>{s.current=v,h()});return{getButtonProps:m,buttonRef:y}}function H8(e){return vd(e)&&e.tagName==="BUTTON"}const W8=k.forwardRef(function(t,n){const{render:a,className:o,disabled:s,nativeButton:l=!0,...u}=t,{close:f,expanded:h}=gg(),{toast:m}=Kp(),[y,v]=k.useState(!1),{getButtonProps:_,buttonRef:x}=$8({disabled:s,native:l}),S=k.useMemo(()=>({type:m.type}),[m.type]);return Ml("button",t,{ref:[n,x],state:S,props:[{"aria-hidden":!h&&!y,onClick(){f(m.id)},onFocus(){v(!0)},onBlur(){v(!1)}},u,_]})}),a7="none",r7="trigger-press",i7="trigger-hover",o7="outside-press",s7="item-press",l7="close-press",G8="focus-out",c7="escape-key",u7="list-navigation",d7="cancel-open",h7="imperative-action",f7="window-resize";function K8(e,t,n,a){let o=!1,s=!1;const l=zr;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){s=!0},get isCanceled(){return o},get isPropagationAllowed(){return s},trigger:n,...l}}function q8(e){return`data-base-ui-${e}`}const FP=k.createContext(null),Y8=()=>k.useContext(FP),Z8=q8("portal");function zP(e={}){const{ref:t,container:n,componentProps:a=zr,elementProps:o,elementState:s}=e,l=BP(),f=Y8()?.portalNode,[h,m]=k.useState(null),[y,v]=k.useState(null),_=An(D=>{D!==null&&v(D)}),x=k.useRef(null);Il(()=>{if(n===null){x.current&&(x.current=null,v(null),m(null));return}if(l==null)return;const D=(n&&(hg(n)?n:n.current))??f??document.body;if(D==null){x.current&&(x.current=null,v(null),m(null));return}x.current!==D&&(x.current=D,v(null),m(D))},[n,f,l]);const S=Ml("div",a,{ref:[t,_],state:s,props:[{id:l,[Z8]:""},o]});return{portalNode:y,portalSubtree:h&&S?Ni.createPortal(S,h):null}}const p7=k.forwardRef(function(t,n){const{children:a,container:o,className:s,render:l,renderGuards:u,...f}=t,{portalNode:h,portalSubtree:m}=zP({container:o,ref:n,componentProps:t,elementProps:f}),y=k.useRef(null),v=k.useRef(null),_=k.useRef(null),x=k.useRef(null),[S,C]=k.useState(null),D=S?.modal,M=S?.open,E=typeof u=="boolean"?u:!!S&&!S.modal&&S.open&&!!h;k.useEffect(()=>{if(!h||D)return;function B(z){h&&z.relatedTarget&&Vf(z)&&(z.type==="focusin"?z_:t8)(h)}return h.addEventListener("focusin",B,!0),h.addEventListener("focusout",B,!0),()=>{h.removeEventListener("focusin",B,!0),h.removeEventListener("focusout",B,!0)}},[h,D]),k.useEffect(()=>{!h||M||z_(h)},[M,h]);const A=k.useMemo(()=>({beforeOutsideRef:y,afterOutsideRef:v,beforeInsideRef:_,afterInsideRef:x,portalNode:h,setFocusManagerState:C}),[h]);return T.jsxs(k.Fragment,{children:[m,T.jsxs(FP.Provider,{value:A,children:[E&&h&&T.jsx(tl,{"data-type":"outside",ref:y,onFocus:B=>{if(Vf(B,h))_.current?.focus();else{const z=S?S.domReference:null;e8(z)?.focus()}}}),E&&h&&T.jsx("span",{"aria-owns":h.id,style:y8}),h&&Ni.createPortal(a,h),E&&h&&T.jsx(tl,{"data-type":"outside",ref:v,onFocus:B=>{if(Vf(B,h))x.current?.focus();else{const z=S?S.domReference:null;Jj(z)?.focus(),S?.closeOnFocusOut&&S?.onOpenChange(!1,K8(G8,B.nativeEvent))}}})]})]})}),X8=k.forwardRef(function(t,n){const{children:a,container:o,className:s,render:l,...u}=t,{portalNode:f,portalSubtree:h}=zP({container:o,ref:n,componentProps:t,elementProps:u});return!h&&!f?null:T.jsxs(k.Fragment,{children:[h,f&&Ni.createPortal(a,f)]})}),Q8=X8;function J8(){const e=k.useContext(mg);if(!e)throw new Error(Dl(73));const{toasts:t,add:n,close:a,update:o,promise:s}=e;return k.useMemo(()=>({toasts:t,add:n,close:a,update:o,promise:s}),[t,n,a,o,s])}function e9(){const e=[];function t(n){e.forEach(a=>a(n))}return{" subscribe":function(a){return e.push(a),()=>{const o=e.indexOf(a);o!==-1&&e.splice(o,1)}},add(n){const a=n.id||vP("toast"),o={...n,id:a,transitionStatus:"starting"};return t({action:"add",options:o}),a},close(n){t({action:"close",options:{id:n}})},update(n,a){t({action:"update",options:{...a,id:n}})},promise(n,a){let o=n;return t({action:"promise",options:{...a,promise:n,setPromise(s){o=s}}}),o}}}const bg=e9();function m7(e){return bg.add(e)}function t9({children:e}){return T.jsxs(n8,{toastManager:bg,children:[e,T.jsx(Q8,{children:T.jsx(w8,{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:T.jsx(n9,{})})})]})}function n9(){const{toasts:e}=J8();return e.map(t=>{const n=t.data?.onUndo;return T.jsxs(O8,{toast:t,className:wt("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:[T.jsx(B8,{className:"min-w-0 flex-1 text-sm font-medium text-oai-black dark:text-white"}),n?T.jsx("button",{type:"button",onClick:()=>{n(),bg.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:De("shared.action.undo")}):null,T.jsx(W8,{"aria-label":De("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:T.jsx(Lm,{className:"h-3.5 w-3.5","aria-hidden":!0})})]},t.id)})}const a9=typeof window<"u"?window.location.search:"",K_=new URLSearchParams(a9),tu=K_.get("insforge_code")||K_.get("code")||null,r9=typeof window<"u"&&!!window.webkit?.messageHandlers?.nativeOAuth;function i9(){Cl();const{loading:e,signedIn:t}=Vo(),n=kl(),[a,o]=k.useState("processing"),[s,l]=k.useState(null),u=k.useRef(!1);k.useEffect(()=>{if(!(!tu||u.current)){if(u.current=!0,r9){l(!1);return}(async()=>{try{const m=await(await fetch("/api/auth-bridge/verifier")).json();l(!!m?.native)}catch{l(!1)}})()}},[]),k.useEffect(()=>{if(s!==!0||!tu)return;o("redirecting");const h=setTimeout(()=>{window.location.href=`tokentracker://auth/callback?insforge_code=${encodeURIComponent(tu)}`},200);return()=>clearTimeout(h)},[s]),k.useEffect(()=>{if(s!==!1||e)return;if(t){n("/dashboard",{replace:!0});return}const h=setTimeout(()=>{t||o("failed")},12e3);return()=>clearTimeout(h)},[s,e,t,n]),k.useEffect(()=>{if(!tu&&s===null){const h=setTimeout(()=>o("failed"),3e3);return()=>clearTimeout(h)}},[s]);const f=()=>{n("/dashboard",{replace:!0})};return a==="processing"&&s!==!0&&(s===null||s===!1&&e)?T.jsx("div",{className:"min-h-screen bg-oai-gray-950"}):T.jsx("div",{className:"min-h-screen bg-oai-gray-950 text-white font-oai antialiased dark flex items-center justify-center",children:T.jsxs("div",{className:"text-center space-y-4 max-w-sm px-4",children:[a==="processing"&&T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"w-8 h-8 border-2 border-oai-gray-600 border-t-white rounded-full animate-spin mx-auto"}),T.jsx("p",{className:"text-oai-gray-400 text-sm",children:De("auth.callback.processing")})]}),a==="redirecting"&&T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"w-12 h-12 mx-auto rounded-full bg-green-500/15 flex items-center justify-center",children:T.jsx("svg",{className:"w-6 h-6 text-green-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:T.jsx("path",{d:"M20 6 9 17l-5-5"})})}),T.jsx("p",{className:"text-white text-sm font-medium",children:De("auth.callback.success")}),T.jsx("p",{className:"text-oai-gray-500 text-xs",children:De("auth.callback.redirecting")})]}),a==="failed"&&T.jsxs("div",{className:"space-y-3",children:[T.jsx("p",{className:"text-oai-gray-300 text-sm",children:De("auth.callback.failed")}),T.jsx("button",{type:"button",onClick:f,className:"px-4 py-2 rounded-lg bg-oai-gray-800 text-sm text-white hover:bg-oai-gray-700 transition-colors",children:De("auth.callback.close")})]})]})})}const o9=k.lazy(()=>na(()=>import("./DashboardPage-D7Zl3qdP.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.DashboardPage}))),s9=k.lazy(()=>na(()=>import("./IpCheckPage-B3Se3vu3.js"),[])),l9=k.lazy(()=>na(()=>import("./LandingPage-B-AM1mgc.js"),__vite__mapDeps([10,11,7])).then(e=>({default:e.LandingPage}))),c9=k.lazy(()=>na(()=>import("./LeaderboardPage-BwlrqFjQ.js"),__vite__mapDeps([12,2,13,14])).then(e=>({default:e.LeaderboardPage}))),u9=k.lazy(()=>na(()=>import("./LeaderboardProfilePage-CBXZv4R_.js"),__vite__mapDeps([15,2,11,16,13,3,4,17,18,5])).then(e=>({default:e.LeaderboardProfilePage}))),d9=k.lazy(()=>na(()=>import("./LimitsPage-Cnk3Do9Y.js"),__vite__mapDeps([19,1,20,6,9,21,17,22])).then(e=>({default:e.LimitsPage}))),h9=k.lazy(()=>na(()=>import("./LoginPage-69LMUSLd.js"),[]).then(e=>({default:e.LoginPage}))),f9=k.lazy(()=>na(()=>import("./DevicePage-D4bkFEEt.js"),[])),p9=k.lazy(()=>na(()=>import("./WrappedPage-3kImp9sV.js"),[])),m9=k.lazy(()=>na(()=>import("./SettingsPage-B5XGzOcZ.js"),__vite__mapDeps([23,20,24,6,18,2,14,4,22])).then(e=>({default:e.SettingsPage}))),g9=k.lazy(()=>na(()=>import("./SkillsPage-tCvpIDbZ.js"),__vite__mapDeps([25,21,17,22,6,5,4,2,8,18,14])).then(e=>({default:e.SkillsPage}))),y9=k.lazy(()=>na(()=>import("./WidgetsPage-DEsp4TVs.js"),__vite__mapDeps([26,24,6,9,17,22,14])).then(e=>({default:e.WidgetsPage})));function v9(){const{resolvedLocale:e}=Cl(),t=Jn(),n=Vo();M6();const a=_n(),o=k.useMemo(()=>typeof window>"u"?!1:C6(window.location.search),[]),s=t?.pathname||"/",l=new URL(window.location.href),u=l.pathname.replace(/\/+$/,"")||"/",h=u.match(/^\/share\/([^/?#]+)$/i)?.[1]||null,m=l.searchParams.get("token")||null,y=h||m,v=u==="/share"||u==="/share.html"||u.startsWith("/share/"),_=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"),x=s.replace(/\/+$/,"")||"/",S=x==="/leaderboard",C=x.match(/^\/u\/([^/]+)$/i),D=C?C[1]:null,M=!!(n.enabled&&n.signedIn),E=_||M,A=!1,B=S6(),z=!E&&!a&&!_,H=k.useMemo(()=>!n.enabled||!M?null:{getAccessToken:()=>n.getAccessToken(),name:n.displayName||"",userId:n.user?.id||null},[M,n]);let P=_||a||o?"dashboard":"landing";x==="/landing"&&(P="landing"),x==="/dashboard"&&(P="dashboard"),S&&(P="dashboard"),D&&(P="dashboard");const Z=x==="/limits",X=x==="/settings",fe=x==="/skills",he=x==="/widgets",Q=x==="/ip-check";(Z||X||fe||he||Q)&&(P="dashboard");let J=o9;D?J=u9:x==="/leaderboard"?J=c9:Z?J=d9:X?J=m9:fe?J=g9:he?J=y9:Q&&(J=s9);const te=!v&&!z&&(x==="/dashboard"||x==="/"||S||Z||X||fe||he||Q);let ee=null;if(x==="/auth/callback"||x==="/auth/native-callback")ee=T.jsx(i9,{});else if(x==="/login")ee=T.jsx(h9,{});else if(x==="/device")ee=T.jsx(f9,{});else if(x==="/wrapped")ee=T.jsx(p9,{});else if(P==="landing")ee=T.jsx(l9,{signInUrl:"/login",signUpUrl:"/login"});else{const se=T.jsx(J,{baseUrl:B,auth:H,signedIn:E,sessionSoftExpired:A,signOut:()=>n.enabled?n.signOut():Promise.resolve(),publicMode:v,publicToken:y,userId:D,signInUrl:"/login",signUpUrl:"/login"},e);te?ee=T.jsx(X6,{children:se}):ee=se}return T.jsx(PI,{children:T.jsx(TI,{children:T.jsx(t9,{children:T.jsxs(EI,{children:[T.jsx(k.Suspense,{fallback:null,children:ee}),te?T.jsx(kj,{}):null,T.jsx(x6,{}),T.jsx(ED,{}),T.jsx(BD,{})]})})})})}const b9=H2([{path:"*",element:T.jsx(v9,{})}]);DC.createRoot(document.getElementById("root")).render(T.jsx(al.StrictMode,{children:T.jsx(sD,{children:T.jsx(pD,{children:T.jsx(LL,{children:T.jsx(nE,{router:b9})})})})}));export{X9 as $,el as A,uu as B,z9 as C,F9 as D,ll as E,xI as F,eU as G,L9 as H,R9 as I,M1 as J,N6 as K,ad as L,Ni as M,wt as N,ix as O,yj as P,Vo as Q,al as R,Em as S,w6 as T,j9 as U,W9 as V,Cl as W,Lm as X,C6 as Y,Fr as Z,na as _,A9 as a,LU as a$,V9 as a0,KR as a1,D9 as a2,I9 as a3,Q9 as a4,B9 as a5,O9 as a6,N_ as a7,dU as a8,PM as a9,G9 as aA,nx as aB,tx as aC,sI as aD,U9 as aE,Oo as aF,Mu as aG,$w as aH,Hw as aI,Ww as aJ,Gw as aK,hI as aL,BU as aM,FU as aN,jU as aO,UU as aP,HU as aQ,Il as aR,$U as aS,An as aT,ml as aU,bd as aV,Ti as aW,u7 as aX,vd as aY,Fp as aZ,G8 as a_,gt as aa,nn as ab,$u as ac,Im as ad,Uo as ae,ig as af,ox as ag,Kr as ah,Sk as ai,Jn as aj,kl as ak,hU as al,OR as am,T9 as an,fU as ao,E9 as ap,K9 as aq,_I as ar,O6 as as,gI as at,rU as au,k9 as av,IR as aw,Dm as ax,NR as ay,nk as az,zR as b,c7 as b$,XU as b0,Dl as b1,ZU as b2,zr as b3,fP as b4,Ll as b5,L8 as b6,NP as b7,V_ as b8,YU as b9,bU as bA,kU as bB,_U as bC,PU as bD,xU as bE,r7 as bF,Uj as bG,O_ as bH,_j as bI,Tj as bJ,gP as bK,Cj as bL,wj as bM,Bp as bN,mP as bO,EU as bP,Sj as bQ,AU as bR,dg as bS,pP as bT,RU as bU,BP as bV,q8 as bW,jj as bX,i7 as bY,pl as bZ,JU as b_,LP as ba,a7 as bb,o7 as bc,Eo as bd,d7 as be,p7 as bf,t7 as bg,x8 as bh,E8 as bi,qr as bj,DU as bk,f7 as bl,C8 as bm,s7 as bn,vj as bo,gU as bp,pU as bq,SU as br,CU as bs,TU as bt,pI as bu,mU as bv,yU as bw,m7 as bx,vU as by,wU as bz,an as c,QU as c0,bP as c1,h7 as c2,e7 as c3,tl as c4,qU as c5,Vf as c6,KU as c7,Jj as c8,n7 as c9,MP as cA,vg as cB,B_ as cC,NU as cD,OU as cE,yg as cF,IU as cG,R8 as ca,fD as cb,Sm as cc,lU as cd,pa as ce,ud as cf,oU as cg,cU as ch,sU as ci,Ys as cj,Y9 as ck,Z9 as cl,q9 as cm,rr as cn,MU as co,Ij as cp,Y8 as cq,fg as cr,pg as cs,A8 as ct,e8 as cu,GU as cv,WU as cw,VU as cx,zU as cy,qp as cz,iU as d,nL as e,aL as f,Mw as g,tU as h,_n as i,N9 as j,H9 as k,nU as l,aU as m,M9 as n,xt as o,$9 as p,J9 as q,k as r,De as s,Iw as t,T as u,$8 as v,Ml as w,K8 as x,l7 as y,CO as z};