pitroom 0.23.0 → 0.24.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.
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +11 -0
- package/README.md +5 -3
- package/dist/lib.mjs +1054 -673
- package/dist/pitroom.mjs +1792 -1286
- package/dist/ui/app.css +1 -1
- package/dist/ui/app.js +7 -7
- package/docs/backends.md +27 -1
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/policies/gemini/shell.toml +5 -1
package/dist/ui/app.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var L5=Object.create;var vw=Object.defineProperty;var R5=Object.getOwnPropertyDescriptor;var I5=Object.getOwnPropertyNames;var j5=Object.getPrototypeOf,T5=Object.prototype.hasOwnProperty;var Pa=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),aa=(e,t)=>{for(var n in t)vw(e,n,{get:t[n],enumerable:!0})},E5=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of I5(t))!T5.call(e,r)&&r!==n&&vw(e,r,{get:()=>t[r],enumerable:!(a=R5(t,r))||a.enumerable});return e};var k=(e,t,n)=>(n=e!=null?L5(j5(e)):{},E5(t||!e||!e.__esModule?vw(n,"default",{value:e,enumerable:!0}):n,e));var MI=Pa(Me=>{"use strict";var _w=Symbol.for("react.transitional.element"),A5=Symbol.for("react.portal"),P5=Symbol.for("react.fragment"),M5=Symbol.for("react.strict_mode"),D5=Symbol.for("react.profiler"),N5=Symbol.for("react.consumer"),O5=Symbol.for("react.context"),B5=Symbol.for("react.forward_ref"),F5=Symbol.for("react.suspense"),V5=Symbol.for("react.memo"),LI=Symbol.for("react.lazy"),z5=Symbol.for("react.activity"),q5=Symbol.for("react.view_transition"),_I=Symbol.iterator;function H5(e){return e===null||typeof e!="object"?null:(e=_I&&e[_I]||e["@@iterator"],typeof e=="function"?e:null)}var RI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},II=Object.assign,jI={};function Xc(e,t,n){this.props=e,this.context=t,this.refs=jI,this.updater=n||RI}Xc.prototype.isReactComponent={};Xc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Xc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function TI(){}TI.prototype=Xc.prototype;function Sw(e,t,n){this.props=e,this.context=t,this.refs=jI,this.updater=n||RI}var kw=Sw.prototype=new TI;kw.constructor=Sw;II(kw,Xc.prototype);kw.isPureReactComponent=!0;var SI=Array.isArray;function ww(){}var Tt={H:null,A:null,T:null,S:null},EI=Object.prototype.hasOwnProperty;function $w(e,t,n){var a=n.ref;return{$$typeof:_w,type:e,key:t,ref:a!==void 0?a:null,props:n}}function U5(e,t){return $w(e.type,t,e.props)}function Lw(e){return typeof e=="object"&&e!==null&&e.$$typeof===_w}function G5(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var kI=/\/+/g;function Cw(e,t){return typeof e=="object"&&e!==null&&e.key!=null?G5(""+e.key):t.toString(36)}function W5(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(ww,ww):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Wc(e,t,n,a,r){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case _w:case A5:s=!0;break;case LI:return s=e._init,Wc(s(e._payload),t,n,a,r)}}if(s)return r=r(e),s=a===""?"."+Cw(e,0):a,SI(r)?(n="",s!=null&&(n=s.replace(kI,"$&/")+"/"),Wc(r,t,n,"",function(u){return u})):r!=null&&(Lw(r)&&(r=U5(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(kI,"$&/")+"/")+s)),t.push(r)),1;s=0;var i=a===""?".":a+":";if(SI(e))for(var l=0;l<e.length;l++)a=e[l],o=i+Cw(a,l),s+=Wc(a,t,n,o,r);else if(l=H5(e),typeof l=="function")for(e=l.call(e),l=0;!(a=e.next()).done;)a=a.value,o=i+Cw(a,l++),s+=Wc(a,t,n,o,r);else if(o==="object"){if(typeof e.then=="function")return Wc(W5(e),t,n,a,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function Gh(e,t,n){if(e==null)return e;var a=[],r=0;return Wc(e,a,"","",function(o){return t.call(n,o,r++)}),a}function X5(e){if(e._status===-1){var t=e._result,n=t();n.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a,n.status===void 0&&(n.status="fulfilled",n.value=a))},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a,n.status===void 0&&(n.status="rejected",n.reason=a))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var $I=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function AI(e){var t=Tt.T,n={};n.types=t!==null?t.types:null,Tt.T=n;try{var a=e(),r=Tt.S;r!==null&&r(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(ww,$I)}catch(o){$I(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),Tt.T=t}}function PI(e){var t=Tt.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else AI(PI.bind(null,e))}var Y5={map:Gh,forEach:function(e,t,n){Gh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gh(e,function(){t++}),t},toArray:function(e){return Gh(e,function(t){return t})||[]},only:function(e){if(!Lw(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Me.Activity=z5;Me.Children=Y5;Me.Component=Xc;Me.Fragment=P5;Me.Profiler=D5;Me.PureComponent=Sw;Me.StrictMode=M5;Me.Suspense=F5;Me.ViewTransition=q5;Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Tt;Me.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Tt.H.useMemoCache(e)}};Me.addTransitionType=PI;Me.cache=function(e){return function(){return e.apply(null,arguments)}};Me.cacheSignal=function(){return null};Me.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=II({},e.props),r=e.key;if(t!=null)for(o in t.key!==void 0&&(r=""+t.key),t)!EI.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(a[o]=t[o]);var o=arguments.length-2;if(o===1)a.children=n;else if(1<o){for(var s=Array(o),i=0;i<o;i++)s[i]=arguments[i+2];a.children=s}return $w(e.type,r,a)};Me.createContext=function(e){return e={$$typeof:O5,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:N5,_context:e},e};Me.createElement=function(e,t,n){var a,r={},o=null;if(t!=null)for(a in t.key!==void 0&&(o=""+t.key),t)EI.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(r[a]=t[a]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var i=Array(s),l=0;l<s;l++)i[l]=arguments[l+2];r.children=i}if(e&&e.defaultProps)for(a in s=e.defaultProps,s)r[a]===void 0&&(r[a]=s[a]);return $w(e,o,r)};Me.createRef=function(){return{current:null}};Me.forwardRef=function(e){return{$$typeof:B5,render:e}};Me.isValidElement=Lw;Me.lazy=function(e){return{$$typeof:LI,_payload:{_status:-1,_result:e},_init:X5}};Me.memo=function(e,t){return{$$typeof:V5,type:e,compare:t===void 0?null:t}};Me.startTransition=AI;Me.unstable_useCacheRefresh=function(){return Tt.H.useCacheRefresh()};Me.use=function(e){return Tt.H.use(e)};Me.useActionState=function(e,t,n){return Tt.H.useActionState(e,t,n)};Me.useCallback=function(e,t){return Tt.H.useCallback(e,t)};Me.useContext=function(e){return Tt.H.useContext(e)};Me.useDebugValue=function(){};Me.useDeferredValue=function(e,t){return Tt.H.useDeferredValue(e,t)};Me.useEffect=function(e,t){return Tt.H.useEffect(e,t)};Me.useEffectEvent=function(e){return Tt.H.useEffectEvent(e)};Me.useId=function(){return Tt.H.useId()};Me.useImperativeHandle=function(e,t,n){return Tt.H.useImperativeHandle(e,t,n)};Me.useInsertionEffect=function(e,t){return Tt.H.useInsertionEffect(e,t)};Me.useLayoutEffect=function(e,t){return Tt.H.useLayoutEffect(e,t)};Me.useMemo=function(e,t){return Tt.H.useMemo(e,t)};Me.useOptimistic=function(e,t){return Tt.H.useOptimistic(e,t)};Me.useReducer=function(e,t,n){return Tt.H.useReducer(e,t,n)};Me.useRef=function(e){return Tt.H.useRef(e)};Me.useState=function(e){return Tt.H.useState(e)};Me.useSyncExternalStore=function(e,t,n){return Tt.H.useSyncExternalStore(e,t,n)};Me.useTransition=function(){return Tt.H.useTransition()};Me.version="19.3.0"});var A=Pa((Uae,DI)=>{"use strict";DI.exports=MI()});var GI=Pa(Vt=>{"use strict";function Tw(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,r=e[a];if(0<Wh(r,t))e[a]=t,e[n]=r,n=a;else break e}}function Co(e){return e.length===0?null:e[0]}function Yh(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,r=e.length,o=r>>>1;a<o;){var s=2*(a+1)-1,i=e[s],l=s+1,u=e[l];if(0>Wh(i,n))l<r&&0>Wh(u,i)?(e[a]=u,e[l]=n,a=l):(e[a]=i,e[s]=n,a=s);else if(l<r&&0>Wh(u,n))e[a]=u,e[l]=n,a=l;else break e}}return t}function Wh(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}Vt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(NI=performance,Vt.unstable_now=function(){return NI.now()}):(Rw=Date,OI=Rw.now(),Vt.unstable_now=function(){return Rw.now()-OI});var NI,Rw,OI,ds=[],di=[],Z5=1,vr=null,ra=3,Ew=!1,km=!1,$m=!1,Aw=!1,VI=typeof setTimeout=="function"?setTimeout:null,zI=typeof clearTimeout=="function"?clearTimeout:null,BI=typeof setImmediate<"u"?setImmediate:null;function Xh(e){for(var t=Co(di);t!==null;){if(t.callback===null)Yh(di);else if(t.startTime<=e)Yh(di),t.sortIndex=t.expirationTime,Tw(ds,t);else break;t=Co(di)}}function Pw(e){if($m=!1,Xh(e),!km)if(Co(ds)!==null)km=!0,Zc||(Zc=!0,Yc());else{var t=Co(di);t!==null&&Mw(Pw,t.startTime-e)}}var Zc=!1,Lm=-1,qI=5,HI=-1;function UI(){return Aw?!0:!(Vt.unstable_now()-HI<qI)}function Iw(){if(Aw=!1,Zc){var e=Vt.unstable_now();HI=e;var t=!0;try{e:{km=!1,$m&&($m=!1,zI(Lm),Lm=-1),Ew=!0;var n=ra;try{t:{for(Xh(e),vr=Co(ds);vr!==null&&!(vr.expirationTime>e&&UI());){var a=vr.callback;if(typeof a=="function"){vr.callback=null,ra=vr.priorityLevel;var r=a(vr.expirationTime<=e);if(e=Vt.unstable_now(),typeof r=="function"){vr.callback=r,Xh(e),t=!0;break t}vr===Co(ds)&&Yh(ds),Xh(e)}else Yh(ds);vr=Co(ds)}if(vr!==null)t=!0;else{var o=Co(di);o!==null&&Mw(Pw,o.startTime-e),t=!1}}break e}finally{vr=null,ra=n,Ew=!1}t=void 0}}finally{t?Yc():Zc=!1}}}var Yc;typeof BI=="function"?Yc=function(){BI(Iw)}:typeof MessageChannel<"u"?(jw=new MessageChannel,FI=jw.port2,jw.port1.onmessage=Iw,Yc=function(){FI.postMessage(null)}):Yc=function(){VI(Iw,0)};var jw,FI;function Mw(e,t){Lm=VI(function(){e(Vt.unstable_now())},t)}Vt.unstable_IdlePriority=5;Vt.unstable_ImmediatePriority=1;Vt.unstable_LowPriority=4;Vt.unstable_NormalPriority=3;Vt.unstable_Profiling=null;Vt.unstable_UserBlockingPriority=2;Vt.unstable_cancelCallback=function(e){e.callback=null};Vt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):qI=0<e?Math.floor(1e3/e):5};Vt.unstable_getCurrentPriorityLevel=function(){return ra};Vt.unstable_next=function(e){switch(ra){case 1:case 2:case 3:var t=3;break;default:t=ra}var n=ra;ra=t;try{return e()}finally{ra=n}};Vt.unstable_requestPaint=function(){Aw=!0};Vt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=ra;ra=e;try{return t()}finally{ra=n}};Vt.unstable_scheduleCallback=function(e,t,n){var a=Vt.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?a+n:a):n=a,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=n+r,e={id:Z5++,callback:t,priorityLevel:e,startTime:n,expirationTime:r,sortIndex:-1},n>a?(e.sortIndex=n,Tw(di,e),Co(ds)===null&&e===Co(di)&&($m?(zI(Lm),Lm=-1):$m=!0,Mw(Pw,n-a))):(e.sortIndex=r,Tw(ds,e),km||Ew||(km=!0,Zc||(Zc=!0,Yc()))),e};Vt.unstable_shouldYield=UI;Vt.unstable_wrapCallback=function(e){var t=ra;return function(){var n=ra;ra=t;try{return e.apply(this,arguments)}finally{ra=n}}}});var XI=Pa((Wae,WI)=>{"use strict";WI.exports=GI()});var KI=Pa(oa=>{"use strict";var K5=A();function ZI(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function fi(){}var xa={d:{f:fi,r:function(){throw Error(ZI(522))},D:fi,C:fi,L:fi,m:fi,X:fi,S:fi,M:fi},p:0,findDOMNode:null},Q5=Symbol.for("react.portal"),J5=Symbol.for("react.recoverable"),YI=Symbol.for("react.optimistic_key");function eU(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Q5,key:a==null?null:a===YI?YI:""+a,children:e,containerInfo:t,implementation:n}}var Rm=K5.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Zh(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}oa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xa;oa.browser=function(e){return{$$typeof:J5,_reason:e}};oa.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(ZI(299));return eU(e,t,null,n)};oa.flushSync=function(e){var t=Rm.T,n=xa.p;try{if(Rm.T=null,xa.p=2,e)return e()}finally{Rm.T=t,xa.p=n,xa.d.f()}};oa.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,xa.d.C(e,t))};oa.prefetchDNS=function(e){typeof e=="string"&&xa.d.D(e)};oa.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,a=Zh(n,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?xa.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:r,fetchPriority:o}):n==="script"&&xa.d.X(e,{crossOrigin:a,integrity:r,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};oa.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Zh(t.as,t.crossOrigin);xa.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&xa.d.M(e)};oa.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,a=Zh(n,t.crossOrigin);xa.d.L(e,n,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};oa.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Zh(t.as,t.crossOrigin);xa.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else xa.d.m(e)};oa.requestFormReset=function(e){xa.d.r(e)};oa.unstable_batchedUpdates=function(e,t){return e(t)};oa.useFormState=function(e,t,n){return Rm.H.useFormState(e,t,n)};oa.useFormStatus=function(){return Rm.H.useHostTransitionStatus()};oa.version="19.3.0"});var wo=Pa((Yae,JI)=>{"use strict";function QI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QI)}catch(e){console.error(e)}}QI(),JI.exports=KI()});var B2=Pa(Ty=>{"use strict";var kn=XI(),OT=A(),tU=wo();function K(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function BT(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function gp(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function FT(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function VT(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ej(e){if(gp(e)!==e)throw Error(K(188))}function nU(e){var t=e.alternate;if(!t){if(t=gp(e),t===null)throw Error(K(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(a=r.return,a!==null){n=a;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return ej(r),e;if(o===a)return ej(r),t;o=o.sibling}throw Error(K(188))}if(n.return!==a.return)n=r,a=o;else{for(var s=!1,i=r.child;i;){if(i===n){s=!0,n=r,a=o;break}if(i===a){s=!0,a=r,n=o;break}i=i.sibling}if(!s){for(i=o.child;i;){if(i===n){s=!0,n=o,a=r;break}if(i===a){s=!0,a=o,n=r;break}i=i.sibling}if(!s)throw Error(K(189))}}if(n.alternate!==a)throw Error(K(190))}if(n.tag!==3)throw Error(K(188));return n.stateNode.current===n?e:t}function zT(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=zT(e),t!==null)return t;e=e.sibling}return null}function Fa(e,t,n,a,r,o){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,a,r,o)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Fa(e.child,t,n,a,r,o))return!0;e=e.sibling}return!1}function Su(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function tj(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function qT(e){var t=[null,null],n=Su(e);return n===null||HT(t,e,n.child,{foundSelf:!1}),t}function HT(e,t,n,a){for(;n!==null;){if(n===t)a.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(a.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&HT(e,t,n.child,a))return!0;n=n.sibling}return!1}function Sn(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(K(559))}}var ad=null,m_=null;function aU(e,t,n){return e===n?!0:e===t?(ad=e,!0):!1}function rU(e,t,n){return e===n?(m_=e,!1):e===t?(m_!==null&&(ad=e),!0):!1}function nj(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function p_(e,t,n){for(var a=0,r=e;r;r=n(r))a++;r=0;for(var o=t;o;o=n(o))r++;for(;0<a-r;)e=n(e),a--;for(;0<r-a;)t=n(t),r--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var $t=Object.assign,oU=Symbol.for("react.element"),Kh=Symbol.for("react.transitional.element"),Mm=Symbol.for("react.portal"),rd=Symbol.for("react.fragment"),UT=Symbol.for("react.strict_mode"),g_=Symbol.for("react.profiler"),GT=Symbol.for("react.consumer"),Ro=Symbol.for("react.context"),SS=Symbol.for("react.forward_ref"),h_=Symbol.for("react.suspense"),b_=Symbol.for("react.suspense_list"),kS=Symbol.for("react.memo"),hi=Symbol.for("react.lazy");Symbol.for("react.scope");var y_=Symbol.for("react.activity"),sU=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var iU=Symbol.for("react.memo_cache_sentinel"),x_=Symbol.for("react.view_transition"),lU=Symbol.for("react.recoverable"),aj=Symbol.iterator;function Im(e){return e===null||typeof e!="object"?null:(e=aj&&e[aj]||e["@@iterator"],typeof e=="function"?e:null)}var uU=Symbol.for("react.client.reference");function v_(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===uU?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rd:return"Fragment";case g_:return"Profiler";case UT:return"StrictMode";case h_:return"Suspense";case b_:return"SuspenseList";case y_:return"Activity";case x_:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Mm:return"Portal";case Ro:return e.displayName||"Context";case GT:return(e._context.displayName||"Context")+".Consumer";case SS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kS:return t=e.displayName||null,t!==null?t:v_(e.type)||"Memo";case hi:t=e._payload,e=e._init;try{return v_(e(t))}catch{}}return null}var Dm=Array.isArray,Ee=OT.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ut=tU.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,du={pending:!1,data:null,method:null,action:null},C_=[],od=-1;function Mo(e){return{current:e}}function Wn(e){0>od||(e.current=C_[od],C_[od]=null,od--)}function Pt(e,t){od++,C_[od]=e.current,e.current=t}var Eo=Mo(null),Jm=Mo(null),ki=Mo(null),Nb=Mo(null);function Ob(e,t){switch(Pt(ki,t),Pt(Jm,e),Pt(Eo,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bT(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=bT(t),e=p2(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Wn(Eo),Pt(Eo,e)}function kd(){Wn(Eo),Wn(Jm),Wn(ki)}function w_(e){var t=e.memoizedState;t!==null&&(Md._currentValue=t.memoizedState,Pt(Nb,e)),t=Eo.current;var n=p2(t,e.type);t!==n&&(Pt(Jm,e),Pt(Eo,n))}function Bb(e){Jm.current===e&&(Wn(Eo),Wn(Jm)),Nb.current===e&&(Wn(Nb),Md._currentValue=du)}var Dw,rj;function pi(e){if(Dw===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Dw=t&&t[1]||"",rj=-1<n.stack.indexOf(`
|
|
1
|
+
var L5=Object.create;var vw=Object.defineProperty;var R5=Object.getOwnPropertyDescriptor;var I5=Object.getOwnPropertyNames;var j5=Object.getPrototypeOf,T5=Object.prototype.hasOwnProperty;var Pa=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),aa=(e,t)=>{for(var n in t)vw(e,n,{get:t[n],enumerable:!0})},E5=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of I5(t))!T5.call(e,r)&&r!==n&&vw(e,r,{get:()=>t[r],enumerable:!(a=R5(t,r))||a.enumerable});return e};var k=(e,t,n)=>(n=e!=null?L5(j5(e)):{},E5(t||!e||!e.__esModule?vw(n,"default",{value:e,enumerable:!0}):n,e));var MI=Pa(Me=>{"use strict";var _w=Symbol.for("react.transitional.element"),A5=Symbol.for("react.portal"),P5=Symbol.for("react.fragment"),M5=Symbol.for("react.strict_mode"),D5=Symbol.for("react.profiler"),N5=Symbol.for("react.consumer"),O5=Symbol.for("react.context"),B5=Symbol.for("react.forward_ref"),F5=Symbol.for("react.suspense"),V5=Symbol.for("react.memo"),LI=Symbol.for("react.lazy"),z5=Symbol.for("react.activity"),q5=Symbol.for("react.view_transition"),_I=Symbol.iterator;function H5(e){return e===null||typeof e!="object"?null:(e=_I&&e[_I]||e["@@iterator"],typeof e=="function"?e:null)}var RI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},II=Object.assign,jI={};function Xc(e,t,n){this.props=e,this.context=t,this.refs=jI,this.updater=n||RI}Xc.prototype.isReactComponent={};Xc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Xc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function TI(){}TI.prototype=Xc.prototype;function Sw(e,t,n){this.props=e,this.context=t,this.refs=jI,this.updater=n||RI}var kw=Sw.prototype=new TI;kw.constructor=Sw;II(kw,Xc.prototype);kw.isPureReactComponent=!0;var SI=Array.isArray;function ww(){}var Tt={H:null,A:null,T:null,S:null},EI=Object.prototype.hasOwnProperty;function $w(e,t,n){var a=n.ref;return{$$typeof:_w,type:e,key:t,ref:a!==void 0?a:null,props:n}}function U5(e,t){return $w(e.type,t,e.props)}function Lw(e){return typeof e=="object"&&e!==null&&e.$$typeof===_w}function G5(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var kI=/\/+/g;function Cw(e,t){return typeof e=="object"&&e!==null&&e.key!=null?G5(""+e.key):t.toString(36)}function W5(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(ww,ww):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Wc(e,t,n,a,r){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case _w:case A5:s=!0;break;case LI:return s=e._init,Wc(s(e._payload),t,n,a,r)}}if(s)return r=r(e),s=a===""?"."+Cw(e,0):a,SI(r)?(n="",s!=null&&(n=s.replace(kI,"$&/")+"/"),Wc(r,t,n,"",function(u){return u})):r!=null&&(Lw(r)&&(r=U5(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(kI,"$&/")+"/")+s)),t.push(r)),1;s=0;var i=a===""?".":a+":";if(SI(e))for(var l=0;l<e.length;l++)a=e[l],o=i+Cw(a,l),s+=Wc(a,t,n,o,r);else if(l=H5(e),typeof l=="function")for(e=l.call(e),l=0;!(a=e.next()).done;)a=a.value,o=i+Cw(a,l++),s+=Wc(a,t,n,o,r);else if(o==="object"){if(typeof e.then=="function")return Wc(W5(e),t,n,a,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function Gh(e,t,n){if(e==null)return e;var a=[],r=0;return Wc(e,a,"","",function(o){return t.call(n,o,r++)}),a}function X5(e){if(e._status===-1){var t=e._result,n=t();n.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a,n.status===void 0&&(n.status="fulfilled",n.value=a))},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a,n.status===void 0&&(n.status="rejected",n.reason=a))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var $I=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function AI(e){var t=Tt.T,n={};n.types=t!==null?t.types:null,Tt.T=n;try{var a=e(),r=Tt.S;r!==null&&r(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(ww,$I)}catch(o){$I(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),Tt.T=t}}function PI(e){var t=Tt.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else AI(PI.bind(null,e))}var Y5={map:Gh,forEach:function(e,t,n){Gh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gh(e,function(){t++}),t},toArray:function(e){return Gh(e,function(t){return t})||[]},only:function(e){if(!Lw(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Me.Activity=z5;Me.Children=Y5;Me.Component=Xc;Me.Fragment=P5;Me.Profiler=D5;Me.PureComponent=Sw;Me.StrictMode=M5;Me.Suspense=F5;Me.ViewTransition=q5;Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Tt;Me.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Tt.H.useMemoCache(e)}};Me.addTransitionType=PI;Me.cache=function(e){return function(){return e.apply(null,arguments)}};Me.cacheSignal=function(){return null};Me.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=II({},e.props),r=e.key;if(t!=null)for(o in t.key!==void 0&&(r=""+t.key),t)!EI.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(a[o]=t[o]);var o=arguments.length-2;if(o===1)a.children=n;else if(1<o){for(var s=Array(o),i=0;i<o;i++)s[i]=arguments[i+2];a.children=s}return $w(e.type,r,a)};Me.createContext=function(e){return e={$$typeof:O5,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:N5,_context:e},e};Me.createElement=function(e,t,n){var a,r={},o=null;if(t!=null)for(a in t.key!==void 0&&(o=""+t.key),t)EI.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(r[a]=t[a]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var i=Array(s),l=0;l<s;l++)i[l]=arguments[l+2];r.children=i}if(e&&e.defaultProps)for(a in s=e.defaultProps,s)r[a]===void 0&&(r[a]=s[a]);return $w(e,o,r)};Me.createRef=function(){return{current:null}};Me.forwardRef=function(e){return{$$typeof:B5,render:e}};Me.isValidElement=Lw;Me.lazy=function(e){return{$$typeof:LI,_payload:{_status:-1,_result:e},_init:X5}};Me.memo=function(e,t){return{$$typeof:V5,type:e,compare:t===void 0?null:t}};Me.startTransition=AI;Me.unstable_useCacheRefresh=function(){return Tt.H.useCacheRefresh()};Me.use=function(e){return Tt.H.use(e)};Me.useActionState=function(e,t,n){return Tt.H.useActionState(e,t,n)};Me.useCallback=function(e,t){return Tt.H.useCallback(e,t)};Me.useContext=function(e){return Tt.H.useContext(e)};Me.useDebugValue=function(){};Me.useDeferredValue=function(e,t){return Tt.H.useDeferredValue(e,t)};Me.useEffect=function(e,t){return Tt.H.useEffect(e,t)};Me.useEffectEvent=function(e){return Tt.H.useEffectEvent(e)};Me.useId=function(){return Tt.H.useId()};Me.useImperativeHandle=function(e,t,n){return Tt.H.useImperativeHandle(e,t,n)};Me.useInsertionEffect=function(e,t){return Tt.H.useInsertionEffect(e,t)};Me.useLayoutEffect=function(e,t){return Tt.H.useLayoutEffect(e,t)};Me.useMemo=function(e,t){return Tt.H.useMemo(e,t)};Me.useOptimistic=function(e,t){return Tt.H.useOptimistic(e,t)};Me.useReducer=function(e,t,n){return Tt.H.useReducer(e,t,n)};Me.useRef=function(e){return Tt.H.useRef(e)};Me.useState=function(e){return Tt.H.useState(e)};Me.useSyncExternalStore=function(e,t,n){return Tt.H.useSyncExternalStore(e,t,n)};Me.useTransition=function(){return Tt.H.useTransition()};Me.version="19.3.0"});var A=Pa((Uae,DI)=>{"use strict";DI.exports=MI()});var GI=Pa(zt=>{"use strict";function Tw(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,r=e[a];if(0<Wh(r,t))e[a]=t,e[n]=r,n=a;else break e}}function Co(e){return e.length===0?null:e[0]}function Yh(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,r=e.length,o=r>>>1;a<o;){var s=2*(a+1)-1,i=e[s],l=s+1,u=e[l];if(0>Wh(i,n))l<r&&0>Wh(u,i)?(e[a]=u,e[l]=n,a=l):(e[a]=i,e[s]=n,a=s);else if(l<r&&0>Wh(u,n))e[a]=u,e[l]=n,a=l;else break e}}return t}function Wh(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}zt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(NI=performance,zt.unstable_now=function(){return NI.now()}):(Rw=Date,OI=Rw.now(),zt.unstable_now=function(){return Rw.now()-OI});var NI,Rw,OI,ds=[],di=[],Z5=1,vr=null,ra=3,Ew=!1,km=!1,$m=!1,Aw=!1,VI=typeof setTimeout=="function"?setTimeout:null,zI=typeof clearTimeout=="function"?clearTimeout:null,BI=typeof setImmediate<"u"?setImmediate:null;function Xh(e){for(var t=Co(di);t!==null;){if(t.callback===null)Yh(di);else if(t.startTime<=e)Yh(di),t.sortIndex=t.expirationTime,Tw(ds,t);else break;t=Co(di)}}function Pw(e){if($m=!1,Xh(e),!km)if(Co(ds)!==null)km=!0,Zc||(Zc=!0,Yc());else{var t=Co(di);t!==null&&Mw(Pw,t.startTime-e)}}var Zc=!1,Lm=-1,qI=5,HI=-1;function UI(){return Aw?!0:!(zt.unstable_now()-HI<qI)}function Iw(){if(Aw=!1,Zc){var e=zt.unstable_now();HI=e;var t=!0;try{e:{km=!1,$m&&($m=!1,zI(Lm),Lm=-1),Ew=!0;var n=ra;try{t:{for(Xh(e),vr=Co(ds);vr!==null&&!(vr.expirationTime>e&&UI());){var a=vr.callback;if(typeof a=="function"){vr.callback=null,ra=vr.priorityLevel;var r=a(vr.expirationTime<=e);if(e=zt.unstable_now(),typeof r=="function"){vr.callback=r,Xh(e),t=!0;break t}vr===Co(ds)&&Yh(ds),Xh(e)}else Yh(ds);vr=Co(ds)}if(vr!==null)t=!0;else{var o=Co(di);o!==null&&Mw(Pw,o.startTime-e),t=!1}}break e}finally{vr=null,ra=n,Ew=!1}t=void 0}}finally{t?Yc():Zc=!1}}}var Yc;typeof BI=="function"?Yc=function(){BI(Iw)}:typeof MessageChannel<"u"?(jw=new MessageChannel,FI=jw.port2,jw.port1.onmessage=Iw,Yc=function(){FI.postMessage(null)}):Yc=function(){VI(Iw,0)};var jw,FI;function Mw(e,t){Lm=VI(function(){e(zt.unstable_now())},t)}zt.unstable_IdlePriority=5;zt.unstable_ImmediatePriority=1;zt.unstable_LowPriority=4;zt.unstable_NormalPriority=3;zt.unstable_Profiling=null;zt.unstable_UserBlockingPriority=2;zt.unstable_cancelCallback=function(e){e.callback=null};zt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):qI=0<e?Math.floor(1e3/e):5};zt.unstable_getCurrentPriorityLevel=function(){return ra};zt.unstable_next=function(e){switch(ra){case 1:case 2:case 3:var t=3;break;default:t=ra}var n=ra;ra=t;try{return e()}finally{ra=n}};zt.unstable_requestPaint=function(){Aw=!0};zt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=ra;ra=e;try{return t()}finally{ra=n}};zt.unstable_scheduleCallback=function(e,t,n){var a=zt.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?a+n:a):n=a,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=n+r,e={id:Z5++,callback:t,priorityLevel:e,startTime:n,expirationTime:r,sortIndex:-1},n>a?(e.sortIndex=n,Tw(di,e),Co(ds)===null&&e===Co(di)&&($m?(zI(Lm),Lm=-1):$m=!0,Mw(Pw,n-a))):(e.sortIndex=r,Tw(ds,e),km||Ew||(km=!0,Zc||(Zc=!0,Yc()))),e};zt.unstable_shouldYield=UI;zt.unstable_wrapCallback=function(e){var t=ra;return function(){var n=ra;ra=t;try{return e.apply(this,arguments)}finally{ra=n}}}});var XI=Pa((Wae,WI)=>{"use strict";WI.exports=GI()});var KI=Pa(oa=>{"use strict";var K5=A();function ZI(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function fi(){}var xa={d:{f:fi,r:function(){throw Error(ZI(522))},D:fi,C:fi,L:fi,m:fi,X:fi,S:fi,M:fi},p:0,findDOMNode:null},Q5=Symbol.for("react.portal"),J5=Symbol.for("react.recoverable"),YI=Symbol.for("react.optimistic_key");function eU(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Q5,key:a==null?null:a===YI?YI:""+a,children:e,containerInfo:t,implementation:n}}var Rm=K5.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Zh(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}oa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xa;oa.browser=function(e){return{$$typeof:J5,_reason:e}};oa.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(ZI(299));return eU(e,t,null,n)};oa.flushSync=function(e){var t=Rm.T,n=xa.p;try{if(Rm.T=null,xa.p=2,e)return e()}finally{Rm.T=t,xa.p=n,xa.d.f()}};oa.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,xa.d.C(e,t))};oa.prefetchDNS=function(e){typeof e=="string"&&xa.d.D(e)};oa.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,a=Zh(n,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?xa.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:r,fetchPriority:o}):n==="script"&&xa.d.X(e,{crossOrigin:a,integrity:r,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};oa.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Zh(t.as,t.crossOrigin);xa.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&xa.d.M(e)};oa.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,a=Zh(n,t.crossOrigin);xa.d.L(e,n,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};oa.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Zh(t.as,t.crossOrigin);xa.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else xa.d.m(e)};oa.requestFormReset=function(e){xa.d.r(e)};oa.unstable_batchedUpdates=function(e,t){return e(t)};oa.useFormState=function(e,t,n){return Rm.H.useFormState(e,t,n)};oa.useFormStatus=function(){return Rm.H.useHostTransitionStatus()};oa.version="19.3.0"});var wo=Pa((Yae,JI)=>{"use strict";function QI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QI)}catch(e){console.error(e)}}QI(),JI.exports=KI()});var B2=Pa(Ty=>{"use strict";var kn=XI(),OT=A(),tU=wo();function K(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function BT(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function gp(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function FT(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function VT(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ej(e){if(gp(e)!==e)throw Error(K(188))}function nU(e){var t=e.alternate;if(!t){if(t=gp(e),t===null)throw Error(K(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(a=r.return,a!==null){n=a;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return ej(r),e;if(o===a)return ej(r),t;o=o.sibling}throw Error(K(188))}if(n.return!==a.return)n=r,a=o;else{for(var s=!1,i=r.child;i;){if(i===n){s=!0,n=r,a=o;break}if(i===a){s=!0,a=r,n=o;break}i=i.sibling}if(!s){for(i=o.child;i;){if(i===n){s=!0,n=o,a=r;break}if(i===a){s=!0,a=o,n=r;break}i=i.sibling}if(!s)throw Error(K(189))}}if(n.alternate!==a)throw Error(K(190))}if(n.tag!==3)throw Error(K(188));return n.stateNode.current===n?e:t}function zT(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=zT(e),t!==null)return t;e=e.sibling}return null}function Fa(e,t,n,a,r,o){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,a,r,o)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Fa(e.child,t,n,a,r,o))return!0;e=e.sibling}return!1}function Su(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function tj(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function qT(e){var t=[null,null],n=Su(e);return n===null||HT(t,e,n.child,{foundSelf:!1}),t}function HT(e,t,n,a){for(;n!==null;){if(n===t)a.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(a.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&HT(e,t,n.child,a))return!0;n=n.sibling}return!1}function Sn(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(K(559))}}var ad=null,m_=null;function aU(e,t,n){return e===n?!0:e===t?(ad=e,!0):!1}function rU(e,t,n){return e===n?(m_=e,!1):e===t?(m_!==null&&(ad=e),!0):!1}function nj(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function p_(e,t,n){for(var a=0,r=e;r;r=n(r))a++;r=0;for(var o=t;o;o=n(o))r++;for(;0<a-r;)e=n(e),a--;for(;0<r-a;)t=n(t),r--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var $t=Object.assign,oU=Symbol.for("react.element"),Kh=Symbol.for("react.transitional.element"),Mm=Symbol.for("react.portal"),rd=Symbol.for("react.fragment"),UT=Symbol.for("react.strict_mode"),g_=Symbol.for("react.profiler"),GT=Symbol.for("react.consumer"),Ro=Symbol.for("react.context"),SS=Symbol.for("react.forward_ref"),h_=Symbol.for("react.suspense"),b_=Symbol.for("react.suspense_list"),kS=Symbol.for("react.memo"),hi=Symbol.for("react.lazy");Symbol.for("react.scope");var y_=Symbol.for("react.activity"),sU=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var iU=Symbol.for("react.memo_cache_sentinel"),x_=Symbol.for("react.view_transition"),lU=Symbol.for("react.recoverable"),aj=Symbol.iterator;function Im(e){return e===null||typeof e!="object"?null:(e=aj&&e[aj]||e["@@iterator"],typeof e=="function"?e:null)}var uU=Symbol.for("react.client.reference");function v_(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===uU?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rd:return"Fragment";case g_:return"Profiler";case UT:return"StrictMode";case h_:return"Suspense";case b_:return"SuspenseList";case y_:return"Activity";case x_:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Mm:return"Portal";case Ro:return e.displayName||"Context";case GT:return(e._context.displayName||"Context")+".Consumer";case SS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kS:return t=e.displayName||null,t!==null?t:v_(e.type)||"Memo";case hi:t=e._payload,e=e._init;try{return v_(e(t))}catch{}}return null}var Dm=Array.isArray,Ee=OT.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ut=tU.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,du={pending:!1,data:null,method:null,action:null},C_=[],od=-1;function Mo(e){return{current:e}}function Wn(e){0>od||(e.current=C_[od],C_[od]=null,od--)}function Pt(e,t){od++,C_[od]=e.current,e.current=t}var Eo=Mo(null),Jm=Mo(null),ki=Mo(null),Nb=Mo(null);function Ob(e,t){switch(Pt(ki,t),Pt(Jm,e),Pt(Eo,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bT(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=bT(t),e=p2(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Wn(Eo),Pt(Eo,e)}function kd(){Wn(Eo),Wn(Jm),Wn(ki)}function w_(e){var t=e.memoizedState;t!==null&&(Md._currentValue=t.memoizedState,Pt(Nb,e)),t=Eo.current;var n=p2(t,e.type);t!==n&&(Pt(Jm,e),Pt(Eo,n))}function Bb(e){Jm.current===e&&(Wn(Eo),Wn(Jm)),Nb.current===e&&(Wn(Nb),Md._currentValue=du)}var Dw,rj;function pi(e){if(Dw===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Dw=t&&t[1]||"",rj=-1<n.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
3
|
`+Dw+e+rj}var Nw=!1;function Ow(e,t){if(!e||Nw)return"";Nw=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(p){var f=p}Reflect.construct(e,[],d)}else{try{d.call()}catch(p){f=p}d=!1;try{var m=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),d=!0,new e}finally{d&&(m!==void 0?Object.defineProperty(e.prototype,"props",m):delete e.prototype.props)}}}else{try{throw Error()}catch(p){f=p}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(p){if(p&&f&&typeof p.stack=="string")return[p.stack,f.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),s=o[0],i=o[1];if(s&&i){var l=s.split(`
|
|
4
4
|
`),u=i.split(`
|
|
5
5
|
`);for(r=a=0;a<l.length&&!l[a].includes("DetermineComponentFrameRoot");)a++;for(;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;if(a===l.length||r===u.length)for(a=l.length-1,r=u.length-1;1<=a&&0<=r&&l[a]!==u[r];)r--;for(;1<=a&&0<=r;a--,r--)if(l[a]!==u[r]){if(a!==1||r!==1)do if(a--,r--,0>r||l[a]!==u[r]){var c=`
|
|
6
6
|
`+l[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=r);break}}}finally{Nw=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?pi(n):""}function cU(e,t){switch(e.tag){case 26:case 27:case 5:return pi(e.type);case 16:return pi("Lazy");case 13:return e.child!==t&&t!==null?pi("Suspense Fallback"):pi("Suspense");case 19:return pi("SuspenseList");case 0:case 15:return Ow(e.type,!1);case 11:return Ow(e.type.render,!1);case 1:return Ow(e.type,!0);case 31:return pi("Activity");case 30:return pi("ViewTransition");default:return""}}function oj(e){try{var t="",n=null;do t+=cU(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
7
|
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var __=Object.prototype.hasOwnProperty,$S=kn.unstable_scheduleCallback,Bw=kn.unstable_cancelCallback,dU=kn.unstable_shouldYield,fU=kn.unstable_requestPaint,sr=kn.unstable_now,mU=kn.unstable_getCurrentPriorityLevel,WT=kn.unstable_ImmediatePriority,XT=kn.unstable_UserBlockingPriority,Fb=kn.unstable_NormalPriority,pU=kn.unstable_LowPriority,YT=kn.unstable_IdlePriority,gU=kn.log,hU=kn.unstable_setDisableYieldValue,hp=null,ir=null;function xi(e){if(typeof gU=="function"&&hU(e),ir&&typeof ir.setStrictMode=="function")try{ir.setStrictMode(hp,e)}catch{}}var lr=Math.clz32?Math.clz32:xU,bU=Math.log,yU=Math.LN2;function xU(e){return e>>>=0,e===0?32:31-(bU(e)/yU|0)|0}var Qh=256,Jh=262144,eb=4194304;function su(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function fy(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var i=a&134217727;return i!==0?(a=i&~o,a!==0?r=su(a):(s&=i,s!==0?r=su(s):n||(n=i&~e,n!==0&&(r=su(n))))):(i=a&~o,i!==0?r=su(i):s!==0?r=su(s):n||(n=a&~e,n!==0&&(r=su(n)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:r}function bp(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ZT(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-lr(n),r=1<<a;t|=e[a],n&=~r}return t}function vU(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function KT(){var e=eb;return eb<<=1,(eb&62914560)===0&&(eb=4194304),e}function Fw(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yp(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function CU(e,t,n,a,r,o){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=s&~n;0<n;){var c=31-lr(n),d=1<<c;i[c]=0,l[c]=-1;var f=u[c];if(f!==null)for(u[c]=null,c=0;c<f.length;c++){var m=f[c];m!==null&&(m.lane&=-536870913)}n&=~d}a!==0&&QT(e,a,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(s&~t))}function QT(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-lr(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function JT(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-lr(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function eE(e,t){var n=t&-t;return n=(n&42)!==0?1:LS(n),(n&(e.suspendedLanes|t))!==0?0:n}function LS(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function RS(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function tE(){var e=ut.p;return e!==0?e:(e=window.event,e===void 0?32:D2(e.type))}function sj(e,t){var n=ut.p;try{return ut.p=e,t()}finally{ut.p=n}}var Ss=Math.random().toString(36).slice(2),Un="__reactFiber$"+Ss,Va="__reactProps$"+Ss,Od="__reactContainer$"+Ss,ij="__reactEvents$"+Ss,wU="__reactListeners$"+Ss,_U="__reactHandles$"+Ss,lj="__reactResources$"+Ss,xp="__reactMarker$"+Ss,Vb="__reactLoad$"+Ss;function my(e){delete e[Un],delete e[Va],delete e[wU],delete e[_U]}function uu(e){var t;if(t=e[Un])return t;for(var n=e.parentNode;n;){if(t=n[Od]||n[Un]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kT(e);e!==null;){if(n=e[Un])return n;e=kT(e)}return t}e=n,n=e.parentNode}return null}function Bd(e){if(e=e[Un]||e[Od]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Nm(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(K(33))}function gd(e){var t=e[lj];return t||(t=e[lj]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Mn(e){e[xp]=!0}function nE(e){e[Vb]=void 0}var aE=new Set,rE={};function ku(e,t){$d(e,t),$d(e+"Capture",t)}function $d(e,t){for(rE[e]=t,e=0;e<t.length;e++)aE.add(t[e])}var SU=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),uj={},cj={};function kU(e){return __.call(cj,e)?!0:__.call(uj,e)?!1:SU.test(e)?cj[e]=!0:(uj[e]=!0,!1)}var ot=!1;function dj(){var e=ot;return ot=!1,e}function yb(e,t,n){if(kU(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function tb(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function fs(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,a)}}function nr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $U(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var r=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function S_(e){if(!e._valueTracker){var t=oE(e)?"checked":"value";e._valueTracker=$U(e,t,""+e[t])}}function sE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=oE(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}var LU=/[\n"\\]/g;function kr(e){return e.replace(LU,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function k_(e,t,n,a,r,o,s,i){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+nr(t)):e.value!==""+nr(t)&&(e.value=""+nr(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?s==="number"&&e.value==t?Vw(e,nr(e.value)):Vw(e,nr(t)):n!=null?Vw(e,nr(n)):a!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.name=""+nr(i):e.removeAttribute("name")}function iE(e,t,n,a,r,o,s,i){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){S_(e);return}n=n!=null?""+nr(n):"",t=t!=null?""+nr(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=i?e.checked:!!a,e.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),S_(e)}function Vw(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function hd(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+nr(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,a&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function lE(e,t,n){if(t!=null&&(t=""+nr(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+nr(n):""}function uE(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(K(92));if(Dm(a)){if(1<a.length)throw Error(K(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=nr(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),S_(e)}function Ld(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var RU=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function fj(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||RU.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function cE(e,t,n){if(t!=null&&typeof t!="object")throw Error(K(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",ot=!0);for(var r in t)a=t[r],t.hasOwnProperty(r)&&n[r]!==a&&(fj(e,r,a),ot=!0)}else for(var o in t)t.hasOwnProperty(o)&&fj(e,o,t[o])}function IS(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var IU=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),jU=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xb(e){return jU.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Io(){}var $_=null;function jS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sd=null,bd=null;function mj(e){var t=Bd(e);if(t&&(e=t.stateNode)){var n=e[Va]||null;e:switch(e=t.stateNode,t.type){case"input":if(k_(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+kr(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=a[Va]||null;if(!r)throw Error(K(90));k_(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&sE(a)}break e;case"textarea":lE(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&hd(e,!!n.multiple,t,!1)}}}var zw=!1;function dE(e,t,n){if(zw)return e(t,n);zw=!0;try{var a=e(t);return a}finally{if(zw=!1,(sd!==null||bd!==null)&&(Ly(),sd&&(t=sd,e=bd,bd=sd=null,mj(t),e)))for(t=0;t<e.length;t++)mj(e[t])}}function ep(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Va]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(K(231,t,typeof n));return n}var ys=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),L_=!1;if(ys)try{Kc={},Object.defineProperty(Kc,"passive",{get:function(){L_=!0}}),window.addEventListener("test",Kc,Kc),window.removeEventListener("test",Kc,Kc)}catch{L_=!1}var Kc,vi=null,TS=null,vb=null;function fE(){if(vb)return vb;var e,t=TS,n=t.length,a,r="value"in vi?vi.value:vi.textContent,o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var s=n-e;for(a=1;a<=s&&t[n-a]===r[o-a];a++);return vb=r.slice(e,1<a?1-a:void 0)}function Cb(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function nb(){return!0}function pj(){return!1}function _a(e){function t(n,a,r,o,s){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(o):o[i]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?nb:pj,this.isPropagationStopped=pj,this}return $t(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=nb)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=nb)},persist:function(){},isPersistent:nb}),t}var Fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},py=_a(Fi),vp=$t({},Fi,{view:0,detail:0}),TU=_a(vp),qw,Hw,jm,gy=$t({},vp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ES,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==jm&&(jm&&e.type==="mousemove"?(qw=e.screenX-jm.screenX,Hw=e.screenY-jm.screenY):Hw=qw=0,jm=e),qw)},movementY:function(e){return"movementY"in e?e.movementY:Hw}}),gj=_a(gy),EU=$t({},gy,{dataTransfer:0}),AU=_a(EU),PU=$t({},vp,{relatedTarget:0}),Uw=_a(PU),MU=$t({},Fi,{animationName:0,elapsedTime:0,pseudoElement:0}),DU=_a(MU),NU=$t({},Fi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OU=_a(NU),BU=$t({},Fi,{data:0}),hj=_a(BU),FU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VU={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"},zU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qU(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zU[e])?!!t[e]:!1}function ES(){return qU}var HU=$t({},vp,{key:function(e){if(e.key){var t=FU[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Cb(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?VU[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ES,charCode:function(e){return e.type==="keypress"?Cb(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cb(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),UU=_a(HU),GU=$t({},gy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bj=_a(GU),WU=$t({},Fi,{submitter:0}),XU=_a(WU),YU=$t({},vp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ES}),ZU=_a(YU),KU=$t({},Fi,{propertyName:0,elapsedTime:0,pseudoElement:0}),QU=_a(KU),JU=$t({},gy,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),eG=_a(JU),tG=$t({},Fi,{newState:0,oldState:0,source:0}),nG=_a(tG),aG=[9,13,27,32],AS=ys&&"CompositionEvent"in window,Fm=null;ys&&"documentMode"in document&&(Fm=document.documentMode);var rG=ys&&"TextEvent"in window&&!Fm,mE=ys&&(!AS||Fm&&8<Fm&&11>=Fm),yj=" ",xj=!1;function pE(e,t){switch(e){case"keyup":return aG.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var id=!1;function oG(e,t){switch(e){case"compositionend":return gE(t);case"keypress":return t.which!==32?null:(xj=!0,yj);case"textInput":return e=t.data,e===yj&&xj?null:e;default:return null}}function sG(e,t){if(id)return e==="compositionend"||!AS&&pE(e,t)?(e=fE(),vb=TS=vi=null,id=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return mE&&t.locale!=="ko"?null:t.data;default:return null}}var iG={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 vj(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iG[e.type]:t==="textarea"}function hE(e,t,n,a){sd?bd?bd.push(a):bd=[a]:sd=a,t=uy(t,"onChange"),0<t.length&&(n=new py("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Vm=null,tp=null;function lG(e){d2(e,0)}function hy(e){var t=Nm(e);if(sE(t))return e}function Cj(e,t){if(e==="change")return t}var bE=!1;ys&&(ys?(rb="oninput"in document,rb||(Gw=document.createElement("div"),Gw.setAttribute("oninput","return;"),rb=typeof Gw.oninput=="function"),ab=rb):ab=!1,bE=ab&&(!document.documentMode||9<document.documentMode));var ab,rb,Gw;function wj(){Vm&&(Vm.detachEvent("onpropertychange",yE),tp=Vm=null)}function yE(e){if(e.propertyName==="value"&&hy(tp)){var t=[];hE(t,tp,e,jS(e)),dE(lG,t)}}function uG(e,t,n){e==="focusin"?(wj(),Vm=t,tp=n,Vm.attachEvent("onpropertychange",yE)):e==="focusout"&&wj()}function cG(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hy(tp)}function dG(e,t){if(e==="click")return hy(t)}function fG(e,t){if(e==="input"||e==="change")return hy(t)}function mG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cr=typeof Object.is=="function"?Object.is:mG;function np(e,t){if(cr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!__.call(t,r)||!cr(e[r],t[r]))return!1}return!0}function R_(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function _j(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sj(e,t){var n=_j(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_j(n)}}function xE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vE(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=R_(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=R_(e.document)}return t}function PS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var pG=ys&&"documentMode"in document&&11>=document.documentMode,ld=null,I_=null,zm=null,j_=!1;function kj(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;j_||ld==null||ld!==R_(a)||(a=ld,"selectionStart"in a&&PS(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),zm&&np(zm,a)||(zm=a,a=uy(I_,"onSelect"),0<a.length&&(t=new py("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ld)))}function ru(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ud={animationend:ru("Animation","AnimationEnd"),animationiteration:ru("Animation","AnimationIteration"),animationstart:ru("Animation","AnimationStart"),transitionrun:ru("Transition","TransitionRun"),transitionstart:ru("Transition","TransitionStart"),transitioncancel:ru("Transition","TransitionCancel"),transitionend:ru("Transition","TransitionEnd")},Ww={},CE={};ys&&(CE=document.createElement("div").style,"AnimationEvent"in window||(delete ud.animationend.animation,delete ud.animationiteration.animation,delete ud.animationstart.animation),"TransitionEvent"in window||delete ud.transitionend.transition);function $u(e){if(Ww[e])return Ww[e];if(!ud[e])return e;var t=ud[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in CE)return Ww[e]=t[n];return e}var wE=$u("animationend"),_E=$u("animationiteration"),SE=$u("animationstart"),gG=$u("transitionrun"),hG=$u("transitionstart"),bG=$u("transitioncancel"),kE=$u("transitionend"),$E=new Map,T_="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");T_.push("scrollEnd");function ro(e,t){$E.set(e,t),ku(t,[e])}var yG=0;function xs(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=ao.identifierPrefix;var n=yG++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function $j(e){if(e==null||typeof e=="string")return e;var t=null,n=Sd;if(n!==null)for(var a=0;a<n.length;a++){var r=e[n[a]];if(r!=null){if(r==="none")return"none";t=t==null?r:t+(" "+r)}}return t??e.default}function ks(e,t){return e=$j(e),t=$j(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var zb=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},wr=[],cd=0,MS=0;function by(){for(var e=cd,t=MS=cd=0;t<e;){var n=wr[t];wr[t++]=null;var a=wr[t];wr[t++]=null;var r=wr[t];wr[t++]=null;var o=wr[t];if(wr[t++]=null,a!==null&&r!==null){var s=a.pending;s===null?r.next=r:(r.next=s.next,s.next=r),a.pending=r}o!==0&&LE(n,r,o)}}function yy(e,t,n,a){wr[cd++]=e,wr[cd++]=t,wr[cd++]=n,wr[cd++]=a,MS|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function DS(e,t,n,a){return yy(e,t,n,a),qb(e)}function Lu(e,t){return yy(e,null,null,t),qb(e)}function LE(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var r=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-lr(n),e=o.hiddenUpdates,a=e[r],a===null?e[r]=[t]:a.push(t),t.lane=n|536870912),o):null}function qb(e){if(50<Qm)throw Qm=0,Tb=null,Error(K(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var dd={};function xG(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oa(e,t,n,a){return new xG(e,t,n,a)}function NS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hs(e,t){var n=e.alternate;return n===null?(n=Oa(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function RE(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function wb(e,t,n,a,r,o){var s=0;if(a=e,typeof a=="function")NS(a)&&(s=1);else if(typeof a=="string")s=U6(e,n,Eo.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case y_:return e=Oa(31,n,t,r),e.elementType=y_,e.lanes=o,e;case rd:return fu(n.children,r,o,t);case UT:s=8,r|=24;break;case g_:return e=Oa(12,n,t,r|2),e.elementType=g_,e.lanes=o,e;case h_:return e=Oa(13,n,t,r),e.elementType=h_,e.lanes=o,e;case b_:return e=Oa(19,n,t,r),e.elementType=b_,e.lanes=o,e;case sU:case x_:return e=r|32,e=Oa(30,n,t,e),e.elementType=x_,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Ro:s=10;break e;case GT:s=9;break e;case SS:s=11;break e;case kS:s=14;break e;case hi:s=16,a=null;break e}s=29,n=Error(K(130,e===null?"null":typeof e,"")),a=null}return t=Oa(s,n,t,r),t.elementType=e,t.type=a,t.lanes=o,t}function fu(e,t,n,a){return e=Oa(7,e,a,t),e.lanes=n,e}function Xw(e,t,n){return e=Oa(6,e,null,t),e.lanes=n,e}function IE(e){var t=Oa(18,null,null,0);return t.stateNode=e,t}function Yw(e,t,n){return t=Oa(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Lj=new WeakMap;function $r(e,t){if(typeof e=="object"&&e!==null){var n=Lj.get(e);return n!==void 0?n:(t={value:e,source:t,stack:oj(t)},Lj.set(e,t),t)}return{value:e,source:t,stack:oj(t)}}var fd=[],md=0,Hb=null,ap=0,_r=[],Sr=0,Mi=null,jo=1,To="";function ps(e,t){fd[md++]=ap,fd[md++]=Hb,Hb=e,ap=t}function jE(e,t,n){_r[Sr++]=jo,_r[Sr++]=To,_r[Sr++]=Mi,Mi=e;var a=jo;e=To;var r=32-lr(a)-1;a&=~(1<<r),n+=1;var o=32-lr(t)+r;if(30<o){var s=r-r%5;o=(a&(1<<s)-1).toString(32),a>>=s,r-=s,jo=1<<32-lr(t)+r|n<<r|a,To=o+e}else jo=1<<o|n<<r|a,To=e}function xy(e){e.return!==null&&(ps(e,1),jE(e,1,0))}function OS(e){for(;e===Hb;)Hb=fd[--md],fd[md]=null,ap=fd[--md],fd[md]=null;for(;e===Mi;)Mi=_r[--Sr],_r[Sr]=null,To=_r[--Sr],_r[Sr]=null,jo=_r[--Sr],_r[Sr]=null}function TE(e,t){_r[Sr++]=jo,_r[Sr++]=To,_r[Sr++]=Mi,jo=t.id,To=t.overflow,Mi=e}var Dn=null,At=null,We=!1,$i=null,Lr=!1,E_=Error(K(519));function Di(e){var t=Error(K(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw rp($r(t,e)),E_}function Rj(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Un]=e,t[Va]=a,n){case"dialog":Ye("cancel",t),Ye("close",t);break;case"iframe":case"object":case"embed":Ye("load",t);break;case"video":case"audio":for(n=0;n<lp.length;n++)Ye(lp[n],t);break;case"source":Ye("error",t);break;case"img":case"image":case"link":Ye("error",t),Ye("load",t);break;case"details":Ye("toggle",t);break;case"input":Ye("invalid",t),iE(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ye("invalid",t);break;case"textarea":Ye("invalid",t),uE(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||m2(t.textContent,n)?(a.popover!=null&&(Ye("beforetoggle",t),Ye("toggle",t)),a.onScroll!=null&&Ye("scroll",t),a.onScrollEnd!=null&&Ye("scrollend",t),a.onClick!=null&&(t.onclick=Io),t=!0):t=!1,t||Di(e,!0)}function Ub(e){for(Dn=e.return;Dn;)switch(Dn.tag){case 5:case 31:case 13:Lr=!1;return;case 27:case 3:Lr=!0;return;default:Dn=Dn.return}}function Qc(e){if(e!==Dn)return!1;if(!We)return Ub(e),We=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||hS(e.type,e.memoizedProps)),n=!n),n&&At&&Di(e),Ub(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));At=ST(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));At=ST(e)}else t===27?(t=At,Vi(e.type)?(e=vS,vS=null,At=e):At=t):At=Dn?Rr(e.stateNode.nextSibling):null;return!0}function hu(){At=Dn=null,We=!1}function Zw(){var e=$i;return e!==null&&(Da===null?Da=e:Da.push.apply(Da,e),$i=null),e}function rp(e){$i===null?$i=[e]:$i.push(e)}var A_=Mo(null),Ru=null,gs=null;function Ci(e,t,n){Pt(A_,t._currentValue),t._currentValue=n}function bs(e){e._currentValue=A_.current,Wn(A_)}function _b(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function P_(e,t,n,a){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var s=r.child;o=o.firstContext;e:for(;o!==null;){var i=o;o=r;for(var l=0;l<t.length;l++)if(i.context===t[l]){o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),_b(o.return,n,e),a||(s=null);break e}o=i.next}}else if(r.tag===18){if(s=r.return,s===null)throw Error(K(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),_b(s,n,e),s=null}else r.tag===13&&r.memoizedState!==null&&r.memoizedState.dehydrated===null?(r.lanes|=n,s=r.alternate,s!==null&&(s.lanes|=n),_b(r.return,n,e),s=r.child,s=s!==null?s.sibling:null):s=r.child;if(s!==null)s.return=r;else for(s=r;s!==null;){if(s===e){s=null;break}if(r=s.sibling,r!==null){r.return=s.return,s=r;break}s=s.return}r=s}}function bu(e,t,n,a){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var s=r.alternate;if(s===null)throw Error(K(387));if(s=s.memoizedProps,s!==null){var i=r.type;cr(r.pendingProps.value,s.value)||(e!==null?e.push(i):e=[i])}}else if(r===Nb.current){if(s=r.alternate,s===null)throw Error(K(387));s.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Md):e=[Md])}r=r.return}return e!==null&&P_(t,e,n,a),t.flags|=262144,e!==null}function Gb(e){for(e=e.firstContext;e!==null;){if(!cr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function yu(e){Ru=e,gs=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Gn(e){return EE(Ru,e)}function ob(e,t){return Ru===null&&yu(e),EE(e,t)}function EE(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},gs===null){if(e===null)throw Error(K(308));gs=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else gs=gs.next=t;return n}var vG=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},CG=kn.unstable_scheduleCallback,wG=kn.unstable_NormalPriority,gn={$$typeof:Ro,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function BS(){return{controller:new vG,data:new Map,refCount:0}}function Cp(e){e.refCount--,e.refCount===0&&CG(wG,function(){e.controller.abort()})}function Ij(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];n.indexOf(a)===-1&&n.push(a)}}}var Om=null;function _G(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var qm=null,M_=0,xu=0,yd=null;function SG(e,t){if(qm===null){var n=qm=[];M_=0,xu=mk(),yd={status:"pending",value:void 0,then:function(a){n.push(a)}}}return M_++,t.then(jj,jj),t}function jj(){if(--M_===0&&(Om=null,qm!==null)){yd!==null&&(yd.status="fulfilled");var e=qm;qm=null,xu=0,yd=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function kG(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(a.status="rejected",a.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),a}var Tj=Ee.S;Ee.S=function(e,t){if(ZA=sr(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&SG(e,t),Om!==null)for(var n=Ed;n!==null;)Ij(n,Om),n=n.next;if(n=e.types,n!==null){for(var a=Ed;a!==null;)Ij(a,n),a=a.next;if(xu!==0){a=Om,a===null&&(a=Om=[]);for(var r=0;r<n.length;r++){var o=n[r];a.indexOf(o)===-1&&a.push(o)}}}Tj!==null&&Tj(e,t)};var mu=Mo(null);function FS(){var e=mu.current;return e!==null?e:kt.pooledCache}function Sb(e,t){t===null?Pt(mu,mu.current):Pt(mu,t.pool)}function AE(){var e=FS();return e===null?null:{parent:gn._currentValue,pool:e}}var Fd=Error(K(460)),VS=Error(K(474)),vy=Error(K(542)),Wb={then:function(){}};function Ej(e){return e=e.status,e==="fulfilled"||e==="rejected"}function PE(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Io,Io),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pj(e),e===void 0&&!("reason"in t)?Error(K(600)):e;default:if(typeof t.status=="string")t.then(Io,Io);else{if(e=kt,e!==null&&100<e.shellSuspendCounter)throw Error(K(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=a}},function(a){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pj(e),e}throw pu=t,Fd}}function iu(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(pu=n,Fd):n}}var pu=null;function Aj(){if(pu===null)throw Error(K(459));var e=pu;return pu=null,e}function Pj(e){if(e===Fd||e===vy)throw Error(K(483))}var xd=null,op=0;function sb(e){var t=op;return op+=1,xd===null&&(xd=[]),PE(xd,e,t)}function mi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ib(e,t){throw t.$$typeof===oU?Error(K(525)):(e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ME(e){function t(b,g){if(e){var y=b.deletions;y===null?(b.deletions=[g],b.flags|=16):y.push(g)}}function n(b,g){if(!e)return null;for(;g!==null;)t(b,g),g=g.sibling;return null}function a(b){for(var g=new Map;b!==null;)b.key===null?g.set(b.index,b):g.set(b.key,b),b=b.sibling;return g}function r(b,g){return b=hs(b,g),b.index=0,b.sibling=null,b}function o(b,g,y){return b.index=y,e?(y=b.alternate,y!==null?(y=y.index,y<g?(b.flags|=2,g):y):(b.flags|=134217730,g)):(b.flags|=1048576,g)}function s(b){return e&&b.alternate===null&&(b.flags|=134217730),b}function i(b,g,y,v){return g===null||g.tag!==6?(g=Xw(y,b.mode,v),g.return=b,g):(g=r(g,y),g.return=b,g)}function l(b,g,y,v){var C=y.type;return C===rd?(b=c(b,g,y.props.children,v,y.key),mi(b,y),b):g!==null&&(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===hi&&iu(C)===g.type)?(g=r(g,y.props),mi(g,y),g.return=b,g):(g=wb(y.type,y.key,y.props,null,b.mode,v),mi(g,y),g.return=b,g)}function u(b,g,y,v){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Yw(y,b.mode,v),g.return=b,g):(g=r(g,y.children||[]),g.return=b,g)}function c(b,g,y,v,C){return g===null||g.tag!==7?(g=fu(y,b.mode,v,C),g.return=b,g):(g=r(g,y),g.return=b,g)}function d(b,g,y){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Xw(""+g,b.mode,y),g.return=b,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Kh:return y=wb(g.type,g.key,g.props,null,b.mode,y),mi(y,g),y.return=b,y;case Mm:return g=Yw(g,b.mode,y),g.return=b,g;case hi:return g=iu(g),d(b,g,y)}if(Dm(g)||Im(g))return g=fu(g,b.mode,y,null),g.return=b,g;if(typeof g.then=="function")return d(b,sb(g),y);if(g.$$typeof===Ro)return d(b,ob(b,g),y);ib(b,g)}return null}function f(b,g,y,v){var C=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return C!==null?null:i(b,g,""+y,v);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Kh:return y.key===C?l(b,g,y,v):null;case Mm:return y.key===C?u(b,g,y,v):null;case hi:return y=iu(y),f(b,g,y,v)}if(Dm(y)||Im(y))return C!==null?null:c(b,g,y,v,null);if(typeof y.then=="function")return f(b,g,sb(y),v);if(y.$$typeof===Ro)return f(b,g,ob(b,y),v);ib(b,y)}return null}function m(b,g,y,v,C){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return b=b.get(y)||null,i(g,b,""+v,C);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Kh:return b=b.get(v.key===null?y:v.key)||null,l(g,b,v,C);case Mm:return b=b.get(v.key===null?y:v.key)||null,u(g,b,v,C);case hi:return v=iu(v),m(b,g,y,v,C)}if(Dm(v)||Im(v))return b=b.get(y)||null,c(g,b,v,C,null);if(typeof v.then=="function")return m(b,g,y,sb(v),C);if(v.$$typeof===Ro)return m(b,g,y,ob(g,v),C);ib(g,v)}return null}function p(b,g,y,v){for(var C=null,S=null,_=g,w=g=0,R=null;_!==null&&w<y.length;w++){_.index>w?(R=_,_=null):R=_.sibling;var $=f(b,_,y[w],v);if($===null){_===null&&(_=R);break}e&&_&&$.alternate===null&&t(b,_),g=o($,g,w),S===null?C=$:S.sibling=$,S=$,_=R}if(w===y.length)return n(b,_),We&&ps(b,w),C;if(_===null){for(;w<y.length;w++)_=d(b,y[w],v),_!==null&&(g=o(_,g,w),S===null?C=_:S.sibling=_,S=_);return We&&ps(b,w),C}for(_=a(_);w<y.length;w++)R=m(_,b,w,y[w],v),R!==null&&(e&&($=R.alternate,$!==null&&_.delete($.key===null?w:$.key)),g=o(R,g,w),S===null?C=R:S.sibling=R,S=R);return e&&_.forEach(function(j){return t(b,j)}),We&&ps(b,w),C}function h(b,g,y,v){if(y==null)throw Error(K(151));for(var C=null,S=null,_=g,w=g=0,R=null,$=y.next();_!==null&&!$.done;w++,$=y.next()){_.index>w?(R=_,_=null):R=_.sibling;var j=f(b,_,$.value,v);if(j===null){_===null&&(_=R);break}e&&_&&j.alternate===null&&t(b,_),g=o(j,g,w),S===null?C=j:S.sibling=j,S=j,_=R}if($.done)return n(b,_),We&&ps(b,w),C;if(_===null){for(;!$.done;w++,$=y.next())$=d(b,$.value,v),$!==null&&(g=o($,g,w),S===null?C=$:S.sibling=$,S=$);return We&&ps(b,w),C}for(_=a(_);!$.done;w++,$=y.next())$=m(_,b,w,$.value,v),$!==null&&(e&&(R=$.alternate,R!==null&&_.delete(R.key===null?w:R.key)),g=o($,g,w),S===null?C=$:S.sibling=$,S=$);return e&&_.forEach(function(M){return t(b,M)}),We&&ps(b,w),C}function x(b,g,y,v){if(typeof y=="object"&&y!==null&&y.type===rd&&y.key===null&&y.props.ref===void 0&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Kh:e:{for(var C=y.key;g!==null;){if(g.key===C){if(C=y.type,C===rd){if(g.tag===7){n(b,g.sibling),v=r(g,y.props.children),mi(v,y),v.return=b,b=v;break e}}else if(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===hi&&iu(C)===g.type){n(b,g.sibling),v=r(g,y.props),mi(v,y),v.return=b,b=v;break e}n(b,g);break}else t(b,g);g=g.sibling}y.type===rd?(v=fu(y.props.children,b.mode,v,y.key),mi(v,y),v.return=b,b=v):(v=wb(y.type,y.key,y.props,null,b.mode,v),mi(v,y),v.return=b,b=v)}return s(b);case Mm:e:{for(C=y.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(b,g.sibling),v=r(g,y.children||[]),v.return=b,b=v;break e}else{n(b,g);break}else t(b,g);g=g.sibling}v=Yw(y,b.mode,v),v.return=b,b=v}return s(b);case hi:return y=iu(y),x(b,g,y,v)}if(Dm(y))return p(b,g,y,v);if(Im(y)){if(C=Im(y),typeof C!="function")throw Error(K(150));return y=C.call(y),h(b,g,y,v)}if(typeof y.then=="function")return x(b,g,sb(y),v);if(y.$$typeof===Ro)return x(b,g,ob(b,y),v);ib(b,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,g!==null&&g.tag===6?(n(b,g.sibling),v=r(g,y),v.return=b,b=v):(n(b,g),v=Xw(y,b.mode,v),v.return=b,b=v),s(b)):n(b,g)}return function(b,g,y,v){try{op=0;var C=x(b,g,y,v);return xd=null,C}catch(_){if(_===Fd||_===vy)throw _;var S=Oa(29,_,null,b.mode);return S.lanes=v,S.return=b,S}finally{}}}var vu=ME(!0),DE=ME(!1),bi=!1;function zS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function D_(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Li(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ri(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(lt&2)!==0){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=qb(e),LE(e,null,n),t}return yy(e,a,t,n),qb(e)}function Hm(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,JT(e,n)}}function Kw(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var N_=!1;function Um(){if(N_){var e=yd;if(e!==null)throw e}}function Gm(e,t,n,a){N_=!1;var r=e.updateQueue;bi=!1;var o=r.firstBaseUpdate,s=r.lastBaseUpdate,i=r.shared.pending;if(i!==null){r.shared.pending=null;var l=i,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,i=c.lastBaseUpdate,i!==s&&(i===null?c.firstBaseUpdate=u:i.next=u,c.lastBaseUpdate=l))}if(o!==null){var d=r.baseState;s=0,c=u=l=null,i=o;do{var f=i.lane&-536870913,m=f!==i.lane;if(m?(Ke&f)===f:(a&f)===f){f!==0&&f===xu&&(N_=!0),c!==null&&(c=c.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{var p=e,h=i;f=t;var x=n;switch(h.tag){case 1:if(p=h.payload,typeof p=="function"){d=p.call(x,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=h.payload,f=typeof p=="function"?p.call(x,d,f):p,f==null)break e;d=$t({},d,f);break e;case 2:bi=!0}}f=i.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=r.callbacks,m===null?r.callbacks=[f]:m.push(f))}else m={lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,s|=f;if(i=i.next,i===null){if(i=r.shared.pending,i===null)break;m=i,i=m.next,m.next=null,r.lastBaseUpdate=m,r.shared.pending=null}}while(!0);c===null&&(l=d),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,o===null&&(r.shared.lanes=0),Bi|=s,e.lanes=s,e.memoizedState=d}}function NE(e,t){if(typeof e!="function")throw Error(K(191,e));e.call(t)}function OE(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)NE(n[e],t)}var Ni=Mo(null),Xb=Mo(0);function Mj(e,t){e=_s,Pt(Xb,e),Pt(Ni,t),_s=e|t.baseLanes}function O_(){Pt(Xb,_s),Pt(Ni,Ni.current)}function qS(){_s=Xb.current,Wn(Ni),Wn(Xb)}var Zn=Mo(null),sa=null;function Ii(e){var t=e.alternate;Pt(Xn,Xn.current&1),Pt(Zn,e),sa===null&&(t===null||Ni.current!==null||t.memoizedState!==null)&&(sa=e)}function B_(e){Pt(Xn,Xn.current),Pt(Zn,e),sa===null&&(sa=e)}function BE(e){e.tag===22?(Pt(Xn,Xn.current),Pt(Zn,e),sa===null&&(sa=e)):ji()}function ji(){Pt(Xn,Xn.current),Pt(Zn,Zn.current)}function ar(e){Wn(Zn),sa===e&&(sa=null),Wn(Xn)}var Xn=Mo(0);function sp(e,t){Pt(Zn,Zn.current),Pt(Xn,t)}function HS(e){Wn(Xn),Wn(Zn),sa===e&&(sa=null)}function Yb(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||xS(n)||bk(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vs=0,Fe=null,Ct=null,pn=null,Zb=!1,vd=!1,Cu=!1,Kb=0,ip=0,Cd=null,$G=0;function Zt(){throw Error(K(321))}function US(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function GS(e,t,n,a,r,o){return vs=o,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ee.H=e===null||e.memoizedState===null?hA:bA,Cu=!1,o=n(a,r),Cu=!1,vd&&(o=VE(t,n,a,r)),FE(e),o}function FE(e){Ee.H=Qb;var t=Ct!==null&&Ct.next!==null;if(vs=0,pn=Ct=Fe=null,Zb=!1,ip=0,Cd=null,t)throw Error(K(300));e===null||hn||(e=e.dependencies,e!==null&&Gb(e)&&(hn=!0))}function VE(e,t,n,a){Fe=e;var r=0;do{if(vd&&(Cd=null),ip=0,vd=!1,25<=r)throw Error(K(301));if(r+=1,pn=Ct=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}Ee.H=PG,o=t(n,a)}while(vd);return o}function LG(){var e=Ee.H,t=e.useState()[0];return t=typeof t.then=="function"?wp(t):t,e=e.useState()[0],(Ct!==null?Ct.memoizedState:null)!==e&&(Fe.flags|=1024),t}function WS(){var e=Kb!==0;return Kb=0,e}function XS(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function YS(e){if(Zb){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zb=!1}vs=0,pn=Ct=Fe=null,vd=!1,ip=Kb=0,Cd=null}function wa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pn===null?Fe.memoizedState=pn=e:pn=pn.next=e,pn}function tn(){if(Ct===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Ct.next;var t=pn===null?Fe.memoizedState:pn.next;if(t!==null)pn=t,Ct=e;else{if(e===null)throw Fe.alternate===null?Error(K(467)):Error(K(310));Ct=e,e={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},pn===null?Fe.memoizedState=pn=e:pn=pn.next=e}return pn}function Cy(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wp(e){var t=ip;return ip+=1,Cd===null&&(Cd=[]),e=PE(Cd,e,t),t=Fe,(pn===null?t.memoizedState:pn.next)===null&&(t=t.alternate,Ee.H=t===null||t.memoizedState===null?hA:bA),e}function wy(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return wp(e);if(e.$$typeof===lU)return;if(e.$$typeof===Ro)return Gn(e)}throw Error(K(438,String(e)))}function ZS(e){var t=null,n=Fe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Fe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Cy(),Fe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=iU;return t.index++,n}function Cs(e,t){return typeof t=="function"?t(e):t}function kb(e){var t=tn();return KS(t,Ct,e)}function KS(e,t,n){var a=e.queue;if(a===null)throw Error(K(311));a.lastRenderedReducer=n;var r=e.baseQueue,o=a.pending;if(o!==null){if(r!==null){var s=r.next;r.next=o.next,o.next=s}t.baseQueue=r=o,a.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var i=s=null,l=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(Ke&d)===d:(vs&d)===d){var f=u.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===xu&&(c=!0);else if((vs&f)===f){u=u.next,f===xu&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(i=l=d,s=o):l=l.next=d,Fe.lanes|=f,Bi|=f;d=u.action,Cu&&n(o,d),o=u.hasEagerState?u.eagerState:n(o,d)}else f={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(i=l=f,s=o):l=l.next=f,Fe.lanes|=d,Bi|=d;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=i,!cr(o,e.memoizedState)&&(hn=!0,c&&(n=yd,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,a.lastRenderedState=o}return r===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Qw(e){var t=tn(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var s=r=r.next;do o=e(o,s.action),s=s.next;while(s!==r);cr(o,t.memoizedState)||(hn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function zE(e,t,n){var a=Fe,r=tn(),o=We;if(o){if(n===void 0)throw Error(K(407));n=n()}else n=t();var s=!cr((Ct||r).memoizedState,n);if(s&&(r.memoizedState=n,hn=!0),r=r.queue,QS(UE.bind(null,a,r,e),[e]),e=r.getSnapshot!==t||s||pn!==null&&(pn.memoizedState.tag&1)!==0,Rd(e?9:8,{destroy:void 0},HE.bind(null,a,r,n,t),null),e){if(a.flags|=2048,kt===null)throw Error(K(349));o||(vs&127)!==0||qE(a,t,n)}return n}function qE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Fe.updateQueue,t===null?(t=Cy(),Fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function HE(e,t,n,a){t.value=n,t.getSnapshot=a,GE(t)&&WE(e)}function UE(e,t,n){return n(function(){GE(t)&&WE(e)})}function GE(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cr(e,n)}catch{return!0}}function WE(e){var t=Lu(e,2);t!==null&&Ba(t,e,2)}function F_(e){var t=wa();if(typeof e=="function"){var n=e;if(e=n(),Cu){xi(!0);try{n()}finally{xi(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:e},t}function XE(e,t,n,a){return e.baseState=n,KS(e,Ct,typeof a=="function"?a:Cs)}function RG(e,t,n,a,r){if(Sy(e))throw Error(K(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){o.listeners.push(s)}};Ee.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,YE(t,o)):(o.next=n.next,t.pending=n.next=o)}}function YE(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var o=Ee.T,s={};s.types=o!==null?o.types:null,Ee.T=s;try{var i=n(r,a),l=Ee.S;l!==null&&l(s,i),Dj(e,t,i)}catch(u){V_(e,t,u)}finally{o!==null&&s.types!==null&&(o.types=s.types),Ee.T=o}}else try{o=n(r,a),Dj(e,t,o)}catch(u){V_(e,t,u)}}function Dj(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Nj(e,t,a)},function(a){return V_(e,t,a)}):Nj(e,t,n)}function Nj(e,t,n){t.status="fulfilled",t.value=n,ZE(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,YE(e,n)))}function V_(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,ZE(t),t=t.next;while(t!==a)}e.action=null}function ZE(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function KE(e,t){return t}function Oj(e,t){if(We){var n=kt.formState;if(n!==null){e:{var a=Fe;if(We){if(At){t:{for(var r=At,o=Lr;r.nodeType!==8;){if(!o){r=null;break t}if(r=Rr(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){At=Rr(r.nextSibling),a=r.data==="F!";break e}}Di(a)}a=!1}a&&(t=n[0])}}return n=wa(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:KE,lastRenderedState:t},n.queue=a,n=mA.bind(null,Fe,a),a.dispatch=n,a=F_(!1),o=nk.bind(null,Fe,!1,a.queue),a=wa(),r={state:t,dispatch:null,action:e,pending:null},a.queue=r,n=RG.bind(null,Fe,r,o,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function Bj(e){var t=tn();return QE(t,Ct,e)}function QE(e,t,n){if(t=KS(e,t,KE)[0],e=kb(Cs)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=wp(t)}catch(s){throw s===Fd?vy:s}else a=t;t=tn();var r=t.queue,o=r.dispatch;return n!==t.memoizedState&&(Fe.flags|=2048,Rd(9,{destroy:void 0},IG.bind(null,r,n),null)),[a,o,e]}function IG(e,t){e.action=t}function Fj(e){var t=tn(),n=Ct;if(n!==null)return QE(t,n,e);tn(),t=t.memoizedState,n=tn();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Rd(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=Fe.updateQueue,t===null&&(t=Cy(),Fe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function JE(){return tn().memoizedState}function $b(e,t,n,a){var r=wa();Fe.flags|=e,r.memoizedState=Rd(1|t,{destroy:void 0},n,a===void 0?null:a)}function _y(e,t,n,a){var r=tn();a=a===void 0?null:a;var o=r.memoizedState.inst;Ct!==null&&a!==null&&US(a,Ct.memoizedState.deps)?r.memoizedState=Rd(t,o,n,a):(Fe.flags|=e,r.memoizedState=Rd(1|t,o,n,a))}function Vj(e,t){$b(8390656,8,e,t)}function QS(e,t){_y(2048,8,e,t)}function jG(e){Fe.flags|=4;var t=Fe.updateQueue;if(t===null)t=Cy(),Fe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function eA(e){var t=tn().memoizedState;return jG({ref:t,nextImpl:e}),function(){if((lt&2)!==0)throw Error(K(440));return t.impl.apply(void 0,arguments)}}function tA(e,t){return _y(4,2,e,t)}function nA(e,t){return _y(4,4,e,t)}function aA(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rA(e,t,n){n=n!=null?n.concat([e]):null,_y(4,4,aA.bind(null,t,e),n)}function JS(){}function oA(e,t){var n=tn();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&US(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function sA(e,t){var n=tn();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&US(t,a[1]))return a[0];if(a=e(),Cu){xi(!0);try{e()}finally{xi(!1)}}return n.memoizedState=[a,t],a}function ek(e,t,n){return n===void 0||(vs&1073741824)!==0&&(Ke&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=QA(),Fe.lanes|=e,Bi|=e,n)}function iA(e,t,n,a){return cr(n,t)?n:Ni.current!==null?(e=ek(e,n,a),cr(e,t)||(hn=!0),e):(vs&106)===0||(vs&1073741824)!==0&&(Ke&261930)===0?(hn=!0,e.memoizedState=n):(e=QA(),Fe.lanes|=e,Bi|=e,t)}function lA(e,t,n,a,r){var o=ut.p;ut.p=o!==0&&8>o?o:8;var s=Ee.T,i={};i.types=s!==null?s.types:null,Ee.T=i,nk(e,!1,t,n);try{var l=r(),u=Ee.S;if(u!==null&&u(i,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=kG(l,a);Wm(e,t,c,ur(e))}else Wm(e,t,a,ur(e))}catch(d){Wm(e,t,{then:function(){},status:"rejected",reason:d},ur())}finally{ut.p=o,s!==null&&i.types!==null&&(s.types=i.types),Ee.T=s}}function TG(){}function z_(e,t,n,a){if(e.tag!==5)throw Error(K(476));var r=uA(e).queue;lA(e,r,t,du,n===null?TG:function(){return cA(e),n(a)})}function uA(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:du,baseState:du,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:du},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function cA(e){var t=uA(e);t.next===null&&(t=e.alternate.memoizedState),Wm(e,t.next.queue,{},ur())}function tk(){return Gn(Md)}function dA(){return tn().memoizedState}function fA(){return tn().memoizedState}function EG(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=ur();e=Li(n);var a=Ri(t,e,n);a!==null&&(Ba(a,t,n),Hm(a,t,n)),t={cache:BS()},e.payload=t;return}t=t.return}}function AG(e,t,n){var a=ur();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Sy(e)?pA(t,n):(n=DS(e,t,n,a),n!==null&&(Ba(n,e,a),gA(n,t,a)))}function mA(e,t,n){var a=ur();Wm(e,t,n,a)}function Wm(e,t,n,a){var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sy(e))pA(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,i=o(s,n);if(r.hasEagerState=!0,r.eagerState=i,cr(i,s))return yy(e,t,r,0),kt===null&&by(),!1}catch{}finally{}if(n=DS(e,t,r,a),n!==null)return Ba(n,e,a),gA(n,t,a),!0}return!1}function nk(e,t,n,a){if(a={lane:2,revertLane:mk(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Sy(e)){if(t)throw Error(K(479))}else t=DS(e,n,a,2),t!==null&&Ba(t,e,2)}function Sy(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function pA(e,t){vd=Zb=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gA(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,JT(e,n)}}var Qb={readContext:Gn,use:wy,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useLayoutEffect:Zt,useInsertionEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useSyncExternalStore:Zt,useId:Zt,useHostTransitionStatus:Zt,useFormState:Zt,useActionState:Zt,useOptimistic:Zt,useMemoCache:Zt,useCacheRefresh:Zt,useEffectEvent:Zt},hA={readContext:Gn,use:wy,useCallback:function(e,t){return wa().memoizedState=[e,t===void 0?null:t],e},useContext:Gn,useEffect:Vj,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,$b(4194308,4,aA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $b(4194308,4,e,t)},useInsertionEffect:function(e,t){$b(4,2,e,t)},useMemo:function(e,t){var n=wa();t=t===void 0?null:t;var a=e();if(Cu){xi(!0);try{e()}finally{xi(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=wa();if(n!==void 0){var r=n(t);if(Cu){xi(!0);try{n(t)}finally{xi(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=AG.bind(null,Fe,e),[a.memoizedState,e]},useRef:function(e){var t=wa();return e={current:e},t.memoizedState=e},useState:function(e){e=F_(e);var t=e.queue,n=mA.bind(null,Fe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:JS,useDeferredValue:function(e,t){var n=wa();return ek(n,e,t)},useTransition:function(){var e=F_(!1);return e=lA.bind(null,Fe,e.queue,!0,!1),wa().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Fe,r=wa();if(We){if(n===void 0)throw Error(K(407));n=n()}else{if(n=t(),kt===null)throw Error(K(349));(Ke&127)!==0||qE(a,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,Vj(UE.bind(null,a,o,e),[e]),a.flags|=2048,Rd(9,{destroy:void 0},HE.bind(null,a,o,n,t),null),n},useId:function(){var e=wa(),t=kt.identifierPrefix;if(We){var n=To,a=jo;n=(a&~(1<<32-lr(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Kb++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=$G++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:tk,useFormState:Oj,useActionState:Oj,useOptimistic:function(e){var t=wa();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=nk.bind(null,Fe,!0,n),n.dispatch=t,[e,t]},useMemoCache:ZS,useCacheRefresh:function(){return wa().memoizedState=EG.bind(null,Fe)},useEffectEvent:function(e){var t=wa(),n={impl:e};return t.memoizedState=n,function(){if((lt&2)!==0)throw Error(K(440));return n.impl.apply(void 0,arguments)}}},bA={readContext:Gn,use:wy,useCallback:oA,useContext:Gn,useEffect:QS,useImperativeHandle:rA,useInsertionEffect:tA,useLayoutEffect:nA,useMemo:sA,useReducer:kb,useRef:JE,useState:function(){return kb(Cs)},useDebugValue:JS,useDeferredValue:function(e,t){var n=tn();return iA(n,Ct.memoizedState,e,t)},useTransition:function(){var e=kb(Cs)[0],t=tn().memoizedState;return[typeof e=="boolean"?e:wp(e),t]},useSyncExternalStore:zE,useId:dA,useHostTransitionStatus:tk,useFormState:Bj,useActionState:Bj,useOptimistic:function(e,t){var n=tn();return XE(n,Ct,e,t)},useMemoCache:ZS,useCacheRefresh:fA,useEffectEvent:eA},PG={readContext:Gn,use:wy,useCallback:oA,useContext:Gn,useEffect:QS,useImperativeHandle:rA,useInsertionEffect:tA,useLayoutEffect:nA,useMemo:sA,useReducer:Qw,useRef:JE,useState:function(){return Qw(Cs)},useDebugValue:JS,useDeferredValue:function(e,t){var n=tn();return Ct===null?ek(n,e,t):iA(n,Ct.memoizedState,e,t)},useTransition:function(){var e=Qw(Cs)[0],t=tn().memoizedState;return[typeof e=="boolean"?e:wp(e),t]},useSyncExternalStore:zE,useId:dA,useHostTransitionStatus:tk,useFormState:Fj,useActionState:Fj,useOptimistic:function(e,t){var n=tn();return Ct!==null?XE(n,Ct,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ZS,useCacheRefresh:fA,useEffectEvent:eA};function Jw(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:$t({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var q_={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=ur(),r=Li(a);r.payload=t,n!=null&&(r.callback=n),t=Ri(e,r,a),t!==null&&(Ba(t,e,a),Hm(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=ur(),r=Li(a);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=Ri(e,r,a),t!==null&&(Ba(t,e,a),Hm(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ur(),a=Li(n);a.tag=2,t!=null&&(a.callback=t),t=Ri(e,a,n),t!==null&&(Ba(t,e,n),Hm(t,e,n))}};function zj(e,t,n,a,r,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,s):t.prototype&&t.prototype.isPureReactComponent?!np(n,a)||!np(r,o):!0}function qj(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&q_.enqueueReplaceState(t,t.state,null)}function wu(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=$t({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function yA(e){zb(e)}function xA(e){console.error(e)}function vA(e){zb(e)}function Jb(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Hj(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function H_(e,t,n){return n=Li(n),n.tag=3,n.payload={element:null},n.callback=function(){Jb(e,t)},n}function CA(e){return e=Li(e),e.tag=3,e}function wA(e,t,n,a){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=a.value;e.payload=function(){return r(o)},e.callback=function(){Hj(t,n,a)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){Hj(t,n,a),typeof r!="function"&&(Ti===null?Ti=new Set([this]):Ti.add(this));var i=a.stack;this.componentDidCatch(a.value,{componentStack:i!==null?i:""})})}function MG(e,t,n,a,r){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&bu(t,n,r,!0),n=Zn.current,n!==null){switch(n.tag){case 31:case 13:case 19:return sa===null?iy():n.alternate===null&&Kt===0&&(Kt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,a===Wb?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),s_(e,a,r)),!1;case 22:return n.flags|=65536,a===Wb?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),s_(e,a,r)),!1}throw Error(K(435,n.tag))}return s_(e,a,r),iy(),!1}if(We)return t=Zn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==E_&&(e=Error(K(422),{cause:a}),rp($r(e,n)))):(a!==E_&&(t=Error(K(423),{cause:a}),rp($r(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,a=$r(a,n),r=H_(e.stateNode,a,r),Kw(e,r),Kt!==4&&(Kt=2)),!1;var o=Error(K(520),{cause:a});if(o=$r(o,n),Km===null?Km=[o]:Km.push(o),Kt!==4&&(Kt=2),t===null)return!0;a=$r(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=H_(n.stateNode,a,e),Kw(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Ti===null||!Ti.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=CA(r),wA(r,e,n,a),Kw(n,r),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var ak=Error(K(461)),hn=!1;function _n(e,t,n,a){t.child=e===null?DE(t,null,n,a):vu(t,e.child,n,a)}function Uj(e,t,n,a,r){n=n.render;var o=t.ref;if("ref"in a){var s={};for(var i in a)i!=="ref"&&(s[i]=a[i])}else s=a;return yu(t),a=GS(e,t,n,s,o,r),i=WS(),e!==null&&!hn?(XS(e,t,r),ws(e,t,r)):(We&&i&&xy(t),t.flags|=1,_n(e,t,a,r),t.child)}function Gj(e,t,n,a,r){if(e===null){var o=n.type;return typeof o=="function"&&!NS(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,_A(e,t,o,a,r)):(e=wb(n.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!ok(e,r)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:np,n(s,a)&&e.ref===t.ref)return ws(e,t,r)}return t.flags|=1,e=hs(o,a),e.ref=t.ref,e.return=t,t.child=e}function _A(e,t,n,a,r){if(e!==null){var o=e.memoizedProps;if(np(o,a)&&e.ref===t.ref)if(hn=!1,t.pendingProps=a=o,ok(e,r))(e.flags&131072)!==0&&(hn=!0);else return t.lanes=e.lanes,ws(e,t,r)}return U_(e,t,n,a,r)}function SA(e,t,n,a){var r=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,r=0;a!==null;)r=r|a.lanes|a.childLanes,a=a.sibling;a=r&~o}else a=0,t.child=null;return Wj(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Sb(t,o!==null?o.cachePool:null),o!==null?Mj(t,o):O_(),BE(t);else return a=t.lanes=536870912,Wj(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(Sb(t,o.cachePool),Mj(t,o),ji(),t.memoizedState=null):(e!==null&&Sb(t,null),O_(),ji());return _n(e,t,r,n),t.child}function Xm(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wj(e,t,n,a,r){var o=FS();return o=o===null?null:{parent:gn._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Sb(t,null),O_(),BE(t),e!==null&&bu(e,t,a,!0),t.childLanes=r,null}function Lb(e,t){return t=ky({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Xj(e,t,n){return vu(t,e.child,null,n),e=Lb(t,t.pendingProps),e.flags|=2,ar(t),t.memoizedState=null,e}function DG(e,t,n){var a=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(We){if(a.mode==="hidden")return e=Lb(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Xm(null,e);if(B_(t),(e=At)?(e=S2(e,Lr),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mi!==null?{id:jo,overflow:To}:null,retryLane:536870912,hydrationErrors:null},n=IE(e),n.return=t,t.child=n,Dn=t,At=null)):e=null,e===null)throw Di(t);return t.lanes=536870912,null}return Lb(t,a)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(B_(t),r)if(t.flags&256)t.flags&=-257,t=Xj(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(K(558));else if(hn||bu(e,t,n,!1),r=(n&e.childLanes)!==0,hn||r){if(Ni.current===null){if(a=kt,a!==null&&(s=eE(a,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Lu(e,s),Ba(a,e,s),ak;iy()}t=Xj(e,t,n)}else e=o.treeContext,At=Rr(s.nextSibling),Dn=t,We=!0,$i=null,Lr=!1,e!==null&&TE(t,e),t=Lb(t,a),t.flags|=134221824;return t}return e=hs(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ed(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(K(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function U_(e,t,n,a,r){return yu(t),n=GS(e,t,n,a,void 0,r),a=WS(),e!==null&&!hn?(XS(e,t,r),ws(e,t,r)):(We&&a&&xy(t),t.flags|=1,_n(e,t,n,r),t.child)}function Yj(e,t,n,a,r,o){return yu(t),t.updateQueue=null,n=VE(t,a,n,r),FE(e),a=WS(),e!==null&&!hn?(XS(e,t,o),ws(e,t,o)):(We&&a&&xy(t),t.flags|=1,_n(e,t,n,o),t.child)}function Zj(e,t,n,a,r){if(yu(t),t.stateNode===null){var o=dd,s=n.contextType;typeof s=="object"&&s!==null&&(o=Gn(s)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=q_,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},zS(t),s=n.contextType,o.context=typeof s=="object"&&s!==null?Gn(s):dd,o.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(Jw(t,n,s,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(s=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),s!==o.state&&q_.enqueueReplaceState(o,o.state,null),Gm(t,a,o,r),Um(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var i=t.memoizedProps,l=wu(n,i);o.props=l;var u=o.context,c=n.contextType;s=dd,typeof c=="object"&&c!==null&&(s=Gn(c));var d=n.getDerivedStateFromProps;c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function",i=t.pendingProps!==i,c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i||u!==s)&&qj(t,o,a,s),bi=!1;var f=t.memoizedState;o.state=f,Gm(t,a,o,r),Um(),u=t.memoizedState,i||f!==u||bi?(typeof d=="function"&&(Jw(t,n,d,a),u=t.memoizedState),(l=bi||zj(t,n,l,a,f,u,s))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=u),o.props=a,o.state=u,o.context=s,a=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,D_(e,t),s=t.memoizedProps,c=wu(n,s),o.props=c,d=t.pendingProps,f=o.context,u=n.contextType,l=dd,typeof u=="object"&&u!==null&&(l=Gn(u)),i=n.getDerivedStateFromProps,(u=typeof i=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||f!==l)&&qj(t,o,a,l),bi=!1,f=t.memoizedState,o.state=f,Gm(t,a,o,r),Um();var m=t.memoizedState;s!==d||f!==m||bi||e!==null&&e.dependencies!==null&&Gb(e.dependencies)?(typeof i=="function"&&(Jw(t,n,i,a),m=t.memoizedState),(c=bi||zj(t,n,c,a,f,m,l)||e!==null&&e.dependencies!==null&&Gb(e.dependencies))?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,m,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=m),o.props=a,o.state=m,o.context=l,a=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,ed(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=vu(t,e.child,null,r),t.child=vu(t,null,n,r)):_n(e,t,n,r),t.memoizedState=o.state,e=t.child):e=ws(e,t,r),e}function Kj(e,t,n,a){return hu(),t.flags|=256,_n(e,t,n,a),t.child}var G_={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function W_(e){return{baseLanes:e,cachePool:AE()}}function X_(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=or),e}function kA(e,t,n){var a=t.pendingProps,r=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(Xn.current&2)!==0),s&&(r=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(We){if(r?Ii(t):ji(),(e=At)?(e=S2(e,Lr),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mi!==null?{id:jo,overflow:To}:null,retryLane:536870912,hydrationErrors:null},n=IE(e),n.return=t,t.child=n,Dn=t,At=null)):e=null,e===null)throw Di(t);return bk(e)?t.lanes=32:t.lanes=536870912,null}return o=a.children,a=a.fallback,r?(ji(),r=t.mode,o=ky({mode:"hidden",children:o},r),a=fu(a,r,n,null),o.return=t,a.return=t,o.sibling=a,t.child=o,a=t.child,a.memoizedState=W_(n),a.childLanes=X_(e,s,n),t.memoizedState=G_,Xm(null,a)):(Ii(t),rk(t,o))}var i=e.memoizedState;if(i!==null){var l=i.dehydrated;if(l!==null)return NG(e,t,o,s,a,l,i,n)}return r?(ji(),r=a.fallback,o=t.mode,i=e.child,l=i.sibling,a=hs(i,{mode:"hidden",children:a.children}),a.subtreeFlags=i.subtreeFlags&1206910976,l!==null?r=hs(l,r):(r=fu(r,o,n,null),r.flags|=2),r.return=t,a.return=t,a.sibling=r,t.child=a,Xm(null,a),a=t.child,r=e.child.memoizedState,r===null?r=W_(n):(o=r.cachePool,o!==null?(i=gn._currentValue,o=o.parent!==i?{parent:i,pool:i}:o):o=AE(),r={baseLanes:r.baseLanes|n,cachePool:o}),a.memoizedState=r,a.childLanes=X_(e,s,n),t.memoizedState=G_,Xm(e.child,a)):(Ii(t),n=e.child,e=n.sibling,n=hs(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function rk(e,t){return t=ky({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ky(e,t){return e=Oa(22,e,null,t),e.lanes=0,e}function lb(e,t,n){return vu(t,e.child,null,n),e=rk(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function NG(e,t,n,a,r,o,s,i){if(n)return t.flags&256?(Ii(t),t.flags&=-257,lb(e,t,i)):t.memoizedState!==null?(ji(),t.child=e.child,t.flags|=128,null):(ji(),o=r.fallback,s=t.mode,r=ky({mode:"visible",children:r.children},s),o=fu(o,s,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,vu(t,e.child,null,i),r=t.child,r.memoizedState=W_(i),r.childLanes=X_(e,a,i),t.memoizedState=G_,Xm(null,r));if(Ii(t),bk(o)){if(a=o.nextSibling&&o.nextSibling.dataset,a)var l=a.dgst;return a=l,a!==""&&(r=Error(K(419)),r.stack="",r.digest=a,rp({value:r,source:null,stack:null})),lb(e,t,i)}if(hn||bu(e,t,i,!1),a=(i&e.childLanes)!==0,hn||a){if(Ni.current!==null)return lb(e,t,i);if(a=kt,a!==null&&(r=eE(a,i),r!==0&&r!==s.retryLane))throw s.retryLane=r,Lu(e,r),Ba(a,e,r),ak;return xS(o)||iy(),lb(e,t,i)}return xS(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,At=Rr(o.nextSibling),Dn=t,We=!0,$i=null,Lr=!1,e!==null&&TE(t,e),t=rk(t,r.children),t.flags|=134221824,t)}function Qj(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),_b(e.return,t,n)}function Jj(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Yb(n)===null&&(t=e),e=e.sibling}return t}function ub(e,t,n,a,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r,treeForkCount:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=n,s.tailMode=r,s.treeForkCount=o)}function e_(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function Y_(e,t,n){var a=t.pendingProps,r=a.revealOrder,o=a.tail;a=a.children;var s=Xn.current;if(t.flags&128)return sp(t,s),null;var i=(s&2)!==0;if(i?(s=s&1|2,t.flags|=128):s&=1,sp(t,s),r==="backwards"&&e!==null?(e_(e),_n(e,t,a,n),e_(e)):_n(e,t,a,n),a=We?ap:0,!i&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qj(e,n,t);else if(e.tag===19)Qj(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"backwards":n=Jj(t.child),n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null,e_(t)),ub(t,!0,r,null,o,a);break;case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Yb(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ub(t,!0,n,null,o,a);break;case"together":ub(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:n=Jj(t.child),n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ub(t,!1,r,n,o,a)}return t.child}function eT(e,t,n){var a=t.pendingProps;return Ci(t,t.type,a.value),_n(e,t,a.children,n),t.child}function ws(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(bu(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,n=hs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=hs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ok(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Gb(e)))}function OG(e,t,n){switch(t.tag){case 3:Ob(t,t.stateNode.containerInfo),Ci(t,gn,e.memoizedState.cache),hu();break;case 27:case 5:w_(t);break;case 4:Ob(t,t.stateNode.containerInfo);break;case 10:Ci(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,B_(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return Ii(t),t.flags|=128,null;a=bu(e,t,n,!1);var r=t.child.childLanes;return a||(n&r)!==0?kA(e,t,n):(Ii(t),e=ws(e,t,n),e!==null?e.sibling:null)}Ii(t);break;case 19:if(t.flags&128)return Y_(e,t,n);if(r=(e.flags&128)!==0,a=(n&t.childLanes)!==0,a||(bu(e,t,n,!1),a=(n&t.childLanes)!==0),r){if(a)return Y_(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),sp(t,Xn.current),a)break;return null;case 22:return t.lanes=0,SA(e,t,n,t.pendingProps);case 24:Ci(t,gn,e.memoizedState.cache)}return ws(e,t,n)}function $A(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)hn=!0;else{if(!ok(e,n)&&(t.flags&128)===0)return hn=!1,OG(e,t,n);hn=(e.flags&131072)!==0}else hn=!1,We&&(t.flags&1048576)!==0&&jE(t,ap,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=iu(t.elementType),t.type=e,typeof e=="function")NS(e)?(a=wu(e,a),t.tag=1,t=Zj(null,t,e,a,n)):(t.tag=0,t=U_(null,t,e,a,n));else{if(e!=null){var r=e.$$typeof;if(r===SS){t.tag=11,t=Uj(null,t,e,a,n);break e}else if(r===kS){t.tag=14,t=Gj(null,t,e,a,n);break e}else if(r===Ro){t.tag=10,t.type=e,t=eT(null,t,n);break e}}throw t=v_(e)||e,Error(K(306,t,""))}}return t;case 0:return U_(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,r=wu(a,t.pendingProps),Zj(e,t,a,r,n);case 3:e:{if(Ob(t,t.stateNode.containerInfo),e===null)throw Error(K(387));a=t.pendingProps;var o=t.memoizedState;r=o.element,D_(e,t),Gm(t,a,null,n);var s=t.memoizedState;if(a=s.cache,Ci(t,gn,a),a!==o.cache&&P_(t,[gn],n,!0),Um(),a=s.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Kj(e,t,a,n);break e}else if(a!==r){r=$r(Error(K(424)),t),rp(r),t=Kj(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(At=Rr(e.firstChild),Dn=t,We=!0,$i=null,Lr=!0,n=DE(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(hu(),a===r){t=ws(e,t,n);break e}_n(e,t,a,n)}t=t.child}return t;case 26:return ed(e,t),e===null?(n=LT(t.type,null,t.pendingProps,null))?t.memoizedState=n:We||(t.stateNode=g2(t.type,t.pendingProps,ki.current,t)):t.memoizedState=LT(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return w_(t),e===null&&We&&(a=t.stateNode=k2(t.type,t.pendingProps,ki.current),Dn=t,Lr=!0,r=At,Vi(t.type)?(vS=r,At=Rr(a.firstChild)):At=r),_n(e,t,t.pendingProps.children,n),ed(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&We&&((r=a=At)&&(a=j6(a,t.type,t.pendingProps,Lr),a!==null?(t.stateNode=a,Dn=t,At=Rr(a.firstChild),Lr=!1,r=!0):r=!1),r||Di(t)),w_(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,a=o.children,hS(r,o)?a=null:s!==null&&hS(r,s)&&(t.flags|=32),t.memoizedState!==null&&(r=GS(e,t,LG,null,null,n),Md._currentValue=r),ed(e,t),_n(e,t,a,n),t.child;case 6:return e===null&&We&&((e=n=At)&&(n=T6(n,t.pendingProps,Lr),n!==null?(t.stateNode=n,Dn=t,At=null,e=!0):e=!1),e||Di(t)),null;case 13:return kA(e,t,n);case 4:return Ob(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=vu(t,null,a,n):_n(e,t,a,n),t.child;case 11:return Uj(e,t,t.type,t.pendingProps,n);case 7:return a=t.pendingProps,ed(e,t),_n(e,t,a,n),t.child;case 8:return _n(e,t,t.pendingProps.children,n),t.child;case 12:return _n(e,t,t.pendingProps.children,n),t.child;case 10:return eT(e,t,n);case 9:return r=t.type._context,a=t.pendingProps.children,yu(t),r=Gn(r),a=a(r),t.flags|=1,_n(e,t,a,n),t.child;case 14:return Gj(e,t,t.type,t.pendingProps,n);case 15:return _A(e,t,t.type,t.pendingProps,n);case 19:return Y_(e,t,n);case 31:return DG(e,t,n);case 22:return SA(e,t,n,t.pendingProps);case 24:return yu(t),a=Gn(gn),e===null?(r=FS(),r===null&&(r=kt,o=BS(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),t.memoizedState={parent:a,cache:r},zS(t),Ci(t,gn,r)):((e.lanes&n)!==0&&(D_(e,t),Gm(t,null,null,n),Um()),r=e.memoizedState,o=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Ci(t,gn,a)):(a=o.cache,Ci(t,gn,a),a!==r.cache&&P_(t,[gn],n,!0))),_n(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:We&&xy(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:ed(e,t),_n(e,t,a.children,n),t.child;case 29:throw t.pendingProps}throw Error(K(156,t.tag))}function ms(e){e.flags|=4}function t_(e,t,n,a,r){var o;if((o=(e.mode&32)!==0)&&(o=n===null?jT(t,a):jT(t,a)&&(a.src!==n.src||a.srcSet!==n.srcSet)),o){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(t2())e.flags|=8192;else throw pu=Wb,VS}else e.flags&=-16777217}function tT(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!I2(t))if(t2())e.flags|=8192;else throw pu=Wb,VS}function cb(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?KT():536870912,e.lanes|=t,Id|=t)}function Tm(e,t){if(!We)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&1206910976,a|=r.flags&1206910976,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function BG(e,t,n){var a=t.pendingProps;switch(OS(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(t),null;case 1:return Et(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),bs(gn),kd(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Qc(t)?ms(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zw())),Et(t),null;case 26:var r=t.type,o=t.memoizedState;return e===null?(ms(t),o!==null?(Et(t),tT(t,o)):(Et(t),t_(t,r,null,a,n))):o?o!==e.memoizedState?(ms(t),Et(t),tT(t,o)):(Et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ms(t),Et(t),t_(t,r,e,a,n)),null;case 27:if(Bb(t),n=ki.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ms(t);else{if(!a){if(t.stateNode===null)throw Error(K(166));return Et(t),t.subtreeFlags&=-33554433,null}e=Eo.current,Qc(t)?Rj(t,e):(e=k2(r,a,n),t.stateNode=e,ms(t))}return Et(t),t.subtreeFlags&=-33554433,null;case 5:if(Bb(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ms(t);else{if(!a){if(t.stateNode===null)throw Error(K(166));return Et(t),t.subtreeFlags&=-33554433,null}if(o=Eo.current,Qc(t))Rj(t,o);else{var s=cp(ki.current);switch(o){case 1:o=s.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=s.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=s.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=s.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=s.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?s.createElement(r,{is:a.is}):s.createElement(r)}}o[Un]=t,o[Va]=a;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;e:switch(Yn(o,r,a),r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ms(t)}}return Et(t),t.subtreeFlags&=-33554433,t_(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ms(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(K(166));if(e=ki.current,Qc(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,r=Dn,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[Un]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||m2(e.nodeValue,n)),e||Di(t,!0)}else e=cp(e).createTextNode(a),e[Un]=t,t.stateNode=e}return Et(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Qc(t),n!==null){if(e===null){if(!a)throw Error(K(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(557));e[Un]=t}else hu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Et(t),e=!1}else n=Zw(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ar(t),t):(ar(t),null);if((t.flags&128)!==0)throw Error(K(558))}return Et(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Qc(t),a!==null&&a.dehydrated!==null){if(e===null){if(!r)throw Error(K(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(K(317));r[Un]=t}else hu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Et(t),r=!1}else r=Zw(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(ar(t),t):(ar(t),null)}return ar(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==r&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cb(t,t.updateQueue),Et(t),null);case 4:return kd(),e===null&&pk(t.stateNode.containerInfo),t.flags|=67108864,Et(t),null;case 10:return bs(t.type),Et(t),null;case 19:if(HS(t),a=t.memoizedState,a===null)return Et(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)Tm(a,!1);else{if(Kt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Yb(e),o!==null){for(t.flags|=128,Tm(a,!1),e=o.updateQueue,t.updateQueue=e,cb(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)RE(n,e),n=n.sibling;return sp(t,Xn.current&1|2),We&&ps(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&sr()>oy&&(t.flags|=128,r=!0,Tm(a,!1),t.lanes=4194304)}else{if(!r)if(e=Yb(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,cb(t,e),Tm(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!o.alternate&&!We)return Et(t),null}else 2*sr()-a.renderingStartTime>oy&&n!==536870912&&(t.flags|=128,r=!0,Tm(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}if(a.tail!==null){e=a.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=sr(),e.sibling=null,o=Xn.current,o=r?o&1|2:o&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!n||We?sp(t,o):(n=o,Pt(Zn,t),Pt(Xn,n),sa===null&&(sa=t)),We&&ps(t,a.treeForkCount),e}return Et(t),null;case 22:case 23:return ar(t),qS(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),n=t.updateQueue,n!==null&&cb(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&Wn(mu),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),bs(gn),Et(t),null;case 25:return null;case 30:return t.flags|=33554432,Et(t),null}throw Error(K(156,t.tag))}function FG(e,t){switch(OS(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bs(gn),kd(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Bb(t),null;case 31:if(t.memoizedState!==null){if(ar(t),t.alternate===null)throw Error(K(340));hu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ar(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));hu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return HS(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return kd(),null;case 10:return bs(t.type),null;case 22:case 23:return ar(t),qS(),e!==null&&Wn(mu),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return bs(gn),null;case 25:return null;default:return null}}function LA(e,t){switch(OS(t),t.tag){case 3:bs(gn),kd();break;case 26:case 27:case 5:Bb(t);break;case 4:kd();break;case 31:t.memoizedState!==null&&ar(t);break;case 13:ar(t);break;case 19:HS(t);break;case 10:bs(t.type);break;case 22:case 23:ar(t),qS(),e!==null&&Wn(mu);break;case 24:bs(gn)}}function _p(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var o=n.create,s=n.inst;a=o(),s.destroy=a}n=n.next}while(n!==r)}}catch(i){yt(t,t.return,i)}}function Oi(e,t,n){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var o=r.next;a=o;do{if((a.tag&e)===e){var s=a.inst,i=s.destroy;if(i!==void 0){s.destroy=void 0,r=t;var l=n,u=i;try{u()}catch(c){yt(r,l,c)}}}a=a.next}while(a!==o)}}catch(c){yt(t,t.return,c)}}function RA(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{OE(t,n)}catch(a){yt(e,e.return,a)}}}function IA(e,t,n){n.props=wu(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){yt(e,t,a)}}function $o(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var r=e.stateNode,o=xs(e.memoizedProps,r);(r.ref===null||r.ref.name!==o)&&(r.ref=x2(o)),a=r.ref;break;case 7:if(e.stateNode===null){var s=new dr(e);Fa(e.child,!1,R6,s,void 0,void 0),e.stateNode=s}a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(i){yt(e,t,i)}}function Hn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(r){yt(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){yt(e,t,r)}else n.current=null}function ey(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)_2(e.stateNode,t[n])}function nT(e){for(var t=e.return;t!==null&&(ik(t)&&_2(e.stateNode,t.stateNode),!sk(t));)t=t.return}function Ym(e){for(var t=e.return;t!==null&&(ik(t)&&I6(e.stateNode,t.stateNode),!sk(t));)t=t.return}function sk(e){return e.tag===5||e.tag===3||e.tag===27}function ik(e){return e&&e.tag===7&&e.stateNode!==null}function Z_(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){yt(e,e.return,r)}}function n_(e,t,n){try{var a=e.stateNode;c6(a,e.type,n,t),a[Va]=t}catch(r){yt(e,e.return,r)}}function jA(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Vi(e.type)||e.tag===4}function a_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jA(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Vi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function K_(e,t,n,a){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(r,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(r),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Io)),ey(e,a),ot=!0;else if(r!==4&&(r===27&&(ey(e,a),a=null,Vi(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(K_(e,t,n,a),e=e.sibling;e!==null;)K_(e,t,n,a),e=e.sibling}function ty(e,t,n,a){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?n.insertBefore(r,t):n.appendChild(r),ey(e,a),ot=!0;else if(r!==4&&(r===27&&(ey(e,a),a=null,Vi(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(ty(e,t,n,a),e=e.sibling;e!==null;)ty(e,t,n,a),e=e.sibling}function TA(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Yn(t,a,n),t[Un]=e,t[Va]=n}catch(o){yt(e,e.return,o)}}var ny=!1,rr=null;function aT(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(ny=!0)}var Lo=null;function rT(){var e=Lo;return Lo=null,e}var Na=0;function Vd(e,t,n,a,r){return Na=0,EA(e.child,t,n,a,r)}function EA(e,t,n,a,r){for(var o=!1;e!==null;){if(e.tag===5){var s=e.stateNode;if(a!==null){var i=bS(s);a.push(i),i.view&&(o=!0)}else o||bS(s).view&&(o=!0);ny=!0,h2(s,Na===0?t:t+"_"+Na,n),Na++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&r||EA(e.child,t,n,a,r)&&(o=!0));e=e.sibling}return o}function Po(e,t){for(;e!==null;)e.tag===5?b2(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Po(e.child,t)),e=e.sibling}function Rb(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Rb(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(K(544));var n=t.name;t=ks(t.default,t.share),t!=="none"&&(Vd(e,n,t,null,!1)||Po(e.child,!1))}e=e.sibling}}function Q_(e,t){if(e.tag===30){var n=e.stateNode,a=e.memoizedProps,r=xs(a,n),o=ks(a.default,n.paired?a.share:a.enter);o!=="none"?Vd(e,r,o,null,!1)?(Rb(e),n.paired||t||jd(e,a.onEnter)):Po(e.child,!1):Rb(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Q_(e,t),e=e.sibling;else Rb(e)}function J_(e){if(rr!==null&&rr.size!==0){var t=rr;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,a=n.name;if(a!=null&&a!=="auto"){var r=t.get(a);if(r!==void 0){var o=ks(n.default,n.share);if(o!=="none"&&(Vd(e,a,o,null,!1)?(o=e.stateNode,r.paired=o,o.paired=r,jd(e,n.onShare)):Po(e.child,!1)),t.delete(a),t.size===0)break}}}J_(e)}e=e.sibling}}}function eS(e){if(e.tag===30){var t=e.memoizedProps,n=xs(t,e.stateNode),a=rr!==null?rr.get(n):void 0,r=ks(t.default,a!==void 0?t.share:t.exit);r!=="none"&&(Vd(e,n,r,null,!1)?a!==void 0?(r=e.stateNode,a.paired=r,r.paired=a,rr.delete(n),jd(e,t.onShare)):jd(e,t.onExit):Po(e.child,!1)),rr!==null&&J_(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)eS(e),e=e.sibling;else rr!==null&&J_(e)}function AA(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=xs(t,e.stateNode);t=ks(t.default,t.update),e.flags&=-5,t!=="none"&&Vd(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&AA(e);e=e.sibling}}function tS(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,Po(e.child,!1))}tS(e)}e=e.sibling}}function Ib(e){if(e.tag===30)e.stateNode.paired=null,Po(e.child,!1),tS(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Ib(e),e=e.sibling;else tS(e)}function PA(e){for(e=e.child;e!==null;)e.tag===30?Po(e.child,!1):(e.subtreeFlags&33554432)!==0&&PA(e),e=e.sibling}function lk(e,t,n,a,r,o,s){for(var i=!1;t!==null;){if(t.tag===5){var l=t.stateNode;if(o!==null&&Na<o.length){var u=o[Na],c=bS(l);(u.view||c.view)&&(i=!0);var d;if(d=(e.flags&4)===0)if(c.clip)d=!0;else{d=u.rect;var f=c.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}d&&(e.flags|=4),c.abs?c=!u.abs:(u=u.rect,c=c.rect,c=u.height!==c.height||u.width!==c.width),c&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&h2(l,Na===0?n:n+"_"+Na,r),i&&(e.flags&4)!==0||(Lo===null&&(Lo=[]),Lo.push(l,Na===0?a:a+"_"+Na,t.memoizedProps)),Na++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&s?e.flags|=t.flags&32:lk(e,t.child,n,a,r,o,s)&&(i=!0));t=t.sibling}return i}function MA(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,a=e.stateNode,r=xs(n,a),o=ks(n.default,n.update);if(t){a=a.clones;var s=a===null?null:a.map(h6)}else s=e.memoizedState,e.memoizedState=null;a=e;var i=e.child;Na=0,r=lk(a,i,r,r,o,s,!1),(e.flags&4)!==0&&r&&(t||jd(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&MA(e,t);e=e.sibling}}var An=!1,ft=!1,_o=!1,r_=!1,oT=typeof WeakSet=="function"?WeakSet:Set,Pn=null,So=!1,Bm=!1,ay=!1,nS=!1;function VG(e,t,n){if(e=e.containerInfo,pS=Dd,e=vE(e),PS(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var i=0,l=-1,u=-1,c=0,d=0,f=e,m=null;t:for(;;){for(var p;f!==a||o!==0&&f.nodeType!==3||(l=i+o),f!==s||r!==0&&f.nodeType!==3||(u=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(p=f.firstChild)!==null;)m=f,f=p;for(;;){if(f===e)break t;if(m===a&&++c===o&&(l=i),m===s&&++d===r&&(u=i),(p=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=p}a=l===-1||u===-1?null:{start:l,end:u}}else a=null}a=a||{start:0,end:0}}else a=null;for(gS={focusedElem:e,selectionRange:a},Dd=!1,n=(n&335544064)===n,Pn=t,t=n?9270:1024;Pn!==null;){if(e=Pn,n&&(a=e.deletions,a!==null))for(o=0;o<a.length;o++)n&&eS(a[o]);if(e.alternate===null&&(e.flags&2)!==0)n&&aT(e),db(n);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&n&&eS(a),db(n);continue}else if(a!==null&&a.memoizedState!==null){n&&aT(e),db(n);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,Pn=a):(n&&AA(e),db(n))}}rr=null}function db(e){for(;Pn!==null;){var t=Pn,n=e,a=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((r&1024)!==0&&a!==null){n=void 0,r=a.memoizedProps,a=a.memoizedState;var o=t.stateNode;try{var s=wu(t.type,r);n=o.getSnapshotBeforeUpdate(s,a),o.__reactInternalSnapshotBeforeUpdate=n}catch(i){yt(t,t.return,i)}}break;case 3:if((r&1024)!==0){if(a=t.stateNode.containerInfo,n=a.nodeType,n===9)yS(a);else if(n===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":yS(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&a!==null&&(n=xs(a.memoizedProps,a.stateNode),r=t.memoizedProps,r=ks(r.default,r.update),r!=="none"&&Vd(a,n,r,a.memoizedState=[],!0));break;default:if((r&1024)!==0)throw Error(K(163))}if(a=t.sibling,a!==null){a.return=t.return,Pn=a;break}Pn=t.return}}function DA(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:ko(e,n),a&4&&_p(5,n);break;case 1:if(ko(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){yt(n,n.return,s)}else{var r=wu(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){yt(n,n.return,s)}}a&64&&RA(n),a&512&&$o(n,n.return);break;case 3:if(ko(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{OE(e,t)}catch(s){yt(n,n.return,s)}}break;case 27:t===null&&a&4&&TA(n);case 26:case 5:ko(e,n),t===null&&a&4&&Z_(n),a&512&&$o(n,n.return);break;case 12:ko(e,n);break;case 31:ko(e,n),a&4&&FA(e,n);break;case 13:ko(e,n),a&4&&VA(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=JG.bind(null,n),E6(e,n))));break;case 22:if(a=n.memoizedState!==null||An,!a){var o=t!==null&&t.memoizedState!==null||ft;t=An,r=ft,An=a,(ft=o)&&!r?(a=2,(n.subtreeFlags&8772)!==0&&(a|=1),eo(e,n,a)):ko(e,n),An=t,ft=r}break;case 30:ko(e,n),a&512&&$o(n,n.return);break;case 7:a&512&&$o(n,n.return);default:ko(e,n)}}function aS(e,t){for(e=e.child;e!==null;)NA(e,t),e=e.sibling}function NA(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var r=e.stateNode,o=e.memoizedProps.style,s=o!=null&&o.hasOwnProperty("display")?o.display:null;r.style.display=s==null||typeof s=="boolean"?"":(""+s).trim()}}catch(l){yt(e,e.return,l)}rS(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ot=!0}catch(l){yt(e,e.return,l)}break;case 18:try{var i=e.stateNode;t?CT(i,!0):CT(e.stateNode,!1)}catch(l){yt(e,e.return,l)}break;case 22:case 23:e.memoizedState===null&&aS(e,t);break;default:aS(e,t)}}function rS(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,a=t;switch(n.tag){case 4:NA(n,a);break e;case 22:n.memoizedState===null&&rS(n,a);break e;default:rS(n,a)}}e=e.sibling}}function OA(e){var t=e.alternate;t!==null&&(e.alternate=null,OA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&my(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var zt=null,Ma=!1;function Jr(e,t,n){for(n=n.child;n!==null;)BA(e,t,n),n=n.sibling}function BA(e,t,n){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(hp,n)}catch{}switch(n.tag){case 26:ft||Hn(n,t),Jr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ft&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ft||Hn(n,t),Ym(n);var a=zt,r=Ma;Vi(n.type)&&(zt=n.stateNode,Ma=!1),Jr(e,t,n),$2(n.stateNode,n.type,n.memoizedProps),zt=a,Ma=r;break;case 5:ft||Hn(n,t),Ym(n);case 6:if(n.tag===6&&Ym(n),a=zt,r=Ma,zt=null,Jr(e,t,n),zt=a,Ma=r,zt!==null)if(Ma)try{(zt.nodeType===9?zt.body:zt.nodeName==="HTML"?zt.ownerDocument.body:zt).removeChild(n.stateNode),ot=!0}catch(o){yt(n,t,o)}else try{zt.removeChild(n.stateNode),ot=!0}catch(o){yt(n,t,o)}break;case 18:zt!==null&&(Ma?(e=zt,vT(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Nd(e)):vT(zt,n.stateNode));break;case 4:a=zt,r=Ma,zt=n.stateNode.containerInfo,Ma=!0,Jr(e,t,n),zt=a,Ma=r;break;case 0:case 11:case 14:case 15:Oi(2,n,t),ft||Oi(4,n,t),Jr(e,t,n);break;case 1:ft||(Hn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&IA(n,t,a)),Jr(e,t,n);break;case 21:Jr(e,t,n);break;case 22:ft=(a=ft)||n.memoizedState!==null,Jr(e,t,n),ft=a;break;case 30:Hn(n,t),Jr(e,t,n);break;case 7:ft||Hn(n,t),Jr(e,t,n);break;default:Jr(e,t,n)}}function FA(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Nd(e)}catch(n){yt(t,t.return,n)}}}function VA(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Nd(e)}catch(n){yt(t,t.return,n)}}function zG(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new oT),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new oT),t;default:throw Error(K(435,e.tag))}}function fb(e,t){var n=zG(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var r=e6.bind(null,e,a);a.then(r,r)}})}function va(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r],s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 27:if(Vi(l.type)){zt=l.stateNode,Ma=!1;break e}break;case 5:zt=l.stateNode,Ma=!1;break e;case 3:case 4:zt=l.stateNode.containerInfo,Ma=!0;break e}l=l.return}if(zt===null)throw Error(K(160));BA(s,i,o),zt=null,Ma=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)zA(t,e,n),t=t.sibling}var to=null;function zA(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(r&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var o=0;o<a.length;o++){var s=a[o];s.ref.impl=s.nextImpl}va(t,e,n),Ca(e),r&4&&(Oi(3,e,e.return),_p(3,e),Oi(5,e,e.return));break;case 1:va(t,e,n),Ca(e),r&512&&(ft||a===null||Hn(a,a.return)),r&64&&An&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=to,va(t,e,n),Ca(e),r&512&&(ft||a===null||Hn(a,a.return)),r&4)if(r=a!==null?a.memoizedState:null,n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null)if(An)e.stateNode=g2(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,r=o.ownerDocument||o;t:switch(t){case"title":a=r.getElementsByTagName("title")[0],(!a||a[xp]||a[Un]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=r.createElement(t),r.head.insertBefore(a,r.querySelector("head > title"))),Yn(a,t,n),a[Un]=e,Mn(a),t=a;break e;case"link":if(o=IT("link","href",r).get(t+(n.href||""))){for(s=0;s<o.length;s++)if(a=o[s],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break t}}a=r.createElement(t),Yn(a,t,n),r.head.appendChild(a);break;case"meta":if(o=IT("meta","content",r).get(t+(n.content||""))){for(s=0;s<o.length;s++)if(a=o[s],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(s,1);break t}}a=r.createElement(t),Yn(a,t,n),r.head.appendChild(a);break;default:throw Error(K(468,t))}a[Un]=e,Mn(a),t=a}e.stateNode=t}else An||CS(o,e.type,e.stateNode);else e.stateNode=RT(o,n,e.memoizedProps);else r!==n?(r===null?(t=a.stateNode,t===null||ft||t.parentNode.removeChild(t)):r.count--,n===null?An||CS(o,e.type,e.stateNode):RT(o,n,e.memoizedProps)):n===null&&e.stateNode!==null&&n_(e,e.memoizedProps,a.memoizedProps);break;case 27:va(t,e,n),Ca(e),r&512&&(ft||a===null||Hn(a,a.return)),a!==null&&r&4&&n_(e,e.memoizedProps,a.memoizedProps);break;case 5:if(o=_o,_o=!1,va(t,e,n),_o=o,Ca(e),r&512&&(ft||a===null||Hn(a,a.return)),e.flags&32){t=e.stateNode;try{Ld(t,""),ot=!0}catch(c){yt(e,e.return,c)}}r&4&&e.stateNode!=null&&(t=e.memoizedProps,n_(e,t,a!==null?a.memoizedProps:t)),r&1024&&(r_=!0);break;case 6:if(va(t,e,n),Ca(e),r&4){if(e.stateNode===null)throw Error(K(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,ot=!0}catch(c){yt(e,e.return,c)}}break;case 3:if(ot=!1,Ab=null,o=to,to=dp(t.containerInfo),va(t,e,n),to=o,Ca(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Nd(t.containerInfo)}catch(c){yt(e,e.return,c)}r_&&(r_=!1,qA(e)),ot=!1;break;case 4:r=_o,_o=An,a=dj(),o=to,to=dp(e.stateNode.containerInfo),va(t,e,n),Ca(e),to=o,ot&&Bm&&(ay=!0),ot=a,_o=r;break;case 12:va(t,e,n),Ca(e);break;case 31:va(t,e,n),Ca(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,fb(e,t)));break;case 13:va(t,e,n),Ca(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&($y=sr()),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,fb(e,t)));break;case 22:o=e.memoizedState!==null,s=a!==null&&a.memoizedState!==null;var i=An,l=ft,u=_o;An=i||o,_o=u||o,ft=l||s,va(t,e,n),ft=l,_o=u,An=i,Ca(e),r&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||a===null||s||An||ft||(t=s||ft,n=An,a=ft,An=o||An,ft=t,gi(e,2),An=n,ft=a),!o&&_o||aS(e,o)),r&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,fb(e,n))));break;case 19:va(t,e,n),Ca(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,fb(e,t)));break;case 30:r&512&&(ft||a===null||Hn(a,a.return)),r=dj(),o=Bm,s=(n&335544064)===n,i=e.memoizedProps,Bm=s&&ks(i.default,i.update)!=="none",va(t,e,n),Ca(e),s&&a!==null&&ot&&(e.flags|=4),Bm=o,ot=r;break;case 21:break;case 7:r&512&&(ft||a===null||Hn(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:va(t,e,n),Ca(e)}}function Ca(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(jA(a)){n=a;break}a=a.return}a=null;for(var r=e.return;r!==null;){if(ik(r)){var o=r.stateNode;a===null?a=[o]:a.push(o)}if(sk(r))break;r=r.return}var s=a;if(n==null)throw Error(K(160));switch(n.tag){case 27:var i=n.stateNode,l=a_(e);ty(e,l,i,s);break;case 5:var u=n.stateNode;n.flags&32&&(Ld(u,""),n.flags&=-33);var c=a_(e);ty(e,c,u,s);break;case 3:case 4:var d=n.stateNode.containerInfo,f=a_(e);K_(e,f,d,s);break;default:throw Error(K(161))}}catch(m){yt(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qA(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qA(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Dd=!0,t.reset(),Dd=!1),e=e.sibling}}function Jc(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)HA(t,e),t=t.sibling;else MA(t,!1)}function HA(e,t){var n=e.alternate;if(n===null)Q_(e,!1);else switch(e.tag){case 3:if(nS=So=!1,rT(),Jc(t,e),!So&&!ay){if(e=Lo,e!==null)for(var a=0;a<e.length;a+=3){n=e[a];var r=e[a+1];b2(n,e[a+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+r+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),nS=!0}Lo=null;break;case 5:Jc(t,e);break;case 4:a=So,So=!1,Jc(t,e),So&&(ay=!0),So=a;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?Q_(e,!1):Jc(t,e));break;case 30:a=So,r=rT(),So=!1,Jc(t,e),So&&(e.flags|=4);var o=e.memoizedProps,s=e.stateNode;t=xs(o,s),s=xs(n.memoizedProps,s);var i=ks(o.default,o.update);i==="none"?t=!1:(o=n.memoizedState,n.memoizedState=null,n=e.child,Na=0,t=lk(e,n,t,s,i,o,!0),Na!==(o===null?0:o.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(jd(e,e.memoizedProps.onUpdate),Lo=r):r!==null&&(r.push.apply(r,Lo),Lo=r),So=(e.flags&32)!==0?!0:a;break;default:Jc(t,e)}}function ko(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)DA(e,t.alternate,t),t=t.sibling}function gi(e,t){for(e=e.child;e!==null;){var n=e,a=t;switch(n.tag){case 0:case 11:case 14:case 15:Oi(4,n,n.return),gi(n,a);break;case 1:Hn(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&IA(n,n.return,r),gi(n,a);break;case 27:(a&2)!==0&&$2(n.stateNode,n.type,n.memoizedProps);case 5:Hn(n,n.return),n.tag!==5&&n.tag!==27||Ym(n),gi(n,a);break;case 6:Ym(n);break;case 26:Hn(n,n.return),r=n.stateNode,n.memoizedState!==null||r===null||ft||r.parentNode.removeChild(r),gi(n,a);break;case 22:n.memoizedState===null&&gi(n,a);break;case 30:Hn(n,n.return),gi(n,a);break;case 7:Hn(n,n.return);default:gi(n,a)}e=e.sibling}}function eo(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var a=t.alternate,r=e,o=t,s=o.flags,i=(n&1)!==0;switch(o.tag){case 0:case 11:case 15:eo(r,o,n),_p(4,o);break;case 1:if(eo(r,o,n),a=o,r=a.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(c){yt(a,a.return,c)}if(a=o,r=a.updateQueue,r!==null){var l=a.stateNode;try{var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)NE(u[r],l)}catch(c){yt(a,a.return,c)}}i&&s&64&&RA(o),$o(o,o.return);break;case 27:(n&2)!==0&&TA(o);case 5:o.tag!==5&&o.tag!==27||nT(o),eo(r,o,n),i&&a===null&&s&4&&Z_(o),$o(o,o.return);break;case 6:nT(o);break;case 26:l=o.stateNode,o.memoizedState!==null||l===null||An||CS(dp(l.ownerDocument),o.type,l),eo(r,o,n),i&&a===null&&s&4&&Z_(o),$o(o,o.return);break;case 12:eo(r,o,n);break;case 31:eo(r,o,n),i&&s&4&&FA(r,o);break;case 13:eo(r,o,n),i&&s&4&&VA(r,o);break;case 22:o.memoizedState===null&&eo(r,o,n),$o(o,o.return);break;case 30:eo(r,o,n),$o(o,o.return);break;case 7:$o(o,o.return);default:eo(r,o,n)}t=t.sibling}}function uk(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Cp(n))}function ck(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cp(e))}function Cr(e,t,n,a){var r=(n&335544064)===n;if(t.subtreeFlags&(r?10262:10256))for(t=t.child;t!==null;)UA(e,t,n,a),t=t.sibling;else r&&PA(t)}function UA(e,t,n,a){var r=(n&335544064)===n;r&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Ib(t);var o=t.flags;switch(t.tag){case 0:case 11:case 15:Cr(e,t,n,a),o&2048&&_p(9,t);break;case 1:Cr(e,t,n,a);break;case 3:Cr(e,t,n,a),r&&nS&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),o&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Cp(o)));break;case 12:if(o&2048){Cr(e,t,n,a),o=t.stateNode;try{var s=t.memoizedProps,i=s.id,l=s.onPostCommit;typeof l=="function"&&l(i,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(u){yt(t,t.return,u)}}else Cr(e,t,n,a);break;case 31:Cr(e,t,n,a);break;case 13:Cr(e,t,n,a);break;case 23:break;case 22:s=t.stateNode,i=t.alternate,t.memoizedState!==null?(r&&i!==null&&i.memoizedState===null&&Ib(i),s._visibility&2?Cr(e,t,n,a):Zm(e,t)):(r&&i!==null&&i.memoizedState!==null&&Ib(t),s._visibility&2?Cr(e,t,n,a):(s._visibility|=2,td(e,t,n,a,(t.subtreeFlags&10256)!==0||!1))),o&2048&&uk(i,t);break;case 24:Cr(e,t,n,a),o&2048&&ck(t.alternate,t);break;case 30:r&&(o=t.alternate,o!==null&&(Po(o.child,!0),Po(t.child,!0))),Cr(e,t,n,a);break;default:Cr(e,t,n,a)}}function td(e,t,n,a,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,s=t,i=n,l=a,u=s.flags;switch(s.tag){case 0:case 11:case 15:td(o,s,i,l,r),_p(8,s);break;case 23:break;case 22:var c=s.stateNode;s.memoizedState!==null?c._visibility&2?td(o,s,i,l,r):Zm(o,s):(c._visibility|=2,td(o,s,i,l,r)),r&&u&2048&&uk(s.alternate,s);break;case 24:td(o,s,i,l,r),r&&u&2048&&ck(s.alternate,s);break;default:td(o,s,i,l,r)}t=t.sibling}}function Zm(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,r=a.flags;switch(a.tag){case 22:Zm(n,a),r&2048&&uk(a.alternate,a);break;case 24:Zm(n,a),r&2048&&ck(a.alternate,a);break;default:Zm(n,a)}t=t.sibling}}var lu=8192;function ou(e,t,n){if(e.subtreeFlags&lu)for(e=e.child;e!==null;)GA(e,t,n),e=e.sibling}function GA(e,t,n){switch(e.tag){case 26:ou(e,t,n),e.flags&lu&&(e.memoizedState!==null?G6(n,to,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&TT(n,e)));break;case 5:ou(e,t,n),e.flags&lu&&(e=e.stateNode,(t&335544128)===t&&TT(n,e));break;case 3:case 4:var a=to;to=dp(e.stateNode.containerInfo),ou(e,t,n),to=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=lu,lu=16777216,ou(e,t,n),lu=a):ou(e,t,n));break;case 30:if((e.flags&lu)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var r=e.stateNode;r.paired=null,rr===null&&(rr=new Map),rr.set(a,r)}ou(e,t,n);break;default:ou(e,t,n)}}function WA(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Em(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Pn=a,YA(a,e)}WA(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)XA(e),e=e.sibling}function XA(e){switch(e.tag){case 0:case 11:case 15:Em(e),e.flags&2048&&Oi(9,e,e.return);break;case 3:Em(e);break;case 12:Em(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jb(e)):Em(e);break;default:Em(e)}}function jb(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Pn=a,YA(a,e)}WA(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Oi(8,t,t.return),jb(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,jb(t));break;default:jb(t)}e=e.sibling}}function YA(e,t){for(;Pn!==null;){var n=Pn;switch(n.tag){case 0:case 11:case 15:Oi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Cp(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Pn=a;else e:for(n=e;Pn!==null;){a=Pn;var r=a.sibling,o=a.return;if(OA(a),a===n){Pn=null;break e}if(r!==null){r.return=o,Pn=r;break e}Pn=o}}}var qG={getCacheForType:function(e){var t=Gn(gn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Gn(gn).controller.signal}},HG=typeof WeakMap=="function"?WeakMap:Map,lt=0,kt=null,Ze=null,Ke=0,ht=0,tr=null,wi=!1,zd=!1,dk=!1,_s=0,Kt=0,Bi=0,gu=0,ry=0,or=0,Id=0,Km=null,Da=null,oS=!1,$y=0,ZA=0,oy=1/0,sy=null,Ti=null,Gt=0,ao=null,_u=null,Ao=0,sS=0,iS=null,KA=null,wd=null,_d=null,Sd=null,Qm=0,Tb=null;function ur(){return(lt&2)!==0&&Ke!==0?Ke&-Ke:Ee.T!==null?mk():tE()}function QA(){if(or===0)if((Ke&536870912)===0||We){var e=Jh;Jh<<=1,(Jh&3932160)===0&&(Jh=262144),or=e}else or=536870912;return e=Zn.current,e!==null&&(e.flags|=32),or}function jd(e,t){if(t!=null){var n=e.stateNode,a=n.ref;a===null&&(a=n.ref=x2(xs(e.memoizedProps,n))),_d===null&&(_d=[]),_d.push(t.bind(null,a))}}function Ba(e,t,n){(e===kt&&(ht===2||ht===9)||e.cancelPendingCommit!==null)&&(Td(e,0),_i(e,Ke,or,!1)),yp(e,n),((lt&2)===0||e!==kt)&&(e===kt&&((lt&2)===0&&(gu|=n),Kt===4&&_i(e,Ke,or,!1)),Do(e))}function JA(e,t,n){if((lt&6)!==0)throw Error(K(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||bp(e,t),r=a?WG(e,t):o_(e,t,!0),o=a;do{if(r===0){zd&&!a&&_i(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!UG(n)){r=o_(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var i=e;r=Km;var l=i.current.memoizedState.isDehydrated;if(l&&(Td(i,s).flags|=256),s=o_(i,s,!1),s!==2&&s!==6){if(dk&&!l){i.errorRecoveryDisabledLanes|=o,gu|=o,r=4;break e}o=Da,Da=r,o!==null&&(Da===null?Da=o:Da.push.apply(Da,o))}r=s}if(o=!1,r!==2)continue}}if(r===1){Td(e,0),_i(e,t,0,!0);break}e:{switch(a=e,o=r,o){case 0:case 1:throw Error(K(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:_i(a,t,or,!wi);break e;case 2:Da=null;break;case 3:case 5:break;default:throw Error(K(329))}if((t&62914560)===t&&(r=$y+300-sr(),10<r)){if(_i(a,t,or,!wi),fy(a,0,!0)!==0)break e;Ao=t,a.timeoutHandle=gk(sT.bind(null,a,n,Da,sy,oS,t,or,gu,Id,wi,o,"Throttled",-0,0),r);break e}sT(a,n,Da,sy,oS,t,or,gu,Id,wi,o,null,-0,0)}}break}while(!0);Do(e)}function sT(e,t,n,a,r,o,s,i,l,u,c,d,f,m){e.timeoutHandle=-1;var p=t.subtreeFlags,h=(o&335544064)===o;if(d=null,(h||p&8192||(p&16785408)===16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Io},rr=null,GA(t,o,d),h&&(p=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(p.count++,p.waitingForViewTransition=!0,p=fp.bind(p),h.finished.then(p,p))),p=(o&62914560)===o?$y-sr():(o&4194048)===o?ZA-sr():0,p=W6(d,p),p!==null)){Ao=o,e.cancelPendingCommit=p(lT.bind(null,e,t,o,n,a,r,s,i,l,u,c,d,null,f,m)),_i(e,o,s,!u);return}lT(e,t,o,n,a,r,s,i,l,u,c,d)}function UG(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var r=n[a],o=r.getSnapshot;r=r.value;try{if(!cr(o(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _i(e,t,n,a){t=ZT(e,t),t&=~ry,t&=~gu,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var o=31-lr(r),s=1<<o;a[o]=-1,r&=~s}n!==0&&QT(e,n,t)}function Ly(){return(lt&6)===0?(Sp(0,!1),!1):!0}function fk(){if(Ze!==null){if(ht===0)var e=Ze.return;else e=Ze,gs=Ru=null,YS(e),xd=null,op=0,e=Ze;for(;e!==null;)LA(e.alternate,e),e=e.return;Ze=null}}function Td(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,m6(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ao=0,fk(),kt=e,Ze=n=hs(e.current,null),Ke=t,ht=0,tr=null,wi=!1,zd=bp(e,t),dk=!1,Id=or=ry=gu=Bi=Kt=0,Da=Km=null,oS=!1,_s=ZT(e,t),by(),n}function e2(e,t){Fe=null,Ee.H=Qb,t===Fd||t===vy?(t=Aj(),ht=3):t===VS?(t=Aj(),ht=4):ht=t===ak?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tr=t,Ze===null&&(Kt=1,Jb(e,$r(t,e.current)))}function t2(){var e=Zn.current;return e===null?!0:(Ke&4194048)===Ke?sa===null:(Ke&62914560)===Ke||(Ke&536870912)!==0?e===sa:!1}function n2(){var e=Ee.H;return Ee.H=Qb,e===null?Qb:e}function a2(){var e=Ee.A;return Ee.A=qG,e}function iy(){Kt=4,wi||(Ke&4194048)!==Ke&&Zn.current!==null||(zd=!0),(Bi&134217727)===0&&(gu&134217727)===0||kt===null||_i(kt,Ke,or,!1)}function o_(e,t,n){var a=lt;lt|=2;var r=n2(),o=a2();(kt!==e||Ke!==t)&&(sy=null,Td(e,t)),t=!1;var s=Kt;e:do try{if(ht!==0&&Ze!==null){var i=Ze,l=tr;switch(ht){case 8:fk(),s=6;break e;case 3:case 2:case 9:case 6:Zn.current===null&&(t=!0);var u=ht;if(ht=0,tr=null,pd(e,i,l,u),n&&zd){s=0;break e}break;default:u=ht,ht=0,tr=null,pd(e,i,l,u)}}GG(),s=Kt;break}catch(c){e2(e,c)}while(!0);return t&&e.shellSuspendCounter++,gs=Ru=null,lt=a,Ee.H=r,Ee.A=o,Ze===null&&(kt=null,Ke=0,by()),s}function GG(){for(;Ze!==null;)r2(Ze)}function WG(e,t){var n=lt;lt|=2;var a=n2(),r=a2();kt!==e||Ke!==t?(sy=null,oy=sr()+500,Td(e,t)):zd=bp(e,t);e:do try{if(ht!==0&&Ze!==null){t=Ze;var o=tr;t:switch(ht){case 1:ht=0,tr=null,pd(e,t,o,1);break;case 2:case 9:if(Ej(o)){ht=0,tr=null,iT(t);break}t=function(){ht!==2&&ht!==9||kt!==e||(ht=7),Do(e)},o.then(t,t);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:Ej(o)?(ht=0,tr=null,iT(t)):(ht=0,tr=null,pd(e,t,o,7));break;case 5:var s=null;switch(Ze.tag){case 26:s=Ze.memoizedState;case 5:case 27:var i=Ze;if(s?I2(s):i.stateNode.complete){ht=0,tr=null;var l=i.sibling;if(l!==null)Ze=l;else{var u=i.return;u!==null?(Ze=u,Ry(u)):Ze=null}break t}}ht=0,tr=null,pd(e,t,o,5);break;case 6:ht=0,tr=null,pd(e,t,o,6);break;case 8:fk(),Kt=6;break e;default:throw Error(K(462))}}XG();break}catch(c){e2(e,c)}while(!0);return gs=Ru=null,Ee.H=a,Ee.A=r,lt=n,Ze!==null?0:(kt=null,Ke=0,by(),Kt)}function XG(){for(;Ze!==null&&!dU();)r2(Ze)}function r2(e){var t=$A(e.alternate,e,_s);e.memoizedProps=e.pendingProps,t===null?Ry(e):Ze=t}function iT(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Yj(n,t,t.pendingProps,t.type,void 0,Ke);break;case 11:t=Yj(n,t,t.pendingProps,t.type.render,t.ref,Ke);break;case 5:YS(t);var a=t;a===Dn&&(We?(Ub(a),a.tag===5&&a.stateNode!=null&&(At=a.stateNode)):(Ub(a),We=!0));default:LA(n,t),t=Ze=RE(t,_s),t=$A(n,t,_s)}e.memoizedProps=e.pendingProps,t===null?Ry(e):Ze=t}function pd(e,t,n,a){gs=Ru=null,YS(t),xd=null,op=0;var r=t.return;try{if(MG(e,r,t,n,Ke)){Kt=1,Jb(e,$r(n,e.current)),Ze=null;return}}catch(o){if(r!==null)throw Ze=r,o;Kt=1,Jb(e,$r(n,e.current)),Ze=null;return}t.flags&32768?(We||a===1?e=!0:zd||(Ke&536870912)!==0?e=!1:(wi=e=!0,(a===2||a===9||a===3||a===6)&&(a=Zn.current,a!==null&&a.tag===13&&(a.flags|=16384))),o2(t,e)):Ry(t)}function Ry(e){var t=e;do{if((t.flags&32768)!==0){o2(t,wi);return}e=t.return;var n=BG(t.alternate,t,_s);if(n!==null){Ze=n;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);Kt===0&&(Kt=5)}function o2(e,t){do{var n=FG(e.alternate,e);if(n!==null){n.flags&=32767,Ze=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ze=e;return}Ze=e=n}while(e!==null);Kt=6,Ze=null}function lT(e,t,n,a,r,o,s,i,l,u,c,d){e.cancelPendingCommit=null;do Iy();while(Gt!==0);if((lt&6)!==0)throw Error(K(327));if(t!==null){if(t===e.current)throw Error(K(177));e===kt&&(Ze=kt=null,Ke=0),_u=t,ao=e,Ao=n,iS=r,KA=a,YG(e,t,n,s,i,l,d)}}function YG(e,t,n,a,r,o,s){var i=t.lanes|t.childLanes;if(sS=i,i|=MS,CU(e,n,i,a,r,o),_d=null,(n&335544064)===n?(Sd=_G(e),a=10262):(Sd=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,t6(Fb,function(){return dS(),null})):(e.callbackNode=null,e.callbackPriority=0),ny=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=Ee.T,Ee.T=null,r=ut.p,ut.p=2,o=lt,lt|=4;try{VG(e,t,n)}finally{lt=o,ut.p=r,Ee.T=a}}Gt=1,ny?wd=x6(s,e.containerInfo,Sd,lS,uS,KG,cS,dS,ZG,null,null):(lS(),uS(),cS())}function ZG(e){if(Gt!==0){var t=ao.onRecoverableError;t(e,{componentStack:null})}}function KG(){Gt===3&&(Gt=0,HA(_u,ao),Gt=4)}function lS(){if(Gt===1){Gt=0;var e=ao,t=_u,n=Ao,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=Ee.T,Ee.T=null;var r=ut.p;ut.p=2;var o=lt;lt|=4;try{Bm=ay=!1,zA(t,e,n),n=gS;var s=vE(e.containerInfo),i=n.focusedElem,l=n.selectionRange;if(s!==i&&i&&i.ownerDocument&&xE(i.ownerDocument.documentElement,i)){if(l!==null&&PS(i)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in i)i.selectionStart=u,i.selectionEnd=Math.min(c,i.value.length);else{var d=i.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var m=f.getSelection(),p=i.textContent.length,h=Math.min(l.start,p),x=l.end===void 0?h:Math.min(l.end,p);!m.extend&&h>x&&(s=x,x=h,h=s);var b=Sj(i,h),g=Sj(i,x);if(b&&g&&(m.rangeCount!==1||m.anchorNode!==b.node||m.anchorOffset!==b.offset||m.focusNode!==g.node||m.focusOffset!==g.offset)){var y=d.createRange();y.setStart(b.node,b.offset),m.removeAllRanges(),h>x?(m.addRange(y),m.extend(g.node,g.offset)):(y.setEnd(g.node,g.offset),m.addRange(y))}}}}for(d=[],m=i;m=m.parentNode;)m.nodeType===1&&d.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<d.length;i++){var v=d[i];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}Dd=!!pS,gS=pS=null}finally{lt=o,ut.p=r,Ee.T=a}}e.current=t,Gt=2}}function uS(){if(Gt===2){Gt=0;var e=ao,t=_u,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=Ee.T,Ee.T=null;var a=ut.p;ut.p=2;var r=lt;lt|=4;try{DA(e,t.alternate,t)}finally{lt=r,ut.p=a,Ee.T=n}}Gt=3}}function cS(){if(Gt===4||Gt===3){Gt=0;var e=wd;wd=null,fU();var t=ao,n=_u,a=Ao,r=KA,o=(a&335544064)===a?10262:10256;if((n.subtreeFlags&o)!==0||(n.flags&o)!==0?Gt=5:(Gt=0,_u=ao=null,s2(t,t.pendingLanes)),o=t.pendingLanes,o===0&&(Ti=null),RS(a),n=n.stateNode,ir&&typeof ir.onCommitFiberRoot=="function")try{ir.onCommitFiberRoot(hp,n,void 0,(n.current.flags&128)===128)}catch{}if(r!==null){n=Ee.T,o=ut.p,ut.p=2,Ee.T=null;try{for(var s=t.onRecoverableError,i=0;i<r.length;i++){var l=r[i];s(l.value,{componentStack:l.stack})}}finally{Ee.T=n,ut.p=o}}if(r=_d,s=Sd,Sd=null,r!==null&&(_d=null,s===null&&(s=[]),e!==null))for(l=0;l<r.length;l++)n=(0,r[l])(s),n!==void 0&&e.finished.finally(n);(Ao&3)!==0&&Iy(),Do(t),o=t.pendingLanes,(a&261930)!==0&&(o&42)!==0?t===Tb?Qm++:(Qm=0,Tb=t):(Qm=0,Tb=null),Sp(0,!1)}}function s2(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cp(t)))}function Iy(){return wd!==null&&(wd.skipTransition(),wd=null),lS(),uS(),cS(),dS()}function dS(){if(Gt!==5)return!1;var e=ao,t=sS;sS=0;var n=RS(Ao),a=Ee.T,r=ut.p;try{ut.p=32>n?32:n,Ee.T=null,n=iS,iS=null;var o=ao,s=Ao;if(Gt=0,_u=ao=null,Ao=0,(lt&6)!==0)throw Error(K(331));var i=lt;if(lt|=4,XA(o.current),UA(o,o.current,s,n),lt=i,Sp(0,!1),ir&&typeof ir.onPostCommitFiberRoot=="function")try{ir.onPostCommitFiberRoot(hp,o)}catch{}return!0}finally{ut.p=r,Ee.T=a,s2(e,t)}}function uT(e,t,n){t=$r(n,t),t=H_(e.stateNode,t,2),e=Ri(e,t,2),e!==null&&(yp(e,2),Do(e))}function yt(e,t,n){if(e.tag===3)uT(e,e,n);else for(;t!==null;){if(t.tag===3){uT(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ti===null||!Ti.has(a))){e=$r(n,e),n=CA(2),a=Ri(t,n,2),a!==null&&(wA(n,a,t,e),yp(a,2),Do(a));break}}t=t.return}}function s_(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new HG;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||(dk=!0,r.add(n),e=QG.bind(null,e,t,n),t.then(e,e))}function QG(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,kt===e&&(Ke&n)===n&&((Kt===4||Kt===3&&(Ke&62914560)===Ke&&300>sr()-$y)&&(lt&2)===0?Td(e,0):ry|=n,Id===Ke&&(Id=0)),Do(e)}function i2(e,t){t===0&&(t=KT()),e=Lu(e,t),e!==null&&(yp(e,t),Do(e))}function JG(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),i2(e,n)}function e6(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(K(314))}a!==null&&a.delete(t),i2(e,n)}function t6(e,t){return $S(e,t)}var Ed=null,nd=null,fS=!1,ly=!1,i_=!1,Si=0;function Do(e){e!==nd&&e.next===null&&(nd===null?Ed=nd=e:nd=nd.next=e),ly=!0,fS||(fS=!0,a6())}function Sp(e,t){if(!i_&&ly){i_=!0;do for(var n=!1,a=Ed;a!==null;){if(!t)if(e!==0){var r=a.pendingLanes;if(r===0)var o=0;else{var s=a.suspendedLanes,i=a.pingedLanes;o=(1<<31-lr(42|e)+1)-1,o&=r&~(s&~i),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,cT(a,o))}else o=Ke,o=fy(a,a===kt?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||bp(a,o)||(n=!0,cT(a,o));a=a.next}while(n);i_=!1}}function n6(){l2()}function l2(){ly=fS=!1;var e=0;Si!==0&&f6()&&(e=Si);for(var t=sr(),n=null,a=Ed;a!==null;){var r=a.next,o=u2(a,t);o===0?(a.next=null,n===null?Ed=r:n.next=r,r===null&&(nd=n)):(n=a,(e!==0||(o&3)!==0)&&(ly=!0)),a=r}Gt!==0&&Gt!==5||Sp(e,!1),Si!==0&&(Si=0)}function u2(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var s=31-lr(o),i=1<<s,l=r[s];l===-1?((i&n)===0||(i&a)!==0)&&(r[s]=vU(i,t)):l<=t&&(e.expiredLanes|=i),o&=~i}if(t=kt,n=Ke,n=fy(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ht===2||ht===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Bw(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||bp(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Bw(a),RS(n)){case 2:case 8:n=XT;break;case 32:n=Fb;break;case 268435456:n=YT;break;default:n=Fb}return a=c2.bind(null,e),n=$S(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Bw(a),e.callbackPriority=2,e.callbackNode=null,2}function c2(e,t){if(Gt!==0&&Gt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Iy()&&e.callbackNode!==n)return null;var a=Ke;return a=fy(e,e===kt?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(JA(e,a,t),u2(e,sr()),e.callbackNode!=null&&e.callbackNode===n?c2.bind(null,e):null)}function cT(e,t){if(Iy())return null;JA(e,t,!0)}function a6(){p6(function(){(lt&6)!==0?$S(WT,n6):l2()})}function mk(){if(Si===0){var e=xu;e===0&&(e=Qh,Qh<<=1,(Qh&261888)===0&&(Qh=256)),Si=e}return Si}function dT(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xb(e)}function r6(e,t,n,a,r){if(t==="submit"&&n&&n.stateNode===r){var o=dT((r[Va]||null).action),s=a.submitter;s&&(t=(t=s[Va]||null)?dT(t.formAction):s.getAttribute("formAction"),t!==null&&(o=t,s=null));var i=new py("action","action",null,a,r);e.push({event:i,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Si!==0){var l=new FormData(r,s);z_(n,{pending:!0,data:l,method:r.method,action:o},null,l)}}else typeof o=="function"&&(i.preventDefault(),l=new FormData(r,s),z_(n,{pending:!0,data:l,method:r.method,action:o},o,l))},currentTarget:r}]})}}for(mb=0;mb<T_.length;mb++)pb=T_[mb],fT=pb.toLowerCase(),mT=pb[0].toUpperCase()+pb.slice(1),ro(fT,"on"+mT);var pb,fT,mT,mb;ro(wE,"onAnimationEnd");ro(_E,"onAnimationIteration");ro(SE,"onAnimationStart");ro("dblclick","onDoubleClick");ro("focusin","onFocus");ro("focusout","onBlur");ro(gG,"onTransitionRun");ro(hG,"onTransitionStart");ro(bG,"onTransitionCancel");ro(kE,"onTransitionEnd");$d("onMouseEnter",["mouseout","mouseover"]);$d("onMouseLeave",["mouseout","mouseover"]);$d("onPointerEnter",["pointerout","pointerover"]);$d("onPointerLeave",["pointerout","pointerover"]);ku("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ku("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ku("onBeforeInput",["compositionend","keypress","textInput","paste"]);ku("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ku("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ku("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lp="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(" "),o6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lp));function d2(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var s=a.length-1;0<=s;s--){var i=a[s],l=i.instance,u=i.currentTarget;if(i=i.listener,l!==o&&r.isPropagationStopped())break e;o=i,r.currentTarget=u;try{o(r)}catch(c){zb(c)}r.currentTarget=null,o=l}else for(s=0;s<a.length;s++){if(i=a[s],l=i.instance,u=i.currentTarget,i=i.listener,l!==o&&r.isPropagationStopped())break e;o=i,r.currentTarget=u;try{o(r)}catch(c){zb(c)}r.currentTarget=null,o=l}}}}function Ye(e,t){var n=t[ij];n===void 0&&(n=t[ij]=new Set);var a=e+"__bubble";n.has(a)||(f2(t,e,2,!1),n.add(a))}function l_(e,t,n){var a=0;t&&(a|=4),f2(n,e,a,t)}var gb="_reactListening"+Math.random().toString(36).slice(2);function pk(e){if(!e[gb]){e[gb]=!0,aE.forEach(function(n){n!=="selectionchange"&&(o6.has(n)||l_(n,!1,e),l_(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gb]||(t[gb]=!0,l_("selectionchange",!1,t))}}function f2(e,t,n,a){switch(D2(t)){case 2:var r=K6;break;case 8:r=Q6;break;default:r=Ck}n=r.bind(null,t,n,e),r=void 0,!L_||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),a?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function u_(e,t,n,a,r){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var i=a.stateNode.containerInfo;if(i===r)break;if(s===4)for(s=a.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===r)return;s=s.return}for(;i!==null;){if(s=uu(i),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){a=o=s;continue e}i=i.parentNode}}a=a.return}dE(function(){var u=o,c=jS(n),d=[];e:{var f=$E.get(e);if(f!==void 0){var m=py,p=e;switch(e){case"keypress":if(Cb(n)===0)break e;case"keydown":case"keyup":m=UU;break;case"focusin":p="focus",m=Uw;break;case"focusout":p="blur",m=Uw;break;case"beforeblur":case"afterblur":m=Uw;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=gj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=AU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=ZU;break;case wE:case _E:case SE:m=DU;break;case kE:m=QU;break;case"scroll":case"scrollend":m=TU;break;case"wheel":m=eG;break;case"copy":case"cut":case"paste":m=OU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=bj;break;case"submit":m=XU;break;case"toggle":case"beforetoggle":m=nG}var h=(t&4)!==0,x=!h&&(e==="scroll"||e==="scrollend"),b=h?f!==null?f+"Capture":null:f;h=[];for(var g=u,y;g!==null;){var v=g;if(y=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||y===null||b===null||(v=ep(g,b),v!=null&&h.push(up(g,v,y))),x)break;g=g.return}0<h.length&&(f=new m(f,p,null,n,c),d.push({event:f,listeners:h}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",m&&n!==$_&&(p=n.relatedTarget||n.fromElement)&&(uu(p)||p[Od]))break e;(f||m)&&(p=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,f?(m=n.relatedTarget||n.toElement,f=u,m=m?uu(m):null,m!==null&&(x=gp(m),h=m.tag,m!==x||h!==5&&h!==27&&h!==6)&&(m=null)):(f=null,m=u),f!==m&&(h=gj,v="onMouseLeave",b="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(h=bj,v="onPointerLeave",b="onPointerEnter",g="pointer"),x=f==null?p:Nm(f),y=m==null?p:Nm(m),p=new h(v,g+"leave",f,n,c),p.target=x,p.relatedTarget=y,v=null,uu(c)===u&&(h=new h(b,g+"enter",m,n,c),h.target=y,h.relatedTarget=x,v=h),x=v,h=f&&m?p_(f,m,s6):null,f!==null&&pT(d,p,f,h,!1),m!==null&&x!==null&&pT(d,x,m,h,!0)))}e:{if(f=u?Nm(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var C=Cj;else if(vj(f))if(bE)C=fG;else{C=cG;var S=uG}else m=f.nodeName,!m||m.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&IS(u.elementType)&&(C=Cj):C=dG;if(C&&(C=C(e,u))){hE(d,C,n,c);break e}S&&S(e,f,u)}switch(S=u?Nm(u):window,e){case"focusin":(vj(S)||S.contentEditable==="true")&&(ld=S,I_=u,zm=null);break;case"focusout":zm=I_=ld=null;break;case"mousedown":j_=!0;break;case"contextmenu":case"mouseup":case"dragend":j_=!1,kj(d,n,c);break;case"selectionchange":if(pG)break;case"keydown":case"keyup":kj(d,n,c)}var _;if(AS)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else id?pE(e,n)&&(w="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(w="onCompositionStart");w&&(mE&&n.locale!=="ko"&&(id||w!=="onCompositionStart"?w==="onCompositionEnd"&&id&&(_=fE()):(vi=c,TS="value"in vi?vi.value:vi.textContent,id=!0)),S=uy(u,w),0<S.length&&(w=new hj(w,e,null,n,c),d.push({event:w,listeners:S}),_?w.data=_:(_=gE(n),_!==null&&(w.data=_)))),(_=rG?oG(e,n):sG(e,n))&&(w=uy(u,"onBeforeInput"),0<w.length&&(S=new hj("onBeforeInput","beforeinput",null,n,c),d.push({event:S,listeners:w}),S.data=_)),r6(d,e,u,n,c)}d2(d,t)})}function up(e,t,n){return{instance:e,listener:t,currentTarget:n}}function uy(e,t){for(var n=t+"Capture",a=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=ep(e,n),r!=null&&a.unshift(up(e,r,o)),r=ep(e,t),r!=null&&a.push(up(e,r,o))),e.tag===3)return a;e=e.return}return[]}function s6(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function pT(e,t,n,a,r){for(var o=t._reactName,s=[];n!==null&&n!==a;){var i=n,l=i.alternate,u=i.stateNode;if(i=i.tag,l!==null&&l===a)break;i!==5&&i!==26&&i!==27||u===null||(l=u,r?(u=ep(n,o),u!=null&&s.unshift(up(n,u,l))):r||(u=ep(n,o),u!=null&&s.push(up(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var i6=/\r\n?/g,l6=/\u0000|\uFFFD/g;function gT(e){return(typeof e=="string"?e:""+e).replace(i6,`
|
|
9
|
-
`).replace(l6,"")}function m2(e,t){return t=gT(t),gT(e)===t}function bt(e,t,n,a,r,o){switch(n){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Ld(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Ld(e,""+a);else return;break;case"className":tb(e,"class",a);break;case"tabIndex":tb(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":tb(e,n,a);break;case"style":cE(e,a,o);return;case"data":if(t!=="object"){tb(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=xb(a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&bt(e,t,"name",r.name,r,null),bt(e,t,"formEncType",r.formEncType,r,null),bt(e,t,"formMethod",r.formMethod,r,null),bt(e,t,"formTarget",r.formTarget,r,null)):(bt(e,t,"encType",r.encType,r,null),bt(e,t,"method",r.method,r,null),bt(e,t,"target",r.target,r,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=xb(a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Io);return;case"onScroll":a!=null&&Ye("scroll",e);return;case"onScrollEnd":a!=null&&Ye("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(K(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(K(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=xb(a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ye("beforetoggle",e),Ye("toggle",e),yb(e,"popover",a);break;case"xlinkActuate":fs(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":fs(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":fs(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":fs(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":fs(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":fs(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":fs(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":fs(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":fs(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":yb(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=IU.get(n)||n,yb(e,n,a);else return}ot=!0}function mS(e,t,n,a,r,o){switch(n){case"style":cE(e,a,o);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(K(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(K(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof a=="string")Ld(e,a);else if(typeof a=="number"||typeof a=="bigint")Ld(e,""+a);else return;break;case"onScroll":a!=null&&Ye("scroll",e);return;case"onScrollEnd":a!=null&&Ye("scrollend",e);return;case"onClick":a!=null&&(e.onclick=Io);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!rE.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),o=n.slice(2,r?n.length-7:void 0),t=e[Va]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(o,t,r),typeof a=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,a,r);break e}ot=!0,n in e?e[n]=a:a===!0?e.setAttribute(n,""):yb(e,n,a)}return}ot=!0}function Yn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ye("error",e),Ye("load",e);var a=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case"src":a=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(K(137,t));default:bt(e,t,o,s,n,null)}}r&&bt(e,t,"srcSet",n.srcSet,n,null),a&&bt(e,t,"src",n.src,n,null);return;case"input":Ye("invalid",e);var i=o=s=r=null,l=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var c=n[a];if(c!=null)switch(a){case"name":r=c;break;case"type":s=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":o=c;break;case"defaultValue":i=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(K(137,t));break;default:bt(e,t,a,c,n,null)}}iE(e,o,i,l,u,s,r,!1);return;case"select":Ye("invalid",e),a=s=o=null;for(r in n)if(n.hasOwnProperty(r)&&(i=n[r],i!=null))switch(r){case"value":o=i;break;case"defaultValue":s=i;break;case"multiple":a=i;default:bt(e,t,r,i,n,null)}t=o,n=s,e.multiple=!!a,t!=null?hd(e,!!a,t,!1):n!=null&&hd(e,!!a,n,!0);return;case"textarea":Ye("invalid",e),o=r=a=null;for(s in n)if(n.hasOwnProperty(s)&&(i=n[s],i!=null))switch(s){case"value":a=i;break;case"defaultValue":r=i;break;case"children":o=i;break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(K(91));break;default:bt(e,t,s,i,n,null)}uE(e,a,r,o);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(a=n[l],a!=null))switch(l){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:bt(e,t,l,a,n,null)}return;case"dialog":Ye("beforetoggle",e),Ye("toggle",e),Ye("cancel",e),Ye("close",e);break;case"iframe":case"object":Ye("load",e);break;case"video":case"audio":for(a=0;a<lp.length;a++)Ye(lp[a],e);break;case"image":Ye("error",e),Ye("load",e);break;case"details":Ye("toggle",e);break;case"embed":case"source":case"link":Ye("error",e),Ye("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(a=n[u],a!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(K(137,t));default:bt(e,t,u,a,n,null)}return;default:if(IS(t)){for(c in n)n.hasOwnProperty(c)&&(a=n[c],a!==void 0&&mS(e,t,c,a,n,void 0));return}}for(i in n)n.hasOwnProperty(i)&&(a=n[i],a!=null&&bt(e,t,i,a,n,null))}var u6={};function c6(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,s=null,i=null,l=null,u=null,c=null;for(m in n){var d=n[m];if(n.hasOwnProperty(m)&&d!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":l=d;default:a.hasOwnProperty(m)||bt(e,t,m,null,a,d)}}for(var f in a){var m=a[f];if(d=n[f],a.hasOwnProperty(f)&&(m!=null||d!=null))switch(f){case"type":m!==d&&(ot=!0),o=m;break;case"name":m!==d&&(ot=!0),r=m;break;case"checked":m!==d&&(ot=!0),u=m;break;case"defaultChecked":m!==d&&(ot=!0),c=m;break;case"value":m!==d&&(ot=!0),s=m;break;case"defaultValue":m!==d&&(ot=!0),i=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(K(137,t));break;default:m!==d&&bt(e,t,f,m,a,d)}}k_(e,s,i,l,u,c,o,r);return;case"select":m=s=i=f=null;for(o in n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case"value":break;case"multiple":m=l;default:a.hasOwnProperty(o)||bt(e,t,o,null,a,l)}for(r in a)if(o=a[r],l=n[r],a.hasOwnProperty(r)&&(o!=null||l!=null))switch(r){case"value":o!==l&&(ot=!0),f=o;break;case"defaultValue":o!==l&&(ot=!0),i=o;break;case"multiple":o!==l&&(ot=!0),s=o;default:o!==l&&bt(e,t,r,o,a,l)}t=i,n=s,a=m,f!=null?hd(e,!!n,f,!1):!!a!=!!n&&(t!=null?hd(e,!!n,t,!0):hd(e,!!n,n?[]:"",!1));return;case"textarea":m=f=null;for(i in n)if(r=n[i],n.hasOwnProperty(i)&&r!=null&&!a.hasOwnProperty(i))switch(i){case"value":break;case"children":break;default:bt(e,t,i,null,a,r)}for(s in a)if(r=a[s],o=n[s],a.hasOwnProperty(s)&&(r!=null||o!=null))switch(s){case"value":r!==o&&(ot=!0),f=r;break;case"defaultValue":r!==o&&(ot=!0),m=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(K(91));break;default:r!==o&&bt(e,t,s,r,a,o)}lE(e,f,m);return;case"option":for(var p in n)if(f=n[p],n.hasOwnProperty(p)&&f!=null&&!a.hasOwnProperty(p))switch(p){case"selected":e.selected=!1;break;default:bt(e,t,p,null,a,f)}for(l in a)if(f=a[l],m=n[l],a.hasOwnProperty(l)&&f!==m&&(f!=null||m!=null))switch(l){case"selected":f!==m&&(ot=!0),e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:bt(e,t,l,f,a,m)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var h in n)f=n[h],n.hasOwnProperty(h)&&f!=null&&!a.hasOwnProperty(h)&&bt(e,t,h,null,a,f);for(u in a)if(f=a[u],m=n[u],a.hasOwnProperty(u)&&f!==m&&(f!=null||m!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(K(137,t));break;default:bt(e,t,u,f,a,m)}return;default:if(IS(t)){for(var x in n)f=n[x],n.hasOwnProperty(x)&&f!==void 0&&!a.hasOwnProperty(x)&&mS(e,t,x,void 0,a,f);for(c in a)f=a[c],m=n[c],!a.hasOwnProperty(c)||f===m||f===void 0&&m===void 0||mS(e,t,c,f,a,m);return}}for(var b in n)f=n[b],n.hasOwnProperty(b)&&f!=null&&!a.hasOwnProperty(b)&&bt(e,t,b,null,a,f);for(d in a)f=a[d],m=n[d],!a.hasOwnProperty(d)||f===m||f==null&&m==null||bt(e,t,d,f,a,m)}function hT(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function d6(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var r=n[a],o=r.transferSize,s=r.initiatorType,i=r.duration;if(o&&i&&hT(s)){for(s=0,i=r.responseEnd,a+=1;a<n.length;a++){var l=n[a],u=l.startTime;if(u>i)break;var c=l.transferSize,d=l.initiatorType;c&&hT(d)&&(l=l.responseEnd,s+=c*(l<i?1:(i-u)/(l-u)))}if(--a,t+=8*(o+s)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var pS=null,gS=null;function cp(e){return e.nodeType===9?e:e.ownerDocument}function bT(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function p2(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function g2(e,t,n,a){return n=cp(n).createElement(e),n[Un]=a,n[Va]=t,Yn(n,e,t),Mn(n),n}function hS(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var c_=null;function f6(){var e=window.event;return e&&e.type==="popstate"?e===c_?!1:(c_=e,!0):(c_=null,!1)}var gk=typeof setTimeout=="function"?setTimeout:void 0,m6=typeof clearTimeout=="function"?clearTimeout:void 0,yT=typeof Promise=="function"?Promise:void 0,xT=typeof requestAnimationFrame=="function"?requestAnimationFrame:gk,p6=typeof queueMicrotask=="function"?queueMicrotask:typeof yT<"u"?function(e){return yT.resolve(null).then(e).catch(g6)}:gk;function g6(e){setTimeout(function(){throw e})}function Vi(e){return e==="head"}function vT(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(r),Nd(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")f_(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,f_(n);for(var o=n.firstChild;o;){var s=o.nextSibling,i=o.nodeName;o[xp]||i==="SCRIPT"||i==="STYLE"||i==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=s}}else n==="body"&&f_(e.ownerDocument.body);n=r}while(n);Nd(t)}function CT(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function h2(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var r=a=0;r<t.length;r++){var o=t[r];0<o.width&&0<o.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function b2(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function y2(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function bS(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return y2(t,n,e)}function h6(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return y2(t,n,e)}function b6(e){return e.documentElement.clientHeight}function y6(e){this.addEventListener("load",e),this.addEventListener("error",e)}function x6(e,t,n,a,r,o,s,i,l){var u=t.nodeType===9?t:t.ownerDocument;try{var c=u.startViewTransition({update:function(){var f=u.defaultView,m=f.navigation&&f.navigation.transition,p=u.fonts.status;a();var h=[];if(p==="loaded"&&(b6(u),u.fonts.status==="loading"&&h.push(u.fonts.ready)),p=h.length,e!==null)for(var x=e.suspenseyImages,b=0,g=0;g<x.length;g++){var y=x[g];if(!y.complete){var v=y.getBoundingClientRect();if(0<v.bottom&&0<v.right&&v.top<f.innerHeight&&v.left<f.innerWidth){if(b+=j2(y),b>Pb){h.length=p;break}y=new Promise(y6.bind(y)),h.push(y)}}}if(0<h.length)return f=Promise.race([Promise.all(h),new Promise(function(C){return setTimeout(C,500)})]).then(r,r),(m?Promise.allSettled([m.finished,f]):f).then(o,o);if(r(),m)return m.finished.then(o,o);o()},types:n});u.__reactViewTransition=c;var d=[];return c.ready.then(function(){for(var f=u.documentElement.getAnimations({subtree:!0}),m=0;m<f.length;m++){var p=f[m],h=p.effect,x=h.pseudoElement;if(x!=null&&x.startsWith("::view-transition")){d.push(p),p=h.getKeyframes();for(var b=x=void 0,g=!0,y=0;y<p.length;y++){var v=p[y],C=v.width;if(x===void 0)x=C;else if(x!==C){g=!1;break}if(C=v.height,b===void 0)b=C;else if(b!==C){g=!1;break}delete v.width,delete v.height,v.transform==="none"&&delete v.transform}g&&x!==void 0&&b!==void 0&&(h.setKeyframes(p),g=getComputedStyle(h.target,h.pseudoElement),g.width!==x||g.height!==b)&&(g=p[0],g.width=x,g.height=b,g=p[p.length-1],g.width=x,g.height=b,h.setKeyframes(p))}}s()},function(f){u.__reactViewTransition===c&&(u.__reactViewTransition=null);try{if(typeof f=="object"&&f!==null)switch(f.name){case"InvalidStateError":(f.message==="View transition was skipped because document visibility state is hidden."||f.message==="Skipping view transition because document visibility state has become hidden."||f.message==="Skipping view transition because viewport size changed."||f.message==="Transition was aborted because of invalid state")&&(f=null)}f!==null&&l(f)}finally{a(),r(),s()}}),c.finished.finally(function(){for(var f=0;f<d.length;f++)d[f].cancel();u.__reactViewTransition===c&&(u.__reactViewTransition=null),i()}),c}catch{return a(),r(),s(),null}}function cu(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}cu.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:$t({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};cu.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),a=[],r=0;r<n.length;r++){var o=n[r].effect;o!==null&&o.target===e&&o.pseudoElement===t&&a.push(n[r])}return a};cu.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function x2(e){return{name:e,group:new cu("group",e),imagePair:new cu("image-pair",e),old:new cu("old",e),new:new cu("new",e)}}function dr(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}dr.prototype.addEventListener=function(e,t,n){var a=null,r=null;if(!(n!=null&&typeof n!="boolean"&&(a=n.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var o=this._eventListeners;if(v2(o,e,t,n)===-1){var s=this,i=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(i=function(l){s.removeEventListener(e,t,n),typeof t=="function"?t.call(this,l):t.handleEvent(l)}),a!==null&&(r=s.removeEventListener.bind(s,e,t,n),a.addEventListener("abort",r,{once:!0}),r=a.removeEventListener.bind(a,"abort",r)),a=Ad(n),o.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:i,cleanup:r}),Fa(this._fragmentFiber.child,!1,v6,e,i,a)}this._eventListeners=o}};function v6(e,t,n,a){return Sn(e).addEventListener(t,n,a),!1}dr.prototype.removeEventListener=function(e,t,n){var a=this._eventListeners;if(a!==null&&(t=v2(a,e,t,n),t!==-1)){var r=a[t];n=r.attachedListener;var o=r.cleanup;r=Ad(r.optionsOrUseCapture),Fa(this._fragmentFiber.child,!1,C6,e,n,r),a.splice(t,1),o!==null&&o()}};function C6(e,t,n,a){return Sn(e).removeEventListener(t,n,a),!1}function Ad(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function wT(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function v2(e,t,n,a){if(e.length===0)return-1;a=wT(a);for(var r=0;r<e.length;r++){var o=e[r];if(o.type===t&&o.listener===n&&wT(o.optionsOrUseCapture)===a)return r}return-1}dr.prototype.dispatchEvent=function(e){var t=Su(this._fragmentFiber);if(t===null)return!0;t=Sn(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var r=0;r<n.length;r++){var o=n[r];a.addEventListener(o.type,o.attachedListener,Ad(o.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),n)for(r=0;r<n.length;r++)o=n[r],a.removeEventListener(o.type,o.attachedListener,Ad(o.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)};dr.prototype.focus=function(e){Fa(this._fragmentFiber.child,!0,C2,e,void 0,void 0)};function C2(e,t){return e.tag===6?!1:(e=Sn(e),A6(e,t))}dr.prototype.focusLast=function(e){var t=[];Fa(this._fragmentFiber.child,!0,hk,t,void 0,void 0);for(var n=t.length-1;0<=n&&!C2(t[n],e);n--);};function hk(e,t){return t.push(e),!1}dr.prototype.blur=function(){var e=Su(this._fragmentFiber);e!==null&&(e=Sn(e),e=cp(e).activeElement,e!==null&&Fa(this._fragmentFiber.child,!1,w6,e,void 0,void 0))};function w6(e,t){return e.tag===6?!1:(e=Sn(e),e===t||e.contains(t)?(t.blur(),!0):!1)}dr.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Fa(this._fragmentFiber.child,!1,_6,e,void 0,void 0)};function _6(e,t){return e.tag===6||(e=Sn(e),t.observe(e)),!1}dr.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Fa(this._fragmentFiber.child,!1,S6,e,void 0,void 0);for(var n=t=0;n<no.length;n++){var a=no[n];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):no[t++]=a}no.length=t}};function S6(e,t){return e.tag===6||(e=Sn(e),t.unobserve(e)),!1}var no=[],d_=!1;function k6(e,t,n){no.push({fragmentInstance:e,observer:t,instance:n}),d_||(d_=!0,P6(function(){d_=!1;var a=no;no=[];for(var r=0;r<a.length;r++){var o=a[r];o.observer.unobserve(o.instance)}}))}dr.prototype.getClientRects=function(){var e=[];return Fa(this._fragmentFiber.child,!1,$6,e,void 0,void 0),e};function $6(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=Sn(e),t.push.apply(t,e.getClientRects());return!1}dr.prototype.getRootNode=function(e){var t=Su(this._fragmentFiber);return t===null?this:Sn(t).getRootNode(e)};dr.prototype.compareDocumentPosition=function(e){var t=Su(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Fa(this._fragmentFiber.child,!1,hk,n,void 0,void 0);var a=Sn(t);if(n.length===0){if(n=a,tj(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var r=a=n.compareDocumentPosition(e);return n===e?r=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=qT(t)[1],n===null?r=Node.DOCUMENT_POSITION_PRECEDING:(e=Sn(n).compareDocumentPosition(e),r=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),r|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Sn(n[0]),r=Sn(n[n.length-1]);var o=tj(this._fragmentFiber)?t.parentElement:a;if(o==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=o.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY;var s=t.compareDocumentPosition(e),i=r.compareDocumentPosition(e),l=s&Node.DOCUMENT_POSITION_CONTAINED_BY||i&Node.DOCUMENT_POSITION_CONTAINED_BY;return i=a&&o&&s&Node.DOCUMENT_POSITION_FOLLOWING&&i&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||o&&r===e||l||i?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!o&&r===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:s,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||L6(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function L6(e,t,n,a,r){var o=uu(r);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!o)e:{for(;o!==null;){if(o.tag===7&&(o===t||o.alternate===t)){n=!0;break e}o=o.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(o===null)return o=r.ownerDocument,r===o||r===o.documentElement||r===o.body;e:{for(o=t,t=Su(t);o!==null;){if(!(o.tag!==5&&o.tag!==3&&o.tag!==27||o!==t&&o.alternate!==t)){o=!0;break e}o=o.return}o=!1}return o}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!o)&&!(t=o===n)&&(t=p_(n,o,nj),t===null?t=!1:(Fa(t,!0,aU,o,n),o=ad,ad=null,t=o!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!o)&&!(t=o===a)&&(t=p_(a,o,nj),t===null?t=!1:(Fa(t,!0,rU,o,a),o=ad,m_=ad=null,t=o!==null)),t):!1}function _T(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}dr.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(K(566));var t=[];Fa(this._fragmentFiber.child,!1,hk,t,void 0,void 0);var n=e!==!1;if(t.length===0){var a=qT(this._fragmentFiber);if(a=n?a[1]||a[0]||Su(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=Sn(a),_T(e,n);return}if(a=Sn(a),a.nodeType!==9){if(a.nodeType===11){n="host"in a?a.host:null,n!==null&&n.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=n?t.length-1:0;a!==(n?-1:t.length);){var r=t[a];r.tag===6?(r=Sn(r),_T(r,n)):Sn(r).scrollIntoView(e),a+=n?-1:1}};function R6(e,t){return e=Sn(e),w2(e,t),!1}function w2(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function _2(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a];e.addEventListener(r.type,r.attachedListener,Ad(r.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){for(var s=0,i=0;i<no.length;i++){var l=no[i];(l.fragmentInstance!==t||l.observer!==o||l.instance!==e)&&(no[s++]=l)}no.length=s,o.observe(e)}),w2(e,t))}function I6(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a];e.removeEventListener(r.type,r.attachedListener,Ad(r.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){typeof o.rootMargin=="string"?k6(t,o,e):o.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function yS(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":yS(n),my(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function j6(e,t,n,a){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[xp])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Rr(e.nextSibling),e===null)break}return null}function T6(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Rr(e.nextSibling),e===null))return null;return e}function S2(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Rr(e.nextSibling),e===null))return null;return e}function xS(e){return e.data==="$?"||e.data==="$~"}function bk(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function E6(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Rr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var vS=null;function ST(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Rr(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function kT(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function A6(e,t){function n(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return a}function P6(e){xT(function(){xT(function(t){return e(t)})})}function k2(e,t,n){switch(t=cp(n),e){case"html":if(e=t.documentElement,!e)throw Error(K(452));return e;case"head":if(e=t.head,!e)throw Error(K(453));return e;case"body":if(e=t.body,!e)throw Error(K(454));return e;default:throw Error(K(451))}}function $2(e,t,n){for(var a in n){var r=n[a];n.hasOwnProperty(a)&&r!=null&&bt(e,t,a,null,u6,r)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Io&&(e.onclick=null),my(e)}function f_(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);my(e)}var Ir=new Map,$T=new Set;function dp(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var $s=ut.d;ut.d={f:M6,r:D6,D:N6,C:O6,L:B6,m:F6,X:z6,S:V6,M:q6};function M6(){var e=$s.f(),t=Ly();return e||t}function D6(e){var t=Bd(e);t!==null&&t.tag===5&&t.type==="form"?cA(t):$s.r(e)}var qd=typeof document>"u"?null:document;function L2(e,t,n){var a=qd;if(a&&typeof t=="string"&&t){var r=kr(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),$T.has(r)||($T.add(r),e={rel:e,crossOrigin:n,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),Yn(t,"link",e),Mn(t),a.head.appendChild(t)))}}function N6(e){$s.D(e),L2("dns-prefetch",e,null)}function O6(e,t){$s.C(e,t),L2("preconnect",e,t)}function B6(e,t,n){$s.L(e,t,n);var a=qd;if(a&&e&&t){var r='link[rel="preload"][as="'+kr(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+kr(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+kr(n.imageSizes)+'"]')):r+='[href="'+kr(e)+'"]';var o=r;switch(t){case"style":o=Pd(e);break;case"script":o=Hd(e)}if(!(Ir.has(o)||(e=$t({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Ir.set(o,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(kp(o))||t==="script"&&a.querySelector($p(o))))){var s=a.createElement("link");Yn(s,"link",e),t==="style"&&(s[Vb]=!0,s.onload=s.onerror=function(){nE(s)}),Mn(s),a.head.appendChild(s)}}}function F6(e,t){$s.m(e,t);var n=qd;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+kr(a)+'"][href="'+kr(e)+'"]',o=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Hd(e)}if(!Ir.has(o)&&(e=$t({rel:"modulepreload",href:e},t),Ir.set(o,e),n.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($p(o)))return}a=n.createElement("link"),Yn(a,"link",e),Mn(a),n.head.appendChild(a)}}}function V6(e,t,n){$s.S(e,t,n);var a=qd;if(a&&e){var r=gd(a).hoistableStyles,o=Pd(e);t=t||"default";var s=r.get(o);if(!s){var i={loading:0,preload:null};if(s=a.querySelector(kp(o)))i.loading=5;else{e=$t({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ir.get(o))&&yk(e,n);var l=s=a.createElement("link");Mn(l),Yn(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){i.loading|=1}),l.addEventListener("error",function(){i.loading|=2}),i.loading|=4,Eb(s,t,a)}s={type:"stylesheet",instance:s,count:1,state:i},r.set(o,s)}}}function z6(e,t){$s.X(e,t);var n=qd;if(n&&e){var a=gd(n).hoistableScripts,r=Hd(e),o=a.get(r);o||(o=n.querySelector($p(r)),o||(e=$t({src:e,async:!0},t),(t=Ir.get(r))&&xk(e,t),o=n.createElement("script"),Mn(o),Yn(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(r,o))}}function q6(e,t){$s.M(e,t);var n=qd;if(n&&e){var a=gd(n).hoistableScripts,r=Hd(e),o=a.get(r);o||(o=n.querySelector($p(r)),o||(e=$t({src:e,async:!0,type:"module"},t),(t=Ir.get(r))&&xk(e,t),o=n.createElement("script"),Mn(o),Yn(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(r,o))}}function LT(e,t,n,a){var r=(r=ki.current)?dp(r):null;if(!r)throw Error(K(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Pd(n.href),t=gd(r).hoistableStyles,a=t.get(n),a||(a={type:"style",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Pd(n.href);var o=gd(r).hoistableStyles,s=o.get(e);if(s||(r=r.ownerDocument||r,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=r.querySelector(kp(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Ir.get(e),o||(o={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ir.set(e,o)),H6(r,e,o,s.state))),t&&a===null)throw Error(K(528,""));return s}if(t&&a!==null)throw Error(K(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Hd(n),t=gd(r).hoistableScripts,a=t.get(n),a||(a={type:"script",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(K(444,e))}}function Pd(e){return'href="'+kr(e)+'"'}function kp(e){return'link[rel="stylesheet"]['+e+"]"}function R2(e){return $t({},e,{"data-precedence":e.precedence,precedence:null})}function H6(e,t,n,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Vb]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[Vb]=!0,t.onload=t.onerror=nE.bind(null,t),Yn(t,"link",n),Mn(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function Hd(e){return'[src="'+kr(e)+'"]'}function $p(e){return"script[async]"+e}function RT(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+kr(n.href)+'"]');if(a)return t.instance=a,Mn(a),a;var r=$t({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Mn(a),Yn(a,"style",r),Eb(a,n.precedence,e),t.instance=a;case"stylesheet":r=Pd(n.href);var o=e.querySelector(kp(r));if(o)return t.state.loading|=4,t.instance=o,Mn(o),o;a=R2(n),(r=Ir.get(r))&&yk(a,r),o=(e.ownerDocument||e).createElement("link"),Mn(o);var s=o;return s._p=new Promise(function(i,l){s.onload=i,s.onerror=l}),Yn(o,"link",a),t.state.loading|=4,Eb(o,n.precedence,e),t.instance=o;case"script":return o=Hd(n.src),(r=e.querySelector($p(o)))?(t.instance=r,Mn(r),r):(a=n,(r=Ir.get(o))&&(a=$t({},n),xk(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),Mn(r),Yn(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(K(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Eb(a,n.precedence,e));return t.instance}function Eb(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,o=r,s=0;s<a.length;s++){var i=a[s];if(i.dataset.precedence===t)o=i;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function yk(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function xk(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ab=null;function IT(e,t,n){if(Ab===null){var a=new Map,r=Ab=new Map;r.set(n,a)}else r=Ab,a=r.get(n),a||(a=new Map,r.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var o=n[r];if(!(o[xp]||o[Un]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var s=o.getAttribute(t)||"";s=e+s;var i=a.get(s);i?i.push(o):a.set(s,[o])}}return a}function CS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function U6(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function jT(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function I2(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function j2(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function TT(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=j2(t),e.suspenseyImages.push(t)),e=X6.bind(e),t.decode().then(e,e))}function G6(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Pd(a.href),o=t.querySelector(kp(r));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=fp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Mn(o);return}o=t.ownerDocument||t,a=R2(a),(r=Ir.get(r))&&yk(a,r),o=o.createElement("link"),Mn(o);var s=o;s._p=new Promise(function(i,l){s.onload=i,s.onerror=l}),Yn(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=fp.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Pb=0;function W6(e,t){return e.stylesheets&&e.count===0&&Mb(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Mb(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Pb===0&&(Pb=62500*d6());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Mb(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Pb?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function T2(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Mb(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function fp(){this.count--,T2(this)}function X6(){this.imgCount--,T2(this)}var cy=null;function Mb(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,cy=new Map,t.forEach(Y6,e),cy=null,fp.call(e))}function Y6(e,t){if(!(t.state.loading&4)){var n=cy.get(e);if(n)var a=n.get(null);else{n=new Map,cy.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var s=r[o];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),a=s)}a&&n.set(null,a)}r=t.instance,s=r.getAttribute("data-precedence"),o=n.get(s)||a,o===a&&n.set(null,r),n.set(s,r),this.count++,a=fp.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Md={$$typeof:Ro,Provider:null,Consumer:null,_currentValue:du,_currentValue2:du,_threadCount:0};function Z6(e,t,n,a,r,o,s,i,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fw(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fw(0),this.hiddenUpdates=Fw(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function E2(e,t,n,a,r,o,s,i,l,u,c,d){return e=new Z6(e,t,n,s,l,u,c,d,i),t=1,o===!0&&(t|=24),o=Oa(3,null,null,t),e.current=o,o.stateNode=e,t=BS(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},zS(o),e}function A2(e){return e?(e=dd,e):dd}function P2(e,t,n,a,r,o){r=A2(r),a.context===null?a.context=r:a.pendingContext=r,a=Li(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=Ri(e,a,t),n!==null&&(Ba(n,e,t),Hm(n,e,t))}function ET(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vk(e,t){ET(e,t),(e=e.alternate)&&ET(e,t)}function M2(e){if(e.tag===13||e.tag===31){var t=Lu(e,67108864);t!==null&&Ba(t,e,67108864),vk(e,67108864)}}function AT(e){if(e.tag===13||e.tag===31){var t=ur();t=LS(t);var n=Lu(e,t);n!==null&&Ba(n,e,t),vk(e,t)}}var Dd=!0;function K6(e,t,n,a){var r=Ee.T;Ee.T=null;var o=ut.p;try{ut.p=2,Ck(e,t,n,a)}finally{ut.p=o,Ee.T=r}}function Q6(e,t,n,a){var r=Ee.T;Ee.T=null;var o=ut.p;try{ut.p=8,Ck(e,t,n,a)}finally{ut.p=o,Ee.T=r}}function Ck(e,t,n,a){if(Dd){var r=wS(a);if(r===null)u_(e,t,a,dy,n),PT(e,a);else if(e8(r,e,t,n,a))a.stopPropagation();else if(PT(e,a),t&4&&-1<J6.indexOf(e)){for(;r!==null;){var o=Bd(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var s=su(o.pendingLanes);if(s!==0){var i=o;for(i.pendingLanes|=2,i.entangledLanes|=2;s;){var l=1<<31-lr(s);i.entanglements[1]|=l,s&=~l}Do(o),(lt&6)===0&&(oy=sr()+500,Sp(0,!1))}}break;case 31:case 13:i=Lu(o,2),i!==null&&Ba(i,o,2),Ly(),vk(o,2)}if(o=wS(a),o===null&&u_(e,t,a,dy,n),o===r)break;r=o}r!==null&&a.stopPropagation()}else u_(e,t,a,null,n)}}function wS(e){return e=jS(e),wk(e)}var dy=null;function wk(e){if(dy=null,e=uu(e),e!==null){var t=gp(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=FT(t),e!==null)return e;e=null}else if(n===31){if(e=VT(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return dy=e,null}function D2(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(mU()){case WT:return 2;case XT:return 8;case Fb:case pU:return 32;case YT:return 268435456;default:return 32}default:return 32}}var _S=!1,Ei=null,Ai=null,Pi=null,mp=new Map,pp=new Map,yi=[],J6="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function PT(e,t){switch(e){case"focusin":case"focusout":Ei=null;break;case"dragenter":case"dragleave":Ai=null;break;case"mouseover":case"mouseout":Pi=null;break;case"pointerover":case"pointerout":mp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pp.delete(t.pointerId)}}function Am(e,t,n,a,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[r]},t!==null&&(t=Bd(t),t!==null&&M2(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function e8(e,t,n,a,r){switch(t){case"focusin":return Ei=Am(Ei,e,t,n,a,r),!0;case"dragenter":return Ai=Am(Ai,e,t,n,a,r),!0;case"mouseover":return Pi=Am(Pi,e,t,n,a,r),!0;case"pointerover":var o=r.pointerId;return mp.set(o,Am(mp.get(o)||null,e,t,n,a,r)),!0;case"gotpointercapture":return o=r.pointerId,pp.set(o,Am(pp.get(o)||null,e,t,n,a,r)),!0}return!1}function N2(e){var t=uu(e.target);if(t!==null){var n=gp(t);if(n!==null){if(t=n.tag,t===13){if(t=FT(n),t!==null){e.blockedOn=t,sj(e.priority,function(){AT(n)});return}}else if(t===31){if(t=VT(n),t!==null){e.blockedOn=t,sj(e.priority,function(){AT(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Db(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wS(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);$_=a,n.target.dispatchEvent(a),$_=null}else return t=Bd(n),t!==null&&M2(t),e.blockedOn=n,!1;t.shift()}return!0}function MT(e,t,n){Db(e)&&n.delete(t)}function t8(){_S=!1,Ei!==null&&Db(Ei)&&(Ei=null),Ai!==null&&Db(Ai)&&(Ai=null),Pi!==null&&Db(Pi)&&(Pi=null),mp.forEach(MT),pp.forEach(MT)}function hb(e,t){e.blockedOn===t&&(e.blockedOn=null,_S||(_S=!0,kn.unstable_scheduleCallback(kn.unstable_NormalPriority,t8)))}var bb=null;function DT(e){bb!==e&&(bb=e,kn.unstable_scheduleCallback(kn.unstable_NormalPriority,function(){bb===e&&(bb=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],r=e[t+2];if(typeof a!="function"){if(wk(a||n)===null)continue;break}var o=Bd(n);o!==null&&(e.splice(t,3),t-=3,z_(o,{pending:!0,data:r,method:n.method,action:a},a,r))}}))}function Nd(e){function t(l){return hb(l,e)}Ei!==null&&hb(Ei,e),Ai!==null&&hb(Ai,e),Pi!==null&&hb(Pi,e),mp.forEach(t),pp.forEach(t);for(var n=0;n<yi.length;n++){var a=yi[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<yi.length&&(n=yi[0],n.blockedOn===null);)N2(n),n.blockedOn===null&&yi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var r=n[a],o=n[a+1],s=r[Va]||null;if(typeof o=="function")s||DT(n);else if(s){var i=null;if(o&&o.hasAttribute("formAction")){if(r=o,s=o[Va]||null)i=s.formAction;else if(wk(r)!==null)continue}else i=s.action;typeof i=="function"?n[a+1]=i:(n.splice(a,3),a-=3),DT(n)}}}function O2(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(s){return r=s})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function _k(e){this._internalRoot=e}jy.prototype.render=_k.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));var n=t.current,a=ur();P2(n,a,e,t,null,null)};jy.prototype.unmount=_k.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;P2(e.current,2,null,e,null,null),Ly(),t[Od]=null}};function jy(e){this._internalRoot=e}jy.prototype.unstable_scheduleHydration=function(e){if(e){var t=tE();e={blockedOn:null,target:e,priority:t};for(var n=0;n<yi.length&&t!==0&&t<yi[n].priority;n++);yi.splice(n,0,e),n===0&&N2(e)}};var NT=OT.version;if(NT!=="19.3.0")throw Error(K(527,NT,"19.3.0"));ut.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=nU(t),e=e!==null?zT(e):null,e=e===null?null:e.stateNode,e};var n8={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Ee,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Pm=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Pm.isDisabled&&Pm.supportsFiber))try{hp=Pm.inject(n8),ir=Pm}catch{}var Pm;Ty.createRoot=function(e,t){if(!BT(e))throw Error(K(299));var n=!1,a="",r=yA,o=xA,s=vA;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=E2(e,1,!1,null,null,n,a,null,r,o,s,O2),e[Od]=t.current,pk(e),new _k(t)};Ty.hydrateRoot=function(e,t,n){if(!BT(e))throw Error(K(299));var a=!1,r="",o=yA,s=xA,i=vA,l=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(i=n.onRecoverableError),n.formState!==void 0&&(l=n.formState)),t=E2(e,1,!0,t,n??null,a,r,l,o,s,i,O2),t.context=A2(null),n=t.current,a=ur(),a=LS(a),r=Li(a),r.callback=null,Ri(n,r,a),n=a,t.current.lanes=n,yp(t,n),Do(t),e[Od]=t.current,pk(e),new jy(t)};Ty.version="19.3.0"});var z2=Pa((Kae,V2)=>{"use strict";function F2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(F2)}catch(e){console.error(e)}}F2(),V2.exports=B2()});var gM=Pa(Fy=>{"use strict";var u7=Symbol.for("react.transitional.element"),c7=Symbol.for("react.fragment");function pM(e,t,n){var a=null;if(n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:u7,type:e,key:a,ref:t!==void 0?t:null,props:n}}Fy.Fragment=c7;Fy.jsx=pM;Fy.jsxs=pM});var Z=Pa((Gse,hM)=>{"use strict";hM.exports=gM()});var yV=Pa(bV=>{"use strict";var qf=A();function xte(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vte=typeof Object.is=="function"?Object.is:xte,Cte=qf.useState,wte=qf.useEffect,_te=qf.useLayoutEffect,Ste=qf.useDebugValue;function kte(e,t){var n=t(),a=Cte({inst:{value:n,getSnapshot:t}}),r=a[0].inst,o=a[1];return _te(function(){r.value=n,r.getSnapshot=t,uR(r)&&o({inst:r})},[e,n,t]),wte(function(){return uR(r)&&o({inst:r}),e(function(){uR(r)&&o({inst:r})})},[e]),Ste(n),n}function uR(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vte(e,n)}catch{return!0}}function $te(e,t){return t()}var Lte=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?$te:kte;bV.useSyncExternalStore=qf.useSyncExternalStore!==void 0?qf.useSyncExternalStore:Lte});var Rh=Pa((yTe,xV)=>{"use strict";xV.exports=yV()});var CV=Pa(vV=>{"use strict";var Tv=A(),Rte=Rh();function Ite(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jte=typeof Object.is=="function"?Object.is:Ite,Tte=Rte.useSyncExternalStore,Ete=Tv.useRef,Ate=Tv.useEffect,Pte=Tv.useMemo,Mte=Tv.useDebugValue;vV.useSyncExternalStoreWithSelector=function(e,t,n,a,r){var o=Ete(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Pte(function(){function l(m){if(!u){if(u=!0,c=m,m=a(m),r!==void 0&&s.hasValue){var p=s.value;if(r(p,m))return d=p}return d=m}if(p=d,jte(c,m))return p;var h=a(m);return r!==void 0&&r(p,h)?(c=m,p):(c=m,d=h)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,a,r]);var i=Tte(e,o[0],o[1]);return Ate(function(){s.hasValue=!0,s.value=i},[i]),Mte(i),i}});var _V=Pa((vTe,wV)=>{"use strict";wV.exports=CV()});var S5=k(A(),1),k5=k(z2(),1);var Ey=k(A(),1);var q2=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function H2(e,t,n=[]){if(t==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:q2(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var U2=e=>{let t="",n=!1;for(let a of e){if(a==="-"||a==="_"||a<=" "){n=t.length>0;continue}t.length===0?t+=a.toLowerCase():t+=n?a.toUpperCase():a,n=!1}return t};var G2=e=>{let t=U2(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Rp=k(A(),1);var Lp=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim();var zi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Sk(e){return e!=null}function W2(e,t={}){let n=t.attributeNames??{},a=f=>n[f]??f,r=e.size??e.width??zi.width,o=e.size??e.height??zi.height,s=e.aliases?.filter(f=>typeof f=="string"&&f.trim()!=="").map(f=>`lucide-${f}`)??[],i=[...e.name?[`lucide-${e.name}`]:[],...s],l=t.className?.split(" ").filter(Boolean)??[],u=t.includeDefaultClasses===!1?Lp(...l):Lp("lucide",...i,...l),c=t.absoluteStrokeWidth?Number(t.strokeWidth??zi["stroke-width"])*Number(e.size??e.width??zi.width)/Number(t.size??t.width??zi.width):t.strokeWidth??zi["stroke-width"];return["svg",{...Object.entries(zi).reduce((f,[m,p])=>(f[a(m)]=p,f),{}),..."color"in t&&t.color&&{[a("stroke")]:t.color},..."size"in t&&Sk(t.size)&&{[a("width")]:t.size,[a("height")]:t.size},..."width"in t&&Sk(t.width)&&{[a("width")]:t.width},..."height"in t&&Sk(t.height)&&{[a("height")]:t.height},[a("stroke-width")]:c,...u&&{[a("class")]:u},[a("viewBox")]:`0 0 ${r} ${o}`,...t.hasA11yProp===!1?{[a("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(f=>{let[m,p,h]=f,x=t.nonScalingStroke?{[a("vector-effect")]:"non-scaling-stroke",...p}:p;return h?[m,x,h]:[m,x]})]}function X2(e,t={}){return W2(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var Y2=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Ud=k(A(),1);var a8=(0,Ud.createContext)({});var Z2=()=>(0,Ud.useContext)(a8);var K2=(0,Rp.forwardRef)(({color:e,size:t,width:n,height:a,strokeWidth:r,absoluteStrokeWidth:o,nonScalingStroke:s,className:i="",children:l,iconNode:u=[],icon:c={node:u,aliases:[],size:24},...d},f)=>{let{size:m=24,strokeWidth:p=2,absoluteStrokeWidth:h=!1,nonScalingStroke:x=!1,color:b="currentColor",className:g=""}=Z2()??{},y=!!l||Y2(d),[v,C,S=[]]=X2(c,{color:e??b,width:n??t??m,height:a??t??m,strokeWidth:r??p,absoluteStrokeWidth:o??h,nonScalingStroke:s??x,className:Lp(g,i),hasA11yProp:y,attributes:d});return(0,Rp.createElement)(v,{ref:f,...C},[...S.map(([_,w])=>(0,Rp.createElement)(_,w)),...Array.isArray(l)?l:[l]])});function Ce(e,t=[],n=[]){let a=typeof e=="string"?H2(e,t,n):e,r=(0,Ey.forwardRef)(({className:o,...s},i)=>(0,Ey.createElement)(K2,{ref:i,icon:a,className:o,...s}));return a.name&&(r.displayName=G2(a.name)),r}var Q2={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};Q2.node;var Ip=Ce(Q2);var J2={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};J2.node;var Sa=Ce(J2);var eP={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};eP.node;var ia=Ce(eP);var tP={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};tP.node;var jp=Ce(tP);var nP={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};nP.node;var No=Ce(nP);var aP={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};aP.node;var Tp=Ce(aP);var rP={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};rP.node;var Oo=Ce(rP);var oP={name:"circle",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};oP.node;var Ep=Ce(oP);var sP={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};sP.node;var Ap=Ce(sP);var iP={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};iP.node;var oo=Ce(iP);var lP={name:"earth",size:24,node:[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["globe-2"]};lP.node;var qi=Ce(lP);var uP={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};uP.node;var Pp=Ce(uP);var cP={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],aliases:["file-code-2"]};cP.node;var Hi=Ce(cP);var dP={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};dP.node;var Mp=Ce(dP);var fP={name:"folder-search",size:24,node:[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]]};fP.node;var Dp=Ce(fP);var mP={name:"globe",size:24,node:[["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"}]]};mP.node;var Np=Ce(mP);var pP={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};pP.node;var Op=Ce(pP);var gP={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};gP.node;var Bp=Ce(gP);var hP={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};hP.node;var Fp=Ce(hP);var bP={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};bP.node;var Ui=Ce(bP);var yP={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};yP.node;var Iu=Ce(yP);var xP={name:"moon",size:24,node:[["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"}]]};xP.node;var Vp=Ce(xP);var vP={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]};vP.node;var Gi=Ce(vP);var CP={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};CP.node;var so=Ce(CP);var wP={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};wP.node;var Wi=Ce(wP);var _P={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};_P.node;var io=Ce(_P);var SP={name:"sun",size:24,node:[["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"}]]};SP.node;var zp=Ce(SP);var kP={name:"triangle-alert",size:24,node:[["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"}]],aliases:["alert-triangle"]};kP.node;var Xi=Ce(kP);var $P={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};$P.node;var Bo=Ce($P);var LP={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};LP.node;var qp=Ce(LP);var Qr=k(A(),1);async function Hp(e,t={}){let n=new URLSearchParams;for(let[r,o]of Object.entries(t))o!==void 0&&o!==""&&n.set(r,String(o));let a=await fetch(`${e}${n.size?`?${n}`:""}`);if(!a.ok)throw new Error(`${e}: ${a.status}`);return a.json()}async function Ay(e){let t=document.querySelector('meta[name="pitroom-token"]')?.content??"",n=await fetch(e,{method:"POST",headers:{"x-pitroom-token":t}}),a=await n.json().catch(()=>({}));if(!n.ok)throw new Error(a.error??`${e}: ${n.status}`);return a.message??"done"}var $n={stop:e=>Ay(`/api/run/${e}/stop`),discard:e=>Ay(`/api/run/${e}/discard`),stopGroup:e=>Ay(`/api/group/${encodeURIComponent(e)}/stop`),discardGroup:e=>Ay(`/api/group/${encodeURIComponent(e)}/discard`),retryGroup:e=>Hp(`/api/group/${encodeURIComponent(e)}/retry`),state:(e,t)=>Hp("/api/state",{limit:e,group:t}),run:e=>Hp(`/api/run/${e}`),history:e=>Hp("/api/history",e),stats:e=>Hp("/api/stats",{days:e})};var yC=k(A(),1);function Up(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var kk={};function la(e,t,n,a,r){if(!n&&!a&&!r&&!e)return Py(t);let o=Py(e);return t&&(o=Gp(o,t)),n&&(o=Gp(o,n)),a&&(o=Gp(o,a)),r&&(o=Gp(o,r)),o}function RP(e){if(e.length===0)return kk;if(e.length===1)return Py(e[0]);let t=Py(e[0]);for(let n=1;n<e.length;n+=1)t=Gp(t,e[n]);return t}function Py(e){return $k(e)?{...jP(e,kk)}:r8(e)}function Gp(e,t){return $k(t)?jP(t,e):o8(e,t)}function r8(e){let t={...e};for(let n in t){let a=t[n];IP(n,a)&&(t[n]=TP(a))}return t}function o8(e,t){if(!t)return e;for(let n in t){let a=t[n];switch(n){case"style":{e[n]=Up(e.style,a);break}case"className":{e[n]=Lk(e.className,a);break}default:IP(n,a)?e[n]=s8(e[n],a):e[n]=a}}return e}function IP(e,t){let n=e.charCodeAt(0),a=e.charCodeAt(1),r=e.charCodeAt(2);return n===111&&a===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function $k(e){return typeof e=="function"}function jP(e,t){return $k(e)?e(t):e??kk}function s8(e,t){return t?e?(...n)=>{let a=n[0];if(EP(a)){let o=a;Wp(o);let s=t(...n);return o.baseUIHandlerPrevented||e?.(...n),s}let r=t(...n);return e?.(...n),r}:TP(t):e}function TP(e){return e&&((...t)=>{let n=t[0];return EP(n)&&Wp(n),e(...t)})}function Wp(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Lk(e,t){return t?e?t+" "+e:t:e}function EP(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function i8(e,t){return function(a,...r){let o=new URL(e);return o.searchParams.set("code",a.toString()),r.forEach(s=>o.searchParams.append("args[]",s)),`${t} error #${a}; visit ${o} for the full message.`}}var l8=i8("https://base-ui.com/production-error","Base UI"),Ve=l8;var Yi=k(A(),1);var PP=k(A(),1),AP={};function st(e,t){let n=PP.useRef(AP);return n.current===AP&&(n.current=e(t)),n}function jr(e,t,n,a){let r=st(DP).current;return u8(r,e,t,n,a)&&NP(r,[e,t,n,a]),r.callback}function MP(e){let t=st(DP).current;return c8(t,e)&&NP(t,e),t.callback}function DP(){return{callback:null,cleanup:null,refs:[]}}function u8(e,t,n,a,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==a||e.refs[3]!==r}function c8(e,t){return e.refs.length!==t.length||e.refs.some((n,a)=>n!==t[a])}function NP(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){let a=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){let o=t[r];if(o!=null)switch(typeof o){case"function":{let s=o(n);typeof s=="function"&&(a[r]=s);break}case"object":{o.current=n;break}default:}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){let o=t[r];if(o!=null)switch(typeof o){case"function":{let s=a[r];typeof s=="function"?s():o(null);break}case"object":{o.current=null;break}default:}}}}}}var BP=k(A(),1);var OP=k(A(),1),d8=parseInt(OP.version,10);function Gd(e){return d8>=e}function Rk(e){if(!BP.isValidElement(e))return null;let t=e,n=t.props;return(Gd(19)?n?.ref:t.ref)??null}function De(){}var za=Object.freeze([]),Qe=Object.freeze({});function FP(e,t){let n={};for(let a in e){let r=e[a];if(t?.hasOwnProperty(a)){let o=t[a](r);o!=null&&Object.assign(n,o);continue}r===!0?n[`data-${a.toLowerCase()}`]="":r&&(n[`data-${a.toLowerCase()}`]=r.toString())}return n}function VP(e,t){return typeof e=="function"?e(t):e}function zP(e,t){return typeof e=="function"?e(t):e}var Ik=k(A(),1);function oe(e,t,n={}){let a=t.render;n.enabled!==!1&&(a=g8(a));let r=f8(t,n,a);if(n.enabled===!1)return null;let o=n.state??Qe;return h8(e,a,r,o)}function f8(e,t,n){let{className:a,style:r}=e,{state:o=Qe,ref:s,props:i,stateAttributesMapping:l,enabled:u=!0}=t,c=u?VP(a,o):void 0,d=u?zP(r,o):void 0,f=u?FP(o,l):Qe,m=u&&i?m8(i):void 0,p=u?Up(f,m)??{}:Qe;return typeof document<"u"&&(u?Array.isArray(s)?p.ref=MP([p.ref,Rk(n),...s]):p.ref=jr(p.ref,Rk(n),s):jr(null,null)),u?(c!==void 0&&(p.className=Lk(p.className,c)),d!==void 0&&(p.style=Up(p.style,d)),p):Qe}function m8(e){return Array.isArray(e)?RP(e):la(void 0,e)}var p8=Symbol.for("react.lazy");function g8(e){if(e?.$$typeof!==p8)return e;let t=Yi.Children.toArray(e)[0];return Yi.isValidElement(t)?t:e}function h8(e,t,n,a){if(t){if(typeof t=="function")return t(n,a);let r=la(n,t.props);return r.ref=n.ref,Yi.cloneElement(t,r)}if(e&&typeof e=="string")return b8(e,n);throw new Error(Ve(8))}function b8(e,t){return e==="button"?(0,Ik.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,Ik.createElement)("img",{alt:"",...t,key:t.key}):Yi.createElement(e,t)}function qP(e){return oe(e.defaultTagName??"div",e,e)}function HP(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=HP(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function My(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=HP(e))&&(a&&(a+=" "),a+=t);return a}var UP=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,GP=My,Wd=(e,t)=>n=>{var a;if(t?.variants==null)return GP(e,n?.class,n?.className);let{variants:r,defaultVariants:o}=t,s=Object.keys(r).map(u=>{let c=n?.[u],d=o?.[u];if(c===null)return null;let f=UP(c)||UP(d);return r[u][f]}),i=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((u,c)=>{let{class:d,className:f,...m}=c;return Object.entries(m).every(p=>{let[h,x]=p;return Array.isArray(x)?x.includes({...o,...i}[h]):{...o,...i}[h]===x})?[...u,d,f]:u},[]);return GP(e,s,l,n?.class,n?.className)};var y8=(e,t)=>{let 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},x8=(e,t)=>({classGroupId:e,validator:t}),QP=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n});var WP=[],v8="arbitrary..",C8=e=>{let t=_8(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return w8(s);let i=s.split("-"),l=i[0]===""&&i.length>1?1:0;return JP(i,l,t)},getConflictingClassGroupIds:(s,i)=>{if(i){let l=a[s],u=n[s];return l?u?y8(u,l):l:u||WP}return n[s]||WP}}},JP=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],o=n.nextPart.get(r);if(o){let u=JP(e,t+1,o);if(u)return u}let s=n.validators;if(s===null)return;let i=t===0?e.join("-"):e.slice(t).join("-"),l=s.length;for(let u=0;u<l;u++){let c=s[u];if(c.validator(i))return c.classGroupId}},w8=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(":"),a=t.slice(0,n);return a?v8+a:void 0})(),_8=e=>{let{theme:t,classGroups:n}=e;return S8(n,t)},S8=(e,t)=>{let n=QP();for(let a in e){let r=e[a];Tk(r,n,a,t)}return n},Tk=(e,t,n,a)=>{let r=e.length;for(let o=0;o<r;o++){let s=e[o];k8(s,t,n,a)}},k8=(e,t,n,a)=>{if(typeof e=="string"){$8(e,t,n);return}if(typeof e=="function"){L8(e,t,n,a);return}R8(e,t,n,a)},$8=(e,t,n)=>{let a=e===""?t:eM(t,e);a.classGroupId=n},L8=(e,t,n,a)=>{if(I8(e)){Tk(e(a),t,n,a);return}t.validators===null&&(t.validators=[]),t.validators.push(x8(n,e))},R8=(e,t,n,a)=>{let r=Object.entries(e),o=r.length;for(let s=0;s<o;s++){let[i,l]=r[s];Tk(l,eM(t,i),n,a)}},eM=(e,t)=>{let n=e,a=t.split("-"),r=a.length;for(let o=0;o<r;o++){let s=a[o],i=n.nextPart.get(s);i||(i=QP(),n.nextPart.set(s,i)),n=i}return n},I8=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,j8=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),a=Object.create(null),r=(o,s)=>{n[o]=s,t++,t>e&&(t=0,a=n,n=Object.create(null))};return{get(o){let s=n[o];if(s!==void 0)return s;if((s=a[o])!==void 0)return r(o,s),s},set(o,s){o in n?n[o]=s:r(o,s)}}};var T8=[],XP=(e,t,n,a,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:a,isExternal:r}),E8=e=>{let{prefix:t,experimentalParseClassName:n}=e,a=r=>{let o=[],s=0,i=0,l=0,u,c=r.length;for(let h=0;h<c;h++){let x=r[h];if(s===0&&i===0){if(x===":"){o.push(r.slice(l,h)),l=h+1;continue}if(x==="/"){u=h;continue}}x==="["?s++:x==="]"?s--:x==="("?i++:x===")"&&i--}let d=o.length===0?r:r.slice(l),f=d,m=!1;d.endsWith("!")?(f=d.slice(0,-1),m=!0):d.startsWith("!")&&(f=d.slice(1),m=!0);let p=u&&u>l?u-l:void 0;return XP(o,m,f,p)};if(t){let r=t+":",o=a;a=s=>s.startsWith(r)?o(s.slice(r.length)):XP(T8,!1,s,void 0,!0)}if(n){let r=a;a=o=>n({className:o,parseClassName:r})}return a},A8=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((n,a)=>{t.set(n,1e6+a)}),n=>{let a=[],r=[];for(let o=0;o<n.length;o++){let s=n[o],i=s[0]==="[",l=t.has(s);i||l?(r.length>0&&(r.sort(),a.push(...r),r=[]),a.push(s)):r.push(s)}return r.length>0&&(r.sort(),a.push(...r)),a}},P8=e=>({cache:j8(e.cacheSize),parseClassName:E8(e),sortModifiers:A8(e),postfixLookupClassGroupIds:M8(e),...C8(e)}),M8=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let a=0;a<n.length;a++)t[n[a]]=!0;return t},D8=/\s+/,N8=(e,t)=>{let{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:r,sortModifiers:o,postfixLookupClassGroupIds:s}=t,i=[],l=e.trim().split(D8),u="";for(let c=l.length-1;c>=0;c-=1){let d=l[c],{isExternal:f,modifiers:m,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:x}=n(d);if(f){u=d+(u.length>0?" "+u:u);continue}let b=!!x,g;if(b){let _=h.substring(0,x);g=a(_);let w=g&&s[g]?a(h):void 0;w&&w!==g&&(g=w,b=!1)}else g=a(h);if(!g){if(!b){u=d+(u.length>0?" "+u:u);continue}if(g=a(h),!g){u=d+(u.length>0?" "+u:u);continue}b=!1}let y=m.length===0?"":m.length===1?m[0]:o(m).join(":"),v=p?y+"!":y,C=v+g;if(i.indexOf(C)>-1)continue;i.push(C);let S=r(g,b);for(let _=0;_<S.length;++_){let w=S[_];i.push(v+w)}u=d+(u.length>0?" "+u:u)}return u},O8=(...e)=>{let t=0,n,a,r="";for(;t<e.length;)(n=e[t++])&&(a=tM(n))&&(r&&(r+=" "),r+=a);return r},tM=e=>{if(typeof e=="string")return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=tM(e[a]))&&(n&&(n+=" "),n+=t);return n},B8=(e,...t)=>{let n,a,r,o,s=l=>{let u=t.reduce((c,d)=>d(c),e());return n=P8(u),a=n.cache.get,r=n.cache.set,o=i,i(l)},i=l=>{let u=a(l);if(u)return u;let c=N8(l,n);return r(l,c),c};return o=s,(...l)=>o(O8(...l))},F8=[],Ln=e=>{let t=n=>n[e]||F8;return t.isThemeGetter=!0,t.themeKey=e,t},nM=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,aM=/^\((?:(\w[\w-]*):)?(.+)\)$/i,V8=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,z8=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,q8=/\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$/,H8=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,U8=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,G8=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zi=e=>V8.test(e),Xe=e=>!!e&&!Number.isNaN(Number(e)),Fo=e=>!!e&&Number.isInteger(Number(e)),jk=e=>e.endsWith("%")&&Xe(e.slice(0,-1)),Ls=e=>z8.test(e),rM=()=>!0,W8=e=>q8.test(e)&&!H8.test(e),Ek=()=>!1,X8=e=>U8.test(e),Y8=e=>G8.test(e),Z8=e=>!ye(e)&&!xe(e),K8=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Q8=e=>Ki(e,iM,Ek),ye=e=>nM.test(e),ju=e=>Ki(e,lM,W8),YP=e=>Ki(e,s7,Xe),J8=e=>Ki(e,cM,rM),e7=e=>Ki(e,uM,Ek),ZP=e=>Ki(e,oM,Ek),t7=e=>Ki(e,sM,Y8),Dy=e=>Ki(e,dM,X8),xe=e=>aM.test(e),Xp=e=>Tu(e,lM),n7=e=>Tu(e,uM),KP=e=>Tu(e,oM),a7=e=>Tu(e,iM),r7=e=>Tu(e,sM),Ny=e=>Tu(e,dM,!0),o7=e=>Tu(e,cM,!0),Ki=(e,t,n)=>{let a=nM.exec(e);return a?a[1]?t(a[1]):n(a[2]):!1},Tu=(e,t,n=!1)=>{let a=aM.exec(e);return a?a[1]?t(a[1]):n:!1},oM=e=>e==="position"||e==="percentage",sM=e=>e==="image"||e==="url",iM=e=>e==="length"||e==="size"||e==="bg-size",lM=e=>e==="length",s7=e=>e==="number",uM=e=>e==="family-name",cM=e=>e==="number"||e==="weight",dM=e=>e==="shadow";var i7=()=>{let e=Ln("color"),t=Ln("font"),n=Ln("text"),a=Ln("font-weight"),r=Ln("tracking"),o=Ln("leading"),s=Ln("breakpoint"),i=Ln("container"),l=Ln("spacing"),u=Ln("radius"),c=Ln("shadow"),d=Ln("inset-shadow"),f=Ln("text-shadow"),m=Ln("drop-shadow"),p=Ln("blur"),h=Ln("perspective"),x=Ln("aspect"),b=Ln("ease"),g=Ln("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...v(),xe,ye],S=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],w=()=>[xe,ye,l],R=()=>[Zi,"full","auto",...w()],$=()=>[Fo,"none","subgrid",xe,ye],j=()=>["auto",{span:["full",Fo,xe,ye]},Fo,xe,ye],M=()=>[Fo,"auto",xe,ye],I=()=>["auto","min","max","fr",xe,ye],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...w()],z=()=>[Zi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],P=()=>[i,Zi,"screen","full","dvw","lvw","svw","min","max","fit",...w()],D=()=>[Zi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],L=()=>[e,xe,ye],V=()=>[...v(),KP,ZP,{position:[xe,ye]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",a7,Q8,{size:[xe,ye]}],T=()=>[jk,Xp,ju],F=()=>["","none","full",u,xe,ye],O=()=>["",Xe,Xp,ju],Q=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[Xe,jk,KP,ZP],le=()=>["","none",p,xe,ye],ce=()=>["none",Xe,xe,ye],J=()=>["none",Xe,xe,ye],te=()=>[Xe,xe,ye],pe=()=>[Zi,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ls],breakpoint:[Ls],color:[rM],container:[Ls],"drop-shadow":[Ls],ease:["in","out","in-out"],font:[Z8],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ls],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ls],shadow:[Ls],spacing:["px",Xe],text:[Ls],"text-shadow":[Ls],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Zi,ye,xe,x]}],container:["container"],"container-type":[{"@container":["","normal","size",xe,ye]}],"container-named":[K8],columns:[{columns:[Xe,"auto",ye,xe,i]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:C()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[Fo,"auto",xe,ye]}],basis:[{basis:[Zi,"full","auto",i,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Xe,Zi,"auto","initial","none",ye]}],grow:[{grow:["",Xe,xe,ye]}],shrink:[{shrink:["",Xe,xe,ye]}],order:[{order:[Fo,"first","last","none",xe,ye]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],"inline-size":[{inline:["auto",...P()]}],"min-inline-size":[{"min-inline":["auto",...P()]}],"max-inline-size":[{"max-inline":["none",...P()]}],"block-size":[{block:["auto",...D()]}],"min-block-size":[{"min-block":["auto",...D()]}],"max-block-size":[{"max-block":["none",...D()]}],w:[{w:[i,"screen",...z()]}],"min-w":[{"min-w":[i,"screen","none",...z()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh","none",...z()]}],"font-size":[{text:["base",n,Xp,ju]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,o7,J8]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jk,ye]}],"font-family":[{font:[n7,e7,t]}],"font-features":[{"font-features":[ye]}],"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:[r,xe,ye]}],"line-clamp":[{"line-clamp":[Xe,"none",xe,YP]}],leading:[{leading:["none",o,...w()]}],"list-image":[{"list-image":["none",xe,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[Xe,"from-font","auto",xe,ju]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[Xe,"auto",xe,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"tab-size":[{tab:[Fo,xe,ye]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,ye]}],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",xe,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fo,xe,ye],radial:["",xe,ye],conic:["",Fo,xe,ye]},r7,t7]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:O()}],"border-w-x":[{"border-x":O()}],"border-w-y":[{"border-y":O()}],"border-w-s":[{"border-s":O()}],"border-w-e":[{"border-e":O()}],"border-w-bs":[{"border-bs":O()}],"border-w-be":[{"border-be":O()}],"border-w-t":[{"border-t":O()}],"border-w-r":[{"border-r":O()}],"border-w-b":[{"border-b":O()}],"border-w-l":[{"border-l":O()}],"divide-x":[{"divide-x":O()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Xe,xe,ye]}],"outline-w":[{outline:["",Xe,Xp,ju]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","inner","none",c,Ny,Dy]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",d,Ny,Dy]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[Xe,ju]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":O()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",f,Ny,Dy]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[Xe,xe,ye]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"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":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[xe,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"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":v()}],"mask-image-conic-pos":[{"mask-conic":[Xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,ye]}],filter:[{filter:["","none",xe,ye]}],blur:[{blur:le()}],brightness:[{brightness:[Xe,xe,ye]}],contrast:[{contrast:[Xe,xe,ye]}],"drop-shadow":[{"drop-shadow":["","none",m,Ny,Dy]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",Xe,xe,ye]}],"hue-rotate":[{"hue-rotate":[Xe,xe,ye]}],invert:[{invert:["",Xe,xe,ye]}],saturate:[{saturate:[Xe,xe,ye]}],sepia:[{sepia:["",Xe,xe,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,ye]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[Xe,xe,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Xe,xe,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Xe,xe,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Xe,xe,ye]}],"backdrop-invert":[{"backdrop-invert":["",Xe,xe,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Xe,xe,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Xe,xe,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Xe,xe,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Xe,"initial",xe,ye]}],ease:[{ease:["linear","initial",b,xe,ye]}],delay:[{delay:[Xe,xe,ye]}],animate:[{animate:["none",g,xe,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,xe,ye]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[xe,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],zoom:[{zoom:[Fo,xe,ye]}],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"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",xe,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":L()}],"scrollbar-track-color":[{"scrollbar-track":L()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",xe,ye]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[Xe,Xp,ju,YP]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],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":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","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-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","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-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","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-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","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-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var fM=B8(i7);function ne(...e){return fM(My(e))}var l7=Wd("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function Yp({className:e,variant:t="default",render:n,...a}){return qP({defaultTagName:"span",props:la({className:ne(l7({variant:t}),e)},a),render:n,state:{slot:"badge",variant:t}})}var Rs=e=>(e=Math.max(0,Math.round(e)),e>=3600?`${Math.floor(e/3600)}h ${String(Math.floor(e%3600/60)).padStart(2,"0")}m`:e>=60?`${Math.floor(e/60)}m ${String(e%60).padStart(2,"0")}s`:`${e}s`),Is=e=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${Math.round(e/1e3)}k`:String(e),Tr=e=>`$${e.toFixed(2)}`;function Oy(e){let t=(Date.now()-Date.parse(e))/1e3;return t<45?"just now":t<3600?`${Math.round(t/60)} min ago`:t<86400?`${Math.round(t/3600)} h ago`:t<86400*14?`${Math.round(t/86400)} d ago`:new Date(e).toLocaleDateString([],{month:"short",day:"numeric"})}function By(e){let t=/^(\S+)(?: \((.*)\))?$/.exec(e);return{backend:t?.[1]??e,model:t?.[2]}}var mM={opencode:"var(--info)",codex:"var(--success)",claude:"var(--brand)",gemini:"var(--gemini)"};var js=k(Z(),1);function Xd({worker:e,backend:t,model:n}){let a=e?By(e):{backend:t??"",model:n};return(0,js.jsxs)(Yp,{variant:"outline",className:"gap-1.5 pl-1.5",children:[(0,js.jsx)("span",{className:"size-1.5 rounded-full",style:{background:mM[a.backend]??"var(--muted-foreground)"}}),a.backend,a.model&&(0,js.jsx)("span",{className:"font-normal text-muted-foreground",children:a.model.split("/").pop()})]})}var bM={AGREE:"agrees",PARTIAL:"partly agrees",DISAGREE:"disagrees",UNCLEAR:"unclear"};function yM({verdict:e}){if(e.startsWith("AUDIT "))return(0,js.jsx)(Ak,{audit:e.slice(6),own:!0});let t=/PASS/.test(e)&&/APPROVED/.test(e),n=t?"Approved":/FAIL/.test(e)?"Spec fail":"Needs fixes";return(0,js.jsx)(Yp,{className:ne("border",t?"border-success/30 bg-success/10 text-success":"border-destructive/30 bg-destructive/10 text-destructive"),children:n})}function Ak({audit:e,own:t}){let n=e==="PENDING",a=e==="AGREE",r=e==="DISAGREE",o=n?"audit running":e==="FAILED"?"audit failed":t?`Audit ${bM[e]??e.toLowerCase()}`:`audited \xB7 ${bM[e]??e.toLowerCase()}`;return(0,js.jsx)(Yp,{variant:n||e==="FAILED"?"secondary":void 0,title:"Another worker re-checked this answer",className:ne(!n&&e!=="FAILED"&&"border",a&&"border-success/30 bg-success/10 text-success",r&&"border-destructive/30 bg-destructive/10 text-destructive",!n&&!a&&!r&&e!=="FAILED"&&"border-warning/30 bg-warning/10 text-warning"),children:o})}function Qi({children:e,tone:t}){return(0,js.jsx)(Yp,{variant:"secondary",className:ne(t==="good"&&"bg-success/10 text-success"),children:e})}var Lt=k(A(),1),KO=k(wo(),1);var Ag=k(Z(),1),Yo=k(A(),1);var xM=k(A(),1),Yd=(0,xM.createContext)({});var vM=k(A(),1);function Ji(e){let t=(0,vM.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Vy=k(A(),1);var CM=typeof window<"u";var el=CM?Vy.useLayoutEffect:Vy.useEffect;var U$=k(Z(),1),VN=k(A(),1),fl=k(A(),1);var wM=k(A(),1),tl=(0,wM.createContext)(null);var BN=k(Z(),1);function Eu(e,t){e.indexOf(t)===-1&&e.push(t)}function nl(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Rn=(e,t,n)=>n>t?t:n<e?e:n;var Ts=()=>{},qa=()=>{};var Kn={};var Au=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var Zp=e=>typeof e=="object"&&e!==null;var Pu=e=>/^0[^.\s]+$/u.test(e);function Kp(e){let t;return()=>(t===void 0&&(t=e()),t)}var nn=e=>e;var lo=(...e)=>e.reduce((t,n)=>a=>n(t(a)));var Vo=(e,t,n)=>{let a=t-e;return a?(n-e)/a:1};var zo=class{constructor(){this.subscriptions=[]}add(t){return Eu(this.subscriptions,t),()=>this.remove(t)}remove(t){nl(this.subscriptions,t)}notify(t,n,a){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,a);else for(let o=0;o<r;o++){let s=this.subscriptions[o];s&&s(t,n,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var bn=e=>e*1e3,Nn=e=>e/1e3;var Qp=(e,t)=>t?e*(1e3/t):0;var _M=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,d7=1e-7,f7=12;function m7(e,t,n,a,r){let o,s,i=0;do s=t+(n-t)/2,o=_M(s,a,r)-e,o>0?n=s:t=s;while(Math.abs(o)>d7&&++i<f7);return s}function al(e,t,n,a){if(e===t&&n===a)return nn;let r=o=>m7(o,0,1,e,n);return o=>o===0||o===1?o:_M(r(o),t,a)}var zy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var qy=e=>t=>1-e(1-t);var Hy=al(.33,1.53,.69,.99),Zd=qy(Hy),Jp=zy(Zd);var eg=e=>e>=1?1:(e*=2)<1?.5*Zd(e):.5*(2-Math.pow(2,-10*(e-1)));var tg=e=>1-Math.sin(Math.acos(e)),ng=qy(tg),ag=zy(tg);var Pk=al(.42,0,1,1),Mk=al(0,0,.58,1),Kd=al(.42,0,.58,1);var Dk=e=>Array.isArray(e)&&typeof e[0]!="number";var rg=e=>Array.isArray(e)&&typeof e[0]=="number";var SM={linear:nn,easeIn:Pk,easeInOut:Kd,easeOut:Mk,circIn:tg,circInOut:ag,circOut:ng,backIn:Zd,backInOut:Jp,backOut:Hy,anticipate:eg},p7=e=>typeof e=="string",Uy=e=>{if(rg(e)){qa(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,a,r]=e;return al(t,n,a,r)}else if(p7(e))return qa(SM[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),SM[e];return e};var Mt={delta:0,timestamp:0,isProcessing:!1};var Gy;function g7(){Gy=void 0}var wt={now:()=>(Gy===void 0&&wt.set(Mt.isProcessing||Kn.useManualTiming?Mt.timestamp:performance.now()),Gy),set:e=>{Gy=e,queueMicrotask(g7)}};var qo=e=>Math.round(e*1e5)/1e5;var kM=e=>t=>typeof t=="string"&&t.startsWith(e),Wy=kM("--"),h7=kM("var(--"),Qd=e=>h7(e)?b7.test(e.split("/*")[0].trim()):!1,b7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Nk(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var Ho={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Es={...Ho,transform:e=>Rn(0,1,e)},og={...Ho,default:1};var Jd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $M(e){return e==null}var LM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var ef=(e,t)=>n=>!!(typeof n=="string"&&LM.test(n)&&n.startsWith(e)||t&&!$M(n)&&Object.prototype.hasOwnProperty.call(n,t)),Xy=(e,t,n)=>a=>{if(typeof a!="string")return a;let[r,o,s,i]=a.match(Jd);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var y7=e=>Rn(0,255,e),Ok={...Ho,transform:e=>Math.round(y7(e))},Uo={test:ef("rgb","red"),parse:Xy("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:a=1})=>"rgba("+Ok.transform(e)+", "+Ok.transform(t)+", "+Ok.transform(n)+", "+qo(Es.transform(a))+")"};function x7(e){let t="",n="",a="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),a=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),a=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,a+=a,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(a,16),alpha:r?parseInt(r,16)/255:1}}var sg={test:ef("#"),parse:x7,transform:Uo.transform};var ig=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Er=ig("deg"),ua=ig("%"),me=ig("px"),Bk=ig("vh"),Fk=ig("vw"),Yy={...ua,parse:e=>ua.parse(e)/100,transform:e=>ua.transform(e*100)};var rl={test:ef("hsl","hue"),parse:Xy("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+ua.transform(qo(t))+", "+ua.transform(qo(n))+", "+qo(Es.transform(a))+")"};var Qt={test:e=>Uo.test(e)||sg.test(e)||rl.test(e),parse:e=>Uo.test(e)?Uo.parse(e):rl.test(e)?rl.parse(e):sg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Uo.transform(e):rl.transform(e),getAnimatableNone:e=>{let t=Qt.parse(e);return t.alpha=0,Qt.transform(t)}};var RM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var jM=new RegExp(Jd.source),TM=new RegExp(RM.source,"i");function v7(e){return isNaN(e)&&typeof e=="string"&&(jM.test(e)||TM.test(e))}var EM="number",AM="color",C7="var",w7="var(",IM="${}",_7=/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 PM(e){let t=e.toString();return jM.test(t)||TM.test(t)}function tf(e){let t=e.toString(),n=[],a={color:[],number:[],var:[]},r=[],o=0,i=t.replace(_7,l=>(Qt.test(l)?(a.color.push(o),r.push(AM),n.push(Qt.parse(l))):l.startsWith(w7)?(a.var.push(o),r.push(C7),n.push(l)):(a.number.push(o),r.push(EM),n.push(parseFloat(l))),++o,IM)).split(IM);return{values:n,split:i,indexes:a,types:r}}function S7(e){return tf(e).values}function MM({split:e,types:t}){let n=e.length;return a=>{let r="";for(let o=0;o<n;o++)if(r+=e[o],a[o]!==void 0){let s=t[o];s===EM?r+=qo(a[o]):s===AM?r+=Qt.transform(a[o]):r+=a[o]}return r}}function k7(e){return MM(tf(e))}var $7=e=>typeof e=="number"?0:Qt.test(e)?Qt.getAnimatableNone(e):e,L7=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:$7(e);function R7(e){let t=tf(e);return MM(t)(t.values.map((a,r)=>L7(a,t.split[r])))}var an={test:v7,parse:S7,createTransformer:k7,getAnimatableNone:R7};function Vk(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 DM({hue:e,saturation:t,lightness:n,alpha:a}){e/=360,t/=100,n/=100;let r=0,o=0,s=0;if(!t)r=o=s=n;else{let i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=Vk(l,i,e+1/3),o=Vk(l,i,e),s=Vk(l,i,e-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:a}}function nf(e,t){return n=>n>0?t:e}var Ue=(e,t,n)=>e+(t-e)*n;var zk=(e,t,n)=>{let a=e*e,r=n*(t*t-a)+a;return r<0?0:Math.sqrt(r)},I7=[sg,Uo,rl],j7=e=>I7.find(t=>t.test(e));function NM(e){let t=j7(e);if(!t)return Ts(!1,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!1;let n=t.parse(e);return t===rl&&(n=DM(n)),n}var qk=(e,t)=>{let n=NM(e),a=NM(t);if(!n||!a)return nf(e,t);let r={...n};return o=>(r.red=zk(n.red,a.red,o),r.green=zk(n.green,a.green,o),r.blue=zk(n.blue,a.blue,o),r.alpha=Ue(n.alpha,a.alpha,o),Uo.transform(r))};var Zy=new Set(["none","hidden"]);function OM(e,t){return Zy.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function T7(e,t){return n=>Ue(e,t,n)}function Ky(e){return typeof e=="number"?T7:typeof e=="string"?Qd(e)?nf:Qt.test(e)?qk:P7:Array.isArray(e)?BM:typeof e=="object"?Qt.test(e)?qk:E7:nf}function BM(e,t){let n=[...e],a=n.length,r=e.map((o,s)=>Ky(o)(o,t[s]));return o=>{for(let s=0;s<a;s++)n[s]=r[s](o);return n}}function E7(e,t){let n={...e,...t},a={};for(let r in n)e[r]!==void 0&&t[r]!==void 0&&(a[r]=Ky(e[r])(e[r],t[r]));return r=>{for(let o in a)n[o]=a[o](r);return n}}function A7(e,t){let n=[],a={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let o=t.types[r],s=e.indexes[o][a[o]],i=e.values[s]??0;n[r]=i,a[o]++}return n}var P7=(e,t)=>{let n=an.createTransformer(t),a=tf(e),r=tf(t);return a.indexes.var.length===r.indexes.var.length&&a.indexes.color.length===r.indexes.color.length&&a.indexes.number.length>=r.indexes.number.length?Zy.has(e)&&!r.values.length||Zy.has(t)&&!a.values.length?OM(e,t):lo(BM(A7(a,r),r.values),n):(Ts(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),nf(e,t))};var FM=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function M7(e,t){let n=FM.exec(e);if(!n)return;let a=FM.exec(t);if(!a||n[2]!==a[2])return;let r=n[2],o=parseFloat(n[1]),s=parseFloat(a[1]);return i=>qo(Ue(o,s,i))+r}function af(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return Ue(e,t,n);if(typeof e=="string"&&typeof t=="string"){let r=M7(e,t);if(r)return r}return Ky(e)(e,t)}var lg=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function VM(e){let t=new Set,n=new Set,a=!1,r=!1,o=new Set,s={delta:0,timestamp:0,isProcessing:!1};function i(u){o.has(u)&&(n.add(u),e()),u(s)}let l={schedule:(u,c=!1,d=!1)=>{let m=d&&a?t:n;return c&&o.add(u),m.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(s=u,a){r=!0;return}a=!0;let c=t;t=n,n=c,t.forEach(i),t.clear(),a=!1,r&&(r=!1,l.process(u))}};return l}var D7=40;function Qy(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let a=!1,r=!0,o=()=>a=!0,s=lg.reduce((y,v)=>(y[v]=VM(o),y),{}),{setup:i,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:m,postRender:p}=s,h=()=>{let y=Kn.useManualTiming,v=y?n.timestamp:performance.now();a=!1,y||(n.delta=r?1e3/60:Math.max(Math.min(v-n.timestamp,D7),1)),n.timestamp=v,n.isProcessing=!0,i.process(n),l.process(n),u.process(n),c.process(n),d.process(n),f.process(n),m.process(n),p.process(n),n.isProcessing=!1,a&&t&&(r=!1,e(h))},x=()=>{a=!0,r=!0,n.isProcessing||e(h)};return{schedule:lg.reduce((y,v)=>{let C=s[v];return y[v]=(S,_=!1,w=!1)=>(a||x(),C.schedule(S,_,w)),y},{}),cancel:y=>{for(let v=0;v<lg.length;v++)s[lg[v]].cancel(y)},state:n,steps:s}}var{schedule:ze,cancel:Ha,steps:ug}=Qy(typeof requestAnimationFrame<"u"?requestAnimationFrame:nn,!0,Mt);var zM=e=>{let t=({timestamp:n})=>e(n);return{start:(n=!0)=>ze.update(t,n),stop:()=>Ha(t),now:()=>Mt.isProcessing?Mt.timestamp:wt.now()}};var Jy=(e,t,n=10)=>{let a="",r=Math.max(Math.round(t/n),2);for(let o=0;o<r;o++)a+=Math.round(e(o/(r-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`};function rf(e,t=50,n=2e4,a){let r=0,o=e.next(r);for(a?.push(o.value);!o.done&&r<n;)r+=t,o=e.next(r),a?.push(o.value);return r>=n?1/0:r}function qM(e,t=100,n){let a=n({...e,keyframes:[0,t]}),r=Math.min(rf(a),2e4);return{type:"keyframes",ease:o=>a.next(r*o).value/t,duration:Nn(r)}}var On={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},HM=e=>e<0?1/Math.max(1+e,On.minDamping):Math.max(1-e,On.minDamping);function UM(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),a=e-n,r=e+n,o=2*n*Math.exp(-t)*(1+t);return GM(s=>r*Math.exp(-a*s)-a*Math.exp(-r*s)-o,s=>Math.exp(-r*s)-Math.exp(-a*s),t)/t}function Wk(e,t){return e*Math.sqrt(1-t*t)}var N7=12;function GM(e,t,n){let a=n;for(let r=1;r<N7;r++)a=a-e(a)/t(a);return a}var Uk=.001;function O7({duration:e=On.duration,bounce:t=On.bounce}){let n,a;Ts(e<=bn(On.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=HM(t);e=Rn(On.minDuration,On.maxDuration,Nn(e)),r<1?(n=u=>{let c=u*r,d=c*e,f=Wk(u,r),m=Math.exp(-d);return Uk-c/f*m},a=u=>{let d=u*r*e,f=r*r*u*u*e,m=Math.exp(-d),p=Wk(u*u,r);return(-n(u)+Uk>0?-1:1)*-f*m/p}):(n=u=>{let c=Math.exp(-u*e),d=u*e+1;return-Uk+c*d},a=u=>{let c=Math.exp(-u*e),d=-u*(e*e);return c*d});let o=5/e,s=GM(n,a,o),i=s*UM(r,s*e),l=i*i;return{stiffness:l,damping:r*2*Math.sqrt(l),duration:bn(e)}}var Xk=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Gk(e,t){if(Xk(e,t))return e}function B7(e){let t=Gk(e.stiffness),n=Gk(e.damping,!0),a=Gk(e.mass),r={...e,stiffness:t??On.stiffness,damping:n??On.damping,mass:a??On.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??a)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(r.isTimeDefined){if(e.visualDuration){let o=HM(e.bounce||0),s=2*Math.PI/(e.visualDuration*1.2)*UM(o,2*Math.PI/1.2);r.stiffness=s*s,r.damping=2*o*Math.sqrt(r.stiffness)}else Object.assign(r,O7(r)),r.isResolvedFromDuration=!0;(!Xk(r.stiffness)||!Xk(r.damping,!0))&&(r.stiffness=On.stiffness,r.damping=On.damping)}return r}function of(e=On.visualDuration,t=On.bounce){let n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,a=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:s,damping:i,mass:l,duration:u,isResolvedFromDuration:c,isTimeDefined:d}=B7({...n}),f=_=>d?0:-Nn(_),m=i/(2*Math.sqrt(s*l)),p=Nn(Math.sqrt(s/l)),h=m*p,x={target:r,delta:r-a,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},b=()=>{let _=Math.abs(x.delta)<5;x.restSpeed=n.restSpeed||(_?On.restSpeed.granular:On.restSpeed.default),x.restDelta=n.restDelta||(_?On.restDelta.granular:On.restDelta.default)};b();let g,y,v;if(m<1){let _=Wk(p,m),w={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};v=()=>{w.A=(x.velocity+h*x.delta)/_,w.sinC=h*w.A+x.delta*_,w.cosC=h*x.delta-w.A*_};let R=$=>{$!==w.t&&(w.t=$,w.env=Math.exp(-h*$),w.sin=Math.sin(_*$),w.cos=Math.cos(_*$))};g=$=>(R($),x.target-w.env*(w.A*w.sin+x.delta*w.cos)),y=$=>(R($),w.env*(w.sinC*w.sin+w.cosC*w.cos))}else if(m===1){g=w=>x.target-Math.exp(-p*w)*(x.delta+(x.velocity+p*x.delta)*w);let _={C:0};v=()=>{_.C=x.velocity+p*x.delta},y=w=>Math.exp(-p*w)*(p*_.C*w-x.velocity)}else{let _=p*Math.sqrt(m*m-1),w=h-_,R=h+_,$=d?1/0:300/_,j=(I,N)=>Math.exp(N>$?-I*$-h*(N-$):-I*N),M={S:0,F:0};v=()=>{let I=(x.velocity+h*x.delta)/_;M.S=(x.delta+I)/2,M.F=(x.delta-I)/2},g=I=>x.target-M.S*j(w,I)-M.F*j(R,I),y=I=>w*M.S*j(w,I)+R*M.F*j(R,I)}v();let C=c&&u||null,S={calculatedDuration:C,retarget:(_,w)=>{x.target=_[_.length-1],x.delta=x.target-_[0],x.velocity=f(w),n.restSpeed&&n.restDelta||b(),S.calculatedDuration=C,o.done=!1,v()},velocity:_=>bn(y(_)),next:_=>{let w=g(_);if(c)o.done=_>=u;else{let R=bn(y(_));o.done=Math.abs(R)<=x.restSpeed&&Math.abs(x.target-w)<=x.restDelta}return o.value=o.done?x.target:w,o},toString:()=>{let _=Math.min(rf(S),2e4),w=Jy(R=>S.next(_*R).value,_,30);return _+"ms "+w},toTransition:()=>{}};return S}of.applyToOptions=e=>{let t=qM(e,100,of);return e.ease=t.ease,e.duration=bn(t.duration),e.type="keyframes",e};function cg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:a=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:i,max:l,restDelta:u=.5,restSpeed:c}){let d=e[0],f={done:!1,value:d},m=_=>_<i||_>l,p=_=>i===void 0?l:l===void 0||Math.abs(i-_)<Math.abs(l-_)?i:l,h=n*t,x=d+h,b=s===void 0?x:s(x);b!==x&&(h=b-d);let g=_=>-h*Math.exp(-_/a),y=_=>{let w=g(_);f.done=Math.abs(w)<=u,f.value=f.done?b:b+w},v,C,S=_=>{m(f.value)&&(v=_,C=of({keyframes:[f.value,p(f.value)],velocity:-g(_)/a*1e3,damping:r,stiffness:o,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:_=>{let w=!1;return!C&&v===void 0&&(w=!0,y(_),S(_)),v!==void 0&&_>=v?C.next(_-v):(!w&&y(_),f)}}}function F7(e,t,n){let a=[],r=n||Kn.mix||af,o=e.length-1;for(let s=0;s<o;s++){let i=r(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||nn:t;i=lo(l,i)}a.push(i)}return a}function WM(e,t,{clamp:n=!0,ease:a,mixer:r}={}){let o=e.length;if(qa(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=F7(t,a,r),l=i.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);let f=Vo(e[d],e[d+1],c);return i[d](f)};return n?c=>u(Rn(e[0],e[o-1],c)):u}function XM(e,t){let n=e[e.length-1];for(let a=1;a<=t;a++){let r=Vo(0,t,a);e.push(Ue(n,1,r))}}function YM(e){let t=[0];return XM(t,e.length-1),t}function ZM(e,t){return e.map(n=>n*t)}function V7(e,t){return e.map(()=>t||Kd).splice(0,e.length-1)}function Mu({duration:e=300,keyframes:t,times:n,ease:a="easeInOut"}){let r=Dk(a)?a.map(Uy):Uy(a)||Kd,o={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(r)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[l,u]=t,c=l===u?void 0:(Kn.mix||af)(l,u);return{calculatedDuration:e,next:d=>(o.value=c?c(r(e>0?Rn(0,1,d/e):1)):u,o.done=d>=e,o)}}let s=ZM(n&&n.length===t.length?n:YM(t),e),i=WM(s,t,{ease:Array.isArray(r)?r:V7(t,r)});return{calculatedDuration:e,next:l=>(o.value=i(l),o.done=l>=e,o)}}var z7=5;function q7(e,t,n){let a=Math.max(t-z7,0);return Qp(n-e(a),t-a)}function KM(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):q7(a=>e.next(a).value,t,e.next(t).value)}var H7=e=>e!==null;function ol(e,{repeat:t,repeatType:n="loop"},a,r=1){let o=e.filter(H7),i=r<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||a===void 0?o[i]:a}var U7={decay:cg,inertia:cg,tween:Mu,keyframes:Mu,spring:of};function ex(e){typeof e.type=="string"&&(e.type=U7[e.type])}function QM(e,t){return{kind:e,animation:t,timestamp:wt.now(),frameTimestamp:Mt.timestamp,frameIsProcessing:Mt.isProcessing}}function tx(e,t,n){let a=globalThis.__MOTION_INSPECT__;if(a)try{a({...QM("animation-start",e),options:n?{...t,...n}:t})}catch{}}function JM(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...QM("layout-animation-start",e),node:t})}catch{}}var sl=class{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,n){return this.finished.then(t,n)}};var G7=e=>e/100,As=class extends sl{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=()=>{let{motionValue:n}=this.options;n&&n.updatedAt!==wt.now()&&this.tick(wt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause(),tx(this,this.options)}initAnimation(){let{options:t}=this;ex(t);let{type:n=Mu,repeat:a=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=t,{keyframes:i}=t,l=n||Mu;l!==Mu&&typeof i[0]!="number"&&(this.mixKeyframes=lo(G7,af(i[0],i[1])),i=[0,100]);let u=l(i===t.keyframes?t:{...t,keyframes:i});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...i].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=rf(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(a+1)-r,this.generator=u}updateTime(t){let n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){let{generator:a,totalDuration:r,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return a.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:m,type:p,onUpdate:h,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);let b=this.currentTime-u*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?b<0:b>r;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,v=a;if(d){let w=Math.min(this.currentTime,r)/i,R=Math.floor(w),$=w%1;!$&&w>=1&&($=1),$===1&&R--,R=Math.min(R,d+1),!!(R%2)&&(f==="reverse"?($=1-$,m&&($-=m/i)):f==="mirror"&&(v=s)),y=Rn(0,1,$)*i}let C;g?(this.delayState.value=c[0],C=this.delayState):C=v.next(y),o&&!g&&(C.value=o(C.value));let{done:S}=C;!g&&l!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return _&&p!==cg&&(C.value=ol(c,this.options,x,this.speed)),h&&h(C.value),_&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return Nn(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+Nn(t)}get time(){return Nn(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(){return KM(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(wt.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Nn(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=zM,startTime:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();let 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(wt.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)}};var W7=new Set(["brightness","contrast","saturate","opacity"]);function X7(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[a]=n.match(Jd)||[];if(!a)return e;let r=n.replace(a,""),o=W7.has(t)?1:0;return a!==n&&(o*=100),t+"("+o+r+")"}var Y7=/\b([a-z-]*)\(.*?\)/gu,dg={...an,getAnimatableNone:e=>{let t=e.match(Y7);return t?t.map(X7).join(" "):e}};var fg={...an,getAnimatableNone:e=>{let t=an.parse(e);return an.createTransformer(e)(t.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}};var Yk={...Ho,transform:Math.round};var eD={rotate:Er,pathRotation:Er,rotateX:Er,rotateY:Er,rotateZ:Er,scale:og,scaleX:og,scaleY:og,scaleZ:og,skew:Er,skewX:Er,skewY:Er,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:Es,originX:Yy,originY:Yy,originZ:me};var Du={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,inset:me,insetBlock:me,insetBlockStart:me,insetBlockEnd:me,insetInline:me,insetInlineStart:me,insetInlineEnd:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,paddingBlock:me,paddingBlockStart:me,paddingBlockEnd:me,paddingInline:me,paddingInlineStart:me,paddingInlineEnd:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,marginBlock:me,marginBlockStart:me,marginBlockEnd:me,marginInline:me,marginInlineStart:me,marginInlineEnd:me,fontSize:me,backgroundPositionX:me,backgroundPositionY:me,...eD,zIndex:Yk,fillOpacity:Es,strokeOpacity:Es,numOctaves:Yk};var Z7={...Du,color:Qt,backgroundColor:Qt,outlineColor:Qt,fill:Qt,stroke:Qt,borderColor:Qt,borderTopColor:Qt,borderRightColor:Qt,borderBottomColor:Qt,borderLeftColor:Qt,filter:dg,WebkitFilter:dg,mask:fg,WebkitMask:fg},nx=e=>Z7[e];var K7=new Set([dg,fg]);function sf(e,t){let n=nx(e);return K7.has(n)||(n=an),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function tD(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Nu=e=>e*180/Math.PI,Zk=e=>{let t=Nu(Math.atan2(e[1],e[0]));return Kk(t)},Q7={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Zk,rotateZ:Zk,skewX:e=>Nu(Math.atan(e[1])),skewY:e=>Nu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Kk=e=>(e=e%360,e<0&&(e+=360),e),nD=Zk,aD=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),rD=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),J7={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:aD,scaleY:rD,scale:e=>(aD(e)+rD(e))/2,rotateX:e=>Kk(Nu(Math.atan2(e[6],e[5]))),rotateY:e=>Kk(Nu(Math.atan2(-e[2],e[0]))),rotateZ:nD,rotate:nD,skewX:e=>Nu(Math.atan(e[4])),skewY:e=>Nu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ou(e){return e.includes("scale")?1:0}function ax(e,t){if(!e||e==="none")return Ou(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),a,r;if(n)a=J7,r=n;else{let i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=Q7,r=i}if(!r)return Ou(t);let o=a[t],s=r[1].split(",").map(eW);return typeof o=="function"?o(s):s[o]}var oD=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return ax(n,t)};function eW(e){return parseFloat(e.trim())}var Go=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ua=new Set([...Go,"pathRotation"]);var Qk=e=>e===Ho||e===me,tW=new Set(["x","y","z"]),nW=Go.filter(e=>!tW.has(e));function iD(e){let t=[];return nW.forEach(n=>{let a=e.getValue(n);if(a!==void 0){let r=a.get(),o=n.startsWith("scale")?1:0;if(r===o)return;t.push([n,r]),a.set(o)}}),t}var lD=new Set(["bottom","right"]);function sD(e,t,n,a,r,o){let s=parseFloat(e);if(!isNaN(s))return s;let{min:i,max:l}=t()[n],u=l-i;return o==="border-box"?u:u-parseFloat(a)-parseFloat(r)}var il={width:({width:e,paddingLeft:t="0",paddingRight:n="0",boxSizing:a},r)=>sD(e,r,"x",t,n,a),height:({height:e,paddingTop:t="0",paddingBottom:n="0",boxSizing:a},r)=>sD(e,r,"y",t,n,a),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>ax(e,"x"),y:({transform:e})=>ax(e,"y")};il.translateX=il.x;il.translateY=il.y;var Bu=new Set,Jk=!1,e$=!1,t$=!1;function uD(){if(e$){let e=[],t=new Set,n=new Set;Bu.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),lD.has(r.name)&&n.add(r.element))});let a=new Map;n.forEach(r=>{let o=iD(r);o.length&&(a.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let o=a.get(r);o&&o.forEach(([s,i])=>{r.getValue(s)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}e$=!1,Jk=!1,Bu.forEach(e=>e.complete(t$)),Bu.clear()}function cD(){Bu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(e$=!0)})}function dD(){t$=!0,cD(),uD(),t$=!1}function aW(e,t,n){if(typeof e=="string"){if(Au(e)||Pu(e))return parseFloat(e);if(!an.test(e)&&an.test(n))return sf(t,n)}return e??void 0}var ll=class{constructor(t,n,a,r,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=a,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Bu.add(this),Jk||(Jk=!0,ze.read(cD),ze.resolveKeyframes(uD))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:n,element:a,motionValue:r}=this;if(t[0]===null){let o=r?.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(a&&n){let i=aW(a.readValue(n,s),n,s);i!==void 0&&(t[0]=i)}t[0]===void 0&&(t[0]=s),r&&o===void 0&&r.set(t[0])}tD(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Bu.delete(this)}cancel(){this.state==="scheduled"&&(Bu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var fD=e=>e.startsWith("--");function rx(e,t,n){fD(t)?e.style.setProperty(t,n):e.style[t]=n}var mD={};function ox(e,t){let n=Kp(e);return()=>mD[t]??n()}var pD=ox(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var sx=ox(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Fu=([e,t,n,a])=>`cubic-bezier(${e}, ${t}, ${n}, ${a})`;var n$={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fu([0,.65,.55,1]),circOut:Fu([.55,0,1,.45]),backIn:Fu([.31,.01,.66,-.59]),backOut:Fu([.33,1.53,.69,.99])};function a$(e,t){if(e)return typeof e=="function"?sx()?Jy(e,t):"ease-out":rg(e)?Fu(e):Array.isArray(e)?e.map(n=>a$(n,t)||n$.easeOut):n$[e]}function gD(e,t,n,{delay:a=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:i="easeOut",times:l}={},u=void 0){let c={[t]:n};l&&(c.offset=l);let d=a$(i,r);Array.isArray(d)&&(c.easing=d);let f={delay:a,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function ix(e){return typeof e=="function"&&"applyToOptions"in e}function hD({type:e,...t}){return ix(e)&&sx()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var lf=class extends sl{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:n,name:a,keyframes:r,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:i,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,qa(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=hD(t);this.animation=gD(n,a,r,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){let c=ol(r,this.options,i,this.speed);this.updateMotionValue&&this.updateMotionValue(c),rx(n,a,c),this.animation.cancel()}l?.(),this.notifyFinished()},tx(this,t,u)}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;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return Nn(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+Nn(t)}get time(){return Nn(Number(this.animation.currentTime)||0)}set time(t){let 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,onAttach:n,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&pD()?(this.animation.timeline=t,n?.(this.animation),nn):a(this)}};var bD={anticipate:eg,backInOut:Jp,circInOut:ag};function rW(e){return e in bD}function yD(e){typeof e.ease=="string"&&rW(e.ease)&&(e.ease=bD[e.ease])}var r$=10,lx=class extends lf{constructor(t){yD(t),ex(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:n,onUpdate:a,onComplete:r,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}let i=new As({...s,autoplay:!1}),l=Math.max(r$,wt.now()-this.startTime),u=Rn(0,r$,l-r$),c=i.sample(l).value,{name:d}=this.options;o&&d&&rx(o,d,c),n.setWithVelocity(i.sample(Math.max(0,l-u)).value,c,u),i.stop()}};var o$=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(an.test(e)||e==="0")&&!e.startsWith("url("));function oW(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function xD(e,t,n,a){let r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;let o=e[e.length-1],s=o$(r,t),i=o$(o,t);return!s||!i?(s!==i&&Ts(!1,`You are trying to animate ${t} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!1):oW(e)||(n==="spring"||ix(n))&&a}function mg(e){e.duration=0,e.type="keyframes"}var pg=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);var sW=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function vD(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&sW.test(e[t]))return!0;return!1}var CD=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),iW=Kp(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function wD(e){let{motionValue:t,name:n,repeatDelay:a,repeatType:r,damping:o,type:s,keyframes:i}=e;if(!n||!(pg.has(n)||CD.has(n)))return!1;let l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return iW()&&(pg.has(n)||CD.has(n)&&vD(i))&&(n!=="transform"||!c)&&!u&&!a&&r!=="mirror"&&o!==0&&s!=="inertia"}var lW=40,ux=class extends sl{constructor(t){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=wt.now();let{keyframes:n,name:a,motionValue:r,element:o}=t,s=t;s.autoplay??(s.autoplay=!0),s.delay??(s.delay=0),s.type??(s.type="keyframes"),s.repeat??(s.repeat=0),s.repeatDelay??(s.repeatDelay=0),s.repeatType??(s.repeatType="loop");let i=o?.KeyframeResolver||ll;this.keyframeResolver=new i(n,(l,u,c)=>this.onKeyframesResolved(l,u,s,!c),a,r,o),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,a,r){this.keyframeResolver=void 0;let{name:o,type:s,velocity:i,delay:l,isHandoff:u,onUpdate:c}=a;this.resolvedAt=wt.now();let d=!0;xD(t,o,s,i)||(d=!1,(Kn.instantAnimations||!l)&&c?.(ol(t,a,n)),t[0]=t[t.length-1],mg(a),a.repeat=0);let f=r?this.resolvedAt?this.resolvedAt-this.createdAt>lW?this.resolvedAt:this.createdAt:this.createdAt:void 0,{onComplete:m}=a;a.startTime??(a.startTime=f),a.finalKeyframe=n,a.keyframes=t,a.onComplete=()=>{m?.(),this.notifyFinished()};let p=d&&!u&&wD(a),h;if(p){a.element=a.motionValue?.owner?.current;try{h=new lx(a)}catch{h=new As(a)}}else h=new As(a);this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this._animation.finished:super.finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),dD()),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 cx(e,t,n,a=0,r=1){let o=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,i=(s-1)*a;return typeof n=="function"?n(o,s):r===1?o*a:i-o*a}var _D=30,uW=e=>!isNaN(parseFloat(e)),SD={current:void 0},s$=class{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let r=wt.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=wt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=uW(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){var a;return t==="change"?this.onChangeSubscribe(n):((a=this.events)[t]||(a[t]=new zo)).add(n)}onChangeSubscribe(t){let{events:n}=this;return!n.change&&!this.changeSubscriber?this.changeSubscriber=t:(n.change||(n.change=new zo,n.change.add(this.changeSubscriber),this.changeSubscriber=void 0),n.change.add(t)),()=>{this.changeSubscriber===t?this.changeSubscriber=void 0:n.change?.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){ze.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let 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.notifyChange()}notifyChange(){let{current:t,changeSubscriber:n}=this;n?n(t):this.events.change?.notify(t)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return SD.current&&SD.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=wt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_D)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,_D);return Qp(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0;let a=!1,r;r=t(()=>{a=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),n()}),a||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function uo(e,t){return new s$(e,t)}function Vu(e,t){if(e?.inherit&&t){let{inherit:n,...a}=e;return{...t,...a}}return e}function uf(e,t){let n=e?.[t]??e?.default??e;return n!==e?Vu(n,e):n}var cW={type:"spring",stiffness:500,damping:25,restSpeed:10},dW=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fW={type:"keyframes",duration:.8},mW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kD=(e,{keyframes:t})=>t.length>2?fW:Ua.has(e)?e.startsWith("scale")?dW(t[1]):cW:mW;var pW=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function $D(e){for(let t in e)if(!pW.has(t))return!0;return!1}var zu=(e,t,n,a={},r,o)=>s=>{let i=uf(a,e)||{},l=i.delay||a.delay||0,{elapsed:u=0}=a;u=u-bn(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:f=>{t.set(f),i.onUpdate&&i.onUpdate(f)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:o?void 0:r};$D(i)||Object.assign(c,kD(e,c)),c.duration&&(c.duration=bn(c.duration)),c.repeatDelay&&(c.repeatDelay=bn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(mg(c),c.delay===0&&(d=!0)),(Kn.instantAnimations||Kn.skipAnimations||r?.shouldSkipAnimations||i.skipAnimations)&&(d=!0,mg(c),c.delay=0),c.allowFlatten=!i.type&&!i.ease,d&&!o&&t.get()!==void 0){let f=ol(c.keyframes,i);if(f!==void 0){ze.update(()=>{c.onUpdate(f),c.onComplete()});return}}return i.isSync?new As(c):new ux(c)};var gW=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hW(e){let t=gW.exec(e);if(!t)return[,];let[,n,a,r]=t;return[`--${n??a}`,r]}var bW=4;function i$(e,t,n=1){qa(n<=bW,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[a,r]=hW(e);if(!a)return;let o=window.getComputedStyle(t).getPropertyValue(a);if(o){let s=o.trim();return Au(s)?parseFloat(s):s}return Qd(r)?i$(r,t,n+1):r}function LD(e){let t=[{},{}];return e?.values.forEach((n,a)=>{t[0][a]=n.get(),t[1][a]=n.getVelocity()}),t}function qu(e,t,n,a){if(typeof t=="function"){let[r,o]=LD(a);t=t(n!==void 0?n:e.custom,r,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[r,o]=LD(a);t=t(n!==void 0?n:e.custom,r,o)}return t}function fr(e,t,n){let a=e.getProps();return qu(a,t,n!==void 0?n:a.custom,e)}var dx=new Set(["width","height","top","left","right","bottom",...Go]);var gg=e=>Array.isArray(e);function yW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uo(n))}function xW(e){return gg(e)?e[e.length-1]||0:e}function RD(e,t){let n=fr(e,t),{transitionEnd:a={},transition:r={},...o}=n||{};o={...o,...a};for(let s in o){let i=xW(o[s]);yW(e,s,i)}}var xt=e=>!!(e&&e.getVelocity);function ID(e){return!!(xt(e)&&e.add)}function cf(e,t){let n=e.getValue("willChange");if(ID(n))return n.add(t);if(!n&&Kn.WillChange){let a=new Kn.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function df(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var jD="framerAppearId",hg="data-"+df(jD);function fx(e){return e.props[hg]}var vW=typeof window<"u";function CW({protectedKeys:e,needsAnimating:t},n){let a=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,a}function mx(e,t,{delay:n=0,transitionOverride:a,type:r}={}){let{transition:o,transitionEnd:s,...i}=t,l=e.getDefaultTransition();o=o?Vu(o,l):l;let u=o?.reduceMotion,c=o?.skipAnimations;a&&(o=a);let d=[],f=r&&e.animationState&&e.animationState.getState()[r],m=o?.path;m&&m.animateVisualElement(e,i,o,n,d);for(let p in i){let h=e.getValue(p,e.latestValues[p]??null),x=i[p];if(x===void 0||f&&CW(f,p))continue;let b={delay:n,...uf(o||{},p)};c&&(b.skipAnimations=!0);let g=h.get();if(g!==void 0&&!h.isAnimating()&&!Array.isArray(x)&&x===g&&!b.velocity){ze.update(()=>h.set(x));continue}let y=!1;if(vW&&window.MotionHandoffAnimation){let S=fx(e);if(S){let _=window.MotionHandoffAnimation(S,p,ze);_!==null&&(b.startTime=_,y=!0)}}cf(e,p);let v=u??e.shouldReduceMotion;h.start(zu(p,h,x,v&&dx.has(p)?{type:!1}:b,e,y));let C=h.animation;C&&d.push(C)}if(s){let p=()=>ze.update(()=>{s&&RD(e,s)});d.length?Promise.all(d).then(p):p()}return d}function px(e,t,n={}){let a=fr(e,t,n.type==="exit"?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(r=n.transitionOverride);let o=a?()=>Promise.all(mx(e,a,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=r;return wW(e,t,l,u,c,d,n)}:()=>Promise.resolve(),{when:i}=r;if(i){let[l,u]=i==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function wW(e,t,n=0,a=0,r=0,o=1,s){let i=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),i.push(px(l,t,{...s,delay:n+(typeof a=="function"?0:a)+cx(e.variantChildren,l,a,r,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(i)}function TD(e,t,n={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){let r=t.map(o=>px(e,o,n));a=Promise.all(r)}else if(typeof t=="string")a=px(e,t,n);else{let r=typeof t=="function"?fr(e,t,n.custom):t;a=Promise.all(mx(e,r,n))}return a.then(()=>{e.notify("AnimationComplete",t)})}var ED={test:e=>e==="auto",parse:e=>e};var AD=e=>t=>t.test(e);var _W=[Ho,me,ua,Er,Fk,Bk,ED],l$=e=>_W.find(AD(e));function PD(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Pu(e):!0}var SW=new Set(["auto","none","0"]);function MD(e,t,n){let a=0,r;for(;a<e.length&&!r;){let o=e[a];typeof o=="string"&&!SW.has(o)&&PM(o)&&(r=e[a]),a++}if(r&&n)for(let o of t)e[o]!==r&&(e[o]=sf(n,r))}var gx=class extends ll{constructor(t,n,a,r,o){super(t,n,a,r,o,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:n,name:a}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Qd(d))){let f=i$(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!dx.has(a)||t.length!==2)return;let[r,o]=t;if(typeof r=="number"&&typeof o=="number")return;let s=l$(r),i=l$(o),l=Nk(r),u=Nk(o);if(l!==u&&il[a]){this.needsMeasurement=!0;return}if(s!==i)if(Qk(s)&&Qk(i))for(let c=0;c<t.length;c++){let d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else il[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:n}=this,a=[];for(let r=0;r<t.length;r++)(t[r]===null||PD(t[r]))&&a.push(r);a.length&&MD(t,a,n)}measure(){let{element:t,name:n}=this;return il[n](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:n,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),n[0]=this.measuredOrigin;let r=n[n.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:t,unresolvedKeyframes:n}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let a=n.length-1,r=n[a];n[a]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([o,s])=>{t.getValue(o).set(s)}),this.resolveNoneKeyframes()}};var bg=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Hu(e){return Zp(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}function ff(e){return Zp(e)&&"ownerSVGElement"in e}var yg=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function hx(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;t&&(a=t.current);let r=n?.[e]??a.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(a=>a!=null)}var kW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$W=Go.length;function DD(e,t,n){let a="",r=!0;for(let s=0;s<$W;s++){let i=Go[s],l=e[i];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(i.startsWith("scale")?1:0);else{let c=parseFloat(l);u=i.startsWith("scale")?c===1:c===0}if(!u||n){let c=yg(l,Du[i]);if(!u){r=!1;let d=kW[i]||i;a+=`${d}(${c}) `}n&&(t[i]=c)}}let o=e.pathRotation;return o&&(r=!1,a+=`rotate(${yg(o,Du.pathRotation)}) `),a=a.trim(),n?a=n(t,r?"":a):r&&(a="none"),a}function Uu(e,t,n){let{style:a,vars:r,transformOrigin:o}=e,s=!1,i=!1;for(let l in t){let u=t[l];if(Ua.has(l)){s=!0;continue}else if(Wy(l)){r[l]=u;continue}else{let c=yg(u,Du[l]);l.startsWith("origin")?(i=!0,o[l]=c):a[l]=c}}if(t.transform||(s||n?a.transform=DD(t,e.transform,n):a.transform&&(a.transform="none")),i){let{originX:l="50%",originY:u="50%",originZ:c=0}=o;a.transformOrigin=`${l} ${u} ${c}`}}var LW={offset:"stroke-dashoffset",array:"stroke-dasharray"},RW={offset:"strokeDashoffset",array:"strokeDasharray"};function ND(e,t,n=1,a=0,r=!0){e.pathLength=1;let o=r?LW:RW;e[o.offset]=`${-a}`,e[o.array]=`${t} ${n}`}var u$=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function xg(e,{attrX:t,attrY:n,attrScale:a,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...i},l,u,c){if(Uu(e,i,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let m of u$)d[m]!==void 0&&(f[m]=d[m],delete d[m]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),a!==void 0&&(d.scale=a),r!==void 0&&ND(d,r,o,s,!1)}function vg({top:e,left:t,right:n,bottom:a}){return{x:{min:t,max:n},y:{min:e,max:a}}}function c$({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function d$(e,t){if(!t)return e;let 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 f$(e){return e===void 0||e===1}function bx({scale:e,scaleX:t,scaleY:n}){return!f$(e)||!f$(t)||!f$(n)}function Ps(e){return bx(e)||m$(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m$(e){return OD(e.x)||OD(e.y)}function OD(e){return e&&e!=="0%"}function Cg(e,t,n){let a=e-n,r=t*a;return n+r}function BD(e,t,n,a,r){return r!==void 0&&(e=Cg(e,r,a)),Cg(e,n,a)+t}function p$(e,t=0,n=1,a,r){e.min=BD(e.min,t,n,a,r),e.max=BD(e.max,t,n,a,r)}function g$(e,{x:t,y:n}){p$(e.x,t.translate,t.scale,t.originPoint),p$(e.y,n.translate,n.scale,n.originPoint)}var FD=.999999999999,VD=1.0000000000001;function HD(e,t,n,a=!1){let r=n.length;if(!r)return;t.x=t.y=1;let o,s;for(let i=0;i<r;i++){o=n[i],s=o.projectionDelta;let{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(a&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(Ar(e.x,-o.scroll.offset.x),Ar(e.y,-o.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,g$(e,s)),a&&Ps(o.latestValues)&&wg(e,o.latestValues,o.layout?.layoutBox))}t.x<VD&&t.x>FD&&(t.x=1),t.y<VD&&t.y>FD&&(t.y=1)}function Ar(e,t){e.min+=t,e.max+=t}function zD(e,t,n,a,r=.5){let o=Ue(e.min,e.max,r);p$(e,t,n,o,a)}function qD(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function wg(e,t,n){let a=n??e;zD(e.x,qD(t.x,a.x),t.scaleX,t.scale,t.originX),zD(e.y,qD(t.y,a.y),t.scaleY,t.scale,t.originY)}function yx(e,t){return vg(d$(e.getBoundingClientRect(),t))}function h$(e,t,n){let a=yx(e,n),{scroll:r}=t;return r&&(Ar(a.x,r.offset.x),Ar(a.y,r.offset.y)),a}var{schedule:Gu,cancel:IW}=Qy(queueMicrotask,!1);var Pr={x:!1,y:!1};function xx(){return Pr.x||Pr.y}function b$(e){return e==="x"||e==="y"?Pr[e]?null:(Pr[e]=!0,()=>{Pr[e]=!1}):Pr.x||Pr.y?null:(Pr.x=Pr.y=!0,()=>{Pr.x=Pr.y=!1})}function vx(e,t){let n=hx(e),a=new AbortController,r={passive:!0,...t,signal:a.signal};return[n,r,()=>a.abort()]}function jW(e){return!(e.pointerType==="touch"||xx())}function y$(e,t,n={}){let[a,r,o]=vx(e,n);return a.forEach(s=>{let i=!1,l=!1,u,c=()=>{s.removeEventListener("pointerleave",p)},d=x=>{u&&(u(x),u=void 0),c()},f=x=>{i=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(x))},m=()=>{i=!0,window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",f,r)},p=x=>{if(x.pointerType!=="touch"){if(i){l=!0;return}d(x)}},h=x=>{if(!jW(x))return;l=!1;let b=t(s,x);typeof b=="function"&&(u=b,s.addEventListener("pointerleave",p,r))};s.addEventListener("pointerenter",h,r),s.addEventListener("pointerdown",m,r)}),o}var x$=(e,t)=>t?e===t?!0:x$(e,t.parentElement):!1;var Wu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var TW=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function v$(e){return TW.has(e.tagName)||e.isContentEditable===!0}var EW=new Set(["INPUT","SELECT","TEXTAREA"]);function C$(e){return EW.has(e.tagName)||e.isContentEditable===!0}var mf=new WeakSet;function UD(e){return t=>{t.key==="Enter"&&e(t)}}function w$(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var GD=(e,t)=>{let n=e.currentTarget;if(!n)return;let a=UD(()=>{if(mf.has(n))return;w$(n,"down");let r=UD(()=>{w$(n,"up")}),o=()=>w$(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",a,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",a),t)};function WD(e){return Wu(e)&&!xx()}var XD=new WeakSet;function _$(e,t,n={}){let[a,r,o]=vx(e,n),s=i=>{let l=i.currentTarget;if(!WD(i)||XD.has(i))return;mf.add(l),n.stopPropagation&&XD.add(i);let u=t(l,i),c={...r,capture:!0},d=(p,h)=>{window.removeEventListener("pointerup",f,c),window.removeEventListener("pointercancel",m,c),mf.has(l)&&mf.delete(l),WD(p)&&typeof u=="function"&&u(p,{success:h})},f=p=>{d(p,l===window||l===document||n.useGlobalTarget||x$(l,p.target))},m=p=>{d(p,!1)};window.addEventListener("pointerup",f,c),window.addEventListener("pointercancel",m,c)};return a.forEach(i=>{(n.useGlobalTarget?window:i).addEventListener("pointerdown",s,r),Hu(i)&&(i.addEventListener("focus",u=>GD(u,r)),!v$(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),o}var Cx=new WeakMap,wx,YD=(e,t,n)=>(a,r)=>r&&r[0]?r[0][e+"Size"]:ff(a)&&"getBBox"in a?a.getBBox()[t]:a[n],AW=YD("inline","width","offsetWidth"),PW=YD("block","height","offsetHeight");function MW({target:e,borderBoxSize:t}){Cx.get(e)?.forEach(n=>{n(e,{get width(){return AW(e,t)},get height(){return PW(e,t)}})})}function DW(e){e.forEach(MW)}function NW(){typeof ResizeObserver>"u"||(wx=new ResizeObserver(DW))}function ZD(e,t){wx||NW();let n=hx(e);return n.forEach(a=>{let r=Cx.get(a);r||(r=new Set,Cx.set(a,r)),r.add(t),wx?.observe(a)}),()=>{n.forEach(a=>{let r=Cx.get(a);r?.delete(t),r?.size||wx?.unobserve(a)})}}var _x=new Set,pf;function OW(){pf=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};_x.forEach(t=>t(e))},window.addEventListener("resize",pf)}function KD(e){return _x.add(e),pf||OW(),()=>{_x.delete(e),!_x.size&&typeof pf=="function"&&(window.removeEventListener("resize",pf),pf=void 0)}}function Sx(e,t){return typeof e=="function"?KD(e):ZD(e,t)}var Xu={value:null,addProjectionMetrics:null};function QD(e){return ff(e)&&e.tagName==="svg"}var S$=e=>typeof e=="number"?e:parseFloat(e);var k$=()=>({translate:0,scale:1,origin:0,originPoint:0}),ul=()=>({x:k$(),y:k$()}),$$=()=>({min:0,max:0}),qt=()=>({x:$$(),y:$$()});var JD=new WeakMap;function Ms(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Wo(e){return typeof e=="string"||Array.isArray(e)}var kx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gf=["initial",...kx];function cl(e){if(Ms(e.animate))return!0;for(let t=0;t<gf.length;t++)if(Wo(e[gf[t]]))return!0;return!1}function _g(e){return!!(cl(e)||e.variants)}function eN(e,t,n){for(let a in t){let r=t[a],o=n[a];if(xt(r))e.addValue(a,r);else if(xt(o))e.addValue(a,uo(r,{owner:e}));else if(o!==r)if(e.hasValue(a)){let s=e.getValue(a);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{let s=e.getStaticValue(a);e.addValue(a,uo(s!==void 0?s:r,{owner:e}))}}for(let a in n)t[a]===void 0&&e.removeValue(a);return t}var dl={current:null},Yu={current:!1};var BW=typeof window<"u";function Sg(){if(Yu.current=!0,!!BW)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>dl.current=e.matches;e.addEventListener("change",t),t()}else dl.current=!1}var tN=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],$x={};function $g(e){$x=e}function L$(){return $x}var kg=class{scrapeMotionValuesFromProps(t,n,a){return{}}constructor({parent:t,props:n,presenceContext:a,reducedMotionConfig:r,skipAnimations:o,blockInitialAnimation:s,visualState:i},l={}){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=ll,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=()=>{let m=wt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,ze.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=i;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=cl(n),this.isVariantNode=_g(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(let m in f){let p=f[m];u[m]!==void 0&&xt(p)&&p.set(u[m])}}mount(t){if(this.hasBeenMounted)for(let n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,JD.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:(Yu.current||Sg(),this.shouldReduceMotion=dl.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(),Ha(this.notifyUpdate),Ha(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let 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&&pg.has(t)&&this.current instanceof HTMLElement){let{factory:s,keyframes:i,times:l,ease:u,duration:c}=n.accelerate,d=new lf({element:this.current,name:t,keyframes:i,times:l,ease:u,duration:bn(c)}),f=s(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}let a=Ua.has(t);a&&this.onBindTransform&&this.onBindTransform();let r=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ze.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),o&&o()})}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 $x){let n=$x[t];if(!n)continue;let{isEnabled:a,Feature:r}=n;if(!this.features[t]&&r&&a(this.props)&&(this.features[t]=new r(this)),this.features[t]){let o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qt()}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<tN.length;a++){let r=tN[a];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let o="on"+r,s=t[o];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=eN(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){let n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){let a=this.values.get(t);if(n!==a){a&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n);let r=n.get();r!==void 0&&(this.latestValues[t]=r)}}removeValue(t){this.values.delete(t);let 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??this.getDefaultValue?.(t),{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"&&(Au(a)||Pu(a))?a=parseFloat(a):typeof a!="number"&&!an.test(a)&&an.test(n)&&(a=sf(t,n)),this.setBaseTarget(t,xt(a)?a.get():a)),xt(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){let{initial:n}=this.props,a;if(typeof n=="string"||typeof n=="object"){let o=qu(this.props,n,this.presenceContext?.custom);o&&(a=o[t])}if(n&&a!==void 0)return a;let r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!xt(r)?r:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new zo),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Gu.render(this.render)}};var hf=class extends kg{constructor(){super(...arguments),this.KeyframeResolver=gx}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){let 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);let{children:t}=this.props;xt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};var In=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function Lx(e,{style:t,vars:n},a,r){let o=e.style,s;for(s in t)o[s]=t[s];r?.applyProjectionStyles(o,a);for(s in n)o.setProperty(s,n[s])}var Zu={};function Lg(e,{layout:t,layoutId:n}){return Ua.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zu[e]||e==="opacity")}function Ku(e,t,n){let a=e.style,r=t?.style,o={};if(!a)return o;for(let s in a)(xt(a[s])||r&&xt(r[s])||Lg(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=a[s]);return o}function FW(e){return window.getComputedStyle(e)}var Rg=class extends hf{constructor(){super(...arguments),this.type="html",this.renderInstance=Lx}mount(t){qa(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,n){if(Ua.has(n))return this.projection?.isProjecting?Ou(n):oD(t,n);{let a=FW(t),r=(Wy(n)?a.getPropertyValue(n):a[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return yx(t,n)}build(t,n,a){Uu(t,n,a.transformTemplate)}scrapeMotionValuesFromProps(t,n,a){return Ku(t,n,a)}};var Rx=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"]);var Ig=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nN(e,t,n,a){Lx(e,t,void 0,a);for(let r in t.attrs)e.setAttribute(Rx.has(r)?r:df(r),t.attrs[r])}function jg(e,t,n){let a=Ku(e,t,n);for(let r in e)if(xt(e[r])||xt(t[r])){let o=Go.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;a[o]=e[r]}return a}var Tg=class extends hf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qt}getBaseTargetFromProps(t,n){return Ua.has(n)?super.getBaseTargetFromProps(t,n)??Ou(n):t[n]}getDefaultValue(t){return Ua.has(t)?this.latestValues[t]??Ou(t):void 0}readValueFromInstance(t,n){if(Ua.has(n)){let a=nx(n);return a&&a.default||0}if(u$.includes(n)){let r=getComputedStyle(t)[n];if(typeof r=="string"&&r)return r.trim()}return n=Rx.has(n)?n:df(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,a){return jg(t,n,a)}build(t,n,a){xg(t,n,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,n,a,r){nN(t,n,a,r)}mount(t){this.isSVGTag=Ig(t.tagName),super.mount(t)}};var VW=gf.length;function R$(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent?R$(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}let t={};for(let n=0;n<VW;n++){let a=gf[n],r=e.props[a];(Wo(r)||r===!1)&&(t[a]=r)}return t}function I$(e,t){if(!Array.isArray(t))return!1;let 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}var zW=[...kx].reverse(),qW=kx.length;function HW(e){return t=>Promise.all(t.map(({animation:n,options:a})=>TD(e,n,a)))}function j$(e){let t=HW(e),n=aN(),a=!0,r=!1,o=u=>(c,d)=>{let f=fr(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){let{transition:m,transitionEnd:p,...h}=f;c={...c,...h,...p}}return c};function s(u){t=u(e)}function i(u){let{props:c}=e,d=R$(e.parent)||{},f=[],m=new Set,p={},h=1/0;for(let b=0;b<qW;b++){let g=zW[b],y=n[g],v=c[g]!==void 0?c[g]:d[g],C=Wo(v),S=g===u?y.isActive:null;S===!1&&(h=b);let _=v===d[g]&&v!==c[g]&&C;if(_&&(a||r)&&e.manuallyAnimateOnMount&&(_=!1),y.protectedKeys={...p},!y.isActive&&S===null||!v&&!y.prevProp||Ms(v)||typeof v=="boolean")continue;if(g==="exit"&&y.isActive&&S!==!0){y.prevResolvedValues&&(p={...p,...y.prevResolvedValues});continue}let w=rN(y.prevProp,v),R=w||g===u&&y.isActive&&!_&&C||b>h&&C,$=!1,j=Array.isArray(v)?v:[v],M=j.reduce(o(g),{});S===!1&&(M={});let{prevResolvedValues:I={}}=y,N={...I,...M},E=P=>{R=!0,m.has(P)&&($=!0,m.delete(P)),y.needsAnimating[P]=!0;let D=e.getValue(P);D&&(D.liveStyle=!1)};for(let P in N){let D=M[P],L=I[P];if(p.hasOwnProperty(P))continue;let V=!1;gg(D)&&gg(L)?V=!I$(D,L)||w:V=D!==L,V?D!=null?E(P):m.add(P):D!==void 0&&m.has(P)?E(P):y.protectedKeys[P]=!0}y.prevProp=v,y.prevResolvedValues=M,y.isActive&&(p={...p,...M}),(a||r)&&e.blockInitialAnimation&&(R=!1);let B=_&&w;R&&(!B||$)&&f.push(...j.map(P=>{let D={type:g};if(typeof P=="string"&&(a||r)&&!B&&e.manuallyAnimateOnMount&&e.parent){let{parent:L}=e,V=fr(L,P);if(L.enteringChildren&&V){let{delayChildren:q}=V.transition||{};D.delay=cx(L.enteringChildren,e,q)}}return{animation:P,options:D}}))}if(m.size){let b={};if(typeof c.initial!="boolean"){let g=fr(e,Array.isArray(c.initial)?c.initial[0]:c.initial);g&&g.transition&&(b.transition=g.transition)}m.forEach(g=>{let y=e.getBaseTarget(g),v=e.getValue(g);v&&(v.liveStyle=!0),b[g]=y??null}),f.push({animation:b})}let x=!!f.length;return a&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(x=!1),a=!1,r=!1,x?t(f):Promise.resolve()}function l(u,c){if(n[u].isActive===c)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,c)),n[u].isActive=c;let d=i(u);for(let f in n)n[f].protectedKeys={};return d}return{animateChanges:i,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=aN(),r=!0}}}function rN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!I$(t,e):!1}function Qu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function aN(){return{animate:Qu(!0),whileInView:Qu(),whileHover:Qu(),whileTap:Qu(),whileDrag:Qu(),whileFocus:Qu(),exit:Qu()}}function Ix(e,t){e.min=t.min,e.max=t.max}function Mr(e,t){Ix(e.x,t.x),Ix(e.y,t.y)}function T$(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var oN=1e-4,UW=1-oN,GW=1+oN,sN=.01,WW=0-sN,XW=0+sN;function yn(e){return e.max-e.min}function M$(e,t,n){return Math.abs(e-t)<=n}function E$(e,t,n,a=.5){e.origin=a,e.originPoint=Ue(t.min,t.max,e.origin),e.scale=yn(n)/yn(t),e.translate=Ue(n.min,n.max,e.origin)-e.originPoint,(e.scale>=UW&&e.scale<=GW||isNaN(e.scale))&&(e.scale=1),(e.translate>=WW&&e.translate<=XW||isNaN(e.translate))&&(e.translate=0)}function Ju(e,t,n,a){E$(e.x,t.x,n.x,a?a.originX:void 0),E$(e.y,t.y,n.y,a?a.originY:void 0)}function A$(e,t,n,a=0){let r=a?Ue(n.min,n.max,a):n.min;e.min=r+t.min,e.max=e.min+yn(t)}function D$(e,t,n,a){A$(e.x,t.x,n.x,a?.x),A$(e.y,t.y,n.y,a?.y)}function P$(e,t,n,a=0){let r=a?Ue(n.min,n.max,a):n.min;e.min=t.min-r,e.max=e.min+yn(t)}function bf(e,t,n,a){P$(e.x,t.x,n.x,a?.x),P$(e.y,t.y,n.y,a?.y)}function iN(e,t,n,a,r){return e-=t,e=Cg(e,1/n,a),r!==void 0&&(e=Cg(e,1/r,a)),e}function YW(e,t=0,n=1,a=.5,r,o=e,s=e){if(ua.test(t)&&(t=parseFloat(t),t=Ue(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=Ue(o.min,o.max,a);e===o&&(i-=t),e.min=iN(e.min,t,n,i,r),e.max=iN(e.max,t,n,i,r)}function lN(e,t,[n,a,r],o,s){YW(e,t[n],t[a],t[r],t.scale,o,s)}var ZW=["x","scaleX","originX"],KW=["y","scaleY","originY"];function N$(e,t,n,a){lN(e.x,t,ZW,n?n.x:void 0,a?a.x:void 0),lN(e.y,t,KW,n?n.y:void 0,a?a.y:void 0)}function uN(e){return e.translate===0&&e.scale===1}function O$(e){return uN(e.x)&&uN(e.y)}function cN(e,t){return e.min===t.min&&e.max===t.max}function fN(e,t){return cN(e.x,t.x)&&cN(e.y,t.y)}function dN(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function B$(e,t){return dN(e.x,t.x)&&dN(e.y,t.y)}function F$(e){return yn(e.x)/yn(e.y)}function V$(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function mr(e){return[e("x"),e("y")]}function mN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var yf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;let n=mN(e,t.target.x),a=mN(e,t.target.y);return`${n}% ${a}%`}};var pN={correct:(e,{treeScale:t,projectionDelta:n})=>{let a=e,r=an.parse(e);if(r.length>5)return a;let o=an.createTransformer(e),s=typeof r[0]!="number"?1:0,i=n.x.scale*t.x,l=n.y.scale*t.y;r[0+s]/=i,r[1+s]/=l;let u=Ue(i,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=u),typeof r[3+s]=="number"&&(r[3+s]/=u),o(r)}};function gN(e,t,n){let a="",r=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((r||o||s)&&(a=`translate3d(${r}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:u,rotate:c,pathRotation:d,rotateX:f,rotateY:m,skewX:p,skewY:h}=n;u&&(a=`perspective(${u}px) ${a}`),c&&(a+=`rotate(${c}deg) `),d&&(a+=`rotate(${d}deg) `),f&&(a+=`rotateX(${f}deg) `),m&&(a+=`rotateY(${m}deg) `),p&&(a+=`skewX(${p}deg) `),h&&(a+=`skewY(${h}deg) `)}let i=e.x.scale*t.x,l=e.y.scale*t.y;return(i!==1||l!==1)&&(a+=`scale(${i}, ${l})`),a||"none"}var QW=bg.length,hN=e=>typeof e=="number"||me.test(e);function yN(e,t,n,a,r,o){r?(e.opacity=Ue(0,n.opacity??1,JW(a)),e.opacityExit=Ue(t.opacity??1,0,eX(a))):o&&(e.opacity=Ue(t.opacity??1,n.opacity??1,a));for(let s=0;s<QW;s++){let i=bg[s],l=bN(t,i),u=bN(n,i);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||hN(l)===hN(u)?(e[i]=Math.max(Ue(S$(l),S$(u),a),0),(ua.test(u)||ua.test(l))&&(e[i]+="%")):e[i]=u}(t.rotate||n.rotate)&&(e.rotate=Ue(t.rotate||0,n.rotate||0,a))}function bN(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var JW=xN(0,.5,ng),eX=xN(.5,.95,nn);function xN(e,t,n){return a=>a<e?0:a>t?1:n(Vo(e,t,a))}function vN(e,t,n){let a=xt(e)?e:uo(e);return a.start(zu("",a,t,n)),a.animation}function Xo(e,t,n,a={passive:!0}){return e.addEventListener(t,n,a),()=>e.removeEventListener(t,n,a)}var CN=(e,t)=>e.depth-t.depth;var jx=class{constructor(){this.children=[],this.isDirty=!1}add(t){Eu(this.children,t),this.isDirty=!0}remove(t){nl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(CN),this.isDirty=!1,this.children.forEach(t)}};function wN(e,t){let n=wt.now(),a=({timestamp:r})=>{let o=r-n;o>=t&&(Ha(a),e(o-t))};return ze.setup(a,!0),()=>Ha(a)}function ec(e){return xt(e)?e.get():e}var Tx=class{constructor(){this.members=[]}add(t){Eu(this.members,t);for(let n=this.members.length-1;n>=0;n--){let a=this.members[n];if(a===t||a===this.lead||a===this.prevLead)continue;let r=a.instance;(!r||r.isConnected===!1)&&!a.snapshot&&(nl(this.members,a),a.unmount())}t.scheduleRender()}remove(t){if(nl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){let a=this.members[n];if(a.isPresent!==!1&&a.instance?.isConnected!==!1)return this.promote(a),!0}return!1}promote(t,n){let a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.updateSnapshot(),t.scheduleRender();let{layoutDependency:r}=a.options,{layoutDependency:o}=t.options;(r===void 0||r!==o)&&(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)}};var _N={borderRadius:{...yf,applyTo:[...bg]},borderTopLeftRadius:yf,borderTopRightRadius:yf,borderBottomLeftRadius:yf,borderBottomRightRadius:yf,boxShadow:pN};var tc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(Zu,{..._N,...Zu});var nc={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},z$=["","X","Y","Z"],tX=1e3,nX=0;function q$(e,t,n,a){let{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),a&&(a[e]=0))}function EN(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=fx(t);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:r,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ze,!(r||o))}let{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&EN(a)}function Ex({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:a,resetTransform:r}){return class{constructor(s={},i=t?.()){this.id=nX++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Xu.value&&(nc.nodes=nc.calculatedTargetDeltas=nc.calculatedProjections=0),this.nodes.forEach(oX),this.nodes.forEach(fX),this.nodes.forEach(mX),this.nodes.forEach(sX),Xu.addProjectionMetrics&&Xu.addProjectionMetrics(nc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new jx)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new zo),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){let l=this.eventHandlers.get(s);l&&l.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=ff(s)&&!QD(s),this.instance=s;let{layoutId:i,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||i)&&(this.isLayoutDirty=!0),e){let c,d=0,f=()=>this.root.updateBlockedByResize=!1;ze.read(()=>{d=window.innerWidth}),e(s,()=>{let m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,c&&c(),c=wN(f,250),tc.hasAnimatedSinceResize&&(tc.hasAnimatedSinceResize=!1,this.nodes.forEach($N)))})}i&&this.root.registerSharedNode(i,this),this.options.animate!==!1&&u&&(i||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let p=this.options.transition||u.getDefaultTransition()||yX,{onLayoutAnimationStart:h,onLayoutAnimationComplete:x}=u.getProps(),b=!this.targetLayout||!B$(this.targetLayout,m),g=!d&&f;if(this.options.layoutRoot||this.resumeFrom||g||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let y={...uf(p,"layout"),onPlay:h,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(c,g,y.path)}else d||$N(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ha(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(pX),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&EN(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){let d=this.path[c];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(lX),this.nodes.forEach(SN);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(kN);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(uX),this.nodes.forEach(cX),this.nodes.forEach(dX),this.nodes.forEach(aX),this.nodes.forEach(rX)):this.nodes.forEach(kN),this.clearAllSnapshots();let i=wt.now();Mt.delta=Rn(0,1e3/60,i-Mt.timestamp),Mt.timestamp=i,Mt.isProcessing=!0,ug.update.process(Mt),ug.preRender.process(Mt),ug.render.process(Mt),Mt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iX),this.sharedNodes.forEach(gX)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ze.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ze.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!yn(this.snapshot.measuredBox.x)&&!yn(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=qt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i&&this.instance){let l=a(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!O$(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&this.instance&&(i||Ps(this.latestValues)||c)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let i=this.measurePageBox(),l=this.removeElementScroll(i);return s&&(l=this.removeTransform(l)),xX(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return qt();let i=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(vX))){let{scroll:u}=this.root;u&&(Ar(i.x,u.offset.x),Ar(i.y,u.offset.y))}return i}removeElementScroll(s){let i=qt();if(Mr(i,s),this.scroll?.wasRoot)return i;for(let l=0;l<this.path.length;l++){let u=this.path[l],{scroll:c,options:d}=u;u!==this.root&&c&&d.layoutScroll&&(c.wasRoot&&Mr(i,s),Ar(i.x,c.offset.x),Ar(i.y,c.offset.y))}return i}applyTransform(s,i=!1,l){let u=l||qt();Mr(u,s);for(let c=0;c<this.path.length;c++){let d=this.path[c];!i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(Ar(u.x,-d.scroll.offset.x),Ar(u.y,-d.scroll.offset.y)),Ps(d.latestValues)&&wg(u,d.latestValues,d.layout?.layoutBox)}return Ps(this.latestValues)&&wg(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(s){let i=qt();Mr(i,s);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!Ps(u.latestValues))continue;let c;u.instance&&(bx(u.latestValues)&&u.updateSnapshot(),c=qt(),Mr(c,u.measurePageBox())),N$(i,u.latestValues,u.snapshot?.layoutBox,c)}return Ps(this.latestValues)&&N$(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Mt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){let i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);let l=!!this.resumingFrom||this!==i;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=Mt.timestamp;let f=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=qt(),this.targetWithTransforms=qt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),D$(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Mr(this.target,this.layout.layoutBox),g$(this.target,this.targetDelta)):Mr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0),Xu.value&&nc.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||bx(this.parent.latestValues)||m$(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,i,l){this.relativeParent=s,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),bf(this.relativeTargetOrigin,i,l,this.options.layoutAnchor||void 0),Mr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let s=this.getLead(),i=!!this.resumingFrom||this!==s,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Mt.timestamp&&(l=!1),l)return;let{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Mr(this.layoutCorrected,this.layout.layoutBox);let d=this.treeScale.x,f=this.treeScale.y;HD(this.layoutCorrected,this.treeScale,this.path,i),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=qt());let{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(T$(this.prevProjectionDelta.x,this.projectionDelta.x),T$(this.prevProjectionDelta.y,this.projectionDelta.y)),Ju(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!V$(this.projectionDelta.x,this.prevProjectionDelta.x)||!V$(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Xu.value&&nc.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){let i=this.getStack();i&&i.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ul(),this.projectionDelta=ul(),this.projectionDeltaWithTransform=ul()}setAnimationOrigin(s,i=!1,l){let u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},f=ul();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let m=qt(),p=u?u.source:void 0,h=this.layout?this.layout.source:void 0,x=p!==h,b=this.getStack(),g=!b||b.members.length<=1,y=!!(x&&!g&&this.options.crossfade===!0&&!this.path.some(bX));this.animationProgress=0;let v,C=l?.interpolateProjection(s);this.mixTargetDelta=S=>{let _=S/1e3,w=C?.(_);w?(f.x.translate=w.x,f.x.scale=Ue(s.x.scale,1,_),f.x.origin=s.x.origin,f.x.originPoint=s.x.originPoint,f.y.translate=w.y,f.y.scale=Ue(s.y.scale,1,_),f.y.origin=s.y.origin,f.y.originPoint=s.y.originPoint):(LN(f.x,s.x,_),LN(f.y,s.y,_)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bf(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),hX(this.relativeTarget,this.relativeTargetOrigin,m,_),v&&fN(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=qt()),Mr(v,this.relativeTarget)),x&&(this.animationValues=d,yN(d,c,this.latestValues,_,y,g)),w&&w.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=w.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ha(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ze.update(()=>{tc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=uo(0)),this.motionValue.jump(0,!1),this.currentAnimation=vN(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),JM(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(tX),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:i,layout:l,latestValues:u}=s,{target:c}=s;if(!(!i||!c||!l)){if(this!==s&&this.layout&&l&&AN(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||qt();let d=yn(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+d;let f=yn(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+f}Mr(i,c),wg(i,u),Ju(this.projectionDeltaWithTransform,this.layoutCorrected,i,u)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Tx),this.sharedNodes.get(s).add(i);let u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){let{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let i=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(i=!0),!i)return;let u={};l.z&&q$("z",s,u,this.animationValues);for(let c=0;c<z$.length;c++)q$(`rotate${z$[c]}`,s,u,this.animationValues),q$(`skew${z$[c]}`,s,u,this.animationValues);s.render();for(let c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}applyProjectionStyles(s,i){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}let l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=ec(i?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}let u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=ec(i?.pointerEvents)||""),this.hasProjected&&!Ps(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";let c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=gN(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),s.transform=d;let{x:f,y:m}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?s.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(let p in Zu){if(c[p]===void 0)continue;let{correct:h,applyTo:x,isCSSVariable:b}=Zu[p],g=d==="none"?c[p]:h(c[p],u);if(x){let y=x.length;for(let v=0;v<y;v++)s[x[v]]=g}else b?this.options.visualElement.renderState.vars[p]=g:s[p]=g}this.options.layoutId&&(s.pointerEvents=u===this?ec(i?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(SN),this.root.sharedNodes.clear()}}}function aX(e){e.updateLayout()}function rX(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:a}=e.layout,{animationType:r}=e.options,o=t.source!==e.layout.source;if(r==="size")mr(c=>{let d=o?t.measuredBox[c]:t.layoutBox[c],f=yn(d);d.min=n[c].min,d.max=d.min+f});else if(r==="x"||r==="y"){let c=r==="x"?"y":"x";Ix(o?t.measuredBox[c]:t.layoutBox[c],n[c])}else AN(r,t.layoutBox,n)&&mr(c=>{let d=o?t.measuredBox[c]:t.layoutBox[c],f=yn(n[c]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+f)});let s=ul();Ju(s,n,t.layoutBox);let i=ul();o?Ju(i,e.applyTransform(a,!0),t.measuredBox):Ju(i,n,t.layoutBox);let l=!O$(s),u=!1;if(!e.resumeFrom){let c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){let{snapshot:d,layout:f}=c;if(d&&f){let m=e.options.layoutAnchor||void 0,p=qt();bf(p,t.layoutBox,d.layoutBox,m);let h=qt();bf(h,n,f.layoutBox,m),B$(p,h)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=p,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:i,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function oX(e){Xu.value&&nc.nodes++,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 sX(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iX(e){e.clearSnapshot()}function SN(e){e.clearMeasurements()}function lX(e){e.isLayoutDirty=!0,e.updateLayout()}function kN(e){e.isLayoutDirty=!1}function uX(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function cX(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function dX(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function $N(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fX(e){e.resolveTargetDelta()}function mX(e){e.calcProjection()}function pX(e){e.resetSkewAndRotation()}function gX(e){e.removeLeadSnapshot()}function LN(e,t,n){e.translate=Ue(t.translate,0,n),e.scale=Ue(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function RN(e,t,n,a){e.min=Ue(t.min,n.min,a),e.max=Ue(t.max,n.max,a)}function hX(e,t,n,a){RN(e.x,t.x,n.x,a),RN(e.y,t.y,n.y,a)}function bX(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var yX={duration:.45,ease:[.4,0,.1,1]},IN=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),jN=IN("applewebkit/")&&!IN("chrome/")?Math.round:nn;function TN(e){e.min=jN(e.min),e.max=jN(e.max)}function xX(e){TN(e.x),TN(e.y)}function AN(e,t,n){return e==="position"||e==="preserve-aspect"&&!M$(F$(t),F$(n),.2)}function vX(e){return e!==e.root&&e.scroll?.wasRoot}var PN=Ex({attachResizeListener:(e,t)=>Xo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var Ax={current:void 0},Eg=Ex({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ax.current){let e=new PN({});e.mount(window),e.setOptions({layoutScroll:!0}),Ax.current=e}return Ax.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var Px=k(A(),1),Ns=k(A(),1);var MN=k(A(),1),Ds=(0,MN.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var NN=k(A(),1);function DN(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function CX(...e){return t=>{let n=!1,a=e.map(r=>{let o=DN(r,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let r=0;r<a.length;r++){let o=a[r];typeof o=="function"?o():DN(e[r],null)}}}}function ON(...e){return NN.useCallback(CX(...e),e)}var H$=class extends Px.Component{getSnapshotBeforeUpdate(t){let n=this.props.childRef.current;if(Hu(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let a=n.offsetParent,r=Hu(a)&&a.offsetWidth||0,o=Hu(a)&&a.offsetHeight||0,s=getComputedStyle(n),i=this.props.sizeRef.current;i.height=parseFloat(s.height),i.width=parseFloat(s.width),i.top=n.offsetTop,i.left=n.offsetLeft,i.right=r-i.width-i.left,i.bottom=o-i.height-i.top,i.direction=s.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function FN({children:e,isPresent:t,anchorX:n,anchorY:a,root:r,pop:o}){let s=(0,Ns.useId)(),i=(0,Ns.useRef)(null),l=(0,Ns.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,Ns.useContext)(Ds),c=o!==!1?e.props?.ref??e?.ref:void 0,d=ON(i,c);return(0,Ns.useInsertionEffect)(()=>{let{width:f,height:m,top:p,left:h,right:x,bottom:b,direction:g}=l.current;if(t||o===!1||!i.current||!f||!m)return;let y=g==="rtl",v=n==="left"?y?`right: ${x}`:`left: ${h}`:y?`left: ${h}`:`right: ${x}`,C=a==="bottom"?`bottom: ${b}`:`top: ${p}`;i.current.dataset.motionPopId=s;let S=document.createElement("style");u&&(S.nonce=u);let _=r??document.head;return _.appendChild(S),S.sheet&&S.sheet.insertRule(`
|
|
8
|
+
`+a.stack}}var __=Object.prototype.hasOwnProperty,$S=kn.unstable_scheduleCallback,Bw=kn.unstable_cancelCallback,dU=kn.unstable_shouldYield,fU=kn.unstable_requestPaint,sr=kn.unstable_now,mU=kn.unstable_getCurrentPriorityLevel,WT=kn.unstable_ImmediatePriority,XT=kn.unstable_UserBlockingPriority,Fb=kn.unstable_NormalPriority,pU=kn.unstable_LowPriority,YT=kn.unstable_IdlePriority,gU=kn.log,hU=kn.unstable_setDisableYieldValue,hp=null,ir=null;function xi(e){if(typeof gU=="function"&&hU(e),ir&&typeof ir.setStrictMode=="function")try{ir.setStrictMode(hp,e)}catch{}}var lr=Math.clz32?Math.clz32:xU,bU=Math.log,yU=Math.LN2;function xU(e){return e>>>=0,e===0?32:31-(bU(e)/yU|0)|0}var Qh=256,Jh=262144,eb=4194304;function su(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function fy(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var i=a&134217727;return i!==0?(a=i&~o,a!==0?r=su(a):(s&=i,s!==0?r=su(s):n||(n=i&~e,n!==0&&(r=su(n))))):(i=a&~o,i!==0?r=su(i):s!==0?r=su(s):n||(n=a&~e,n!==0&&(r=su(n)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:r}function bp(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ZT(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-lr(n),r=1<<a;t|=e[a],n&=~r}return t}function vU(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function KT(){var e=eb;return eb<<=1,(eb&62914560)===0&&(eb=4194304),e}function Fw(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yp(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function CU(e,t,n,a,r,o){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=s&~n;0<n;){var c=31-lr(n),d=1<<c;i[c]=0,l[c]=-1;var f=u[c];if(f!==null)for(u[c]=null,c=0;c<f.length;c++){var m=f[c];m!==null&&(m.lane&=-536870913)}n&=~d}a!==0&&QT(e,a,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(s&~t))}function QT(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-lr(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function JT(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-lr(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function eE(e,t){var n=t&-t;return n=(n&42)!==0?1:LS(n),(n&(e.suspendedLanes|t))!==0?0:n}function LS(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function RS(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function tE(){var e=ut.p;return e!==0?e:(e=window.event,e===void 0?32:D2(e.type))}function sj(e,t){var n=ut.p;try{return ut.p=e,t()}finally{ut.p=n}}var Ss=Math.random().toString(36).slice(2),Un="__reactFiber$"+Ss,Va="__reactProps$"+Ss,Od="__reactContainer$"+Ss,ij="__reactEvents$"+Ss,wU="__reactListeners$"+Ss,_U="__reactHandles$"+Ss,lj="__reactResources$"+Ss,xp="__reactMarker$"+Ss,Vb="__reactLoad$"+Ss;function my(e){delete e[Un],delete e[Va],delete e[wU],delete e[_U]}function uu(e){var t;if(t=e[Un])return t;for(var n=e.parentNode;n;){if(t=n[Od]||n[Un]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kT(e);e!==null;){if(n=e[Un])return n;e=kT(e)}return t}e=n,n=e.parentNode}return null}function Bd(e){if(e=e[Un]||e[Od]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Nm(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(K(33))}function gd(e){var t=e[lj];return t||(t=e[lj]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Mn(e){e[xp]=!0}function nE(e){e[Vb]=void 0}var aE=new Set,rE={};function ku(e,t){$d(e,t),$d(e+"Capture",t)}function $d(e,t){for(rE[e]=t,e=0;e<t.length;e++)aE.add(t[e])}var SU=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),uj={},cj={};function kU(e){return __.call(cj,e)?!0:__.call(uj,e)?!1:SU.test(e)?cj[e]=!0:(uj[e]=!0,!1)}var ot=!1;function dj(){var e=ot;return ot=!1,e}function yb(e,t,n){if(kU(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function tb(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function fs(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,a)}}function nr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $U(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var r=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function S_(e){if(!e._valueTracker){var t=oE(e)?"checked":"value";e._valueTracker=$U(e,t,""+e[t])}}function sE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=oE(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}var LU=/[\n"\\]/g;function kr(e){return e.replace(LU,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function k_(e,t,n,a,r,o,s,i){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+nr(t)):e.value!==""+nr(t)&&(e.value=""+nr(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?s==="number"&&e.value==t?Vw(e,nr(e.value)):Vw(e,nr(t)):n!=null?Vw(e,nr(n)):a!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.name=""+nr(i):e.removeAttribute("name")}function iE(e,t,n,a,r,o,s,i){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){S_(e);return}n=n!=null?""+nr(n):"",t=t!=null?""+nr(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=i?e.checked:!!a,e.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),S_(e)}function Vw(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function hd(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+nr(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,a&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function lE(e,t,n){if(t!=null&&(t=""+nr(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+nr(n):""}function uE(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(K(92));if(Dm(a)){if(1<a.length)throw Error(K(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=nr(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),S_(e)}function Ld(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var RU=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function fj(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||RU.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function cE(e,t,n){if(t!=null&&typeof t!="object")throw Error(K(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",ot=!0);for(var r in t)a=t[r],t.hasOwnProperty(r)&&n[r]!==a&&(fj(e,r,a),ot=!0)}else for(var o in t)t.hasOwnProperty(o)&&fj(e,o,t[o])}function IS(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var IU=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),jU=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xb(e){return jU.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Io(){}var $_=null;function jS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sd=null,bd=null;function mj(e){var t=Bd(e);if(t&&(e=t.stateNode)){var n=e[Va]||null;e:switch(e=t.stateNode,t.type){case"input":if(k_(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+kr(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=a[Va]||null;if(!r)throw Error(K(90));k_(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&sE(a)}break e;case"textarea":lE(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&hd(e,!!n.multiple,t,!1)}}}var zw=!1;function dE(e,t,n){if(zw)return e(t,n);zw=!0;try{var a=e(t);return a}finally{if(zw=!1,(sd!==null||bd!==null)&&(Ly(),sd&&(t=sd,e=bd,bd=sd=null,mj(t),e)))for(t=0;t<e.length;t++)mj(e[t])}}function ep(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Va]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(K(231,t,typeof n));return n}var ys=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),L_=!1;if(ys)try{Kc={},Object.defineProperty(Kc,"passive",{get:function(){L_=!0}}),window.addEventListener("test",Kc,Kc),window.removeEventListener("test",Kc,Kc)}catch{L_=!1}var Kc,vi=null,TS=null,vb=null;function fE(){if(vb)return vb;var e,t=TS,n=t.length,a,r="value"in vi?vi.value:vi.textContent,o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var s=n-e;for(a=1;a<=s&&t[n-a]===r[o-a];a++);return vb=r.slice(e,1<a?1-a:void 0)}function Cb(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function nb(){return!0}function pj(){return!1}function _a(e){function t(n,a,r,o,s){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(o):o[i]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?nb:pj,this.isPropagationStopped=pj,this}return $t(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=nb)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=nb)},persist:function(){},isPersistent:nb}),t}var Fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},py=_a(Fi),vp=$t({},Fi,{view:0,detail:0}),TU=_a(vp),qw,Hw,jm,gy=$t({},vp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ES,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==jm&&(jm&&e.type==="mousemove"?(qw=e.screenX-jm.screenX,Hw=e.screenY-jm.screenY):Hw=qw=0,jm=e),qw)},movementY:function(e){return"movementY"in e?e.movementY:Hw}}),gj=_a(gy),EU=$t({},gy,{dataTransfer:0}),AU=_a(EU),PU=$t({},vp,{relatedTarget:0}),Uw=_a(PU),MU=$t({},Fi,{animationName:0,elapsedTime:0,pseudoElement:0}),DU=_a(MU),NU=$t({},Fi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OU=_a(NU),BU=$t({},Fi,{data:0}),hj=_a(BU),FU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VU={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"},zU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qU(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zU[e])?!!t[e]:!1}function ES(){return qU}var HU=$t({},vp,{key:function(e){if(e.key){var t=FU[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Cb(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?VU[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ES,charCode:function(e){return e.type==="keypress"?Cb(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cb(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),UU=_a(HU),GU=$t({},gy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bj=_a(GU),WU=$t({},Fi,{submitter:0}),XU=_a(WU),YU=$t({},vp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ES}),ZU=_a(YU),KU=$t({},Fi,{propertyName:0,elapsedTime:0,pseudoElement:0}),QU=_a(KU),JU=$t({},gy,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),eG=_a(JU),tG=$t({},Fi,{newState:0,oldState:0,source:0}),nG=_a(tG),aG=[9,13,27,32],AS=ys&&"CompositionEvent"in window,Fm=null;ys&&"documentMode"in document&&(Fm=document.documentMode);var rG=ys&&"TextEvent"in window&&!Fm,mE=ys&&(!AS||Fm&&8<Fm&&11>=Fm),yj=" ",xj=!1;function pE(e,t){switch(e){case"keyup":return aG.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var id=!1;function oG(e,t){switch(e){case"compositionend":return gE(t);case"keypress":return t.which!==32?null:(xj=!0,yj);case"textInput":return e=t.data,e===yj&&xj?null:e;default:return null}}function sG(e,t){if(id)return e==="compositionend"||!AS&&pE(e,t)?(e=fE(),vb=TS=vi=null,id=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return mE&&t.locale!=="ko"?null:t.data;default:return null}}var iG={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 vj(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iG[e.type]:t==="textarea"}function hE(e,t,n,a){sd?bd?bd.push(a):bd=[a]:sd=a,t=uy(t,"onChange"),0<t.length&&(n=new py("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Vm=null,tp=null;function lG(e){d2(e,0)}function hy(e){var t=Nm(e);if(sE(t))return e}function Cj(e,t){if(e==="change")return t}var bE=!1;ys&&(ys?(rb="oninput"in document,rb||(Gw=document.createElement("div"),Gw.setAttribute("oninput","return;"),rb=typeof Gw.oninput=="function"),ab=rb):ab=!1,bE=ab&&(!document.documentMode||9<document.documentMode));var ab,rb,Gw;function wj(){Vm&&(Vm.detachEvent("onpropertychange",yE),tp=Vm=null)}function yE(e){if(e.propertyName==="value"&&hy(tp)){var t=[];hE(t,tp,e,jS(e)),dE(lG,t)}}function uG(e,t,n){e==="focusin"?(wj(),Vm=t,tp=n,Vm.attachEvent("onpropertychange",yE)):e==="focusout"&&wj()}function cG(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hy(tp)}function dG(e,t){if(e==="click")return hy(t)}function fG(e,t){if(e==="input"||e==="change")return hy(t)}function mG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cr=typeof Object.is=="function"?Object.is:mG;function np(e,t){if(cr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!__.call(t,r)||!cr(e[r],t[r]))return!1}return!0}function R_(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function _j(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sj(e,t){var n=_j(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_j(n)}}function xE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vE(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=R_(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=R_(e.document)}return t}function PS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var pG=ys&&"documentMode"in document&&11>=document.documentMode,ld=null,I_=null,zm=null,j_=!1;function kj(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;j_||ld==null||ld!==R_(a)||(a=ld,"selectionStart"in a&&PS(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),zm&&np(zm,a)||(zm=a,a=uy(I_,"onSelect"),0<a.length&&(t=new py("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ld)))}function ru(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ud={animationend:ru("Animation","AnimationEnd"),animationiteration:ru("Animation","AnimationIteration"),animationstart:ru("Animation","AnimationStart"),transitionrun:ru("Transition","TransitionRun"),transitionstart:ru("Transition","TransitionStart"),transitioncancel:ru("Transition","TransitionCancel"),transitionend:ru("Transition","TransitionEnd")},Ww={},CE={};ys&&(CE=document.createElement("div").style,"AnimationEvent"in window||(delete ud.animationend.animation,delete ud.animationiteration.animation,delete ud.animationstart.animation),"TransitionEvent"in window||delete ud.transitionend.transition);function $u(e){if(Ww[e])return Ww[e];if(!ud[e])return e;var t=ud[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in CE)return Ww[e]=t[n];return e}var wE=$u("animationend"),_E=$u("animationiteration"),SE=$u("animationstart"),gG=$u("transitionrun"),hG=$u("transitionstart"),bG=$u("transitioncancel"),kE=$u("transitionend"),$E=new Map,T_="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");T_.push("scrollEnd");function ro(e,t){$E.set(e,t),ku(t,[e])}var yG=0;function xs(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=ao.identifierPrefix;var n=yG++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function $j(e){if(e==null||typeof e=="string")return e;var t=null,n=Sd;if(n!==null)for(var a=0;a<n.length;a++){var r=e[n[a]];if(r!=null){if(r==="none")return"none";t=t==null?r:t+(" "+r)}}return t??e.default}function ks(e,t){return e=$j(e),t=$j(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var zb=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},wr=[],cd=0,MS=0;function by(){for(var e=cd,t=MS=cd=0;t<e;){var n=wr[t];wr[t++]=null;var a=wr[t];wr[t++]=null;var r=wr[t];wr[t++]=null;var o=wr[t];if(wr[t++]=null,a!==null&&r!==null){var s=a.pending;s===null?r.next=r:(r.next=s.next,s.next=r),a.pending=r}o!==0&&LE(n,r,o)}}function yy(e,t,n,a){wr[cd++]=e,wr[cd++]=t,wr[cd++]=n,wr[cd++]=a,MS|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function DS(e,t,n,a){return yy(e,t,n,a),qb(e)}function Lu(e,t){return yy(e,null,null,t),qb(e)}function LE(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var r=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-lr(n),e=o.hiddenUpdates,a=e[r],a===null?e[r]=[t]:a.push(t),t.lane=n|536870912),o):null}function qb(e){if(50<Qm)throw Qm=0,Tb=null,Error(K(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var dd={};function xG(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oa(e,t,n,a){return new xG(e,t,n,a)}function NS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hs(e,t){var n=e.alternate;return n===null?(n=Oa(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function RE(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function wb(e,t,n,a,r,o){var s=0;if(a=e,typeof a=="function")NS(a)&&(s=1);else if(typeof a=="string")s=U6(e,n,Eo.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case y_:return e=Oa(31,n,t,r),e.elementType=y_,e.lanes=o,e;case rd:return fu(n.children,r,o,t);case UT:s=8,r|=24;break;case g_:return e=Oa(12,n,t,r|2),e.elementType=g_,e.lanes=o,e;case h_:return e=Oa(13,n,t,r),e.elementType=h_,e.lanes=o,e;case b_:return e=Oa(19,n,t,r),e.elementType=b_,e.lanes=o,e;case sU:case x_:return e=r|32,e=Oa(30,n,t,e),e.elementType=x_,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Ro:s=10;break e;case GT:s=9;break e;case SS:s=11;break e;case kS:s=14;break e;case hi:s=16,a=null;break e}s=29,n=Error(K(130,e===null?"null":typeof e,"")),a=null}return t=Oa(s,n,t,r),t.elementType=e,t.type=a,t.lanes=o,t}function fu(e,t,n,a){return e=Oa(7,e,a,t),e.lanes=n,e}function Xw(e,t,n){return e=Oa(6,e,null,t),e.lanes=n,e}function IE(e){var t=Oa(18,null,null,0);return t.stateNode=e,t}function Yw(e,t,n){return t=Oa(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Lj=new WeakMap;function $r(e,t){if(typeof e=="object"&&e!==null){var n=Lj.get(e);return n!==void 0?n:(t={value:e,source:t,stack:oj(t)},Lj.set(e,t),t)}return{value:e,source:t,stack:oj(t)}}var fd=[],md=0,Hb=null,ap=0,_r=[],Sr=0,Mi=null,jo=1,To="";function ps(e,t){fd[md++]=ap,fd[md++]=Hb,Hb=e,ap=t}function jE(e,t,n){_r[Sr++]=jo,_r[Sr++]=To,_r[Sr++]=Mi,Mi=e;var a=jo;e=To;var r=32-lr(a)-1;a&=~(1<<r),n+=1;var o=32-lr(t)+r;if(30<o){var s=r-r%5;o=(a&(1<<s)-1).toString(32),a>>=s,r-=s,jo=1<<32-lr(t)+r|n<<r|a,To=o+e}else jo=1<<o|n<<r|a,To=e}function xy(e){e.return!==null&&(ps(e,1),jE(e,1,0))}function OS(e){for(;e===Hb;)Hb=fd[--md],fd[md]=null,ap=fd[--md],fd[md]=null;for(;e===Mi;)Mi=_r[--Sr],_r[Sr]=null,To=_r[--Sr],_r[Sr]=null,jo=_r[--Sr],_r[Sr]=null}function TE(e,t){_r[Sr++]=jo,_r[Sr++]=To,_r[Sr++]=Mi,jo=t.id,To=t.overflow,Mi=e}var Dn=null,At=null,We=!1,$i=null,Lr=!1,E_=Error(K(519));function Di(e){var t=Error(K(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw rp($r(t,e)),E_}function Rj(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Un]=e,t[Va]=a,n){case"dialog":Ye("cancel",t),Ye("close",t);break;case"iframe":case"object":case"embed":Ye("load",t);break;case"video":case"audio":for(n=0;n<lp.length;n++)Ye(lp[n],t);break;case"source":Ye("error",t);break;case"img":case"image":case"link":Ye("error",t),Ye("load",t);break;case"details":Ye("toggle",t);break;case"input":Ye("invalid",t),iE(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ye("invalid",t);break;case"textarea":Ye("invalid",t),uE(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||m2(t.textContent,n)?(a.popover!=null&&(Ye("beforetoggle",t),Ye("toggle",t)),a.onScroll!=null&&Ye("scroll",t),a.onScrollEnd!=null&&Ye("scrollend",t),a.onClick!=null&&(t.onclick=Io),t=!0):t=!1,t||Di(e,!0)}function Ub(e){for(Dn=e.return;Dn;)switch(Dn.tag){case 5:case 31:case 13:Lr=!1;return;case 27:case 3:Lr=!0;return;default:Dn=Dn.return}}function Qc(e){if(e!==Dn)return!1;if(!We)return Ub(e),We=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||hS(e.type,e.memoizedProps)),n=!n),n&&At&&Di(e),Ub(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));At=ST(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));At=ST(e)}else t===27?(t=At,Vi(e.type)?(e=vS,vS=null,At=e):At=t):At=Dn?Rr(e.stateNode.nextSibling):null;return!0}function hu(){At=Dn=null,We=!1}function Zw(){var e=$i;return e!==null&&(Da===null?Da=e:Da.push.apply(Da,e),$i=null),e}function rp(e){$i===null?$i=[e]:$i.push(e)}var A_=Mo(null),Ru=null,gs=null;function Ci(e,t,n){Pt(A_,t._currentValue),t._currentValue=n}function bs(e){e._currentValue=A_.current,Wn(A_)}function _b(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function P_(e,t,n,a){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var s=r.child;o=o.firstContext;e:for(;o!==null;){var i=o;o=r;for(var l=0;l<t.length;l++)if(i.context===t[l]){o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),_b(o.return,n,e),a||(s=null);break e}o=i.next}}else if(r.tag===18){if(s=r.return,s===null)throw Error(K(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),_b(s,n,e),s=null}else r.tag===13&&r.memoizedState!==null&&r.memoizedState.dehydrated===null?(r.lanes|=n,s=r.alternate,s!==null&&(s.lanes|=n),_b(r.return,n,e),s=r.child,s=s!==null?s.sibling:null):s=r.child;if(s!==null)s.return=r;else for(s=r;s!==null;){if(s===e){s=null;break}if(r=s.sibling,r!==null){r.return=s.return,s=r;break}s=s.return}r=s}}function bu(e,t,n,a){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var s=r.alternate;if(s===null)throw Error(K(387));if(s=s.memoizedProps,s!==null){var i=r.type;cr(r.pendingProps.value,s.value)||(e!==null?e.push(i):e=[i])}}else if(r===Nb.current){if(s=r.alternate,s===null)throw Error(K(387));s.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Md):e=[Md])}r=r.return}return e!==null&&P_(t,e,n,a),t.flags|=262144,e!==null}function Gb(e){for(e=e.firstContext;e!==null;){if(!cr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function yu(e){Ru=e,gs=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Gn(e){return EE(Ru,e)}function ob(e,t){return Ru===null&&yu(e),EE(e,t)}function EE(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},gs===null){if(e===null)throw Error(K(308));gs=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else gs=gs.next=t;return n}var vG=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},CG=kn.unstable_scheduleCallback,wG=kn.unstable_NormalPriority,gn={$$typeof:Ro,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function BS(){return{controller:new vG,data:new Map,refCount:0}}function Cp(e){e.refCount--,e.refCount===0&&CG(wG,function(){e.controller.abort()})}function Ij(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];n.indexOf(a)===-1&&n.push(a)}}}var Om=null;function _G(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var qm=null,M_=0,xu=0,yd=null;function SG(e,t){if(qm===null){var n=qm=[];M_=0,xu=mk(),yd={status:"pending",value:void 0,then:function(a){n.push(a)}}}return M_++,t.then(jj,jj),t}function jj(){if(--M_===0&&(Om=null,qm!==null)){yd!==null&&(yd.status="fulfilled");var e=qm;qm=null,xu=0,yd=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function kG(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(a.status="rejected",a.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),a}var Tj=Ee.S;Ee.S=function(e,t){if(ZA=sr(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&SG(e,t),Om!==null)for(var n=Ed;n!==null;)Ij(n,Om),n=n.next;if(n=e.types,n!==null){for(var a=Ed;a!==null;)Ij(a,n),a=a.next;if(xu!==0){a=Om,a===null&&(a=Om=[]);for(var r=0;r<n.length;r++){var o=n[r];a.indexOf(o)===-1&&a.push(o)}}}Tj!==null&&Tj(e,t)};var mu=Mo(null);function FS(){var e=mu.current;return e!==null?e:kt.pooledCache}function Sb(e,t){t===null?Pt(mu,mu.current):Pt(mu,t.pool)}function AE(){var e=FS();return e===null?null:{parent:gn._currentValue,pool:e}}var Fd=Error(K(460)),VS=Error(K(474)),vy=Error(K(542)),Wb={then:function(){}};function Ej(e){return e=e.status,e==="fulfilled"||e==="rejected"}function PE(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Io,Io),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pj(e),e===void 0&&!("reason"in t)?Error(K(600)):e;default:if(typeof t.status=="string")t.then(Io,Io);else{if(e=kt,e!==null&&100<e.shellSuspendCounter)throw Error(K(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=a}},function(a){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pj(e),e}throw pu=t,Fd}}function iu(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(pu=n,Fd):n}}var pu=null;function Aj(){if(pu===null)throw Error(K(459));var e=pu;return pu=null,e}function Pj(e){if(e===Fd||e===vy)throw Error(K(483))}var xd=null,op=0;function sb(e){var t=op;return op+=1,xd===null&&(xd=[]),PE(xd,e,t)}function mi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ib(e,t){throw t.$$typeof===oU?Error(K(525)):(e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ME(e){function t(b,g){if(e){var y=b.deletions;y===null?(b.deletions=[g],b.flags|=16):y.push(g)}}function n(b,g){if(!e)return null;for(;g!==null;)t(b,g),g=g.sibling;return null}function a(b){for(var g=new Map;b!==null;)b.key===null?g.set(b.index,b):g.set(b.key,b),b=b.sibling;return g}function r(b,g){return b=hs(b,g),b.index=0,b.sibling=null,b}function o(b,g,y){return b.index=y,e?(y=b.alternate,y!==null?(y=y.index,y<g?(b.flags|=2,g):y):(b.flags|=134217730,g)):(b.flags|=1048576,g)}function s(b){return e&&b.alternate===null&&(b.flags|=134217730),b}function i(b,g,y,v){return g===null||g.tag!==6?(g=Xw(y,b.mode,v),g.return=b,g):(g=r(g,y),g.return=b,g)}function l(b,g,y,v){var C=y.type;return C===rd?(b=c(b,g,y.props.children,v,y.key),mi(b,y),b):g!==null&&(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===hi&&iu(C)===g.type)?(g=r(g,y.props),mi(g,y),g.return=b,g):(g=wb(y.type,y.key,y.props,null,b.mode,v),mi(g,y),g.return=b,g)}function u(b,g,y,v){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Yw(y,b.mode,v),g.return=b,g):(g=r(g,y.children||[]),g.return=b,g)}function c(b,g,y,v,C){return g===null||g.tag!==7?(g=fu(y,b.mode,v,C),g.return=b,g):(g=r(g,y),g.return=b,g)}function d(b,g,y){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Xw(""+g,b.mode,y),g.return=b,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Kh:return y=wb(g.type,g.key,g.props,null,b.mode,y),mi(y,g),y.return=b,y;case Mm:return g=Yw(g,b.mode,y),g.return=b,g;case hi:return g=iu(g),d(b,g,y)}if(Dm(g)||Im(g))return g=fu(g,b.mode,y,null),g.return=b,g;if(typeof g.then=="function")return d(b,sb(g),y);if(g.$$typeof===Ro)return d(b,ob(b,g),y);ib(b,g)}return null}function f(b,g,y,v){var C=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return C!==null?null:i(b,g,""+y,v);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Kh:return y.key===C?l(b,g,y,v):null;case Mm:return y.key===C?u(b,g,y,v):null;case hi:return y=iu(y),f(b,g,y,v)}if(Dm(y)||Im(y))return C!==null?null:c(b,g,y,v,null);if(typeof y.then=="function")return f(b,g,sb(y),v);if(y.$$typeof===Ro)return f(b,g,ob(b,y),v);ib(b,y)}return null}function m(b,g,y,v,C){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return b=b.get(y)||null,i(g,b,""+v,C);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Kh:return b=b.get(v.key===null?y:v.key)||null,l(g,b,v,C);case Mm:return b=b.get(v.key===null?y:v.key)||null,u(g,b,v,C);case hi:return v=iu(v),m(b,g,y,v,C)}if(Dm(v)||Im(v))return b=b.get(y)||null,c(g,b,v,C,null);if(typeof v.then=="function")return m(b,g,y,sb(v),C);if(v.$$typeof===Ro)return m(b,g,y,ob(g,v),C);ib(g,v)}return null}function p(b,g,y,v){for(var C=null,S=null,_=g,w=g=0,R=null;_!==null&&w<y.length;w++){_.index>w?(R=_,_=null):R=_.sibling;var $=f(b,_,y[w],v);if($===null){_===null&&(_=R);break}e&&_&&$.alternate===null&&t(b,_),g=o($,g,w),S===null?C=$:S.sibling=$,S=$,_=R}if(w===y.length)return n(b,_),We&&ps(b,w),C;if(_===null){for(;w<y.length;w++)_=d(b,y[w],v),_!==null&&(g=o(_,g,w),S===null?C=_:S.sibling=_,S=_);return We&&ps(b,w),C}for(_=a(_);w<y.length;w++)R=m(_,b,w,y[w],v),R!==null&&(e&&($=R.alternate,$!==null&&_.delete($.key===null?w:$.key)),g=o(R,g,w),S===null?C=R:S.sibling=R,S=R);return e&&_.forEach(function(j){return t(b,j)}),We&&ps(b,w),C}function h(b,g,y,v){if(y==null)throw Error(K(151));for(var C=null,S=null,_=g,w=g=0,R=null,$=y.next();_!==null&&!$.done;w++,$=y.next()){_.index>w?(R=_,_=null):R=_.sibling;var j=f(b,_,$.value,v);if(j===null){_===null&&(_=R);break}e&&_&&j.alternate===null&&t(b,_),g=o(j,g,w),S===null?C=j:S.sibling=j,S=j,_=R}if($.done)return n(b,_),We&&ps(b,w),C;if(_===null){for(;!$.done;w++,$=y.next())$=d(b,$.value,v),$!==null&&(g=o($,g,w),S===null?C=$:S.sibling=$,S=$);return We&&ps(b,w),C}for(_=a(_);!$.done;w++,$=y.next())$=m(_,b,w,$.value,v),$!==null&&(e&&(R=$.alternate,R!==null&&_.delete(R.key===null?w:R.key)),g=o($,g,w),S===null?C=$:S.sibling=$,S=$);return e&&_.forEach(function(M){return t(b,M)}),We&&ps(b,w),C}function x(b,g,y,v){if(typeof y=="object"&&y!==null&&y.type===rd&&y.key===null&&y.props.ref===void 0&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Kh:e:{for(var C=y.key;g!==null;){if(g.key===C){if(C=y.type,C===rd){if(g.tag===7){n(b,g.sibling),v=r(g,y.props.children),mi(v,y),v.return=b,b=v;break e}}else if(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===hi&&iu(C)===g.type){n(b,g.sibling),v=r(g,y.props),mi(v,y),v.return=b,b=v;break e}n(b,g);break}else t(b,g);g=g.sibling}y.type===rd?(v=fu(y.props.children,b.mode,v,y.key),mi(v,y),v.return=b,b=v):(v=wb(y.type,y.key,y.props,null,b.mode,v),mi(v,y),v.return=b,b=v)}return s(b);case Mm:e:{for(C=y.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(b,g.sibling),v=r(g,y.children||[]),v.return=b,b=v;break e}else{n(b,g);break}else t(b,g);g=g.sibling}v=Yw(y,b.mode,v),v.return=b,b=v}return s(b);case hi:return y=iu(y),x(b,g,y,v)}if(Dm(y))return p(b,g,y,v);if(Im(y)){if(C=Im(y),typeof C!="function")throw Error(K(150));return y=C.call(y),h(b,g,y,v)}if(typeof y.then=="function")return x(b,g,sb(y),v);if(y.$$typeof===Ro)return x(b,g,ob(b,y),v);ib(b,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,g!==null&&g.tag===6?(n(b,g.sibling),v=r(g,y),v.return=b,b=v):(n(b,g),v=Xw(y,b.mode,v),v.return=b,b=v),s(b)):n(b,g)}return function(b,g,y,v){try{op=0;var C=x(b,g,y,v);return xd=null,C}catch(_){if(_===Fd||_===vy)throw _;var S=Oa(29,_,null,b.mode);return S.lanes=v,S.return=b,S}finally{}}}var vu=ME(!0),DE=ME(!1),bi=!1;function zS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function D_(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Li(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ri(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(lt&2)!==0){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=qb(e),LE(e,null,n),t}return yy(e,a,t,n),qb(e)}function Hm(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,JT(e,n)}}function Kw(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var N_=!1;function Um(){if(N_){var e=yd;if(e!==null)throw e}}function Gm(e,t,n,a){N_=!1;var r=e.updateQueue;bi=!1;var o=r.firstBaseUpdate,s=r.lastBaseUpdate,i=r.shared.pending;if(i!==null){r.shared.pending=null;var l=i,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,i=c.lastBaseUpdate,i!==s&&(i===null?c.firstBaseUpdate=u:i.next=u,c.lastBaseUpdate=l))}if(o!==null){var d=r.baseState;s=0,c=u=l=null,i=o;do{var f=i.lane&-536870913,m=f!==i.lane;if(m?(Ke&f)===f:(a&f)===f){f!==0&&f===xu&&(N_=!0),c!==null&&(c=c.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{var p=e,h=i;f=t;var x=n;switch(h.tag){case 1:if(p=h.payload,typeof p=="function"){d=p.call(x,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=h.payload,f=typeof p=="function"?p.call(x,d,f):p,f==null)break e;d=$t({},d,f);break e;case 2:bi=!0}}f=i.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=r.callbacks,m===null?r.callbacks=[f]:m.push(f))}else m={lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,s|=f;if(i=i.next,i===null){if(i=r.shared.pending,i===null)break;m=i,i=m.next,m.next=null,r.lastBaseUpdate=m,r.shared.pending=null}}while(!0);c===null&&(l=d),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,o===null&&(r.shared.lanes=0),Bi|=s,e.lanes=s,e.memoizedState=d}}function NE(e,t){if(typeof e!="function")throw Error(K(191,e));e.call(t)}function OE(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)NE(n[e],t)}var Ni=Mo(null),Xb=Mo(0);function Mj(e,t){e=_s,Pt(Xb,e),Pt(Ni,t),_s=e|t.baseLanes}function O_(){Pt(Xb,_s),Pt(Ni,Ni.current)}function qS(){_s=Xb.current,Wn(Ni),Wn(Xb)}var Zn=Mo(null),sa=null;function Ii(e){var t=e.alternate;Pt(Xn,Xn.current&1),Pt(Zn,e),sa===null&&(t===null||Ni.current!==null||t.memoizedState!==null)&&(sa=e)}function B_(e){Pt(Xn,Xn.current),Pt(Zn,e),sa===null&&(sa=e)}function BE(e){e.tag===22?(Pt(Xn,Xn.current),Pt(Zn,e),sa===null&&(sa=e)):ji()}function ji(){Pt(Xn,Xn.current),Pt(Zn,Zn.current)}function ar(e){Wn(Zn),sa===e&&(sa=null),Wn(Xn)}var Xn=Mo(0);function sp(e,t){Pt(Zn,Zn.current),Pt(Xn,t)}function HS(e){Wn(Xn),Wn(Zn),sa===e&&(sa=null)}function Yb(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||xS(n)||bk(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vs=0,Fe=null,Ct=null,pn=null,Zb=!1,vd=!1,Cu=!1,Kb=0,ip=0,Cd=null,$G=0;function Kt(){throw Error(K(321))}function US(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function GS(e,t,n,a,r,o){return vs=o,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ee.H=e===null||e.memoizedState===null?hA:bA,Cu=!1,o=n(a,r),Cu=!1,vd&&(o=VE(t,n,a,r)),FE(e),o}function FE(e){Ee.H=Qb;var t=Ct!==null&&Ct.next!==null;if(vs=0,pn=Ct=Fe=null,Zb=!1,ip=0,Cd=null,t)throw Error(K(300));e===null||hn||(e=e.dependencies,e!==null&&Gb(e)&&(hn=!0))}function VE(e,t,n,a){Fe=e;var r=0;do{if(vd&&(Cd=null),ip=0,vd=!1,25<=r)throw Error(K(301));if(r+=1,pn=Ct=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}Ee.H=PG,o=t(n,a)}while(vd);return o}function LG(){var e=Ee.H,t=e.useState()[0];return t=typeof t.then=="function"?wp(t):t,e=e.useState()[0],(Ct!==null?Ct.memoizedState:null)!==e&&(Fe.flags|=1024),t}function WS(){var e=Kb!==0;return Kb=0,e}function XS(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function YS(e){if(Zb){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zb=!1}vs=0,pn=Ct=Fe=null,vd=!1,ip=Kb=0,Cd=null}function wa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pn===null?Fe.memoizedState=pn=e:pn=pn.next=e,pn}function tn(){if(Ct===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Ct.next;var t=pn===null?Fe.memoizedState:pn.next;if(t!==null)pn=t,Ct=e;else{if(e===null)throw Fe.alternate===null?Error(K(467)):Error(K(310));Ct=e,e={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},pn===null?Fe.memoizedState=pn=e:pn=pn.next=e}return pn}function Cy(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wp(e){var t=ip;return ip+=1,Cd===null&&(Cd=[]),e=PE(Cd,e,t),t=Fe,(pn===null?t.memoizedState:pn.next)===null&&(t=t.alternate,Ee.H=t===null||t.memoizedState===null?hA:bA),e}function wy(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return wp(e);if(e.$$typeof===lU)return;if(e.$$typeof===Ro)return Gn(e)}throw Error(K(438,String(e)))}function ZS(e){var t=null,n=Fe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Fe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Cy(),Fe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=iU;return t.index++,n}function Cs(e,t){return typeof t=="function"?t(e):t}function kb(e){var t=tn();return KS(t,Ct,e)}function KS(e,t,n){var a=e.queue;if(a===null)throw Error(K(311));a.lastRenderedReducer=n;var r=e.baseQueue,o=a.pending;if(o!==null){if(r!==null){var s=r.next;r.next=o.next,o.next=s}t.baseQueue=r=o,a.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var i=s=null,l=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(Ke&d)===d:(vs&d)===d){var f=u.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===xu&&(c=!0);else if((vs&f)===f){u=u.next,f===xu&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(i=l=d,s=o):l=l.next=d,Fe.lanes|=f,Bi|=f;d=u.action,Cu&&n(o,d),o=u.hasEagerState?u.eagerState:n(o,d)}else f={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(i=l=f,s=o):l=l.next=f,Fe.lanes|=d,Bi|=d;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=i,!cr(o,e.memoizedState)&&(hn=!0,c&&(n=yd,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,a.lastRenderedState=o}return r===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Qw(e){var t=tn(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var s=r=r.next;do o=e(o,s.action),s=s.next;while(s!==r);cr(o,t.memoizedState)||(hn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function zE(e,t,n){var a=Fe,r=tn(),o=We;if(o){if(n===void 0)throw Error(K(407));n=n()}else n=t();var s=!cr((Ct||r).memoizedState,n);if(s&&(r.memoizedState=n,hn=!0),r=r.queue,QS(UE.bind(null,a,r,e),[e]),e=r.getSnapshot!==t||s||pn!==null&&(pn.memoizedState.tag&1)!==0,Rd(e?9:8,{destroy:void 0},HE.bind(null,a,r,n,t),null),e){if(a.flags|=2048,kt===null)throw Error(K(349));o||(vs&127)!==0||qE(a,t,n)}return n}function qE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Fe.updateQueue,t===null?(t=Cy(),Fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function HE(e,t,n,a){t.value=n,t.getSnapshot=a,GE(t)&&WE(e)}function UE(e,t,n){return n(function(){GE(t)&&WE(e)})}function GE(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cr(e,n)}catch{return!0}}function WE(e){var t=Lu(e,2);t!==null&&Ba(t,e,2)}function F_(e){var t=wa();if(typeof e=="function"){var n=e;if(e=n(),Cu){xi(!0);try{n()}finally{xi(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:e},t}function XE(e,t,n,a){return e.baseState=n,KS(e,Ct,typeof a=="function"?a:Cs)}function RG(e,t,n,a,r){if(Sy(e))throw Error(K(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){o.listeners.push(s)}};Ee.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,YE(t,o)):(o.next=n.next,t.pending=n.next=o)}}function YE(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var o=Ee.T,s={};s.types=o!==null?o.types:null,Ee.T=s;try{var i=n(r,a),l=Ee.S;l!==null&&l(s,i),Dj(e,t,i)}catch(u){V_(e,t,u)}finally{o!==null&&s.types!==null&&(o.types=s.types),Ee.T=o}}else try{o=n(r,a),Dj(e,t,o)}catch(u){V_(e,t,u)}}function Dj(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Nj(e,t,a)},function(a){return V_(e,t,a)}):Nj(e,t,n)}function Nj(e,t,n){t.status="fulfilled",t.value=n,ZE(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,YE(e,n)))}function V_(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,ZE(t),t=t.next;while(t!==a)}e.action=null}function ZE(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function KE(e,t){return t}function Oj(e,t){if(We){var n=kt.formState;if(n!==null){e:{var a=Fe;if(We){if(At){t:{for(var r=At,o=Lr;r.nodeType!==8;){if(!o){r=null;break t}if(r=Rr(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){At=Rr(r.nextSibling),a=r.data==="F!";break e}}Di(a)}a=!1}a&&(t=n[0])}}return n=wa(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:KE,lastRenderedState:t},n.queue=a,n=mA.bind(null,Fe,a),a.dispatch=n,a=F_(!1),o=nk.bind(null,Fe,!1,a.queue),a=wa(),r={state:t,dispatch:null,action:e,pending:null},a.queue=r,n=RG.bind(null,Fe,r,o,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function Bj(e){var t=tn();return QE(t,Ct,e)}function QE(e,t,n){if(t=KS(e,t,KE)[0],e=kb(Cs)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=wp(t)}catch(s){throw s===Fd?vy:s}else a=t;t=tn();var r=t.queue,o=r.dispatch;return n!==t.memoizedState&&(Fe.flags|=2048,Rd(9,{destroy:void 0},IG.bind(null,r,n),null)),[a,o,e]}function IG(e,t){e.action=t}function Fj(e){var t=tn(),n=Ct;if(n!==null)return QE(t,n,e);tn(),t=t.memoizedState,n=tn();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Rd(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=Fe.updateQueue,t===null&&(t=Cy(),Fe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function JE(){return tn().memoizedState}function $b(e,t,n,a){var r=wa();Fe.flags|=e,r.memoizedState=Rd(1|t,{destroy:void 0},n,a===void 0?null:a)}function _y(e,t,n,a){var r=tn();a=a===void 0?null:a;var o=r.memoizedState.inst;Ct!==null&&a!==null&&US(a,Ct.memoizedState.deps)?r.memoizedState=Rd(t,o,n,a):(Fe.flags|=e,r.memoizedState=Rd(1|t,o,n,a))}function Vj(e,t){$b(8390656,8,e,t)}function QS(e,t){_y(2048,8,e,t)}function jG(e){Fe.flags|=4;var t=Fe.updateQueue;if(t===null)t=Cy(),Fe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function eA(e){var t=tn().memoizedState;return jG({ref:t,nextImpl:e}),function(){if((lt&2)!==0)throw Error(K(440));return t.impl.apply(void 0,arguments)}}function tA(e,t){return _y(4,2,e,t)}function nA(e,t){return _y(4,4,e,t)}function aA(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rA(e,t,n){n=n!=null?n.concat([e]):null,_y(4,4,aA.bind(null,t,e),n)}function JS(){}function oA(e,t){var n=tn();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&US(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function sA(e,t){var n=tn();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&US(t,a[1]))return a[0];if(a=e(),Cu){xi(!0);try{e()}finally{xi(!1)}}return n.memoizedState=[a,t],a}function ek(e,t,n){return n===void 0||(vs&1073741824)!==0&&(Ke&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=QA(),Fe.lanes|=e,Bi|=e,n)}function iA(e,t,n,a){return cr(n,t)?n:Ni.current!==null?(e=ek(e,n,a),cr(e,t)||(hn=!0),e):(vs&106)===0||(vs&1073741824)!==0&&(Ke&261930)===0?(hn=!0,e.memoizedState=n):(e=QA(),Fe.lanes|=e,Bi|=e,t)}function lA(e,t,n,a,r){var o=ut.p;ut.p=o!==0&&8>o?o:8;var s=Ee.T,i={};i.types=s!==null?s.types:null,Ee.T=i,nk(e,!1,t,n);try{var l=r(),u=Ee.S;if(u!==null&&u(i,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=kG(l,a);Wm(e,t,c,ur(e))}else Wm(e,t,a,ur(e))}catch(d){Wm(e,t,{then:function(){},status:"rejected",reason:d},ur())}finally{ut.p=o,s!==null&&i.types!==null&&(s.types=i.types),Ee.T=s}}function TG(){}function z_(e,t,n,a){if(e.tag!==5)throw Error(K(476));var r=uA(e).queue;lA(e,r,t,du,n===null?TG:function(){return cA(e),n(a)})}function uA(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:du,baseState:du,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:du},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function cA(e){var t=uA(e);t.next===null&&(t=e.alternate.memoizedState),Wm(e,t.next.queue,{},ur())}function tk(){return Gn(Md)}function dA(){return tn().memoizedState}function fA(){return tn().memoizedState}function EG(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=ur();e=Li(n);var a=Ri(t,e,n);a!==null&&(Ba(a,t,n),Hm(a,t,n)),t={cache:BS()},e.payload=t;return}t=t.return}}function AG(e,t,n){var a=ur();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Sy(e)?pA(t,n):(n=DS(e,t,n,a),n!==null&&(Ba(n,e,a),gA(n,t,a)))}function mA(e,t,n){var a=ur();Wm(e,t,n,a)}function Wm(e,t,n,a){var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sy(e))pA(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,i=o(s,n);if(r.hasEagerState=!0,r.eagerState=i,cr(i,s))return yy(e,t,r,0),kt===null&&by(),!1}catch{}finally{}if(n=DS(e,t,r,a),n!==null)return Ba(n,e,a),gA(n,t,a),!0}return!1}function nk(e,t,n,a){if(a={lane:2,revertLane:mk(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Sy(e)){if(t)throw Error(K(479))}else t=DS(e,n,a,2),t!==null&&Ba(t,e,2)}function Sy(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function pA(e,t){vd=Zb=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gA(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,JT(e,n)}}var Qb={readContext:Gn,use:wy,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useLayoutEffect:Kt,useInsertionEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useSyncExternalStore:Kt,useId:Kt,useHostTransitionStatus:Kt,useFormState:Kt,useActionState:Kt,useOptimistic:Kt,useMemoCache:Kt,useCacheRefresh:Kt,useEffectEvent:Kt},hA={readContext:Gn,use:wy,useCallback:function(e,t){return wa().memoizedState=[e,t===void 0?null:t],e},useContext:Gn,useEffect:Vj,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,$b(4194308,4,aA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $b(4194308,4,e,t)},useInsertionEffect:function(e,t){$b(4,2,e,t)},useMemo:function(e,t){var n=wa();t=t===void 0?null:t;var a=e();if(Cu){xi(!0);try{e()}finally{xi(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=wa();if(n!==void 0){var r=n(t);if(Cu){xi(!0);try{n(t)}finally{xi(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=AG.bind(null,Fe,e),[a.memoizedState,e]},useRef:function(e){var t=wa();return e={current:e},t.memoizedState=e},useState:function(e){e=F_(e);var t=e.queue,n=mA.bind(null,Fe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:JS,useDeferredValue:function(e,t){var n=wa();return ek(n,e,t)},useTransition:function(){var e=F_(!1);return e=lA.bind(null,Fe,e.queue,!0,!1),wa().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Fe,r=wa();if(We){if(n===void 0)throw Error(K(407));n=n()}else{if(n=t(),kt===null)throw Error(K(349));(Ke&127)!==0||qE(a,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,Vj(UE.bind(null,a,o,e),[e]),a.flags|=2048,Rd(9,{destroy:void 0},HE.bind(null,a,o,n,t),null),n},useId:function(){var e=wa(),t=kt.identifierPrefix;if(We){var n=To,a=jo;n=(a&~(1<<32-lr(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Kb++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=$G++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:tk,useFormState:Oj,useActionState:Oj,useOptimistic:function(e){var t=wa();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=nk.bind(null,Fe,!0,n),n.dispatch=t,[e,t]},useMemoCache:ZS,useCacheRefresh:function(){return wa().memoizedState=EG.bind(null,Fe)},useEffectEvent:function(e){var t=wa(),n={impl:e};return t.memoizedState=n,function(){if((lt&2)!==0)throw Error(K(440));return n.impl.apply(void 0,arguments)}}},bA={readContext:Gn,use:wy,useCallback:oA,useContext:Gn,useEffect:QS,useImperativeHandle:rA,useInsertionEffect:tA,useLayoutEffect:nA,useMemo:sA,useReducer:kb,useRef:JE,useState:function(){return kb(Cs)},useDebugValue:JS,useDeferredValue:function(e,t){var n=tn();return iA(n,Ct.memoizedState,e,t)},useTransition:function(){var e=kb(Cs)[0],t=tn().memoizedState;return[typeof e=="boolean"?e:wp(e),t]},useSyncExternalStore:zE,useId:dA,useHostTransitionStatus:tk,useFormState:Bj,useActionState:Bj,useOptimistic:function(e,t){var n=tn();return XE(n,Ct,e,t)},useMemoCache:ZS,useCacheRefresh:fA,useEffectEvent:eA},PG={readContext:Gn,use:wy,useCallback:oA,useContext:Gn,useEffect:QS,useImperativeHandle:rA,useInsertionEffect:tA,useLayoutEffect:nA,useMemo:sA,useReducer:Qw,useRef:JE,useState:function(){return Qw(Cs)},useDebugValue:JS,useDeferredValue:function(e,t){var n=tn();return Ct===null?ek(n,e,t):iA(n,Ct.memoizedState,e,t)},useTransition:function(){var e=Qw(Cs)[0],t=tn().memoizedState;return[typeof e=="boolean"?e:wp(e),t]},useSyncExternalStore:zE,useId:dA,useHostTransitionStatus:tk,useFormState:Fj,useActionState:Fj,useOptimistic:function(e,t){var n=tn();return Ct!==null?XE(n,Ct,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ZS,useCacheRefresh:fA,useEffectEvent:eA};function Jw(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:$t({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var q_={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=ur(),r=Li(a);r.payload=t,n!=null&&(r.callback=n),t=Ri(e,r,a),t!==null&&(Ba(t,e,a),Hm(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=ur(),r=Li(a);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=Ri(e,r,a),t!==null&&(Ba(t,e,a),Hm(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ur(),a=Li(n);a.tag=2,t!=null&&(a.callback=t),t=Ri(e,a,n),t!==null&&(Ba(t,e,n),Hm(t,e,n))}};function zj(e,t,n,a,r,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,s):t.prototype&&t.prototype.isPureReactComponent?!np(n,a)||!np(r,o):!0}function qj(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&q_.enqueueReplaceState(t,t.state,null)}function wu(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=$t({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function yA(e){zb(e)}function xA(e){console.error(e)}function vA(e){zb(e)}function Jb(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Hj(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function H_(e,t,n){return n=Li(n),n.tag=3,n.payload={element:null},n.callback=function(){Jb(e,t)},n}function CA(e){return e=Li(e),e.tag=3,e}function wA(e,t,n,a){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=a.value;e.payload=function(){return r(o)},e.callback=function(){Hj(t,n,a)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){Hj(t,n,a),typeof r!="function"&&(Ti===null?Ti=new Set([this]):Ti.add(this));var i=a.stack;this.componentDidCatch(a.value,{componentStack:i!==null?i:""})})}function MG(e,t,n,a,r){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&bu(t,n,r,!0),n=Zn.current,n!==null){switch(n.tag){case 31:case 13:case 19:return sa===null?iy():n.alternate===null&&Qt===0&&(Qt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,a===Wb?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),s_(e,a,r)),!1;case 22:return n.flags|=65536,a===Wb?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),s_(e,a,r)),!1}throw Error(K(435,n.tag))}return s_(e,a,r),iy(),!1}if(We)return t=Zn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==E_&&(e=Error(K(422),{cause:a}),rp($r(e,n)))):(a!==E_&&(t=Error(K(423),{cause:a}),rp($r(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,a=$r(a,n),r=H_(e.stateNode,a,r),Kw(e,r),Qt!==4&&(Qt=2)),!1;var o=Error(K(520),{cause:a});if(o=$r(o,n),Km===null?Km=[o]:Km.push(o),Qt!==4&&(Qt=2),t===null)return!0;a=$r(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=H_(n.stateNode,a,e),Kw(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Ti===null||!Ti.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=CA(r),wA(r,e,n,a),Kw(n,r),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var ak=Error(K(461)),hn=!1;function _n(e,t,n,a){t.child=e===null?DE(t,null,n,a):vu(t,e.child,n,a)}function Uj(e,t,n,a,r){n=n.render;var o=t.ref;if("ref"in a){var s={};for(var i in a)i!=="ref"&&(s[i]=a[i])}else s=a;return yu(t),a=GS(e,t,n,s,o,r),i=WS(),e!==null&&!hn?(XS(e,t,r),ws(e,t,r)):(We&&i&&xy(t),t.flags|=1,_n(e,t,a,r),t.child)}function Gj(e,t,n,a,r){if(e===null){var o=n.type;return typeof o=="function"&&!NS(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,_A(e,t,o,a,r)):(e=wb(n.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!ok(e,r)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:np,n(s,a)&&e.ref===t.ref)return ws(e,t,r)}return t.flags|=1,e=hs(o,a),e.ref=t.ref,e.return=t,t.child=e}function _A(e,t,n,a,r){if(e!==null){var o=e.memoizedProps;if(np(o,a)&&e.ref===t.ref)if(hn=!1,t.pendingProps=a=o,ok(e,r))(e.flags&131072)!==0&&(hn=!0);else return t.lanes=e.lanes,ws(e,t,r)}return U_(e,t,n,a,r)}function SA(e,t,n,a){var r=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,r=0;a!==null;)r=r|a.lanes|a.childLanes,a=a.sibling;a=r&~o}else a=0,t.child=null;return Wj(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Sb(t,o!==null?o.cachePool:null),o!==null?Mj(t,o):O_(),BE(t);else return a=t.lanes=536870912,Wj(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(Sb(t,o.cachePool),Mj(t,o),ji(),t.memoizedState=null):(e!==null&&Sb(t,null),O_(),ji());return _n(e,t,r,n),t.child}function Xm(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wj(e,t,n,a,r){var o=FS();return o=o===null?null:{parent:gn._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Sb(t,null),O_(),BE(t),e!==null&&bu(e,t,a,!0),t.childLanes=r,null}function Lb(e,t){return t=ky({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Xj(e,t,n){return vu(t,e.child,null,n),e=Lb(t,t.pendingProps),e.flags|=2,ar(t),t.memoizedState=null,e}function DG(e,t,n){var a=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(We){if(a.mode==="hidden")return e=Lb(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Xm(null,e);if(B_(t),(e=At)?(e=S2(e,Lr),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mi!==null?{id:jo,overflow:To}:null,retryLane:536870912,hydrationErrors:null},n=IE(e),n.return=t,t.child=n,Dn=t,At=null)):e=null,e===null)throw Di(t);return t.lanes=536870912,null}return Lb(t,a)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(B_(t),r)if(t.flags&256)t.flags&=-257,t=Xj(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(K(558));else if(hn||bu(e,t,n,!1),r=(n&e.childLanes)!==0,hn||r){if(Ni.current===null){if(a=kt,a!==null&&(s=eE(a,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Lu(e,s),Ba(a,e,s),ak;iy()}t=Xj(e,t,n)}else e=o.treeContext,At=Rr(s.nextSibling),Dn=t,We=!0,$i=null,Lr=!1,e!==null&&TE(t,e),t=Lb(t,a),t.flags|=134221824;return t}return e=hs(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ed(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(K(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function U_(e,t,n,a,r){return yu(t),n=GS(e,t,n,a,void 0,r),a=WS(),e!==null&&!hn?(XS(e,t,r),ws(e,t,r)):(We&&a&&xy(t),t.flags|=1,_n(e,t,n,r),t.child)}function Yj(e,t,n,a,r,o){return yu(t),t.updateQueue=null,n=VE(t,a,n,r),FE(e),a=WS(),e!==null&&!hn?(XS(e,t,o),ws(e,t,o)):(We&&a&&xy(t),t.flags|=1,_n(e,t,n,o),t.child)}function Zj(e,t,n,a,r){if(yu(t),t.stateNode===null){var o=dd,s=n.contextType;typeof s=="object"&&s!==null&&(o=Gn(s)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=q_,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},zS(t),s=n.contextType,o.context=typeof s=="object"&&s!==null?Gn(s):dd,o.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(Jw(t,n,s,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(s=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),s!==o.state&&q_.enqueueReplaceState(o,o.state,null),Gm(t,a,o,r),Um(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var i=t.memoizedProps,l=wu(n,i);o.props=l;var u=o.context,c=n.contextType;s=dd,typeof c=="object"&&c!==null&&(s=Gn(c));var d=n.getDerivedStateFromProps;c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function",i=t.pendingProps!==i,c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i||u!==s)&&qj(t,o,a,s),bi=!1;var f=t.memoizedState;o.state=f,Gm(t,a,o,r),Um(),u=t.memoizedState,i||f!==u||bi?(typeof d=="function"&&(Jw(t,n,d,a),u=t.memoizedState),(l=bi||zj(t,n,l,a,f,u,s))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=u),o.props=a,o.state=u,o.context=s,a=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,D_(e,t),s=t.memoizedProps,c=wu(n,s),o.props=c,d=t.pendingProps,f=o.context,u=n.contextType,l=dd,typeof u=="object"&&u!==null&&(l=Gn(u)),i=n.getDerivedStateFromProps,(u=typeof i=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||f!==l)&&qj(t,o,a,l),bi=!1,f=t.memoizedState,o.state=f,Gm(t,a,o,r),Um();var m=t.memoizedState;s!==d||f!==m||bi||e!==null&&e.dependencies!==null&&Gb(e.dependencies)?(typeof i=="function"&&(Jw(t,n,i,a),m=t.memoizedState),(c=bi||zj(t,n,c,a,f,m,l)||e!==null&&e.dependencies!==null&&Gb(e.dependencies))?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,m,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=m),o.props=a,o.state=m,o.context=l,a=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,ed(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=vu(t,e.child,null,r),t.child=vu(t,null,n,r)):_n(e,t,n,r),t.memoizedState=o.state,e=t.child):e=ws(e,t,r),e}function Kj(e,t,n,a){return hu(),t.flags|=256,_n(e,t,n,a),t.child}var G_={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function W_(e){return{baseLanes:e,cachePool:AE()}}function X_(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=or),e}function kA(e,t,n){var a=t.pendingProps,r=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(Xn.current&2)!==0),s&&(r=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(We){if(r?Ii(t):ji(),(e=At)?(e=S2(e,Lr),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mi!==null?{id:jo,overflow:To}:null,retryLane:536870912,hydrationErrors:null},n=IE(e),n.return=t,t.child=n,Dn=t,At=null)):e=null,e===null)throw Di(t);return bk(e)?t.lanes=32:t.lanes=536870912,null}return o=a.children,a=a.fallback,r?(ji(),r=t.mode,o=ky({mode:"hidden",children:o},r),a=fu(a,r,n,null),o.return=t,a.return=t,o.sibling=a,t.child=o,a=t.child,a.memoizedState=W_(n),a.childLanes=X_(e,s,n),t.memoizedState=G_,Xm(null,a)):(Ii(t),rk(t,o))}var i=e.memoizedState;if(i!==null){var l=i.dehydrated;if(l!==null)return NG(e,t,o,s,a,l,i,n)}return r?(ji(),r=a.fallback,o=t.mode,i=e.child,l=i.sibling,a=hs(i,{mode:"hidden",children:a.children}),a.subtreeFlags=i.subtreeFlags&1206910976,l!==null?r=hs(l,r):(r=fu(r,o,n,null),r.flags|=2),r.return=t,a.return=t,a.sibling=r,t.child=a,Xm(null,a),a=t.child,r=e.child.memoizedState,r===null?r=W_(n):(o=r.cachePool,o!==null?(i=gn._currentValue,o=o.parent!==i?{parent:i,pool:i}:o):o=AE(),r={baseLanes:r.baseLanes|n,cachePool:o}),a.memoizedState=r,a.childLanes=X_(e,s,n),t.memoizedState=G_,Xm(e.child,a)):(Ii(t),n=e.child,e=n.sibling,n=hs(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function rk(e,t){return t=ky({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ky(e,t){return e=Oa(22,e,null,t),e.lanes=0,e}function lb(e,t,n){return vu(t,e.child,null,n),e=rk(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function NG(e,t,n,a,r,o,s,i){if(n)return t.flags&256?(Ii(t),t.flags&=-257,lb(e,t,i)):t.memoizedState!==null?(ji(),t.child=e.child,t.flags|=128,null):(ji(),o=r.fallback,s=t.mode,r=ky({mode:"visible",children:r.children},s),o=fu(o,s,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,vu(t,e.child,null,i),r=t.child,r.memoizedState=W_(i),r.childLanes=X_(e,a,i),t.memoizedState=G_,Xm(null,r));if(Ii(t),bk(o)){if(a=o.nextSibling&&o.nextSibling.dataset,a)var l=a.dgst;return a=l,a!==""&&(r=Error(K(419)),r.stack="",r.digest=a,rp({value:r,source:null,stack:null})),lb(e,t,i)}if(hn||bu(e,t,i,!1),a=(i&e.childLanes)!==0,hn||a){if(Ni.current!==null)return lb(e,t,i);if(a=kt,a!==null&&(r=eE(a,i),r!==0&&r!==s.retryLane))throw s.retryLane=r,Lu(e,r),Ba(a,e,r),ak;return xS(o)||iy(),lb(e,t,i)}return xS(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,At=Rr(o.nextSibling),Dn=t,We=!0,$i=null,Lr=!1,e!==null&&TE(t,e),t=rk(t,r.children),t.flags|=134221824,t)}function Qj(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),_b(e.return,t,n)}function Jj(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Yb(n)===null&&(t=e),e=e.sibling}return t}function ub(e,t,n,a,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r,treeForkCount:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=n,s.tailMode=r,s.treeForkCount=o)}function e_(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function Y_(e,t,n){var a=t.pendingProps,r=a.revealOrder,o=a.tail;a=a.children;var s=Xn.current;if(t.flags&128)return sp(t,s),null;var i=(s&2)!==0;if(i?(s=s&1|2,t.flags|=128):s&=1,sp(t,s),r==="backwards"&&e!==null?(e_(e),_n(e,t,a,n),e_(e)):_n(e,t,a,n),a=We?ap:0,!i&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qj(e,n,t);else if(e.tag===19)Qj(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"backwards":n=Jj(t.child),n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null,e_(t)),ub(t,!0,r,null,o,a);break;case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Yb(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ub(t,!0,n,null,o,a);break;case"together":ub(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:n=Jj(t.child),n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ub(t,!1,r,n,o,a)}return t.child}function eT(e,t,n){var a=t.pendingProps;return Ci(t,t.type,a.value),_n(e,t,a.children,n),t.child}function ws(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(bu(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,n=hs(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=hs(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ok(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Gb(e)))}function OG(e,t,n){switch(t.tag){case 3:Ob(t,t.stateNode.containerInfo),Ci(t,gn,e.memoizedState.cache),hu();break;case 27:case 5:w_(t);break;case 4:Ob(t,t.stateNode.containerInfo);break;case 10:Ci(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,B_(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return Ii(t),t.flags|=128,null;a=bu(e,t,n,!1);var r=t.child.childLanes;return a||(n&r)!==0?kA(e,t,n):(Ii(t),e=ws(e,t,n),e!==null?e.sibling:null)}Ii(t);break;case 19:if(t.flags&128)return Y_(e,t,n);if(r=(e.flags&128)!==0,a=(n&t.childLanes)!==0,a||(bu(e,t,n,!1),a=(n&t.childLanes)!==0),r){if(a)return Y_(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),sp(t,Xn.current),a)break;return null;case 22:return t.lanes=0,SA(e,t,n,t.pendingProps);case 24:Ci(t,gn,e.memoizedState.cache)}return ws(e,t,n)}function $A(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)hn=!0;else{if(!ok(e,n)&&(t.flags&128)===0)return hn=!1,OG(e,t,n);hn=(e.flags&131072)!==0}else hn=!1,We&&(t.flags&1048576)!==0&&jE(t,ap,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=iu(t.elementType),t.type=e,typeof e=="function")NS(e)?(a=wu(e,a),t.tag=1,t=Zj(null,t,e,a,n)):(t.tag=0,t=U_(null,t,e,a,n));else{if(e!=null){var r=e.$$typeof;if(r===SS){t.tag=11,t=Uj(null,t,e,a,n);break e}else if(r===kS){t.tag=14,t=Gj(null,t,e,a,n);break e}else if(r===Ro){t.tag=10,t.type=e,t=eT(null,t,n);break e}}throw t=v_(e)||e,Error(K(306,t,""))}}return t;case 0:return U_(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,r=wu(a,t.pendingProps),Zj(e,t,a,r,n);case 3:e:{if(Ob(t,t.stateNode.containerInfo),e===null)throw Error(K(387));a=t.pendingProps;var o=t.memoizedState;r=o.element,D_(e,t),Gm(t,a,null,n);var s=t.memoizedState;if(a=s.cache,Ci(t,gn,a),a!==o.cache&&P_(t,[gn],n,!0),Um(),a=s.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Kj(e,t,a,n);break e}else if(a!==r){r=$r(Error(K(424)),t),rp(r),t=Kj(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(At=Rr(e.firstChild),Dn=t,We=!0,$i=null,Lr=!0,n=DE(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(hu(),a===r){t=ws(e,t,n);break e}_n(e,t,a,n)}t=t.child}return t;case 26:return ed(e,t),e===null?(n=LT(t.type,null,t.pendingProps,null))?t.memoizedState=n:We||(t.stateNode=g2(t.type,t.pendingProps,ki.current,t)):t.memoizedState=LT(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return w_(t),e===null&&We&&(a=t.stateNode=k2(t.type,t.pendingProps,ki.current),Dn=t,Lr=!0,r=At,Vi(t.type)?(vS=r,At=Rr(a.firstChild)):At=r),_n(e,t,t.pendingProps.children,n),ed(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&We&&((r=a=At)&&(a=j6(a,t.type,t.pendingProps,Lr),a!==null?(t.stateNode=a,Dn=t,At=Rr(a.firstChild),Lr=!1,r=!0):r=!1),r||Di(t)),w_(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,a=o.children,hS(r,o)?a=null:s!==null&&hS(r,s)&&(t.flags|=32),t.memoizedState!==null&&(r=GS(e,t,LG,null,null,n),Md._currentValue=r),ed(e,t),_n(e,t,a,n),t.child;case 6:return e===null&&We&&((e=n=At)&&(n=T6(n,t.pendingProps,Lr),n!==null?(t.stateNode=n,Dn=t,At=null,e=!0):e=!1),e||Di(t)),null;case 13:return kA(e,t,n);case 4:return Ob(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=vu(t,null,a,n):_n(e,t,a,n),t.child;case 11:return Uj(e,t,t.type,t.pendingProps,n);case 7:return a=t.pendingProps,ed(e,t),_n(e,t,a,n),t.child;case 8:return _n(e,t,t.pendingProps.children,n),t.child;case 12:return _n(e,t,t.pendingProps.children,n),t.child;case 10:return eT(e,t,n);case 9:return r=t.type._context,a=t.pendingProps.children,yu(t),r=Gn(r),a=a(r),t.flags|=1,_n(e,t,a,n),t.child;case 14:return Gj(e,t,t.type,t.pendingProps,n);case 15:return _A(e,t,t.type,t.pendingProps,n);case 19:return Y_(e,t,n);case 31:return DG(e,t,n);case 22:return SA(e,t,n,t.pendingProps);case 24:return yu(t),a=Gn(gn),e===null?(r=FS(),r===null&&(r=kt,o=BS(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),t.memoizedState={parent:a,cache:r},zS(t),Ci(t,gn,r)):((e.lanes&n)!==0&&(D_(e,t),Gm(t,null,null,n),Um()),r=e.memoizedState,o=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Ci(t,gn,a)):(a=o.cache,Ci(t,gn,a),a!==r.cache&&P_(t,[gn],n,!0))),_n(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:We&&xy(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:ed(e,t),_n(e,t,a.children,n),t.child;case 29:throw t.pendingProps}throw Error(K(156,t.tag))}function ms(e){e.flags|=4}function t_(e,t,n,a,r){var o;if((o=(e.mode&32)!==0)&&(o=n===null?jT(t,a):jT(t,a)&&(a.src!==n.src||a.srcSet!==n.srcSet)),o){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(t2())e.flags|=8192;else throw pu=Wb,VS}else e.flags&=-16777217}function tT(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!I2(t))if(t2())e.flags|=8192;else throw pu=Wb,VS}function cb(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?KT():536870912,e.lanes|=t,Id|=t)}function Tm(e,t){if(!We)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&1206910976,a|=r.flags&1206910976,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function BG(e,t,n){var a=t.pendingProps;switch(OS(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(t),null;case 1:return Et(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),bs(gn),kd(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Qc(t)?ms(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zw())),Et(t),null;case 26:var r=t.type,o=t.memoizedState;return e===null?(ms(t),o!==null?(Et(t),tT(t,o)):(Et(t),t_(t,r,null,a,n))):o?o!==e.memoizedState?(ms(t),Et(t),tT(t,o)):(Et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ms(t),Et(t),t_(t,r,e,a,n)),null;case 27:if(Bb(t),n=ki.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ms(t);else{if(!a){if(t.stateNode===null)throw Error(K(166));return Et(t),t.subtreeFlags&=-33554433,null}e=Eo.current,Qc(t)?Rj(t,e):(e=k2(r,a,n),t.stateNode=e,ms(t))}return Et(t),t.subtreeFlags&=-33554433,null;case 5:if(Bb(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ms(t);else{if(!a){if(t.stateNode===null)throw Error(K(166));return Et(t),t.subtreeFlags&=-33554433,null}if(o=Eo.current,Qc(t))Rj(t,o);else{var s=cp(ki.current);switch(o){case 1:o=s.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=s.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=s.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=s.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=s.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?s.createElement(r,{is:a.is}):s.createElement(r)}}o[Un]=t,o[Va]=a;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;e:switch(Yn(o,r,a),r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ms(t)}}return Et(t),t.subtreeFlags&=-33554433,t_(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ms(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(K(166));if(e=ki.current,Qc(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,r=Dn,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[Un]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||m2(e.nodeValue,n)),e||Di(t,!0)}else e=cp(e).createTextNode(a),e[Un]=t,t.stateNode=e}return Et(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Qc(t),n!==null){if(e===null){if(!a)throw Error(K(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(557));e[Un]=t}else hu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Et(t),e=!1}else n=Zw(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ar(t),t):(ar(t),null);if((t.flags&128)!==0)throw Error(K(558))}return Et(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Qc(t),a!==null&&a.dehydrated!==null){if(e===null){if(!r)throw Error(K(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(K(317));r[Un]=t}else hu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Et(t),r=!1}else r=Zw(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(ar(t),t):(ar(t),null)}return ar(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==r&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cb(t,t.updateQueue),Et(t),null);case 4:return kd(),e===null&&pk(t.stateNode.containerInfo),t.flags|=67108864,Et(t),null;case 10:return bs(t.type),Et(t),null;case 19:if(HS(t),a=t.memoizedState,a===null)return Et(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)Tm(a,!1);else{if(Qt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Yb(e),o!==null){for(t.flags|=128,Tm(a,!1),e=o.updateQueue,t.updateQueue=e,cb(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)RE(n,e),n=n.sibling;return sp(t,Xn.current&1|2),We&&ps(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&sr()>oy&&(t.flags|=128,r=!0,Tm(a,!1),t.lanes=4194304)}else{if(!r)if(e=Yb(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,cb(t,e),Tm(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!o.alternate&&!We)return Et(t),null}else 2*sr()-a.renderingStartTime>oy&&n!==536870912&&(t.flags|=128,r=!0,Tm(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}if(a.tail!==null){e=a.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=sr(),e.sibling=null,o=Xn.current,o=r?o&1|2:o&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!n||We?sp(t,o):(n=o,Pt(Zn,t),Pt(Xn,n),sa===null&&(sa=t)),We&&ps(t,a.treeForkCount),e}return Et(t),null;case 22:case 23:return ar(t),qS(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),n=t.updateQueue,n!==null&&cb(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&Wn(mu),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),bs(gn),Et(t),null;case 25:return null;case 30:return t.flags|=33554432,Et(t),null}throw Error(K(156,t.tag))}function FG(e,t){switch(OS(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bs(gn),kd(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Bb(t),null;case 31:if(t.memoizedState!==null){if(ar(t),t.alternate===null)throw Error(K(340));hu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ar(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));hu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return HS(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return kd(),null;case 10:return bs(t.type),null;case 22:case 23:return ar(t),qS(),e!==null&&Wn(mu),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return bs(gn),null;case 25:return null;default:return null}}function LA(e,t){switch(OS(t),t.tag){case 3:bs(gn),kd();break;case 26:case 27:case 5:Bb(t);break;case 4:kd();break;case 31:t.memoizedState!==null&&ar(t);break;case 13:ar(t);break;case 19:HS(t);break;case 10:bs(t.type);break;case 22:case 23:ar(t),qS(),e!==null&&Wn(mu);break;case 24:bs(gn)}}function _p(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var o=n.create,s=n.inst;a=o(),s.destroy=a}n=n.next}while(n!==r)}}catch(i){yt(t,t.return,i)}}function Oi(e,t,n){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var o=r.next;a=o;do{if((a.tag&e)===e){var s=a.inst,i=s.destroy;if(i!==void 0){s.destroy=void 0,r=t;var l=n,u=i;try{u()}catch(c){yt(r,l,c)}}}a=a.next}while(a!==o)}}catch(c){yt(t,t.return,c)}}function RA(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{OE(t,n)}catch(a){yt(e,e.return,a)}}}function IA(e,t,n){n.props=wu(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){yt(e,t,a)}}function $o(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var r=e.stateNode,o=xs(e.memoizedProps,r);(r.ref===null||r.ref.name!==o)&&(r.ref=x2(o)),a=r.ref;break;case 7:if(e.stateNode===null){var s=new dr(e);Fa(e.child,!1,R6,s,void 0,void 0),e.stateNode=s}a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(i){yt(e,t,i)}}function Hn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(r){yt(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){yt(e,t,r)}else n.current=null}function ey(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)_2(e.stateNode,t[n])}function nT(e){for(var t=e.return;t!==null&&(ik(t)&&_2(e.stateNode,t.stateNode),!sk(t));)t=t.return}function Ym(e){for(var t=e.return;t!==null&&(ik(t)&&I6(e.stateNode,t.stateNode),!sk(t));)t=t.return}function sk(e){return e.tag===5||e.tag===3||e.tag===27}function ik(e){return e&&e.tag===7&&e.stateNode!==null}function Z_(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){yt(e,e.return,r)}}function n_(e,t,n){try{var a=e.stateNode;c6(a,e.type,n,t),a[Va]=t}catch(r){yt(e,e.return,r)}}function jA(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Vi(e.type)||e.tag===4}function a_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jA(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Vi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function K_(e,t,n,a){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(r,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(r),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Io)),ey(e,a),ot=!0;else if(r!==4&&(r===27&&(ey(e,a),a=null,Vi(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(K_(e,t,n,a),e=e.sibling;e!==null;)K_(e,t,n,a),e=e.sibling}function ty(e,t,n,a){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?n.insertBefore(r,t):n.appendChild(r),ey(e,a),ot=!0;else if(r!==4&&(r===27&&(ey(e,a),a=null,Vi(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(ty(e,t,n,a),e=e.sibling;e!==null;)ty(e,t,n,a),e=e.sibling}function TA(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Yn(t,a,n),t[Un]=e,t[Va]=n}catch(o){yt(e,e.return,o)}}var ny=!1,rr=null;function aT(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(ny=!0)}var Lo=null;function rT(){var e=Lo;return Lo=null,e}var Na=0;function Vd(e,t,n,a,r){return Na=0,EA(e.child,t,n,a,r)}function EA(e,t,n,a,r){for(var o=!1;e!==null;){if(e.tag===5){var s=e.stateNode;if(a!==null){var i=bS(s);a.push(i),i.view&&(o=!0)}else o||bS(s).view&&(o=!0);ny=!0,h2(s,Na===0?t:t+"_"+Na,n),Na++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&r||EA(e.child,t,n,a,r)&&(o=!0));e=e.sibling}return o}function Po(e,t){for(;e!==null;)e.tag===5?b2(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Po(e.child,t)),e=e.sibling}function Rb(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Rb(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(K(544));var n=t.name;t=ks(t.default,t.share),t!=="none"&&(Vd(e,n,t,null,!1)||Po(e.child,!1))}e=e.sibling}}function Q_(e,t){if(e.tag===30){var n=e.stateNode,a=e.memoizedProps,r=xs(a,n),o=ks(a.default,n.paired?a.share:a.enter);o!=="none"?Vd(e,r,o,null,!1)?(Rb(e),n.paired||t||jd(e,a.onEnter)):Po(e.child,!1):Rb(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Q_(e,t),e=e.sibling;else Rb(e)}function J_(e){if(rr!==null&&rr.size!==0){var t=rr;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,a=n.name;if(a!=null&&a!=="auto"){var r=t.get(a);if(r!==void 0){var o=ks(n.default,n.share);if(o!=="none"&&(Vd(e,a,o,null,!1)?(o=e.stateNode,r.paired=o,o.paired=r,jd(e,n.onShare)):Po(e.child,!1)),t.delete(a),t.size===0)break}}}J_(e)}e=e.sibling}}}function eS(e){if(e.tag===30){var t=e.memoizedProps,n=xs(t,e.stateNode),a=rr!==null?rr.get(n):void 0,r=ks(t.default,a!==void 0?t.share:t.exit);r!=="none"&&(Vd(e,n,r,null,!1)?a!==void 0?(r=e.stateNode,a.paired=r,r.paired=a,rr.delete(n),jd(e,t.onShare)):jd(e,t.onExit):Po(e.child,!1)),rr!==null&&J_(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)eS(e),e=e.sibling;else rr!==null&&J_(e)}function AA(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=xs(t,e.stateNode);t=ks(t.default,t.update),e.flags&=-5,t!=="none"&&Vd(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&AA(e);e=e.sibling}}function tS(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,Po(e.child,!1))}tS(e)}e=e.sibling}}function Ib(e){if(e.tag===30)e.stateNode.paired=null,Po(e.child,!1),tS(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Ib(e),e=e.sibling;else tS(e)}function PA(e){for(e=e.child;e!==null;)e.tag===30?Po(e.child,!1):(e.subtreeFlags&33554432)!==0&&PA(e),e=e.sibling}function lk(e,t,n,a,r,o,s){for(var i=!1;t!==null;){if(t.tag===5){var l=t.stateNode;if(o!==null&&Na<o.length){var u=o[Na],c=bS(l);(u.view||c.view)&&(i=!0);var d;if(d=(e.flags&4)===0)if(c.clip)d=!0;else{d=u.rect;var f=c.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}d&&(e.flags|=4),c.abs?c=!u.abs:(u=u.rect,c=c.rect,c=u.height!==c.height||u.width!==c.width),c&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&h2(l,Na===0?n:n+"_"+Na,r),i&&(e.flags&4)!==0||(Lo===null&&(Lo=[]),Lo.push(l,Na===0?a:a+"_"+Na,t.memoizedProps)),Na++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&s?e.flags|=t.flags&32:lk(e,t.child,n,a,r,o,s)&&(i=!0));t=t.sibling}return i}function MA(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,a=e.stateNode,r=xs(n,a),o=ks(n.default,n.update);if(t){a=a.clones;var s=a===null?null:a.map(h6)}else s=e.memoizedState,e.memoizedState=null;a=e;var i=e.child;Na=0,r=lk(a,i,r,r,o,s,!1),(e.flags&4)!==0&&r&&(t||jd(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&MA(e,t);e=e.sibling}}var An=!1,ft=!1,_o=!1,r_=!1,oT=typeof WeakSet=="function"?WeakSet:Set,Pn=null,So=!1,Bm=!1,ay=!1,nS=!1;function VG(e,t,n){if(e=e.containerInfo,pS=Dd,e=vE(e),PS(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var i=0,l=-1,u=-1,c=0,d=0,f=e,m=null;t:for(;;){for(var p;f!==a||o!==0&&f.nodeType!==3||(l=i+o),f!==s||r!==0&&f.nodeType!==3||(u=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(p=f.firstChild)!==null;)m=f,f=p;for(;;){if(f===e)break t;if(m===a&&++c===o&&(l=i),m===s&&++d===r&&(u=i),(p=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=p}a=l===-1||u===-1?null:{start:l,end:u}}else a=null}a=a||{start:0,end:0}}else a=null;for(gS={focusedElem:e,selectionRange:a},Dd=!1,n=(n&335544064)===n,Pn=t,t=n?9270:1024;Pn!==null;){if(e=Pn,n&&(a=e.deletions,a!==null))for(o=0;o<a.length;o++)n&&eS(a[o]);if(e.alternate===null&&(e.flags&2)!==0)n&&aT(e),db(n);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&n&&eS(a),db(n);continue}else if(a!==null&&a.memoizedState!==null){n&&aT(e),db(n);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,Pn=a):(n&&AA(e),db(n))}}rr=null}function db(e){for(;Pn!==null;){var t=Pn,n=e,a=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((r&1024)!==0&&a!==null){n=void 0,r=a.memoizedProps,a=a.memoizedState;var o=t.stateNode;try{var s=wu(t.type,r);n=o.getSnapshotBeforeUpdate(s,a),o.__reactInternalSnapshotBeforeUpdate=n}catch(i){yt(t,t.return,i)}}break;case 3:if((r&1024)!==0){if(a=t.stateNode.containerInfo,n=a.nodeType,n===9)yS(a);else if(n===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":yS(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&a!==null&&(n=xs(a.memoizedProps,a.stateNode),r=t.memoizedProps,r=ks(r.default,r.update),r!=="none"&&Vd(a,n,r,a.memoizedState=[],!0));break;default:if((r&1024)!==0)throw Error(K(163))}if(a=t.sibling,a!==null){a.return=t.return,Pn=a;break}Pn=t.return}}function DA(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:ko(e,n),a&4&&_p(5,n);break;case 1:if(ko(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){yt(n,n.return,s)}else{var r=wu(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){yt(n,n.return,s)}}a&64&&RA(n),a&512&&$o(n,n.return);break;case 3:if(ko(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{OE(e,t)}catch(s){yt(n,n.return,s)}}break;case 27:t===null&&a&4&&TA(n);case 26:case 5:ko(e,n),t===null&&a&4&&Z_(n),a&512&&$o(n,n.return);break;case 12:ko(e,n);break;case 31:ko(e,n),a&4&&FA(e,n);break;case 13:ko(e,n),a&4&&VA(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=JG.bind(null,n),E6(e,n))));break;case 22:if(a=n.memoizedState!==null||An,!a){var o=t!==null&&t.memoizedState!==null||ft;t=An,r=ft,An=a,(ft=o)&&!r?(a=2,(n.subtreeFlags&8772)!==0&&(a|=1),eo(e,n,a)):ko(e,n),An=t,ft=r}break;case 30:ko(e,n),a&512&&$o(n,n.return);break;case 7:a&512&&$o(n,n.return);default:ko(e,n)}}function aS(e,t){for(e=e.child;e!==null;)NA(e,t),e=e.sibling}function NA(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var r=e.stateNode,o=e.memoizedProps.style,s=o!=null&&o.hasOwnProperty("display")?o.display:null;r.style.display=s==null||typeof s=="boolean"?"":(""+s).trim()}}catch(l){yt(e,e.return,l)}rS(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ot=!0}catch(l){yt(e,e.return,l)}break;case 18:try{var i=e.stateNode;t?CT(i,!0):CT(e.stateNode,!1)}catch(l){yt(e,e.return,l)}break;case 22:case 23:e.memoizedState===null&&aS(e,t);break;default:aS(e,t)}}function rS(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,a=t;switch(n.tag){case 4:NA(n,a);break e;case 22:n.memoizedState===null&&rS(n,a);break e;default:rS(n,a)}}e=e.sibling}}function OA(e){var t=e.alternate;t!==null&&(e.alternate=null,OA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&my(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var qt=null,Ma=!1;function Jr(e,t,n){for(n=n.child;n!==null;)BA(e,t,n),n=n.sibling}function BA(e,t,n){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(hp,n)}catch{}switch(n.tag){case 26:ft||Hn(n,t),Jr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ft&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ft||Hn(n,t),Ym(n);var a=qt,r=Ma;Vi(n.type)&&(qt=n.stateNode,Ma=!1),Jr(e,t,n),$2(n.stateNode,n.type,n.memoizedProps),qt=a,Ma=r;break;case 5:ft||Hn(n,t),Ym(n);case 6:if(n.tag===6&&Ym(n),a=qt,r=Ma,qt=null,Jr(e,t,n),qt=a,Ma=r,qt!==null)if(Ma)try{(qt.nodeType===9?qt.body:qt.nodeName==="HTML"?qt.ownerDocument.body:qt).removeChild(n.stateNode),ot=!0}catch(o){yt(n,t,o)}else try{qt.removeChild(n.stateNode),ot=!0}catch(o){yt(n,t,o)}break;case 18:qt!==null&&(Ma?(e=qt,vT(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Nd(e)):vT(qt,n.stateNode));break;case 4:a=qt,r=Ma,qt=n.stateNode.containerInfo,Ma=!0,Jr(e,t,n),qt=a,Ma=r;break;case 0:case 11:case 14:case 15:Oi(2,n,t),ft||Oi(4,n,t),Jr(e,t,n);break;case 1:ft||(Hn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&IA(n,t,a)),Jr(e,t,n);break;case 21:Jr(e,t,n);break;case 22:ft=(a=ft)||n.memoizedState!==null,Jr(e,t,n),ft=a;break;case 30:Hn(n,t),Jr(e,t,n);break;case 7:ft||Hn(n,t),Jr(e,t,n);break;default:Jr(e,t,n)}}function FA(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Nd(e)}catch(n){yt(t,t.return,n)}}}function VA(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Nd(e)}catch(n){yt(t,t.return,n)}}function zG(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new oT),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new oT),t;default:throw Error(K(435,e.tag))}}function fb(e,t){var n=zG(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var r=e6.bind(null,e,a);a.then(r,r)}})}function va(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r],s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 27:if(Vi(l.type)){qt=l.stateNode,Ma=!1;break e}break;case 5:qt=l.stateNode,Ma=!1;break e;case 3:case 4:qt=l.stateNode.containerInfo,Ma=!0;break e}l=l.return}if(qt===null)throw Error(K(160));BA(s,i,o),qt=null,Ma=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)zA(t,e,n),t=t.sibling}var to=null;function zA(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(r&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var o=0;o<a.length;o++){var s=a[o];s.ref.impl=s.nextImpl}va(t,e,n),Ca(e),r&4&&(Oi(3,e,e.return),_p(3,e),Oi(5,e,e.return));break;case 1:va(t,e,n),Ca(e),r&512&&(ft||a===null||Hn(a,a.return)),r&64&&An&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=to,va(t,e,n),Ca(e),r&512&&(ft||a===null||Hn(a,a.return)),r&4)if(r=a!==null?a.memoizedState:null,n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null)if(An)e.stateNode=g2(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,r=o.ownerDocument||o;t:switch(t){case"title":a=r.getElementsByTagName("title")[0],(!a||a[xp]||a[Un]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=r.createElement(t),r.head.insertBefore(a,r.querySelector("head > title"))),Yn(a,t,n),a[Un]=e,Mn(a),t=a;break e;case"link":if(o=IT("link","href",r).get(t+(n.href||""))){for(s=0;s<o.length;s++)if(a=o[s],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break t}}a=r.createElement(t),Yn(a,t,n),r.head.appendChild(a);break;case"meta":if(o=IT("meta","content",r).get(t+(n.content||""))){for(s=0;s<o.length;s++)if(a=o[s],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(s,1);break t}}a=r.createElement(t),Yn(a,t,n),r.head.appendChild(a);break;default:throw Error(K(468,t))}a[Un]=e,Mn(a),t=a}e.stateNode=t}else An||CS(o,e.type,e.stateNode);else e.stateNode=RT(o,n,e.memoizedProps);else r!==n?(r===null?(t=a.stateNode,t===null||ft||t.parentNode.removeChild(t)):r.count--,n===null?An||CS(o,e.type,e.stateNode):RT(o,n,e.memoizedProps)):n===null&&e.stateNode!==null&&n_(e,e.memoizedProps,a.memoizedProps);break;case 27:va(t,e,n),Ca(e),r&512&&(ft||a===null||Hn(a,a.return)),a!==null&&r&4&&n_(e,e.memoizedProps,a.memoizedProps);break;case 5:if(o=_o,_o=!1,va(t,e,n),_o=o,Ca(e),r&512&&(ft||a===null||Hn(a,a.return)),e.flags&32){t=e.stateNode;try{Ld(t,""),ot=!0}catch(c){yt(e,e.return,c)}}r&4&&e.stateNode!=null&&(t=e.memoizedProps,n_(e,t,a!==null?a.memoizedProps:t)),r&1024&&(r_=!0);break;case 6:if(va(t,e,n),Ca(e),r&4){if(e.stateNode===null)throw Error(K(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,ot=!0}catch(c){yt(e,e.return,c)}}break;case 3:if(ot=!1,Ab=null,o=to,to=dp(t.containerInfo),va(t,e,n),to=o,Ca(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Nd(t.containerInfo)}catch(c){yt(e,e.return,c)}r_&&(r_=!1,qA(e)),ot=!1;break;case 4:r=_o,_o=An,a=dj(),o=to,to=dp(e.stateNode.containerInfo),va(t,e,n),Ca(e),to=o,ot&&Bm&&(ay=!0),ot=a,_o=r;break;case 12:va(t,e,n),Ca(e);break;case 31:va(t,e,n),Ca(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,fb(e,t)));break;case 13:va(t,e,n),Ca(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&($y=sr()),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,fb(e,t)));break;case 22:o=e.memoizedState!==null,s=a!==null&&a.memoizedState!==null;var i=An,l=ft,u=_o;An=i||o,_o=u||o,ft=l||s,va(t,e,n),ft=l,_o=u,An=i,Ca(e),r&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||a===null||s||An||ft||(t=s||ft,n=An,a=ft,An=o||An,ft=t,gi(e,2),An=n,ft=a),!o&&_o||aS(e,o)),r&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,fb(e,n))));break;case 19:va(t,e,n),Ca(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,fb(e,t)));break;case 30:r&512&&(ft||a===null||Hn(a,a.return)),r=dj(),o=Bm,s=(n&335544064)===n,i=e.memoizedProps,Bm=s&&ks(i.default,i.update)!=="none",va(t,e,n),Ca(e),s&&a!==null&&ot&&(e.flags|=4),Bm=o,ot=r;break;case 21:break;case 7:r&512&&(ft||a===null||Hn(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:va(t,e,n),Ca(e)}}function Ca(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(jA(a)){n=a;break}a=a.return}a=null;for(var r=e.return;r!==null;){if(ik(r)){var o=r.stateNode;a===null?a=[o]:a.push(o)}if(sk(r))break;r=r.return}var s=a;if(n==null)throw Error(K(160));switch(n.tag){case 27:var i=n.stateNode,l=a_(e);ty(e,l,i,s);break;case 5:var u=n.stateNode;n.flags&32&&(Ld(u,""),n.flags&=-33);var c=a_(e);ty(e,c,u,s);break;case 3:case 4:var d=n.stateNode.containerInfo,f=a_(e);K_(e,f,d,s);break;default:throw Error(K(161))}}catch(m){yt(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qA(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qA(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Dd=!0,t.reset(),Dd=!1),e=e.sibling}}function Jc(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)HA(t,e),t=t.sibling;else MA(t,!1)}function HA(e,t){var n=e.alternate;if(n===null)Q_(e,!1);else switch(e.tag){case 3:if(nS=So=!1,rT(),Jc(t,e),!So&&!ay){if(e=Lo,e!==null)for(var a=0;a<e.length;a+=3){n=e[a];var r=e[a+1];b2(n,e[a+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+r+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),nS=!0}Lo=null;break;case 5:Jc(t,e);break;case 4:a=So,So=!1,Jc(t,e),So&&(ay=!0),So=a;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?Q_(e,!1):Jc(t,e));break;case 30:a=So,r=rT(),So=!1,Jc(t,e),So&&(e.flags|=4);var o=e.memoizedProps,s=e.stateNode;t=xs(o,s),s=xs(n.memoizedProps,s);var i=ks(o.default,o.update);i==="none"?t=!1:(o=n.memoizedState,n.memoizedState=null,n=e.child,Na=0,t=lk(e,n,t,s,i,o,!0),Na!==(o===null?0:o.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(jd(e,e.memoizedProps.onUpdate),Lo=r):r!==null&&(r.push.apply(r,Lo),Lo=r),So=(e.flags&32)!==0?!0:a;break;default:Jc(t,e)}}function ko(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)DA(e,t.alternate,t),t=t.sibling}function gi(e,t){for(e=e.child;e!==null;){var n=e,a=t;switch(n.tag){case 0:case 11:case 14:case 15:Oi(4,n,n.return),gi(n,a);break;case 1:Hn(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&IA(n,n.return,r),gi(n,a);break;case 27:(a&2)!==0&&$2(n.stateNode,n.type,n.memoizedProps);case 5:Hn(n,n.return),n.tag!==5&&n.tag!==27||Ym(n),gi(n,a);break;case 6:Ym(n);break;case 26:Hn(n,n.return),r=n.stateNode,n.memoizedState!==null||r===null||ft||r.parentNode.removeChild(r),gi(n,a);break;case 22:n.memoizedState===null&&gi(n,a);break;case 30:Hn(n,n.return),gi(n,a);break;case 7:Hn(n,n.return);default:gi(n,a)}e=e.sibling}}function eo(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var a=t.alternate,r=e,o=t,s=o.flags,i=(n&1)!==0;switch(o.tag){case 0:case 11:case 15:eo(r,o,n),_p(4,o);break;case 1:if(eo(r,o,n),a=o,r=a.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(c){yt(a,a.return,c)}if(a=o,r=a.updateQueue,r!==null){var l=a.stateNode;try{var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)NE(u[r],l)}catch(c){yt(a,a.return,c)}}i&&s&64&&RA(o),$o(o,o.return);break;case 27:(n&2)!==0&&TA(o);case 5:o.tag!==5&&o.tag!==27||nT(o),eo(r,o,n),i&&a===null&&s&4&&Z_(o),$o(o,o.return);break;case 6:nT(o);break;case 26:l=o.stateNode,o.memoizedState!==null||l===null||An||CS(dp(l.ownerDocument),o.type,l),eo(r,o,n),i&&a===null&&s&4&&Z_(o),$o(o,o.return);break;case 12:eo(r,o,n);break;case 31:eo(r,o,n),i&&s&4&&FA(r,o);break;case 13:eo(r,o,n),i&&s&4&&VA(r,o);break;case 22:o.memoizedState===null&&eo(r,o,n),$o(o,o.return);break;case 30:eo(r,o,n),$o(o,o.return);break;case 7:$o(o,o.return);default:eo(r,o,n)}t=t.sibling}}function uk(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Cp(n))}function ck(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cp(e))}function Cr(e,t,n,a){var r=(n&335544064)===n;if(t.subtreeFlags&(r?10262:10256))for(t=t.child;t!==null;)UA(e,t,n,a),t=t.sibling;else r&&PA(t)}function UA(e,t,n,a){var r=(n&335544064)===n;r&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Ib(t);var o=t.flags;switch(t.tag){case 0:case 11:case 15:Cr(e,t,n,a),o&2048&&_p(9,t);break;case 1:Cr(e,t,n,a);break;case 3:Cr(e,t,n,a),r&&nS&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),o&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Cp(o)));break;case 12:if(o&2048){Cr(e,t,n,a),o=t.stateNode;try{var s=t.memoizedProps,i=s.id,l=s.onPostCommit;typeof l=="function"&&l(i,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(u){yt(t,t.return,u)}}else Cr(e,t,n,a);break;case 31:Cr(e,t,n,a);break;case 13:Cr(e,t,n,a);break;case 23:break;case 22:s=t.stateNode,i=t.alternate,t.memoizedState!==null?(r&&i!==null&&i.memoizedState===null&&Ib(i),s._visibility&2?Cr(e,t,n,a):Zm(e,t)):(r&&i!==null&&i.memoizedState!==null&&Ib(t),s._visibility&2?Cr(e,t,n,a):(s._visibility|=2,td(e,t,n,a,(t.subtreeFlags&10256)!==0||!1))),o&2048&&uk(i,t);break;case 24:Cr(e,t,n,a),o&2048&&ck(t.alternate,t);break;case 30:r&&(o=t.alternate,o!==null&&(Po(o.child,!0),Po(t.child,!0))),Cr(e,t,n,a);break;default:Cr(e,t,n,a)}}function td(e,t,n,a,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,s=t,i=n,l=a,u=s.flags;switch(s.tag){case 0:case 11:case 15:td(o,s,i,l,r),_p(8,s);break;case 23:break;case 22:var c=s.stateNode;s.memoizedState!==null?c._visibility&2?td(o,s,i,l,r):Zm(o,s):(c._visibility|=2,td(o,s,i,l,r)),r&&u&2048&&uk(s.alternate,s);break;case 24:td(o,s,i,l,r),r&&u&2048&&ck(s.alternate,s);break;default:td(o,s,i,l,r)}t=t.sibling}}function Zm(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,r=a.flags;switch(a.tag){case 22:Zm(n,a),r&2048&&uk(a.alternate,a);break;case 24:Zm(n,a),r&2048&&ck(a.alternate,a);break;default:Zm(n,a)}t=t.sibling}}var lu=8192;function ou(e,t,n){if(e.subtreeFlags&lu)for(e=e.child;e!==null;)GA(e,t,n),e=e.sibling}function GA(e,t,n){switch(e.tag){case 26:ou(e,t,n),e.flags&lu&&(e.memoizedState!==null?G6(n,to,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&TT(n,e)));break;case 5:ou(e,t,n),e.flags&lu&&(e=e.stateNode,(t&335544128)===t&&TT(n,e));break;case 3:case 4:var a=to;to=dp(e.stateNode.containerInfo),ou(e,t,n),to=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=lu,lu=16777216,ou(e,t,n),lu=a):ou(e,t,n));break;case 30:if((e.flags&lu)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var r=e.stateNode;r.paired=null,rr===null&&(rr=new Map),rr.set(a,r)}ou(e,t,n);break;default:ou(e,t,n)}}function WA(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Em(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Pn=a,YA(a,e)}WA(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)XA(e),e=e.sibling}function XA(e){switch(e.tag){case 0:case 11:case 15:Em(e),e.flags&2048&&Oi(9,e,e.return);break;case 3:Em(e);break;case 12:Em(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jb(e)):Em(e);break;default:Em(e)}}function jb(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Pn=a,YA(a,e)}WA(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Oi(8,t,t.return),jb(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,jb(t));break;default:jb(t)}e=e.sibling}}function YA(e,t){for(;Pn!==null;){var n=Pn;switch(n.tag){case 0:case 11:case 15:Oi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Cp(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Pn=a;else e:for(n=e;Pn!==null;){a=Pn;var r=a.sibling,o=a.return;if(OA(a),a===n){Pn=null;break e}if(r!==null){r.return=o,Pn=r;break e}Pn=o}}}var qG={getCacheForType:function(e){var t=Gn(gn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Gn(gn).controller.signal}},HG=typeof WeakMap=="function"?WeakMap:Map,lt=0,kt=null,Ze=null,Ke=0,ht=0,tr=null,wi=!1,zd=!1,dk=!1,_s=0,Qt=0,Bi=0,gu=0,ry=0,or=0,Id=0,Km=null,Da=null,oS=!1,$y=0,ZA=0,oy=1/0,sy=null,Ti=null,Wt=0,ao=null,_u=null,Ao=0,sS=0,iS=null,KA=null,wd=null,_d=null,Sd=null,Qm=0,Tb=null;function ur(){return(lt&2)!==0&&Ke!==0?Ke&-Ke:Ee.T!==null?mk():tE()}function QA(){if(or===0)if((Ke&536870912)===0||We){var e=Jh;Jh<<=1,(Jh&3932160)===0&&(Jh=262144),or=e}else or=536870912;return e=Zn.current,e!==null&&(e.flags|=32),or}function jd(e,t){if(t!=null){var n=e.stateNode,a=n.ref;a===null&&(a=n.ref=x2(xs(e.memoizedProps,n))),_d===null&&(_d=[]),_d.push(t.bind(null,a))}}function Ba(e,t,n){(e===kt&&(ht===2||ht===9)||e.cancelPendingCommit!==null)&&(Td(e,0),_i(e,Ke,or,!1)),yp(e,n),((lt&2)===0||e!==kt)&&(e===kt&&((lt&2)===0&&(gu|=n),Qt===4&&_i(e,Ke,or,!1)),Do(e))}function JA(e,t,n){if((lt&6)!==0)throw Error(K(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||bp(e,t),r=a?WG(e,t):o_(e,t,!0),o=a;do{if(r===0){zd&&!a&&_i(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!UG(n)){r=o_(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var i=e;r=Km;var l=i.current.memoizedState.isDehydrated;if(l&&(Td(i,s).flags|=256),s=o_(i,s,!1),s!==2&&s!==6){if(dk&&!l){i.errorRecoveryDisabledLanes|=o,gu|=o,r=4;break e}o=Da,Da=r,o!==null&&(Da===null?Da=o:Da.push.apply(Da,o))}r=s}if(o=!1,r!==2)continue}}if(r===1){Td(e,0),_i(e,t,0,!0);break}e:{switch(a=e,o=r,o){case 0:case 1:throw Error(K(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:_i(a,t,or,!wi);break e;case 2:Da=null;break;case 3:case 5:break;default:throw Error(K(329))}if((t&62914560)===t&&(r=$y+300-sr(),10<r)){if(_i(a,t,or,!wi),fy(a,0,!0)!==0)break e;Ao=t,a.timeoutHandle=gk(sT.bind(null,a,n,Da,sy,oS,t,or,gu,Id,wi,o,"Throttled",-0,0),r);break e}sT(a,n,Da,sy,oS,t,or,gu,Id,wi,o,null,-0,0)}}break}while(!0);Do(e)}function sT(e,t,n,a,r,o,s,i,l,u,c,d,f,m){e.timeoutHandle=-1;var p=t.subtreeFlags,h=(o&335544064)===o;if(d=null,(h||p&8192||(p&16785408)===16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Io},rr=null,GA(t,o,d),h&&(p=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(p.count++,p.waitingForViewTransition=!0,p=fp.bind(p),h.finished.then(p,p))),p=(o&62914560)===o?$y-sr():(o&4194048)===o?ZA-sr():0,p=W6(d,p),p!==null)){Ao=o,e.cancelPendingCommit=p(lT.bind(null,e,t,o,n,a,r,s,i,l,u,c,d,null,f,m)),_i(e,o,s,!u);return}lT(e,t,o,n,a,r,s,i,l,u,c,d)}function UG(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var r=n[a],o=r.getSnapshot;r=r.value;try{if(!cr(o(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _i(e,t,n,a){t=ZT(e,t),t&=~ry,t&=~gu,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var o=31-lr(r),s=1<<o;a[o]=-1,r&=~s}n!==0&&QT(e,n,t)}function Ly(){return(lt&6)===0?(Sp(0,!1),!1):!0}function fk(){if(Ze!==null){if(ht===0)var e=Ze.return;else e=Ze,gs=Ru=null,YS(e),xd=null,op=0,e=Ze;for(;e!==null;)LA(e.alternate,e),e=e.return;Ze=null}}function Td(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,m6(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ao=0,fk(),kt=e,Ze=n=hs(e.current,null),Ke=t,ht=0,tr=null,wi=!1,zd=bp(e,t),dk=!1,Id=or=ry=gu=Bi=Qt=0,Da=Km=null,oS=!1,_s=ZT(e,t),by(),n}function e2(e,t){Fe=null,Ee.H=Qb,t===Fd||t===vy?(t=Aj(),ht=3):t===VS?(t=Aj(),ht=4):ht=t===ak?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tr=t,Ze===null&&(Qt=1,Jb(e,$r(t,e.current)))}function t2(){var e=Zn.current;return e===null?!0:(Ke&4194048)===Ke?sa===null:(Ke&62914560)===Ke||(Ke&536870912)!==0?e===sa:!1}function n2(){var e=Ee.H;return Ee.H=Qb,e===null?Qb:e}function a2(){var e=Ee.A;return Ee.A=qG,e}function iy(){Qt=4,wi||(Ke&4194048)!==Ke&&Zn.current!==null||(zd=!0),(Bi&134217727)===0&&(gu&134217727)===0||kt===null||_i(kt,Ke,or,!1)}function o_(e,t,n){var a=lt;lt|=2;var r=n2(),o=a2();(kt!==e||Ke!==t)&&(sy=null,Td(e,t)),t=!1;var s=Qt;e:do try{if(ht!==0&&Ze!==null){var i=Ze,l=tr;switch(ht){case 8:fk(),s=6;break e;case 3:case 2:case 9:case 6:Zn.current===null&&(t=!0);var u=ht;if(ht=0,tr=null,pd(e,i,l,u),n&&zd){s=0;break e}break;default:u=ht,ht=0,tr=null,pd(e,i,l,u)}}GG(),s=Qt;break}catch(c){e2(e,c)}while(!0);return t&&e.shellSuspendCounter++,gs=Ru=null,lt=a,Ee.H=r,Ee.A=o,Ze===null&&(kt=null,Ke=0,by()),s}function GG(){for(;Ze!==null;)r2(Ze)}function WG(e,t){var n=lt;lt|=2;var a=n2(),r=a2();kt!==e||Ke!==t?(sy=null,oy=sr()+500,Td(e,t)):zd=bp(e,t);e:do try{if(ht!==0&&Ze!==null){t=Ze;var o=tr;t:switch(ht){case 1:ht=0,tr=null,pd(e,t,o,1);break;case 2:case 9:if(Ej(o)){ht=0,tr=null,iT(t);break}t=function(){ht!==2&&ht!==9||kt!==e||(ht=7),Do(e)},o.then(t,t);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:Ej(o)?(ht=0,tr=null,iT(t)):(ht=0,tr=null,pd(e,t,o,7));break;case 5:var s=null;switch(Ze.tag){case 26:s=Ze.memoizedState;case 5:case 27:var i=Ze;if(s?I2(s):i.stateNode.complete){ht=0,tr=null;var l=i.sibling;if(l!==null)Ze=l;else{var u=i.return;u!==null?(Ze=u,Ry(u)):Ze=null}break t}}ht=0,tr=null,pd(e,t,o,5);break;case 6:ht=0,tr=null,pd(e,t,o,6);break;case 8:fk(),Qt=6;break e;default:throw Error(K(462))}}XG();break}catch(c){e2(e,c)}while(!0);return gs=Ru=null,Ee.H=a,Ee.A=r,lt=n,Ze!==null?0:(kt=null,Ke=0,by(),Qt)}function XG(){for(;Ze!==null&&!dU();)r2(Ze)}function r2(e){var t=$A(e.alternate,e,_s);e.memoizedProps=e.pendingProps,t===null?Ry(e):Ze=t}function iT(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Yj(n,t,t.pendingProps,t.type,void 0,Ke);break;case 11:t=Yj(n,t,t.pendingProps,t.type.render,t.ref,Ke);break;case 5:YS(t);var a=t;a===Dn&&(We?(Ub(a),a.tag===5&&a.stateNode!=null&&(At=a.stateNode)):(Ub(a),We=!0));default:LA(n,t),t=Ze=RE(t,_s),t=$A(n,t,_s)}e.memoizedProps=e.pendingProps,t===null?Ry(e):Ze=t}function pd(e,t,n,a){gs=Ru=null,YS(t),xd=null,op=0;var r=t.return;try{if(MG(e,r,t,n,Ke)){Qt=1,Jb(e,$r(n,e.current)),Ze=null;return}}catch(o){if(r!==null)throw Ze=r,o;Qt=1,Jb(e,$r(n,e.current)),Ze=null;return}t.flags&32768?(We||a===1?e=!0:zd||(Ke&536870912)!==0?e=!1:(wi=e=!0,(a===2||a===9||a===3||a===6)&&(a=Zn.current,a!==null&&a.tag===13&&(a.flags|=16384))),o2(t,e)):Ry(t)}function Ry(e){var t=e;do{if((t.flags&32768)!==0){o2(t,wi);return}e=t.return;var n=BG(t.alternate,t,_s);if(n!==null){Ze=n;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);Qt===0&&(Qt=5)}function o2(e,t){do{var n=FG(e.alternate,e);if(n!==null){n.flags&=32767,Ze=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ze=e;return}Ze=e=n}while(e!==null);Qt=6,Ze=null}function lT(e,t,n,a,r,o,s,i,l,u,c,d){e.cancelPendingCommit=null;do Iy();while(Wt!==0);if((lt&6)!==0)throw Error(K(327));if(t!==null){if(t===e.current)throw Error(K(177));e===kt&&(Ze=kt=null,Ke=0),_u=t,ao=e,Ao=n,iS=r,KA=a,YG(e,t,n,s,i,l,d)}}function YG(e,t,n,a,r,o,s){var i=t.lanes|t.childLanes;if(sS=i,i|=MS,CU(e,n,i,a,r,o),_d=null,(n&335544064)===n?(Sd=_G(e),a=10262):(Sd=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,t6(Fb,function(){return dS(),null})):(e.callbackNode=null,e.callbackPriority=0),ny=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=Ee.T,Ee.T=null,r=ut.p,ut.p=2,o=lt,lt|=4;try{VG(e,t,n)}finally{lt=o,ut.p=r,Ee.T=a}}Wt=1,ny?wd=x6(s,e.containerInfo,Sd,lS,uS,KG,cS,dS,ZG,null,null):(lS(),uS(),cS())}function ZG(e){if(Wt!==0){var t=ao.onRecoverableError;t(e,{componentStack:null})}}function KG(){Wt===3&&(Wt=0,HA(_u,ao),Wt=4)}function lS(){if(Wt===1){Wt=0;var e=ao,t=_u,n=Ao,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=Ee.T,Ee.T=null;var r=ut.p;ut.p=2;var o=lt;lt|=4;try{Bm=ay=!1,zA(t,e,n),n=gS;var s=vE(e.containerInfo),i=n.focusedElem,l=n.selectionRange;if(s!==i&&i&&i.ownerDocument&&xE(i.ownerDocument.documentElement,i)){if(l!==null&&PS(i)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in i)i.selectionStart=u,i.selectionEnd=Math.min(c,i.value.length);else{var d=i.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var m=f.getSelection(),p=i.textContent.length,h=Math.min(l.start,p),x=l.end===void 0?h:Math.min(l.end,p);!m.extend&&h>x&&(s=x,x=h,h=s);var b=Sj(i,h),g=Sj(i,x);if(b&&g&&(m.rangeCount!==1||m.anchorNode!==b.node||m.anchorOffset!==b.offset||m.focusNode!==g.node||m.focusOffset!==g.offset)){var y=d.createRange();y.setStart(b.node,b.offset),m.removeAllRanges(),h>x?(m.addRange(y),m.extend(g.node,g.offset)):(y.setEnd(g.node,g.offset),m.addRange(y))}}}}for(d=[],m=i;m=m.parentNode;)m.nodeType===1&&d.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<d.length;i++){var v=d[i];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}Dd=!!pS,gS=pS=null}finally{lt=o,ut.p=r,Ee.T=a}}e.current=t,Wt=2}}function uS(){if(Wt===2){Wt=0;var e=ao,t=_u,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=Ee.T,Ee.T=null;var a=ut.p;ut.p=2;var r=lt;lt|=4;try{DA(e,t.alternate,t)}finally{lt=r,ut.p=a,Ee.T=n}}Wt=3}}function cS(){if(Wt===4||Wt===3){Wt=0;var e=wd;wd=null,fU();var t=ao,n=_u,a=Ao,r=KA,o=(a&335544064)===a?10262:10256;if((n.subtreeFlags&o)!==0||(n.flags&o)!==0?Wt=5:(Wt=0,_u=ao=null,s2(t,t.pendingLanes)),o=t.pendingLanes,o===0&&(Ti=null),RS(a),n=n.stateNode,ir&&typeof ir.onCommitFiberRoot=="function")try{ir.onCommitFiberRoot(hp,n,void 0,(n.current.flags&128)===128)}catch{}if(r!==null){n=Ee.T,o=ut.p,ut.p=2,Ee.T=null;try{for(var s=t.onRecoverableError,i=0;i<r.length;i++){var l=r[i];s(l.value,{componentStack:l.stack})}}finally{Ee.T=n,ut.p=o}}if(r=_d,s=Sd,Sd=null,r!==null&&(_d=null,s===null&&(s=[]),e!==null))for(l=0;l<r.length;l++)n=(0,r[l])(s),n!==void 0&&e.finished.finally(n);(Ao&3)!==0&&Iy(),Do(t),o=t.pendingLanes,(a&261930)!==0&&(o&42)!==0?t===Tb?Qm++:(Qm=0,Tb=t):(Qm=0,Tb=null),Sp(0,!1)}}function s2(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cp(t)))}function Iy(){return wd!==null&&(wd.skipTransition(),wd=null),lS(),uS(),cS(),dS()}function dS(){if(Wt!==5)return!1;var e=ao,t=sS;sS=0;var n=RS(Ao),a=Ee.T,r=ut.p;try{ut.p=32>n?32:n,Ee.T=null,n=iS,iS=null;var o=ao,s=Ao;if(Wt=0,_u=ao=null,Ao=0,(lt&6)!==0)throw Error(K(331));var i=lt;if(lt|=4,XA(o.current),UA(o,o.current,s,n),lt=i,Sp(0,!1),ir&&typeof ir.onPostCommitFiberRoot=="function")try{ir.onPostCommitFiberRoot(hp,o)}catch{}return!0}finally{ut.p=r,Ee.T=a,s2(e,t)}}function uT(e,t,n){t=$r(n,t),t=H_(e.stateNode,t,2),e=Ri(e,t,2),e!==null&&(yp(e,2),Do(e))}function yt(e,t,n){if(e.tag===3)uT(e,e,n);else for(;t!==null;){if(t.tag===3){uT(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ti===null||!Ti.has(a))){e=$r(n,e),n=CA(2),a=Ri(t,n,2),a!==null&&(wA(n,a,t,e),yp(a,2),Do(a));break}}t=t.return}}function s_(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new HG;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||(dk=!0,r.add(n),e=QG.bind(null,e,t,n),t.then(e,e))}function QG(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,kt===e&&(Ke&n)===n&&((Qt===4||Qt===3&&(Ke&62914560)===Ke&&300>sr()-$y)&&(lt&2)===0?Td(e,0):ry|=n,Id===Ke&&(Id=0)),Do(e)}function i2(e,t){t===0&&(t=KT()),e=Lu(e,t),e!==null&&(yp(e,t),Do(e))}function JG(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),i2(e,n)}function e6(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(K(314))}a!==null&&a.delete(t),i2(e,n)}function t6(e,t){return $S(e,t)}var Ed=null,nd=null,fS=!1,ly=!1,i_=!1,Si=0;function Do(e){e!==nd&&e.next===null&&(nd===null?Ed=nd=e:nd=nd.next=e),ly=!0,fS||(fS=!0,a6())}function Sp(e,t){if(!i_&&ly){i_=!0;do for(var n=!1,a=Ed;a!==null;){if(!t)if(e!==0){var r=a.pendingLanes;if(r===0)var o=0;else{var s=a.suspendedLanes,i=a.pingedLanes;o=(1<<31-lr(42|e)+1)-1,o&=r&~(s&~i),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,cT(a,o))}else o=Ke,o=fy(a,a===kt?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||bp(a,o)||(n=!0,cT(a,o));a=a.next}while(n);i_=!1}}function n6(){l2()}function l2(){ly=fS=!1;var e=0;Si!==0&&f6()&&(e=Si);for(var t=sr(),n=null,a=Ed;a!==null;){var r=a.next,o=u2(a,t);o===0?(a.next=null,n===null?Ed=r:n.next=r,r===null&&(nd=n)):(n=a,(e!==0||(o&3)!==0)&&(ly=!0)),a=r}Wt!==0&&Wt!==5||Sp(e,!1),Si!==0&&(Si=0)}function u2(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var s=31-lr(o),i=1<<s,l=r[s];l===-1?((i&n)===0||(i&a)!==0)&&(r[s]=vU(i,t)):l<=t&&(e.expiredLanes|=i),o&=~i}if(t=kt,n=Ke,n=fy(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ht===2||ht===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Bw(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||bp(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Bw(a),RS(n)){case 2:case 8:n=XT;break;case 32:n=Fb;break;case 268435456:n=YT;break;default:n=Fb}return a=c2.bind(null,e),n=$S(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Bw(a),e.callbackPriority=2,e.callbackNode=null,2}function c2(e,t){if(Wt!==0&&Wt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Iy()&&e.callbackNode!==n)return null;var a=Ke;return a=fy(e,e===kt?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(JA(e,a,t),u2(e,sr()),e.callbackNode!=null&&e.callbackNode===n?c2.bind(null,e):null)}function cT(e,t){if(Iy())return null;JA(e,t,!0)}function a6(){p6(function(){(lt&6)!==0?$S(WT,n6):l2()})}function mk(){if(Si===0){var e=xu;e===0&&(e=Qh,Qh<<=1,(Qh&261888)===0&&(Qh=256)),Si=e}return Si}function dT(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xb(e)}function r6(e,t,n,a,r){if(t==="submit"&&n&&n.stateNode===r){var o=dT((r[Va]||null).action),s=a.submitter;s&&(t=(t=s[Va]||null)?dT(t.formAction):s.getAttribute("formAction"),t!==null&&(o=t,s=null));var i=new py("action","action",null,a,r);e.push({event:i,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Si!==0){var l=new FormData(r,s);z_(n,{pending:!0,data:l,method:r.method,action:o},null,l)}}else typeof o=="function"&&(i.preventDefault(),l=new FormData(r,s),z_(n,{pending:!0,data:l,method:r.method,action:o},o,l))},currentTarget:r}]})}}for(mb=0;mb<T_.length;mb++)pb=T_[mb],fT=pb.toLowerCase(),mT=pb[0].toUpperCase()+pb.slice(1),ro(fT,"on"+mT);var pb,fT,mT,mb;ro(wE,"onAnimationEnd");ro(_E,"onAnimationIteration");ro(SE,"onAnimationStart");ro("dblclick","onDoubleClick");ro("focusin","onFocus");ro("focusout","onBlur");ro(gG,"onTransitionRun");ro(hG,"onTransitionStart");ro(bG,"onTransitionCancel");ro(kE,"onTransitionEnd");$d("onMouseEnter",["mouseout","mouseover"]);$d("onMouseLeave",["mouseout","mouseover"]);$d("onPointerEnter",["pointerout","pointerover"]);$d("onPointerLeave",["pointerout","pointerover"]);ku("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ku("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ku("onBeforeInput",["compositionend","keypress","textInput","paste"]);ku("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ku("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ku("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lp="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(" "),o6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lp));function d2(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var s=a.length-1;0<=s;s--){var i=a[s],l=i.instance,u=i.currentTarget;if(i=i.listener,l!==o&&r.isPropagationStopped())break e;o=i,r.currentTarget=u;try{o(r)}catch(c){zb(c)}r.currentTarget=null,o=l}else for(s=0;s<a.length;s++){if(i=a[s],l=i.instance,u=i.currentTarget,i=i.listener,l!==o&&r.isPropagationStopped())break e;o=i,r.currentTarget=u;try{o(r)}catch(c){zb(c)}r.currentTarget=null,o=l}}}}function Ye(e,t){var n=t[ij];n===void 0&&(n=t[ij]=new Set);var a=e+"__bubble";n.has(a)||(f2(t,e,2,!1),n.add(a))}function l_(e,t,n){var a=0;t&&(a|=4),f2(n,e,a,t)}var gb="_reactListening"+Math.random().toString(36).slice(2);function pk(e){if(!e[gb]){e[gb]=!0,aE.forEach(function(n){n!=="selectionchange"&&(o6.has(n)||l_(n,!1,e),l_(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gb]||(t[gb]=!0,l_("selectionchange",!1,t))}}function f2(e,t,n,a){switch(D2(t)){case 2:var r=K6;break;case 8:r=Q6;break;default:r=Ck}n=r.bind(null,t,n,e),r=void 0,!L_||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),a?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function u_(e,t,n,a,r){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var i=a.stateNode.containerInfo;if(i===r)break;if(s===4)for(s=a.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===r)return;s=s.return}for(;i!==null;){if(s=uu(i),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){a=o=s;continue e}i=i.parentNode}}a=a.return}dE(function(){var u=o,c=jS(n),d=[];e:{var f=$E.get(e);if(f!==void 0){var m=py,p=e;switch(e){case"keypress":if(Cb(n)===0)break e;case"keydown":case"keyup":m=UU;break;case"focusin":p="focus",m=Uw;break;case"focusout":p="blur",m=Uw;break;case"beforeblur":case"afterblur":m=Uw;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=gj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=AU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=ZU;break;case wE:case _E:case SE:m=DU;break;case kE:m=QU;break;case"scroll":case"scrollend":m=TU;break;case"wheel":m=eG;break;case"copy":case"cut":case"paste":m=OU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=bj;break;case"submit":m=XU;break;case"toggle":case"beforetoggle":m=nG}var h=(t&4)!==0,x=!h&&(e==="scroll"||e==="scrollend"),b=h?f!==null?f+"Capture":null:f;h=[];for(var g=u,y;g!==null;){var v=g;if(y=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||y===null||b===null||(v=ep(g,b),v!=null&&h.push(up(g,v,y))),x)break;g=g.return}0<h.length&&(f=new m(f,p,null,n,c),d.push({event:f,listeners:h}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",m&&n!==$_&&(p=n.relatedTarget||n.fromElement)&&(uu(p)||p[Od]))break e;(f||m)&&(p=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,f?(m=n.relatedTarget||n.toElement,f=u,m=m?uu(m):null,m!==null&&(x=gp(m),h=m.tag,m!==x||h!==5&&h!==27&&h!==6)&&(m=null)):(f=null,m=u),f!==m&&(h=gj,v="onMouseLeave",b="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(h=bj,v="onPointerLeave",b="onPointerEnter",g="pointer"),x=f==null?p:Nm(f),y=m==null?p:Nm(m),p=new h(v,g+"leave",f,n,c),p.target=x,p.relatedTarget=y,v=null,uu(c)===u&&(h=new h(b,g+"enter",m,n,c),h.target=y,h.relatedTarget=x,v=h),x=v,h=f&&m?p_(f,m,s6):null,f!==null&&pT(d,p,f,h,!1),m!==null&&x!==null&&pT(d,x,m,h,!0)))}e:{if(f=u?Nm(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var C=Cj;else if(vj(f))if(bE)C=fG;else{C=cG;var S=uG}else m=f.nodeName,!m||m.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&IS(u.elementType)&&(C=Cj):C=dG;if(C&&(C=C(e,u))){hE(d,C,n,c);break e}S&&S(e,f,u)}switch(S=u?Nm(u):window,e){case"focusin":(vj(S)||S.contentEditable==="true")&&(ld=S,I_=u,zm=null);break;case"focusout":zm=I_=ld=null;break;case"mousedown":j_=!0;break;case"contextmenu":case"mouseup":case"dragend":j_=!1,kj(d,n,c);break;case"selectionchange":if(pG)break;case"keydown":case"keyup":kj(d,n,c)}var _;if(AS)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else id?pE(e,n)&&(w="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(w="onCompositionStart");w&&(mE&&n.locale!=="ko"&&(id||w!=="onCompositionStart"?w==="onCompositionEnd"&&id&&(_=fE()):(vi=c,TS="value"in vi?vi.value:vi.textContent,id=!0)),S=uy(u,w),0<S.length&&(w=new hj(w,e,null,n,c),d.push({event:w,listeners:S}),_?w.data=_:(_=gE(n),_!==null&&(w.data=_)))),(_=rG?oG(e,n):sG(e,n))&&(w=uy(u,"onBeforeInput"),0<w.length&&(S=new hj("onBeforeInput","beforeinput",null,n,c),d.push({event:S,listeners:w}),S.data=_)),r6(d,e,u,n,c)}d2(d,t)})}function up(e,t,n){return{instance:e,listener:t,currentTarget:n}}function uy(e,t){for(var n=t+"Capture",a=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=ep(e,n),r!=null&&a.unshift(up(e,r,o)),r=ep(e,t),r!=null&&a.push(up(e,r,o))),e.tag===3)return a;e=e.return}return[]}function s6(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function pT(e,t,n,a,r){for(var o=t._reactName,s=[];n!==null&&n!==a;){var i=n,l=i.alternate,u=i.stateNode;if(i=i.tag,l!==null&&l===a)break;i!==5&&i!==26&&i!==27||u===null||(l=u,r?(u=ep(n,o),u!=null&&s.unshift(up(n,u,l))):r||(u=ep(n,o),u!=null&&s.push(up(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var i6=/\r\n?/g,l6=/\u0000|\uFFFD/g;function gT(e){return(typeof e=="string"?e:""+e).replace(i6,`
|
|
9
|
+
`).replace(l6,"")}function m2(e,t){return t=gT(t),gT(e)===t}function bt(e,t,n,a,r,o){switch(n){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Ld(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Ld(e,""+a);else return;break;case"className":tb(e,"class",a);break;case"tabIndex":tb(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":tb(e,n,a);break;case"style":cE(e,a,o);return;case"data":if(t!=="object"){tb(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=xb(a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&bt(e,t,"name",r.name,r,null),bt(e,t,"formEncType",r.formEncType,r,null),bt(e,t,"formMethod",r.formMethod,r,null),bt(e,t,"formTarget",r.formTarget,r,null)):(bt(e,t,"encType",r.encType,r,null),bt(e,t,"method",r.method,r,null),bt(e,t,"target",r.target,r,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=xb(a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Io);return;case"onScroll":a!=null&&Ye("scroll",e);return;case"onScrollEnd":a!=null&&Ye("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(K(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(K(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=xb(a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ye("beforetoggle",e),Ye("toggle",e),yb(e,"popover",a);break;case"xlinkActuate":fs(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":fs(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":fs(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":fs(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":fs(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":fs(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":fs(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":fs(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":fs(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":yb(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=IU.get(n)||n,yb(e,n,a);else return}ot=!0}function mS(e,t,n,a,r,o){switch(n){case"style":cE(e,a,o);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(K(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(K(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof a=="string")Ld(e,a);else if(typeof a=="number"||typeof a=="bigint")Ld(e,""+a);else return;break;case"onScroll":a!=null&&Ye("scroll",e);return;case"onScrollEnd":a!=null&&Ye("scrollend",e);return;case"onClick":a!=null&&(e.onclick=Io);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!rE.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),o=n.slice(2,r?n.length-7:void 0),t=e[Va]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(o,t,r),typeof a=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,a,r);break e}ot=!0,n in e?e[n]=a:a===!0?e.setAttribute(n,""):yb(e,n,a)}return}ot=!0}function Yn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ye("error",e),Ye("load",e);var a=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case"src":a=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(K(137,t));default:bt(e,t,o,s,n,null)}}r&&bt(e,t,"srcSet",n.srcSet,n,null),a&&bt(e,t,"src",n.src,n,null);return;case"input":Ye("invalid",e);var i=o=s=r=null,l=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var c=n[a];if(c!=null)switch(a){case"name":r=c;break;case"type":s=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":o=c;break;case"defaultValue":i=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(K(137,t));break;default:bt(e,t,a,c,n,null)}}iE(e,o,i,l,u,s,r,!1);return;case"select":Ye("invalid",e),a=s=o=null;for(r in n)if(n.hasOwnProperty(r)&&(i=n[r],i!=null))switch(r){case"value":o=i;break;case"defaultValue":s=i;break;case"multiple":a=i;default:bt(e,t,r,i,n,null)}t=o,n=s,e.multiple=!!a,t!=null?hd(e,!!a,t,!1):n!=null&&hd(e,!!a,n,!0);return;case"textarea":Ye("invalid",e),o=r=a=null;for(s in n)if(n.hasOwnProperty(s)&&(i=n[s],i!=null))switch(s){case"value":a=i;break;case"defaultValue":r=i;break;case"children":o=i;break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(K(91));break;default:bt(e,t,s,i,n,null)}uE(e,a,r,o);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(a=n[l],a!=null))switch(l){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:bt(e,t,l,a,n,null)}return;case"dialog":Ye("beforetoggle",e),Ye("toggle",e),Ye("cancel",e),Ye("close",e);break;case"iframe":case"object":Ye("load",e);break;case"video":case"audio":for(a=0;a<lp.length;a++)Ye(lp[a],e);break;case"image":Ye("error",e),Ye("load",e);break;case"details":Ye("toggle",e);break;case"embed":case"source":case"link":Ye("error",e),Ye("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(a=n[u],a!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(K(137,t));default:bt(e,t,u,a,n,null)}return;default:if(IS(t)){for(c in n)n.hasOwnProperty(c)&&(a=n[c],a!==void 0&&mS(e,t,c,a,n,void 0));return}}for(i in n)n.hasOwnProperty(i)&&(a=n[i],a!=null&&bt(e,t,i,a,n,null))}var u6={};function c6(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,s=null,i=null,l=null,u=null,c=null;for(m in n){var d=n[m];if(n.hasOwnProperty(m)&&d!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":l=d;default:a.hasOwnProperty(m)||bt(e,t,m,null,a,d)}}for(var f in a){var m=a[f];if(d=n[f],a.hasOwnProperty(f)&&(m!=null||d!=null))switch(f){case"type":m!==d&&(ot=!0),o=m;break;case"name":m!==d&&(ot=!0),r=m;break;case"checked":m!==d&&(ot=!0),u=m;break;case"defaultChecked":m!==d&&(ot=!0),c=m;break;case"value":m!==d&&(ot=!0),s=m;break;case"defaultValue":m!==d&&(ot=!0),i=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(K(137,t));break;default:m!==d&&bt(e,t,f,m,a,d)}}k_(e,s,i,l,u,c,o,r);return;case"select":m=s=i=f=null;for(o in n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case"value":break;case"multiple":m=l;default:a.hasOwnProperty(o)||bt(e,t,o,null,a,l)}for(r in a)if(o=a[r],l=n[r],a.hasOwnProperty(r)&&(o!=null||l!=null))switch(r){case"value":o!==l&&(ot=!0),f=o;break;case"defaultValue":o!==l&&(ot=!0),i=o;break;case"multiple":o!==l&&(ot=!0),s=o;default:o!==l&&bt(e,t,r,o,a,l)}t=i,n=s,a=m,f!=null?hd(e,!!n,f,!1):!!a!=!!n&&(t!=null?hd(e,!!n,t,!0):hd(e,!!n,n?[]:"",!1));return;case"textarea":m=f=null;for(i in n)if(r=n[i],n.hasOwnProperty(i)&&r!=null&&!a.hasOwnProperty(i))switch(i){case"value":break;case"children":break;default:bt(e,t,i,null,a,r)}for(s in a)if(r=a[s],o=n[s],a.hasOwnProperty(s)&&(r!=null||o!=null))switch(s){case"value":r!==o&&(ot=!0),f=r;break;case"defaultValue":r!==o&&(ot=!0),m=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(K(91));break;default:r!==o&&bt(e,t,s,r,a,o)}lE(e,f,m);return;case"option":for(var p in n)if(f=n[p],n.hasOwnProperty(p)&&f!=null&&!a.hasOwnProperty(p))switch(p){case"selected":e.selected=!1;break;default:bt(e,t,p,null,a,f)}for(l in a)if(f=a[l],m=n[l],a.hasOwnProperty(l)&&f!==m&&(f!=null||m!=null))switch(l){case"selected":f!==m&&(ot=!0),e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:bt(e,t,l,f,a,m)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var h in n)f=n[h],n.hasOwnProperty(h)&&f!=null&&!a.hasOwnProperty(h)&&bt(e,t,h,null,a,f);for(u in a)if(f=a[u],m=n[u],a.hasOwnProperty(u)&&f!==m&&(f!=null||m!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(K(137,t));break;default:bt(e,t,u,f,a,m)}return;default:if(IS(t)){for(var x in n)f=n[x],n.hasOwnProperty(x)&&f!==void 0&&!a.hasOwnProperty(x)&&mS(e,t,x,void 0,a,f);for(c in a)f=a[c],m=n[c],!a.hasOwnProperty(c)||f===m||f===void 0&&m===void 0||mS(e,t,c,f,a,m);return}}for(var b in n)f=n[b],n.hasOwnProperty(b)&&f!=null&&!a.hasOwnProperty(b)&&bt(e,t,b,null,a,f);for(d in a)f=a[d],m=n[d],!a.hasOwnProperty(d)||f===m||f==null&&m==null||bt(e,t,d,f,a,m)}function hT(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function d6(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var r=n[a],o=r.transferSize,s=r.initiatorType,i=r.duration;if(o&&i&&hT(s)){for(s=0,i=r.responseEnd,a+=1;a<n.length;a++){var l=n[a],u=l.startTime;if(u>i)break;var c=l.transferSize,d=l.initiatorType;c&&hT(d)&&(l=l.responseEnd,s+=c*(l<i?1:(i-u)/(l-u)))}if(--a,t+=8*(o+s)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var pS=null,gS=null;function cp(e){return e.nodeType===9?e:e.ownerDocument}function bT(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function p2(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function g2(e,t,n,a){return n=cp(n).createElement(e),n[Un]=a,n[Va]=t,Yn(n,e,t),Mn(n),n}function hS(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var c_=null;function f6(){var e=window.event;return e&&e.type==="popstate"?e===c_?!1:(c_=e,!0):(c_=null,!1)}var gk=typeof setTimeout=="function"?setTimeout:void 0,m6=typeof clearTimeout=="function"?clearTimeout:void 0,yT=typeof Promise=="function"?Promise:void 0,xT=typeof requestAnimationFrame=="function"?requestAnimationFrame:gk,p6=typeof queueMicrotask=="function"?queueMicrotask:typeof yT<"u"?function(e){return yT.resolve(null).then(e).catch(g6)}:gk;function g6(e){setTimeout(function(){throw e})}function Vi(e){return e==="head"}function vT(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(r),Nd(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")f_(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,f_(n);for(var o=n.firstChild;o;){var s=o.nextSibling,i=o.nodeName;o[xp]||i==="SCRIPT"||i==="STYLE"||i==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=s}}else n==="body"&&f_(e.ownerDocument.body);n=r}while(n);Nd(t)}function CT(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function h2(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var r=a=0;r<t.length;r++){var o=t[r];0<o.width&&0<o.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function b2(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function y2(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function bS(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return y2(t,n,e)}function h6(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return y2(t,n,e)}function b6(e){return e.documentElement.clientHeight}function y6(e){this.addEventListener("load",e),this.addEventListener("error",e)}function x6(e,t,n,a,r,o,s,i,l){var u=t.nodeType===9?t:t.ownerDocument;try{var c=u.startViewTransition({update:function(){var f=u.defaultView,m=f.navigation&&f.navigation.transition,p=u.fonts.status;a();var h=[];if(p==="loaded"&&(b6(u),u.fonts.status==="loading"&&h.push(u.fonts.ready)),p=h.length,e!==null)for(var x=e.suspenseyImages,b=0,g=0;g<x.length;g++){var y=x[g];if(!y.complete){var v=y.getBoundingClientRect();if(0<v.bottom&&0<v.right&&v.top<f.innerHeight&&v.left<f.innerWidth){if(b+=j2(y),b>Pb){h.length=p;break}y=new Promise(y6.bind(y)),h.push(y)}}}if(0<h.length)return f=Promise.race([Promise.all(h),new Promise(function(C){return setTimeout(C,500)})]).then(r,r),(m?Promise.allSettled([m.finished,f]):f).then(o,o);if(r(),m)return m.finished.then(o,o);o()},types:n});u.__reactViewTransition=c;var d=[];return c.ready.then(function(){for(var f=u.documentElement.getAnimations({subtree:!0}),m=0;m<f.length;m++){var p=f[m],h=p.effect,x=h.pseudoElement;if(x!=null&&x.startsWith("::view-transition")){d.push(p),p=h.getKeyframes();for(var b=x=void 0,g=!0,y=0;y<p.length;y++){var v=p[y],C=v.width;if(x===void 0)x=C;else if(x!==C){g=!1;break}if(C=v.height,b===void 0)b=C;else if(b!==C){g=!1;break}delete v.width,delete v.height,v.transform==="none"&&delete v.transform}g&&x!==void 0&&b!==void 0&&(h.setKeyframes(p),g=getComputedStyle(h.target,h.pseudoElement),g.width!==x||g.height!==b)&&(g=p[0],g.width=x,g.height=b,g=p[p.length-1],g.width=x,g.height=b,h.setKeyframes(p))}}s()},function(f){u.__reactViewTransition===c&&(u.__reactViewTransition=null);try{if(typeof f=="object"&&f!==null)switch(f.name){case"InvalidStateError":(f.message==="View transition was skipped because document visibility state is hidden."||f.message==="Skipping view transition because document visibility state has become hidden."||f.message==="Skipping view transition because viewport size changed."||f.message==="Transition was aborted because of invalid state")&&(f=null)}f!==null&&l(f)}finally{a(),r(),s()}}),c.finished.finally(function(){for(var f=0;f<d.length;f++)d[f].cancel();u.__reactViewTransition===c&&(u.__reactViewTransition=null),i()}),c}catch{return a(),r(),s(),null}}function cu(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}cu.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:$t({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};cu.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),a=[],r=0;r<n.length;r++){var o=n[r].effect;o!==null&&o.target===e&&o.pseudoElement===t&&a.push(n[r])}return a};cu.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function x2(e){return{name:e,group:new cu("group",e),imagePair:new cu("image-pair",e),old:new cu("old",e),new:new cu("new",e)}}function dr(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}dr.prototype.addEventListener=function(e,t,n){var a=null,r=null;if(!(n!=null&&typeof n!="boolean"&&(a=n.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var o=this._eventListeners;if(v2(o,e,t,n)===-1){var s=this,i=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(i=function(l){s.removeEventListener(e,t,n),typeof t=="function"?t.call(this,l):t.handleEvent(l)}),a!==null&&(r=s.removeEventListener.bind(s,e,t,n),a.addEventListener("abort",r,{once:!0}),r=a.removeEventListener.bind(a,"abort",r)),a=Ad(n),o.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:i,cleanup:r}),Fa(this._fragmentFiber.child,!1,v6,e,i,a)}this._eventListeners=o}};function v6(e,t,n,a){return Sn(e).addEventListener(t,n,a),!1}dr.prototype.removeEventListener=function(e,t,n){var a=this._eventListeners;if(a!==null&&(t=v2(a,e,t,n),t!==-1)){var r=a[t];n=r.attachedListener;var o=r.cleanup;r=Ad(r.optionsOrUseCapture),Fa(this._fragmentFiber.child,!1,C6,e,n,r),a.splice(t,1),o!==null&&o()}};function C6(e,t,n,a){return Sn(e).removeEventListener(t,n,a),!1}function Ad(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function wT(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function v2(e,t,n,a){if(e.length===0)return-1;a=wT(a);for(var r=0;r<e.length;r++){var o=e[r];if(o.type===t&&o.listener===n&&wT(o.optionsOrUseCapture)===a)return r}return-1}dr.prototype.dispatchEvent=function(e){var t=Su(this._fragmentFiber);if(t===null)return!0;t=Sn(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var r=0;r<n.length;r++){var o=n[r];a.addEventListener(o.type,o.attachedListener,Ad(o.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),n)for(r=0;r<n.length;r++)o=n[r],a.removeEventListener(o.type,o.attachedListener,Ad(o.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)};dr.prototype.focus=function(e){Fa(this._fragmentFiber.child,!0,C2,e,void 0,void 0)};function C2(e,t){return e.tag===6?!1:(e=Sn(e),A6(e,t))}dr.prototype.focusLast=function(e){var t=[];Fa(this._fragmentFiber.child,!0,hk,t,void 0,void 0);for(var n=t.length-1;0<=n&&!C2(t[n],e);n--);};function hk(e,t){return t.push(e),!1}dr.prototype.blur=function(){var e=Su(this._fragmentFiber);e!==null&&(e=Sn(e),e=cp(e).activeElement,e!==null&&Fa(this._fragmentFiber.child,!1,w6,e,void 0,void 0))};function w6(e,t){return e.tag===6?!1:(e=Sn(e),e===t||e.contains(t)?(t.blur(),!0):!1)}dr.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Fa(this._fragmentFiber.child,!1,_6,e,void 0,void 0)};function _6(e,t){return e.tag===6||(e=Sn(e),t.observe(e)),!1}dr.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Fa(this._fragmentFiber.child,!1,S6,e,void 0,void 0);for(var n=t=0;n<no.length;n++){var a=no[n];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):no[t++]=a}no.length=t}};function S6(e,t){return e.tag===6||(e=Sn(e),t.unobserve(e)),!1}var no=[],d_=!1;function k6(e,t,n){no.push({fragmentInstance:e,observer:t,instance:n}),d_||(d_=!0,P6(function(){d_=!1;var a=no;no=[];for(var r=0;r<a.length;r++){var o=a[r];o.observer.unobserve(o.instance)}}))}dr.prototype.getClientRects=function(){var e=[];return Fa(this._fragmentFiber.child,!1,$6,e,void 0,void 0),e};function $6(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=Sn(e),t.push.apply(t,e.getClientRects());return!1}dr.prototype.getRootNode=function(e){var t=Su(this._fragmentFiber);return t===null?this:Sn(t).getRootNode(e)};dr.prototype.compareDocumentPosition=function(e){var t=Su(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Fa(this._fragmentFiber.child,!1,hk,n,void 0,void 0);var a=Sn(t);if(n.length===0){if(n=a,tj(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var r=a=n.compareDocumentPosition(e);return n===e?r=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=qT(t)[1],n===null?r=Node.DOCUMENT_POSITION_PRECEDING:(e=Sn(n).compareDocumentPosition(e),r=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),r|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Sn(n[0]),r=Sn(n[n.length-1]);var o=tj(this._fragmentFiber)?t.parentElement:a;if(o==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=o.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY;var s=t.compareDocumentPosition(e),i=r.compareDocumentPosition(e),l=s&Node.DOCUMENT_POSITION_CONTAINED_BY||i&Node.DOCUMENT_POSITION_CONTAINED_BY;return i=a&&o&&s&Node.DOCUMENT_POSITION_FOLLOWING&&i&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||o&&r===e||l||i?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!o&&r===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:s,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||L6(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function L6(e,t,n,a,r){var o=uu(r);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!o)e:{for(;o!==null;){if(o.tag===7&&(o===t||o.alternate===t)){n=!0;break e}o=o.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(o===null)return o=r.ownerDocument,r===o||r===o.documentElement||r===o.body;e:{for(o=t,t=Su(t);o!==null;){if(!(o.tag!==5&&o.tag!==3&&o.tag!==27||o!==t&&o.alternate!==t)){o=!0;break e}o=o.return}o=!1}return o}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!o)&&!(t=o===n)&&(t=p_(n,o,nj),t===null?t=!1:(Fa(t,!0,aU,o,n),o=ad,ad=null,t=o!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!o)&&!(t=o===a)&&(t=p_(a,o,nj),t===null?t=!1:(Fa(t,!0,rU,o,a),o=ad,m_=ad=null,t=o!==null)),t):!1}function _T(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}dr.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(K(566));var t=[];Fa(this._fragmentFiber.child,!1,hk,t,void 0,void 0);var n=e!==!1;if(t.length===0){var a=qT(this._fragmentFiber);if(a=n?a[1]||a[0]||Su(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=Sn(a),_T(e,n);return}if(a=Sn(a),a.nodeType!==9){if(a.nodeType===11){n="host"in a?a.host:null,n!==null&&n.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=n?t.length-1:0;a!==(n?-1:t.length);){var r=t[a];r.tag===6?(r=Sn(r),_T(r,n)):Sn(r).scrollIntoView(e),a+=n?-1:1}};function R6(e,t){return e=Sn(e),w2(e,t),!1}function w2(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function _2(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a];e.addEventListener(r.type,r.attachedListener,Ad(r.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){for(var s=0,i=0;i<no.length;i++){var l=no[i];(l.fragmentInstance!==t||l.observer!==o||l.instance!==e)&&(no[s++]=l)}no.length=s,o.observe(e)}),w2(e,t))}function I6(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a];e.removeEventListener(r.type,r.attachedListener,Ad(r.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){typeof o.rootMargin=="string"?k6(t,o,e):o.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function yS(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":yS(n),my(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function j6(e,t,n,a){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[xp])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Rr(e.nextSibling),e===null)break}return null}function T6(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Rr(e.nextSibling),e===null))return null;return e}function S2(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Rr(e.nextSibling),e===null))return null;return e}function xS(e){return e.data==="$?"||e.data==="$~"}function bk(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function E6(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Rr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var vS=null;function ST(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Rr(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function kT(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function A6(e,t){function n(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return a}function P6(e){xT(function(){xT(function(t){return e(t)})})}function k2(e,t,n){switch(t=cp(n),e){case"html":if(e=t.documentElement,!e)throw Error(K(452));return e;case"head":if(e=t.head,!e)throw Error(K(453));return e;case"body":if(e=t.body,!e)throw Error(K(454));return e;default:throw Error(K(451))}}function $2(e,t,n){for(var a in n){var r=n[a];n.hasOwnProperty(a)&&r!=null&&bt(e,t,a,null,u6,r)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Io&&(e.onclick=null),my(e)}function f_(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);my(e)}var Ir=new Map,$T=new Set;function dp(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var $s=ut.d;ut.d={f:M6,r:D6,D:N6,C:O6,L:B6,m:F6,X:z6,S:V6,M:q6};function M6(){var e=$s.f(),t=Ly();return e||t}function D6(e){var t=Bd(e);t!==null&&t.tag===5&&t.type==="form"?cA(t):$s.r(e)}var qd=typeof document>"u"?null:document;function L2(e,t,n){var a=qd;if(a&&typeof t=="string"&&t){var r=kr(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),$T.has(r)||($T.add(r),e={rel:e,crossOrigin:n,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),Yn(t,"link",e),Mn(t),a.head.appendChild(t)))}}function N6(e){$s.D(e),L2("dns-prefetch",e,null)}function O6(e,t){$s.C(e,t),L2("preconnect",e,t)}function B6(e,t,n){$s.L(e,t,n);var a=qd;if(a&&e&&t){var r='link[rel="preload"][as="'+kr(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+kr(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+kr(n.imageSizes)+'"]')):r+='[href="'+kr(e)+'"]';var o=r;switch(t){case"style":o=Pd(e);break;case"script":o=Hd(e)}if(!(Ir.has(o)||(e=$t({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Ir.set(o,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(kp(o))||t==="script"&&a.querySelector($p(o))))){var s=a.createElement("link");Yn(s,"link",e),t==="style"&&(s[Vb]=!0,s.onload=s.onerror=function(){nE(s)}),Mn(s),a.head.appendChild(s)}}}function F6(e,t){$s.m(e,t);var n=qd;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+kr(a)+'"][href="'+kr(e)+'"]',o=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Hd(e)}if(!Ir.has(o)&&(e=$t({rel:"modulepreload",href:e},t),Ir.set(o,e),n.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($p(o)))return}a=n.createElement("link"),Yn(a,"link",e),Mn(a),n.head.appendChild(a)}}}function V6(e,t,n){$s.S(e,t,n);var a=qd;if(a&&e){var r=gd(a).hoistableStyles,o=Pd(e);t=t||"default";var s=r.get(o);if(!s){var i={loading:0,preload:null};if(s=a.querySelector(kp(o)))i.loading=5;else{e=$t({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ir.get(o))&&yk(e,n);var l=s=a.createElement("link");Mn(l),Yn(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){i.loading|=1}),l.addEventListener("error",function(){i.loading|=2}),i.loading|=4,Eb(s,t,a)}s={type:"stylesheet",instance:s,count:1,state:i},r.set(o,s)}}}function z6(e,t){$s.X(e,t);var n=qd;if(n&&e){var a=gd(n).hoistableScripts,r=Hd(e),o=a.get(r);o||(o=n.querySelector($p(r)),o||(e=$t({src:e,async:!0},t),(t=Ir.get(r))&&xk(e,t),o=n.createElement("script"),Mn(o),Yn(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(r,o))}}function q6(e,t){$s.M(e,t);var n=qd;if(n&&e){var a=gd(n).hoistableScripts,r=Hd(e),o=a.get(r);o||(o=n.querySelector($p(r)),o||(e=$t({src:e,async:!0,type:"module"},t),(t=Ir.get(r))&&xk(e,t),o=n.createElement("script"),Mn(o),Yn(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(r,o))}}function LT(e,t,n,a){var r=(r=ki.current)?dp(r):null;if(!r)throw Error(K(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Pd(n.href),t=gd(r).hoistableStyles,a=t.get(n),a||(a={type:"style",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Pd(n.href);var o=gd(r).hoistableStyles,s=o.get(e);if(s||(r=r.ownerDocument||r,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=r.querySelector(kp(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Ir.get(e),o||(o={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ir.set(e,o)),H6(r,e,o,s.state))),t&&a===null)throw Error(K(528,""));return s}if(t&&a!==null)throw Error(K(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Hd(n),t=gd(r).hoistableScripts,a=t.get(n),a||(a={type:"script",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(K(444,e))}}function Pd(e){return'href="'+kr(e)+'"'}function kp(e){return'link[rel="stylesheet"]['+e+"]"}function R2(e){return $t({},e,{"data-precedence":e.precedence,precedence:null})}function H6(e,t,n,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Vb]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[Vb]=!0,t.onload=t.onerror=nE.bind(null,t),Yn(t,"link",n),Mn(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function Hd(e){return'[src="'+kr(e)+'"]'}function $p(e){return"script[async]"+e}function RT(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+kr(n.href)+'"]');if(a)return t.instance=a,Mn(a),a;var r=$t({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Mn(a),Yn(a,"style",r),Eb(a,n.precedence,e),t.instance=a;case"stylesheet":r=Pd(n.href);var o=e.querySelector(kp(r));if(o)return t.state.loading|=4,t.instance=o,Mn(o),o;a=R2(n),(r=Ir.get(r))&&yk(a,r),o=(e.ownerDocument||e).createElement("link"),Mn(o);var s=o;return s._p=new Promise(function(i,l){s.onload=i,s.onerror=l}),Yn(o,"link",a),t.state.loading|=4,Eb(o,n.precedence,e),t.instance=o;case"script":return o=Hd(n.src),(r=e.querySelector($p(o)))?(t.instance=r,Mn(r),r):(a=n,(r=Ir.get(o))&&(a=$t({},n),xk(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),Mn(r),Yn(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(K(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Eb(a,n.precedence,e));return t.instance}function Eb(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,o=r,s=0;s<a.length;s++){var i=a[s];if(i.dataset.precedence===t)o=i;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function yk(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function xk(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ab=null;function IT(e,t,n){if(Ab===null){var a=new Map,r=Ab=new Map;r.set(n,a)}else r=Ab,a=r.get(n),a||(a=new Map,r.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var o=n[r];if(!(o[xp]||o[Un]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var s=o.getAttribute(t)||"";s=e+s;var i=a.get(s);i?i.push(o):a.set(s,[o])}}return a}function CS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function U6(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function jT(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function I2(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function j2(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function TT(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=j2(t),e.suspenseyImages.push(t)),e=X6.bind(e),t.decode().then(e,e))}function G6(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Pd(a.href),o=t.querySelector(kp(r));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=fp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Mn(o);return}o=t.ownerDocument||t,a=R2(a),(r=Ir.get(r))&&yk(a,r),o=o.createElement("link"),Mn(o);var s=o;s._p=new Promise(function(i,l){s.onload=i,s.onerror=l}),Yn(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=fp.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Pb=0;function W6(e,t){return e.stylesheets&&e.count===0&&Mb(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Mb(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Pb===0&&(Pb=62500*d6());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Mb(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Pb?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function T2(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Mb(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function fp(){this.count--,T2(this)}function X6(){this.imgCount--,T2(this)}var cy=null;function Mb(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,cy=new Map,t.forEach(Y6,e),cy=null,fp.call(e))}function Y6(e,t){if(!(t.state.loading&4)){var n=cy.get(e);if(n)var a=n.get(null);else{n=new Map,cy.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var s=r[o];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),a=s)}a&&n.set(null,a)}r=t.instance,s=r.getAttribute("data-precedence"),o=n.get(s)||a,o===a&&n.set(null,r),n.set(s,r),this.count++,a=fp.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Md={$$typeof:Ro,Provider:null,Consumer:null,_currentValue:du,_currentValue2:du,_threadCount:0};function Z6(e,t,n,a,r,o,s,i,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fw(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fw(0),this.hiddenUpdates=Fw(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function E2(e,t,n,a,r,o,s,i,l,u,c,d){return e=new Z6(e,t,n,s,l,u,c,d,i),t=1,o===!0&&(t|=24),o=Oa(3,null,null,t),e.current=o,o.stateNode=e,t=BS(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},zS(o),e}function A2(e){return e?(e=dd,e):dd}function P2(e,t,n,a,r,o){r=A2(r),a.context===null?a.context=r:a.pendingContext=r,a=Li(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=Ri(e,a,t),n!==null&&(Ba(n,e,t),Hm(n,e,t))}function ET(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vk(e,t){ET(e,t),(e=e.alternate)&&ET(e,t)}function M2(e){if(e.tag===13||e.tag===31){var t=Lu(e,67108864);t!==null&&Ba(t,e,67108864),vk(e,67108864)}}function AT(e){if(e.tag===13||e.tag===31){var t=ur();t=LS(t);var n=Lu(e,t);n!==null&&Ba(n,e,t),vk(e,t)}}var Dd=!0;function K6(e,t,n,a){var r=Ee.T;Ee.T=null;var o=ut.p;try{ut.p=2,Ck(e,t,n,a)}finally{ut.p=o,Ee.T=r}}function Q6(e,t,n,a){var r=Ee.T;Ee.T=null;var o=ut.p;try{ut.p=8,Ck(e,t,n,a)}finally{ut.p=o,Ee.T=r}}function Ck(e,t,n,a){if(Dd){var r=wS(a);if(r===null)u_(e,t,a,dy,n),PT(e,a);else if(e8(r,e,t,n,a))a.stopPropagation();else if(PT(e,a),t&4&&-1<J6.indexOf(e)){for(;r!==null;){var o=Bd(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var s=su(o.pendingLanes);if(s!==0){var i=o;for(i.pendingLanes|=2,i.entangledLanes|=2;s;){var l=1<<31-lr(s);i.entanglements[1]|=l,s&=~l}Do(o),(lt&6)===0&&(oy=sr()+500,Sp(0,!1))}}break;case 31:case 13:i=Lu(o,2),i!==null&&Ba(i,o,2),Ly(),vk(o,2)}if(o=wS(a),o===null&&u_(e,t,a,dy,n),o===r)break;r=o}r!==null&&a.stopPropagation()}else u_(e,t,a,null,n)}}function wS(e){return e=jS(e),wk(e)}var dy=null;function wk(e){if(dy=null,e=uu(e),e!==null){var t=gp(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=FT(t),e!==null)return e;e=null}else if(n===31){if(e=VT(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return dy=e,null}function D2(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(mU()){case WT:return 2;case XT:return 8;case Fb:case pU:return 32;case YT:return 268435456;default:return 32}default:return 32}}var _S=!1,Ei=null,Ai=null,Pi=null,mp=new Map,pp=new Map,yi=[],J6="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function PT(e,t){switch(e){case"focusin":case"focusout":Ei=null;break;case"dragenter":case"dragleave":Ai=null;break;case"mouseover":case"mouseout":Pi=null;break;case"pointerover":case"pointerout":mp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pp.delete(t.pointerId)}}function Am(e,t,n,a,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[r]},t!==null&&(t=Bd(t),t!==null&&M2(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function e8(e,t,n,a,r){switch(t){case"focusin":return Ei=Am(Ei,e,t,n,a,r),!0;case"dragenter":return Ai=Am(Ai,e,t,n,a,r),!0;case"mouseover":return Pi=Am(Pi,e,t,n,a,r),!0;case"pointerover":var o=r.pointerId;return mp.set(o,Am(mp.get(o)||null,e,t,n,a,r)),!0;case"gotpointercapture":return o=r.pointerId,pp.set(o,Am(pp.get(o)||null,e,t,n,a,r)),!0}return!1}function N2(e){var t=uu(e.target);if(t!==null){var n=gp(t);if(n!==null){if(t=n.tag,t===13){if(t=FT(n),t!==null){e.blockedOn=t,sj(e.priority,function(){AT(n)});return}}else if(t===31){if(t=VT(n),t!==null){e.blockedOn=t,sj(e.priority,function(){AT(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Db(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wS(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);$_=a,n.target.dispatchEvent(a),$_=null}else return t=Bd(n),t!==null&&M2(t),e.blockedOn=n,!1;t.shift()}return!0}function MT(e,t,n){Db(e)&&n.delete(t)}function t8(){_S=!1,Ei!==null&&Db(Ei)&&(Ei=null),Ai!==null&&Db(Ai)&&(Ai=null),Pi!==null&&Db(Pi)&&(Pi=null),mp.forEach(MT),pp.forEach(MT)}function hb(e,t){e.blockedOn===t&&(e.blockedOn=null,_S||(_S=!0,kn.unstable_scheduleCallback(kn.unstable_NormalPriority,t8)))}var bb=null;function DT(e){bb!==e&&(bb=e,kn.unstable_scheduleCallback(kn.unstable_NormalPriority,function(){bb===e&&(bb=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],r=e[t+2];if(typeof a!="function"){if(wk(a||n)===null)continue;break}var o=Bd(n);o!==null&&(e.splice(t,3),t-=3,z_(o,{pending:!0,data:r,method:n.method,action:a},a,r))}}))}function Nd(e){function t(l){return hb(l,e)}Ei!==null&&hb(Ei,e),Ai!==null&&hb(Ai,e),Pi!==null&&hb(Pi,e),mp.forEach(t),pp.forEach(t);for(var n=0;n<yi.length;n++){var a=yi[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<yi.length&&(n=yi[0],n.blockedOn===null);)N2(n),n.blockedOn===null&&yi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var r=n[a],o=n[a+1],s=r[Va]||null;if(typeof o=="function")s||DT(n);else if(s){var i=null;if(o&&o.hasAttribute("formAction")){if(r=o,s=o[Va]||null)i=s.formAction;else if(wk(r)!==null)continue}else i=s.action;typeof i=="function"?n[a+1]=i:(n.splice(a,3),a-=3),DT(n)}}}function O2(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(s){return r=s})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function _k(e){this._internalRoot=e}jy.prototype.render=_k.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));var n=t.current,a=ur();P2(n,a,e,t,null,null)};jy.prototype.unmount=_k.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;P2(e.current,2,null,e,null,null),Ly(),t[Od]=null}};function jy(e){this._internalRoot=e}jy.prototype.unstable_scheduleHydration=function(e){if(e){var t=tE();e={blockedOn:null,target:e,priority:t};for(var n=0;n<yi.length&&t!==0&&t<yi[n].priority;n++);yi.splice(n,0,e),n===0&&N2(e)}};var NT=OT.version;if(NT!=="19.3.0")throw Error(K(527,NT,"19.3.0"));ut.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=nU(t),e=e!==null?zT(e):null,e=e===null?null:e.stateNode,e};var n8={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Ee,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Pm=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Pm.isDisabled&&Pm.supportsFiber))try{hp=Pm.inject(n8),ir=Pm}catch{}var Pm;Ty.createRoot=function(e,t){if(!BT(e))throw Error(K(299));var n=!1,a="",r=yA,o=xA,s=vA;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=E2(e,1,!1,null,null,n,a,null,r,o,s,O2),e[Od]=t.current,pk(e),new _k(t)};Ty.hydrateRoot=function(e,t,n){if(!BT(e))throw Error(K(299));var a=!1,r="",o=yA,s=xA,i=vA,l=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(i=n.onRecoverableError),n.formState!==void 0&&(l=n.formState)),t=E2(e,1,!0,t,n??null,a,r,l,o,s,i,O2),t.context=A2(null),n=t.current,a=ur(),a=LS(a),r=Li(a),r.callback=null,Ri(n,r,a),n=a,t.current.lanes=n,yp(t,n),Do(t),e[Od]=t.current,pk(e),new jy(t)};Ty.version="19.3.0"});var z2=Pa((Kae,V2)=>{"use strict";function F2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(F2)}catch(e){console.error(e)}}F2(),V2.exports=B2()});var gM=Pa(Fy=>{"use strict";var u7=Symbol.for("react.transitional.element"),c7=Symbol.for("react.fragment");function pM(e,t,n){var a=null;if(n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:u7,type:e,key:a,ref:t!==void 0?t:null,props:n}}Fy.Fragment=c7;Fy.jsx=pM;Fy.jsxs=pM});var Z=Pa((Gse,hM)=>{"use strict";hM.exports=gM()});var yV=Pa(bV=>{"use strict";var qf=A();function xte(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vte=typeof Object.is=="function"?Object.is:xte,Cte=qf.useState,wte=qf.useEffect,_te=qf.useLayoutEffect,Ste=qf.useDebugValue;function kte(e,t){var n=t(),a=Cte({inst:{value:n,getSnapshot:t}}),r=a[0].inst,o=a[1];return _te(function(){r.value=n,r.getSnapshot=t,uR(r)&&o({inst:r})},[e,n,t]),wte(function(){return uR(r)&&o({inst:r}),e(function(){uR(r)&&o({inst:r})})},[e]),Ste(n),n}function uR(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vte(e,n)}catch{return!0}}function $te(e,t){return t()}var Lte=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?$te:kte;bV.useSyncExternalStore=qf.useSyncExternalStore!==void 0?qf.useSyncExternalStore:Lte});var Rh=Pa((yTe,xV)=>{"use strict";xV.exports=yV()});var CV=Pa(vV=>{"use strict";var Tv=A(),Rte=Rh();function Ite(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jte=typeof Object.is=="function"?Object.is:Ite,Tte=Rte.useSyncExternalStore,Ete=Tv.useRef,Ate=Tv.useEffect,Pte=Tv.useMemo,Mte=Tv.useDebugValue;vV.useSyncExternalStoreWithSelector=function(e,t,n,a,r){var o=Ete(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Pte(function(){function l(m){if(!u){if(u=!0,c=m,m=a(m),r!==void 0&&s.hasValue){var p=s.value;if(r(p,m))return d=p}return d=m}if(p=d,jte(c,m))return p;var h=a(m);return r!==void 0&&r(p,h)?(c=m,p):(c=m,d=h)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,a,r]);var i=Tte(e,o[0],o[1]);return Ate(function(){s.hasValue=!0,s.value=i},[i]),Mte(i),i}});var _V=Pa((vTe,wV)=>{"use strict";wV.exports=CV()});var S5=k(A(),1),k5=k(z2(),1);var Ey=k(A(),1);var q2=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function H2(e,t,n=[]){if(t==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:q2(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var U2=e=>{let t="",n=!1;for(let a of e){if(a==="-"||a==="_"||a<=" "){n=t.length>0;continue}t.length===0?t+=a.toLowerCase():t+=n?a.toUpperCase():a,n=!1}return t};var G2=e=>{let t=U2(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Rp=k(A(),1);var Lp=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim();var zi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Sk(e){return e!=null}function W2(e,t={}){let n=t.attributeNames??{},a=f=>n[f]??f,r=e.size??e.width??zi.width,o=e.size??e.height??zi.height,s=e.aliases?.filter(f=>typeof f=="string"&&f.trim()!=="").map(f=>`lucide-${f}`)??[],i=[...e.name?[`lucide-${e.name}`]:[],...s],l=t.className?.split(" ").filter(Boolean)??[],u=t.includeDefaultClasses===!1?Lp(...l):Lp("lucide",...i,...l),c=t.absoluteStrokeWidth?Number(t.strokeWidth??zi["stroke-width"])*Number(e.size??e.width??zi.width)/Number(t.size??t.width??zi.width):t.strokeWidth??zi["stroke-width"];return["svg",{...Object.entries(zi).reduce((f,[m,p])=>(f[a(m)]=p,f),{}),..."color"in t&&t.color&&{[a("stroke")]:t.color},..."size"in t&&Sk(t.size)&&{[a("width")]:t.size,[a("height")]:t.size},..."width"in t&&Sk(t.width)&&{[a("width")]:t.width},..."height"in t&&Sk(t.height)&&{[a("height")]:t.height},[a("stroke-width")]:c,...u&&{[a("class")]:u},[a("viewBox")]:`0 0 ${r} ${o}`,...t.hasA11yProp===!1?{[a("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(f=>{let[m,p,h]=f,x=t.nonScalingStroke?{[a("vector-effect")]:"non-scaling-stroke",...p}:p;return h?[m,x,h]:[m,x]})]}function X2(e,t={}){return W2(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var Y2=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Ud=k(A(),1);var a8=(0,Ud.createContext)({});var Z2=()=>(0,Ud.useContext)(a8);var K2=(0,Rp.forwardRef)(({color:e,size:t,width:n,height:a,strokeWidth:r,absoluteStrokeWidth:o,nonScalingStroke:s,className:i="",children:l,iconNode:u=[],icon:c={node:u,aliases:[],size:24},...d},f)=>{let{size:m=24,strokeWidth:p=2,absoluteStrokeWidth:h=!1,nonScalingStroke:x=!1,color:b="currentColor",className:g=""}=Z2()??{},y=!!l||Y2(d),[v,C,S=[]]=X2(c,{color:e??b,width:n??t??m,height:a??t??m,strokeWidth:r??p,absoluteStrokeWidth:o??h,nonScalingStroke:s??x,className:Lp(g,i),hasA11yProp:y,attributes:d});return(0,Rp.createElement)(v,{ref:f,...C},[...S.map(([_,w])=>(0,Rp.createElement)(_,w)),...Array.isArray(l)?l:[l]])});function Ce(e,t=[],n=[]){let a=typeof e=="string"?H2(e,t,n):e,r=(0,Ey.forwardRef)(({className:o,...s},i)=>(0,Ey.createElement)(K2,{ref:i,icon:a,className:o,...s}));return a.name&&(r.displayName=G2(a.name)),r}var Q2={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};Q2.node;var Ip=Ce(Q2);var J2={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};J2.node;var Sa=Ce(J2);var eP={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};eP.node;var ia=Ce(eP);var tP={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};tP.node;var jp=Ce(tP);var nP={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};nP.node;var No=Ce(nP);var aP={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};aP.node;var Tp=Ce(aP);var rP={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};rP.node;var Oo=Ce(rP);var oP={name:"circle",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};oP.node;var Ep=Ce(oP);var sP={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};sP.node;var Ap=Ce(sP);var iP={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};iP.node;var oo=Ce(iP);var lP={name:"earth",size:24,node:[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["globe-2"]};lP.node;var qi=Ce(lP);var uP={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};uP.node;var Pp=Ce(uP);var cP={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],aliases:["file-code-2"]};cP.node;var Hi=Ce(cP);var dP={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};dP.node;var Mp=Ce(dP);var fP={name:"folder-search",size:24,node:[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]]};fP.node;var Dp=Ce(fP);var mP={name:"globe",size:24,node:[["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"}]]};mP.node;var Np=Ce(mP);var pP={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};pP.node;var Op=Ce(pP);var gP={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};gP.node;var Bp=Ce(gP);var hP={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};hP.node;var Fp=Ce(hP);var bP={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};bP.node;var Ui=Ce(bP);var yP={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};yP.node;var Iu=Ce(yP);var xP={name:"moon",size:24,node:[["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"}]]};xP.node;var Vp=Ce(xP);var vP={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]};vP.node;var Gi=Ce(vP);var CP={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};CP.node;var so=Ce(CP);var wP={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};wP.node;var Wi=Ce(wP);var _P={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};_P.node;var io=Ce(_P);var SP={name:"sun",size:24,node:[["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"}]]};SP.node;var zp=Ce(SP);var kP={name:"triangle-alert",size:24,node:[["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"}]],aliases:["alert-triangle"]};kP.node;var Xi=Ce(kP);var $P={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};$P.node;var Bo=Ce($P);var LP={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};LP.node;var qp=Ce(LP);var Qr=k(A(),1);async function Hp(e,t={}){let n=new URLSearchParams;for(let[r,o]of Object.entries(t))o!==void 0&&o!==""&&n.set(r,String(o));let a=await fetch(`${e}${n.size?`?${n}`:""}`);if(!a.ok)throw new Error(`${e}: ${a.status}`);return a.json()}async function Ay(e){let t=document.querySelector('meta[name="pitroom-token"]')?.content??"",n=await fetch(e,{method:"POST",headers:{"x-pitroom-token":t}}),a=await n.json().catch(()=>({}));if(!n.ok)throw new Error(a.error??`${e}: ${n.status}`);return a.message??"done"}var $n={stop:e=>Ay(`/api/run/${e}/stop`),discard:e=>Ay(`/api/run/${e}/discard`),stopGroup:e=>Ay(`/api/group/${encodeURIComponent(e)}/stop`),discardGroup:e=>Ay(`/api/group/${encodeURIComponent(e)}/discard`),retryGroup:e=>Hp(`/api/group/${encodeURIComponent(e)}/retry`),state:(e,t)=>Hp("/api/state",{limit:e,group:t}),run:e=>Hp(`/api/run/${e}`),history:e=>Hp("/api/history",e),stats:e=>Hp("/api/stats",{days:e})};var yC=k(A(),1);function Up(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var kk={};function la(e,t,n,a,r){if(!n&&!a&&!r&&!e)return Py(t);let o=Py(e);return t&&(o=Gp(o,t)),n&&(o=Gp(o,n)),a&&(o=Gp(o,a)),r&&(o=Gp(o,r)),o}function RP(e){if(e.length===0)return kk;if(e.length===1)return Py(e[0]);let t=Py(e[0]);for(let n=1;n<e.length;n+=1)t=Gp(t,e[n]);return t}function Py(e){return $k(e)?{...jP(e,kk)}:r8(e)}function Gp(e,t){return $k(t)?jP(t,e):o8(e,t)}function r8(e){let t={...e};for(let n in t){let a=t[n];IP(n,a)&&(t[n]=TP(a))}return t}function o8(e,t){if(!t)return e;for(let n in t){let a=t[n];switch(n){case"style":{e[n]=Up(e.style,a);break}case"className":{e[n]=Lk(e.className,a);break}default:IP(n,a)?e[n]=s8(e[n],a):e[n]=a}}return e}function IP(e,t){let n=e.charCodeAt(0),a=e.charCodeAt(1),r=e.charCodeAt(2);return n===111&&a===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function $k(e){return typeof e=="function"}function jP(e,t){return $k(e)?e(t):e??kk}function s8(e,t){return t?e?(...n)=>{let a=n[0];if(EP(a)){let o=a;Wp(o);let s=t(...n);return o.baseUIHandlerPrevented||e?.(...n),s}let r=t(...n);return e?.(...n),r}:TP(t):e}function TP(e){return e&&((...t)=>{let n=t[0];return EP(n)&&Wp(n),e(...t)})}function Wp(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Lk(e,t){return t?e?t+" "+e:t:e}function EP(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function i8(e,t){return function(a,...r){let o=new URL(e);return o.searchParams.set("code",a.toString()),r.forEach(s=>o.searchParams.append("args[]",s)),`${t} error #${a}; visit ${o} for the full message.`}}var l8=i8("https://base-ui.com/production-error","Base UI"),Ve=l8;var Yi=k(A(),1);var PP=k(A(),1),AP={};function st(e,t){let n=PP.useRef(AP);return n.current===AP&&(n.current=e(t)),n}function jr(e,t,n,a){let r=st(DP).current;return u8(r,e,t,n,a)&&NP(r,[e,t,n,a]),r.callback}function MP(e){let t=st(DP).current;return c8(t,e)&&NP(t,e),t.callback}function DP(){return{callback:null,cleanup:null,refs:[]}}function u8(e,t,n,a,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==a||e.refs[3]!==r}function c8(e,t){return e.refs.length!==t.length||e.refs.some((n,a)=>n!==t[a])}function NP(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){let a=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){let o=t[r];if(o!=null)switch(typeof o){case"function":{let s=o(n);typeof s=="function"&&(a[r]=s);break}case"object":{o.current=n;break}default:}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){let o=t[r];if(o!=null)switch(typeof o){case"function":{let s=a[r];typeof s=="function"?s():o(null);break}case"object":{o.current=null;break}default:}}}}}}var BP=k(A(),1);var OP=k(A(),1),d8=parseInt(OP.version,10);function Gd(e){return d8>=e}function Rk(e){if(!BP.isValidElement(e))return null;let t=e,n=t.props;return(Gd(19)?n?.ref:t.ref)??null}function De(){}var za=Object.freeze([]),Qe=Object.freeze({});function FP(e,t){let n={};for(let a in e){let r=e[a];if(t?.hasOwnProperty(a)){let o=t[a](r);o!=null&&Object.assign(n,o);continue}r===!0?n[`data-${a.toLowerCase()}`]="":r&&(n[`data-${a.toLowerCase()}`]=r.toString())}return n}function VP(e,t){return typeof e=="function"?e(t):e}function zP(e,t){return typeof e=="function"?e(t):e}var Ik=k(A(),1);function oe(e,t,n={}){let a=t.render;n.enabled!==!1&&(a=g8(a));let r=f8(t,n,a);if(n.enabled===!1)return null;let o=n.state??Qe;return h8(e,a,r,o)}function f8(e,t,n){let{className:a,style:r}=e,{state:o=Qe,ref:s,props:i,stateAttributesMapping:l,enabled:u=!0}=t,c=u?VP(a,o):void 0,d=u?zP(r,o):void 0,f=u?FP(o,l):Qe,m=u&&i?m8(i):void 0,p=u?Up(f,m)??{}:Qe;return typeof document<"u"&&(u?Array.isArray(s)?p.ref=MP([p.ref,Rk(n),...s]):p.ref=jr(p.ref,Rk(n),s):jr(null,null)),u?(c!==void 0&&(p.className=Lk(p.className,c)),d!==void 0&&(p.style=Up(p.style,d)),p):Qe}function m8(e){return Array.isArray(e)?RP(e):la(void 0,e)}var p8=Symbol.for("react.lazy");function g8(e){if(e?.$$typeof!==p8)return e;let t=Yi.Children.toArray(e)[0];return Yi.isValidElement(t)?t:e}function h8(e,t,n,a){if(t){if(typeof t=="function")return t(n,a);let r=la(n,t.props);return r.ref=n.ref,Yi.cloneElement(t,r)}if(e&&typeof e=="string")return b8(e,n);throw new Error(Ve(8))}function b8(e,t){return e==="button"?(0,Ik.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,Ik.createElement)("img",{alt:"",...t,key:t.key}):Yi.createElement(e,t)}function qP(e){return oe(e.defaultTagName??"div",e,e)}function HP(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=HP(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function My(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=HP(e))&&(a&&(a+=" "),a+=t);return a}var UP=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,GP=My,Wd=(e,t)=>n=>{var a;if(t?.variants==null)return GP(e,n?.class,n?.className);let{variants:r,defaultVariants:o}=t,s=Object.keys(r).map(u=>{let c=n?.[u],d=o?.[u];if(c===null)return null;let f=UP(c)||UP(d);return r[u][f]}),i=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((u,c)=>{let{class:d,className:f,...m}=c;return Object.entries(m).every(p=>{let[h,x]=p;return Array.isArray(x)?x.includes({...o,...i}[h]):{...o,...i}[h]===x})?[...u,d,f]:u},[]);return GP(e,s,l,n?.class,n?.className)};var y8=(e,t)=>{let 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},x8=(e,t)=>({classGroupId:e,validator:t}),QP=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n});var WP=[],v8="arbitrary..",C8=e=>{let t=_8(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return w8(s);let i=s.split("-"),l=i[0]===""&&i.length>1?1:0;return JP(i,l,t)},getConflictingClassGroupIds:(s,i)=>{if(i){let l=a[s],u=n[s];return l?u?y8(u,l):l:u||WP}return n[s]||WP}}},JP=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],o=n.nextPart.get(r);if(o){let u=JP(e,t+1,o);if(u)return u}let s=n.validators;if(s===null)return;let i=t===0?e.join("-"):e.slice(t).join("-"),l=s.length;for(let u=0;u<l;u++){let c=s[u];if(c.validator(i))return c.classGroupId}},w8=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(":"),a=t.slice(0,n);return a?v8+a:void 0})(),_8=e=>{let{theme:t,classGroups:n}=e;return S8(n,t)},S8=(e,t)=>{let n=QP();for(let a in e){let r=e[a];Tk(r,n,a,t)}return n},Tk=(e,t,n,a)=>{let r=e.length;for(let o=0;o<r;o++){let s=e[o];k8(s,t,n,a)}},k8=(e,t,n,a)=>{if(typeof e=="string"){$8(e,t,n);return}if(typeof e=="function"){L8(e,t,n,a);return}R8(e,t,n,a)},$8=(e,t,n)=>{let a=e===""?t:eM(t,e);a.classGroupId=n},L8=(e,t,n,a)=>{if(I8(e)){Tk(e(a),t,n,a);return}t.validators===null&&(t.validators=[]),t.validators.push(x8(n,e))},R8=(e,t,n,a)=>{let r=Object.entries(e),o=r.length;for(let s=0;s<o;s++){let[i,l]=r[s];Tk(l,eM(t,i),n,a)}},eM=(e,t)=>{let n=e,a=t.split("-"),r=a.length;for(let o=0;o<r;o++){let s=a[o],i=n.nextPart.get(s);i||(i=QP(),n.nextPart.set(s,i)),n=i}return n},I8=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,j8=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),a=Object.create(null),r=(o,s)=>{n[o]=s,t++,t>e&&(t=0,a=n,n=Object.create(null))};return{get(o){let s=n[o];if(s!==void 0)return s;if((s=a[o])!==void 0)return r(o,s),s},set(o,s){o in n?n[o]=s:r(o,s)}}};var T8=[],XP=(e,t,n,a,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:a,isExternal:r}),E8=e=>{let{prefix:t,experimentalParseClassName:n}=e,a=r=>{let o=[],s=0,i=0,l=0,u,c=r.length;for(let h=0;h<c;h++){let x=r[h];if(s===0&&i===0){if(x===":"){o.push(r.slice(l,h)),l=h+1;continue}if(x==="/"){u=h;continue}}x==="["?s++:x==="]"?s--:x==="("?i++:x===")"&&i--}let d=o.length===0?r:r.slice(l),f=d,m=!1;d.endsWith("!")?(f=d.slice(0,-1),m=!0):d.startsWith("!")&&(f=d.slice(1),m=!0);let p=u&&u>l?u-l:void 0;return XP(o,m,f,p)};if(t){let r=t+":",o=a;a=s=>s.startsWith(r)?o(s.slice(r.length)):XP(T8,!1,s,void 0,!0)}if(n){let r=a;a=o=>n({className:o,parseClassName:r})}return a},A8=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((n,a)=>{t.set(n,1e6+a)}),n=>{let a=[],r=[];for(let o=0;o<n.length;o++){let s=n[o],i=s[0]==="[",l=t.has(s);i||l?(r.length>0&&(r.sort(),a.push(...r),r=[]),a.push(s)):r.push(s)}return r.length>0&&(r.sort(),a.push(...r)),a}},P8=e=>({cache:j8(e.cacheSize),parseClassName:E8(e),sortModifiers:A8(e),postfixLookupClassGroupIds:M8(e),...C8(e)}),M8=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let a=0;a<n.length;a++)t[n[a]]=!0;return t},D8=/\s+/,N8=(e,t)=>{let{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:r,sortModifiers:o,postfixLookupClassGroupIds:s}=t,i=[],l=e.trim().split(D8),u="";for(let c=l.length-1;c>=0;c-=1){let d=l[c],{isExternal:f,modifiers:m,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:x}=n(d);if(f){u=d+(u.length>0?" "+u:u);continue}let b=!!x,g;if(b){let _=h.substring(0,x);g=a(_);let w=g&&s[g]?a(h):void 0;w&&w!==g&&(g=w,b=!1)}else g=a(h);if(!g){if(!b){u=d+(u.length>0?" "+u:u);continue}if(g=a(h),!g){u=d+(u.length>0?" "+u:u);continue}b=!1}let y=m.length===0?"":m.length===1?m[0]:o(m).join(":"),v=p?y+"!":y,C=v+g;if(i.indexOf(C)>-1)continue;i.push(C);let S=r(g,b);for(let _=0;_<S.length;++_){let w=S[_];i.push(v+w)}u=d+(u.length>0?" "+u:u)}return u},O8=(...e)=>{let t=0,n,a,r="";for(;t<e.length;)(n=e[t++])&&(a=tM(n))&&(r&&(r+=" "),r+=a);return r},tM=e=>{if(typeof e=="string")return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=tM(e[a]))&&(n&&(n+=" "),n+=t);return n},B8=(e,...t)=>{let n,a,r,o,s=l=>{let u=t.reduce((c,d)=>d(c),e());return n=P8(u),a=n.cache.get,r=n.cache.set,o=i,i(l)},i=l=>{let u=a(l);if(u)return u;let c=N8(l,n);return r(l,c),c};return o=s,(...l)=>o(O8(...l))},F8=[],Ln=e=>{let t=n=>n[e]||F8;return t.isThemeGetter=!0,t.themeKey=e,t},nM=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,aM=/^\((?:(\w[\w-]*):)?(.+)\)$/i,V8=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,z8=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,q8=/\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$/,H8=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,U8=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,G8=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zi=e=>V8.test(e),Xe=e=>!!e&&!Number.isNaN(Number(e)),Fo=e=>!!e&&Number.isInteger(Number(e)),jk=e=>e.endsWith("%")&&Xe(e.slice(0,-1)),Ls=e=>z8.test(e),rM=()=>!0,W8=e=>q8.test(e)&&!H8.test(e),Ek=()=>!1,X8=e=>U8.test(e),Y8=e=>G8.test(e),Z8=e=>!ye(e)&&!xe(e),K8=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Q8=e=>Ki(e,iM,Ek),ye=e=>nM.test(e),ju=e=>Ki(e,lM,W8),YP=e=>Ki(e,s7,Xe),J8=e=>Ki(e,cM,rM),e7=e=>Ki(e,uM,Ek),ZP=e=>Ki(e,oM,Ek),t7=e=>Ki(e,sM,Y8),Dy=e=>Ki(e,dM,X8),xe=e=>aM.test(e),Xp=e=>Tu(e,lM),n7=e=>Tu(e,uM),KP=e=>Tu(e,oM),a7=e=>Tu(e,iM),r7=e=>Tu(e,sM),Ny=e=>Tu(e,dM,!0),o7=e=>Tu(e,cM,!0),Ki=(e,t,n)=>{let a=nM.exec(e);return a?a[1]?t(a[1]):n(a[2]):!1},Tu=(e,t,n=!1)=>{let a=aM.exec(e);return a?a[1]?t(a[1]):n:!1},oM=e=>e==="position"||e==="percentage",sM=e=>e==="image"||e==="url",iM=e=>e==="length"||e==="size"||e==="bg-size",lM=e=>e==="length",s7=e=>e==="number",uM=e=>e==="family-name",cM=e=>e==="number"||e==="weight",dM=e=>e==="shadow";var i7=()=>{let e=Ln("color"),t=Ln("font"),n=Ln("text"),a=Ln("font-weight"),r=Ln("tracking"),o=Ln("leading"),s=Ln("breakpoint"),i=Ln("container"),l=Ln("spacing"),u=Ln("radius"),c=Ln("shadow"),d=Ln("inset-shadow"),f=Ln("text-shadow"),m=Ln("drop-shadow"),p=Ln("blur"),h=Ln("perspective"),x=Ln("aspect"),b=Ln("ease"),g=Ln("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...v(),xe,ye],S=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],w=()=>[xe,ye,l],R=()=>[Zi,"full","auto",...w()],$=()=>[Fo,"none","subgrid",xe,ye],j=()=>["auto",{span:["full",Fo,xe,ye]},Fo,xe,ye],M=()=>[Fo,"auto",xe,ye],I=()=>["auto","min","max","fr",xe,ye],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...w()],z=()=>[Zi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],P=()=>[i,Zi,"screen","full","dvw","lvw","svw","min","max","fit",...w()],D=()=>[Zi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],L=()=>[e,xe,ye],V=()=>[...v(),KP,ZP,{position:[xe,ye]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",a7,Q8,{size:[xe,ye]}],T=()=>[jk,Xp,ju],F=()=>["","none","full",u,xe,ye],O=()=>["",Xe,Xp,ju],Q=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[Xe,jk,KP,ZP],le=()=>["","none",p,xe,ye],ce=()=>["none",Xe,xe,ye],J=()=>["none",Xe,xe,ye],te=()=>[Xe,xe,ye],pe=()=>[Zi,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ls],breakpoint:[Ls],color:[rM],container:[Ls],"drop-shadow":[Ls],ease:["in","out","in-out"],font:[Z8],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ls],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ls],shadow:[Ls],spacing:["px",Xe],text:[Ls],"text-shadow":[Ls],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Zi,ye,xe,x]}],container:["container"],"container-type":[{"@container":["","normal","size",xe,ye]}],"container-named":[K8],columns:[{columns:[Xe,"auto",ye,xe,i]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:C()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[Fo,"auto",xe,ye]}],basis:[{basis:[Zi,"full","auto",i,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Xe,Zi,"auto","initial","none",ye]}],grow:[{grow:["",Xe,xe,ye]}],shrink:[{shrink:["",Xe,xe,ye]}],order:[{order:[Fo,"first","last","none",xe,ye]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],"inline-size":[{inline:["auto",...P()]}],"min-inline-size":[{"min-inline":["auto",...P()]}],"max-inline-size":[{"max-inline":["none",...P()]}],"block-size":[{block:["auto",...D()]}],"min-block-size":[{"min-block":["auto",...D()]}],"max-block-size":[{"max-block":["none",...D()]}],w:[{w:[i,"screen",...z()]}],"min-w":[{"min-w":[i,"screen","none",...z()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh","none",...z()]}],"font-size":[{text:["base",n,Xp,ju]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,o7,J8]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jk,ye]}],"font-family":[{font:[n7,e7,t]}],"font-features":[{"font-features":[ye]}],"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:[r,xe,ye]}],"line-clamp":[{"line-clamp":[Xe,"none",xe,YP]}],leading:[{leading:["none",o,...w()]}],"list-image":[{"list-image":["none",xe,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[Xe,"from-font","auto",xe,ju]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[Xe,"auto",xe,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"tab-size":[{tab:[Fo,xe,ye]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,ye]}],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",xe,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fo,xe,ye],radial:["",xe,ye],conic:["",Fo,xe,ye]},r7,t7]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:O()}],"border-w-x":[{"border-x":O()}],"border-w-y":[{"border-y":O()}],"border-w-s":[{"border-s":O()}],"border-w-e":[{"border-e":O()}],"border-w-bs":[{"border-bs":O()}],"border-w-be":[{"border-be":O()}],"border-w-t":[{"border-t":O()}],"border-w-r":[{"border-r":O()}],"border-w-b":[{"border-b":O()}],"border-w-l":[{"border-l":O()}],"divide-x":[{"divide-x":O()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Xe,xe,ye]}],"outline-w":[{outline:["",Xe,Xp,ju]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","inner","none",c,Ny,Dy]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",d,Ny,Dy]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[Xe,ju]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":O()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",f,Ny,Dy]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[Xe,xe,ye]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"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":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[xe,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"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":v()}],"mask-image-conic-pos":[{"mask-conic":[Xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,ye]}],filter:[{filter:["","none",xe,ye]}],blur:[{blur:le()}],brightness:[{brightness:[Xe,xe,ye]}],contrast:[{contrast:[Xe,xe,ye]}],"drop-shadow":[{"drop-shadow":["","none",m,Ny,Dy]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",Xe,xe,ye]}],"hue-rotate":[{"hue-rotate":[Xe,xe,ye]}],invert:[{invert:["",Xe,xe,ye]}],saturate:[{saturate:[Xe,xe,ye]}],sepia:[{sepia:["",Xe,xe,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,ye]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[Xe,xe,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Xe,xe,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Xe,xe,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Xe,xe,ye]}],"backdrop-invert":[{"backdrop-invert":["",Xe,xe,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Xe,xe,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Xe,xe,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Xe,xe,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Xe,"initial",xe,ye]}],ease:[{ease:["linear","initial",b,xe,ye]}],delay:[{delay:[Xe,xe,ye]}],animate:[{animate:["none",g,xe,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,xe,ye]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[xe,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],zoom:[{zoom:[Fo,xe,ye]}],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"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",xe,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":L()}],"scrollbar-track-color":[{"scrollbar-track":L()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",xe,ye]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[Xe,Xp,ju,YP]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],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":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","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-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","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-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","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-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","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-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var fM=B8(i7);function ne(...e){return fM(My(e))}var l7=Wd("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function Yp({className:e,variant:t="default",render:n,...a}){return qP({defaultTagName:"span",props:la({className:ne(l7({variant:t}),e)},a),render:n,state:{slot:"badge",variant:t}})}var Rs=e=>(e=Math.max(0,Math.round(e)),e>=3600?`${Math.floor(e/3600)}h ${String(Math.floor(e%3600/60)).padStart(2,"0")}m`:e>=60?`${Math.floor(e/60)}m ${String(e%60).padStart(2,"0")}s`:`${e}s`),Is=e=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${Math.round(e/1e3)}k`:String(e),Tr=e=>`$${e.toFixed(2)}`;function Oy(e){let t=(Date.now()-Date.parse(e))/1e3;return t<45?"just now":t<3600?`${Math.round(t/60)} min ago`:t<86400?`${Math.round(t/3600)} h ago`:t<86400*14?`${Math.round(t/86400)} d ago`:new Date(e).toLocaleDateString([],{month:"short",day:"numeric"})}function By(e){let t=/^(\S+)(?: \((.*)\))?$/.exec(e);return{backend:t?.[1]??e,model:t?.[2]}}var mM={opencode:"var(--info)",codex:"var(--success)",claude:"var(--brand)",gemini:"var(--gemini)"};var js=k(Z(),1);function Xd({worker:e,backend:t,model:n}){let a=e?By(e):{backend:t??"",model:n};return(0,js.jsxs)(Yp,{variant:"outline",className:"gap-1.5 pl-1.5",children:[(0,js.jsx)("span",{className:"size-1.5 rounded-full",style:{background:mM[a.backend]??"var(--muted-foreground)"}}),a.backend,a.model&&(0,js.jsx)("span",{className:"font-normal text-muted-foreground",children:a.model.split("/").pop()})]})}var bM={AGREE:"agrees",PARTIAL:"partly agrees",DISAGREE:"disagrees",UNCLEAR:"unclear"};function yM({verdict:e}){if(e.startsWith("AUDIT "))return(0,js.jsx)(Ak,{audit:e.slice(6),own:!0});let t=/PASS/.test(e)&&/APPROVED/.test(e),n=t?"Approved":/FAIL/.test(e)?"Spec fail":"Needs fixes";return(0,js.jsx)(Yp,{className:ne("border",t?"border-success/30 bg-success/10 text-success":"border-destructive/30 bg-destructive/10 text-destructive"),children:n})}function Ak({audit:e,own:t}){let n=e==="PENDING",a=e==="AGREE",r=e==="DISAGREE",o=n?"audit running":e==="FAILED"?"audit failed":t?`Audit ${bM[e]??e.toLowerCase()}`:`audited \xB7 ${bM[e]??e.toLowerCase()}`;return(0,js.jsx)(Yp,{variant:n||e==="FAILED"?"secondary":void 0,title:"Another worker re-checked this answer",className:ne(!n&&e!=="FAILED"&&"border",a&&"border-success/30 bg-success/10 text-success",r&&"border-destructive/30 bg-destructive/10 text-destructive",!n&&!a&&!r&&e!=="FAILED"&&"border-warning/30 bg-warning/10 text-warning"),children:o})}function Qi({children:e,tone:t}){return(0,js.jsx)(Yp,{variant:"secondary",className:ne(t==="good"&&"bg-success/10 text-success"),children:e})}var Lt=k(A(),1),KO=k(wo(),1);var Ag=k(Z(),1),Yo=k(A(),1);var xM=k(A(),1),Yd=(0,xM.createContext)({});var vM=k(A(),1);function Ji(e){let t=(0,vM.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Vy=k(A(),1);var CM=typeof window<"u";var el=CM?Vy.useLayoutEffect:Vy.useEffect;var U$=k(Z(),1),VN=k(A(),1),fl=k(A(),1);var wM=k(A(),1),tl=(0,wM.createContext)(null);var BN=k(Z(),1);function Eu(e,t){e.indexOf(t)===-1&&e.push(t)}function nl(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Rn=(e,t,n)=>n>t?t:n<e?e:n;var Ts=()=>{},qa=()=>{};var Kn={};var Au=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var Zp=e=>typeof e=="object"&&e!==null;var Pu=e=>/^0[^.\s]+$/u.test(e);function Kp(e){let t;return()=>(t===void 0&&(t=e()),t)}var nn=e=>e;var lo=(...e)=>e.reduce((t,n)=>a=>n(t(a)));var Vo=(e,t,n)=>{let a=t-e;return a?(n-e)/a:1};var zo=class{constructor(){this.subscriptions=[]}add(t){return Eu(this.subscriptions,t),()=>this.remove(t)}remove(t){nl(this.subscriptions,t)}notify(t,n,a){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,a);else for(let o=0;o<r;o++){let s=this.subscriptions[o];s&&s(t,n,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var bn=e=>e*1e3,Nn=e=>e/1e3;var Qp=(e,t)=>t?e*(1e3/t):0;var _M=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,d7=1e-7,f7=12;function m7(e,t,n,a,r){let o,s,i=0;do s=t+(n-t)/2,o=_M(s,a,r)-e,o>0?n=s:t=s;while(Math.abs(o)>d7&&++i<f7);return s}function al(e,t,n,a){if(e===t&&n===a)return nn;let r=o=>m7(o,0,1,e,n);return o=>o===0||o===1?o:_M(r(o),t,a)}var zy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var qy=e=>t=>1-e(1-t);var Hy=al(.33,1.53,.69,.99),Zd=qy(Hy),Jp=zy(Zd);var eg=e=>e>=1?1:(e*=2)<1?.5*Zd(e):.5*(2-Math.pow(2,-10*(e-1)));var tg=e=>1-Math.sin(Math.acos(e)),ng=qy(tg),ag=zy(tg);var Pk=al(.42,0,1,1),Mk=al(0,0,.58,1),Kd=al(.42,0,.58,1);var Dk=e=>Array.isArray(e)&&typeof e[0]!="number";var rg=e=>Array.isArray(e)&&typeof e[0]=="number";var SM={linear:nn,easeIn:Pk,easeInOut:Kd,easeOut:Mk,circIn:tg,circInOut:ag,circOut:ng,backIn:Zd,backInOut:Jp,backOut:Hy,anticipate:eg},p7=e=>typeof e=="string",Uy=e=>{if(rg(e)){qa(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,a,r]=e;return al(t,n,a,r)}else if(p7(e))return qa(SM[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),SM[e];return e};var Mt={delta:0,timestamp:0,isProcessing:!1};var Gy;function g7(){Gy=void 0}var wt={now:()=>(Gy===void 0&&wt.set(Mt.isProcessing||Kn.useManualTiming?Mt.timestamp:performance.now()),Gy),set:e=>{Gy=e,queueMicrotask(g7)}};var qo=e=>Math.round(e*1e5)/1e5;var kM=e=>t=>typeof t=="string"&&t.startsWith(e),Wy=kM("--"),h7=kM("var(--"),Qd=e=>h7(e)?b7.test(e.split("/*")[0].trim()):!1,b7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Nk(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var Ho={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Es={...Ho,transform:e=>Rn(0,1,e)},og={...Ho,default:1};var Jd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $M(e){return e==null}var LM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var ef=(e,t)=>n=>!!(typeof n=="string"&&LM.test(n)&&n.startsWith(e)||t&&!$M(n)&&Object.prototype.hasOwnProperty.call(n,t)),Xy=(e,t,n)=>a=>{if(typeof a!="string")return a;let[r,o,s,i]=a.match(Jd);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var y7=e=>Rn(0,255,e),Ok={...Ho,transform:e=>Math.round(y7(e))},Uo={test:ef("rgb","red"),parse:Xy("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:a=1})=>"rgba("+Ok.transform(e)+", "+Ok.transform(t)+", "+Ok.transform(n)+", "+qo(Es.transform(a))+")"};function x7(e){let t="",n="",a="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),a=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),a=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,a+=a,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(a,16),alpha:r?parseInt(r,16)/255:1}}var sg={test:ef("#"),parse:x7,transform:Uo.transform};var ig=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Er=ig("deg"),ua=ig("%"),me=ig("px"),Bk=ig("vh"),Fk=ig("vw"),Yy={...ua,parse:e=>ua.parse(e)/100,transform:e=>ua.transform(e*100)};var rl={test:ef("hsl","hue"),parse:Xy("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+ua.transform(qo(t))+", "+ua.transform(qo(n))+", "+qo(Es.transform(a))+")"};var Jt={test:e=>Uo.test(e)||sg.test(e)||rl.test(e),parse:e=>Uo.test(e)?Uo.parse(e):rl.test(e)?rl.parse(e):sg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Uo.transform(e):rl.transform(e),getAnimatableNone:e=>{let t=Jt.parse(e);return t.alpha=0,Jt.transform(t)}};var RM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var jM=new RegExp(Jd.source),TM=new RegExp(RM.source,"i");function v7(e){return isNaN(e)&&typeof e=="string"&&(jM.test(e)||TM.test(e))}var EM="number",AM="color",C7="var",w7="var(",IM="${}",_7=/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 PM(e){let t=e.toString();return jM.test(t)||TM.test(t)}function tf(e){let t=e.toString(),n=[],a={color:[],number:[],var:[]},r=[],o=0,i=t.replace(_7,l=>(Jt.test(l)?(a.color.push(o),r.push(AM),n.push(Jt.parse(l))):l.startsWith(w7)?(a.var.push(o),r.push(C7),n.push(l)):(a.number.push(o),r.push(EM),n.push(parseFloat(l))),++o,IM)).split(IM);return{values:n,split:i,indexes:a,types:r}}function S7(e){return tf(e).values}function MM({split:e,types:t}){let n=e.length;return a=>{let r="";for(let o=0;o<n;o++)if(r+=e[o],a[o]!==void 0){let s=t[o];s===EM?r+=qo(a[o]):s===AM?r+=Jt.transform(a[o]):r+=a[o]}return r}}function k7(e){return MM(tf(e))}var $7=e=>typeof e=="number"?0:Jt.test(e)?Jt.getAnimatableNone(e):e,L7=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:$7(e);function R7(e){let t=tf(e);return MM(t)(t.values.map((a,r)=>L7(a,t.split[r])))}var an={test:v7,parse:S7,createTransformer:k7,getAnimatableNone:R7};function Vk(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 DM({hue:e,saturation:t,lightness:n,alpha:a}){e/=360,t/=100,n/=100;let r=0,o=0,s=0;if(!t)r=o=s=n;else{let i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=Vk(l,i,e+1/3),o=Vk(l,i,e),s=Vk(l,i,e-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:a}}function nf(e,t){return n=>n>0?t:e}var Ue=(e,t,n)=>e+(t-e)*n;var zk=(e,t,n)=>{let a=e*e,r=n*(t*t-a)+a;return r<0?0:Math.sqrt(r)},I7=[sg,Uo,rl],j7=e=>I7.find(t=>t.test(e));function NM(e){let t=j7(e);if(!t)return Ts(!1,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!1;let n=t.parse(e);return t===rl&&(n=DM(n)),n}var qk=(e,t)=>{let n=NM(e),a=NM(t);if(!n||!a)return nf(e,t);let r={...n};return o=>(r.red=zk(n.red,a.red,o),r.green=zk(n.green,a.green,o),r.blue=zk(n.blue,a.blue,o),r.alpha=Ue(n.alpha,a.alpha,o),Uo.transform(r))};var Zy=new Set(["none","hidden"]);function OM(e,t){return Zy.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function T7(e,t){return n=>Ue(e,t,n)}function Ky(e){return typeof e=="number"?T7:typeof e=="string"?Qd(e)?nf:Jt.test(e)?qk:P7:Array.isArray(e)?BM:typeof e=="object"?Jt.test(e)?qk:E7:nf}function BM(e,t){let n=[...e],a=n.length,r=e.map((o,s)=>Ky(o)(o,t[s]));return o=>{for(let s=0;s<a;s++)n[s]=r[s](o);return n}}function E7(e,t){let n={...e,...t},a={};for(let r in n)e[r]!==void 0&&t[r]!==void 0&&(a[r]=Ky(e[r])(e[r],t[r]));return r=>{for(let o in a)n[o]=a[o](r);return n}}function A7(e,t){let n=[],a={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let o=t.types[r],s=e.indexes[o][a[o]],i=e.values[s]??0;n[r]=i,a[o]++}return n}var P7=(e,t)=>{let n=an.createTransformer(t),a=tf(e),r=tf(t);return a.indexes.var.length===r.indexes.var.length&&a.indexes.color.length===r.indexes.color.length&&a.indexes.number.length>=r.indexes.number.length?Zy.has(e)&&!r.values.length||Zy.has(t)&&!a.values.length?OM(e,t):lo(BM(A7(a,r),r.values),n):(Ts(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),nf(e,t))};var FM=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function M7(e,t){let n=FM.exec(e);if(!n)return;let a=FM.exec(t);if(!a||n[2]!==a[2])return;let r=n[2],o=parseFloat(n[1]),s=parseFloat(a[1]);return i=>qo(Ue(o,s,i))+r}function af(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return Ue(e,t,n);if(typeof e=="string"&&typeof t=="string"){let r=M7(e,t);if(r)return r}return Ky(e)(e,t)}var lg=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function VM(e){let t=new Set,n=new Set,a=!1,r=!1,o=new Set,s={delta:0,timestamp:0,isProcessing:!1};function i(u){o.has(u)&&(n.add(u),e()),u(s)}let l={schedule:(u,c=!1,d=!1)=>{let m=d&&a?t:n;return c&&o.add(u),m.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(s=u,a){r=!0;return}a=!0;let c=t;t=n,n=c,t.forEach(i),t.clear(),a=!1,r&&(r=!1,l.process(u))}};return l}var D7=40;function Qy(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let a=!1,r=!0,o=()=>a=!0,s=lg.reduce((y,v)=>(y[v]=VM(o),y),{}),{setup:i,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:m,postRender:p}=s,h=()=>{let y=Kn.useManualTiming,v=y?n.timestamp:performance.now();a=!1,y||(n.delta=r?1e3/60:Math.max(Math.min(v-n.timestamp,D7),1)),n.timestamp=v,n.isProcessing=!0,i.process(n),l.process(n),u.process(n),c.process(n),d.process(n),f.process(n),m.process(n),p.process(n),n.isProcessing=!1,a&&t&&(r=!1,e(h))},x=()=>{a=!0,r=!0,n.isProcessing||e(h)};return{schedule:lg.reduce((y,v)=>{let C=s[v];return y[v]=(S,_=!1,w=!1)=>(a||x(),C.schedule(S,_,w)),y},{}),cancel:y=>{for(let v=0;v<lg.length;v++)s[lg[v]].cancel(y)},state:n,steps:s}}var{schedule:ze,cancel:Ha,steps:ug}=Qy(typeof requestAnimationFrame<"u"?requestAnimationFrame:nn,!0,Mt);var zM=e=>{let t=({timestamp:n})=>e(n);return{start:(n=!0)=>ze.update(t,n),stop:()=>Ha(t),now:()=>Mt.isProcessing?Mt.timestamp:wt.now()}};var Jy=(e,t,n=10)=>{let a="",r=Math.max(Math.round(t/n),2);for(let o=0;o<r;o++)a+=Math.round(e(o/(r-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`};function rf(e,t=50,n=2e4,a){let r=0,o=e.next(r);for(a?.push(o.value);!o.done&&r<n;)r+=t,o=e.next(r),a?.push(o.value);return r>=n?1/0:r}function qM(e,t=100,n){let a=n({...e,keyframes:[0,t]}),r=Math.min(rf(a),2e4);return{type:"keyframes",ease:o=>a.next(r*o).value/t,duration:Nn(r)}}var On={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},HM=e=>e<0?1/Math.max(1+e,On.minDamping):Math.max(1-e,On.minDamping);function UM(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),a=e-n,r=e+n,o=2*n*Math.exp(-t)*(1+t);return GM(s=>r*Math.exp(-a*s)-a*Math.exp(-r*s)-o,s=>Math.exp(-r*s)-Math.exp(-a*s),t)/t}function Wk(e,t){return e*Math.sqrt(1-t*t)}var N7=12;function GM(e,t,n){let a=n;for(let r=1;r<N7;r++)a=a-e(a)/t(a);return a}var Uk=.001;function O7({duration:e=On.duration,bounce:t=On.bounce}){let n,a;Ts(e<=bn(On.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=HM(t);e=Rn(On.minDuration,On.maxDuration,Nn(e)),r<1?(n=u=>{let c=u*r,d=c*e,f=Wk(u,r),m=Math.exp(-d);return Uk-c/f*m},a=u=>{let d=u*r*e,f=r*r*u*u*e,m=Math.exp(-d),p=Wk(u*u,r);return(-n(u)+Uk>0?-1:1)*-f*m/p}):(n=u=>{let c=Math.exp(-u*e),d=u*e+1;return-Uk+c*d},a=u=>{let c=Math.exp(-u*e),d=-u*(e*e);return c*d});let o=5/e,s=GM(n,a,o),i=s*UM(r,s*e),l=i*i;return{stiffness:l,damping:r*2*Math.sqrt(l),duration:bn(e)}}var Xk=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Gk(e,t){if(Xk(e,t))return e}function B7(e){let t=Gk(e.stiffness),n=Gk(e.damping,!0),a=Gk(e.mass),r={...e,stiffness:t??On.stiffness,damping:n??On.damping,mass:a??On.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??a)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(r.isTimeDefined){if(e.visualDuration){let o=HM(e.bounce||0),s=2*Math.PI/(e.visualDuration*1.2)*UM(o,2*Math.PI/1.2);r.stiffness=s*s,r.damping=2*o*Math.sqrt(r.stiffness)}else Object.assign(r,O7(r)),r.isResolvedFromDuration=!0;(!Xk(r.stiffness)||!Xk(r.damping,!0))&&(r.stiffness=On.stiffness,r.damping=On.damping)}return r}function of(e=On.visualDuration,t=On.bounce){let n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,a=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:s,damping:i,mass:l,duration:u,isResolvedFromDuration:c,isTimeDefined:d}=B7({...n}),f=_=>d?0:-Nn(_),m=i/(2*Math.sqrt(s*l)),p=Nn(Math.sqrt(s/l)),h=m*p,x={target:r,delta:r-a,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},b=()=>{let _=Math.abs(x.delta)<5;x.restSpeed=n.restSpeed||(_?On.restSpeed.granular:On.restSpeed.default),x.restDelta=n.restDelta||(_?On.restDelta.granular:On.restDelta.default)};b();let g,y,v;if(m<1){let _=Wk(p,m),w={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};v=()=>{w.A=(x.velocity+h*x.delta)/_,w.sinC=h*w.A+x.delta*_,w.cosC=h*x.delta-w.A*_};let R=$=>{$!==w.t&&(w.t=$,w.env=Math.exp(-h*$),w.sin=Math.sin(_*$),w.cos=Math.cos(_*$))};g=$=>(R($),x.target-w.env*(w.A*w.sin+x.delta*w.cos)),y=$=>(R($),w.env*(w.sinC*w.sin+w.cosC*w.cos))}else if(m===1){g=w=>x.target-Math.exp(-p*w)*(x.delta+(x.velocity+p*x.delta)*w);let _={C:0};v=()=>{_.C=x.velocity+p*x.delta},y=w=>Math.exp(-p*w)*(p*_.C*w-x.velocity)}else{let _=p*Math.sqrt(m*m-1),w=h-_,R=h+_,$=d?1/0:300/_,j=(I,N)=>Math.exp(N>$?-I*$-h*(N-$):-I*N),M={S:0,F:0};v=()=>{let I=(x.velocity+h*x.delta)/_;M.S=(x.delta+I)/2,M.F=(x.delta-I)/2},g=I=>x.target-M.S*j(w,I)-M.F*j(R,I),y=I=>w*M.S*j(w,I)+R*M.F*j(R,I)}v();let C=c&&u||null,S={calculatedDuration:C,retarget:(_,w)=>{x.target=_[_.length-1],x.delta=x.target-_[0],x.velocity=f(w),n.restSpeed&&n.restDelta||b(),S.calculatedDuration=C,o.done=!1,v()},velocity:_=>bn(y(_)),next:_=>{let w=g(_);if(c)o.done=_>=u;else{let R=bn(y(_));o.done=Math.abs(R)<=x.restSpeed&&Math.abs(x.target-w)<=x.restDelta}return o.value=o.done?x.target:w,o},toString:()=>{let _=Math.min(rf(S),2e4),w=Jy(R=>S.next(_*R).value,_,30);return _+"ms "+w},toTransition:()=>{}};return S}of.applyToOptions=e=>{let t=qM(e,100,of);return e.ease=t.ease,e.duration=bn(t.duration),e.type="keyframes",e};function cg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:a=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:i,max:l,restDelta:u=.5,restSpeed:c}){let d=e[0],f={done:!1,value:d},m=_=>_<i||_>l,p=_=>i===void 0?l:l===void 0||Math.abs(i-_)<Math.abs(l-_)?i:l,h=n*t,x=d+h,b=s===void 0?x:s(x);b!==x&&(h=b-d);let g=_=>-h*Math.exp(-_/a),y=_=>{let w=g(_);f.done=Math.abs(w)<=u,f.value=f.done?b:b+w},v,C,S=_=>{m(f.value)&&(v=_,C=of({keyframes:[f.value,p(f.value)],velocity:-g(_)/a*1e3,damping:r,stiffness:o,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:_=>{let w=!1;return!C&&v===void 0&&(w=!0,y(_),S(_)),v!==void 0&&_>=v?C.next(_-v):(!w&&y(_),f)}}}function F7(e,t,n){let a=[],r=n||Kn.mix||af,o=e.length-1;for(let s=0;s<o;s++){let i=r(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||nn:t;i=lo(l,i)}a.push(i)}return a}function WM(e,t,{clamp:n=!0,ease:a,mixer:r}={}){let o=e.length;if(qa(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=F7(t,a,r),l=i.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);let f=Vo(e[d],e[d+1],c);return i[d](f)};return n?c=>u(Rn(e[0],e[o-1],c)):u}function XM(e,t){let n=e[e.length-1];for(let a=1;a<=t;a++){let r=Vo(0,t,a);e.push(Ue(n,1,r))}}function YM(e){let t=[0];return XM(t,e.length-1),t}function ZM(e,t){return e.map(n=>n*t)}function V7(e,t){return e.map(()=>t||Kd).splice(0,e.length-1)}function Mu({duration:e=300,keyframes:t,times:n,ease:a="easeInOut"}){let r=Dk(a)?a.map(Uy):Uy(a)||Kd,o={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(r)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[l,u]=t,c=l===u?void 0:(Kn.mix||af)(l,u);return{calculatedDuration:e,next:d=>(o.value=c?c(r(e>0?Rn(0,1,d/e):1)):u,o.done=d>=e,o)}}let s=ZM(n&&n.length===t.length?n:YM(t),e),i=WM(s,t,{ease:Array.isArray(r)?r:V7(t,r)});return{calculatedDuration:e,next:l=>(o.value=i(l),o.done=l>=e,o)}}var z7=5;function q7(e,t,n){let a=Math.max(t-z7,0);return Qp(n-e(a),t-a)}function KM(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):q7(a=>e.next(a).value,t,e.next(t).value)}var H7=e=>e!==null;function ol(e,{repeat:t,repeatType:n="loop"},a,r=1){let o=e.filter(H7),i=r<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||a===void 0?o[i]:a}var U7={decay:cg,inertia:cg,tween:Mu,keyframes:Mu,spring:of};function ex(e){typeof e.type=="string"&&(e.type=U7[e.type])}function QM(e,t){return{kind:e,animation:t,timestamp:wt.now(),frameTimestamp:Mt.timestamp,frameIsProcessing:Mt.isProcessing}}function tx(e,t,n){let a=globalThis.__MOTION_INSPECT__;if(a)try{a({...QM("animation-start",e),options:n?{...t,...n}:t})}catch{}}function JM(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...QM("layout-animation-start",e),node:t})}catch{}}var sl=class{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,n){return this.finished.then(t,n)}};var G7=e=>e/100,As=class extends sl{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=()=>{let{motionValue:n}=this.options;n&&n.updatedAt!==wt.now()&&this.tick(wt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause(),tx(this,this.options)}initAnimation(){let{options:t}=this;ex(t);let{type:n=Mu,repeat:a=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=t,{keyframes:i}=t,l=n||Mu;l!==Mu&&typeof i[0]!="number"&&(this.mixKeyframes=lo(G7,af(i[0],i[1])),i=[0,100]);let u=l(i===t.keyframes?t:{...t,keyframes:i});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...i].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=rf(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(a+1)-r,this.generator=u}updateTime(t){let n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){let{generator:a,totalDuration:r,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:l}=this;if(this.startTime===null)return a.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:m,type:p,onUpdate:h,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);let b=this.currentTime-u*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?b<0:b>r;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,v=a;if(d){let w=Math.min(this.currentTime,r)/i,R=Math.floor(w),$=w%1;!$&&w>=1&&($=1),$===1&&R--,R=Math.min(R,d+1),!!(R%2)&&(f==="reverse"?($=1-$,m&&($-=m/i)):f==="mirror"&&(v=s)),y=Rn(0,1,$)*i}let C;g?(this.delayState.value=c[0],C=this.delayState):C=v.next(y),o&&!g&&(C.value=o(C.value));let{done:S}=C;!g&&l!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return _&&p!==cg&&(C.value=ol(c,this.options,x,this.speed)),h&&h(C.value),_&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return Nn(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+Nn(t)}get time(){return Nn(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(){return KM(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(wt.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Nn(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=zM,startTime:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();let 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(wt.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)}};var W7=new Set(["brightness","contrast","saturate","opacity"]);function X7(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[a]=n.match(Jd)||[];if(!a)return e;let r=n.replace(a,""),o=W7.has(t)?1:0;return a!==n&&(o*=100),t+"("+o+r+")"}var Y7=/\b([a-z-]*)\(.*?\)/gu,dg={...an,getAnimatableNone:e=>{let t=e.match(Y7);return t?t.map(X7).join(" "):e}};var fg={...an,getAnimatableNone:e=>{let t=an.parse(e);return an.createTransformer(e)(t.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}};var Yk={...Ho,transform:Math.round};var eD={rotate:Er,pathRotation:Er,rotateX:Er,rotateY:Er,rotateZ:Er,scale:og,scaleX:og,scaleY:og,scaleZ:og,skew:Er,skewX:Er,skewY:Er,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:Es,originX:Yy,originY:Yy,originZ:me};var Du={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,inset:me,insetBlock:me,insetBlockStart:me,insetBlockEnd:me,insetInline:me,insetInlineStart:me,insetInlineEnd:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,paddingBlock:me,paddingBlockStart:me,paddingBlockEnd:me,paddingInline:me,paddingInlineStart:me,paddingInlineEnd:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,marginBlock:me,marginBlockStart:me,marginBlockEnd:me,marginInline:me,marginInlineStart:me,marginInlineEnd:me,fontSize:me,backgroundPositionX:me,backgroundPositionY:me,...eD,zIndex:Yk,fillOpacity:Es,strokeOpacity:Es,numOctaves:Yk};var Z7={...Du,color:Jt,backgroundColor:Jt,outlineColor:Jt,fill:Jt,stroke:Jt,borderColor:Jt,borderTopColor:Jt,borderRightColor:Jt,borderBottomColor:Jt,borderLeftColor:Jt,filter:dg,WebkitFilter:dg,mask:fg,WebkitMask:fg},nx=e=>Z7[e];var K7=new Set([dg,fg]);function sf(e,t){let n=nx(e);return K7.has(n)||(n=an),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function tD(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Nu=e=>e*180/Math.PI,Zk=e=>{let t=Nu(Math.atan2(e[1],e[0]));return Kk(t)},Q7={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Zk,rotateZ:Zk,skewX:e=>Nu(Math.atan(e[1])),skewY:e=>Nu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Kk=e=>(e=e%360,e<0&&(e+=360),e),nD=Zk,aD=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),rD=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),J7={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:aD,scaleY:rD,scale:e=>(aD(e)+rD(e))/2,rotateX:e=>Kk(Nu(Math.atan2(e[6],e[5]))),rotateY:e=>Kk(Nu(Math.atan2(-e[2],e[0]))),rotateZ:nD,rotate:nD,skewX:e=>Nu(Math.atan(e[4])),skewY:e=>Nu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ou(e){return e.includes("scale")?1:0}function ax(e,t){if(!e||e==="none")return Ou(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),a,r;if(n)a=J7,r=n;else{let i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=Q7,r=i}if(!r)return Ou(t);let o=a[t],s=r[1].split(",").map(eW);return typeof o=="function"?o(s):s[o]}var oD=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return ax(n,t)};function eW(e){return parseFloat(e.trim())}var Go=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ua=new Set([...Go,"pathRotation"]);var Qk=e=>e===Ho||e===me,tW=new Set(["x","y","z"]),nW=Go.filter(e=>!tW.has(e));function iD(e){let t=[];return nW.forEach(n=>{let a=e.getValue(n);if(a!==void 0){let r=a.get(),o=n.startsWith("scale")?1:0;if(r===o)return;t.push([n,r]),a.set(o)}}),t}var lD=new Set(["bottom","right"]);function sD(e,t,n,a,r,o){let s=parseFloat(e);if(!isNaN(s))return s;let{min:i,max:l}=t()[n],u=l-i;return o==="border-box"?u:u-parseFloat(a)-parseFloat(r)}var il={width:({width:e,paddingLeft:t="0",paddingRight:n="0",boxSizing:a},r)=>sD(e,r,"x",t,n,a),height:({height:e,paddingTop:t="0",paddingBottom:n="0",boxSizing:a},r)=>sD(e,r,"y",t,n,a),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>ax(e,"x"),y:({transform:e})=>ax(e,"y")};il.translateX=il.x;il.translateY=il.y;var Bu=new Set,Jk=!1,e$=!1,t$=!1;function uD(){if(e$){let e=[],t=new Set,n=new Set;Bu.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),lD.has(r.name)&&n.add(r.element))});let a=new Map;n.forEach(r=>{let o=iD(r);o.length&&(a.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let o=a.get(r);o&&o.forEach(([s,i])=>{r.getValue(s)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}e$=!1,Jk=!1,Bu.forEach(e=>e.complete(t$)),Bu.clear()}function cD(){Bu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(e$=!0)})}function dD(){t$=!0,cD(),uD(),t$=!1}function aW(e,t,n){if(typeof e=="string"){if(Au(e)||Pu(e))return parseFloat(e);if(!an.test(e)&&an.test(n))return sf(t,n)}return e??void 0}var ll=class{constructor(t,n,a,r,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=a,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Bu.add(this),Jk||(Jk=!0,ze.read(cD),ze.resolveKeyframes(uD))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:n,element:a,motionValue:r}=this;if(t[0]===null){let o=r?.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(a&&n){let i=aW(a.readValue(n,s),n,s);i!==void 0&&(t[0]=i)}t[0]===void 0&&(t[0]=s),r&&o===void 0&&r.set(t[0])}tD(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Bu.delete(this)}cancel(){this.state==="scheduled"&&(Bu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var fD=e=>e.startsWith("--");function rx(e,t,n){fD(t)?e.style.setProperty(t,n):e.style[t]=n}var mD={};function ox(e,t){let n=Kp(e);return()=>mD[t]??n()}var pD=ox(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var sx=ox(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Fu=([e,t,n,a])=>`cubic-bezier(${e}, ${t}, ${n}, ${a})`;var n$={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fu([0,.65,.55,1]),circOut:Fu([.55,0,1,.45]),backIn:Fu([.31,.01,.66,-.59]),backOut:Fu([.33,1.53,.69,.99])};function a$(e,t){if(e)return typeof e=="function"?sx()?Jy(e,t):"ease-out":rg(e)?Fu(e):Array.isArray(e)?e.map(n=>a$(n,t)||n$.easeOut):n$[e]}function gD(e,t,n,{delay:a=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:i="easeOut",times:l}={},u=void 0){let c={[t]:n};l&&(c.offset=l);let d=a$(i,r);Array.isArray(d)&&(c.easing=d);let f={delay:a,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function ix(e){return typeof e=="function"&&"applyToOptions"in e}function hD({type:e,...t}){return ix(e)&&sx()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var lf=class extends sl{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:n,name:a,keyframes:r,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:i,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,qa(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=hD(t);this.animation=gD(n,a,r,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){let c=ol(r,this.options,i,this.speed);this.updateMotionValue&&this.updateMotionValue(c),rx(n,a,c),this.animation.cancel()}l?.(),this.notifyFinished()},tx(this,t,u)}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;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return Nn(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+Nn(t)}get time(){return Nn(Number(this.animation.currentTime)||0)}set time(t){let 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,onAttach:n,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&pD()?(this.animation.timeline=t,n?.(this.animation),nn):a(this)}};var bD={anticipate:eg,backInOut:Jp,circInOut:ag};function rW(e){return e in bD}function yD(e){typeof e.ease=="string"&&rW(e.ease)&&(e.ease=bD[e.ease])}var r$=10,lx=class extends lf{constructor(t){yD(t),ex(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:n,onUpdate:a,onComplete:r,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}let i=new As({...s,autoplay:!1}),l=Math.max(r$,wt.now()-this.startTime),u=Rn(0,r$,l-r$),c=i.sample(l).value,{name:d}=this.options;o&&d&&rx(o,d,c),n.setWithVelocity(i.sample(Math.max(0,l-u)).value,c,u),i.stop()}};var o$=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(an.test(e)||e==="0")&&!e.startsWith("url("));function oW(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function xD(e,t,n,a){let r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;let o=e[e.length-1],s=o$(r,t),i=o$(o,t);return!s||!i?(s!==i&&Ts(!1,`You are trying to animate ${t} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!1):oW(e)||(n==="spring"||ix(n))&&a}function mg(e){e.duration=0,e.type="keyframes"}var pg=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);var sW=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function vD(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&sW.test(e[t]))return!0;return!1}var CD=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),iW=Kp(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function wD(e){let{motionValue:t,name:n,repeatDelay:a,repeatType:r,damping:o,type:s,keyframes:i}=e;if(!n||!(pg.has(n)||CD.has(n)))return!1;let l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return iW()&&(pg.has(n)||CD.has(n)&&vD(i))&&(n!=="transform"||!c)&&!u&&!a&&r!=="mirror"&&o!==0&&s!=="inertia"}var lW=40,ux=class extends sl{constructor(t){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=wt.now();let{keyframes:n,name:a,motionValue:r,element:o}=t,s=t;s.autoplay??(s.autoplay=!0),s.delay??(s.delay=0),s.type??(s.type="keyframes"),s.repeat??(s.repeat=0),s.repeatDelay??(s.repeatDelay=0),s.repeatType??(s.repeatType="loop");let i=o?.KeyframeResolver||ll;this.keyframeResolver=new i(n,(l,u,c)=>this.onKeyframesResolved(l,u,s,!c),a,r,o),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,a,r){this.keyframeResolver=void 0;let{name:o,type:s,velocity:i,delay:l,isHandoff:u,onUpdate:c}=a;this.resolvedAt=wt.now();let d=!0;xD(t,o,s,i)||(d=!1,(Kn.instantAnimations||!l)&&c?.(ol(t,a,n)),t[0]=t[t.length-1],mg(a),a.repeat=0);let f=r?this.resolvedAt?this.resolvedAt-this.createdAt>lW?this.resolvedAt:this.createdAt:this.createdAt:void 0,{onComplete:m}=a;a.startTime??(a.startTime=f),a.finalKeyframe=n,a.keyframes=t,a.onComplete=()=>{m?.(),this.notifyFinished()};let p=d&&!u&&wD(a),h;if(p){a.element=a.motionValue?.owner?.current;try{h=new lx(a)}catch{h=new As(a)}}else h=new As(a);this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this._animation.finished:super.finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),dD()),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 cx(e,t,n,a=0,r=1){let o=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,i=(s-1)*a;return typeof n=="function"?n(o,s):r===1?o*a:i-o*a}var _D=30,uW=e=>!isNaN(parseFloat(e)),SD={current:void 0},s$=class{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let r=wt.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=wt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=uW(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){var a;return t==="change"?this.onChangeSubscribe(n):((a=this.events)[t]||(a[t]=new zo)).add(n)}onChangeSubscribe(t){let{events:n}=this;return!n.change&&!this.changeSubscriber?this.changeSubscriber=t:(n.change||(n.change=new zo,n.change.add(this.changeSubscriber),this.changeSubscriber=void 0),n.change.add(t)),()=>{this.changeSubscriber===t?this.changeSubscriber=void 0:n.change?.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){ze.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let 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.notifyChange()}notifyChange(){let{current:t,changeSubscriber:n}=this;n?n(t):this.events.change?.notify(t)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return SD.current&&SD.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=wt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_D)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,_D);return Qp(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0;let a=!1,r;r=t(()=>{a=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),n()}),a||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function uo(e,t){return new s$(e,t)}function Vu(e,t){if(e?.inherit&&t){let{inherit:n,...a}=e;return{...t,...a}}return e}function uf(e,t){let n=e?.[t]??e?.default??e;return n!==e?Vu(n,e):n}var cW={type:"spring",stiffness:500,damping:25,restSpeed:10},dW=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fW={type:"keyframes",duration:.8},mW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kD=(e,{keyframes:t})=>t.length>2?fW:Ua.has(e)?e.startsWith("scale")?dW(t[1]):cW:mW;var pW=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function $D(e){for(let t in e)if(!pW.has(t))return!0;return!1}var zu=(e,t,n,a={},r,o)=>s=>{let i=uf(a,e)||{},l=i.delay||a.delay||0,{elapsed:u=0}=a;u=u-bn(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:f=>{t.set(f),i.onUpdate&&i.onUpdate(f)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:o?void 0:r};$D(i)||Object.assign(c,kD(e,c)),c.duration&&(c.duration=bn(c.duration)),c.repeatDelay&&(c.repeatDelay=bn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(mg(c),c.delay===0&&(d=!0)),(Kn.instantAnimations||Kn.skipAnimations||r?.shouldSkipAnimations||i.skipAnimations)&&(d=!0,mg(c),c.delay=0),c.allowFlatten=!i.type&&!i.ease,d&&!o&&t.get()!==void 0){let f=ol(c.keyframes,i);if(f!==void 0){ze.update(()=>{c.onUpdate(f),c.onComplete()});return}}return i.isSync?new As(c):new ux(c)};var gW=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hW(e){let t=gW.exec(e);if(!t)return[,];let[,n,a,r]=t;return[`--${n??a}`,r]}var bW=4;function i$(e,t,n=1){qa(n<=bW,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[a,r]=hW(e);if(!a)return;let o=window.getComputedStyle(t).getPropertyValue(a);if(o){let s=o.trim();return Au(s)?parseFloat(s):s}return Qd(r)?i$(r,t,n+1):r}function LD(e){let t=[{},{}];return e?.values.forEach((n,a)=>{t[0][a]=n.get(),t[1][a]=n.getVelocity()}),t}function qu(e,t,n,a){if(typeof t=="function"){let[r,o]=LD(a);t=t(n!==void 0?n:e.custom,r,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[r,o]=LD(a);t=t(n!==void 0?n:e.custom,r,o)}return t}function fr(e,t,n){let a=e.getProps();return qu(a,t,n!==void 0?n:a.custom,e)}var dx=new Set(["width","height","top","left","right","bottom",...Go]);var gg=e=>Array.isArray(e);function yW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uo(n))}function xW(e){return gg(e)?e[e.length-1]||0:e}function RD(e,t){let n=fr(e,t),{transitionEnd:a={},transition:r={},...o}=n||{};o={...o,...a};for(let s in o){let i=xW(o[s]);yW(e,s,i)}}var xt=e=>!!(e&&e.getVelocity);function ID(e){return!!(xt(e)&&e.add)}function cf(e,t){let n=e.getValue("willChange");if(ID(n))return n.add(t);if(!n&&Kn.WillChange){let a=new Kn.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function df(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var jD="framerAppearId",hg="data-"+df(jD);function fx(e){return e.props[hg]}var vW=typeof window<"u";function CW({protectedKeys:e,needsAnimating:t},n){let a=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,a}function mx(e,t,{delay:n=0,transitionOverride:a,type:r}={}){let{transition:o,transitionEnd:s,...i}=t,l=e.getDefaultTransition();o=o?Vu(o,l):l;let u=o?.reduceMotion,c=o?.skipAnimations;a&&(o=a);let d=[],f=r&&e.animationState&&e.animationState.getState()[r],m=o?.path;m&&m.animateVisualElement(e,i,o,n,d);for(let p in i){let h=e.getValue(p,e.latestValues[p]??null),x=i[p];if(x===void 0||f&&CW(f,p))continue;let b={delay:n,...uf(o||{},p)};c&&(b.skipAnimations=!0);let g=h.get();if(g!==void 0&&!h.isAnimating()&&!Array.isArray(x)&&x===g&&!b.velocity){ze.update(()=>h.set(x));continue}let y=!1;if(vW&&window.MotionHandoffAnimation){let S=fx(e);if(S){let _=window.MotionHandoffAnimation(S,p,ze);_!==null&&(b.startTime=_,y=!0)}}cf(e,p);let v=u??e.shouldReduceMotion;h.start(zu(p,h,x,v&&dx.has(p)?{type:!1}:b,e,y));let C=h.animation;C&&d.push(C)}if(s){let p=()=>ze.update(()=>{s&&RD(e,s)});d.length?Promise.all(d).then(p):p()}return d}function px(e,t,n={}){let a=fr(e,t,n.type==="exit"?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(r=n.transitionOverride);let o=a?()=>Promise.all(mx(e,a,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=r;return wW(e,t,l,u,c,d,n)}:()=>Promise.resolve(),{when:i}=r;if(i){let[l,u]=i==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function wW(e,t,n=0,a=0,r=0,o=1,s){let i=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),i.push(px(l,t,{...s,delay:n+(typeof a=="function"?0:a)+cx(e.variantChildren,l,a,r,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(i)}function TD(e,t,n={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){let r=t.map(o=>px(e,o,n));a=Promise.all(r)}else if(typeof t=="string")a=px(e,t,n);else{let r=typeof t=="function"?fr(e,t,n.custom):t;a=Promise.all(mx(e,r,n))}return a.then(()=>{e.notify("AnimationComplete",t)})}var ED={test:e=>e==="auto",parse:e=>e};var AD=e=>t=>t.test(e);var _W=[Ho,me,ua,Er,Fk,Bk,ED],l$=e=>_W.find(AD(e));function PD(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Pu(e):!0}var SW=new Set(["auto","none","0"]);function MD(e,t,n){let a=0,r;for(;a<e.length&&!r;){let o=e[a];typeof o=="string"&&!SW.has(o)&&PM(o)&&(r=e[a]),a++}if(r&&n)for(let o of t)e[o]!==r&&(e[o]=sf(n,r))}var gx=class extends ll{constructor(t,n,a,r,o){super(t,n,a,r,o,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:n,name:a}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Qd(d))){let f=i$(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!dx.has(a)||t.length!==2)return;let[r,o]=t;if(typeof r=="number"&&typeof o=="number")return;let s=l$(r),i=l$(o),l=Nk(r),u=Nk(o);if(l!==u&&il[a]){this.needsMeasurement=!0;return}if(s!==i)if(Qk(s)&&Qk(i))for(let c=0;c<t.length;c++){let d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else il[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:n}=this,a=[];for(let r=0;r<t.length;r++)(t[r]===null||PD(t[r]))&&a.push(r);a.length&&MD(t,a,n)}measure(){let{element:t,name:n}=this;return il[n](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:n,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),n[0]=this.measuredOrigin;let r=n[n.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:t,unresolvedKeyframes:n}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let a=n.length-1,r=n[a];n[a]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([o,s])=>{t.getValue(o).set(s)}),this.resolveNoneKeyframes()}};var bg=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Hu(e){return Zp(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}function ff(e){return Zp(e)&&"ownerSVGElement"in e}var yg=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function hx(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;t&&(a=t.current);let r=n?.[e]??a.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(a=>a!=null)}var kW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$W=Go.length;function DD(e,t,n){let a="",r=!0;for(let s=0;s<$W;s++){let i=Go[s],l=e[i];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(i.startsWith("scale")?1:0);else{let c=parseFloat(l);u=i.startsWith("scale")?c===1:c===0}if(!u||n){let c=yg(l,Du[i]);if(!u){r=!1;let d=kW[i]||i;a+=`${d}(${c}) `}n&&(t[i]=c)}}let o=e.pathRotation;return o&&(r=!1,a+=`rotate(${yg(o,Du.pathRotation)}) `),a=a.trim(),n?a=n(t,r?"":a):r&&(a="none"),a}function Uu(e,t,n){let{style:a,vars:r,transformOrigin:o}=e,s=!1,i=!1;for(let l in t){let u=t[l];if(Ua.has(l)){s=!0;continue}else if(Wy(l)){r[l]=u;continue}else{let c=yg(u,Du[l]);l.startsWith("origin")?(i=!0,o[l]=c):a[l]=c}}if(t.transform||(s||n?a.transform=DD(t,e.transform,n):a.transform&&(a.transform="none")),i){let{originX:l="50%",originY:u="50%",originZ:c=0}=o;a.transformOrigin=`${l} ${u} ${c}`}}var LW={offset:"stroke-dashoffset",array:"stroke-dasharray"},RW={offset:"strokeDashoffset",array:"strokeDasharray"};function ND(e,t,n=1,a=0,r=!0){e.pathLength=1;let o=r?LW:RW;e[o.offset]=`${-a}`,e[o.array]=`${t} ${n}`}var u$=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function xg(e,{attrX:t,attrY:n,attrScale:a,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...i},l,u,c){if(Uu(e,i,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let m of u$)d[m]!==void 0&&(f[m]=d[m],delete d[m]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),a!==void 0&&(d.scale=a),r!==void 0&&ND(d,r,o,s,!1)}function vg({top:e,left:t,right:n,bottom:a}){return{x:{min:t,max:n},y:{min:e,max:a}}}function c$({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function d$(e,t){if(!t)return e;let 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 f$(e){return e===void 0||e===1}function bx({scale:e,scaleX:t,scaleY:n}){return!f$(e)||!f$(t)||!f$(n)}function Ps(e){return bx(e)||m$(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m$(e){return OD(e.x)||OD(e.y)}function OD(e){return e&&e!=="0%"}function Cg(e,t,n){let a=e-n,r=t*a;return n+r}function BD(e,t,n,a,r){return r!==void 0&&(e=Cg(e,r,a)),Cg(e,n,a)+t}function p$(e,t=0,n=1,a,r){e.min=BD(e.min,t,n,a,r),e.max=BD(e.max,t,n,a,r)}function g$(e,{x:t,y:n}){p$(e.x,t.translate,t.scale,t.originPoint),p$(e.y,n.translate,n.scale,n.originPoint)}var FD=.999999999999,VD=1.0000000000001;function HD(e,t,n,a=!1){let r=n.length;if(!r)return;t.x=t.y=1;let o,s;for(let i=0;i<r;i++){o=n[i],s=o.projectionDelta;let{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(a&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(Ar(e.x,-o.scroll.offset.x),Ar(e.y,-o.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,g$(e,s)),a&&Ps(o.latestValues)&&wg(e,o.latestValues,o.layout?.layoutBox))}t.x<VD&&t.x>FD&&(t.x=1),t.y<VD&&t.y>FD&&(t.y=1)}function Ar(e,t){e.min+=t,e.max+=t}function zD(e,t,n,a,r=.5){let o=Ue(e.min,e.max,r);p$(e,t,n,o,a)}function qD(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function wg(e,t,n){let a=n??e;zD(e.x,qD(t.x,a.x),t.scaleX,t.scale,t.originX),zD(e.y,qD(t.y,a.y),t.scaleY,t.scale,t.originY)}function yx(e,t){return vg(d$(e.getBoundingClientRect(),t))}function h$(e,t,n){let a=yx(e,n),{scroll:r}=t;return r&&(Ar(a.x,r.offset.x),Ar(a.y,r.offset.y)),a}var{schedule:Gu,cancel:IW}=Qy(queueMicrotask,!1);var Pr={x:!1,y:!1};function xx(){return Pr.x||Pr.y}function b$(e){return e==="x"||e==="y"?Pr[e]?null:(Pr[e]=!0,()=>{Pr[e]=!1}):Pr.x||Pr.y?null:(Pr.x=Pr.y=!0,()=>{Pr.x=Pr.y=!1})}function vx(e,t){let n=hx(e),a=new AbortController,r={passive:!0,...t,signal:a.signal};return[n,r,()=>a.abort()]}function jW(e){return!(e.pointerType==="touch"||xx())}function y$(e,t,n={}){let[a,r,o]=vx(e,n);return a.forEach(s=>{let i=!1,l=!1,u,c=()=>{s.removeEventListener("pointerleave",p)},d=x=>{u&&(u(x),u=void 0),c()},f=x=>{i=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(x))},m=()=>{i=!0,window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",f,r)},p=x=>{if(x.pointerType!=="touch"){if(i){l=!0;return}d(x)}},h=x=>{if(!jW(x))return;l=!1;let b=t(s,x);typeof b=="function"&&(u=b,s.addEventListener("pointerleave",p,r))};s.addEventListener("pointerenter",h,r),s.addEventListener("pointerdown",m,r)}),o}var x$=(e,t)=>t?e===t?!0:x$(e,t.parentElement):!1;var Wu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var TW=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function v$(e){return TW.has(e.tagName)||e.isContentEditable===!0}var EW=new Set(["INPUT","SELECT","TEXTAREA"]);function C$(e){return EW.has(e.tagName)||e.isContentEditable===!0}var mf=new WeakSet;function UD(e){return t=>{t.key==="Enter"&&e(t)}}function w$(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var GD=(e,t)=>{let n=e.currentTarget;if(!n)return;let a=UD(()=>{if(mf.has(n))return;w$(n,"down");let r=UD(()=>{w$(n,"up")}),o=()=>w$(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",a,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",a),t)};function WD(e){return Wu(e)&&!xx()}var XD=new WeakSet;function _$(e,t,n={}){let[a,r,o]=vx(e,n),s=i=>{let l=i.currentTarget;if(!WD(i)||XD.has(i))return;mf.add(l),n.stopPropagation&&XD.add(i);let u=t(l,i),c={...r,capture:!0},d=(p,h)=>{window.removeEventListener("pointerup",f,c),window.removeEventListener("pointercancel",m,c),mf.has(l)&&mf.delete(l),WD(p)&&typeof u=="function"&&u(p,{success:h})},f=p=>{d(p,l===window||l===document||n.useGlobalTarget||x$(l,p.target))},m=p=>{d(p,!1)};window.addEventListener("pointerup",f,c),window.addEventListener("pointercancel",m,c)};return a.forEach(i=>{(n.useGlobalTarget?window:i).addEventListener("pointerdown",s,r),Hu(i)&&(i.addEventListener("focus",u=>GD(u,r)),!v$(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),o}var Cx=new WeakMap,wx,YD=(e,t,n)=>(a,r)=>r&&r[0]?r[0][e+"Size"]:ff(a)&&"getBBox"in a?a.getBBox()[t]:a[n],AW=YD("inline","width","offsetWidth"),PW=YD("block","height","offsetHeight");function MW({target:e,borderBoxSize:t}){Cx.get(e)?.forEach(n=>{n(e,{get width(){return AW(e,t)},get height(){return PW(e,t)}})})}function DW(e){e.forEach(MW)}function NW(){typeof ResizeObserver>"u"||(wx=new ResizeObserver(DW))}function ZD(e,t){wx||NW();let n=hx(e);return n.forEach(a=>{let r=Cx.get(a);r||(r=new Set,Cx.set(a,r)),r.add(t),wx?.observe(a)}),()=>{n.forEach(a=>{let r=Cx.get(a);r?.delete(t),r?.size||wx?.unobserve(a)})}}var _x=new Set,pf;function OW(){pf=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};_x.forEach(t=>t(e))},window.addEventListener("resize",pf)}function KD(e){return _x.add(e),pf||OW(),()=>{_x.delete(e),!_x.size&&typeof pf=="function"&&(window.removeEventListener("resize",pf),pf=void 0)}}function Sx(e,t){return typeof e=="function"?KD(e):ZD(e,t)}var Xu={value:null,addProjectionMetrics:null};function QD(e){return ff(e)&&e.tagName==="svg"}var S$=e=>typeof e=="number"?e:parseFloat(e);var k$=()=>({translate:0,scale:1,origin:0,originPoint:0}),ul=()=>({x:k$(),y:k$()}),$$=()=>({min:0,max:0}),Ht=()=>({x:$$(),y:$$()});var JD=new WeakMap;function Ms(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Wo(e){return typeof e=="string"||Array.isArray(e)}var kx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gf=["initial",...kx];function cl(e){if(Ms(e.animate))return!0;for(let t=0;t<gf.length;t++)if(Wo(e[gf[t]]))return!0;return!1}function _g(e){return!!(cl(e)||e.variants)}function eN(e,t,n){for(let a in t){let r=t[a],o=n[a];if(xt(r))e.addValue(a,r);else if(xt(o))e.addValue(a,uo(r,{owner:e}));else if(o!==r)if(e.hasValue(a)){let s=e.getValue(a);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{let s=e.getStaticValue(a);e.addValue(a,uo(s!==void 0?s:r,{owner:e}))}}for(let a in n)t[a]===void 0&&e.removeValue(a);return t}var dl={current:null},Yu={current:!1};var BW=typeof window<"u";function Sg(){if(Yu.current=!0,!!BW)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>dl.current=e.matches;e.addEventListener("change",t),t()}else dl.current=!1}var tN=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],$x={};function $g(e){$x=e}function L$(){return $x}var kg=class{scrapeMotionValuesFromProps(t,n,a){return{}}constructor({parent:t,props:n,presenceContext:a,reducedMotionConfig:r,skipAnimations:o,blockInitialAnimation:s,visualState:i},l={}){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=ll,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=()=>{let m=wt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,ze.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=i;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=cl(n),this.isVariantNode=_g(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(let m in f){let p=f[m];u[m]!==void 0&&xt(p)&&p.set(u[m])}}mount(t){if(this.hasBeenMounted)for(let n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,JD.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:(Yu.current||Sg(),this.shouldReduceMotion=dl.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(),Ha(this.notifyUpdate),Ha(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let 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&&pg.has(t)&&this.current instanceof HTMLElement){let{factory:s,keyframes:i,times:l,ease:u,duration:c}=n.accelerate,d=new lf({element:this.current,name:t,keyframes:i,times:l,ease:u,duration:bn(c)}),f=s(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}let a=Ua.has(t);a&&this.onBindTransform&&this.onBindTransform();let r=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ze.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),o&&o()})}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 $x){let n=$x[t];if(!n)continue;let{isEnabled:a,Feature:r}=n;if(!this.features[t]&&r&&a(this.props)&&(this.features[t]=new r(this)),this.features[t]){let o=this.features[t];o.isMounted?o.update():(o.mount(),o.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<tN.length;a++){let r=tN[a];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let o="on"+r,s=t[o];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=eN(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){let n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){let a=this.values.get(t);if(n!==a){a&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n);let r=n.get();r!==void 0&&(this.latestValues[t]=r)}}removeValue(t){this.values.delete(t);let 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??this.getDefaultValue?.(t),{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"&&(Au(a)||Pu(a))?a=parseFloat(a):typeof a!="number"&&!an.test(a)&&an.test(n)&&(a=sf(t,n)),this.setBaseTarget(t,xt(a)?a.get():a)),xt(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){let{initial:n}=this.props,a;if(typeof n=="string"||typeof n=="object"){let o=qu(this.props,n,this.presenceContext?.custom);o&&(a=o[t])}if(n&&a!==void 0)return a;let r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!xt(r)?r:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new zo),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Gu.render(this.render)}};var hf=class extends kg{constructor(){super(...arguments),this.KeyframeResolver=gx}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){let 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);let{children:t}=this.props;xt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};var In=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function Lx(e,{style:t,vars:n},a,r){let o=e.style,s;for(s in t)o[s]=t[s];r?.applyProjectionStyles(o,a);for(s in n)o.setProperty(s,n[s])}var Zu={};function Lg(e,{layout:t,layoutId:n}){return Ua.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zu[e]||e==="opacity")}function Ku(e,t,n){let a=e.style,r=t?.style,o={};if(!a)return o;for(let s in a)(xt(a[s])||r&&xt(r[s])||Lg(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=a[s]);return o}function FW(e){return window.getComputedStyle(e)}var Rg=class extends hf{constructor(){super(...arguments),this.type="html",this.renderInstance=Lx}mount(t){qa(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,n){if(Ua.has(n))return this.projection?.isProjecting?Ou(n):oD(t,n);{let a=FW(t),r=(Wy(n)?a.getPropertyValue(n):a[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return yx(t,n)}build(t,n,a){Uu(t,n,a.transformTemplate)}scrapeMotionValuesFromProps(t,n,a){return Ku(t,n,a)}};var Rx=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"]);var Ig=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nN(e,t,n,a){Lx(e,t,void 0,a);for(let r in t.attrs)e.setAttribute(Rx.has(r)?r:df(r),t.attrs[r])}function jg(e,t,n){let a=Ku(e,t,n);for(let r in e)if(xt(e[r])||xt(t[r])){let o=Go.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;a[o]=e[r]}return a}var Tg=class extends hf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ht}getBaseTargetFromProps(t,n){return Ua.has(n)?super.getBaseTargetFromProps(t,n)??Ou(n):t[n]}getDefaultValue(t){return Ua.has(t)?this.latestValues[t]??Ou(t):void 0}readValueFromInstance(t,n){if(Ua.has(n)){let a=nx(n);return a&&a.default||0}if(u$.includes(n)){let r=getComputedStyle(t)[n];if(typeof r=="string"&&r)return r.trim()}return n=Rx.has(n)?n:df(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,a){return jg(t,n,a)}build(t,n,a){xg(t,n,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,n,a,r){nN(t,n,a,r)}mount(t){this.isSVGTag=Ig(t.tagName),super.mount(t)}};var VW=gf.length;function R$(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent?R$(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}let t={};for(let n=0;n<VW;n++){let a=gf[n],r=e.props[a];(Wo(r)||r===!1)&&(t[a]=r)}return t}function I$(e,t){if(!Array.isArray(t))return!1;let 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}var zW=[...kx].reverse(),qW=kx.length;function HW(e){return t=>Promise.all(t.map(({animation:n,options:a})=>TD(e,n,a)))}function j$(e){let t=HW(e),n=aN(),a=!0,r=!1,o=u=>(c,d)=>{let f=fr(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){let{transition:m,transitionEnd:p,...h}=f;c={...c,...h,...p}}return c};function s(u){t=u(e)}function i(u){let{props:c}=e,d=R$(e.parent)||{},f=[],m=new Set,p={},h=1/0;for(let b=0;b<qW;b++){let g=zW[b],y=n[g],v=c[g]!==void 0?c[g]:d[g],C=Wo(v),S=g===u?y.isActive:null;S===!1&&(h=b);let _=v===d[g]&&v!==c[g]&&C;if(_&&(a||r)&&e.manuallyAnimateOnMount&&(_=!1),y.protectedKeys={...p},!y.isActive&&S===null||!v&&!y.prevProp||Ms(v)||typeof v=="boolean")continue;if(g==="exit"&&y.isActive&&S!==!0){y.prevResolvedValues&&(p={...p,...y.prevResolvedValues});continue}let w=rN(y.prevProp,v),R=w||g===u&&y.isActive&&!_&&C||b>h&&C,$=!1,j=Array.isArray(v)?v:[v],M=j.reduce(o(g),{});S===!1&&(M={});let{prevResolvedValues:I={}}=y,N={...I,...M},E=P=>{R=!0,m.has(P)&&($=!0,m.delete(P)),y.needsAnimating[P]=!0;let D=e.getValue(P);D&&(D.liveStyle=!1)};for(let P in N){let D=M[P],L=I[P];if(p.hasOwnProperty(P))continue;let V=!1;gg(D)&&gg(L)?V=!I$(D,L)||w:V=D!==L,V?D!=null?E(P):m.add(P):D!==void 0&&m.has(P)?E(P):y.protectedKeys[P]=!0}y.prevProp=v,y.prevResolvedValues=M,y.isActive&&(p={...p,...M}),(a||r)&&e.blockInitialAnimation&&(R=!1);let B=_&&w;R&&(!B||$)&&f.push(...j.map(P=>{let D={type:g};if(typeof P=="string"&&(a||r)&&!B&&e.manuallyAnimateOnMount&&e.parent){let{parent:L}=e,V=fr(L,P);if(L.enteringChildren&&V){let{delayChildren:q}=V.transition||{};D.delay=cx(L.enteringChildren,e,q)}}return{animation:P,options:D}}))}if(m.size){let b={};if(typeof c.initial!="boolean"){let g=fr(e,Array.isArray(c.initial)?c.initial[0]:c.initial);g&&g.transition&&(b.transition=g.transition)}m.forEach(g=>{let y=e.getBaseTarget(g),v=e.getValue(g);v&&(v.liveStyle=!0),b[g]=y??null}),f.push({animation:b})}let x=!!f.length;return a&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(x=!1),a=!1,r=!1,x?t(f):Promise.resolve()}function l(u,c){if(n[u].isActive===c)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,c)),n[u].isActive=c;let d=i(u);for(let f in n)n[f].protectedKeys={};return d}return{animateChanges:i,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=aN(),r=!0}}}function rN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!I$(t,e):!1}function Qu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function aN(){return{animate:Qu(!0),whileInView:Qu(),whileHover:Qu(),whileTap:Qu(),whileDrag:Qu(),whileFocus:Qu(),exit:Qu()}}function Ix(e,t){e.min=t.min,e.max=t.max}function Mr(e,t){Ix(e.x,t.x),Ix(e.y,t.y)}function T$(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var oN=1e-4,UW=1-oN,GW=1+oN,sN=.01,WW=0-sN,XW=0+sN;function yn(e){return e.max-e.min}function M$(e,t,n){return Math.abs(e-t)<=n}function E$(e,t,n,a=.5){e.origin=a,e.originPoint=Ue(t.min,t.max,e.origin),e.scale=yn(n)/yn(t),e.translate=Ue(n.min,n.max,e.origin)-e.originPoint,(e.scale>=UW&&e.scale<=GW||isNaN(e.scale))&&(e.scale=1),(e.translate>=WW&&e.translate<=XW||isNaN(e.translate))&&(e.translate=0)}function Ju(e,t,n,a){E$(e.x,t.x,n.x,a?a.originX:void 0),E$(e.y,t.y,n.y,a?a.originY:void 0)}function A$(e,t,n,a=0){let r=a?Ue(n.min,n.max,a):n.min;e.min=r+t.min,e.max=e.min+yn(t)}function D$(e,t,n,a){A$(e.x,t.x,n.x,a?.x),A$(e.y,t.y,n.y,a?.y)}function P$(e,t,n,a=0){let r=a?Ue(n.min,n.max,a):n.min;e.min=t.min-r,e.max=e.min+yn(t)}function bf(e,t,n,a){P$(e.x,t.x,n.x,a?.x),P$(e.y,t.y,n.y,a?.y)}function iN(e,t,n,a,r){return e-=t,e=Cg(e,1/n,a),r!==void 0&&(e=Cg(e,1/r,a)),e}function YW(e,t=0,n=1,a=.5,r,o=e,s=e){if(ua.test(t)&&(t=parseFloat(t),t=Ue(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=Ue(o.min,o.max,a);e===o&&(i-=t),e.min=iN(e.min,t,n,i,r),e.max=iN(e.max,t,n,i,r)}function lN(e,t,[n,a,r],o,s){YW(e,t[n],t[a],t[r],t.scale,o,s)}var ZW=["x","scaleX","originX"],KW=["y","scaleY","originY"];function N$(e,t,n,a){lN(e.x,t,ZW,n?n.x:void 0,a?a.x:void 0),lN(e.y,t,KW,n?n.y:void 0,a?a.y:void 0)}function uN(e){return e.translate===0&&e.scale===1}function O$(e){return uN(e.x)&&uN(e.y)}function cN(e,t){return e.min===t.min&&e.max===t.max}function fN(e,t){return cN(e.x,t.x)&&cN(e.y,t.y)}function dN(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function B$(e,t){return dN(e.x,t.x)&&dN(e.y,t.y)}function F$(e){return yn(e.x)/yn(e.y)}function V$(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function mr(e){return[e("x"),e("y")]}function mN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var yf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;let n=mN(e,t.target.x),a=mN(e,t.target.y);return`${n}% ${a}%`}};var pN={correct:(e,{treeScale:t,projectionDelta:n})=>{let a=e,r=an.parse(e);if(r.length>5)return a;let o=an.createTransformer(e),s=typeof r[0]!="number"?1:0,i=n.x.scale*t.x,l=n.y.scale*t.y;r[0+s]/=i,r[1+s]/=l;let u=Ue(i,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=u),typeof r[3+s]=="number"&&(r[3+s]/=u),o(r)}};function gN(e,t,n){let a="",r=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((r||o||s)&&(a=`translate3d(${r}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:u,rotate:c,pathRotation:d,rotateX:f,rotateY:m,skewX:p,skewY:h}=n;u&&(a=`perspective(${u}px) ${a}`),c&&(a+=`rotate(${c}deg) `),d&&(a+=`rotate(${d}deg) `),f&&(a+=`rotateX(${f}deg) `),m&&(a+=`rotateY(${m}deg) `),p&&(a+=`skewX(${p}deg) `),h&&(a+=`skewY(${h}deg) `)}let i=e.x.scale*t.x,l=e.y.scale*t.y;return(i!==1||l!==1)&&(a+=`scale(${i}, ${l})`),a||"none"}var QW=bg.length,hN=e=>typeof e=="number"||me.test(e);function yN(e,t,n,a,r,o){r?(e.opacity=Ue(0,n.opacity??1,JW(a)),e.opacityExit=Ue(t.opacity??1,0,eX(a))):o&&(e.opacity=Ue(t.opacity??1,n.opacity??1,a));for(let s=0;s<QW;s++){let i=bg[s],l=bN(t,i),u=bN(n,i);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||hN(l)===hN(u)?(e[i]=Math.max(Ue(S$(l),S$(u),a),0),(ua.test(u)||ua.test(l))&&(e[i]+="%")):e[i]=u}(t.rotate||n.rotate)&&(e.rotate=Ue(t.rotate||0,n.rotate||0,a))}function bN(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var JW=xN(0,.5,ng),eX=xN(.5,.95,nn);function xN(e,t,n){return a=>a<e?0:a>t?1:n(Vo(e,t,a))}function vN(e,t,n){let a=xt(e)?e:uo(e);return a.start(zu("",a,t,n)),a.animation}function Xo(e,t,n,a={passive:!0}){return e.addEventListener(t,n,a),()=>e.removeEventListener(t,n,a)}var CN=(e,t)=>e.depth-t.depth;var jx=class{constructor(){this.children=[],this.isDirty=!1}add(t){Eu(this.children,t),this.isDirty=!0}remove(t){nl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(CN),this.isDirty=!1,this.children.forEach(t)}};function wN(e,t){let n=wt.now(),a=({timestamp:r})=>{let o=r-n;o>=t&&(Ha(a),e(o-t))};return ze.setup(a,!0),()=>Ha(a)}function ec(e){return xt(e)?e.get():e}var Tx=class{constructor(){this.members=[]}add(t){Eu(this.members,t);for(let n=this.members.length-1;n>=0;n--){let a=this.members[n];if(a===t||a===this.lead||a===this.prevLead)continue;let r=a.instance;(!r||r.isConnected===!1)&&!a.snapshot&&(nl(this.members,a),a.unmount())}t.scheduleRender()}remove(t){if(nl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){let a=this.members[n];if(a.isPresent!==!1&&a.instance?.isConnected!==!1)return this.promote(a),!0}return!1}promote(t,n){let a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.updateSnapshot(),t.scheduleRender();let{layoutDependency:r}=a.options,{layoutDependency:o}=t.options;(r===void 0||r!==o)&&(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)}};var _N={borderRadius:{...yf,applyTo:[...bg]},borderTopLeftRadius:yf,borderTopRightRadius:yf,borderBottomLeftRadius:yf,borderBottomRightRadius:yf,boxShadow:pN};var tc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(Zu,{..._N,...Zu});var nc={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},z$=["","X","Y","Z"],tX=1e3,nX=0;function q$(e,t,n,a){let{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),a&&(a[e]=0))}function EN(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=fx(t);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:r,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ze,!(r||o))}let{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&EN(a)}function Ex({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:a,resetTransform:r}){return class{constructor(s={},i=t?.()){this.id=nX++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Xu.value&&(nc.nodes=nc.calculatedTargetDeltas=nc.calculatedProjections=0),this.nodes.forEach(oX),this.nodes.forEach(fX),this.nodes.forEach(mX),this.nodes.forEach(sX),Xu.addProjectionMetrics&&Xu.addProjectionMetrics(nc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new jx)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new zo),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){let l=this.eventHandlers.get(s);l&&l.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=ff(s)&&!QD(s),this.instance=s;let{layoutId:i,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||i)&&(this.isLayoutDirty=!0),e){let c,d=0,f=()=>this.root.updateBlockedByResize=!1;ze.read(()=>{d=window.innerWidth}),e(s,()=>{let m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,c&&c(),c=wN(f,250),tc.hasAnimatedSinceResize&&(tc.hasAnimatedSinceResize=!1,this.nodes.forEach($N)))})}i&&this.root.registerSharedNode(i,this),this.options.animate!==!1&&u&&(i||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let p=this.options.transition||u.getDefaultTransition()||yX,{onLayoutAnimationStart:h,onLayoutAnimationComplete:x}=u.getProps(),b=!this.targetLayout||!B$(this.targetLayout,m),g=!d&&f;if(this.options.layoutRoot||this.resumeFrom||g||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let y={...uf(p,"layout"),onPlay:h,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(c,g,y.path)}else d||$N(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ha(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(pX),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&EN(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){let d=this.path[c];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(lX),this.nodes.forEach(SN);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(kN);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(uX),this.nodes.forEach(cX),this.nodes.forEach(dX),this.nodes.forEach(aX),this.nodes.forEach(rX)):this.nodes.forEach(kN),this.clearAllSnapshots();let i=wt.now();Mt.delta=Rn(0,1e3/60,i-Mt.timestamp),Mt.timestamp=i,Mt.isProcessing=!0,ug.update.process(Mt),ug.preRender.process(Mt),ug.render.process(Mt),Mt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iX),this.sharedNodes.forEach(gX)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ze.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ze.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!yn(this.snapshot.measuredBox.x)&&!yn(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=Ht()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i&&this.instance){let l=a(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,i=this.projectionDelta&&!O$(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&this.instance&&(i||Ps(this.latestValues)||c)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let i=this.measurePageBox(),l=this.removeElementScroll(i);return s&&(l=this.removeTransform(l)),xX(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return Ht();let i=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(vX))){let{scroll:u}=this.root;u&&(Ar(i.x,u.offset.x),Ar(i.y,u.offset.y))}return i}removeElementScroll(s){let i=Ht();if(Mr(i,s),this.scroll?.wasRoot)return i;for(let l=0;l<this.path.length;l++){let u=this.path[l],{scroll:c,options:d}=u;u!==this.root&&c&&d.layoutScroll&&(c.wasRoot&&Mr(i,s),Ar(i.x,c.offset.x),Ar(i.y,c.offset.y))}return i}applyTransform(s,i=!1,l){let u=l||Ht();Mr(u,s);for(let c=0;c<this.path.length;c++){let d=this.path[c];!i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(Ar(u.x,-d.scroll.offset.x),Ar(u.y,-d.scroll.offset.y)),Ps(d.latestValues)&&wg(u,d.latestValues,d.layout?.layoutBox)}return Ps(this.latestValues)&&wg(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(s){let i=Ht();Mr(i,s);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!Ps(u.latestValues))continue;let c;u.instance&&(bx(u.latestValues)&&u.updateSnapshot(),c=Ht(),Mr(c,u.measurePageBox())),N$(i,u.latestValues,u.snapshot?.layoutBox,c)}return Ps(this.latestValues)&&N$(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Mt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){let i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);let l=!!this.resumingFrom||this!==i;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=Mt.timestamp;let f=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.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(),D$(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Mr(this.target,this.layout.layoutBox),g$(this.target,this.targetDelta)):Mr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0),Xu.value&&nc.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||bx(this.parent.latestValues)||m$(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,i,l){this.relativeParent=s,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ht(),this.relativeTargetOrigin=Ht(),bf(this.relativeTargetOrigin,i,l,this.options.layoutAnchor||void 0),Mr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let s=this.getLead(),i=!!this.resumingFrom||this!==s,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Mt.timestamp&&(l=!1),l)return;let{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Mr(this.layoutCorrected,this.layout.layoutBox);let d=this.treeScale.x,f=this.treeScale.y;HD(this.layoutCorrected,this.treeScale,this.path,i),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Ht());let{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(T$(this.prevProjectionDelta.x,this.projectionDelta.x),T$(this.prevProjectionDelta.y,this.projectionDelta.y)),Ju(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!V$(this.projectionDelta.x,this.prevProjectionDelta.x)||!V$(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Xu.value&&nc.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){let i=this.getStack();i&&i.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ul(),this.projectionDelta=ul(),this.projectionDeltaWithTransform=ul()}setAnimationOrigin(s,i=!1,l){let u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},f=ul();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let m=Ht(),p=u?u.source:void 0,h=this.layout?this.layout.source:void 0,x=p!==h,b=this.getStack(),g=!b||b.members.length<=1,y=!!(x&&!g&&this.options.crossfade===!0&&!this.path.some(bX));this.animationProgress=0;let v,C=l?.interpolateProjection(s);this.mixTargetDelta=S=>{let _=S/1e3,w=C?.(_);w?(f.x.translate=w.x,f.x.scale=Ue(s.x.scale,1,_),f.x.origin=s.x.origin,f.x.originPoint=s.x.originPoint,f.y.translate=w.y,f.y.scale=Ue(s.y.scale,1,_),f.y.origin=s.y.origin,f.y.originPoint=s.y.originPoint):(LN(f.x,s.x,_),LN(f.y,s.y,_)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bf(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),hX(this.relativeTarget,this.relativeTargetOrigin,m,_),v&&fN(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Ht()),Mr(v,this.relativeTarget)),x&&(this.animationValues=d,yN(d,c,this.latestValues,_,y,g)),w&&w.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=w.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ha(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ze.update(()=>{tc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=uo(0)),this.motionValue.jump(0,!1),this.currentAnimation=vN(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),JM(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(tX),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:i,layout:l,latestValues:u}=s,{target:c}=s;if(!(!i||!c||!l)){if(this!==s&&this.layout&&l&&AN(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Ht();let d=yn(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+d;let f=yn(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+f}Mr(i,c),wg(i,u),Ju(this.projectionDeltaWithTransform,this.layoutCorrected,i,u)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Tx),this.sharedNodes.get(s).add(i);let u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){let{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let i=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(i=!0),!i)return;let u={};l.z&&q$("z",s,u,this.animationValues);for(let c=0;c<z$.length;c++)q$(`rotate${z$[c]}`,s,u,this.animationValues),q$(`skew${z$[c]}`,s,u,this.animationValues);s.render();for(let c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}applyProjectionStyles(s,i){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}let l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=ec(i?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}let u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=ec(i?.pointerEvents)||""),this.hasProjected&&!Ps(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";let c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=gN(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),s.transform=d;let{x:f,y:m}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,u.animationValues?s.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(let p in Zu){if(c[p]===void 0)continue;let{correct:h,applyTo:x,isCSSVariable:b}=Zu[p],g=d==="none"?c[p]:h(c[p],u);if(x){let y=x.length;for(let v=0;v<y;v++)s[x[v]]=g}else b?this.options.visualElement.renderState.vars[p]=g:s[p]=g}this.options.layoutId&&(s.pointerEvents=u===this?ec(i?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(SN),this.root.sharedNodes.clear()}}}function aX(e){e.updateLayout()}function rX(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:a}=e.layout,{animationType:r}=e.options,o=t.source!==e.layout.source;if(r==="size")mr(c=>{let d=o?t.measuredBox[c]:t.layoutBox[c],f=yn(d);d.min=n[c].min,d.max=d.min+f});else if(r==="x"||r==="y"){let c=r==="x"?"y":"x";Ix(o?t.measuredBox[c]:t.layoutBox[c],n[c])}else AN(r,t.layoutBox,n)&&mr(c=>{let d=o?t.measuredBox[c]:t.layoutBox[c],f=yn(n[c]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+f)});let s=ul();Ju(s,n,t.layoutBox);let i=ul();o?Ju(i,e.applyTransform(a,!0),t.measuredBox):Ju(i,n,t.layoutBox);let l=!O$(s),u=!1;if(!e.resumeFrom){let c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){let{snapshot:d,layout:f}=c;if(d&&f){let m=e.options.layoutAnchor||void 0,p=Ht();bf(p,t.layoutBox,d.layoutBox,m);let h=Ht();bf(h,n,f.layoutBox,m),B$(p,h)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=p,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:i,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function oX(e){Xu.value&&nc.nodes++,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 sX(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iX(e){e.clearSnapshot()}function SN(e){e.clearMeasurements()}function lX(e){e.isLayoutDirty=!0,e.updateLayout()}function kN(e){e.isLayoutDirty=!1}function uX(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function cX(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function dX(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function $N(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fX(e){e.resolveTargetDelta()}function mX(e){e.calcProjection()}function pX(e){e.resetSkewAndRotation()}function gX(e){e.removeLeadSnapshot()}function LN(e,t,n){e.translate=Ue(t.translate,0,n),e.scale=Ue(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function RN(e,t,n,a){e.min=Ue(t.min,n.min,a),e.max=Ue(t.max,n.max,a)}function hX(e,t,n,a){RN(e.x,t.x,n.x,a),RN(e.y,t.y,n.y,a)}function bX(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var yX={duration:.45,ease:[.4,0,.1,1]},IN=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),jN=IN("applewebkit/")&&!IN("chrome/")?Math.round:nn;function TN(e){e.min=jN(e.min),e.max=jN(e.max)}function xX(e){TN(e.x),TN(e.y)}function AN(e,t,n){return e==="position"||e==="preserve-aspect"&&!M$(F$(t),F$(n),.2)}function vX(e){return e!==e.root&&e.scroll?.wasRoot}var PN=Ex({attachResizeListener:(e,t)=>Xo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var Ax={current:void 0},Eg=Ex({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ax.current){let e=new PN({});e.mount(window),e.setOptions({layoutScroll:!0}),Ax.current=e}return Ax.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var Px=k(A(),1),Ns=k(A(),1);var MN=k(A(),1),Ds=(0,MN.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var NN=k(A(),1);function DN(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function CX(...e){return t=>{let n=!1,a=e.map(r=>{let o=DN(r,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let r=0;r<a.length;r++){let o=a[r];typeof o=="function"?o():DN(e[r],null)}}}}function ON(...e){return NN.useCallback(CX(...e),e)}var H$=class extends Px.Component{getSnapshotBeforeUpdate(t){let n=this.props.childRef.current;if(Hu(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let a=n.offsetParent,r=Hu(a)&&a.offsetWidth||0,o=Hu(a)&&a.offsetHeight||0,s=getComputedStyle(n),i=this.props.sizeRef.current;i.height=parseFloat(s.height),i.width=parseFloat(s.width),i.top=n.offsetTop,i.left=n.offsetLeft,i.right=r-i.width-i.left,i.bottom=o-i.height-i.top,i.direction=s.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function FN({children:e,isPresent:t,anchorX:n,anchorY:a,root:r,pop:o}){let s=(0,Ns.useId)(),i=(0,Ns.useRef)(null),l=(0,Ns.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,Ns.useContext)(Ds),c=o!==!1?e.props?.ref??e?.ref:void 0,d=ON(i,c);return(0,Ns.useInsertionEffect)(()=>{let{width:f,height:m,top:p,left:h,right:x,bottom:b,direction:g}=l.current;if(t||o===!1||!i.current||!f||!m)return;let y=g==="rtl",v=n==="left"?y?`right: ${x}`:`left: ${h}`:y?`left: ${h}`:`right: ${x}`,C=a==="bottom"?`bottom: ${b}`:`top: ${p}`;i.current.dataset.motionPopId=s;let S=document.createElement("style");u&&(S.nonce=u);let _=r??document.head;return _.appendChild(S),S.sheet&&S.sheet.insertRule(`
|
|
10
10
|
[data-motion-pop-id="${s}"] {
|
|
11
11
|
position: absolute !important;
|
|
12
12
|
width: ${f}px !important;
|
|
@@ -14,9 +14,9 @@ Error generating stack: `+a.message+`
|
|
|
14
14
|
${v}px !important;
|
|
15
15
|
${C}px !important;
|
|
16
16
|
}
|
|
17
|
-
`),()=>{i.current?.removeAttribute("data-motion-pop-id"),_.contains(S)&&_.removeChild(S)}},[t]),(0,BN.jsx)(H$,{isPresent:t,childRef:i,sizeRef:l,pop:o,children:o===!1?e:Px.cloneElement(e,{ref:d})})}var zN=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:r,presenceAffectsLayout:o,mode:s,anchorX:i,anchorY:l,root:u})=>{let c=Ji(wX),d=(0,fl.useId)(),f=(0,fl.useRef)(n),m=(0,fl.useRef)(a);el(()=>{f.current=n,m.current=a});let p=!0,h=(0,fl.useMemo)(()=>(p=!1,{id:d,initial:t,isPresent:n,custom:r,onExitComplete:x=>{c.set(x,!0);for(let b of c.values())if(!b)return;a&&a()},register:x=>(c.set(x,!1),()=>{c.delete(x),!f.current&&!c.size&&m.current?.()})}),[n,c,a]);return o&&p&&(h={...h}),(0,fl.useMemo)(()=>{c.forEach((x,b)=>c.set(b,!1))},[n]),VN.useEffect(()=>{!n&&!c.size&&a&&a()},[n]),e=(0,U$.jsx)(FN,{pop:s==="popLayout",isPresent:n,anchorX:i,anchorY:l,root:u,children:e}),(0,U$.jsx)(tl.Provider,{value:h,children:e})};function wX(){return new Map}var ml=k(A(),1);function Mx(e=!0){let t=(0,ml.useContext)(tl);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:a,register:r}=t,o=(0,ml.useId)();(0,ml.useEffect)(()=>{if(e)return r(o)},[e]);let s=(0,ml.useCallback)(()=>e&&a&&a(o),[o,a,e]);return!n&&a?[!1,s]:[!0]}var Dx=k(A(),1),xf=e=>e.key||"";function G$(e){let t=[];return Dx.Children.forEach(e,n=>{(0,Dx.isValidElement)(n)&&t.push(n)}),t}var Zo=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:r=!0,mode:o="sync",propagate:s=!1,anchorX:i="left",anchorY:l="top",root:u})=>{let[c,d]=Mx(s),f=(0,Yo.useMemo)(()=>G$(e),[e]),m=s&&!c?[]:f.map(xf),p=(0,Yo.useRef)(!0),h=Ji(()=>new Map),x=(0,Yo.useRef)(new Set),[b,g]=(0,Yo.useState)(f),[y,v]=(0,Yo.useState)(f);el(()=>{s&&!c&&!y.length&&d?.()},[c,s,y.length,d]),el(()=>{p.current=!1;for(let _=0;_<y.length;_++){let w=xf(y[_]);m.includes(w)?(h.delete(w),x.current.delete(w)):h.get(w)!==!0&&h.set(w,!1)}},[y,m.length,m.join("-")]);let C=[];if(f!==b){let _=[...f],w=0;for(let R of y){let $=m.indexOf(xf(R));$===-1?(_.splice(w++,0,R),C.push(R)):w=$+C.length+1}return C.every(R=>h.get(xf(R)))?_=f:o==="wait"&&(_=C),v(G$(_)),g(f),null}let{forceRender:S}=(0,Yo.useContext)(Yd);return(0,Ag.jsx)(Ag.Fragment,{children:y.map(_=>{let w=xf(_),R=s&&!c?!1:f===y||m.includes(w),$=()=>{if(x.current.has(w))return;if(h.has(w))x.current.add(w),h.set(w,!0);else return;let j=!0;h.forEach(M=>{M||(j=!1)}),j&&(S?.(),g([]),s&&d?.(),a&&a())};return(0,Ag.jsx)(zN,{isPresent:R,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:o,root:u,onExitComplete:R?void 0:$,anchorX:i,anchorY:l,children:_},w)})})};var qN=k(A(),1),Nx=(0,qN.createContext)({strict:!1});var HN={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"]},UN=!1;function _X(){if(UN)return;let e={};for(let t in HN)e[t]={isEnabled:n=>HN[t].some(a=>!!n[a])};$g(e),UN=!0}function Ox(){return _X(),L$()}function GN(e){let t=Ox();for(let n in e)t[n]={...t[n],...e[n]};$g(t)}var WN=k(Z(),1),Bx=k(A(),1);function Fx({children:e,...t}){let n=(0,Bx.useContext)(Ds);t={...n,...t},t.transition=Vu(t.transition,n.transition),t.isStatic=Ji(()=>t.isStatic);let a=(0,Bx.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,WN.jsx)(Ds.Provider,{value:a,children:e})}var Ux=k(Z(),1);var _f=k(A(),1);var XN=k(A(),1),pl=(0,XN.createContext)({});var Vx=k(A(),1);function YN(e,t){if(cl(e)){let{initial:n,animate:a}=e;return{initial:n===!1||Wo(n)?n:void 0,animate:Wo(a)?a:void 0}}return e.inherit!==!1?t:{}}function KN(e){let{initial:t,animate:n}=YN(e,(0,Vx.useContext)(pl));return(0,Vx.useMemo)(()=>({initial:t,animate:n}),[ZN(t),ZN(n)])}function ZN(e){return Array.isArray(e)?e.join(" "):e}var wf=k(A(),1);var QN=k(A(),1);var vf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function W$(e,t,n){for(let a in t)!xt(t[a])&&!Lg(a,n)&&(e[a]=t[a])}function SX({transformTemplate:e},t){return(0,QN.useMemo)(()=>{let n=vf();return Uu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function kX(e,t){let n=e.style||{},a={};return W$(a,n,e),Object.assign(a,SX(e,t)),a}function JN(e,t){let n={},a=kX(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}var eO=k(A(),1);var zx=()=>({...vf(),attrs:{}});function tO(e,t,n,a){let r=(0,eO.useMemo)(()=>{let o=zx();return xg(o,t,Ig(a),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){let o={};W$(o,e.style,e),r.style={...o,...r.style}}return r}var $X=new Set(["animate","exit","variants","initial","style","values","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 Pg(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$X.has(e)}function LX(e,t){return e.startsWith("on")?!Pg(e):t?.(e)??!Pg(e)}function nO(e,t,n,a){let r={};for(let o in e)o==="values"&&typeof e.values=="object"||xt(e[o])||(LX(o,a)||n===!0&&Pg(o)||!t&&!Pg(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}var aO=["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 Cf(e){return typeof e!="string"||e.includes("-")?!1:!!(aO.indexOf(e)>-1||/[A-Z]/u.test(e))}function rO(e,t,n,{latestValues:a},r,o=!1,s,i){let u=(s??Cf(e)?tO:JN)(t,a,r,e),c=nO(t,typeof e=="string",o,i),d=e!==wf.Fragment?{...c,...u,ref:n}:{},{children:f}=t,m=(0,wf.useMemo)(()=>xt(f)?f.get():f,[f]);return(0,wf.createElement)(e,{...d,children:m})}var X$=k(A(),1);function RX({scrapeMotionValuesFromProps:e,createRenderState:t},n,a,r){return{latestValues:IX(n,a,r,e),renderState:t()}}function IX(e,t,n,a){let r={},o=a(e,{});for(let f in o)r[f]=ec(o[f]);let{initial:s,animate:i}=e,l=cl(e),u=_g(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;let d=c?i:s;if(d&&typeof d!="boolean"&&!Ms(d)){let f=Array.isArray(d)?d:[d];for(let m=0;m<f.length;m++){let p=qu(e,f[m]);if(p){let{transitionEnd:h,transition:x,...b}=p;for(let g in b){let y=b[g];if(Array.isArray(y)){let v=c?y.length-1:0;y=y[v]}y!==null&&(r[g]=y)}for(let g in h)r[g]=h[g]}}}return r}var qx=e=>(t,n)=>{let a=(0,X$.useContext)(pl),r=(0,X$.useContext)(tl),o=()=>RX(e,t,a,r);return n?o():Ji(o)};var oO=qx({scrapeMotionValuesFromProps:Ku,createRenderState:vf});var sO=qx({scrapeMotionValuesFromProps:jg,createRenderState:zx});var iO=Symbol.for("motionComponentSymbol");var ac=k(A(),1);function lO(e,t,n){let a=(0,ac.useRef)(n);(0,ac.useInsertionEffect)(()=>{a.current=n});let r=(0,ac.useRef)(null);return(0,ac.useCallback)(o=>{o&&e.onMount?.(o),t&&(o?t.mount(o):t.unmount());let s=a.current;if(typeof s=="function")if(o){let i=s(o);typeof i=="function"&&(r.current=i)}else r.current?(r.current(),r.current=null):s(o);else s&&(s.current=o)},[t])}var ka=k(A(),1);var uO=k(A(),1),Hx=(0,uO.createContext)({});function gl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function cO(e,t,n,a,r,o){let{visualElement:s}=(0,ka.useContext)(pl),i=(0,ka.useContext)(Nx),l=(0,ka.useContext)(tl),u=(0,ka.useContext)(Ds),c=u.reducedMotion,d=u.skipAnimations,f=(0,ka.useRef)(null),m=(0,ka.useRef)(!1);a=a||i.renderer,!f.current&&a&&(f.current=a(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:o}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let p=f.current,h=(0,ka.useContext)(Hx);p&&!p.projection&&r&&(p.type==="html"||p.type==="svg")&&jX(f.current,n,r,h);let x=(0,ka.useRef)(!1);(0,ka.useInsertionEffect)(()=>{p&&x.current&&p.update(n,l)});let b=n[hg],g=(0,ka.useRef)(!!b&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return el(()=>{!m.current||!p||(p.animationState?.animateChanges(),p.enteringChildren=void 0)},[]),el(()=>{m.current=!0,p&&(x.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),g.current&&p.animationState&&p.animationState.animateChanges())}),(0,ka.useEffect)(()=>{p&&(!g.current&&p.animationState&&p.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),g.current=!1),p.enteringChildren=void 0)}),p}function jX(e,t,n,a){let{layoutId:r,layout:o,drag:s,dragConstraints:i,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:dO(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||i&&gl(i),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:a,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function dO(e){if(e)return e.options.allowProjection!==!1?e.projection:dO(e.parent)}function Gx(e,{forwardMotionProps:t=!1,type:n}={},a,r){a&&GN(a);let o=n?n==="svg":Cf(e),s=o?sO:oO;function i(u,c){let d,f={...(0,_f.useContext)(Ds),...u,layoutId:TX(u)},{isStatic:m,isValidProp:p}=f,h=KN(u),x=s(u,m);if(!m&&typeof window<"u"){EX(f,a);let b=AX(f);d=b.MeasureLayout,h.visualElement=cO(e,x,f,r,b.ProjectionNode,o)}return(0,Ux.jsxs)(pl.Provider,{value:h,children:[d&&h.visualElement?(0,Ux.jsx)(d,{visualElement:h.visualElement,...f}):null,rO(e,u,lO(x,h.visualElement,c),x,m,t,o,p)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let l=(0,_f.forwardRef)(i);return l[iO]=e,l}function TX({layoutId:e}){let t=(0,_f.useContext)(Yd).id;return t&&e!==void 0?t+"-"+e:e}function EX(e,t){let n=(0,_f.useContext)(Nx).strict}function AX(e){let t=Ox(),{drag:n,layout:a}=t;if(!n&&!a)return{};let r={...n,...a};return{MeasureLayout:n?.isEnabled(e)||a?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function fO(e,t){if(typeof Proxy>"u")return Gx;let n=new Map,a=(o,s)=>Gx(o,s,e,t),r=(o,s)=>a(o,s);return new Proxy(r,{get:(o,s)=>s==="create"?a:(n.has(s)||n.set(s,Gx(s,void 0,e,t)),n.get(s))})}var mO=k(A(),1);var pO=(e,t)=>t.isSVG??Cf(e)?new Tg(t):new Rg(t,{allowProjection:e!==mO.Fragment});var Wx=class extends In{constructor(t){super(t),t.animationState||(t.animationState=j$(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Ms(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var PX=0,Xx=class extends In{constructor(){super(...arguments),this.id=PX++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{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){let{initial:o,custom:s}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){let i=fr(this.node,o,s);if(i){let{transition:l,transitionEnd:u,...c}=i;for(let d in c)this.node.getValue(d)?.jump(c[d])}}this.node.blockInitialAnimation=!1,this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1,this.exitAnimation=void 0;return}let r=this.exitAnimation=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{this.exitAnimation===r&&(this.isExitComplete=!0,n(this.id))})}mount(){let{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var gO={animation:{Feature:Wx},exit:{Feature:Xx}};function rc(e){return{point:{x:e.pageX,y:e.pageY}}}var hO=e=>t=>Wu(t)&&e(t,rc(t));function hl(e,t,n,a){return Xo(e,t,hO(n),a)}var Yx=({current:e})=>e?e.ownerDocument.defaultView:null;var bO=(e,t)=>Math.abs(e-t);function yO(e,t){let n=bO(e.x,t.x),a=bO(e.y,t.y);return Math.sqrt(n**2+a**2)}var xO=new Set(["auto","scroll"]),Sf=class{constructor(t,n,{transformPagePoint:a,contextWindow:r=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3,element:i}={}){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=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Zx(this.lastRawMoveEventInfo,this.transformPagePoint));let p=Y$(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,x=yO(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!x)return;let{point:b}=p;this.history.push({...b,timestamp:wt.now()});let{onStart:g,onMove:y}=this.handlers;h||(g&&g(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,p)},this.handlePointerMove=(p,h)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=h,this.lastMoveEventInfo=Zx(h,this.transformPagePoint),this.hasPendingMove=!0,ze.update(this.updatePoint,!0)},this.handlePointerUp=(p,h)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:x,onSessionEnd:b,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let y=Y$(p.type==="pointercancel"?this.lastMoveEventInfo:Zx(h,this.transformPagePoint),this.history);this.startEvent&&x&&x(p,y),b&&b(p,y)},!Wu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=a,this.distanceThreshold=s,this.contextWindow=r||window;let l=rc(t),u=Zx(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=Mt;this.history=[{...c,timestamp:d}];let{onSessionStart:f}=n;f&&f(t,Y$(u,this.history));let m={passive:!0,capture:!0};this.removeListeners=lo(hl(this.contextWindow,"pointermove",this.handlePointerMove,m),hl(this.contextWindow,"pointerup",this.handlePointerUp,m),hl(this.contextWindow,"pointercancel",this.handlePointerUp,m)),i&&this.startScrollTracking(i)}startScrollTracking(t){let n=t.parentElement;for(;n;){let a=getComputedStyle(n);(xO.has(a.overflowX)||xO.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){let n=this.scrollPositions.get(t);if(!n)return;let a=t===window,r=a?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:r.x-n.x,y:r.y-n.y};o.x===0&&o.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,r),ze.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ha(this.updatePoint)}};function Zx(e,t){return t?{point:t(e.point)}:e}function vO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Y$({point:e},t){return{point:e,delta:vO(e,CO(t)),offset:vO(e,MX(t)),velocity:DX(t,.1)}}function MX(e){return e[0]}function CO(e){return e[e.length-1]}function DX(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,a=null,r=CO(e);for(;n>=0&&(a=e[n],!(r.timestamp-a.timestamp>bn(t)));)n--;if(!a)return{x:0,y:0};a===e[0]&&e.length>2&&r.timestamp-a.timestamp>bn(t)*2&&(a=e[1]);let o=Nn(r.timestamp-a.timestamp);if(o===0)return{x:0,y:0};let s={x:(r.x-a.x)/o,y:(r.y-a.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function $O(e,{min:t,max:n},a){return t!==void 0&&e<t?e=a?Ue(t,e,a.min):Math.max(e,t):n!==void 0&&e>n&&(e=a?Ue(n,e,a.max):Math.min(e,n)),e}function wO(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 LO(e,{top:t,left:n,bottom:a,right:r}){return{x:wO(e.x,n,r),y:wO(e.y,t,a)}}function _O(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 RO(e,t){return{x:_O(e.x,t.x),y:_O(e.y,t.y)}}function IO(e,t){let n=.5,a=yn(e),r=yn(t);return r>a?n=Vo(t.min,t.max-a,e.min):a>r&&(n=Vo(e.min,e.max-r,t.min)),Rn(0,1,n)}function jO(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Kx=.35;function TO(e=Kx){return e===!1?e=0:e===!0&&(e=Kx),{x:SO(e,"left","right"),y:SO(e,"top","bottom")}}function SO(e,t,n){return{min:kO(e,t),max:kO(e,n)}}function kO(e,t){return typeof e=="number"?e:e[t]||0}var NX=new WeakMap,Jx=class{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=qt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:a}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let o=d=>{n&&this.snapToCursor(d),this.stopAnimation()},s=(d,f)=>{let{drag:m,dragPropagation:p,onDragStart:h}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=b$(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mr(b=>{let g=this.getAxisMotionValue(b).get()||0;if(ua.test(g)){let{projection:y}=this.visualElement;if(y&&y.layout){let v=y.layout.layoutBox[b];v&&(g=yn(v)*(parseFloat(g)/100))}}this.originPoint[b]=g}),h&&ze.update(()=>h(d,f),!1,!0),cf(this.visualElement,"transform");let{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},i=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;let{dragPropagation:m,dragDirectionLock:p,onDirectionLock:h,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;let{offset:b}=f;if(p&&this.currentDirection===null){this.currentDirection=BX(b),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),x&&ze.update(()=>x(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{let{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new Sf(t,{onSessionStart:o,onStart:s,onMove:i,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:a,contextWindow:Yx(this.visualElement),element:this.visualElement.current})}stop(t,n){let a=t||this.latestPointerEvent,r=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!r||!a)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:i}=this.getProps();i&&ze.postRender(()=>i(a,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{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){let{drag:r}=this.getProps();if(!a||!Qx(t,r,this.currentDirection))return;let o=this.getAxisMotionValue(t),s=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(s=$O(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&gl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=LO(a.layoutBox,t):this.constraints=!1,this.elastic=TO(n),r!==this.constraints&&!gl(t)&&a&&this.constraints&&!this.hasMutatedConstraints&&mr(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=jO(a.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!gl(t))return!1;let a=t.current;qa(a!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let o=h$(a,r.root,this.visualElement.getTransformPagePoint()),s=RO(r.layout.layoutBox,o);if(n){let i=n(c$(s));this.hasMutatedConstraints=!!i,i&&(s=vg(i))}return s}startAnimation(t){let{drag:n,dragMomentum:a,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},u=mr(c=>{if(!Qx(c,n,this.currentDirection))return;let d=l&&l[c]||{};(s===!0||s===c)&&(d={min:0,max:0});let f=r?200:1e6,m=r?40:1e7,p={type:"inertia",velocity:a?t[c]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(i)}startAxisValueAnimation(t,n){let a=this.getAxisMotionValue(t);return cf(this.visualElement,t),a.start(zu(t,a,0,n,this.visualElement,!1))}stopAnimation(){mr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps()[n];return r||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor({clientX:t,clientY:n}){let{drag:a}=this.getProps(),r={x:t,y:n},o=this.visualElement.getTransformPagePoint()?.(r)||r,s=this.visualElement.measureViewportBox();mr(i=>{if(!Qx(i,a,this.currentDirection))return;let l=this.getAxisMotionValue(i),{min:u,max:c}=s[i];l.set((l.get()||0)+o[i]-Ue(u,c,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:a}=this.visualElement;if(!gl(n)||!a||!this.constraints)return;this.stopAnimation();let r=this.constraints,o={x:0,y:0};mr(i=>{let l=this.getAxisMotionValue(i).get();o[i]=IO({min:l,max:l},r[i])});let{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(),mr(i=>{let l=this.getAxisMotionValue(i);if(!Qx(i,t,null)||!l.get())return;let{min:u,max:c}=this.constraints[i];l.set(Ue(u,c,o[i]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;NX.set(this.visualElement,this);let t=this.visualElement.current,n=hl(t,"pointerdown",u=>{let{drag:c,dragListener:d=!0}=this.getProps(),f=u.target,m=f!==t&&C$(f);c&&d&&!m&&this.start(u)}),a,r=()=>{let{dragConstraints:u}=this.getProps();gl(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),a||(a=OX(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ze.read(r);let i=Xo(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(mr(d=>{let f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())}));return()=>{i(),n(),s(),l&&l(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:a=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=Kx,dragMomentum:i=!0}=t;return{...t,drag:n,dragDirectionLock:a,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:i}}};function EO(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function OX(e,t,n){let a=Sx(e,EO(n)),r=Sx(t,EO(n));return()=>{a(),r()}}function Qx(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function BX(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}var e0=class extends In{constructor(t){super(t),this.removeGroupControls=nn,this.removeListeners=nn,this.controls=new Jx(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||nn}update(){let{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()}};var Z$=e=>(t,n)=>{e&&ze.update(()=>e(t,n),!1,!0)},t0=class extends In{constructor(){super(...arguments),this.removePointerDownListener=nn}onPointerDown(t){this.session=new Sf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Yx(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:n,onPan:a,onPanEnd:r}=this.node.getProps();return{onSessionStart:Z$(t),onStart:Z$(n),onMove:Z$(a),onEnd:(o,s)=>{delete this.session,r&&ze.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=hl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var AO=k(Z(),1);var Mg=k(A(),1);var K$=!1,Q$=class extends Mg.Component{componentDidMount(){let{visualElement:t,layoutGroup:n,switchLayoutGroup:a,layoutId:r}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),a&&a.register&&r&&a.register(o),K$&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),tc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:n,visualElement:a,drag:r,isPresent:o}=this.props,{projection:s}=a;return s&&(s.isPresent=o,t.layoutDependency!==n&&s.setOptions({...s.options,layoutDependency:n}),K$=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||ze.postRender(()=>{let i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:n}=this.props,{projection:a}=t;a&&(a.options.layoutAnchor=n,a.root.didUpdate(),Gu.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:n,switchLayoutGroup:a}=this.props,{projection:r}=t;K$=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),a&&a.deregister&&a.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function n0(e){let[t,n]=Mx(),a=(0,Mg.useContext)(Yd);return(0,AO.jsx)(Q$,{...e,layoutGroup:a,switchLayoutGroup:(0,Mg.useContext)(Hx),isPresent:t,safeToRemove:n})}var PO={pan:{Feature:t0},drag:{Feature:e0,ProjectionNode:Eg,MeasureLayout:n0}};function MO(e,t,n){let{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",n==="Start");let r="onHover"+n,o=a[r];o&&ze.postRender(()=>o(t,rc(t)))}var a0=class extends In{mount(){let{current:t}=this.node;t&&(this.unmount=y$(t,(n,a)=>(MO(this.node,a,"Start"),r=>MO(this.node,r,"End"))))}unmount(){}};var r0=class extends In{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=lo(Xo(this.node.current,"focus",()=>this.onFocus()),Xo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function DO(e,t,n){let{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",n==="Start");let r="onTap"+(n==="End"?"":n),o=a[r];o&&ze.postRender(()=>o(t,rc(t)))}var o0=class extends In{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:n,propagate:a}=this.node.props;this.unmount=_$(t,(r,o)=>(DO(this.node,o,"Start"),(s,{success:i})=>DO(this.node,s,i?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:a?.tap===!1})}unmount(){}};var e1=new WeakMap,J$=new WeakMap,FX=e=>{let t=e1.get(e.target);t&&t(e)},VX=e=>{e.forEach(FX)};function zX({root:e,...t}){let n=e||document;J$.has(n)||J$.set(n,{});let a=J$.get(n),r=JSON.stringify(t);return a[r]||(a[r]=new IntersectionObserver(VX,{root:e,...t})),a[r]}function NO(e,t,n){let a=zX(t);return e1.set(e,n),a.observe(e),()=>{e1.delete(e),a.unobserve(e)}}var qX={some:0,all:1},s0=class extends In{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:n,margin:a,amount:r="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:a,threshold:typeof r=="number"?r:qX[r]},i=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};this.stopObserver=NO(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:n}=this.node;["amount","margin","root"].some(HX(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function HX({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var OO={inView:{Feature:s0},tap:{Feature:o0},focus:{Feature:r0},hover:{Feature:a0}};var BO={layout:{ProjectionNode:Eg,MeasureLayout:n0}};var FO={...gO,...OO,...PO,...BO};var t1=fO(FO,pO);var VO=k(A(),1);function $a(){!Yu.current&&Sg();let[e]=(0,VO.useState)(dl.current);return e}var _t=t1;var Dg=k(A(),1),zO=({ref:e,callback:t,eventType:n="mousedown",eventListenerOptions:a})=>{let r=(0,Dg.useRef)(t);r.current=t;let o=(0,Dg.useRef)(e);o.current=e,(0,Dg.useEffect)(()=>{let s=i=>{let l=i.target;if(!l||!l.isConnected)return;(Array.isArray(o.current)?o.current:[o.current]).filter(d=>!!d.current).every(d=>d.current&&!d.current.contains(l))&&r.current(i)};return document.addEventListener(n,s,a),()=>document.removeEventListener(n,s,a)},[n,a])};var YO=k(A(),1);var $f=k(A(),1);function i0(){return typeof window<"u"}function rn(e){return l0(e)?(e.nodeName||"").toLowerCase():"#document"}function qe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qo(e){var t;return(t=(l0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function l0(e){return i0()?e instanceof Node||e instanceof qe(e).Node:!1}function Ie(e){return i0()?e instanceof Element||e instanceof qe(e).Element:!1}function He(e){return i0()?e instanceof HTMLElement||e instanceof qe(e).HTMLElement:!1}function Ko(e){return!i0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qe(e).ShadowRoot}function sc(e){let{overflow:t,overflowX:n,overflowY:a,display:r}=jn(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&r!=="inline"&&r!=="contents"}function qO(e){return/^(table|td|th)$/.test(rn(e))}function Ng(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var GX=/transform|translate|scale|rotate|perspective|filter/,WX=/paint|layout|strict|content/,oc=e=>!!e&&e!=="none",n1;function u0(e){let t=Ie(e)?jn(e):e;return oc(t.transform)||oc(t.translate)||oc(t.scale)||oc(t.rotate)||oc(t.perspective)||!c0()&&(oc(t.backdropFilter)||oc(t.filter))||GX.test(t.willChange||"")||WX.test(t.contain||"")}function HO(e){let t=pr(e);for(;He(t)&&!Dr(t);){if(u0(t))return t;if(Ng(t))return null;t=pr(t)}return null}function c0(){return n1==null&&(n1=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n1}function Dr(e){return/^(html|body|#document)$/.test(rn(e))}function jn(e){return qe(e).getComputedStyle(e)}function Og(e){return Ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pr(e){if(rn(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ko(e)&&e.host||Qo(e);return Ko(t)?t.host:t}function UO(e){let t=pr(e);return Dr(t)?(e.ownerDocument||e).body:He(t)&&sc(t)?t:UO(t)}function bl(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);let r=UO(e),o=r===((a=e.ownerDocument)==null?void 0:a.body),s=qe(r);if(o){let i=d0(s);return t.concat(s,s.visualViewport||[],sc(r)?r:[],i&&n?bl(i):[])}else return t.concat(r,bl(r,[],n))}function d0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var XX=k(A(),1),Bg={...XX};var a1=Bg.useInsertionEffect,YX=a1&&a1!==Bg.useLayoutEffect?a1:e=>e();function X(e){let t=st(ZX).current;return t.next=e,YX(t.effect),t.trampoline}function ZX(){let e={next:void 0,callback:KX,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function KX(){}var GO=k(A(),1),QX=()=>{},U=typeof document<"u"?GO.useLayoutEffect:QX;var f0=k(A(),1),r1=f0.createContext(void 0);function kf(e=!1){let t=f0.useContext(r1);if(t===void 0&&!e)throw new Error(Ve(16));return t}var WO=k(A(),1);function XO(e){let{focusableWhenDisabled:t,disabled:n,composite:a=!1,tabIndex:r=0,isNativeButton:o}=e,s=a&&t!==!1,i=a&&t===!1;return{props:WO.useMemo(()=>{let u={onKeyDown(c){n&&t&&c.key!=="Tab"&&c.preventDefault()}};return a||(u.tabIndex=r,!o&&n&&(u.tabIndex=t?r:-1)),(o&&(t||s)||!o&&n)&&(u["aria-disabled"]=n),o&&(!t||i)&&(u.disabled=n),u},[a,n,t,s,i,o,r])}}function Se(e){return e?.ownerDocument||document}function m0(e,t,{detail:n=0}={}){e.dispatchEvent(new(qe(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Os(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:a=0,native:r=!0,composite:o}=e,s=$f.useRef(null),i=kf(!0),l=o??i!==void 0,{props:u}=XO({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:a,isNativeButton:r}),c=$f.useCallback(()=>{let m=s.current;o1(m)&&l&&t&&u.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,u.disabled,l]);U(c,[c]);let d=$f.useCallback((m={})=>{let{onClick:p,onMouseDown:h,onKeyUp:x,onKeyDown:b,onPointerDown:g,...y}=m;return la({onClick(v){if(t){v.preventDefault();return}p?.(v)},onMouseDown(v){t||h?.(v)},onKeyDown(v){if(t||(Wp(v),b?.(v),v.baseUIHandlerPrevented))return;let C=v.target===v.currentTarget,S=v.currentTarget,_=o1(S),w=!r&&JX(S),R=C&&(r?_:!w),$=v.key==="Enter",j=v.key===" ",M=S.getAttribute("role"),I=M?.startsWith("menuitem")||M==="option"||M==="gridcell";if(C&&l&&j){if(v.defaultPrevented&&I)return;v.preventDefault(),(!r||_)&&(v.preventBaseUIHandler(),m0(S,v));return}if(!R||r||!j&&!$){C&&w&&j&&v.preventDefault();return}v.defaultPrevented||(v.preventDefault(),$&&(v.preventBaseUIHandler(),m0(S,v)))},onKeyUp(v){if(!t){if(Wp(v),x?.(v),v.target===v.currentTarget&&r&&l&&o1(v.currentTarget)&&v.key===" "){v.preventDefault();return}v.baseUIHandlerPrevented||v.target===v.currentTarget&&!r&&!l&&!v.defaultPrevented&&v.key===" "&&(v.preventBaseUIHandler(),m0(v.currentTarget,v))}},onPointerDown(v){if(t){v.preventDefault();return}g?.(v)}},r?{type:"button"}:{role:"button"},u,y)},[t,u,l,r]),f=X(m=>{s.current=m,c()});return{getButtonProps:d,buttonRef:f}}function o1(e){return He(e)&&e.tagName==="BUTTON"}function JX(e){return He(e)&&e.tagName==="A"&&!!e.href}var s1=YO.forwardRef(function(t,n){let{render:a,className:r,disabled:o=!1,focusableWhenDisabled:s=!1,nativeButton:i=!0,style:l,...u}=t,{getButtonProps:c,buttonRef:d}=Os({disabled:o,focusableWhenDisabled:s,native:i});return oe("button",t,{state:{disabled:o},ref:[n,d],props:[u,c]})});var ZO=k(Z(),1),eY=Wd("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function on({className:e,variant:t="default",size:n="default",...a}){return(0,ZO.jsx)(s1,{"data-slot":"button",className:ne(eY({variant:t,size:n,className:e})),...a})}var sn=k(Z(),1),QO=(0,Lt.createContext)(null),Lf=()=>{let e=(0,Lt.useContext)(QO);if(!e)throw new Error("useExpandableCardContext must be used within a ExpandableCardProvider");return e},tY=_t.create(on),nY=({children:e,transition:t,defaultOpen:n,onClose:a})=>{let[r,o]=(0,Lt.useState)(!!n),s=(0,Lt.useId)(),i=(0,Lt.useRef)(null),l=(0,Lt.useRef)(a);l.current=a;let u=(0,Lt.useRef)(!0);(0,Lt.useEffect)(()=>{if(u.current){u.current=!1;return}r||l.current?.()},[r]);let c=(0,Lt.useMemo)(()=>({isOpen:r,uniqueId:s,triggerRef:i,setIsOpen:o}),[r,s]);return(0,sn.jsx)(QO.Provider,{value:c,children:(0,sn.jsx)(Fx,{transition:t,children:e})})},i1=({children:e,transition:t,defaultOpen:n,onClose:a})=>{let r=Lt.default.Children.toArray(e);return(0,sn.jsx)(nY,{defaultOpen:n,onClose:a,children:(0,sn.jsx)(Fx,{transition:t,children:r.map(o=>o)})})},p0=(0,Lt.forwardRef)(({children:e,className:t,...n},a)=>{let{isOpen:r,setIsOpen:o,uniqueId:s}=Lf(),i=(0,Lt.useCallback)(()=>{o(!0)},[o]);return(0,sn.jsx)(_t.div,{ref:a,"data-slot":"expandable-card-body",layoutId:`card-${s}`,className:ne("relative bg-card text-card-foreground flex flex-col rounded-xl overflow-hidden shadow-sm pb-2","cursor-pointer select-none",t),onClick:()=>i(),"aria-haspopup":"dialog","aria-expanded":r,"aria-controls":`shadix-ui-expandable-card-${s}`,style:{willChange:"transform, opacity",transform:"translateZ(0)"},...n,children:e})}),l1=({children:e,className:t,...n})=>{let{uniqueId:a}=Lf();return(0,sn.jsx)(_t.div,{layoutId:`card-content-${a}`,className:ne("overflow-hidden p-4",t),"aria-modal":"true",initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:6},transition:{ease:"easeIn",duration:.3,delay:.2},style:{willChange:"transform, opacity"},"aria-labelledby":`shadix-ui-expandable-card-${a}-title`,"aria-describedby":`shadix-ui-expandable-card-${a}-description`,...n,children:e})},u1=({children:e,className:t})=>{let{isOpen:n,uniqueId:a,setIsOpen:r}=Lf(),[o,s]=(0,Lt.useState)(!1),i=(0,Lt.useRef)(null);return zO({ref:i,callback:()=>{r(!1)}}),(0,Lt.useEffect)(()=>(s(!0),()=>s(!1)),[]),(0,Lt.useEffect)(()=>{if(!n)return;let l=c=>c.key==="Escape"&&r(!1),u=document.body.style.overflow;return document.body.style.overflow="hidden",document.addEventListener("keydown",l),()=>{document.removeEventListener("keydown",l),document.body.style.overflow=u}},[n,r]),o?(0,KO.createPortal)((0,sn.jsx)(Zo,{initial:!1,mode:"sync",children:n&&(0,sn.jsxs)(sn.Fragment,{children:[(0,sn.jsx)(_t.div,{"data-slot":"expandable-card-expand-container",className:"fixed inset-0 h-full w-full bg-white/40 backdrop-blur-sm dark:bg-black/50 z-40",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}},`expandable-backdrop-${a}`),(0,sn.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center max-w-3xl mx-auto h-fit my-auto px-3 pointer-events-none",children:(0,sn.jsxs)(p0,{ref:i,className:ne("pointer-events-auto",t),children:[e,(0,sn.jsx)(JO,{})]})})]})}),document.body):null},c1=({className:e,children:t,...n})=>{let{uniqueId:a}=Lf();return(0,sn.jsx)(_t.h2,{layout:"position",layoutId:`card-title-${a}`,className:ne("text-lg font-semibold leading-6 tracking-tight p-0 px-4 !m-0 !mt-2",e),...n,children:t})},d1=({className:e,children:t,...n})=>{let{uniqueId:a}=Lf();return(0,sn.jsx)(_t.h3,{id:`card-description-${a}`,layout:"position",layoutId:`card-description-${a}`,className:ne("text-sm text-muted-foreground px-4",e),...n,children:t})},aY=({className:e,...t})=>(0,sn.jsx)(_t.img,{style:{willChange:"transform,scale"},className:ne("w-full h-full object-cover object-top not-prose",e),...t}),JO=({className:e,children:t,...n})=>{let{setIsOpen:a,uniqueId:r}=Lf(),o=(0,Lt.useCallback)(s=>{s.stopPropagation(),a(!1)},[a]);return(0,sn.jsx)(tY,{layout:"position",layoutId:`card-close-button-${r}`,onClick:o,"aria-label":"Close",size:"icon-sm",className:ne("flex absolute top-2 right-2 items-center justify-center rounded-full pointer-events-auto","bg-background/50 hover:bg-background/70 text-foreground/60 cursor-pointer z-[60]",e),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:-.2}},transition:{duration:.2,delay:.3},...n,children:t??(0,sn.jsx)(qp,{})})};i1.displayName="ExpandableCard";p0.displayName="ExpandableCardBody";l1.displayName="ExpandableCardContent";u1.displayName="ExpandableCardExpandContainer";c1.displayName="ExpandableCardTitle";d1.displayName="ExpandableCardDescription";aY.displayName="ExpandableCardImage";JO.displayName="ExpandableCardCloseButton";var eB="@keyframes beui-text-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion: reduce){.beui-text-shimmer{animation:none !important}}",tB="beui-text-shimmer bg-[length:200%_100%] bg-clip-text text-transparent bg-[linear-gradient(110deg,var(--muted-foreground)_30%,var(--foreground)_50%,var(--muted-foreground)_70%)]";function nB(e){return{animation:`beui-text-shimmer ${e}s linear infinite`}}var ic=k(Z(),1);function g0({children:e,as:t="span",duration:n=2.5,className:a}){return(0,ic.jsxs)(ic.Fragment,{children:[(0,ic.jsx)("style",{children:eB}),(0,ic.jsx)(t,{style:nB(n),className:ne("inline-block",tB,a),children:e})]})}var Vr=k(A(),1);var Fr=k(A(),1);var rB=k(Z(),1);function aB({children:e="Thinking\u2026",duration:t=1.8,className:n}){return(0,rB.jsx)(g0,{as:"span",duration:t,className:ne("font-medium",n),children:e})}var yl=[.16,1,.3,1];var h0={type:"spring",stiffness:500,damping:30,mass:.6},xl={type:"spring",stiffness:460,damping:30,mass:.55};var lc={type:"spring",stiffness:360,damping:32,mass:.6};var oB=k(Z(),1);function vl({open:e,openHeight:t="auto",className:n,style:a,transition:r,...o}){let s=$a()??!1;return(0,oB.jsx)(_t.div,{...o,"aria-hidden":!e,inert:!e,initial:!1,animate:s?{opacity:e?1:0}:{opacity:e?1:0,clipPath:e?"inset(0 0 0% 0)":"inset(0 0 100% 0)",y:e?0:-4},transition:r??{duration:s?0:e?.22:.14,ease:yl},className:ne("overflow-hidden",n),style:{...a,height:e?t:0,pointerEvents:e?void 0:"none",transformOrigin:"top"}})}var La=k(A(),1);var b0=k(A(),1);var Bs=k(Z(),1);function sB({items:e,activeId:t,onSelect:n}){let[a,r]=(0,b0.useState)(),o=(0,b0.useRef)(new Map),s=$a(),i=e.find(u=>u.id===a),l=e.findIndex(u=>u.id===(a??t));return(0,Bs.jsxs)("nav",{"aria-label":"Activity navigation",className:"absolute inset-y-2 right-2 z-10 flex w-7 flex-col justify-center",onPointerLeave:u=>{u.pointerType==="mouse"&&r(void 0)},onBlur:u=>{u.currentTarget.contains(u.relatedTarget)||r(void 0)},children:[e.map((u,c)=>{let d=Math.abs(c-l);return(0,Bs.jsx)("button",{type:"button",ref:f=>{f?o.current.set(u.id,f):o.current.delete(u.id)},"aria-label":`Go to ${u.label}`,"aria-current":t===u.id?"location":void 0,onPointerEnter:f=>{f.pointerType==="mouse"&&r(u.id)},onFocus:()=>r(u.id),onClick:()=>{r(u.id),n(u)},onKeyDown:f=>{if(f.key==="Escape"){f.stopPropagation(),r(void 0);return}let m=f.key==="Home"?0:f.key==="End"?e.length-1:f.key==="ArrowDown"?Math.min(e.length-1,c+1):f.key==="ArrowUp"?Math.max(0,c-1):void 0;m!==void 0&&(f.preventDefault(),o.current.get(e[m].id)?.focus())},className:"flex h-5 w-7 shrink-0 items-center justify-end rounded-sm px-1 text-muted-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,Bs.jsx)(_t.span,{"aria-hidden":"true",className:`h-px w-5 origin-right bg-current ${d===0?"text-foreground":""}`,animate:{scaleX:d===0?1:d===1?.7:d===2?.45:.25},transition:s?{duration:0}:lc})},u.id)}),(0,Bs.jsx)(Zo,{children:i&&(0,Bs.jsxs)(_t.div,{"aria-hidden":"true",initial:{opacity:0,x:s?0:4},animate:{opacity:1,x:0},exit:{opacity:0},transition:{duration:s?0:.12,ease:yl},className:"pointer-events-none absolute right-8 top-1/2 w-52 max-w-[calc(100vw-8rem)] -translate-y-1/2 rounded-lg border bg-popover p-3 text-xs text-popover-foreground shadow-lg",children:[(0,Bs.jsx)("p",{className:"font-medium",children:i.label}),i.description&&(0,Bs.jsx)("p",{className:"mt-1 line-clamp-3 [overflow-wrap:anywhere] leading-5 text-muted-foreground",children:i.description})]},i.id)})]})}var co=k(Z(),1);function iB({children:e,items:t,followOutput:n,maxHeight:a,className:r}){let o=(0,La.useRef)(null),s=(0,La.useRef)(null),i=(0,La.useRef)(n),[l,u]=(0,La.useState)(!0),[c,d]=(0,La.useState)(!1),[f,m]=(0,La.useState)(t[0]?.id??""),p=(0,La.useCallback)(()=>{let y=o.current;if(!y)return;let v=y.scrollHeight-y.scrollTop-y.clientHeight<40;u(v),d(y.scrollHeight>y.clientHeight+1);let C=Array.from(y.querySelectorAll("[data-activity-id]")),S=y.getBoundingClientRect(),_=v?C.at(-1):C.find(w=>w.getBoundingClientRect().bottom>S.top+32);_?.dataset.activityId&&m(_.dataset.activityId)},[]),h=(0,La.useCallback)(()=>{i.current=!0,o.current?.scrollTo({top:o.current.scrollHeight,behavior:"auto"}),p()},[p]);(0,La.useLayoutEffect)(()=>{n&&i.current&&h(),p()},[t,n,h,p]),(0,La.useEffect)(()=>{let y=s.current,v=o.current;if(!y||!v)return;let C=new ResizeObserver(()=>{n&&i.current?h():p()});return C.observe(y),C.observe(v),()=>C.disconnect()},[n,h,p]);let x=t.filter((y,v)=>v%Math.max(1,Math.ceil(t.length/14))===0||v===t.length-1),b=t.findIndex(y=>y.id===f),g=x.findLast(y=>t.findIndex(v=>v.id===y.id)<=b)?.id??x[0]?.id??"";return(0,co.jsxs)("div",{"data-slot":"message-scroller",className:"relative min-w-0",children:[(0,co.jsxs)("div",{className:ne("relative",c&&"pr-11"),children:[(0,co.jsx)("div",{ref:o,role:"region","aria-label":"Recorded activity",tabIndex:0,onScroll:()=>{let y=o.current;i.current=y.scrollHeight-y.scrollTop-y.clientHeight<40,p()},onWheel:y=>{y.deltaY<0&&(i.current=!1)},onTouchStart:()=>{i.current=!1},onTouchEnd:()=>{let y=o.current;i.current=y.scrollHeight-y.scrollTop-y.clientHeight<40,p()},onKeyDown:y=>{["ArrowUp","PageUp","Home"].includes(y.key)&&(i.current=!1)},style:{maxHeight:a},className:ne("min-w-0 overflow-y-auto py-1 pr-2 outline-none [overflow-anchor:none] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",r),children:(0,co.jsx)("div",{ref:s,role:"list",className:"min-w-0 space-y-1.5",children:e})}),c&&(0,co.jsx)(sB,{items:x,activeId:g,onSelect:y=>{let v=o.current,C=Array.from(v?.querySelectorAll("[data-activity-id]")??[]).find(S=>S.dataset.activityId===y.id);!v||!C||(i.current=!1,v.scrollTo({top:v.scrollTop+C.getBoundingClientRect().top-v.getBoundingClientRect().top-8,behavior:"auto"}),p())}})]}),c&&(0,co.jsxs)("div",{className:"flex min-h-8 items-center justify-between gap-2 px-1 text-xs text-muted-foreground",children:[(0,co.jsxs)("span",{className:"tabular-nums",children:["Step ",Math.max(0,b)+1," of ",t.length]}),!l&&(0,co.jsxs)("button",{type:"button",onClick:h,className:"flex items-center gap-1.5 rounded-md px-2 py-1 outline-none hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:[(0,co.jsx)(Ip,{"aria-hidden":"true",className:"size-3"}),n?"Latest activity":"Last step"]})]})]})}var Ys=k(A(),1);var tv=k(A(),1);var Rt=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function rY(e){return C1(e)}function C1(e){return Array.isArray(e)?oY(e):e instanceof RegExp?e:typeof e=="object"?sY(e):e}function oY(e){let t=[];for(let n=0,a=e.length;n<a;n++)t[n]=C1(e[n]);return t}function sY(e){let t={};for(let n in e)t[n]=C1(e[n]);return t}function hB(e,...t){return t.forEach(n=>{for(let a in n)e[a]=n[a]}),e}function bB(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?bB(e.substring(0,e.length-1)):e.substr(~t+1)}var f1=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,y0=class{static hasCaptures(e){return e===null?!1:(f1.lastIndex=0,f1.test(e))}static replaceCaptures(e,t,n){return e.replace(f1,(a,r,o,s)=>{let i=n[parseInt(r||o,10)];if(i){let l=t.substring(i.start,i.end);for(;l[0]===".";)l=l.substring(1);switch(s){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return a})}};function yB(e,t){return e<t?-1:e>t?1:0}function xB(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,a=t.length;if(n===a){for(let r=0;r<n;r++){let o=yB(e[r],t[r]);if(o!==0)return o}return 0}return n-a}function lB(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function vB(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var CB=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},zg=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(uY(e),t)}static createFromParsedTheme(e,t){return dY(e,t)}_cachedMatchRoot=new CB(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,a=this._cachedMatchRoot.get(t).find(r=>iY(e.parent,r.parentScopes));return a?new wB(a.fontStyle,a.foreground,a.background):null}},m1=class x0{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(let a of n)t=new x0(t,a);return t}static from(...t){let n=null;for(let a=0;a<t.length;a++)n=new x0(n,t[a]);return n}push(t){return new x0(this,t)}getSegments(){let t=this,n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){let n=[],a=this;for(;a&&a!==t;)n.push(a.scopeName),a=a.parent;return a===t?n.reverse():void 0}};function iY(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let a=t[n],r=!1;if(a===">"){if(n===t.length-1)return!1;a=t[++n],r=!0}for(;e&&!lY(e.scopeName,a);){if(r)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function lY(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var wB=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function uY(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],a=0;for(let r=0,o=t.length;r<o;r++){let s=t[r];if(!s.settings)continue;let i;if(typeof s.scope=="string"){let d=s.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),i=d.split(",")}else Array.isArray(s.scope)?i=s.scope:i=[""];let l=-1;if(typeof s.settings.fontStyle=="string"){l=0;let d=s.settings.fontStyle.split(" ");for(let f=0,m=d.length;f<m;f++)switch(d[f]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof s.settings.foreground=="string"&&lB(s.settings.foreground)&&(u=s.settings.foreground);let c=null;typeof s.settings.background=="string"&&lB(s.settings.background)&&(c=s.settings.background);for(let d=0,f=i.length;d<f;d++){let p=i[d].trim().split(" "),h=p[p.length-1],x=null;p.length>1&&(x=p.slice(0,p.length-1),x.reverse()),n[a++]=new cY(h,x,r,l,u,c)}}return n}var cY=class{constructor(e,t,n,a,r,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=a,this.foreground=r,this.background=o}},Qn=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Qn||{});function dY(e,t){e.sort((l,u)=>{let c=yB(l.scope,u.scope);return c!==0||(c=xB(l.parentScopes,u.parentScopes),c!==0)?c:l.index-u.index});let n=0,a="#000000",r="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(a=l.foreground),l.background!==null&&(r=l.background)}let o=new fY(t),s=new wB(n,o.getId(a),o.getId(r)),i=new pY(new g1(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let c=e[l];i.insert(0,c.scope,c.parentScopes,c.fontStyle,o.getId(c.foreground),o.getId(c.background))}return new zg(o,s,i)}var fY=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},mY=Object.freeze([]),g1=class _B{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,a,r,o){this.scopeDepth=t,this.parentScopes=n||mY,this.fontStyle=a,this.foreground=r,this.background=o}clone(){return new _B(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let a=0,r=t.length;a<r;a++)n[a]=t[a].clone();return n}acceptOverwrite(t,n,a,r){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),a!==0&&(this.foreground=a),r!==0&&(this.background=r)}},pY=class h1{constructor(t,n=[],a={}){this._mainRule=t,this._children=a,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let a=0,r=0;for(;t.parentScopes[a]===">"&&a++,n.parentScopes[r]===">"&&r++,!(a>=t.parentScopes.length||r>=n.parentScopes.length);){let o=n.parentScopes[r].length-t.parentScopes[a].length;if(o!==0)return o;a++,r++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let a=t.indexOf("."),r,o;if(a===-1?(r=t,o=""):(r=t.substring(0,a),o=t.substring(a+1)),this._children.hasOwnProperty(r))return this._children[r].match(o)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(h1._cmpBySpecificity),n}insert(t,n,a,r,o,s){if(n===""){this._doInsertHere(t,a,r,o,s);return}let i=n.indexOf("."),l,u;i===-1?(l=n,u=""):(l=n.substring(0,i),u=n.substring(i+1));let c;this._children.hasOwnProperty(l)?c=this._children[l]:(c=new h1(this._mainRule.clone(),g1.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(t+1,u,a,r,o,s)}_doInsertHere(t,n,a,r,o){if(n===null){this._mainRule.acceptOverwrite(t,a,r,o);return}for(let s=0,i=this._rulesWithParentScopes.length;s<i;s++){let l=this._rulesWithParentScopes[s];if(xB(l.parentScopes,n)===0){l.acceptOverwrite(t,a,r,o);return}}a===-1&&(a=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new g1(t,n,a,r,o))}},Cl=class Nr{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let n=Nr.getLanguageId(t),a=Nr.getTokenType(t),r=Nr.getFontStyle(t),o=Nr.getForeground(t),s=Nr.getBackground(t);console.log({languageId:n,tokenType:a,fontStyle:r,foreground:o,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,a,r,o,s,i){let l=Nr.getLanguageId(t),u=Nr.getTokenType(t),c=Nr.containsBalancedBrackets(t)?1:0,d=Nr.getFontStyle(t),f=Nr.getForeground(t),m=Nr.getBackground(t);return n!==0&&(l=n),a!==8&&(u=a),r!==null&&(c=r?1:0),o!==-1&&(d=o),s!==0&&(f=s),i!==0&&(m=i),(l<<0|u<<8|c<<10|d<<11|f<<15|m<<24)>>>0}};function C0(e,t){let n=[],a=gY(e),r=a.next();for(;r!==null;){let l=0;if(r.length===2&&r.charAt(1)===":"){switch(r.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=a.next()}let u=s();if(n.push({matcher:u,priority:l}),r!==",")break;r=a.next()}return n;function o(){if(r==="-"){r=a.next();let l=o();return u=>!!l&&!l(u)}if(r==="("){r=a.next();let l=i();return r===")"&&(r=a.next()),l}if(uB(r)){let l=[];do l.push(r),r=a.next();while(uB(r));return u=>t(l,u)}return null}function s(){let l=[],u=o();for(;u;)l.push(u),u=o();return c=>l.every(d=>d(c))}function i(){let l=[],u=s();for(;u&&(l.push(u),r==="|"||r===",");){do r=a.next();while(r==="|"||r===",");u=s()}return c=>l.some(d=>d(c))}}function uB(e){return!!e&&!!e.match(/[\w\.:]+/)}function gY(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let a=n[0];return n=t.exec(e),a}}}function SB(e){typeof e.dispose=="function"&&e.dispose()}var qg=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},hY=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},bY=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},yY=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new qg(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new bY;for(let n of e)xY(n,this.initialScopeName,this.repo,t);for(let n of t.references)if(n instanceof qg){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function xY(e,t,n,a){let r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let o=n.lookup(t);e instanceof qg?v0({baseGrammar:o,selfGrammar:r},a):b1(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);let s=n.injections(e.scopeName);if(s)for(let i of s)a.add(new qg(i))}function b1(e,t,n){if(t.repository&&t.repository[e]){let a=t.repository[e];w0([a],t,n)}}function v0(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&w0(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&w0(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function w0(e,t,n){for(let a of e){if(n.visitedRule.has(a))continue;n.visitedRule.add(a);let r=a.repository?hB({},t.repository,a.repository):t.repository;Array.isArray(a.patterns)&&w0(a.patterns,{...t,repository:r},n);let o=a.include;if(!o)continue;let s=kB(o);switch(s.kind){case 0:v0({...t,selfGrammar:t.baseGrammar},n);break;case 1:v0(t,n);break;case 2:b1(s.ruleName,{...t,repository:r},n);break;case 3:case 4:let i=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(i){let l={baseGrammar:t.baseGrammar,selfGrammar:i,repository:r};s.kind===4?b1(s.ruleName,l,n):v0(l,n)}else s.kind===4?n.add(new hY(s.scopeName,s.ruleName)):n.add(new qg(s.scopeName));break}}}var vY=class{kind=0},CY=class{kind=1},wY=class{constructor(e){this.ruleName=e}kind=2},_Y=class{constructor(e){this.scopeName=e}kind=3},SY=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function kB(e){if(e==="$base")return new vY;if(e==="$self")return new CY;let t=e.indexOf("#");if(t===-1)return new _Y(e);if(t===0)return new wY(e.substring(1));{let n=e.substring(0,t),a=e.substring(t+1);return new SY(n,a)}}var kY=/\\(\d+)/,cB=/\\(\d+)/g,h_e=Symbol("RuleId"),$Y=-1,$B=-2;var Gg=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,a){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=y0.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=y0.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${bB(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:y0.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:y0.replaceCaptures(this._contentName,e,t)}},LY=class extends Gg{retokenizeCapturedWithRuleId;constructor(e,t,n,a,r){super(e,t,n,a),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,a){throw new Error("Not supported!")}},RY=class extends Gg{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,a,r){super(e,t,n,null),this._match=new Hg(a,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ug,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},dB=class extends Gg{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,a,r){super(e,t,n,a),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ug,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},y1=class extends Gg{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,a,r,o,s,i,l,u){super(e,t,n,a),this._begin=new Hg(r,this.id),this.beginCaptures=o,this._end=new Hg(s||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ug;for(let n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},_0=class extends Gg{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,a,r,o,s,i,l){super(e,t,n,a),this._begin=new Hg(r,this.id),this.beginCaptures=o,this.whileCaptures=i,this._while=new Hg(s,$B),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ug;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ug,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}},LB=class ca{static createCaptureRule(t,n,a,r,o){return t.registerRule(s=>new LY(n,s,a,r,o))}static getCompiledRuleId(t,n,a){return t.id||n.registerRule(r=>{if(t.id=r,t.match)return new RY(t.$vscodeTextmateLocation,t.id,t.name,t.match,ca._compileCaptures(t.captures,n,a));if(typeof t.begin>"u"){t.repository&&(a=hB({},a,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new dB(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,ca._compilePatterns(o,n,a))}return t.while?new _0(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ca._compileCaptures(t.beginCaptures||t.captures,n,a),t.while,ca._compileCaptures(t.whileCaptures||t.captures,n,a),ca._compilePatterns(t.patterns,n,a)):new y1(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ca._compileCaptures(t.beginCaptures||t.captures,n,a),t.end,ca._compileCaptures(t.endCaptures||t.captures,n,a),t.applyEndPatternLast,ca._compilePatterns(t.patterns,n,a))}),t.id}static _compileCaptures(t,n,a){let r=[];if(t){let o=0;for(let s in t){if(s==="$vscodeTextmateLocation")continue;let i=parseInt(s,10);i>o&&(o=i)}for(let s=0;s<=o;s++)r[s]=null;for(let s in t){if(s==="$vscodeTextmateLocation")continue;let i=parseInt(s,10),l=0;t[s].patterns&&(l=ca.getCompiledRuleId(t[s],n,a)),r[i]=ca.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,l)}}return r}static _compilePatterns(t,n,a){let r=[];if(t)for(let o=0,s=t.length;o<s;o++){let i=t[o],l=-1;if(i.include){let u=kB(i.include);switch(u.kind){case 0:case 1:l=ca.getCompiledRuleId(a[i.include],n,a);break;case 2:let c=a[u.ruleName];c&&(l=ca.getCompiledRuleId(c,n,a));break;case 3:case 4:let d=u.scopeName,f=u.kind===4?u.ruleName:null,m=n.getExternalGrammar(d,a);if(m)if(f){let p=m.repository[f];p&&(l=ca.getCompiledRuleId(p,n,m.repository))}else l=ca.getCompiledRuleId(m.repository.$self,n,m.repository);break}}else l=ca.getCompiledRuleId(i,n,a);if(l!==-1){let u=n.getRule(l),c=!1;if((u instanceof dB||u instanceof y1||u instanceof _0)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;r.push(l)}}return{patterns:r,hasMissingPatterns:(t?t.length:0)!==r.length}}},Hg=class RB{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){let a=t.length,r=0,o=[],s=!1;for(let i=0;i<a;i++)if(t.charAt(i)==="\\"&&i+1<a){let u=t.charAt(i+1);u==="z"?(o.push(t.substring(r,i)),o.push("$(?!\\n)(?<!\\n)"),r=i+2):(u==="A"||u==="G")&&(s=!0),i++}this.hasAnchor=s,r===0?this.source=t:(o.push(t.substring(r,a)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=kY.test(this.source):this.hasBackReferences=!1}clone(){return new RB(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let a=n.map(r=>t.substring(r.start,r.end));return cB.lastIndex=0,this.source.replace(cB,(r,o)=>vB(a[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],a=[],r=[],o,s,i,l;for(o=0,s=this.source.length;o<s;o++)i=this.source.charAt(o),t[o]=i,n[o]=i,a[o]=i,r[o]=i,i==="\\"&&o+1<s&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="\uFFFF",n[o+1]="\uFFFF",a[o+1]="A",r[o+1]="A"):l==="G"?(t[o+1]="\uFFFF",n[o+1]="G",a[o+1]="\uFFFF",r[o+1]="G"):(t[o+1]=l,n[o+1]=l,a[o+1]=l,r[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:a.join(""),A1_G1:r.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Ug=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new fB(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let a=this._items.map(r=>r.resolveAnchors(t,n));return new fB(e,a,this._items.map(r=>r.ruleId))}},fB=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
17
|
+
`),()=>{i.current?.removeAttribute("data-motion-pop-id"),_.contains(S)&&_.removeChild(S)}},[t]),(0,BN.jsx)(H$,{isPresent:t,childRef:i,sizeRef:l,pop:o,children:o===!1?e:Px.cloneElement(e,{ref:d})})}var zN=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:r,presenceAffectsLayout:o,mode:s,anchorX:i,anchorY:l,root:u})=>{let c=Ji(wX),d=(0,fl.useId)(),f=(0,fl.useRef)(n),m=(0,fl.useRef)(a);el(()=>{f.current=n,m.current=a});let p=!0,h=(0,fl.useMemo)(()=>(p=!1,{id:d,initial:t,isPresent:n,custom:r,onExitComplete:x=>{c.set(x,!0);for(let b of c.values())if(!b)return;a&&a()},register:x=>(c.set(x,!1),()=>{c.delete(x),!f.current&&!c.size&&m.current?.()})}),[n,c,a]);return o&&p&&(h={...h}),(0,fl.useMemo)(()=>{c.forEach((x,b)=>c.set(b,!1))},[n]),VN.useEffect(()=>{!n&&!c.size&&a&&a()},[n]),e=(0,U$.jsx)(FN,{pop:s==="popLayout",isPresent:n,anchorX:i,anchorY:l,root:u,children:e}),(0,U$.jsx)(tl.Provider,{value:h,children:e})};function wX(){return new Map}var ml=k(A(),1);function Mx(e=!0){let t=(0,ml.useContext)(tl);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:a,register:r}=t,o=(0,ml.useId)();(0,ml.useEffect)(()=>{if(e)return r(o)},[e]);let s=(0,ml.useCallback)(()=>e&&a&&a(o),[o,a,e]);return!n&&a?[!1,s]:[!0]}var Dx=k(A(),1),xf=e=>e.key||"";function G$(e){let t=[];return Dx.Children.forEach(e,n=>{(0,Dx.isValidElement)(n)&&t.push(n)}),t}var Zo=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:r=!0,mode:o="sync",propagate:s=!1,anchorX:i="left",anchorY:l="top",root:u})=>{let[c,d]=Mx(s),f=(0,Yo.useMemo)(()=>G$(e),[e]),m=s&&!c?[]:f.map(xf),p=(0,Yo.useRef)(!0),h=Ji(()=>new Map),x=(0,Yo.useRef)(new Set),[b,g]=(0,Yo.useState)(f),[y,v]=(0,Yo.useState)(f);el(()=>{s&&!c&&!y.length&&d?.()},[c,s,y.length,d]),el(()=>{p.current=!1;for(let _=0;_<y.length;_++){let w=xf(y[_]);m.includes(w)?(h.delete(w),x.current.delete(w)):h.get(w)!==!0&&h.set(w,!1)}},[y,m.length,m.join("-")]);let C=[];if(f!==b){let _=[...f],w=0;for(let R of y){let $=m.indexOf(xf(R));$===-1?(_.splice(w++,0,R),C.push(R)):w=$+C.length+1}return C.every(R=>h.get(xf(R)))?_=f:o==="wait"&&(_=C),v(G$(_)),g(f),null}let{forceRender:S}=(0,Yo.useContext)(Yd);return(0,Ag.jsx)(Ag.Fragment,{children:y.map(_=>{let w=xf(_),R=s&&!c?!1:f===y||m.includes(w),$=()=>{if(x.current.has(w))return;if(h.has(w))x.current.add(w),h.set(w,!0);else return;let j=!0;h.forEach(M=>{M||(j=!1)}),j&&(S?.(),g([]),s&&d?.(),a&&a())};return(0,Ag.jsx)(zN,{isPresent:R,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:o,root:u,onExitComplete:R?void 0:$,anchorX:i,anchorY:l,children:_},w)})})};var qN=k(A(),1),Nx=(0,qN.createContext)({strict:!1});var HN={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"]},UN=!1;function _X(){if(UN)return;let e={};for(let t in HN)e[t]={isEnabled:n=>HN[t].some(a=>!!n[a])};$g(e),UN=!0}function Ox(){return _X(),L$()}function GN(e){let t=Ox();for(let n in e)t[n]={...t[n],...e[n]};$g(t)}var WN=k(Z(),1),Bx=k(A(),1);function Fx({children:e,...t}){let n=(0,Bx.useContext)(Ds);t={...n,...t},t.transition=Vu(t.transition,n.transition),t.isStatic=Ji(()=>t.isStatic);let a=(0,Bx.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,WN.jsx)(Ds.Provider,{value:a,children:e})}var Ux=k(Z(),1);var _f=k(A(),1);var XN=k(A(),1),pl=(0,XN.createContext)({});var Vx=k(A(),1);function YN(e,t){if(cl(e)){let{initial:n,animate:a}=e;return{initial:n===!1||Wo(n)?n:void 0,animate:Wo(a)?a:void 0}}return e.inherit!==!1?t:{}}function KN(e){let{initial:t,animate:n}=YN(e,(0,Vx.useContext)(pl));return(0,Vx.useMemo)(()=>({initial:t,animate:n}),[ZN(t),ZN(n)])}function ZN(e){return Array.isArray(e)?e.join(" "):e}var wf=k(A(),1);var QN=k(A(),1);var vf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function W$(e,t,n){for(let a in t)!xt(t[a])&&!Lg(a,n)&&(e[a]=t[a])}function SX({transformTemplate:e},t){return(0,QN.useMemo)(()=>{let n=vf();return Uu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function kX(e,t){let n=e.style||{},a={};return W$(a,n,e),Object.assign(a,SX(e,t)),a}function JN(e,t){let n={},a=kX(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}var eO=k(A(),1);var zx=()=>({...vf(),attrs:{}});function tO(e,t,n,a){let r=(0,eO.useMemo)(()=>{let o=zx();return xg(o,t,Ig(a),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){let o={};W$(o,e.style,e),r.style={...o,...r.style}}return r}var $X=new Set(["animate","exit","variants","initial","style","values","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 Pg(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$X.has(e)}function LX(e,t){return e.startsWith("on")?!Pg(e):t?.(e)??!Pg(e)}function nO(e,t,n,a){let r={};for(let o in e)o==="values"&&typeof e.values=="object"||xt(e[o])||(LX(o,a)||n===!0&&Pg(o)||!t&&!Pg(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}var aO=["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 Cf(e){return typeof e!="string"||e.includes("-")?!1:!!(aO.indexOf(e)>-1||/[A-Z]/u.test(e))}function rO(e,t,n,{latestValues:a},r,o=!1,s,i){let u=(s??Cf(e)?tO:JN)(t,a,r,e),c=nO(t,typeof e=="string",o,i),d=e!==wf.Fragment?{...c,...u,ref:n}:{},{children:f}=t,m=(0,wf.useMemo)(()=>xt(f)?f.get():f,[f]);return(0,wf.createElement)(e,{...d,children:m})}var X$=k(A(),1);function RX({scrapeMotionValuesFromProps:e,createRenderState:t},n,a,r){return{latestValues:IX(n,a,r,e),renderState:t()}}function IX(e,t,n,a){let r={},o=a(e,{});for(let f in o)r[f]=ec(o[f]);let{initial:s,animate:i}=e,l=cl(e),u=_g(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;let d=c?i:s;if(d&&typeof d!="boolean"&&!Ms(d)){let f=Array.isArray(d)?d:[d];for(let m=0;m<f.length;m++){let p=qu(e,f[m]);if(p){let{transitionEnd:h,transition:x,...b}=p;for(let g in b){let y=b[g];if(Array.isArray(y)){let v=c?y.length-1:0;y=y[v]}y!==null&&(r[g]=y)}for(let g in h)r[g]=h[g]}}}return r}var qx=e=>(t,n)=>{let a=(0,X$.useContext)(pl),r=(0,X$.useContext)(tl),o=()=>RX(e,t,a,r);return n?o():Ji(o)};var oO=qx({scrapeMotionValuesFromProps:Ku,createRenderState:vf});var sO=qx({scrapeMotionValuesFromProps:jg,createRenderState:zx});var iO=Symbol.for("motionComponentSymbol");var ac=k(A(),1);function lO(e,t,n){let a=(0,ac.useRef)(n);(0,ac.useInsertionEffect)(()=>{a.current=n});let r=(0,ac.useRef)(null);return(0,ac.useCallback)(o=>{o&&e.onMount?.(o),t&&(o?t.mount(o):t.unmount());let s=a.current;if(typeof s=="function")if(o){let i=s(o);typeof i=="function"&&(r.current=i)}else r.current?(r.current(),r.current=null):s(o);else s&&(s.current=o)},[t])}var ka=k(A(),1);var uO=k(A(),1),Hx=(0,uO.createContext)({});function gl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function cO(e,t,n,a,r,o){let{visualElement:s}=(0,ka.useContext)(pl),i=(0,ka.useContext)(Nx),l=(0,ka.useContext)(tl),u=(0,ka.useContext)(Ds),c=u.reducedMotion,d=u.skipAnimations,f=(0,ka.useRef)(null),m=(0,ka.useRef)(!1);a=a||i.renderer,!f.current&&a&&(f.current=a(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:d,isSVG:o}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let p=f.current,h=(0,ka.useContext)(Hx);p&&!p.projection&&r&&(p.type==="html"||p.type==="svg")&&jX(f.current,n,r,h);let x=(0,ka.useRef)(!1);(0,ka.useInsertionEffect)(()=>{p&&x.current&&p.update(n,l)});let b=n[hg],g=(0,ka.useRef)(!!b&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return el(()=>{!m.current||!p||(p.animationState?.animateChanges(),p.enteringChildren=void 0)},[]),el(()=>{m.current=!0,p&&(x.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),g.current&&p.animationState&&p.animationState.animateChanges())}),(0,ka.useEffect)(()=>{p&&(!g.current&&p.animationState&&p.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),g.current=!1),p.enteringChildren=void 0)}),p}function jX(e,t,n,a){let{layoutId:r,layout:o,drag:s,dragConstraints:i,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:dO(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||i&&gl(i),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:a,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function dO(e){if(e)return e.options.allowProjection!==!1?e.projection:dO(e.parent)}function Gx(e,{forwardMotionProps:t=!1,type:n}={},a,r){a&&GN(a);let o=n?n==="svg":Cf(e),s=o?sO:oO;function i(u,c){let d,f={...(0,_f.useContext)(Ds),...u,layoutId:TX(u)},{isStatic:m,isValidProp:p}=f,h=KN(u),x=s(u,m);if(!m&&typeof window<"u"){EX(f,a);let b=AX(f);d=b.MeasureLayout,h.visualElement=cO(e,x,f,r,b.ProjectionNode,o)}return(0,Ux.jsxs)(pl.Provider,{value:h,children:[d&&h.visualElement?(0,Ux.jsx)(d,{visualElement:h.visualElement,...f}):null,rO(e,u,lO(x,h.visualElement,c),x,m,t,o,p)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let l=(0,_f.forwardRef)(i);return l[iO]=e,l}function TX({layoutId:e}){let t=(0,_f.useContext)(Yd).id;return t&&e!==void 0?t+"-"+e:e}function EX(e,t){let n=(0,_f.useContext)(Nx).strict}function AX(e){let t=Ox(),{drag:n,layout:a}=t;if(!n&&!a)return{};let r={...n,...a};return{MeasureLayout:n?.isEnabled(e)||a?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function fO(e,t){if(typeof Proxy>"u")return Gx;let n=new Map,a=(o,s)=>Gx(o,s,e,t),r=(o,s)=>a(o,s);return new Proxy(r,{get:(o,s)=>s==="create"?a:(n.has(s)||n.set(s,Gx(s,void 0,e,t)),n.get(s))})}var mO=k(A(),1);var pO=(e,t)=>t.isSVG??Cf(e)?new Tg(t):new Rg(t,{allowProjection:e!==mO.Fragment});var Wx=class extends In{constructor(t){super(t),t.animationState||(t.animationState=j$(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Ms(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var PX=0,Xx=class extends In{constructor(){super(...arguments),this.id=PX++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{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){let{initial:o,custom:s}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){let i=fr(this.node,o,s);if(i){let{transition:l,transitionEnd:u,...c}=i;for(let d in c)this.node.getValue(d)?.jump(c[d])}}this.node.blockInitialAnimation=!1,this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1,this.exitAnimation=void 0;return}let r=this.exitAnimation=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{this.exitAnimation===r&&(this.isExitComplete=!0,n(this.id))})}mount(){let{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var gO={animation:{Feature:Wx},exit:{Feature:Xx}};function rc(e){return{point:{x:e.pageX,y:e.pageY}}}var hO=e=>t=>Wu(t)&&e(t,rc(t));function hl(e,t,n,a){return Xo(e,t,hO(n),a)}var Yx=({current:e})=>e?e.ownerDocument.defaultView:null;var bO=(e,t)=>Math.abs(e-t);function yO(e,t){let n=bO(e.x,t.x),a=bO(e.y,t.y);return Math.sqrt(n**2+a**2)}var xO=new Set(["auto","scroll"]),Sf=class{constructor(t,n,{transformPagePoint:a,contextWindow:r=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3,element:i}={}){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=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Zx(this.lastRawMoveEventInfo,this.transformPagePoint));let p=Y$(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,x=yO(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!x)return;let{point:b}=p;this.history.push({...b,timestamp:wt.now()});let{onStart:g,onMove:y}=this.handlers;h||(g&&g(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,p)},this.handlePointerMove=(p,h)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=h,this.lastMoveEventInfo=Zx(h,this.transformPagePoint),this.hasPendingMove=!0,ze.update(this.updatePoint,!0)},this.handlePointerUp=(p,h)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:x,onSessionEnd:b,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let y=Y$(p.type==="pointercancel"?this.lastMoveEventInfo:Zx(h,this.transformPagePoint),this.history);this.startEvent&&x&&x(p,y),b&&b(p,y)},!Wu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=a,this.distanceThreshold=s,this.contextWindow=r||window;let l=rc(t),u=Zx(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=Mt;this.history=[{...c,timestamp:d}];let{onSessionStart:f}=n;f&&f(t,Y$(u,this.history));let m={passive:!0,capture:!0};this.removeListeners=lo(hl(this.contextWindow,"pointermove",this.handlePointerMove,m),hl(this.contextWindow,"pointerup",this.handlePointerUp,m),hl(this.contextWindow,"pointercancel",this.handlePointerUp,m)),i&&this.startScrollTracking(i)}startScrollTracking(t){let n=t.parentElement;for(;n;){let a=getComputedStyle(n);(xO.has(a.overflowX)||xO.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){let n=this.scrollPositions.get(t);if(!n)return;let a=t===window,r=a?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:r.x-n.x,y:r.y-n.y};o.x===0&&o.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,r),ze.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ha(this.updatePoint)}};function Zx(e,t){return t?{point:t(e.point)}:e}function vO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Y$({point:e},t){return{point:e,delta:vO(e,CO(t)),offset:vO(e,MX(t)),velocity:DX(t,.1)}}function MX(e){return e[0]}function CO(e){return e[e.length-1]}function DX(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,a=null,r=CO(e);for(;n>=0&&(a=e[n],!(r.timestamp-a.timestamp>bn(t)));)n--;if(!a)return{x:0,y:0};a===e[0]&&e.length>2&&r.timestamp-a.timestamp>bn(t)*2&&(a=e[1]);let o=Nn(r.timestamp-a.timestamp);if(o===0)return{x:0,y:0};let s={x:(r.x-a.x)/o,y:(r.y-a.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function $O(e,{min:t,max:n},a){return t!==void 0&&e<t?e=a?Ue(t,e,a.min):Math.max(e,t):n!==void 0&&e>n&&(e=a?Ue(n,e,a.max):Math.min(e,n)),e}function wO(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 LO(e,{top:t,left:n,bottom:a,right:r}){return{x:wO(e.x,n,r),y:wO(e.y,t,a)}}function _O(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 RO(e,t){return{x:_O(e.x,t.x),y:_O(e.y,t.y)}}function IO(e,t){let n=.5,a=yn(e),r=yn(t);return r>a?n=Vo(t.min,t.max-a,e.min):a>r&&(n=Vo(e.min,e.max-r,t.min)),Rn(0,1,n)}function jO(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Kx=.35;function TO(e=Kx){return e===!1?e=0:e===!0&&(e=Kx),{x:SO(e,"left","right"),y:SO(e,"top","bottom")}}function SO(e,t,n){return{min:kO(e,t),max:kO(e,n)}}function kO(e,t){return typeof e=="number"?e:e[t]||0}var NX=new WeakMap,Jx=class{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}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let o=d=>{n&&this.snapToCursor(d),this.stopAnimation()},s=(d,f)=>{let{drag:m,dragPropagation:p,onDragStart:h}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=b$(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mr(b=>{let g=this.getAxisMotionValue(b).get()||0;if(ua.test(g)){let{projection:y}=this.visualElement;if(y&&y.layout){let v=y.layout.layoutBox[b];v&&(g=yn(v)*(parseFloat(g)/100))}}this.originPoint[b]=g}),h&&ze.update(()=>h(d,f),!1,!0),cf(this.visualElement,"transform");let{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},i=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;let{dragPropagation:m,dragDirectionLock:p,onDirectionLock:h,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;let{offset:b}=f;if(p&&this.currentDirection===null){this.currentDirection=BX(b),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),x&&ze.update(()=>x(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{let{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new Sf(t,{onSessionStart:o,onStart:s,onMove:i,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:a,contextWindow:Yx(this.visualElement),element:this.visualElement.current})}stop(t,n){let a=t||this.latestPointerEvent,r=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!r||!a)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:i}=this.getProps();i&&ze.postRender(()=>i(a,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{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){let{drag:r}=this.getProps();if(!a||!Qx(t,r,this.currentDirection))return;let o=this.getAxisMotionValue(t),s=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(s=$O(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&gl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=LO(a.layoutBox,t):this.constraints=!1,this.elastic=TO(n),r!==this.constraints&&!gl(t)&&a&&this.constraints&&!this.hasMutatedConstraints&&mr(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=jO(a.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!gl(t))return!1;let a=t.current;qa(a!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let o=h$(a,r.root,this.visualElement.getTransformPagePoint()),s=RO(r.layout.layoutBox,o);if(n){let i=n(c$(s));this.hasMutatedConstraints=!!i,i&&(s=vg(i))}return s}startAnimation(t){let{drag:n,dragMomentum:a,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},u=mr(c=>{if(!Qx(c,n,this.currentDirection))return;let d=l&&l[c]||{};(s===!0||s===c)&&(d={min:0,max:0});let f=r?200:1e6,m=r?40:1e7,p={type:"inertia",velocity:a?t[c]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(i)}startAxisValueAnimation(t,n){let a=this.getAxisMotionValue(t);return cf(this.visualElement,t),a.start(zu(t,a,0,n,this.visualElement,!1))}stopAnimation(){mr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps()[n];return r||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor({clientX:t,clientY:n}){let{drag:a}=this.getProps(),r={x:t,y:n},o=this.visualElement.getTransformPagePoint()?.(r)||r,s=this.visualElement.measureViewportBox();mr(i=>{if(!Qx(i,a,this.currentDirection))return;let l=this.getAxisMotionValue(i),{min:u,max:c}=s[i];l.set((l.get()||0)+o[i]-Ue(u,c,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:a}=this.visualElement;if(!gl(n)||!a||!this.constraints)return;this.stopAnimation();let r=this.constraints,o={x:0,y:0};mr(i=>{let l=this.getAxisMotionValue(i).get();o[i]=IO({min:l,max:l},r[i])});let{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(),mr(i=>{let l=this.getAxisMotionValue(i);if(!Qx(i,t,null)||!l.get())return;let{min:u,max:c}=this.constraints[i];l.set(Ue(u,c,o[i]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;NX.set(this.visualElement,this);let t=this.visualElement.current,n=hl(t,"pointerdown",u=>{let{drag:c,dragListener:d=!0}=this.getProps(),f=u.target,m=f!==t&&C$(f);c&&d&&!m&&this.start(u)}),a,r=()=>{let{dragConstraints:u}=this.getProps();gl(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),a||(a=OX(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ze.read(r);let i=Xo(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(mr(d=>{let f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())}));return()=>{i(),n(),s(),l&&l(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:a=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=Kx,dragMomentum:i=!0}=t;return{...t,drag:n,dragDirectionLock:a,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:i}}};function EO(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function OX(e,t,n){let a=Sx(e,EO(n)),r=Sx(t,EO(n));return()=>{a(),r()}}function Qx(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function BX(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}var e0=class extends In{constructor(t){super(t),this.removeGroupControls=nn,this.removeListeners=nn,this.controls=new Jx(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||nn}update(){let{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()}};var Z$=e=>(t,n)=>{e&&ze.update(()=>e(t,n),!1,!0)},t0=class extends In{constructor(){super(...arguments),this.removePointerDownListener=nn}onPointerDown(t){this.session=new Sf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Yx(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:n,onPan:a,onPanEnd:r}=this.node.getProps();return{onSessionStart:Z$(t),onStart:Z$(n),onMove:Z$(a),onEnd:(o,s)=>{delete this.session,r&&ze.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=hl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var AO=k(Z(),1);var Mg=k(A(),1);var K$=!1,Q$=class extends Mg.Component{componentDidMount(){let{visualElement:t,layoutGroup:n,switchLayoutGroup:a,layoutId:r}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),a&&a.register&&r&&a.register(o),K$&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),tc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:n,visualElement:a,drag:r,isPresent:o}=this.props,{projection:s}=a;return s&&(s.isPresent=o,t.layoutDependency!==n&&s.setOptions({...s.options,layoutDependency:n}),K$=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||ze.postRender(()=>{let i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:n}=this.props,{projection:a}=t;a&&(a.options.layoutAnchor=n,a.root.didUpdate(),Gu.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:n,switchLayoutGroup:a}=this.props,{projection:r}=t;K$=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),a&&a.deregister&&a.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function n0(e){let[t,n]=Mx(),a=(0,Mg.useContext)(Yd);return(0,AO.jsx)(Q$,{...e,layoutGroup:a,switchLayoutGroup:(0,Mg.useContext)(Hx),isPresent:t,safeToRemove:n})}var PO={pan:{Feature:t0},drag:{Feature:e0,ProjectionNode:Eg,MeasureLayout:n0}};function MO(e,t,n){let{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",n==="Start");let r="onHover"+n,o=a[r];o&&ze.postRender(()=>o(t,rc(t)))}var a0=class extends In{mount(){let{current:t}=this.node;t&&(this.unmount=y$(t,(n,a)=>(MO(this.node,a,"Start"),r=>MO(this.node,r,"End"))))}unmount(){}};var r0=class extends In{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=lo(Xo(this.node.current,"focus",()=>this.onFocus()),Xo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function DO(e,t,n){let{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",n==="Start");let r="onTap"+(n==="End"?"":n),o=a[r];o&&ze.postRender(()=>o(t,rc(t)))}var o0=class extends In{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:n,propagate:a}=this.node.props;this.unmount=_$(t,(r,o)=>(DO(this.node,o,"Start"),(s,{success:i})=>DO(this.node,s,i?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:a?.tap===!1})}unmount(){}};var e1=new WeakMap,J$=new WeakMap,FX=e=>{let t=e1.get(e.target);t&&t(e)},VX=e=>{e.forEach(FX)};function zX({root:e,...t}){let n=e||document;J$.has(n)||J$.set(n,{});let a=J$.get(n),r=JSON.stringify(t);return a[r]||(a[r]=new IntersectionObserver(VX,{root:e,...t})),a[r]}function NO(e,t,n){let a=zX(t);return e1.set(e,n),a.observe(e),()=>{e1.delete(e),a.unobserve(e)}}var qX={some:0,all:1},s0=class extends In{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:n,margin:a,amount:r="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:a,threshold:typeof r=="number"?r:qX[r]},i=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};this.stopObserver=NO(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:n}=this.node;["amount","margin","root"].some(HX(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function HX({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var OO={inView:{Feature:s0},tap:{Feature:o0},focus:{Feature:r0},hover:{Feature:a0}};var BO={layout:{ProjectionNode:Eg,MeasureLayout:n0}};var FO={...gO,...OO,...PO,...BO};var t1=fO(FO,pO);var VO=k(A(),1);function $a(){!Yu.current&&Sg();let[e]=(0,VO.useState)(dl.current);return e}var _t=t1;var Dg=k(A(),1),zO=({ref:e,callback:t,eventType:n="mousedown",eventListenerOptions:a})=>{let r=(0,Dg.useRef)(t);r.current=t;let o=(0,Dg.useRef)(e);o.current=e,(0,Dg.useEffect)(()=>{let s=i=>{let l=i.target;if(!l||!l.isConnected)return;(Array.isArray(o.current)?o.current:[o.current]).filter(d=>!!d.current).every(d=>d.current&&!d.current.contains(l))&&r.current(i)};return document.addEventListener(n,s,a),()=>document.removeEventListener(n,s,a)},[n,a])};var YO=k(A(),1);var $f=k(A(),1);function i0(){return typeof window<"u"}function rn(e){return l0(e)?(e.nodeName||"").toLowerCase():"#document"}function qe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qo(e){var t;return(t=(l0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function l0(e){return i0()?e instanceof Node||e instanceof qe(e).Node:!1}function Ie(e){return i0()?e instanceof Element||e instanceof qe(e).Element:!1}function He(e){return i0()?e instanceof HTMLElement||e instanceof qe(e).HTMLElement:!1}function Ko(e){return!i0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qe(e).ShadowRoot}function sc(e){let{overflow:t,overflowX:n,overflowY:a,display:r}=jn(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&r!=="inline"&&r!=="contents"}function qO(e){return/^(table|td|th)$/.test(rn(e))}function Ng(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var GX=/transform|translate|scale|rotate|perspective|filter/,WX=/paint|layout|strict|content/,oc=e=>!!e&&e!=="none",n1;function u0(e){let t=Ie(e)?jn(e):e;return oc(t.transform)||oc(t.translate)||oc(t.scale)||oc(t.rotate)||oc(t.perspective)||!c0()&&(oc(t.backdropFilter)||oc(t.filter))||GX.test(t.willChange||"")||WX.test(t.contain||"")}function HO(e){let t=pr(e);for(;He(t)&&!Dr(t);){if(u0(t))return t;if(Ng(t))return null;t=pr(t)}return null}function c0(){return n1==null&&(n1=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n1}function Dr(e){return/^(html|body|#document)$/.test(rn(e))}function jn(e){return qe(e).getComputedStyle(e)}function Og(e){return Ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pr(e){if(rn(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ko(e)&&e.host||Qo(e);return Ko(t)?t.host:t}function UO(e){let t=pr(e);return Dr(t)?(e.ownerDocument||e).body:He(t)&&sc(t)?t:UO(t)}function bl(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);let r=UO(e),o=r===((a=e.ownerDocument)==null?void 0:a.body),s=qe(r);if(o){let i=d0(s);return t.concat(s,s.visualViewport||[],sc(r)?r:[],i&&n?bl(i):[])}else return t.concat(r,bl(r,[],n))}function d0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var XX=k(A(),1),Bg={...XX};var a1=Bg.useInsertionEffect,YX=a1&&a1!==Bg.useLayoutEffect?a1:e=>e();function X(e){let t=st(ZX).current;return t.next=e,YX(t.effect),t.trampoline}function ZX(){let e={next:void 0,callback:KX,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function KX(){}var GO=k(A(),1),QX=()=>{},U=typeof document<"u"?GO.useLayoutEffect:QX;var f0=k(A(),1),r1=f0.createContext(void 0);function kf(e=!1){let t=f0.useContext(r1);if(t===void 0&&!e)throw new Error(Ve(16));return t}var WO=k(A(),1);function XO(e){let{focusableWhenDisabled:t,disabled:n,composite:a=!1,tabIndex:r=0,isNativeButton:o}=e,s=a&&t!==!1,i=a&&t===!1;return{props:WO.useMemo(()=>{let u={onKeyDown(c){n&&t&&c.key!=="Tab"&&c.preventDefault()}};return a||(u.tabIndex=r,!o&&n&&(u.tabIndex=t?r:-1)),(o&&(t||s)||!o&&n)&&(u["aria-disabled"]=n),o&&(!t||i)&&(u.disabled=n),u},[a,n,t,s,i,o,r])}}function Se(e){return e?.ownerDocument||document}function m0(e,t,{detail:n=0}={}){e.dispatchEvent(new(qe(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Os(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:a=0,native:r=!0,composite:o}=e,s=$f.useRef(null),i=kf(!0),l=o??i!==void 0,{props:u}=XO({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:a,isNativeButton:r}),c=$f.useCallback(()=>{let m=s.current;o1(m)&&l&&t&&u.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,u.disabled,l]);U(c,[c]);let d=$f.useCallback((m={})=>{let{onClick:p,onMouseDown:h,onKeyUp:x,onKeyDown:b,onPointerDown:g,...y}=m;return la({onClick(v){if(t){v.preventDefault();return}p?.(v)},onMouseDown(v){t||h?.(v)},onKeyDown(v){if(t||(Wp(v),b?.(v),v.baseUIHandlerPrevented))return;let C=v.target===v.currentTarget,S=v.currentTarget,_=o1(S),w=!r&&JX(S),R=C&&(r?_:!w),$=v.key==="Enter",j=v.key===" ",M=S.getAttribute("role"),I=M?.startsWith("menuitem")||M==="option"||M==="gridcell";if(C&&l&&j){if(v.defaultPrevented&&I)return;v.preventDefault(),(!r||_)&&(v.preventBaseUIHandler(),m0(S,v));return}if(!R||r||!j&&!$){C&&w&&j&&v.preventDefault();return}v.defaultPrevented||(v.preventDefault(),$&&(v.preventBaseUIHandler(),m0(S,v)))},onKeyUp(v){if(!t){if(Wp(v),x?.(v),v.target===v.currentTarget&&r&&l&&o1(v.currentTarget)&&v.key===" "){v.preventDefault();return}v.baseUIHandlerPrevented||v.target===v.currentTarget&&!r&&!l&&!v.defaultPrevented&&v.key===" "&&(v.preventBaseUIHandler(),m0(v.currentTarget,v))}},onPointerDown(v){if(t){v.preventDefault();return}g?.(v)}},r?{type:"button"}:{role:"button"},u,y)},[t,u,l,r]),f=X(m=>{s.current=m,c()});return{getButtonProps:d,buttonRef:f}}function o1(e){return He(e)&&e.tagName==="BUTTON"}function JX(e){return He(e)&&e.tagName==="A"&&!!e.href}var s1=YO.forwardRef(function(t,n){let{render:a,className:r,disabled:o=!1,focusableWhenDisabled:s=!1,nativeButton:i=!0,style:l,...u}=t,{getButtonProps:c,buttonRef:d}=Os({disabled:o,focusableWhenDisabled:s,native:i});return oe("button",t,{state:{disabled:o},ref:[n,d],props:[u,c]})});var ZO=k(Z(),1),eY=Wd("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function on({className:e,variant:t="default",size:n="default",...a}){return(0,ZO.jsx)(s1,{"data-slot":"button",className:ne(eY({variant:t,size:n,className:e})),...a})}var sn=k(Z(),1),QO=(0,Lt.createContext)(null),Lf=()=>{let e=(0,Lt.useContext)(QO);if(!e)throw new Error("useExpandableCardContext must be used within a ExpandableCardProvider");return e},tY=_t.create(on),nY=({children:e,transition:t,defaultOpen:n,onClose:a})=>{let[r,o]=(0,Lt.useState)(!!n),s=(0,Lt.useId)(),i=(0,Lt.useRef)(null),l=(0,Lt.useRef)(a);l.current=a;let u=(0,Lt.useRef)(!0);(0,Lt.useEffect)(()=>{if(u.current){u.current=!1;return}r||l.current?.()},[r]);let c=(0,Lt.useMemo)(()=>({isOpen:r,uniqueId:s,triggerRef:i,setIsOpen:o}),[r,s]);return(0,sn.jsx)(QO.Provider,{value:c,children:(0,sn.jsx)(Fx,{transition:t,children:e})})},i1=({children:e,transition:t,defaultOpen:n,onClose:a})=>{let r=Lt.default.Children.toArray(e);return(0,sn.jsx)(nY,{defaultOpen:n,onClose:a,children:(0,sn.jsx)(Fx,{transition:t,children:r.map(o=>o)})})},p0=(0,Lt.forwardRef)(({children:e,className:t,...n},a)=>{let{isOpen:r,setIsOpen:o,uniqueId:s}=Lf(),i=(0,Lt.useCallback)(()=>{o(!0)},[o]);return(0,sn.jsx)(_t.div,{ref:a,"data-slot":"expandable-card-body",layoutId:`card-${s}`,className:ne("relative bg-card text-card-foreground flex flex-col rounded-xl overflow-hidden shadow-sm pb-2","cursor-pointer select-none",t),onClick:()=>i(),"aria-haspopup":"dialog","aria-expanded":r,"aria-controls":`shadix-ui-expandable-card-${s}`,style:{willChange:"transform, opacity",transform:"translateZ(0)"},...n,children:e})}),l1=({children:e,className:t,...n})=>{let{uniqueId:a}=Lf();return(0,sn.jsx)(_t.div,{layoutId:`card-content-${a}`,className:ne("overflow-hidden p-4",t),"aria-modal":"true",initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:6},transition:{ease:"easeIn",duration:.3,delay:.2},style:{willChange:"transform, opacity"},"aria-labelledby":`shadix-ui-expandable-card-${a}-title`,"aria-describedby":`shadix-ui-expandable-card-${a}-description`,...n,children:e})},u1=({children:e,className:t})=>{let{isOpen:n,uniqueId:a,setIsOpen:r}=Lf(),[o,s]=(0,Lt.useState)(!1),i=(0,Lt.useRef)(null);return zO({ref:i,callback:()=>{r(!1)}}),(0,Lt.useEffect)(()=>(s(!0),()=>s(!1)),[]),(0,Lt.useEffect)(()=>{if(!n)return;let l=c=>c.key==="Escape"&&r(!1),u=document.body.style.overflow;return document.body.style.overflow="hidden",document.addEventListener("keydown",l),()=>{document.removeEventListener("keydown",l),document.body.style.overflow=u}},[n,r]),o?(0,KO.createPortal)((0,sn.jsx)(Zo,{initial:!1,mode:"sync",children:n&&(0,sn.jsxs)(sn.Fragment,{children:[(0,sn.jsx)(_t.div,{"data-slot":"expandable-card-expand-container",className:"fixed inset-0 h-full w-full bg-white/40 backdrop-blur-sm dark:bg-black/50 z-40",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}},`expandable-backdrop-${a}`),(0,sn.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center max-w-3xl mx-auto h-fit my-auto px-3 pointer-events-none",children:(0,sn.jsxs)(p0,{ref:i,className:ne("pointer-events-auto",t),children:[e,(0,sn.jsx)(JO,{})]})})]})}),document.body):null},c1=({className:e,children:t,...n})=>{let{uniqueId:a}=Lf();return(0,sn.jsx)(_t.h2,{layout:"position",layoutId:`card-title-${a}`,className:ne("text-lg font-semibold leading-6 tracking-tight p-0 px-4 !m-0 !mt-2",e),...n,children:t})},d1=({className:e,children:t,...n})=>{let{uniqueId:a}=Lf();return(0,sn.jsx)(_t.h3,{id:`card-description-${a}`,layout:"position",layoutId:`card-description-${a}`,className:ne("text-sm text-muted-foreground px-4",e),...n,children:t})},aY=({className:e,...t})=>(0,sn.jsx)(_t.img,{style:{willChange:"transform,scale"},className:ne("w-full h-full object-cover object-top not-prose",e),...t}),JO=({className:e,children:t,...n})=>{let{setIsOpen:a,uniqueId:r}=Lf(),o=(0,Lt.useCallback)(s=>{s.stopPropagation(),a(!1)},[a]);return(0,sn.jsx)(tY,{layout:"position",layoutId:`card-close-button-${r}`,onClick:o,"aria-label":"Close",size:"icon-sm",className:ne("flex absolute top-2 right-2 items-center justify-center rounded-full pointer-events-auto","bg-background/50 hover:bg-background/70 text-foreground/60 cursor-pointer z-[60]",e),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:-.2}},transition:{duration:.2,delay:.3},...n,children:t??(0,sn.jsx)(qp,{})})};i1.displayName="ExpandableCard";p0.displayName="ExpandableCardBody";l1.displayName="ExpandableCardContent";u1.displayName="ExpandableCardExpandContainer";c1.displayName="ExpandableCardTitle";d1.displayName="ExpandableCardDescription";aY.displayName="ExpandableCardImage";JO.displayName="ExpandableCardCloseButton";var eB="@keyframes beui-text-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion: reduce){.beui-text-shimmer{animation:none !important}}",tB="beui-text-shimmer bg-[length:200%_100%] bg-clip-text text-transparent bg-[linear-gradient(110deg,var(--muted-foreground)_30%,var(--foreground)_50%,var(--muted-foreground)_70%)]";function nB(e){return{animation:`beui-text-shimmer ${e}s linear infinite`}}var ic=k(Z(),1);function g0({children:e,as:t="span",duration:n=2.5,className:a}){return(0,ic.jsxs)(ic.Fragment,{children:[(0,ic.jsx)("style",{children:eB}),(0,ic.jsx)(t,{style:nB(n),className:ne("inline-block",tB,a),children:e})]})}var Vr=k(A(),1);var Fr=k(A(),1);var rB=k(Z(),1);function aB({children:e="Thinking\u2026",duration:t=1.8,className:n}){return(0,rB.jsx)(g0,{as:"span",duration:t,className:ne("font-medium",n),children:e})}var yl=[.16,1,.3,1];var h0={type:"spring",stiffness:500,damping:30,mass:.6},xl={type:"spring",stiffness:460,damping:30,mass:.55};var lc={type:"spring",stiffness:360,damping:32,mass:.6};var oB=k(Z(),1);function vl({open:e,openHeight:t="auto",className:n,style:a,transition:r,...o}){let s=$a()??!1;return(0,oB.jsx)(_t.div,{...o,"aria-hidden":!e,inert:!e,initial:!1,animate:s?{opacity:e?1:0}:{opacity:e?1:0,clipPath:e?"inset(0 0 0% 0)":"inset(0 0 100% 0)",y:e?0:-4},transition:r??{duration:s?0:e?.22:.14,ease:yl},className:ne("overflow-hidden",n),style:{...a,height:e?t:0,pointerEvents:e?void 0:"none",transformOrigin:"top"}})}var La=k(A(),1);var b0=k(A(),1);var Bs=k(Z(),1);function sB({items:e,activeId:t,onSelect:n}){let[a,r]=(0,b0.useState)(),o=(0,b0.useRef)(new Map),s=$a(),i=e.find(u=>u.id===a),l=e.findIndex(u=>u.id===(a??t));return(0,Bs.jsxs)("nav",{"aria-label":"Activity navigation",className:"absolute inset-y-2 right-2 z-10 flex w-7 flex-col justify-center",onPointerLeave:u=>{u.pointerType==="mouse"&&r(void 0)},onBlur:u=>{u.currentTarget.contains(u.relatedTarget)||r(void 0)},children:[e.map((u,c)=>{let d=Math.abs(c-l);return(0,Bs.jsx)("button",{type:"button",ref:f=>{f?o.current.set(u.id,f):o.current.delete(u.id)},"aria-label":`Go to ${u.label}`,"aria-current":t===u.id?"location":void 0,onPointerEnter:f=>{f.pointerType==="mouse"&&r(u.id)},onFocus:()=>r(u.id),onClick:()=>{r(u.id),n(u)},onKeyDown:f=>{if(f.key==="Escape"){f.stopPropagation(),r(void 0);return}let m=f.key==="Home"?0:f.key==="End"?e.length-1:f.key==="ArrowDown"?Math.min(e.length-1,c+1):f.key==="ArrowUp"?Math.max(0,c-1):void 0;m!==void 0&&(f.preventDefault(),o.current.get(e[m].id)?.focus())},className:"flex h-5 w-7 shrink-0 items-center justify-end rounded-sm px-1 text-muted-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,Bs.jsx)(_t.span,{"aria-hidden":"true",className:`h-px w-5 origin-right bg-current ${d===0?"text-foreground":""}`,animate:{scaleX:d===0?1:d===1?.7:d===2?.45:.25},transition:s?{duration:0}:lc})},u.id)}),(0,Bs.jsx)(Zo,{children:i&&(0,Bs.jsxs)(_t.div,{"aria-hidden":"true",initial:{opacity:0,x:s?0:4},animate:{opacity:1,x:0},exit:{opacity:0},transition:{duration:s?0:.12,ease:yl},className:"pointer-events-none absolute right-8 top-1/2 w-52 max-w-[calc(100vw-8rem)] -translate-y-1/2 rounded-lg border bg-popover p-3 text-xs text-popover-foreground shadow-lg",children:[(0,Bs.jsx)("p",{className:"font-medium",children:i.label}),i.description&&(0,Bs.jsx)("p",{className:"mt-1 line-clamp-3 [overflow-wrap:anywhere] leading-5 text-muted-foreground",children:i.description})]},i.id)})]})}var co=k(Z(),1);function iB({children:e,items:t,followOutput:n,maxHeight:a,className:r}){let o=(0,La.useRef)(null),s=(0,La.useRef)(null),i=(0,La.useRef)(n),[l,u]=(0,La.useState)(!0),[c,d]=(0,La.useState)(!1),[f,m]=(0,La.useState)(t[0]?.id??""),p=(0,La.useCallback)(()=>{let y=o.current;if(!y)return;let v=y.scrollHeight-y.scrollTop-y.clientHeight<40;u(v),d(y.scrollHeight>y.clientHeight+1);let C=Array.from(y.querySelectorAll("[data-activity-id]")),S=y.getBoundingClientRect(),_=v?C.at(-1):C.find(w=>w.getBoundingClientRect().bottom>S.top+32);_?.dataset.activityId&&m(_.dataset.activityId)},[]),h=(0,La.useCallback)(()=>{i.current=!0,o.current?.scrollTo({top:o.current.scrollHeight,behavior:"auto"}),p()},[p]);(0,La.useLayoutEffect)(()=>{n&&i.current&&h(),p()},[t,n,h,p]),(0,La.useEffect)(()=>{let y=s.current,v=o.current;if(!y||!v)return;let C=new ResizeObserver(()=>{n&&i.current?h():p()});return C.observe(y),C.observe(v),()=>C.disconnect()},[n,h,p]);let x=t.filter((y,v)=>v%Math.max(1,Math.ceil(t.length/14))===0||v===t.length-1),b=t.findIndex(y=>y.id===f),g=x.findLast(y=>t.findIndex(v=>v.id===y.id)<=b)?.id??x[0]?.id??"";return(0,co.jsxs)("div",{"data-slot":"message-scroller",className:"relative min-w-0",children:[(0,co.jsxs)("div",{className:ne("relative",c&&"pr-11"),children:[(0,co.jsx)("div",{ref:o,role:"region","aria-label":"Recorded activity",tabIndex:0,onScroll:()=>{let y=o.current;i.current=y.scrollHeight-y.scrollTop-y.clientHeight<40,p()},onWheel:y=>{y.deltaY<0&&(i.current=!1)},onTouchStart:()=>{i.current=!1},onTouchEnd:()=>{let y=o.current;i.current=y.scrollHeight-y.scrollTop-y.clientHeight<40,p()},onKeyDown:y=>{["ArrowUp","PageUp","Home"].includes(y.key)&&(i.current=!1)},style:{maxHeight:a},className:ne("min-w-0 overflow-y-auto py-1 pr-2 outline-none [overflow-anchor:none] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",r),children:(0,co.jsx)("div",{ref:s,role:"list",className:"min-w-0 space-y-1.5",children:e})}),c&&(0,co.jsx)(sB,{items:x,activeId:g,onSelect:y=>{let v=o.current,C=Array.from(v?.querySelectorAll("[data-activity-id]")??[]).find(S=>S.dataset.activityId===y.id);!v||!C||(i.current=!1,v.scrollTo({top:v.scrollTop+C.getBoundingClientRect().top-v.getBoundingClientRect().top-8,behavior:"auto"}),p())}})]}),c&&(0,co.jsxs)("div",{className:"flex min-h-8 items-center justify-between gap-2 px-1 text-xs text-muted-foreground",children:[(0,co.jsxs)("span",{className:"tabular-nums",children:["Step ",Math.max(0,b)+1," of ",t.length]}),!l&&(0,co.jsxs)("button",{type:"button",onClick:h,className:"flex items-center gap-1.5 rounded-md px-2 py-1 outline-none hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:[(0,co.jsx)(Ip,{"aria-hidden":"true",className:"size-3"}),n?"Latest activity":"Last step"]})]})]})}var Ys=k(A(),1);var tv=k(A(),1);var Rt=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function rY(e){return C1(e)}function C1(e){return Array.isArray(e)?oY(e):e instanceof RegExp?e:typeof e=="object"?sY(e):e}function oY(e){let t=[];for(let n=0,a=e.length;n<a;n++)t[n]=C1(e[n]);return t}function sY(e){let t={};for(let n in e)t[n]=C1(e[n]);return t}function hB(e,...t){return t.forEach(n=>{for(let a in n)e[a]=n[a]}),e}function bB(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?bB(e.substring(0,e.length-1)):e.substr(~t+1)}var f1=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,y0=class{static hasCaptures(e){return e===null?!1:(f1.lastIndex=0,f1.test(e))}static replaceCaptures(e,t,n){return e.replace(f1,(a,r,o,s)=>{let i=n[parseInt(r||o,10)];if(i){let l=t.substring(i.start,i.end);for(;l[0]===".";)l=l.substring(1);switch(s){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return a})}};function yB(e,t){return e<t?-1:e>t?1:0}function xB(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,a=t.length;if(n===a){for(let r=0;r<n;r++){let o=yB(e[r],t[r]);if(o!==0)return o}return 0}return n-a}function lB(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function vB(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var CB=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},zg=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(uY(e),t)}static createFromParsedTheme(e,t){return dY(e,t)}_cachedMatchRoot=new CB(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,a=this._cachedMatchRoot.get(t).find(r=>iY(e.parent,r.parentScopes));return a?new wB(a.fontStyle,a.foreground,a.background):null}},m1=class x0{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(let a of n)t=new x0(t,a);return t}static from(...t){let n=null;for(let a=0;a<t.length;a++)n=new x0(n,t[a]);return n}push(t){return new x0(this,t)}getSegments(){let t=this,n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){let n=[],a=this;for(;a&&a!==t;)n.push(a.scopeName),a=a.parent;return a===t?n.reverse():void 0}};function iY(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let a=t[n],r=!1;if(a===">"){if(n===t.length-1)return!1;a=t[++n],r=!0}for(;e&&!lY(e.scopeName,a);){if(r)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function lY(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var wB=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function uY(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],a=0;for(let r=0,o=t.length;r<o;r++){let s=t[r];if(!s.settings)continue;let i;if(typeof s.scope=="string"){let d=s.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),i=d.split(",")}else Array.isArray(s.scope)?i=s.scope:i=[""];let l=-1;if(typeof s.settings.fontStyle=="string"){l=0;let d=s.settings.fontStyle.split(" ");for(let f=0,m=d.length;f<m;f++)switch(d[f]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof s.settings.foreground=="string"&&lB(s.settings.foreground)&&(u=s.settings.foreground);let c=null;typeof s.settings.background=="string"&&lB(s.settings.background)&&(c=s.settings.background);for(let d=0,f=i.length;d<f;d++){let p=i[d].trim().split(" "),h=p[p.length-1],x=null;p.length>1&&(x=p.slice(0,p.length-1),x.reverse()),n[a++]=new cY(h,x,r,l,u,c)}}return n}var cY=class{constructor(e,t,n,a,r,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=a,this.foreground=r,this.background=o}},Qn=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Qn||{});function dY(e,t){e.sort((l,u)=>{let c=yB(l.scope,u.scope);return c!==0||(c=xB(l.parentScopes,u.parentScopes),c!==0)?c:l.index-u.index});let n=0,a="#000000",r="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(a=l.foreground),l.background!==null&&(r=l.background)}let o=new fY(t),s=new wB(n,o.getId(a),o.getId(r)),i=new pY(new g1(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let c=e[l];i.insert(0,c.scope,c.parentScopes,c.fontStyle,o.getId(c.foreground),o.getId(c.background))}return new zg(o,s,i)}var fY=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},mY=Object.freeze([]),g1=class _B{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,a,r,o){this.scopeDepth=t,this.parentScopes=n||mY,this.fontStyle=a,this.foreground=r,this.background=o}clone(){return new _B(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let a=0,r=t.length;a<r;a++)n[a]=t[a].clone();return n}acceptOverwrite(t,n,a,r){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),a!==0&&(this.foreground=a),r!==0&&(this.background=r)}},pY=class h1{constructor(t,n=[],a={}){this._mainRule=t,this._children=a,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let a=0,r=0;for(;t.parentScopes[a]===">"&&a++,n.parentScopes[r]===">"&&r++,!(a>=t.parentScopes.length||r>=n.parentScopes.length);){let o=n.parentScopes[r].length-t.parentScopes[a].length;if(o!==0)return o;a++,r++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let a=t.indexOf("."),r,o;if(a===-1?(r=t,o=""):(r=t.substring(0,a),o=t.substring(a+1)),this._children.hasOwnProperty(r))return this._children[r].match(o)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(h1._cmpBySpecificity),n}insert(t,n,a,r,o,s){if(n===""){this._doInsertHere(t,a,r,o,s);return}let i=n.indexOf("."),l,u;i===-1?(l=n,u=""):(l=n.substring(0,i),u=n.substring(i+1));let c;this._children.hasOwnProperty(l)?c=this._children[l]:(c=new h1(this._mainRule.clone(),g1.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(t+1,u,a,r,o,s)}_doInsertHere(t,n,a,r,o){if(n===null){this._mainRule.acceptOverwrite(t,a,r,o);return}for(let s=0,i=this._rulesWithParentScopes.length;s<i;s++){let l=this._rulesWithParentScopes[s];if(xB(l.parentScopes,n)===0){l.acceptOverwrite(t,a,r,o);return}}a===-1&&(a=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new g1(t,n,a,r,o))}},Cl=class Nr{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let n=Nr.getLanguageId(t),a=Nr.getTokenType(t),r=Nr.getFontStyle(t),o=Nr.getForeground(t),s=Nr.getBackground(t);console.log({languageId:n,tokenType:a,fontStyle:r,foreground:o,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,a,r,o,s,i){let l=Nr.getLanguageId(t),u=Nr.getTokenType(t),c=Nr.containsBalancedBrackets(t)?1:0,d=Nr.getFontStyle(t),f=Nr.getForeground(t),m=Nr.getBackground(t);return n!==0&&(l=n),a!==8&&(u=a),r!==null&&(c=r?1:0),o!==-1&&(d=o),s!==0&&(f=s),i!==0&&(m=i),(l<<0|u<<8|c<<10|d<<11|f<<15|m<<24)>>>0}};function C0(e,t){let n=[],a=gY(e),r=a.next();for(;r!==null;){let l=0;if(r.length===2&&r.charAt(1)===":"){switch(r.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=a.next()}let u=s();if(n.push({matcher:u,priority:l}),r!==",")break;r=a.next()}return n;function o(){if(r==="-"){r=a.next();let l=o();return u=>!!l&&!l(u)}if(r==="("){r=a.next();let l=i();return r===")"&&(r=a.next()),l}if(uB(r)){let l=[];do l.push(r),r=a.next();while(uB(r));return u=>t(l,u)}return null}function s(){let l=[],u=o();for(;u;)l.push(u),u=o();return c=>l.every(d=>d(c))}function i(){let l=[],u=s();for(;u&&(l.push(u),r==="|"||r===",");){do r=a.next();while(r==="|"||r===",");u=s()}return c=>l.some(d=>d(c))}}function uB(e){return!!e&&!!e.match(/[\w\.:]+/)}function gY(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let a=n[0];return n=t.exec(e),a}}}function SB(e){typeof e.dispose=="function"&&e.dispose()}var qg=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},hY=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},bY=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},yY=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new qg(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new bY;for(let n of e)xY(n,this.initialScopeName,this.repo,t);for(let n of t.references)if(n instanceof qg){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function xY(e,t,n,a){let r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let o=n.lookup(t);e instanceof qg?v0({baseGrammar:o,selfGrammar:r},a):b1(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a);let s=n.injections(e.scopeName);if(s)for(let i of s)a.add(new qg(i))}function b1(e,t,n){if(t.repository&&t.repository[e]){let a=t.repository[e];w0([a],t,n)}}function v0(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&w0(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&w0(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function w0(e,t,n){for(let a of e){if(n.visitedRule.has(a))continue;n.visitedRule.add(a);let r=a.repository?hB({},t.repository,a.repository):t.repository;Array.isArray(a.patterns)&&w0(a.patterns,{...t,repository:r},n);let o=a.include;if(!o)continue;let s=kB(o);switch(s.kind){case 0:v0({...t,selfGrammar:t.baseGrammar},n);break;case 1:v0(t,n);break;case 2:b1(s.ruleName,{...t,repository:r},n);break;case 3:case 4:let i=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(i){let l={baseGrammar:t.baseGrammar,selfGrammar:i,repository:r};s.kind===4?b1(s.ruleName,l,n):v0(l,n)}else s.kind===4?n.add(new hY(s.scopeName,s.ruleName)):n.add(new qg(s.scopeName));break}}}var vY=class{kind=0},CY=class{kind=1},wY=class{constructor(e){this.ruleName=e}kind=2},_Y=class{constructor(e){this.scopeName=e}kind=3},SY=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function kB(e){if(e==="$base")return new vY;if(e==="$self")return new CY;let t=e.indexOf("#");if(t===-1)return new _Y(e);if(t===0)return new wY(e.substring(1));{let n=e.substring(0,t),a=e.substring(t+1);return new SY(n,a)}}var kY=/\\(\d+)/,cB=/\\(\d+)/g,h_e=Symbol("RuleId"),$Y=-1,$B=-2;var Gg=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,a){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=y0.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=y0.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${bB(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:y0.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:y0.replaceCaptures(this._contentName,e,t)}},LY=class extends Gg{retokenizeCapturedWithRuleId;constructor(e,t,n,a,r){super(e,t,n,a),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,a){throw new Error("Not supported!")}},RY=class extends Gg{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,a,r){super(e,t,n,null),this._match=new Hg(a,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ug,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},dB=class extends Gg{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,a,r){super(e,t,n,a),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ug,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},y1=class extends Gg{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,a,r,o,s,i,l,u){super(e,t,n,a),this._begin=new Hg(r,this.id),this.beginCaptures=o,this._end=new Hg(s||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ug;for(let n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},_0=class extends Gg{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,a,r,o,s,i,l){super(e,t,n,a),this._begin=new Hg(r,this.id),this.beginCaptures=o,this.whileCaptures=i,this._while=new Hg(s,$B),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ug;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ug,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}},LB=class ca{static createCaptureRule(t,n,a,r,o){return t.registerRule(s=>new LY(n,s,a,r,o))}static getCompiledRuleId(t,n,a){return t.id||n.registerRule(r=>{if(t.id=r,t.match)return new RY(t.$vscodeTextmateLocation,t.id,t.name,t.match,ca._compileCaptures(t.captures,n,a));if(typeof t.begin>"u"){t.repository&&(a=hB({},a,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new dB(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,ca._compilePatterns(o,n,a))}return t.while?new _0(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ca._compileCaptures(t.beginCaptures||t.captures,n,a),t.while,ca._compileCaptures(t.whileCaptures||t.captures,n,a),ca._compilePatterns(t.patterns,n,a)):new y1(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ca._compileCaptures(t.beginCaptures||t.captures,n,a),t.end,ca._compileCaptures(t.endCaptures||t.captures,n,a),t.applyEndPatternLast,ca._compilePatterns(t.patterns,n,a))}),t.id}static _compileCaptures(t,n,a){let r=[];if(t){let o=0;for(let s in t){if(s==="$vscodeTextmateLocation")continue;let i=parseInt(s,10);i>o&&(o=i)}for(let s=0;s<=o;s++)r[s]=null;for(let s in t){if(s==="$vscodeTextmateLocation")continue;let i=parseInt(s,10),l=0;t[s].patterns&&(l=ca.getCompiledRuleId(t[s],n,a)),r[i]=ca.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,l)}}return r}static _compilePatterns(t,n,a){let r=[];if(t)for(let o=0,s=t.length;o<s;o++){let i=t[o],l=-1;if(i.include){let u=kB(i.include);switch(u.kind){case 0:case 1:l=ca.getCompiledRuleId(a[i.include],n,a);break;case 2:let c=a[u.ruleName];c&&(l=ca.getCompiledRuleId(c,n,a));break;case 3:case 4:let d=u.scopeName,f=u.kind===4?u.ruleName:null,m=n.getExternalGrammar(d,a);if(m)if(f){let p=m.repository[f];p&&(l=ca.getCompiledRuleId(p,n,m.repository))}else l=ca.getCompiledRuleId(m.repository.$self,n,m.repository);break}}else l=ca.getCompiledRuleId(i,n,a);if(l!==-1){let u=n.getRule(l),c=!1;if((u instanceof dB||u instanceof y1||u instanceof _0)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;r.push(l)}}return{patterns:r,hasMissingPatterns:(t?t.length:0)!==r.length}}},Hg=class RB{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){let a=t.length,r=0,o=[],s=!1;for(let i=0;i<a;i++)if(t.charAt(i)==="\\"&&i+1<a){let u=t.charAt(i+1);u==="z"?(o.push(t.substring(r,i)),o.push("$(?!\\n)(?<!\\n)"),r=i+2):(u==="A"||u==="G")&&(s=!0),i++}this.hasAnchor=s,r===0?this.source=t:(o.push(t.substring(r,a)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=kY.test(this.source):this.hasBackReferences=!1}clone(){return new RB(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let a=n.map(r=>t.substring(r.start,r.end));return cB.lastIndex=0,this.source.replace(cB,(r,o)=>vB(a[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],a=[],r=[],o,s,i,l;for(o=0,s=this.source.length;o<s;o++)i=this.source.charAt(o),t[o]=i,n[o]=i,a[o]=i,r[o]=i,i==="\\"&&o+1<s&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="\uFFFF",n[o+1]="\uFFFF",a[o+1]="A",r[o+1]="A"):l==="G"?(t[o+1]="\uFFFF",n[o+1]="G",a[o+1]="\uFFFF",r[o+1]="G"):(t[o+1]=l,n[o+1]=l,a[o+1]=l,r[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:a.join(""),A1_G1:r.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Ug=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new fB(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let a=this._items.map(r=>r.resolveAnchors(t,n));return new fB(e,a,this._items.map(r=>r.ruleId))}},fB=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
18
18
|
`)}findNextMatchSync(e,t,n){let a=this.scanner.findNextMatchSync(e,t,n);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},p1=class{constructor(e,t){this.languageId=e,this.tokenType=t}},IY=class x1{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new p1(t,8),this._embeddedLanguagesMatcher=new jY(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?x1._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new p1(0,0);_getBasicScopeAttributes=new CB(t=>{let n=this._scopeToLanguage(t),a=this._toStandardTokenType(t);return new p1(n,a)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let n=t.match(x1.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},jY=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([n,a])=>vB(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},b_e={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG},IB=!1,mB=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function jB(e,t,n,a,r,o,s,i){let l=t.content.length,u=!1,c=-1;if(s){let m=TY(e,t,n,a,r,o);r=m.stack,a=m.linePos,n=m.isFirstLine,c=m.anchorPosition}let d=Date.now();for(;!u;){if(i!==0&&Date.now()-d>i)return new mB(r,!0);f()}return new mB(r,!1);function f(){let m=EY(e,t,n,a,r,c);if(!m){o.produce(r,l),u=!0;return}let p=m.captureIndices,h=m.matchedRuleId,x=p&&p.length>0?p[0].end>a:!1;if(h===$Y){let b=r.getRule(e);o.produce(r,p[0].start),r=r.withContentNameScopesList(r.nameScopesList),Fg(e,t,n,r,o,b.endCaptures,p),o.produce(r,p[0].end);let g=r;if(r=r.parent,c=g.getAnchorPos(),!x&&g.getEnterPos()===a){r=g,o.produce(r,l),u=!0;return}}else{let b=e.getRule(h);o.produce(r,p[0].start);let g=r,y=b.getName(t.content,p),v=r.contentNameScopesList.pushAttributed(y,e);if(r=r.push(h,a,c,p[0].end===l,null,v,v),b instanceof y1){let C=b;Fg(e,t,n,r,o,C.beginCaptures,p),o.produce(r,p[0].end),c=p[0].end;let S=C.getContentName(t.content,p),_=v.pushAttributed(S,e);if(r=r.withContentNameScopesList(_),C.endHasBackReferences&&(r=r.withEndRule(C.getEndWithResolvedBackReferences(t.content,p))),!x&&g.hasSameRuleAs(r)){r=r.pop(),o.produce(r,l),u=!0;return}}else if(b instanceof _0){let C=b;Fg(e,t,n,r,o,C.beginCaptures,p),o.produce(r,p[0].end),c=p[0].end;let S=C.getContentName(t.content,p),_=v.pushAttributed(S,e);if(r=r.withContentNameScopesList(_),C.whileHasBackReferences&&(r=r.withEndRule(C.getWhileWithResolvedBackReferences(t.content,p))),!x&&g.hasSameRuleAs(r)){r=r.pop(),o.produce(r,l),u=!0;return}}else if(Fg(e,t,n,r,o,b.captures,p),o.produce(r,p[0].end),r=r.pop(),!x){r=r.safePop(),o.produce(r,l),u=!0;return}}p[0].end>a&&(a=p[0].end,n=!1)}}function TY(e,t,n,a,r,o){let s=r.beginRuleCapturedEOL?0:-1,i=[];for(let l=r;l;l=l.pop()){let u=l.getRule(e);u instanceof _0&&i.push({rule:u,stack:l})}for(let l=i.pop();l;l=i.pop()){let{ruleScanner:u,findOptions:c}=MY(l.rule,e,l.stack.endRule,n,a===s),d=u.findNextMatchSync(t,a,c);if(d){if(d.ruleId!==$B){r=l.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(o.produce(l.stack,d.captureIndices[0].start),Fg(e,t,n,l.stack,o,l.rule.whileCaptures,d.captureIndices),o.produce(l.stack,d.captureIndices[0].end),s=d.captureIndices[0].end,d.captureIndices[0].end>a&&(a=d.captureIndices[0].end,n=!1))}else{r=l.stack.pop();break}}return{stack:r,linePos:a,anchorPosition:s,isFirstLine:n}}function EY(e,t,n,a,r,o){let s=AY(e,t,n,a,r,o),i=e.getInjections();if(i.length===0)return s;let l=PY(i,e,t,n,a,r,o);if(!l)return s;if(!s)return l;let u=s.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:s}function AY(e,t,n,a,r,o){let s=r.getRule(e),{ruleScanner:i,findOptions:l}=TB(s,e,r.endRule,n,a===o),u=i.findNextMatchSync(t,a,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function PY(e,t,n,a,r,o,s){let i=Number.MAX_VALUE,l=null,u,c=0,d=o.contentNameScopesList.getScopeNames();for(let f=0,m=e.length;f<m;f++){let p=e[f];if(!p.matcher(d))continue;let h=t.getRule(p.ruleId),{ruleScanner:x,findOptions:b}=TB(h,t,null,a,r===s),g=x.findNextMatchSync(n,r,b);if(!g)continue;let y=g.captureIndices[0].start;if(!(y>=i)&&(i=y,l=g.captureIndices,u=g.ruleId,c=p.priority,i===r))break}return l?{priorityMatch:c===-1,captureIndices:l,matchedRuleId:u}:null}function TB(e,t,n,a,r){if(IB){let s=e.compile(t,n),i=EB(a,r);return{ruleScanner:s,findOptions:i}}return{ruleScanner:e.compileAG(t,n,a,r),findOptions:0}}function MY(e,t,n,a,r){if(IB){let s=e.compileWhile(t,n),i=EB(a,r);return{ruleScanner:s,findOptions:i}}return{ruleScanner:e.compileWhileAG(t,n,a,r),findOptions:0}}function EB(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function Fg(e,t,n,a,r,o,s){if(o.length===0)return;let i=t.content,l=Math.min(o.length,s.length),u=[],c=s[0].end;for(let d=0;d<l;d++){let f=o[d];if(f===null)continue;let m=s[d];if(m.length===0)continue;if(m.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=m.start;)r.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?r.produceFromScopes(u[u.length-1].scopes,m.start):r.produce(a,m.start),f.retokenizeCapturedWithRuleId){let h=f.getName(i,s),x=a.contentNameScopesList.pushAttributed(h,e),b=f.getContentName(i,s),g=x.pushAttributed(b,e),y=a.push(f.retokenizeCapturedWithRuleId,m.start,-1,!1,null,x,g),v=e.createOnigString(i.substring(0,m.end));jB(e,v,n&&m.start===0,m.start,y,r,!1,0),SB(v);continue}let p=f.getName(i,s);if(p!==null){let x=(u.length>0?u[u.length-1].scopes:a.contentNameScopesList).pushAttributed(p,e);u.push(new DY(x,m.end))}}for(;u.length>0;)r.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var DY=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function NY(e,t,n,a,r,o,s,i){return new BY(e,t,n,a,r,o,s,i)}function pB(e,t,n,a,r){let o=C0(t,S0),s=LB.getCompiledRuleId(n,a,r.repository);for(let i of o)e.push({debugSelector:t,matcher:i.matcher,ruleId:s,grammar:r,priority:i.priority})}function S0(e,t){if(t.length<e.length)return!1;let n=0;return e.every(a=>{for(let r=n;r<t.length;r++)if(OY(t[r],a))return n=r+1,!0;return!1})}function OY(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var BY=class{constructor(e,t,n,a,r,o,s,i){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=i,this._basicScopeAttributesProvider=new IY(n,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=gB(t,null),this._injections=null,this._tokenTypeMatchers=[],r)for(let l of Object.keys(r)){let u=C0(l,S0);for(let c of u)this._tokenTypeMatchers.push({matcher:c.matcher,type:r[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:r=>r===this._rootScopeName?this._grammar:this.getExternalGrammar(r),injections:r=>this._grammarRepository.injections(r)},t=[],n=this._rootScopeName,a=e.lookup(n);if(a){let r=a.injections;if(r)for(let s in r)pB(t,s,r[s],this,a);let o=this._grammarRepository.injections(n);o&&o.forEach(s=>{let i=this.getExternalGrammar(s);if(i){let l=i.injectionSelector;l&&pB(t,l,i,this,i)}})}return t.sort((r,o)=>r.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=gB(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let a=this._tokenize(e,t,!1,n);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,n=0){let a=this._tokenize(e,t,!0,n);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,n,a){this._rootId===-1&&(this._rootId=LB.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let r;if(!t||t===v1.NULL){r=!0;let u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),d=Cl.set(0,u.languageId,u.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),f=this.getRule(this._rootId).getName(null,null),m;f?m=Vg.createRootAndLookUpScopeName(f,d,this):m=Vg.createRoot("unknown",d),t=new v1(null,this._rootId,-1,-1,!1,null,m,m)}else r=!1,t.reset();e=e+`
|
|
19
|
-
`;let o=this.createOnigString(e),s=o.content.length,i=new VY(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=jB(this,o,r,0,t,i,!0,a);return SB(o),{lineLength:s,lineTokens:i,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function gB(e,t){return e=rY(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Vg=class Jo{constructor(t,n,a){this.parent=t,this.scopePath=n,this.tokenAttributes=a}static fromExtension(t,n){let a=t,r=t?.scopePath??null;for(let o of n)r=m1.push(r,o.scopeNames),a=new Jo(a,r,o.encodedTokenAttributes);return a}static createRoot(t,n){return new Jo(null,new m1(null,t),n)}static createRootAndLookUpScopeName(t,n,a){let r=a.getMetadataForScope(t),o=new m1(null,t),s=a.themeProvider.themeMatch(o),i=Jo.mergeAttributes(n,r,s);return new Jo(null,o,i)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Jo.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,a){let r=-1,o=0,s=0;return a!==null&&(r=a.fontStyle,o=a.foregroundId,s=a.backgroundId),Cl.set(t,n.languageId,n.tokenType,null,r,o,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Jo._pushAttributed(this,t,n);let a=t.split(/ /g),r=this;for(let o of a)r=Jo._pushAttributed(r,o,n);return r}static _pushAttributed(t,n,a){let r=a.getMetadataForScope(n),o=t.scopePath.push(n),s=a.themeProvider.themeMatch(o),i=Jo.mergeAttributes(t.tokenAttributes,r,s);return new Jo(t,o,i)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){let n=[],a=this;for(;a&&a!==t;)n.push({encodedTokenAttributes:a.tokenAttributes,scopeNames:a.scopePath.getExtensionIfDefined(a.parent?.scopePath??null)}),a=a.parent;return a===t?n.reverse():void 0}},v1=class uc{constructor(t,n,a,r,o,s,i,l){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=i,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new uc(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:uc._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Vg.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){uc._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,a,r,o,s,i){return new uc(this,t,n,a,r,o,s,i)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){let t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new uc(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let a=Vg.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new uc(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,a,Vg.fromExtension(a,n.contentNameScopesList))}},FY=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):C0(n,S0).map(a=>a.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>C0(n,S0).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},VY=class{constructor(e,t,n,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let o=e?.getScopeNames()??[];for(let s of this._tokenTypeOverrides)s.matcher(o)&&(a=Cl.set(a,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(o))}if(r&&(a=Cl.set(a,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let a=0,r=this._binaryTokens.length;a<r;a++)n[a]=this._binaryTokens[a];return n}},zY=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,a,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,NY(e,o,t,n,a,r,this,this._onigLib))}return this._grammars.get(e)}},AB=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new zY(zg.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(zg.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new FY(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,a,r){let o=new yY(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(s=>this._loadSingleGrammar(s.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,n,a,r)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,a=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,a)}_grammarForScopeName(e,t=0,n=null,a=null,r=null){return this._syncRegistry.grammarForScopeName(e,t,n,a,r)}},k0=v1.NULL;function Xg(e,t){let n=typeof e=="string"?{}:{...e.colorReplacements},a=typeof e=="string"?e:e.name;for(let[r,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[r]=o:r===a&&Object.assign(n,o);return n}function Fs(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function OB(e){return Array.isArray(e)?e:[e]}async function w1(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Yg(e){return!e||["plaintext","txt","text","plain"].includes(e)}function BB(e){return e==="ansi"||Yg(e)}function Zg(e){return e==="none"}function FB(e){return Zg(e)}var qY=/(\r?\n)/g;function Rf(e,t=!1){if(e.length===0)return[["",0]];let n=e.split(qY),a=0,r=[];for(let o=0;o<n.length;o+=2){let s=t?n[o]+(n[o+1]||""):n[o];r.push([s,a]),a+=n[o].length,a+=n[o+1]?.length||0}return r}var PB={light:"#333333",dark:"#bbbbbb"},MB={light:"#fffffe",dark:"#1e1e1e"},DB="__shiki_resolved";function $0(e){if(e?.[DB])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:a}=t;if(!n||!a){let i=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;i?.settings?.foreground&&(a=i.settings.foreground),i?.settings?.background&&(n=i.settings.background),!a&&t?.colors?.["editor.foreground"]&&(a=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),a||(a=t.type==="light"?PB.light:PB.dark),n||(n=t.type==="light"?MB.light:MB.dark),t.fg=a,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0,o=new Map;function s(i){if(o.has(i))return o.get(i);r+=1;let l=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?s(i):(o.set(i,l),l)}t.settings=t.settings.map(i=>{let l=i.settings?.foreground&&!i.settings.foreground.startsWith("#"),u=i.settings?.background&&!i.settings.background.startsWith("#");if(!l&&!u)return i;let c={...i,settings:{...i.settings}};if(l){let d=s(i.settings.foreground);t.colorReplacements[d]=i.settings.foreground,c.settings.foreground=d}if(u){let d=s(i.settings.background);t.colorReplacements[d]=i.settings.background,c.settings.background=d}return c});for(let i of Object.keys(t.colors||{}))if((i==="editor.foreground"||i==="editor.background"||i.startsWith("terminal.ansi"))&&!t.colors[i]?.startsWith("#")){let l=s(t.colors[i]);t.colorReplacements[l]=t.colors[i],t.colors[i]=l}return Object.defineProperty(t,DB,{enumerable:!1,writable:!1,value:!0}),t}async function VB(e){return[...new Set((await Promise.all(e.filter(t=>!BB(t)).map(async t=>await w1(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function zB(e){return(await Promise.all(e.map(async t=>FB(t)?null:$0(await w1(t))))).filter(t=>!!t)}function qB(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Rt(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var HY=class extends AB{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,a={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=a,this._themes.map(r=>this.loadTheme(r)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=$0(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=zg.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=qB(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(r=>r.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let a=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(a.name=e.name,this._resolvedGrammars.set(e.name,a),e.aliases&&e.aliases.forEach(r=>{this._alias[r]=e.name}),this._loadedLanguagesCache=null,t.size)for(let r of t)this._syncRegistry?._grammars?.get(r.scopeName)?.dispose(),this._resolvedGrammars.delete(r.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(r.scopeName),this._syncRegistry?._grammars?.delete(r.scopeName),this.loadLanguage(this._langMap.get(r.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let a of e)this.resolveEmbeddedLanguages(a);let t=[...this._langGraph.entries()],n=t.filter(([a,r])=>!r);if(n.length){let a=t.filter(([r,o])=>o?(o.embeddedLanguages||o.embeddedLangs)?.some(s=>n.map(([i])=>i).includes(s)):!1).filter(r=>!n.includes(r));throw new Rt(`Missing languages ${n.map(([r])=>`\`${r}\``).join(", ")}, required by ${a.map(([r])=>`\`${r}\``).join(", ")}`)}for(let[a,r]of t)this._resolver.addLanguage(r);for(let[a,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let n of t)this._langGraph.set(n,this._langMap.get(n))}},UY=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).includes(e.scopeName)||this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let a=1;a<=t.length;a++){let r=t.slice(0,a).join(".");n=[...n,...this._injections.get(r)||[]]}return n}},Wg=0;function _1(e){Wg+=1,e.warnings!==!1&&Wg>=10&&Wg%10===0&&console.warn(`[Shiki] ${Wg} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Rt("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),a=(e.themes||[]).flat(1).map($0),r=new HY(new UY(e.engine,n),a,n,e.langAlias),o;function s(g){return qB(g,e.langAlias)}function i(g){x();let y=r.getGrammar(typeof g=="string"?g:g.name);if(!y)throw new Rt(`Language \`${g}\` not found, you may need to load it first`);return y}function l(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};x();let y=r.getTheme(g);if(!y)throw new Rt(`Theme \`${g}\` not found, you may need to load it first`);return y}function u(g){x();let y=l(g);return o!==g&&(r.setTheme(y),o=g),{theme:y,colorMap:r.getColorMap()}}function c(){return x(),r.getLoadedThemes()}function d(){return x(),r.getLoadedLanguages()}function f(...g){x(),r.loadLanguages(g.flat(1))}async function m(...g){return f(await VB(g))}function p(...g){x();for(let y of g.flat(1))r.loadTheme(y)}async function h(...g){return x(),p(await zB(g))}function x(){if(t)throw new Rt("Shiki instance has been disposed")}function b(){t||(t=!0,r.dispose(),Wg-=1)}return{setTheme:u,getTheme:l,getLanguage:i,getLoadedThemes:c,getLoadedLanguages:d,resolveLangAlias:s,loadLanguage:m,loadLanguageSync:f,loadTheme:h,loadThemeSync:p,dispose:b,[Symbol.dispose]:b}}async function S1(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,a]=await Promise.all([zB(e.themes||[]),VB(e.langs||[]),e.engine]);return _1({...e,themes:t,langs:n,engine:a})}var HB=new WeakMap;function Kg(e,t){HB.set(e,t)}function If(e){return HB.get(e)}var L0=class UB{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new UB(Object.fromEntries(OB(n).map(a=>[a,k0])),t)}constructor(...t){if(t.length===2){let[n,a]=t;this.lang=a,this._stacks=n}else{let[n,a,r]=t;this.lang=a,this._stacks={[r]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return GY(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function GY(e){let t=[],n=new Set;function a(r){if(n.has(r))return;n.add(r);let o=r?.nameScopesList?.scopeName;o&&t.push(o),r.parent&&a(r.parent)}return a(e),t}function WY(e,t){if(!(e instanceof L0))throw new Rt("Invalid grammar state");return e.getInternalStack(t)}var XY=/,/,YY=/ /;function k1(e,t,n={}){let{theme:a=e.getLoadedThemes()[0]}=n;if(Yg(e.resolveLangAlias(n.lang||"text"))||Zg(a))return Rf(t).map(i=>[{content:i[0],offset:i[1]}]);let{theme:r,colorMap:o}=e.setTheme(a),s=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==s.name)throw new Rt(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(r.name))throw new Rt(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${r.name}"`)}return WB(t,s,r,o,n)}function GB(...e){if(e.length===2)return If(e[1]);let[t,n,a={}]=e,{lang:r="text",theme:o=t.getLoadedThemes()[0]}=a;if(Yg(r)||Zg(o))throw new Rt("Plain language does not have grammar state");if(r==="ansi")throw new Rt("ANSI language does not have grammar state");let{theme:s,colorMap:i}=t.setTheme(o),l=t.getLanguage(r);return new L0($1(n,l,s,i,a).stateStack,l.name,s.name)}function WB(e,t,n,a,r){let o=$1(e,t,n,a,r),s=new L0(o.stateStack,t.name,n.name);return Kg(o.tokens,s),o.tokens}function $1(e,t,n,a,r){let o=Xg(n,r),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:i=500,includeExplanation:l=!1}=r,u=Rf(e),c=r.grammarState?WY(r.grammarState,n.name)??k0:r.grammarContextCode!=null?$1(r.grammarContextCode,t,n,a,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:k0,d=[],f=[];for(let m=0,p=u.length;m<p;m++){let[h,x]=u[m];if(h===""){d=[],f.push([]);continue}if(s>0&&h.length>=s){d=[],f.push([{content:h,offset:x,color:"",fontStyle:0}]);continue}let b,g,y;l&&l!=="tokenType"&&(b=t.tokenizeLine(h,c,i),g=b.tokens,y=0);let v=t.tokenizeLine2(h,c,i),C=v.tokens.length/2;for(let S=0;S<C;S++){let _=v.tokens[2*S],w=S+1<C?v.tokens[2*S+2]:h.length;if(_===w)continue;let R=v.tokens[2*S+1],$=Fs(a[Cl.getForeground(R)],o),j=Cl.getFontStyle(R),M={content:h.substring(_,w),offset:x+_,color:$,fontStyle:j};if(l==="tokenType")M.type=Cl.getTokenType(R);else if(l){let I=[];if(l!=="scopeName")for(let E of n.settings){let B;switch(typeof E.scope){case"string":B=E.scope.split(XY).map(z=>z.trim());break;case"object":B=E.scope;break;default:continue}I.push({settings:E,selectors:B.map(z=>z.split(YY))})}M.explanation=[];let N=0;for(;_+N<w;){let E=g[y],B=h.substring(E.startIndex,E.endIndex);N+=B.length,M.explanation.push({content:B,scopes:l==="scopeName"?ZY(E.scopes):KY(I,E.scopes)}),y+=1}}d.push(M)}f.push(d),d=[],c=v.ruleStack}return{tokens:f,stateStack:c}}function ZY(e){return e.map(t=>({scopeName:t}))}function KY(e,t){let n=[];for(let a=0,r=t.length;a<r;a++){let o=t[a];n[a]={scopeName:o,themeMatches:JY(e,o,t.slice(0,a))}}return n}function NB(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function QY(e,t,n){if(!NB(e.at(-1),t))return!1;let a=e.length-2,r=n.length-1;for(;a>=0&&r>=0;)NB(e[a],n[r])&&(a-=1),r-=1;return a===-1}function JY(e,t,n){let a=[];for(let{selectors:r,settings:o}of e)for(let s of r)if(QY(s,t,n)){a.push(o);break}return a}function R0(e,t,n,a=k1){let r=Object.entries(n.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),o=r.map(u=>{let c=a(e,t,{...n,theme:u.theme});return{tokens:c,state:If(c),theme:typeof u.theme=="string"?u.theme:u.theme.name}}),s=eZ(...o.map(u=>u.tokens)),i=s[0].map((u,c)=>u.map((d,f)=>{let m={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in n&&n.includeExplanation&&(m.explanation=d.explanation),s.forEach((p,h)=>{let{content:x,explanation:b,offset:g,...y}=p[c][f];m.variants[r[h].color]=y}),m})),l=o[0].state?new L0(Object.fromEntries(o.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),o[0].state.lang):void 0;return l&&Kg(i,l),i}function eZ(...e){let t=e.map(()=>[]),n=e.length;for(let a=0;a<e[0].length;a++){let r=e.map(l=>l[a]),o=t.map(()=>[]);t.forEach((l,u)=>l.push(o[u]));let s=r.map(()=>0),i=r.map(l=>l[0]);for(;i.every(l=>l);){let l=Math.min(...i.map(u=>u.content.length));for(let u=0;u<n;u++){let c=i[u];c.content.length===l?(o[u].push(c),s[u]+=1,i[u]=r[u][s[u]]):(o[u].push({...c,content:c.content.slice(0,l)}),i[u]={...c,content:c.content.slice(l),offset:c.offset+l})}}}return t}var XB=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Vs=class{constructor(t,n,a){this.normal=n,this.property=t,a&&(this.space=a)}};Vs.prototype.normal={};Vs.prototype.property={};Vs.prototype.space=void 0;function L1(e,t){let n={},a={};for(let r of e)Object.assign(n,r.property),Object.assign(a,r.normal);return new Vs(n,a,t)}function Qg(e){return e.toLowerCase()}var Bn=class{constructor(t,n){this.attribute=n,this.property=t}};Bn.prototype.attribute="";Bn.prototype.booleanish=!1;Bn.prototype.boolean=!1;Bn.prototype.commaOrSpaceSeparated=!1;Bn.prototype.commaSeparated=!1;Bn.prototype.defined=!1;Bn.prototype.mustUseProperty=!1;Bn.prototype.number=!1;Bn.prototype.overloadedBoolean=!1;Bn.prototype.property="";Bn.prototype.spaceSeparated=!1;Bn.prototype.space=void 0;var Jg={};aa(Jg,{boolean:()=>Pe,booleanish:()=>Jt,commaOrSpaceSeparated:()=>Ga,commaSeparated:()=>zs,number:()=>ae,overloadedBoolean:()=>I0,spaceSeparated:()=>mt});var tZ=0,Pe=cc(),Jt=cc(),I0=cc(),ae=cc(),mt=cc(),zs=cc(),Ga=cc();function cc(){return 2**++tZ}var R1=Object.keys(Jg),dc=class extends Bn{constructor(t,n,a,r){let o=-1;if(super(t,n),YB(this,"space",r),typeof a=="number")for(;++o<R1.length;){let s=R1[o];YB(this,R1[o],(a&Jg[s])===Jg[s])}}};dc.prototype.defined=!0;function YB(e,t,n){n&&(e[t]=n)}function Or(e){let t={},n={};for(let[a,r]of Object.entries(e.properties)){let o=new dc(a,e.transform(e.attributes||{},a),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(o.mustUseProperty=!0),t[a]=o,n[Qg(a)]=a,n[Qg(o.attribute)]=a}return new Vs(t,n,e.space)}var I1=Or({properties:{ariaActiveDescendant:null,ariaAtomic:Jt,ariaAutoComplete:null,ariaBusy:Jt,ariaChecked:Jt,ariaColCount:ae,ariaColIndex:ae,ariaColSpan:ae,ariaControls:mt,ariaCurrent:null,ariaDescribedBy:mt,ariaDetails:null,ariaDisabled:Jt,ariaDropEffect:mt,ariaErrorMessage:null,ariaExpanded:Jt,ariaFlowTo:mt,ariaGrabbed:Jt,ariaHasPopup:null,ariaHidden:Jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:mt,ariaLevel:ae,ariaLive:null,ariaModal:Jt,ariaMultiLine:Jt,ariaMultiSelectable:Jt,ariaOrientation:null,ariaOwns:mt,ariaPlaceholder:null,ariaPosInSet:ae,ariaPressed:Jt,ariaReadOnly:Jt,ariaRelevant:null,ariaRequired:Jt,ariaRoleDescription:mt,ariaRowCount:ae,ariaRowIndex:ae,ariaRowSpan:ae,ariaSelected:Jt,ariaSetSize:ae,ariaSort:null,ariaValueMax:ae,ariaValueMin:ae,ariaValueNow:ae,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function j0(e,t){return t in e?e[t]:t}function T0(e,t){return j0(e,t.toLowerCase())}var ZB=Or({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zs,acceptCharset:mt,accessKey:mt,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alpha:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:mt,autoFocus:Pe,autoPlay:Pe,blocking:mt,capture:null,charSet:null,checked:Pe,cite:null,className:mt,closedBy:null,colorSpace:null,cols:ae,colSpan:ae,command:null,commandFor:null,content:null,contentEditable:Jt,controls:Pe,controlsList:mt,coords:ae|zs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:I0,draggable:Jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:mt,height:ae,hidden:I0,high:ae,href:null,hrefLang:null,htmlFor:mt,httpEquiv:mt,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:mt,itemRef:mt,itemScope:Pe,itemType:mt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:ae,manifest:null,max:null,maxLength:ae,media:null,method:null,min:null,minLength:ae,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pe,optimum:ae,pattern:null,ping:mt,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:mt,required:Pe,reversed:Pe,rows:ae,rowSpan:ae,sandbox:mt,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootCustomElementRegistry:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shadowRootSerializable:Pe,shape:null,size:ae,sizes:null,slot:null,span:ae,spellCheck:Jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ae,step:null,style:null,tabIndex:ae,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:Jt,width:ae,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:mt,axis:null,background:null,bgColor:null,border:ae,borderColor:null,bottomMargin:ae,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:ae,leftMargin:ae,link:null,longDesc:null,lowSrc:null,marginHeight:ae,marginWidth:ae,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:ae,rules:null,scheme:null,scrolling:Jt,standby:null,summary:null,text:null,topMargin:ae,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ae,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Pe,disablePictureInPicture:Pe,disableRemotePlayback:Pe,exportParts:zs,part:mt,prefix:null,property:null,results:ae,security:null,unselectable:null},space:"html",transform:T0});var KB=Or({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ga,accentHeight:ae,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ae,amplitude:ae,arabicForm:null,ascent:ae,attributeName:null,attributeType:null,azimuth:ae,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ae,by:null,calcMode:null,capHeight:ae,className:mt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ae,diffuseConstant:ae,direction:null,display:null,dur:null,divisor:ae,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ae,enableBackground:null,end:null,event:null,exponent:ae,externalResourcesRequired:null,fill:null,fillOpacity:ae,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zs,g2:zs,glyphName:zs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ae,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ae,horizOriginX:ae,horizOriginY:ae,id:null,ideographic:ae,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ae,k:ae,k1:ae,k2:ae,k3:ae,k4:ae,kernelMatrix:Ga,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ae,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ae,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ae,overlineThickness:ae,paintOrder:null,panose1:null,path:null,pathLength:ae,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:mt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ae,pointsAtY:ae,pointsAtZ:ae,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ga,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ga,rev:Ga,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ga,requiredFeatures:Ga,requiredFonts:Ga,requiredFormats:Ga,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ae,specularExponent:ae,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ae,strikethroughThickness:ae,string:null,stroke:null,strokeDashArray:Ga,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ae,strokeOpacity:ae,strokeWidth:null,style:null,surfaceScale:ae,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ga,tabIndex:ae,tableValues:null,target:null,targetX:ae,targetY:ae,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ga,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ae,underlineThickness:ae,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ae,values:null,vAlphabetic:ae,vMathematical:ae,vectorEffect:null,vHanging:ae,vIdeographic:ae,version:null,vertAdvY:ae,vertOriginX:ae,vertOriginY:ae,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ae,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:j0});var j1=Or({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var T1=Or({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:T0});var E1=Or({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var nZ=/[A-Z]/g,QB=/-[a-z]/g,aZ=/^data[-\w.:]+$/i;function A1(e,t){let n=Qg(t),a=t,r=Bn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&aZ.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace(QB,oZ);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!QB.test(o)){let s=o.replace(nZ,rZ);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}r=dc}return new r(a,t)}function rZ(e){return"-"+e.toLowerCase()}function oZ(e){return e.charAt(1).toUpperCase()}var JB=L1([I1,ZB,j1,T1,E1],"html"),E0=L1([I1,KB,j1,T1,E1],"svg");var e9={}.hasOwnProperty;function t9(e,t){let n=t||{};function a(r,...o){let s=a.invalid,i=a.handlers;if(r&&e9.call(r,e)){let l=String(r[e]);s=e9.call(i,l)?i[l]:a.unknown}if(s)return s.call(this,r,...o)}return a.handlers=n.handlers||{},a.invalid=n.invalid,a.unknown=n.unknown,a}var sZ=/["&'<>`]/g,iZ=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lZ=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,uZ=/[|\\{}()[\]^$+*?.]/g,n9=new WeakMap;function a9(e,t){if(e=e.replace(t.subset?cZ(t.subset):sZ,a),t.subset||t.escapeOnly)return e;return e.replace(iZ,n).replace(lZ,a);function n(r,o,s){return t.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function a(r,o,s){return t.format(r.charCodeAt(0),s.charCodeAt(o+1),t)}}function cZ(e){let t=n9.get(e);return t||(t=dZ(e),n9.set(e,t)),t}function dZ(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(uZ,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var fZ=/[\dA-Fa-f]/;function r9(e,t,n){let a="&#x"+e.toString(16).toUpperCase();return n&&t&&!fZ.test(String.fromCharCode(t))?a:a+";"}var mZ=/\d/;function o9(e,t,n){let a="&#"+String(e);return n&&t&&!mZ.test(String.fromCharCode(t))?a:a+";"}var s9=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var A0={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var i9=["cent","copy","divide","gt","lt","not","para","times"];var l9={}.hasOwnProperty,P1={},P0;for(P0 in A0)l9.call(A0,P0)&&(P1[A0[P0]]=P0);var pZ=/[^\dA-Za-z]/;function u9(e,t,n,a){let r=String.fromCharCode(e);if(l9.call(P1,r)){let o=P1[r],s="&"+o;return n&&s9.includes(o)&&!i9.includes(o)&&(!a||t&&t!==61&&pZ.test(String.fromCharCode(t)))?s:s+";"}return""}function c9(e,t,n){let a=r9(e,t,n.omitOptionalSemicolons),r;if((n.useNamedReferences||n.useShortestReferences)&&(r=u9(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let o=o9(e,t,n.omitOptionalSemicolons);o.length<a.length&&(a=o)}return r&&(!n.useShortestReferences||r.length<a.length)?r:a}function qs(e,t){return a9(e,Object.assign({format:c9},t))}var gZ=/^>|^->|<!--|-->|--!>|<!-$/g,hZ=[">"],bZ=["<",">"];function d9(e,t,n,a){return a.settings.bogusComments?"<?"+qs(e.value,Object.assign({},a.settings.characterReferences,{subset:hZ}))+">":"<!--"+e.value.replace(gZ,r)+"-->";function r(o){return qs(o,Object.assign({},a.settings.characterReferences,{subset:bZ}))}}function f9(e,t,n,a){return"<!"+(a.settings.upperDoctype?"DOCTYPE":"doctype")+(a.settings.tightDoctype?"":" ")+"html>"}function M1(e,t){let n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,r=n.indexOf(t);for(;r!==-1;)a++,r=n.indexOf(t,r+t.length);return a}function m9(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function p9(e){return e.join(" ").trim()}var yZ=/[ \t\n\f\r]/g;function fc(e){return typeof e=="object"?e.type==="text"?g9(e.value):!1:g9(e)}function g9(e){return e.replace(yZ,"")===""}var ln=h9(1),D1=h9(-1),xZ=[];function h9(e){return t;function t(n,a,r){let o=n?n.children:xZ,s=(a||0)+e,i=o[s];if(!r)for(;i&&fc(i);)s+=e,i=o[s];return i}}var vZ={}.hasOwnProperty;function M0(e){return t;function t(n,a,r){return vZ.call(e,n.tagName)&&e[n.tagName](n,a,r)}}var eh=M0({body:wZ,caption:N1,colgroup:N1,dd:$Z,dt:kZ,head:N1,html:CZ,li:SZ,optgroup:LZ,option:RZ,p:_Z,rp:b9,rt:b9,tbody:jZ,td:y9,tfoot:TZ,th:y9,thead:IZ,tr:EZ});function N1(e,t,n){let a=ln(n,t,!0);return!a||a.type!=="comment"&&!(a.type==="text"&&fc(a.value.charAt(0)))}function CZ(e,t,n){let a=ln(n,t);return!a||a.type!=="comment"}function wZ(e,t,n){let a=ln(n,t);return!a||a.type!=="comment"}function _Z(e,t,n){let a=ln(n,t);return a?a.type==="element"&&(a.tagName==="address"||a.tagName==="article"||a.tagName==="aside"||a.tagName==="blockquote"||a.tagName==="details"||a.tagName==="div"||a.tagName==="dl"||a.tagName==="fieldset"||a.tagName==="figcaption"||a.tagName==="figure"||a.tagName==="footer"||a.tagName==="form"||a.tagName==="h1"||a.tagName==="h2"||a.tagName==="h3"||a.tagName==="h4"||a.tagName==="h5"||a.tagName==="h6"||a.tagName==="header"||a.tagName==="hgroup"||a.tagName==="hr"||a.tagName==="main"||a.tagName==="menu"||a.tagName==="nav"||a.tagName==="ol"||a.tagName==="p"||a.tagName==="pre"||a.tagName==="section"||a.tagName==="table"||a.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function SZ(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&a.tagName==="li"}function kZ(e,t,n){let a=ln(n,t);return!!(a&&a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd"))}function $Z(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd")}function b9(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&(a.tagName==="rp"||a.tagName==="rt")}function LZ(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&a.tagName==="optgroup"}function RZ(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&(a.tagName==="option"||a.tagName==="optgroup")}function IZ(e,t,n){let a=ln(n,t);return!!(a&&a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot"))}function jZ(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot")}function TZ(e,t,n){return!ln(n,t)}function EZ(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&a.tagName==="tr"}function y9(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&(a.tagName==="td"||a.tagName==="th")}var x9=M0({body:MZ,colgroup:DZ,head:PZ,html:AZ,tbody:NZ});function AZ(e){let t=ln(e,-1);return!t||t.type!=="comment"}function PZ(e){let t=new Set;for(let a of e.children)if(a.type==="element"&&(a.tagName==="base"||a.tagName==="title")){if(t.has(a.tagName))return!1;t.add(a.tagName)}let n=e.children[0];return!n||n.type==="element"}function MZ(e){let t=ln(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&fc(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function DZ(e,t,n){let a=D1(n,t),r=ln(e,-1,!0);return n&&a&&a.type==="element"&&a.tagName==="colgroup"&&eh(a,n.children.indexOf(a),n)?!1:!!(r&&r.type==="element"&&r.tagName==="col")}function NZ(e,t,n){let a=D1(n,t),r=ln(e,-1);return n&&a&&a.type==="element"&&(a.tagName==="thead"||a.tagName==="tbody")&&eh(a,n.children.indexOf(a),n)?!1:!!(r&&r.type==="element"&&r.tagName==="tr")}var D0={name:[[`
|
|
19
|
+
`;let o=this.createOnigString(e),s=o.content.length,i=new VY(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=jB(this,o,r,0,t,i,!0,a);return SB(o),{lineLength:s,lineTokens:i,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function gB(e,t){return e=rY(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Vg=class Jo{constructor(t,n,a){this.parent=t,this.scopePath=n,this.tokenAttributes=a}static fromExtension(t,n){let a=t,r=t?.scopePath??null;for(let o of n)r=m1.push(r,o.scopeNames),a=new Jo(a,r,o.encodedTokenAttributes);return a}static createRoot(t,n){return new Jo(null,new m1(null,t),n)}static createRootAndLookUpScopeName(t,n,a){let r=a.getMetadataForScope(t),o=new m1(null,t),s=a.themeProvider.themeMatch(o),i=Jo.mergeAttributes(n,r,s);return new Jo(null,o,i)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Jo.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,a){let r=-1,o=0,s=0;return a!==null&&(r=a.fontStyle,o=a.foregroundId,s=a.backgroundId),Cl.set(t,n.languageId,n.tokenType,null,r,o,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Jo._pushAttributed(this,t,n);let a=t.split(/ /g),r=this;for(let o of a)r=Jo._pushAttributed(r,o,n);return r}static _pushAttributed(t,n,a){let r=a.getMetadataForScope(n),o=t.scopePath.push(n),s=a.themeProvider.themeMatch(o),i=Jo.mergeAttributes(t.tokenAttributes,r,s);return new Jo(t,o,i)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){let n=[],a=this;for(;a&&a!==t;)n.push({encodedTokenAttributes:a.tokenAttributes,scopeNames:a.scopePath.getExtensionIfDefined(a.parent?.scopePath??null)}),a=a.parent;return a===t?n.reverse():void 0}},v1=class uc{constructor(t,n,a,r,o,s,i,l){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=i,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new uc(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:uc._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Vg.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){uc._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,a,r,o,s,i){return new uc(this,t,n,a,r,o,s,i)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){let t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new uc(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let a=Vg.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new uc(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,a,Vg.fromExtension(a,n.contentNameScopesList))}},FY=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):C0(n,S0).map(a=>a.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>C0(n,S0).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},VY=class{constructor(e,t,n,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let o=e?.getScopeNames()??[];for(let s of this._tokenTypeOverrides)s.matcher(o)&&(a=Cl.set(a,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(o))}if(r&&(a=Cl.set(a,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let a=0,r=this._binaryTokens.length;a<r;a++)n[a]=this._binaryTokens[a];return n}},zY=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,a,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,NY(e,o,t,n,a,r,this,this._onigLib))}return this._grammars.get(e)}},AB=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new zY(zg.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(zg.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new FY(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,a,r){let o=new yY(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(s=>this._loadSingleGrammar(s.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,n,a,r)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,a=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,a)}_grammarForScopeName(e,t=0,n=null,a=null,r=null){return this._syncRegistry.grammarForScopeName(e,t,n,a,r)}},k0=v1.NULL;function Xg(e,t){let n=typeof e=="string"?{}:{...e.colorReplacements},a=typeof e=="string"?e:e.name;for(let[r,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[r]=o:r===a&&Object.assign(n,o);return n}function Fs(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function OB(e){return Array.isArray(e)?e:[e]}async function w1(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Yg(e){return!e||["plaintext","txt","text","plain"].includes(e)}function BB(e){return e==="ansi"||Yg(e)}function Zg(e){return e==="none"}function FB(e){return Zg(e)}var qY=/(\r?\n)/g;function Rf(e,t=!1){if(e.length===0)return[["",0]];let n=e.split(qY),a=0,r=[];for(let o=0;o<n.length;o+=2){let s=t?n[o]+(n[o+1]||""):n[o];r.push([s,a]),a+=n[o].length,a+=n[o+1]?.length||0}return r}var PB={light:"#333333",dark:"#bbbbbb"},MB={light:"#fffffe",dark:"#1e1e1e"},DB="__shiki_resolved";function $0(e){if(e?.[DB])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:a}=t;if(!n||!a){let i=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;i?.settings?.foreground&&(a=i.settings.foreground),i?.settings?.background&&(n=i.settings.background),!a&&t?.colors?.["editor.foreground"]&&(a=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),a||(a=t.type==="light"?PB.light:PB.dark),n||(n=t.type==="light"?MB.light:MB.dark),t.fg=a,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0,o=new Map;function s(i){if(o.has(i))return o.get(i);r+=1;let l=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?s(i):(o.set(i,l),l)}t.settings=t.settings.map(i=>{let l=i.settings?.foreground&&!i.settings.foreground.startsWith("#"),u=i.settings?.background&&!i.settings.background.startsWith("#");if(!l&&!u)return i;let c={...i,settings:{...i.settings}};if(l){let d=s(i.settings.foreground);t.colorReplacements[d]=i.settings.foreground,c.settings.foreground=d}if(u){let d=s(i.settings.background);t.colorReplacements[d]=i.settings.background,c.settings.background=d}return c});for(let i of Object.keys(t.colors||{}))if((i==="editor.foreground"||i==="editor.background"||i.startsWith("terminal.ansi"))&&!t.colors[i]?.startsWith("#")){let l=s(t.colors[i]);t.colorReplacements[l]=t.colors[i],t.colors[i]=l}return Object.defineProperty(t,DB,{enumerable:!1,writable:!1,value:!0}),t}async function VB(e){return[...new Set((await Promise.all(e.filter(t=>!BB(t)).map(async t=>await w1(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function zB(e){return(await Promise.all(e.map(async t=>FB(t)?null:$0(await w1(t))))).filter(t=>!!t)}function qB(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Rt(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var HY=class extends AB{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,a={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=a,this._themes.map(r=>this.loadTheme(r)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=$0(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=zg.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=qB(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(r=>r.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let a=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(a.name=e.name,this._resolvedGrammars.set(e.name,a),e.aliases&&e.aliases.forEach(r=>{this._alias[r]=e.name}),this._loadedLanguagesCache=null,t.size)for(let r of t)this._syncRegistry?._grammars?.get(r.scopeName)?.dispose(),this._resolvedGrammars.delete(r.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(r.scopeName),this._syncRegistry?._grammars?.delete(r.scopeName),this.loadLanguage(this._langMap.get(r.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let a of e)this.resolveEmbeddedLanguages(a);let t=[...this._langGraph.entries()],n=t.filter(([a,r])=>!r);if(n.length){let a=t.filter(([r,o])=>o?(o.embeddedLanguages||o.embeddedLangs)?.some(s=>n.map(([i])=>i).includes(s)):!1).filter(r=>!n.includes(r));throw new Rt(`Missing languages ${n.map(([r])=>`\`${r}\``).join(", ")}, required by ${a.map(([r])=>`\`${r}\``).join(", ")}`)}for(let[a,r]of t)this._resolver.addLanguage(r);for(let[a,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let n of t)this._langGraph.set(n,this._langMap.get(n))}},UY=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).includes(e.scopeName)||this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let a=1;a<=t.length;a++){let r=t.slice(0,a).join(".");n=[...n,...this._injections.get(r)||[]]}return n}},Wg=0;function _1(e){Wg+=1,e.warnings!==!1&&Wg>=10&&Wg%10===0&&console.warn(`[Shiki] ${Wg} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Rt("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),a=(e.themes||[]).flat(1).map($0),r=new HY(new UY(e.engine,n),a,n,e.langAlias),o;function s(g){return qB(g,e.langAlias)}function i(g){x();let y=r.getGrammar(typeof g=="string"?g:g.name);if(!y)throw new Rt(`Language \`${g}\` not found, you may need to load it first`);return y}function l(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};x();let y=r.getTheme(g);if(!y)throw new Rt(`Theme \`${g}\` not found, you may need to load it first`);return y}function u(g){x();let y=l(g);return o!==g&&(r.setTheme(y),o=g),{theme:y,colorMap:r.getColorMap()}}function c(){return x(),r.getLoadedThemes()}function d(){return x(),r.getLoadedLanguages()}function f(...g){x(),r.loadLanguages(g.flat(1))}async function m(...g){return f(await VB(g))}function p(...g){x();for(let y of g.flat(1))r.loadTheme(y)}async function h(...g){return x(),p(await zB(g))}function x(){if(t)throw new Rt("Shiki instance has been disposed")}function b(){t||(t=!0,r.dispose(),Wg-=1)}return{setTheme:u,getTheme:l,getLanguage:i,getLoadedThemes:c,getLoadedLanguages:d,resolveLangAlias:s,loadLanguage:m,loadLanguageSync:f,loadTheme:h,loadThemeSync:p,dispose:b,[Symbol.dispose]:b}}async function S1(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,a]=await Promise.all([zB(e.themes||[]),VB(e.langs||[]),e.engine]);return _1({...e,themes:t,langs:n,engine:a})}var HB=new WeakMap;function Kg(e,t){HB.set(e,t)}function If(e){return HB.get(e)}var L0=class UB{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new UB(Object.fromEntries(OB(n).map(a=>[a,k0])),t)}constructor(...t){if(t.length===2){let[n,a]=t;this.lang=a,this._stacks=n}else{let[n,a,r]=t;this.lang=a,this._stacks={[r]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return GY(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function GY(e){let t=[],n=new Set;function a(r){if(n.has(r))return;n.add(r);let o=r?.nameScopesList?.scopeName;o&&t.push(o),r.parent&&a(r.parent)}return a(e),t}function WY(e,t){if(!(e instanceof L0))throw new Rt("Invalid grammar state");return e.getInternalStack(t)}var XY=/,/,YY=/ /;function k1(e,t,n={}){let{theme:a=e.getLoadedThemes()[0]}=n;if(Yg(e.resolveLangAlias(n.lang||"text"))||Zg(a))return Rf(t).map(i=>[{content:i[0],offset:i[1]}]);let{theme:r,colorMap:o}=e.setTheme(a),s=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==s.name)throw new Rt(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(r.name))throw new Rt(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${r.name}"`)}return WB(t,s,r,o,n)}function GB(...e){if(e.length===2)return If(e[1]);let[t,n,a={}]=e,{lang:r="text",theme:o=t.getLoadedThemes()[0]}=a;if(Yg(r)||Zg(o))throw new Rt("Plain language does not have grammar state");if(r==="ansi")throw new Rt("ANSI language does not have grammar state");let{theme:s,colorMap:i}=t.setTheme(o),l=t.getLanguage(r);return new L0($1(n,l,s,i,a).stateStack,l.name,s.name)}function WB(e,t,n,a,r){let o=$1(e,t,n,a,r),s=new L0(o.stateStack,t.name,n.name);return Kg(o.tokens,s),o.tokens}function $1(e,t,n,a,r){let o=Xg(n,r),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:i=500,includeExplanation:l=!1}=r,u=Rf(e),c=r.grammarState?WY(r.grammarState,n.name)??k0:r.grammarContextCode!=null?$1(r.grammarContextCode,t,n,a,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:k0,d=[],f=[];for(let m=0,p=u.length;m<p;m++){let[h,x]=u[m];if(h===""){d=[],f.push([]);continue}if(s>0&&h.length>=s){d=[],f.push([{content:h,offset:x,color:"",fontStyle:0}]);continue}let b,g,y;l&&l!=="tokenType"&&(b=t.tokenizeLine(h,c,i),g=b.tokens,y=0);let v=t.tokenizeLine2(h,c,i),C=v.tokens.length/2;for(let S=0;S<C;S++){let _=v.tokens[2*S],w=S+1<C?v.tokens[2*S+2]:h.length;if(_===w)continue;let R=v.tokens[2*S+1],$=Fs(a[Cl.getForeground(R)],o),j=Cl.getFontStyle(R),M={content:h.substring(_,w),offset:x+_,color:$,fontStyle:j};if(l==="tokenType")M.type=Cl.getTokenType(R);else if(l){let I=[];if(l!=="scopeName")for(let E of n.settings){let B;switch(typeof E.scope){case"string":B=E.scope.split(XY).map(z=>z.trim());break;case"object":B=E.scope;break;default:continue}I.push({settings:E,selectors:B.map(z=>z.split(YY))})}M.explanation=[];let N=0;for(;_+N<w;){let E=g[y],B=h.substring(E.startIndex,E.endIndex);N+=B.length,M.explanation.push({content:B,scopes:l==="scopeName"?ZY(E.scopes):KY(I,E.scopes)}),y+=1}}d.push(M)}f.push(d),d=[],c=v.ruleStack}return{tokens:f,stateStack:c}}function ZY(e){return e.map(t=>({scopeName:t}))}function KY(e,t){let n=[];for(let a=0,r=t.length;a<r;a++){let o=t[a];n[a]={scopeName:o,themeMatches:JY(e,o,t.slice(0,a))}}return n}function NB(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function QY(e,t,n){if(!NB(e.at(-1),t))return!1;let a=e.length-2,r=n.length-1;for(;a>=0&&r>=0;)NB(e[a],n[r])&&(a-=1),r-=1;return a===-1}function JY(e,t,n){let a=[];for(let{selectors:r,settings:o}of e)for(let s of r)if(QY(s,t,n)){a.push(o);break}return a}function R0(e,t,n,a=k1){let r=Object.entries(n.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),o=r.map(u=>{let c=a(e,t,{...n,theme:u.theme});return{tokens:c,state:If(c),theme:typeof u.theme=="string"?u.theme:u.theme.name}}),s=eZ(...o.map(u=>u.tokens)),i=s[0].map((u,c)=>u.map((d,f)=>{let m={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in n&&n.includeExplanation&&(m.explanation=d.explanation),s.forEach((p,h)=>{let{content:x,explanation:b,offset:g,...y}=p[c][f];m.variants[r[h].color]=y}),m})),l=o[0].state?new L0(Object.fromEntries(o.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),o[0].state.lang):void 0;return l&&Kg(i,l),i}function eZ(...e){let t=e.map(()=>[]),n=e.length;for(let a=0;a<e[0].length;a++){let r=e.map(l=>l[a]),o=t.map(()=>[]);t.forEach((l,u)=>l.push(o[u]));let s=r.map(()=>0),i=r.map(l=>l[0]);for(;i.every(l=>l);){let l=Math.min(...i.map(u=>u.content.length));for(let u=0;u<n;u++){let c=i[u];c.content.length===l?(o[u].push(c),s[u]+=1,i[u]=r[u][s[u]]):(o[u].push({...c,content:c.content.slice(0,l)}),i[u]={...c,content:c.content.slice(l),offset:c.offset+l})}}}return t}var XB=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Vs=class{constructor(t,n,a){this.normal=n,this.property=t,a&&(this.space=a)}};Vs.prototype.normal={};Vs.prototype.property={};Vs.prototype.space=void 0;function L1(e,t){let n={},a={};for(let r of e)Object.assign(n,r.property),Object.assign(a,r.normal);return new Vs(n,a,t)}function Qg(e){return e.toLowerCase()}var Bn=class{constructor(t,n){this.attribute=n,this.property=t}};Bn.prototype.attribute="";Bn.prototype.booleanish=!1;Bn.prototype.boolean=!1;Bn.prototype.commaOrSpaceSeparated=!1;Bn.prototype.commaSeparated=!1;Bn.prototype.defined=!1;Bn.prototype.mustUseProperty=!1;Bn.prototype.number=!1;Bn.prototype.overloadedBoolean=!1;Bn.prototype.property="";Bn.prototype.spaceSeparated=!1;Bn.prototype.space=void 0;var Jg={};aa(Jg,{boolean:()=>Pe,booleanish:()=>en,commaOrSpaceSeparated:()=>Ga,commaSeparated:()=>zs,number:()=>ae,overloadedBoolean:()=>I0,spaceSeparated:()=>mt});var tZ=0,Pe=cc(),en=cc(),I0=cc(),ae=cc(),mt=cc(),zs=cc(),Ga=cc();function cc(){return 2**++tZ}var R1=Object.keys(Jg),dc=class extends Bn{constructor(t,n,a,r){let o=-1;if(super(t,n),YB(this,"space",r),typeof a=="number")for(;++o<R1.length;){let s=R1[o];YB(this,R1[o],(a&Jg[s])===Jg[s])}}};dc.prototype.defined=!0;function YB(e,t,n){n&&(e[t]=n)}function Or(e){let t={},n={};for(let[a,r]of Object.entries(e.properties)){let o=new dc(a,e.transform(e.attributes||{},a),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(o.mustUseProperty=!0),t[a]=o,n[Qg(a)]=a,n[Qg(o.attribute)]=a}return new Vs(t,n,e.space)}var I1=Or({properties:{ariaActiveDescendant:null,ariaAtomic:en,ariaAutoComplete:null,ariaBusy:en,ariaChecked:en,ariaColCount:ae,ariaColIndex:ae,ariaColSpan:ae,ariaControls:mt,ariaCurrent:null,ariaDescribedBy:mt,ariaDetails:null,ariaDisabled:en,ariaDropEffect:mt,ariaErrorMessage:null,ariaExpanded:en,ariaFlowTo:mt,ariaGrabbed:en,ariaHasPopup:null,ariaHidden:en,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:mt,ariaLevel:ae,ariaLive:null,ariaModal:en,ariaMultiLine:en,ariaMultiSelectable:en,ariaOrientation:null,ariaOwns:mt,ariaPlaceholder:null,ariaPosInSet:ae,ariaPressed:en,ariaReadOnly:en,ariaRelevant:null,ariaRequired:en,ariaRoleDescription:mt,ariaRowCount:ae,ariaRowIndex:ae,ariaRowSpan:ae,ariaSelected:en,ariaSetSize:ae,ariaSort:null,ariaValueMax:ae,ariaValueMin:ae,ariaValueNow:ae,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function j0(e,t){return t in e?e[t]:t}function T0(e,t){return j0(e,t.toLowerCase())}var ZB=Or({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zs,acceptCharset:mt,accessKey:mt,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alpha:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:mt,autoFocus:Pe,autoPlay:Pe,blocking:mt,capture:null,charSet:null,checked:Pe,cite:null,className:mt,closedBy:null,colorSpace:null,cols:ae,colSpan:ae,command:null,commandFor:null,content:null,contentEditable:en,controls:Pe,controlsList:mt,coords:ae|zs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:I0,draggable:en,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:mt,height:ae,hidden:I0,high:ae,href:null,hrefLang:null,htmlFor:mt,httpEquiv:mt,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:mt,itemRef:mt,itemScope:Pe,itemType:mt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:ae,manifest:null,max:null,maxLength:ae,media:null,method:null,min:null,minLength:ae,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pe,optimum:ae,pattern:null,ping:mt,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:mt,required:Pe,reversed:Pe,rows:ae,rowSpan:ae,sandbox:mt,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootCustomElementRegistry:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shadowRootSerializable:Pe,shape:null,size:ae,sizes:null,slot:null,span:ae,spellCheck:en,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ae,step:null,style:null,tabIndex:ae,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:en,width:ae,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:mt,axis:null,background:null,bgColor:null,border:ae,borderColor:null,bottomMargin:ae,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:ae,leftMargin:ae,link:null,longDesc:null,lowSrc:null,marginHeight:ae,marginWidth:ae,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:ae,rules:null,scheme:null,scrolling:en,standby:null,summary:null,text:null,topMargin:ae,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ae,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Pe,disablePictureInPicture:Pe,disableRemotePlayback:Pe,exportParts:zs,part:mt,prefix:null,property:null,results:ae,security:null,unselectable:null},space:"html",transform:T0});var KB=Or({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ga,accentHeight:ae,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ae,amplitude:ae,arabicForm:null,ascent:ae,attributeName:null,attributeType:null,azimuth:ae,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ae,by:null,calcMode:null,capHeight:ae,className:mt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ae,diffuseConstant:ae,direction:null,display:null,dur:null,divisor:ae,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ae,enableBackground:null,end:null,event:null,exponent:ae,externalResourcesRequired:null,fill:null,fillOpacity:ae,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zs,g2:zs,glyphName:zs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ae,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ae,horizOriginX:ae,horizOriginY:ae,id:null,ideographic:ae,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ae,k:ae,k1:ae,k2:ae,k3:ae,k4:ae,kernelMatrix:Ga,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ae,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ae,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ae,overlineThickness:ae,paintOrder:null,panose1:null,path:null,pathLength:ae,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:mt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ae,pointsAtY:ae,pointsAtZ:ae,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ga,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ga,rev:Ga,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ga,requiredFeatures:Ga,requiredFonts:Ga,requiredFormats:Ga,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ae,specularExponent:ae,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ae,strikethroughThickness:ae,string:null,stroke:null,strokeDashArray:Ga,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ae,strokeOpacity:ae,strokeWidth:null,style:null,surfaceScale:ae,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ga,tabIndex:ae,tableValues:null,target:null,targetX:ae,targetY:ae,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ga,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ae,underlineThickness:ae,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ae,values:null,vAlphabetic:ae,vMathematical:ae,vectorEffect:null,vHanging:ae,vIdeographic:ae,version:null,vertAdvY:ae,vertOriginX:ae,vertOriginY:ae,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ae,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:j0});var j1=Or({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var T1=Or({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:T0});var E1=Or({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var nZ=/[A-Z]/g,QB=/-[a-z]/g,aZ=/^data[-\w.:]+$/i;function A1(e,t){let n=Qg(t),a=t,r=Bn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&aZ.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace(QB,oZ);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!QB.test(o)){let s=o.replace(nZ,rZ);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}r=dc}return new r(a,t)}function rZ(e){return"-"+e.toLowerCase()}function oZ(e){return e.charAt(1).toUpperCase()}var JB=L1([I1,ZB,j1,T1,E1],"html"),E0=L1([I1,KB,j1,T1,E1],"svg");var e9={}.hasOwnProperty;function t9(e,t){let n=t||{};function a(r,...o){let s=a.invalid,i=a.handlers;if(r&&e9.call(r,e)){let l=String(r[e]);s=e9.call(i,l)?i[l]:a.unknown}if(s)return s.call(this,r,...o)}return a.handlers=n.handlers||{},a.invalid=n.invalid,a.unknown=n.unknown,a}var sZ=/["&'<>`]/g,iZ=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lZ=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,uZ=/[|\\{}()[\]^$+*?.]/g,n9=new WeakMap;function a9(e,t){if(e=e.replace(t.subset?cZ(t.subset):sZ,a),t.subset||t.escapeOnly)return e;return e.replace(iZ,n).replace(lZ,a);function n(r,o,s){return t.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function a(r,o,s){return t.format(r.charCodeAt(0),s.charCodeAt(o+1),t)}}function cZ(e){let t=n9.get(e);return t||(t=dZ(e),n9.set(e,t)),t}function dZ(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(uZ,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var fZ=/[\dA-Fa-f]/;function r9(e,t,n){let a="&#x"+e.toString(16).toUpperCase();return n&&t&&!fZ.test(String.fromCharCode(t))?a:a+";"}var mZ=/\d/;function o9(e,t,n){let a="&#"+String(e);return n&&t&&!mZ.test(String.fromCharCode(t))?a:a+";"}var s9=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var A0={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var i9=["cent","copy","divide","gt","lt","not","para","times"];var l9={}.hasOwnProperty,P1={},P0;for(P0 in A0)l9.call(A0,P0)&&(P1[A0[P0]]=P0);var pZ=/[^\dA-Za-z]/;function u9(e,t,n,a){let r=String.fromCharCode(e);if(l9.call(P1,r)){let o=P1[r],s="&"+o;return n&&s9.includes(o)&&!i9.includes(o)&&(!a||t&&t!==61&&pZ.test(String.fromCharCode(t)))?s:s+";"}return""}function c9(e,t,n){let a=r9(e,t,n.omitOptionalSemicolons),r;if((n.useNamedReferences||n.useShortestReferences)&&(r=u9(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let o=o9(e,t,n.omitOptionalSemicolons);o.length<a.length&&(a=o)}return r&&(!n.useShortestReferences||r.length<a.length)?r:a}function qs(e,t){return a9(e,Object.assign({format:c9},t))}var gZ=/^>|^->|<!--|-->|--!>|<!-$/g,hZ=[">"],bZ=["<",">"];function d9(e,t,n,a){return a.settings.bogusComments?"<?"+qs(e.value,Object.assign({},a.settings.characterReferences,{subset:hZ}))+">":"<!--"+e.value.replace(gZ,r)+"-->";function r(o){return qs(o,Object.assign({},a.settings.characterReferences,{subset:bZ}))}}function f9(e,t,n,a){return"<!"+(a.settings.upperDoctype?"DOCTYPE":"doctype")+(a.settings.tightDoctype?"":" ")+"html>"}function M1(e,t){let n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,r=n.indexOf(t);for(;r!==-1;)a++,r=n.indexOf(t,r+t.length);return a}function m9(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function p9(e){return e.join(" ").trim()}var yZ=/[ \t\n\f\r]/g;function fc(e){return typeof e=="object"?e.type==="text"?g9(e.value):!1:g9(e)}function g9(e){return e.replace(yZ,"")===""}var ln=h9(1),D1=h9(-1),xZ=[];function h9(e){return t;function t(n,a,r){let o=n?n.children:xZ,s=(a||0)+e,i=o[s];if(!r)for(;i&&fc(i);)s+=e,i=o[s];return i}}var vZ={}.hasOwnProperty;function M0(e){return t;function t(n,a,r){return vZ.call(e,n.tagName)&&e[n.tagName](n,a,r)}}var eh=M0({body:wZ,caption:N1,colgroup:N1,dd:$Z,dt:kZ,head:N1,html:CZ,li:SZ,optgroup:LZ,option:RZ,p:_Z,rp:b9,rt:b9,tbody:jZ,td:y9,tfoot:TZ,th:y9,thead:IZ,tr:EZ});function N1(e,t,n){let a=ln(n,t,!0);return!a||a.type!=="comment"&&!(a.type==="text"&&fc(a.value.charAt(0)))}function CZ(e,t,n){let a=ln(n,t);return!a||a.type!=="comment"}function wZ(e,t,n){let a=ln(n,t);return!a||a.type!=="comment"}function _Z(e,t,n){let a=ln(n,t);return a?a.type==="element"&&(a.tagName==="address"||a.tagName==="article"||a.tagName==="aside"||a.tagName==="blockquote"||a.tagName==="details"||a.tagName==="div"||a.tagName==="dl"||a.tagName==="fieldset"||a.tagName==="figcaption"||a.tagName==="figure"||a.tagName==="footer"||a.tagName==="form"||a.tagName==="h1"||a.tagName==="h2"||a.tagName==="h3"||a.tagName==="h4"||a.tagName==="h5"||a.tagName==="h6"||a.tagName==="header"||a.tagName==="hgroup"||a.tagName==="hr"||a.tagName==="main"||a.tagName==="menu"||a.tagName==="nav"||a.tagName==="ol"||a.tagName==="p"||a.tagName==="pre"||a.tagName==="section"||a.tagName==="table"||a.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function SZ(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&a.tagName==="li"}function kZ(e,t,n){let a=ln(n,t);return!!(a&&a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd"))}function $Z(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd")}function b9(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&(a.tagName==="rp"||a.tagName==="rt")}function LZ(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&a.tagName==="optgroup"}function RZ(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&(a.tagName==="option"||a.tagName==="optgroup")}function IZ(e,t,n){let a=ln(n,t);return!!(a&&a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot"))}function jZ(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot")}function TZ(e,t,n){return!ln(n,t)}function EZ(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&a.tagName==="tr"}function y9(e,t,n){let a=ln(n,t);return!a||a.type==="element"&&(a.tagName==="td"||a.tagName==="th")}var x9=M0({body:MZ,colgroup:DZ,head:PZ,html:AZ,tbody:NZ});function AZ(e){let t=ln(e,-1);return!t||t.type!=="comment"}function PZ(e){let t=new Set;for(let a of e.children)if(a.type==="element"&&(a.tagName==="base"||a.tagName==="title")){if(t.has(a.tagName))return!1;t.add(a.tagName)}let n=e.children[0];return!n||n.type==="element"}function MZ(e){let t=ln(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&fc(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function DZ(e,t,n){let a=D1(n,t),r=ln(e,-1,!0);return n&&a&&a.type==="element"&&a.tagName==="colgroup"&&eh(a,n.children.indexOf(a),n)?!1:!!(r&&r.type==="element"&&r.tagName==="col")}function NZ(e,t,n){let a=D1(n,t),r=ln(e,-1);return n&&a&&a.type==="element"&&(a.tagName==="thead"||a.tagName==="tbody")&&eh(a,n.children.indexOf(a),n)?!1:!!(r&&r.type==="element"&&r.tagName==="tr")}var D0={name:[[`
|
|
20
20
|
\f\r &/=>`.split(""),`
|
|
21
21
|
\f\r "&'/=>\``.split("")],[`\0
|
|
22
22
|
\f\r "&'/<=>`.split(""),`\0
|
|
@@ -171,8 +171,8 @@ XID_Start XIDS`.split(/\s/).map(e=>[Ef(e),e])),bQ=new Map([["s",Tn(383)],[Tn(383
|
|
|
171
171
|
`),a=gL(n,RF(t));return(0,tt.jsx)("div",{className:"w-max min-w-full font-mono text-xs leading-5",children:e.map((r,o)=>r.type==="hunk"||r.type==="meta"?(0,tt.jsx)("div",{className:ne("whitespace-pre px-3 py-0.5",r.type==="hunk"?"bg-info/5 text-info":"text-muted-foreground"),children:r.content},r.id):(0,tt.jsxs)("div",{className:ne("grid grid-cols-[2.25rem_2.25rem_1rem_minmax(0,1fr)]",r.type==="added"&&"bg-success/10",r.type==="removed"&&"bg-destructive/10"),children:[(0,tt.jsx)("span",{"aria-label":r.oldLine===void 0?void 0:`Old line ${r.oldLine}`,className:"select-none pr-2 text-right tabular-nums text-muted-foreground/60",children:r.oldLine}),(0,tt.jsx)("span",{"aria-label":r.newLine===void 0?void 0:`New line ${r.newLine}`,className:"select-none pr-2 text-right tabular-nums text-muted-foreground/60",children:r.newLine}),(0,tt.jsx)("span",{className:ne("select-none text-center",r.type==="added"?"text-success":r.type==="removed"?"text-destructive":"text-muted-foreground"),children:r.type==="added"?"+":r.type==="removed"?"\u2212":""}),(0,tt.jsx)(jF,{code:r.content,tokens:a?.[o]})]},r.id))})}var AF={A:"Added",M:"Modified",D:"Deleted",R:"Renamed",T:"Type changed"};function nv({diff:e,meta:t,maxHeight:n=240,variant:a="plain"}){let r=$a()??!1,o=(0,es.useId)(),[s,i]=(0,es.useState)(!1),[l,u]=(0,es.useState)(!1),[c,d]=(0,es.useState)(!1),f=(0,es.useRef)(void 0);(0,es.useEffect)(()=>()=>clearTimeout(f.current),[]);let m=async()=>{try{await navigator.clipboard.writeText(e.lines.map(p=>`${p.type==="added"?"+":p.type==="removed"?"-":p.type==="context"?" ":""}${p.content}`).join(`
|
|
172
172
|
`)),u(!0),d(!1),clearTimeout(f.current),f.current=setTimeout(()=>u(!1),1600)}catch{d(!0)}};return(0,tt.jsxs)("div",{"data-slot":"file-diff","data-variant":a,className:"min-w-0 w-full text-sm",children:[(0,tt.jsxs)("button",{id:`${o}-trigger`,type:"button","aria-expanded":s,"aria-controls":`${o}-content`,onClick:()=>i(p=>!p),className:ne("group flex min-h-10 w-full cursor-pointer items-center gap-2 rounded-md px-1 py-1 text-left outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring",a==="hover"&&"hover:bg-muted/50"),children:[(0,tt.jsx)(Hi,{"aria-hidden":!0,className:"size-4 shrink-0 text-muted-foreground"}),(0,tt.jsx)("span",{title:e.path,className:"min-w-0 flex-1 truncate font-mono text-xs text-foreground/80",children:e.path}),t&&(0,tt.jsx)("span",{className:"shrink-0 text-[11px] tabular-nums text-muted-foreground/60",children:t}),(0,tt.jsx)("span",{title:AF[e.status]??e.status,"aria-label":AF[e.status]??e.status,className:ne("shrink-0 font-mono text-[11px]",e.status==="A"?"text-success":e.status==="D"?"text-destructive":"text-warning"),children:e.status}),(0,tt.jsxs)("span",{className:"flex shrink-0 items-center gap-2 font-mono text-xs tabular-nums",children:[!!e.additions&&(0,tt.jsxs)("span",{"aria-label":`${e.additions} added lines`,className:"text-success",children:["+",e.additions]}),!!e.deletions&&(0,tt.jsxs)("span",{"aria-label":`${e.deletions} removed lines`,className:"text-destructive",children:["\u2212",e.deletions]})]}),(0,tt.jsx)(_t.span,{"aria-hidden":!0,animate:{rotate:s?180:0},transition:r?{duration:0}:xl,className:"shrink-0 text-muted-foreground/60",children:(0,tt.jsx)(ia,{className:"size-3.5"})})]}),(0,tt.jsx)(vl,{id:`${o}-content`,role:"region","aria-labelledby":`${o}-trigger`,open:s,children:s&&(0,tt.jsx)("div",{className:"pb-2 pl-6 pt-1.5",children:(0,tt.jsxs)("div",{className:"overflow-hidden rounded-lg bg-muted/60",children:[(0,tt.jsxs)("div",{"data-slot":"file-diff-viewport",tabIndex:0,"aria-label":`Diff for ${e.path}`,className:"overflow-auto outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",style:{maxHeight:n},children:[(0,tt.jsx)(oJ,{lines:e.lines,file:e.path}),e.binary&&(0,tt.jsx)("p",{className:"px-3 py-3 text-xs text-muted-foreground",children:"Binary file changed. No text diff is available."}),e.unavailable&&(0,tt.jsx)("p",{className:"px-3 py-3 text-xs text-muted-foreground",children:"No text diff is available for this file."}),!e.binary&&!e.unavailable&&!e.lines.length&&(0,tt.jsx)("p",{className:"px-3 py-3 text-xs text-muted-foreground",children:"No text changes."})]}),(e.omittedLines>0||e.incomplete)&&(0,tt.jsxs)("p",{className:"px-3 pt-2 text-xs text-muted-foreground",children:[e.omittedLines>0?`${e.omittedLines} more diff rows are outside this preview.`:"Only part of this file\u2019s diff is available.",e.incomplete&&e.omittedLines>0&&" The saved diff is also incomplete."]}),e.lines.length>0&&!e.binary&&(0,tt.jsxs)("div",{className:"flex items-center justify-end gap-2 px-2 py-1",children:[c&&(0,tt.jsx)("span",{role:"alert",className:"text-xs text-destructive",children:"Could not copy the diff."}),(0,tt.jsx)(_t.button,{type:"button","aria-label":l?"Copied":"Copy shown diff",title:l?"Copied":"Copy shown diff",onClick:()=>void m(),whileTap:r?void 0:{scale:.96},transition:h0,className:"grid size-9 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-background/70 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:l?(0,tt.jsx)(Sa,{className:"size-3.5"}):(0,tt.jsx)(oo,{className:"size-3.5"})})]})]})})})]})}var he=k(Z(),1);function sJ({item:e}){let t=e.status??"complete";return(0,he.jsxs)("div",{className:"flex min-h-7 items-start gap-2.5 rounded-md px-1.5 py-1",children:[(0,he.jsx)("span",{"aria-hidden":"true",className:"mt-0.5 grid size-4 shrink-0 place-items-center text-muted-foreground/70",children:t==="complete"?(0,he.jsx)(Sa,{className:"size-4",strokeWidth:1.8}):t==="active"?(0,he.jsxs)("span",{className:"relative grid size-3 place-items-center",children:[(0,he.jsx)(_t.span,{className:"absolute inset-0 rounded-full bg-foreground/10",animate:{opacity:[.35,.8,.35]},transition:{duration:1.5,repeat:Number.POSITIVE_INFINITY}}),(0,he.jsx)("span",{className:"size-1.5 rounded-full bg-foreground/60"})]}):(0,he.jsx)(Ep,{className:"size-3",strokeWidth:1.5})}),(0,he.jsx)("span",{className:ne("min-w-0 flex-1 leading-5",t==="pending"?"text-muted-foreground/55":"text-foreground/90"),children:e.label}),e.meta?(0,he.jsx)("span",{className:"shrink-0 leading-5 text-muted-foreground/55",children:e.meta}):null]})}function iJ({item:e}){return(0,he.jsx)("div",{className:"rounded-md px-1.5 py-1 leading-5 text-muted-foreground",children:e.content})}function lJ({result:e}){let t=(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("span",{"aria-hidden":"true",className:"grid size-5 shrink-0 place-items-center text-muted-foreground",children:e.icon??(0,he.jsx)(qi,{className:"size-3",strokeWidth:2})}),(0,he.jsx)("span",{className:"min-w-0 truncate font-medium text-foreground/90",children:e.title}),e.domain?(0,he.jsx)("span",{className:"min-w-0 truncate text-muted-foreground/55",children:e.domain}):null]}),n=ne("flex min-h-7 items-center gap-2 rounded-md px-1.5 py-1 text-left outline-none transition-colors",e.url&&"focus-visible:ring-2 focus-visible:ring-ring");return e.url?(0,he.jsx)("a",{href:e.url,className:n,children:t}):(0,he.jsx)("div",{className:n,children:t})}function uJ({item:e}){let t=$a()??!1,n=t?{opacity:1}:{opacity:0,y:6},a={opacity:1,y:0},r=t?{opacity:0}:{opacity:0,y:-3},o=t?{duration:0}:{opacity:{duration:.18,ease:yl},y:lc,layout:lc};return(0,he.jsxs)("div",{className:"space-y-0.5",children:[(0,he.jsxs)("div",{className:"flex min-h-7 items-center gap-2.5 rounded-md px-1.5 py-1 text-muted-foreground",children:[(0,he.jsx)(so,{"aria-hidden":"true",className:"size-4 shrink-0",strokeWidth:1.7}),(0,he.jsx)("span",{className:"min-w-0 truncate",children:e.query})]}),e.results?.length?(0,he.jsx)("div",{className:"space-y-0.5 pl-4",children:(0,he.jsx)(Zo,{initial:!0,mode:"popLayout",children:e.results.map(s=>(0,he.jsx)(_t.div,{layout:"position",initial:n,animate:a,exit:r,transition:o,children:(0,he.jsx)(lJ,{result:s})},s.id))})}):null,(0,he.jsx)(Zo,{initial:!0,children:e.moreCount?(0,he.jsxs)(_t.div,{initial:n,animate:a,exit:r,transition:o,className:"px-1.5 py-1 pl-8 text-muted-foreground/55",children:["+",e.moreCount," more"]},"more-results"):null})]})}function cJ({action:e}){return e==="read"?(0,he.jsx)(Mp,{className:"size-4"}):e==="edit"||e==="write"?(0,he.jsx)(Gi,{className:"size-4"}):e==="run"?(0,he.jsx)(io,{className:"size-4"}):(0,he.jsx)(Bo,{className:"size-4"})}function dJ({item:e}){let t=e.action.charAt(0).toUpperCase()+e.action.slice(1);return(0,he.jsxs)("div",{className:"flex min-h-8 min-w-0 items-center gap-2.5 rounded-md px-1.5 py-0.5 leading-5",children:[(0,he.jsx)("span",{"aria-hidden":"true",className:"grid size-4 shrink-0 place-items-center text-muted-foreground/70",children:(0,he.jsx)(cJ,{action:e.action})}),(0,he.jsx)("span",{className:"shrink-0 font-medium text-foreground/90",children:t}),(0,he.jsx)("span",{className:"min-w-0 flex-1 truncate rounded-lg bg-muted/80 px-2.5 py-1 font-mono text-xs text-muted-foreground/70",children:e.target}),typeof e.additions=="number"||typeof e.deletions=="number"?(0,he.jsxs)("span",{className:"flex shrink-0 items-center gap-2 font-mono tabular-nums",children:[typeof e.additions=="number"?(0,he.jsxs)("span",{className:"text-emerald-500",children:["+",e.additions]}):null,typeof e.deletions=="number"?(0,he.jsxs)("span",{className:"text-rose-500",children:["\u2212",e.deletions]}):null]}):null]})}function hL({kind:e}){return e==="thinking"?(0,he.jsx)(Wi,{className:"size-4"}):e==="message"?(0,he.jsx)(Iu,{className:"size-4"}):e==="write"?(0,he.jsx)(Gi,{className:"size-4"}):e==="run"?(0,he.jsx)(io,{className:"size-4"}):e==="read"?(0,he.jsx)(Bp,{className:"size-4"}):(0,he.jsx)(Bo,{className:"size-4"})}function fJ({item:e}){return e.kind==="message"?(0,he.jsxs)("article",{"aria-label":"Agent message",className:"flex min-w-0 items-start gap-2.5 py-3",children:[(0,he.jsx)("span",{"aria-hidden":"true",className:"mt-1 grid size-4 shrink-0 place-items-center text-muted-foreground/50",children:e.icon??(0,he.jsx)(hL,{kind:e.kind})}),(0,he.jsx)("div",{className:"min-w-0 flex-1 whitespace-pre-wrap [overflow-wrap:anywhere] text-sm leading-6 text-foreground/85",children:e.detail})]}):e.kind==="write"&&e.diffs?.length?(0,he.jsx)("div",{"aria-label":"Edited files",className:"min-w-0 space-y-0.5",children:e.diffs.map(t=>(0,he.jsx)(nv,{diff:t,meta:e.meta,variant:"hover"},t.path))}):e.kind!=="message"&&e.kind!=="thinking"&&typeof e.detail=="string"?(0,he.jsx)(EF,{title:e.label,tool:e.tool,detail:e.detail,icon:e.icon??(0,he.jsx)(hL,{kind:e.kind}),meta:e.meta,ok:e.ok,language:e.kind==="run"?"bash":"text",variant:"hover"}):(0,he.jsxs)("div",{className:"min-w-0 py-2",children:[(0,he.jsxs)("div",{className:"mb-1.5 flex items-center gap-2 text-xs text-muted-foreground",children:[(0,he.jsx)("span",{"aria-hidden":"true",children:e.icon??(0,he.jsx)(hL,{kind:e.kind})}),(0,he.jsx)("span",{className:"font-medium",children:e.label}),e.meta&&(0,he.jsx)("span",{className:"tabular-nums",children:e.meta})]}),(0,he.jsx)("div",{className:"pl-6 whitespace-pre-wrap [overflow-wrap:anywhere] text-[13px] leading-6 text-foreground/90",children:e.detail})]})}function PF({item:e}){return e.type==="text"?(0,he.jsx)(iJ,{item:e}):e.type==="search"?(0,he.jsx)(uJ,{item:e}):e.type==="tool"?(0,he.jsx)(dJ,{item:e}):e.type==="trace"?(0,he.jsx)(fJ,{item:e}):(0,he.jsx)(sJ,{item:e})}var Jn=k(Z(),1);function mJ(e){let t=Math.max(0,Math.round(e));if(t<60)return`${t}s`;let n=Math.floor(t/60),a=t%60;return a===0?`${n}m`:`${n}m ${a}s`}function pJ({open:e,defaultOpen:t,onOpenChange:n}){let[a,r]=(0,Fr.useState)(t),o=e!==void 0,s=e??a,i=(0,Fr.useCallback)(l=>{o||r(l),n?.(l)},[o,n]);return[s,i]}function gJ(e){let t=e[0]?.type;return t&&e.every(n=>n.type===t)?t:"mixed"}function hJ(e){return e==="search"?"Searching the web\u2026":e==="tool"?"Running tools\u2026":e==="trace"?"Working through the run\u2026":e==="mixed"?"Working through it\u2026":"Thinking\u2026"}function bJ(e,t,n){if(e==="step"||e==="text")return(0,Jn.jsxs)(Jn.Fragment,{children:["Thought for ",(0,Jn.jsx)("span",{className:"tabular-nums",children:mJ(n)})]});if(e==="search")return"Searched the web";if(e==="tool")return`Ran ${t.length} ${t.length===1?"tool":"tools"}`;if(e==="trace"){let a=t.filter(o=>o.type==="trace"&&(o.kind==="thinking"||o.kind==="message")).length,r=t.length-a;return`${r} ${r===1?"tool call":"tool calls"}, ${a} ${a===1?"message":"messages"}`}return`Completed ${t.length} ${t.length===1?"step":"steps"}`}function MF({items:e,contentType:t,status:n="working",duration:a=0,open:r,defaultOpen:o=!1,onOpenChange:s,collapseOnComplete:i=!0,activeLabel:l,summary:u,renderWorkingStatus:c,renderCompletedStatus:d,maxHeight:f=208,className:m,contentClassName:p}){let h=$a()??!1,x=(0,Fr.useId)(),b=`${x}-trigger`,g=`${x}-content`,y=(0,Fr.useRef)(n),[v,C]=pJ({open:r,defaultOpen:o||n==="working",onOpenChange:s}),S=n==="working",_=v,w=e.length?gJ(e):t??"mixed";(0,Fr.useEffect)(()=>{y.current!=="working"&&n==="working"&&C(!0),y.current==="working"&&n==="complete"&&i&&C(!1),y.current=n},[i,C,n]);let R=()=>{C(!v)},$=l??hJ(w),j=u??bJ(w,e,a),M=(0,Fr.useMemo)(()=>e.map((I,N)=>({id:I.id,label:I.type==="trace"?I.navigationLabel??`Step ${N+1}`:`Step ${N+1}`,description:I.type==="trace"&&typeof I.detail=="string"?I.detail:void 0})),[e]);return(0,Jn.jsxs)("div",{"data-state":S?"working":_?"open":"closed","data-content":w,"aria-busy":S,className:ne("w-full text-sm",m),children:[(0,Jn.jsxs)("button",{id:b,type:"button","aria-expanded":_,"aria-controls":g,onClick:R,className:"flex h-7 min-w-0 cursor-pointer items-center gap-1.5 rounded-md text-left font-medium text-muted-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:[(0,Jn.jsx)("span",{className:"truncate",children:S?c?c({label:$,duration:a}):(0,Jn.jsx)(aB,{children:$}):d?d({summary:j,duration:a}):j}),(0,Jn.jsx)(_t.span,{"aria-hidden":"true",animate:{rotate:_?180:0},transition:h?{duration:0}:xl,className:"inline-flex shrink-0 text-muted-foreground/70",children:(0,Jn.jsx)(ia,{className:"size-3.5"})})]}),(0,Jn.jsx)(vl,{id:g,role:"region","aria-labelledby":b,open:_,children:(0,Jn.jsx)(iB,{items:M,followOutput:S,maxHeight:f,className:p,children:(0,Jn.jsx)(Zo,{mode:"popLayout",children:e.map(I=>(0,Jn.jsx)(_t.div,{role:"listitem","data-activity-id":I.id,initial:h?{opacity:1}:{opacity:0,y:6},animate:{opacity:1,y:0},exit:h?{opacity:0}:{opacity:0,y:-3},transition:h?{duration:0}:{opacity:{duration:.18,ease:yl},y:lc},children:(0,Jn.jsx)(PF,{item:I})},I.id))})})})]})}var av=k(A(),1);function rv(){let e=(0,av.useRef)(null);return(0,av.useEffect)(()=>{let t=e.current;if(!t)return;let n=()=>{t.dataset.fadeTop=String(t.scrollTop>2),t.dataset.fadeBottom=String(t.scrollTop+t.clientHeight<t.scrollHeight-2)};n(),t.addEventListener("scroll",n,{passive:!0});let a=new ResizeObserver(n);return a.observe(t),t.firstElementChild&&a.observe(t.firstElementChild),()=>{t.removeEventListener("scroll",n),a.disconnect()}},[]),e}var NF=k(Z(),1);function DF({className:e,children:t}){let n=rv();return(0,NF.jsx)("div",{ref:n,className:ne("scroll-fade overflow-auto",e),children:t})}var OF=k(Z(),1);function Zs({className:e,...t}){return(0,OF.jsx)("div",{"data-slot":"skeleton",className:ne("animate-pulse rounded-md bg-muted",e),...t})}var mo=k(A(),1);function Ll(e,t,n){let[a,r]=(0,mo.useState)(),[o,s]=(0,mo.useState)(!1),[i,l]=(0,mo.useState)(0),u=(0,mo.useRef)(e);u.current=e;let c=(0,mo.useCallback)(async(f=!1)=>{if(!(document.hidden&&!f))try{r(await u.current()),s(!1),l(m=>m+1)}catch{s(!0)}},[]);(0,mo.useEffect)(()=>{c(!0);let f=setInterval(()=>void c(),t),m=()=>{document.hidden||c()};return document.addEventListener("visibilitychange",m),()=>{clearInterval(f),document.removeEventListener("visibilitychange",m)}},[t,c,...n]);let d=(0,mo.useCallback)(()=>c(!0),[c]);return{data:a,error:o,tick:i,reload:d}}var Ks=k(Z(),1),Rl="size-4";function yJ(e){let t=(e.name??"").toLowerCase();return e.kind==="say"?{kind:"message",label:"Message",icon:(0,Ks.jsx)(Iu,{className:Rl})}:e.kind==="shell"?{kind:"run",label:"Ran command",icon:(0,Ks.jsx)(io,{className:Rl})}:e.kind==="edit"?{kind:"write",label:"Edited",icon:(0,Ks.jsx)(Gi,{className:Rl})}:/^(read|cat|view|open)$/.test(t)?{kind:"read",label:"Read",icon:(0,Ks.jsx)(Pp,{className:Rl})}:/grep|search|rg/.test(t)&&!/web/.test(t)?{kind:"tool",label:"Searched",icon:(0,Ks.jsx)(so,{className:Rl})}:/glob|list|ls|tree|find/.test(t)?{kind:"tool",label:"Listed files",icon:(0,Ks.jsx)(Dp,{className:Rl})}:/web|fetch/.test(t)?{kind:"tool",label:"Fetched",icon:(0,Ks.jsx)(Np,{className:Rl})}:{kind:"tool",label:e.name??"Tool",icon:(0,Ks.jsx)(Bo,{className:Rl})}}function xJ(e,t){return`, ${e.trim().replace(/\n/g,", ")}, `.includes(`, ${t}, `)}function BF(e,t=[]){return e.map((n,a)=>{let r=yJ(n);return{id:`step-${a}`,type:"trace",kind:r.kind,icon:r.icon,label:r.label,navigationLabel:`Step ${a+1}: ${r.label}`,meta:n.t!=null?`+${Rs(n.t)}`:void 0,ok:n.ok,detail:n.text,tool:n.name??n.kind,diffs:n.kind==="edit"&&n.ok!==!1?t.filter(o=>xJ(n.text,o.path)):void 0}})}function uh(e,t=!0){let n=e;if(e.startsWith('"')&&e.endsWith('"')){let a=[],r={t:" ",n:`
|
|
173
173
|
`,r:"\r",b:"\b",f:"\f",v:"\v"};for(let o of e.slice(1,-1).matchAll(/\\([0-7]{1,3}|.)|([^\\]+)/g))o[1]&&/^[0-7]+$/.test(o[1])?a.push(parseInt(o[1],8)):a.push(...new TextEncoder().encode(o[2]??r[o[1]]??o[1]));n=new TextDecoder().decode(new Uint8Array(a))}return t?n.replace(/^[ab]\//,""):n}function vJ(e){let t=e.match(/^diff --git ("(?:[^"\\]|\\.)*"|\S+) ("(?:[^"\\]|\\.)*"|\S+)$/);return uh(t?t[2]:e.slice(e.lastIndexOf(" b/")+1))}function FF(e,t,n=!1){let a=[],r,o=0,s=0,i=0,l=0,u=!1,c=0,d=()=>{r&&(i>0||l>0)&&(r.incomplete=!0),i=l=0,u=!1},f=h=>{r&&(r.lines.length<300?r.lines.push({...h,id:String(c)}):r.omittedLines++,c++)};for(let h of e.split(`
|
|
174
|
-
`)){if(h.startsWith("diff --git ")){d(),r={path:vJ(h),status:"M",lines:[],additions:0,deletions:0,omittedLines:0,binary:!1,incomplete:!1},a.push(r),c=0;continue}if(!r)continue;let x=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/.exec(h);x?(d(),o=Number(x[1]),s=Number(x[3]),i=Number(x[2]??1),l=Number(x[4]??1),u=!0,f({type:"hunk",content:h})):u&&h.startsWith("\")?f({type:"meta",content:h}):u&&(i>0||l>0)?h.startsWith("+")&&l>0?(r.additions++,l--,f({type:"added",newLine:s++,content:h.slice(1)})):h.startsWith("-")&&i>0?(r.deletions++,i--,f({type:"removed",oldLine:o++,content:h.slice(1)})):h.startsWith(" ")&&i>0&&l>0?(i--,l--,f({type:"context",oldLine:o++,newLine:s++,content:h.slice(1)})):r.incomplete=!0:u||(h.startsWith("+++ ")&&h!=="+++ /dev/null"?r.path=uh(h.slice(4).replace(/\t$/,"")):h.startsWith("--- ")&&h!=="--- /dev/null"?r.path=uh(h.slice(4).replace(/\t$/,"")):/^(GIT binary patch|Binary files .* differ)$/.test(h)?r.binary=!0:/^(new file mode|deleted file mode|old mode|new mode|rename from|rename to|similarity index) /.test(h)&&(h.startsWith("new file mode ")&&(r.status="A"),h.startsWith("deleted file mode ")&&(r.status="D"),h.startsWith("rename to ")&&(r.path=uh(h.slice(10),!1),r.status="R"),f({type:"meta",content:h})))}d(),n&&r&&(r.incomplete=!0);for(let h of a)(h.incomplete||h.binary)&&(h.additions=h.deletions=void 0);let m=new Map(a.map(h=>[h.path,h]));return[...t.map(h=>{let x=m.get(h.path);return m.delete(h.path),x?{...x,status:h.status}:{...h,lines:[],omittedLines:0,binary:!1,incomplete:n,unavailable:!0}}),...m.values()]}var _e=k(Z(),1);function ov({title:e,children:t}){return(0,_e.jsxs)("section",{className:"space-y-2",children:[(0,_e.jsx)("h4",{className:"text-[11px] font-semibold uppercase tracking-widest text-muted-foreground/80",children:e}),t]})}function CJ({title:e,children:t}){let[n,a]=(0,Vr.useState)(!1),r=(0,Vr.useId)(),o=$a();return(0,_e.jsxs)("section",{className:"space-y-2",children:[(0,_e.jsx)("h4",{children:(0,_e.jsxs)("button",{id:`${r}-trigger`,type:"button","aria-expanded":n,"aria-controls":`${r}-content`,onClick:()=>a(s=>!s),className:"flex min-h-7 w-full cursor-pointer items-center gap-2 rounded-md text-left text-[11px] font-semibold uppercase tracking-widest text-muted-foreground/80 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:[e,(0,_e.jsx)(_t.span,{"aria-hidden":"true",animate:{rotate:n?180:0},transition:o?{duration:0}:xl,className:"inline-flex shrink-0 text-muted-foreground/60",children:(0,_e.jsx)(ia,{className:"size-3.5"})})]})}),(0,_e.jsx)(vl,{id:`${r}-content`,role:"region","aria-labelledby":`${r}-trigger`,open:n,className:"space-y-2",children:t})]})}var bL=({children:e,mono:t})=>(0,_e.jsx)(DF,{className:ne("max-h-60 whitespace-pre-wrap break-words rounded-lg border bg-muted/40 p-3 text-[13px] leading-relaxed",t&&"font-mono text-xs"),children:e}),VF={worker:"Worker",model:"Model",mode:"Mode",started:"Started",time:"Duration",steps:"Steps",toolCalls:"Tool calls",tokens:"Tokens",returnedTokens:"Returned to agent",cost:"Worker cost",saved:"Saved",group:"Group",directory:"Directory"};function wJ(e,t,n=!1){return e==="started"?new Date(t).toLocaleString():e==="tokens"||e==="returnedTokens"?Is(Number(t)):e==="cost"?Number(t)?`${n?"~":""}$${Number(t).toFixed(3)}${n?" (estimated)":""}`:"free":e==="saved"?`~${Tr(Number(t))}`:String(t)}function yc({children:e,tone:t}){return(0,_e.jsx)("p",{className:ne("text-[13px]",t==="bad"?"text-destructive":t==="ok"?"text-muted-foreground":"text-warning"),children:e})}function _J({d:e,reload:t}){let[n,a]=(0,Vr.useState)(!1),[r,o]=(0,Vr.useState)(!1),[s,i]=(0,Vr.useState)(""),l=e.state==="running"||e.state==="queued";if(!l&&!e.card?.discardable)return null;let u=l?"Stop":"Discard",c=async()=>{o(!0),i("");try{await(l?$n.stop(e.id):$n.discard(e.id)),a(!1),t()}catch(d){i(d.message)}finally{o(!1)}};return(0,_e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[n?(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)("span",{className:"text-[13px] text-muted-foreground",children:l?"Stop this run?":"Throw away the isolated copy? The patch file stays."}),(0,_e.jsx)(on,{variant:"destructive",size:"sm",disabled:r,onClick:()=>void c(),children:r?`${u}\u2026`:`Yes, ${u.toLowerCase()}`}),(0,_e.jsx)(on,{variant:"ghost",size:"sm",disabled:r,onClick:()=>a(!1),children:"Cancel"})]}):(0,_e.jsx)(on,{variant:"outline",size:"sm",onClick:()=>a(!0),children:u}),s&&(0,_e.jsx)(yc,{tone:"bad",children:s})]})}function SJ({d:e,reload:t}){let[n,a]=(0,Vr.useState)(!1),[r,o]=(0,Vr.useState)(!1),s=e.state==="running"||e.state==="queued",i=(0,Vr.useMemo)(()=>e.fileDiffs??FF(e.patch??"",e.changes,/\n… \d+ more lines/.test(e.patch??"")),[e.fileDiffs,e.patch,e.changes]),l=(0,Vr.useMemo)(()=>BF(e.steps,i),[e.steps,i]);return(0,_e.jsxs)("div",{className:"space-y-5",children:[(0,_e.jsx)(_J,{d:e,reload:t}),!/^Review of /.test(e.task)&&(0,_e.jsx)(ov,{title:"Task",children:(0,_e.jsx)(bL,{children:e.task})}),(0,_e.jsx)(ov,{title:`What it did${e.steps.length?` \xB7 ${e.steps.length}`:""}`,children:e.steps.length?(0,_e.jsx)(MF,{items:l,status:s?"working":"complete",defaultOpen:!0,collapseOnComplete:!1,maxHeight:440,activeLabel:"Working\u2026"},e.id):(0,_e.jsx)("p",{className:"text-sm text-muted-foreground",children:s?"Waiting for its first step\u2026":"No activity was recorded for this run."})}),e.answer&&(0,_e.jsx)(ov,{title:"Result",children:(0,_e.jsx)(bL,{children:e.answer})}),e.changes.length>0&&(0,_e.jsxs)(CJ,{title:`Changes \xB7 ${e.changes.length} file${e.changes.length===1?"":"s"}`,children:[(0,_e.jsx)("div",{className:"space-y-0.5",children:i.map(u=>(0,_e.jsx)(nv,{diff:u},u.path))}),i.some(u=>u.omittedLines>0||u.incomplete)&&(0,_e.jsxs)("p",{className:"text-xs text-muted-foreground",children:[i.some(u=>u.incomplete)?"Saved patch":"Full patch",": ",(0,_e.jsxs)("code",{className:"font-mono",children:["pitroom show ",e.id," --patch"]})]})]}),(0,_e.jsxs)(ov,{title:"Details",children:[(0,_e.jsx)("dl",{className:"grid grid-cols-2 gap-x-6 gap-y-3 sm:grid-cols-3",children:Object.keys(VF).map(u=>{let c=e.info[u];return c==null||c===""||c===0&&u!=="cost"?null:(0,_e.jsxs)("div",{className:"min-w-0",children:[(0,_e.jsx)("dt",{className:"text-[11px] uppercase tracking-wide text-muted-foreground/80",children:VF[u]}),(0,_e.jsx)("dd",{className:"break-words text-[13px]",children:wJ(u,c,u==="cost"&&!!e.info.costEstimated)})]},u)})}),e.audit&&e.audit.state==="done"&&e.audit.verdict&&e.audit.verdict!=="agree"&&(0,_e.jsxs)(yc,{tone:"bad",children:[e.card?.kind==="audit"?"This audit disputes":"Audit by another worker:"," ",e.audit.disputed.length?e.audit.disputed.join(" \xB7 "):e.audit.verdict==="unclear"?"no verdict in the expected form":"see the audit run"]}),e.refs&&(0,_e.jsxs)(yc,{tone:e.refs.valid<e.refs.total?void 0:"ok",children:["References verified: ",e.refs.valid," of ",e.refs.total,e.refs.invalid.length?` \xB7 not found: ${e.refs.invalid.join(", ")}`:""]}),e.attempts.map((u,c)=>(0,_e.jsx)(yc,{children:u.skipped?`Skipped ${u.target}: ${u.error}`:`Fell back from ${u.target}: ${u.error}`},c)),e.warnings.map((u,c)=>(0,_e.jsx)(yc,{children:u},c)),e.verify&&(0,_e.jsxs)(yc,{tone:e.verify.ok?"ok":"bad",children:["Verify ",e.verify.ok?"passed":"failed",": ",e.verify.command]}),e.error&&(0,_e.jsx)(yc,{tone:"bad",children:e.error}),(0,_e.jsxs)("div",{className:"flex gap-1 pt-1",children:[(0,_e.jsxs)(on,{variant:"ghost",size:"sm",onClick:()=>{navigator.clipboard?.writeText(e.id),o(!0),setTimeout(()=>o(!1),1400)},children:[r?(0,_e.jsx)(Sa,{}):(0,_e.jsx)(oo,{}),r?"Copied":e.id]}),(0,_e.jsx)(on,{variant:"ghost",size:"sm",onClick:()=>a(u=>!u),children:n?"Hide full report":"Full report"})]}),n&&(0,_e.jsx)(bL,{mono:!0,children:e.report})]})]})}function zF({id:e,live:t}){let{data:n,error:a,reload:r}=Ll(()=>$n.run(e),t?3e3:6e5,[e,t]);return n?(0,_e.jsx)(SJ,{d:n,reload:()=>void r()}):a?(0,_e.jsx)("p",{className:"text-sm text-destructive",children:"Could not load this run."}):(0,_e.jsxs)("div",{className:"space-y-3",children:[(0,_e.jsx)(Zs,{className:"h-16"}),(0,_e.jsx)(Zs,{className:"h-24"})]})}var os={};aa(os,{Arrow:()=>Iz,Handle:()=>Ah,Popup:()=>Lz,Portal:()=>cz,Positioner:()=>kz,Provider:()=>Tz,Root:()=>ez,Trigger:()=>rz,Viewport:()=>qz,createHandle:()=>Hz});var Wf=k(A(),1);var qF=k(A(),1);var yL=[],xL;function HF(){return xL}function UF(e){yL.push(e)}function vL(e){let t=(n,a)=>{let r=st(kJ).current,o;try{xL=r;for(let s of yL)s.before(r);o=e(n,a);for(let s of yL)s.after(r);r.didInitialize=!0}finally{xL=void 0}return o};return t.displayName=e.displayName||e.name,t}function GF(e){return qF.forwardRef(vL(e))}function kJ(){return{didInitialize:!1}}var sv=k(A(),1),CL=sv.createContext(void 0);function zr(e){let t=sv.useContext(CL);if(t===void 0&&!e)throw new Error(Ve(72));return t}var Ra=k(A(),1);var WF=k(A(),1);function Mf(e){WF.useEffect(e,za)}var ch=0,da=class e{static create(){return new e}currentId=ch;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=ch,n()},t)}isStarted(){return this.currentId!==ch}clear=()=>{this.currentId!==ch&&(clearTimeout(this.currentId),this.currentId=ch)};disposeEffect=()=>this.clear};function nt(){let e=st(da.create).current;return Mf(e.disposeEffect),e}var it={};aa(it,{engine:()=>$L,env:()=>RL,mediaQuery:()=>IL,os:()=>SL,screenReader:()=>LL});var SL={};aa(SL,{android:()=>ZF,apple:()=>_L,ios:()=>wL,linux:()=>jJ,mac:()=>KF,windows:()=>IJ});function $J(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:LJ,platform:RJ,maxTouchPoints:XF}=$J(),xc=LJ.toLowerCase(),vc=RJ.toLowerCase();var wL=/^i(os$|p)/.test(vc)||vc==="macintel"&&XF>1,YF="android",ZF=vc===YF||xc.includes(YF),KF=!wL&&vc.startsWith("mac"),IJ=vc.startsWith("win"),jJ=!ZF&&/^(linux|chrome os)/.test(vc),_L=KF||wL;var $L={};aa($L,{blink:()=>EJ,gecko:()=>TJ,webkit:()=>kL});var kL=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),TJ=!kL&&xc.includes("firefox"),EJ=!kL&&xc.includes("chrom");var LL={};aa(LL,{voiceOver:()=>AJ});var AJ=_L;var RL={};aa(RL,{jsdom:()=>PJ});var PJ=/jsdom|happydom/.test(xc);var IL={};aa(IL,{iOS:()=>MJ});var MJ="@supports (-webkit-touch-callout: none)";function Xa(e){e.preventDefault(),e.stopPropagation()}function QF(e){return"nativeEvent"in e}function Il(e){return e.pointerType===""&&e.isTrusted?!0:it.os.android&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Df(e){return it.env.jsdom?!1:!it.os.android&&e.width===0&&e.height===0||it.os.android&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function hr(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function JF(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function Wt(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function de(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Ko(n)){let a=t;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function ct(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}var dh="data-base-ui-focusable";var jL="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",fh="ArrowLeft",mh="ArrowRight",TL="ArrowUp",iv="ArrowDown";var Nf={};aa(Nf,{endingStyle:()=>EL,startingStyle:()=>ph});var ph="data-starting-style",EL="data-ending-style";var DJ={[ph]:""},NJ={[EL]:""},Ya={transitionStatus(e){return e==="starting"?DJ:e==="ending"?NJ:null}};var e3="data-open",t3="data-closed";var n3="data-anchor-hidden";var Cc={};aa(Cc,{popupOpen:()=>lv,pressed:()=>AL});var lv="data-popup-open",AL="data-pressed";var BJ={[lv]:""},FJ={[lv]:"",[AL]:""},VJ={[e3]:""},zJ={[t3]:""},qJ={[n3]:""},uv={open(e){return e?BJ:null}},a3={open(e){return e?FJ:null}},Qs={open(e){return e?VJ:zJ},anchorHidden(e){return e?qJ:null}},cv={...Qs,...Ya};var IRe=Cc.popupOpen,gh="data-trigger-disabled";function jl(e,t){if(!Ie(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(gh);for(let[,a]of t.entries())if(de(a,n))return!a.hasAttribute(gh);return!1}function dv(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function o3(e){return e.matches("html,body")}function wc(e){return He(e)&&e.matches(jL)}function PL(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${jL}`)!=null}function hh(e){return e?e.getAttribute("role")==="combobox"&&wc(e):!1}function s3(e){if(!e||it.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function _c(e){return e?e.hasAttribute(dh)?e:e.querySelector(`[${dh}]`)||e:null}function HJ(e,t){return t!=null&&!hr(t)?0:typeof e=="function"?e():e}function po(e,t,n){let a=HJ(e,n);return typeof a=="number"?a:a?.[t]}function ML(e){return typeof e=="function"?e():e}function fv(e,t){return t||e==="click"||e==="mousedown"}function i3(e){return e?.includes("mouse")&&e!=="mousedown"}var se={};aa(se,{cancelOpen:()=>yee,chipRemovePress:()=>eee,clearPress:()=>JJ,closePress:()=>KJ,closeWatcher:()=>dee,decrementPress:()=>aee,disabled:()=>vee,drag:()=>gee,escapeKey:()=>cee,focusOut:()=>uee,imperativeAction:()=>_ee,incrementPress:()=>nee,initial:()=>wee,inputBlur:()=>see,inputChange:()=>ree,inputClear:()=>oee,inputPaste:()=>iee,inputPress:()=>lee,itemPress:()=>ZJ,keyboard:()=>mee,linkPress:()=>QJ,listNavigation:()=>fee,missing:()=>Cee,none:()=>UJ,outsidePress:()=>YJ,pointer:()=>pee,scrub:()=>bee,siblingOpen:()=>xee,swipe:()=>See,trackPress:()=>tee,triggerFocus:()=>XJ,triggerHover:()=>WJ,triggerPress:()=>GJ,wheel:()=>hee,windowResize:()=>kee});var UJ="none",GJ="trigger-press",WJ="trigger-hover",XJ="trigger-focus",YJ="outside-press",ZJ="item-press",KJ="close-press",QJ="link-press",JJ="clear-press",eee="chip-remove-press",tee="track-press",nee="increment-press",aee="decrement-press",ree="input-change",oee="input-clear",see="input-blur",iee="input-paste",lee="input-press",uee="focus-out",cee="escape-key",dee="close-watcher",fee="list-navigation",mee="keyboard",pee="pointer",gee="drag",hee="wheel",bee="scrub",yee="cancel-open",xee="sibling-open",vee="disabled",Cee="missing",wee="initial",_ee="imperative-action",See="swipe",kee="window-resize";function ve(e,t,n,a){let r=!1,o=!1,s=a??Qe;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){o=!0},get isCanceled(){return r},get isPropagationAllowed(){return o},trigger:n,...s}}var l3=k(Z(),1),u3=Ra.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new da,currentIdRef:{current:null},currentContextRef:{current:null}});function $ee(e,t){e.current=t.current}function DL(e){let{children:t,delay:n,timeoutMs:a=0}=e,r=Ra.useRef(n),o=Ra.useRef(n),s=Ra.useRef(null),i=Ra.useRef(null),l=nt();return U(()=>{if(o.current=n,!s.current){r.current=n;return}r.current={open:po(r.current,"open"),close:po(n,"close")}},[n,s,r,o]),(0,l3.jsx)(u3.Provider,{value:Ra.useMemo(()=>({hasProvider:!0,delayRef:r,initialDelayRef:o,currentIdRef:s,timeoutMs:a,currentContextRef:i,timeout:l}),[a,l]),children:t})}function NL(e,t={open:!1}){let{open:n}=t,a="rootStore"in e?e.rootStore:e,r=a.useState("floatingId"),o=Ra.useContext(u3),{currentIdRef:s,delayRef:i,timeoutMs:l,initialDelayRef:u,currentContextRef:c,hasProvider:d,timeout:f}=o,[m,p]=Ra.useState(!1),h=Ra.useRef(n);return U(()=>{h.current=n},[n]),U(()=>{function x(){c.current?.setIsInstantPhase(!1),s.current=null,c.current=null,i.current=u.current,f.clear()}if(s.current&&!n&&s.current===r){if(p(!1),l){let b=r;return f.start(l,()=>{a.select("open")||s.current&&s.current!==b||x()}),()=>{(h.current||s.current!==b)&&f.clear()}}x()}},[n,r,s,i,l,u,c,f,a]),U(()=>{if(!n)return;let x=c.current,b=s.current;f.clear(),c.current={onOpenChange:a.setOpen,setIsInstantPhase:p},s.current=r,i.current={open:0,close:po(u.current,"close")},b!==null&&b!==r?(p(!0),x?.setIsInstantPhase(!0),x?.onOpenChange(!1,ve(se.none))):(p(!1),x?.setIsInstantPhase(!1))},[n,r,a,s,i,u,c,f]),U(()=>()=>{if(s.current===r){if(c.current=null,!h.current)return;s.current=null,$ee(i,u),f.clear()}},[c,s,i,r,u,f]),Ra.useMemo(()=>({activeIdRef:s,hasProvider:d,delayRef:i,isInstantPhase:m}),[s,d,i,m])}var pa=k(A(),1);function ke(e,t,n,a){return e.addEventListener(t,n,a),()=>{e.removeEventListener(t,n,a)}}function fa(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function vt(e){let t=st(Lee,e).current;return t.next=e,U(t.effect),t}function Lee(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var mv=null,eIe=globalThis.requestAnimationFrame,OL=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let n=this.callbacks,a=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,a>0)for(let r=0;r<n.length;r+=1)n[r]?.(t)};request(t){let n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){let n=t-this.startId;n<0||n>=this.callbacks.length||this.callbacks[n]!==null&&(this.callbacks[n]=null,this.callbacksCount-=1)}},pv=new OL;var qr=class e{static create(){return new e}static request(t){return pv.request(t)}static cancel(t){return pv.cancel(t)}currentId=mv;request(t){this.cancel(),this.currentId=pv.request(()=>{this.currentId=mv,t()})}cancel=()=>{this.currentId!==mv&&(pv.cancel(this.currentId),this.currentId=mv)};disposeEffect=()=>this.cancel};function Ia(){let e=st(qr.create).current;return Mf(e.disposeEffect),e}var gv=k(A(),1);var c3={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Of={...c3,position:"fixed",top:0,left:0},d3={...c3,position:"absolute"};var f3=k(Z(),1),Bf=gv.forwardRef(function(t,n){let[a,r]=gv.useState();return U(()=>{it.screenReader.voiceOver&&it.engine.webkit&&r("button")},[]),(0,f3.jsx)("span",{...t,ref:n,style:Of,"aria-hidden":a?void 0:!0,...{tabIndex:0,role:a},"data-base-ui-focus-guard":""})});var Tl=Math.min,go=Math.max,El=Math.round,yh=Math.floor,ts=e=>({x:e,y:e}),Ree={left:"right",right:"left",bottom:"top",top:"bottom"};function bv(e,t,n){return go(e,Tl(t,n))}function ns(e,t){return typeof e=="function"?e(t):e}function ma(e){return e.split("-")[0]}function Hr(e){return e.split("-")[1]}function yv(e){return e==="x"?"y":"x"}function xh(e){return e==="y"?"height":"width"}function Za(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function vh(e){return yv(Za(e))}function g3(e,t,n){n===void 0&&(n=!1);let a=Hr(e),r=vh(e),o=xh(r),s=r==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=bh(s)),[s,bh(s)]}function h3(e){let t=bh(e);return[hv(e),t,hv(t)]}function hv(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var m3=["left","right"],p3=["right","left"],Iee=["top","bottom"],jee=["bottom","top"];function Tee(e,t,n){switch(e){case"top":case"bottom":return n?t?p3:m3:t?m3:p3;case"left":case"right":return t?Iee:jee;default:return[]}}function b3(e,t,n,a){let r=Hr(e),o=Tee(ma(e),n==="start",a);return r&&(o=o.map(s=>s+"-"+r),t&&(o=o.concat(o.map(hv)))),o}function bh(e){let t=ma(e);return Ree[t]+e.slice(t.length)}function Eee(e){var t,n,a,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(a=e.bottom)!=null?a:0,left:(r=e.left)!=null?r:0}}function xv(e){return typeof e!="number"?Eee(e):{top:e,right:e,bottom:e,left:e}}function Js(e){let{x:t,y:n,width:a,height:r}=e;return{width:a,height:r,top:n,left:t,right:t+a,bottom:n+r,x:t,y:n}}function Al(e,t){return t<0||t>=e.length}function Sc(e,t){return Ur(e.current,{disabledIndices:t})}function Ff(e,t){return Ur(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Ur(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:a,amount:r=1}={}){let o=t;do o+=n?-r:r;while(o>=0&&o<=e.length-1&&ei(e,o,a));return o}function ei(e,t,n){if(typeof n=="function"?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!kc(r)||r.matches(":disabled")?!0:!n&&(r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"):!1}function Aee(e){return e.visibility==="hidden"||e.visibility==="collapse"}function kc(e,t=e?jn(e):null){return!e||!e.isConnected||!t||Aee(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var Pee='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function Mee(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Ko(n)?n.host:null}function FL(e){for(let t of Array.from(e.children))if(rn(t)==="summary")return t;return null}function Dee(e,t){let n=FL(t);return!!n&&(e===n||de(n,e))}function y3(e){let t=e?rn(e):"";return e!=null&&e.matches(Pee)&&(t!=="summary"||e.parentElement!=null&&rn(e.parentElement)==="details"&&FL(e.parentElement)===e)&&(t!=="details"||FL(e)==null)&&(t!=="input"||e.type!=="hidden")}function x3(e){if(!y3(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=Mee(t)){let n=t!==e,a=rn(t)==="slot";if(t.hasAttribute("inert")||n&&rn(t)==="details"&&!t.open&&!Dee(e,t)||t.hasAttribute("hidden")||!a&&!Nee(t,n))return!1}return!0}function Nee(e,t){let n=jn(e);return t?n.display!=="none":kc(e,n)}function v3(e){let t=e.tabIndex;if(t<0){let n=rn(e);if(n==="details"||n==="audio"||n==="video"||He(e)&&e.isContentEditable)return 0}return t}function BL(e){if(rn(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function Oee(e,t){let n=BL(e);if(!n)return!0;let a=t.find(r=>{let o=BL(r);return o?.name===n.name&&o.form===n.form&&o.checked});return a?a===n:t.find(r=>{let o=BL(r);return o?.name===n.name&&o.form===n.form})===n}function C3(e){if(He(e)&&rn(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return He(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function w3(e,t){C3(e).forEach(n=>{y3(n)&&t.push(n),w3(n,t)})}function _3(e,t,n){C3(e).forEach(a=>{He(a)&&a.matches(t)&&n.push(a),_3(a,t,n)})}function vv(e){return x3(e)&&v3(e)>=0}function VL(e){let t=[];return w3(e,t),t.filter(x3)}function Ch(e){let t=VL(e);return t.filter(n=>v3(n)>=0&&Oee(n,t))}function S3(e,t){let n=Ch(e),a=n.length;if(a===0)return;let r=Wt(Se(e)),o=n.indexOf(r),s=o===-1?t===1?0:a-1:o+t;return n[s]}function Cv(e){return S3(Se(e).body,1)||e}function wv(e){return S3(Se(e).body,-1)||e}function $c(e,t){let n=t||e.currentTarget,a=e.relatedTarget;return!a||!de(n,a)}function k3(e){Ch(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function zL(e){let t=[];_3(e,"[data-tabindex]",t),t.forEach(n=>{let a=n.dataset.tabindex;delete n.dataset.tabindex,a?n.setAttribute("tabindex",a):n.removeAttribute("tabindex")})}function Gr(e,t,n=!0){return e.filter(r=>r.parentId===t).flatMap(r=>[...!n||r.context?.open?[r]:[],...Gr(e,r.id,n)])}function qL(e,t){let n=[],a=e.find(r=>r.id===t)?.parentId;for(;a;){let r=e.find(o=>o.id===a);a=r?.parentId,r&&(n=n.concat(r))}return n}function ti(e){return`data-base-ui-${e}`}var _v=0;function Vf(e,t={}){let{preventScroll:n=!1,sync:a=!1,shouldFocus:r}=t;cancelAnimationFrame(_v);function o(){r&&!r()||e?.focus({preventScroll:n})}if(a)return o(),De;let s=requestAnimationFrame(o);return _v=s,()=>{_v===s&&(cancelAnimationFrame(s),_v=0)}}var HL={inert:new WeakMap,"aria-hidden":new WeakMap},$3="data-base-ui-inert",GL={inert:new WeakSet,"aria-hidden":new WeakSet},wh=new WeakMap,UL=0;function Bee(e){return GL[e]}function j3(e){return e?Ko(e)?e.host:j3(e.parentNode):null}var L3=(e,t)=>t.map(n=>{if(e.contains(n))return n;let a=j3(n);return e.contains(a)?a:null}).filter(n=>n!=null),R3=e=>{let t=new Set;return e.forEach(n=>{let a=n;for(;a&&!t.has(a);)t.add(a),a=a.parentNode}),t},I3=(e,t,n)=>{let a=[],r=o=>{!o||n.has(o)||Array.from(o.children).forEach(s=>{rn(s)!=="script"&&(t.has(s)?r(s):a.push(s))})};return r(e),a};function Fee(e,t,n,a,{mark:r=!0}){let o=null;a?o="inert":n&&(o="aria-hidden");let s=null,i=null,l=L3(t,e),u=r?I3(t,R3(l),new Set(l)):[],c=[],d=[];if(o){let f=HL[o],m=Bee(o);i=m,s=f;let p=L3(t,Array.from(t.querySelectorAll("[aria-live]"))),h=l.concat(p);I3(t,R3(h),new Set(h)).forEach(b=>{let g=b.getAttribute(o),y=g!==null&&g!=="false",v=(f.get(b)||0)+1;f.set(b,v),c.push(b),v===1&&y&&m.add(b),y||b.setAttribute(o,o==="inert"?"":"true")})}return r&&u.forEach(f=>{let m=(wh.get(f)||0)+1;wh.set(f,m),d.push(f),m===1&&f.setAttribute($3,"")}),UL+=1,()=>{s&&c.forEach(f=>{let p=(s.get(f)||0)-1;s.set(f,p),p||(!i?.has(f)&&o&&f.removeAttribute(o),i?.delete(f))}),r&&d.forEach(f=>{let m=(wh.get(f)||0)-1;wh.set(f,m),m||f.removeAttribute($3)}),UL-=1,UL||(HL.inert=new WeakMap,HL["aria-hidden"]=new WeakMap,GL.inert=new WeakSet,GL["aria-hidden"]=new WeakSet,wh=new WeakMap)}}function WL(e,t={}){let{ariaHidden:n=!1,inert:a=!1,mark:r=!0}=t,o=Se(e[0]).body;return Fee(e,o,n,a,{mark:r})}var Ot=k(A(),1),XL=k(wo(),1);var Sv=k(A(),1);var T3=0;function Vee(e,t="mui"){let[n,a]=Sv.useState(e),r=e||n;return Sv.useEffect(()=>{n==null&&(T3+=1,a(`${t}-${T3}`))},[n,t]),r}var E3=Bg.useId;function Pl(e,t){if(E3!==void 0){let n=E3();return e??(t?`${t}-${n}`:n)}return Vee(e,t)}var A3={style:{transition:"none"}},P3="data-base-ui-click-trigger",zee="data-base-ui-swipe-ignore",qee="data-swipe-ignore",SIe=`[${zee}]`,kIe=`[${qee}]`,M3={fallbackAxisSide:"none"},D3={fallbackAxisSide:"end"},N3={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var Lc=k(Z(),1),O3=Ot.createContext(null),YL=()=>Ot.useContext(O3),Hee=ti("portal");function kv(e={}){let{ref:t,container:n,componentProps:a=Qe,elementProps:r}=e,o=Pl(),i=YL()?.portalNode,[l,u]=Ot.useState(null),[c,d]=Ot.useState(null),f=X(x=>{x!==null&&d(x)}),m=Ot.useRef(null);U(()=>{if(n===null){m.current&&(m.current=null,d(null),u(null));return}let x=(n&&(l0(n)?n:n.current))??i??document.body;if(x==null){m.current&&(m.current=null,d(null),u(null));return}m.current!==x&&(m.current=x,d(null),u(x))},[n,i]);let p=oe("div",a,{ref:[t,f],props:[{id:o,[Hee]:""},r]}),h=l&&p?XL.createPortal(p,l):null;return{node:c,nodeId:Ot.isValidElement(p)?p.props.id:void 0,subtree:h}}var ZL=Ot.forwardRef(function(t,n){let{render:a,className:r,style:o,children:s,container:i,portalOwnerRole:l,...u}=t,{node:c,nodeId:d,subtree:f}=kv({container:i,ref:n,componentProps:t,elementProps:u}),m=Ot.useRef(null),p=Ot.useRef(null),h=Ot.useRef(null),x=Ot.useRef(null),[b,g]=Ot.useState(null),y=Ot.useRef(!1),v=b?.modal,C=b?.open,S=!!b&&!b.modal&&b.open&&!!c;Ot.useEffect(()=>{if(!c||v)return;function w(R){c&&R.relatedTarget&&$c(R)&&(R.type==="focusin"?y.current&&(zL(c),y.current=!1):(k3(c),y.current=!0))}return fa(ke(c,"focusin",w,!0),ke(c,"focusout",w,!0))},[c,v]),U(()=>{!c||C!==!0||!y.current||(zL(c),y.current=!1)},[C,c]);let _=Ot.useMemo(()=>({beforeOutsideRef:m,afterOutsideRef:p,beforeInsideRef:h,afterInsideRef:x,portalNode:c,setFocusManagerState:g}),[c]);return(0,Lc.jsxs)(Ot.Fragment,{children:[f,(0,Lc.jsxs)(O3.Provider,{value:_,children:[S&&c&&(0,Lc.jsx)(Bf,{"data-type":"outside",ref:m,onFocus:w=>{if($c(w,c))h.current?.focus();else{let R=b?b.domReference:null;wv(R)?.focus()}}}),S&&c&&(0,Lc.jsx)("span",{role:l,"aria-owns":d,style:N3}),c&&XL.createPortal(s,c),S&&c&&(0,Lc.jsx)(Bf,{"data-type":"outside",ref:p,onFocus:w=>{if($c(w,c))x.current?.focus();else{let R=b?b.domReference:null;Cv(R)?.focus(),b?.closeOnFocusOut&&b?.onOpenChange(!1,ve(se.focusOut,w.nativeEvent))}}})]})]})});var Rc=k(A(),1);function B3(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(a=>a(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Uee=k(Z(),1),Gee=Rc.createContext(null),Wee=Rc.createContext(null),Ml=()=>Rc.useContext(Gee)?.id||null,Wr=e=>{let t=Rc.useContext(Wee);return e??t};function ho(e){return e==null?e:"current"in e?e.current:e}var _h=k(Z(),1);function Xee(e,t){let n=qe(ct(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}var F3=20,Dl=[];function KL(){Dl=Dl.filter(e=>e.deref()?.isConnected)}function V3(e){KL(),e&&rn(e)!=="body"&&(Dl.push(new WeakRef(e)),Dl.length>F3&&(Dl=Dl.slice(-F3)))}function z3(){return KL(),Dl[Dl.length-1]?.deref()}function Yee(e){return e?vv(e)?e:Ch(e)[0]||e:null}function q3(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let n=VL(e).filter(r=>{let o=r.getAttribute("data-tabindex")||"";return vv(r)||r.hasAttribute("data-tabindex")&&!o.startsWith("-")}),a=e.getAttribute("tabindex");n.length===0?a!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(a!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function QL(e){let{context:t,children:n,disabled:a=!1,initialFocus:r=!0,returnFocus:o=!0,restoreFocus:s=!1,modal:i=!0,closeOnFocusOut:l=!0,openInteractionType:u="",nextFocusableElement:c,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:m,getInsideElements:p}=e,h="rootStore"in t?t.rootStore:t,x=h.useState("open"),b=h.useState("domReferenceElement"),g=h.useState("floatingElement"),{events:y,dataRef:v}=h.context,C=X(()=>v.current.floatingContext?.nodeId),S=r===!1,_=hh(b)&&S,w=vt(r),R=vt(o),$=vt(u),j=vt(x),M=Wr(m),I=YL(),N=pa.useRef(!1),E=pa.useRef(!1),B=pa.useRef(!1),z=pa.useRef(null),P=pa.useRef(""),D=pa.useRef(""),L=pa.useRef(null),V=pa.useRef(null),q=jr(L,f,I?.beforeInsideRef),G=jr(V,I?.afterInsideRef),T=nt(),F=nt(),O=Ia(),Q=I!=null,W=_c(g),ee=X((J=W)=>J?Ch(J):[]),le=X(()=>p?.().filter(J=>J!=null)??[]);pa.useEffect(()=>{if(a||!i)return;function J(pe){pe.key==="Tab"&&de(W,Wt(Se(W)))&&ee().length===0&&!_&&Xa(pe)}let te=Se(W);return ke(te,"keydown",J)},[a,W,i,_,ee]),pa.useEffect(()=>{if(a||!x)return;let J=Se(W);function te(){B.current=!1}function pe(je){let ge=ct(je),$e=le(),ue=de(g,ge)||de(b,ge)||de(I?.portalNode,ge)||$e.some(Le=>Le===ge||de(Le,ge));B.current=!ue,D.current=je.pointerType||"keyboard",ge?.closest(`[${P3}]`)&&(E.current=!0,F.start(0,()=>{E.current=!1}))}function be(){D.current="keyboard"}return fa(ke(J,"pointerdown",pe,!0),ke(J,"pointerup",te,!0),ke(J,"pointercancel",te,!0),ke(J,"keydown",be,!0),te)},[a,g,b,W,x,I,F,le]),pa.useEffect(()=>{if(a||!l)return;let J=Se(W);function te(){E.current=!0,F.start(0,()=>{E.current=!1})}function pe($e){let ue=ct($e);vv(ue)&&(z.current=ue)}function be($e){let ue=$e.relatedTarget,Le=$e.currentTarget,Oe=ct($e);i&&ue==null&&Oe!=null&&de(g,Oe)&&V3(Oe),queueMicrotask(()=>{let Ae=C(),gt=h.context.triggerElements,re=le(),fe=ue?.hasAttribute(ti("focus-guard"))&&[L.current,V.current,I?.beforeInsideRef.current,I?.afterInsideRef.current,I?.beforeOutsideRef.current,I?.afterOutsideRef.current,ho(d),ho(c)].includes(ue),Y=!(de(b,ue)||de(g,ue)||de(ue,g)||de(I?.portalNode,ue)||re.some(H=>H===ue||de(H,ue))||gt.hasMatchingElement(H=>de(H,ue))||fe||M&&(Gr(M.nodesRef.current,Ae).find(H=>de(H.context?.elements.floating,ue)||de(H.context?.elements.domReference,ue))||qL(M.nodesRef.current,Ae).find(H=>[H.context?.elements.floating,_c(H.context?.elements.floating)].includes(ue)||H.context?.elements.domReference===ue)));if(Le===b&&W&&q3(W),s&&Le!==b&&!kc(Oe)&&Wt(J)===J.body){if(He(W)&&(W.focus(),s==="popup")){O.request(()=>{W.focus()});return}let H=ee(),ie=z.current,Be=(ie&&H.includes(ie)?ie:null)||H[H.length-1]||W;He(Be)&&Be.focus()}if(v.current.insideReactTree){v.current.insideReactTree=!1;return}(_||!i)&&ue&&Y&&!E.current&&(_||ue!==z3())&&(N.current=!0,h.setOpen(!1,ve(se.focusOut,$e)))})}function je(){B.current||(v.current.insideReactTree=!0,T.start(0,()=>{v.current.insideReactTree=!1}))}let ge=He(b)?b:null;if(!(!g&&!ge))return fa(ge&&ke(ge,"focusout",be),ge&&ke(ge,"pointerdown",te),g&&ke(g,"focusin",pe),g&&ke(g,"focusout",be),g&&I&&ke(g,"focusout",je,!0))},[a,b,g,W,i,M,I,h,l,s,ee,_,C,v,T,F,O,c,d,le]),pa.useEffect(()=>{if(a||!g||!x)return;let J=Array.from(I?.portalNode?.querySelectorAll(`[${ti("portal")}]`)||[]),pe=(M?qL(M.nodesRef.current,C()):[]).find(Le=>hh(Le.context?.elements.domReference||null))?.context?.elements.domReference,je=[...[g,...J,L.current,V.current,I?.beforeOutsideRef.current,I?.afterOutsideRef.current,...le()],pe,ho(d),ho(c),_?b:null].filter(Le=>Le!=null),ge=WL(je,{ariaHidden:i||_,mark:!1}),$e=[g,...J].filter(Le=>Le!=null),ue=WL($e);return()=>{ue(),ge()}},[x,a,b,g,i,I,_,M,C,c,d,le]),U(()=>{if(!x||a||!He(W))return;P.current="",D.current="";let J=Se(W),te=Wt(J);queueMicrotask(()=>{let pe=w.current,be=typeof pe=="function"?pe($.current||""):pe;if(be===void 0||be===!1||de(W,te))return;let ge=null,$e=()=>(ge==null&&(ge=ee(W)),ge[0]||W),ue;be===!0||be===null?ue=$e():ue=ho(be),ue=ue||$e();let Le=de(W,Wt(J));Vf(ue,{preventScroll:ue===W,shouldFocus(){if(!j.current)return!1;if(Le)return!0;let Oe=Wt(J);return!(Oe!==ue&&de(W,Oe))}})})},[a,x,W,ee,w,$,j]),U(()=>{if(a||!W)return;let J=Se(W),te=Wt(J),pe=$.current==null;V3(te);function be(ge){if(ge.open||(P.current=Xee(ge.nativeEvent,D.current)),ge.reason===se.triggerHover&&ge.nativeEvent.type==="mouseleave"&&(N.current=!0),ge.reason===se.outsidePress)if(ge.nested)N.current=!1;else if(Il(ge.nativeEvent)||Df(ge.nativeEvent))N.current=!1;else{let $e=!1;Se(W).createElement("div").focus({get preventScroll(){return $e=!0,!1}}),$e?N.current=!1:N.current=!0}}y.on("openchange",be);function je(ge){let $e=R.current,ue=typeof $e=="function"?$e(ge):$e;if(ue===void 0||ue===!1)return null;ue===null&&(ue=!0);let Le=b?.isConnected?b:null,Oe=te?.isConnected&&rn(te)!=="body"?te:null,Ae=pe?Oe||Le:Le||Oe;return Ae||(Ae=z3()||null),typeof ue=="boolean"?Ae:ho(ue)||Ae||null}return()=>{y.off("openchange",be);let ge=Wt(J),$e=le(),ue=de(g,ge)||$e.some(gt=>gt===ge||de(gt,ge))||M&&Gr(M.nodesRef.current,C(),!1).some(gt=>de(gt.context?.elements.floating,ge)),Le=R.current,Oe=P.current,Ae=je(Oe);queueMicrotask(()=>{let gt=Yee(Ae),re=typeof Le!="boolean";if(Le&&!N.current&&He(gt)&&(!(!re&>!==ge&&ge!==J.body)||ue)){let fe={preventScroll:!0};Oe==="keyboard"&&(fe.focusVisible=!0),gt.focus(fe)}N.current=!1})}},[a,g,W,R,$,y,M,b,C,le]),U(()=>{if(!it.engine.webkit||x||!g)return;let J=Wt(Se(g));!He(J)||!wc(J)||de(g,J)&&J.blur()},[x,g]),U(()=>{if(!(a||!I))return I.setFocusManagerState({modal:i,closeOnFocusOut:l,open:x,onOpenChange:h.setOpen,domReference:b}),()=>{I.setFocusManagerState(null)}},[a,I,i,x,h,l,b]),U(()=>{if(!(a||!W))return q3(W),()=>{queueMicrotask(KL)}},[a,W]);let ce=!a&&(i?!_:!0)&&(Q||i);return(0,_h.jsxs)(pa.Fragment,{children:[ce&&(0,_h.jsx)(Bf,{"data-type":"inside",ref:q,onFocus:J=>{if(i){let te=ee();Vf(te[te.length-1])}else I?.portalNode&&(N.current=!1,$c(J,I.portalNode)?Cv(b)?.focus():ho(d??I.beforeOutsideRef)?.focus())}}),n,ce&&(0,_h.jsx)(Bf,{"data-type":"inside",ref:G,onFocus:J=>{i?Vf(ee()[0]):I?.portalNode&&(l&&(N.current=!0),$c(J,I.portalNode)?wv(b)?.focus():ho(c??I.afterOutsideRef)?.focus())}})]})}var Sh=k(A(),1);function JL(e,t={}){let{enabled:n=!0,event:a="click",toggle:r=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:i=0,reason:l=se.triggerPress}=t,u="rootStore"in e?e.rootStore:e,c=u.context.dataRef,d=Sh.useRef(void 0),f=Ia(),m=nt(),p=Sh.useMemo(()=>{function h(b,g,y,v){let C=ve(l,g,y);b&&v==="touch"&&i>0?m.start(i,()=>{u.setOpen(!0,C)}):u.setOpen(b,C)}function x(b,g,y){let v=c.current.openEvent,C=u.select("domReferenceElement")!==g;return b&&C||!b||!r?!0:v&&s?!y(v.type):!1}return{onPointerDown(b){d.current=hr(b.pointerType,!0)&&Df(b.nativeEvent)?"virtual":b.pointerType},onMouseDown(b){let g=d.current,y=b.nativeEvent,v=u.select("open");if(b.button!==0||a==="click"||hr(g,!0)&&o)return;let C=x(v,b.currentTarget,w=>w==="click"||w==="mousedown"),S=ct(y);if(wc(S)){h(C,y,S,g);return}let _=b.currentTarget;f.request(()=>{h(C,y,_,g)})},onClick(b){if(a==="mousedown-only")return;let g=d.current;if(a==="mousedown"&&g){d.current=void 0;return}if(hr(g,!0)&&o)return;let y=u.select("open"),v=x(y,b.currentTarget,C=>C==="click"||C==="mousedown"||C==="keydown"||C==="keyup");h(v,b.nativeEvent,b.currentTarget,g)},onKeyDown(){d.current=void 0}}},[c,a,o,l,u,s,r,f,m,i]);return Sh.useMemo(()=>n?{reference:p}:Qe,[n,p])}var Ka=k(A(),1);function Zee(e,t){let n=null,a=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){let o=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},s=t.axis==="x"||t.axis==="both",i=t.axis==="y"||t.axis==="both",l=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",u=o.width,c=o.height,d=o.x,f=o.y;return n==null&&t.x&&s&&(n=o.x-t.x),a==null&&t.y&&i&&(a=o.y-t.y),d-=n||0,f-=a||0,u=0,c=0,!r||l?(u=t.axis==="y"?o.width:0,c=t.axis==="x"?o.height:0,d=s&&t.x!=null?t.x:d,f=i&&t.y!=null?t.y:f):r&&!l&&(c=t.axis==="x"?o.height:c,u=t.axis==="y"?o.width:u),r=!0,{width:u,height:c,x:d,y:f,top:f,right:d+u,bottom:f+c,left:d}}}}function H3(e){return e!=null&&e.clientX!=null}function eR(e,t={}){let{enabled:n=!0,axis:a="both"}=t,r="rootStore"in e?e.rootStore:e,o=r.useState("open"),s=r.useState("floatingElement"),i=r.useState("domReferenceElement"),l=r.context.dataRef,u=Ka.useRef(!1),c=Ka.useRef(null),[d,f]=Ka.useState(),[m,p]=Ka.useState([]),h=X(v=>{r.set("positionReference",v)}),x=X((v,C,S)=>{u.current||l.current.openEvent&&!H3(l.current.openEvent)||r.set("positionReference",Zee(S??i,{x:v,y:C,axis:a,dataRef:l,pointerType:d}))}),b=X(v=>{o?c.current||(x(v.clientX,v.clientY,v.currentTarget),p([])):x(v.clientX,v.clientY,v.currentTarget)}),g=hr(d)?s:o;Ka.useEffect(()=>{if(!n){h(i);return}if(!g)return;function v(){c.current?.(),c.current=null}let C=qe(s);function S(_){let w=ct(_);de(s,w)?v():x(_.clientX,_.clientY)}return!l.current.openEvent||H3(l.current.openEvent)?c.current=ke(C,"mousemove",S):h(i),v},[g,n,s,l,i,r,x,h,m]),Ka.useEffect(()=>()=>{r.set("positionReference",null)},[r]),Ka.useEffect(()=>{n&&!s&&(u.current=!1)},[n,s]),Ka.useEffect(()=>{!n&&o&&(u.current=!0)},[n,o]);let y=Ka.useMemo(()=>{function v(C){f(C.pointerType)}return{onPointerDown:v,onPointerEnter:v,onMouseMove:b,onMouseEnter:b}},[b]);return Ka.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}var ja=k(A(),1);function Kee(){return!1}function Qee(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function kh(e,t={}){let{enabled:n=!0,escapeKey:a=!0,outsidePress:r=!0,outsidePressEvent:o="sloppy",referencePress:s=Kee,bubbles:i,externalTree:l}=t,u="rootStore"in e?e.rootStore:e,c=u.useState("open"),d=u.useState("floatingElement"),{dataRef:f,events:m}=u.context,p=Wr(l),h=X(typeof r=="function"?r:()=>!1),x=typeof r=="function"?h:r,b=x!==!1,g=X(()=>o),{escapeKey:y,outsidePress:v}=Qee(i),C=ja.useRef(!1),S=ja.useRef(!1),_=ja.useRef(!1),w=ja.useRef(!1),R=ja.useRef(!1),$=ja.useRef(""),j=ja.useRef(null),M=nt(),I=nt(),N=X(()=>{I.clear(),f.current.insideReactTree=!1}),E=X(T=>{let F=f.current.floatingContext?.nodeId;return(p?Gr(p.nodesRef.current,F):[]).some(Q=>Q.context?.open&&!Q.context.dataRef.current[T])}),B=X(T=>dv(T,u.select("floatingElement"))||dv(T,u.select("domReferenceElement"))),z=X(T=>{s()&&u.setOpen(!1,ve(se.triggerPress,T.nativeEvent))}),P=X(T=>{if(!c||!n||!a||T.key!=="Escape"||R.current||!y&&E("__escapeKeyBubbles"))return;let F=QF(T)?T.nativeEvent:T,O=ve(se.escapeKey,F);u.setOpen(!1,O),O.isCanceled||T.preventDefault(),!y&&!O.isPropagationAllowed&&T.stopPropagation()}),D=X(()=>{f.current.insideReactTree=!0,I.start(0,N)}),L=X(T=>{if(!c||!n||T.button!==0)return;let F=ct(T.nativeEvent);de(u.select("floatingElement"),F)&&(C.current||(C.current=!0,S.current=!1))}),V=X(T=>{!c||!n||(T.defaultPrevented||T.nativeEvent.defaultPrevented)&&C.current&&(S.current=!0)});ja.useEffect(()=>{function T(F){F.open||(w.current=!1)}return m.on("openchange",T),()=>{m.off("openchange",T)}},[m]),ja.useEffect(()=>{if(!c||!n)return c||(w.current=!1),N;f.current.__escapeKeyBubbles=y,f.current.__outsidePressBubbles=v;let T=new da,F=new da,O=Se(d);function Q(){T.clear(),R.current=!0}function W(){T.start(it.engine.webkit?5:0,()=>{R.current=!1})}function ee(){_.current=!0,F.start(0,()=>{_.current=!1})}function le(){C.current=!1,S.current=!1}function ce(){let Y=$.current,H=Y==="pen"||!Y?"mouse":Y,ie=g(),Be=typeof ie=="function"?ie():ie;return typeof Be=="string"?Be:Be[H]}function J(Y){let H=ce();return H==="intentional"&&Y.type!=="click"||H==="sloppy"&&Y.type==="click"}function te(Y){let H=f.current.floatingContext?.nodeId,ie=p&&Gr(p.nodesRef.current,H).some(Be=>dv(Y,Be.context?.elements.floating));return B(Y)||ie}function pe(Y){if(J(Y)){Y.type!=="click"&&!B(Y)&&(F.clear(),_.current=!1),N();return}if(f.current.insideReactTree){N();return}let H=ct(Y),ie=`[${ti("inert")}]`,Be=Ie(H)?H.getRootNode():null,Ht=Array.from((Ko(Be)?Be:Se(u.select("floatingElement"))).querySelectorAll(ie)),fn=u.context.triggerElements;if(H&&(fn.hasElement(H)||fn.hasMatchingElement(jt=>de(jt,H))))return;let Nt=Ie(H)?H:null;for(;Nt&&!Dr(Nt);){let jt=pr(Nt);if(Dr(jt)||!Ie(jt))break;Nt=jt}if(!(Ht.length&&Ie(H)&&!o3(H)&&!de(H,u.select("floatingElement"))&&Ht.every(jt=>!de(Nt,jt)))){if(He(H)&&!("touches"in Y)){let jt=Dr(H),zn=jn(H),qn=/auto|scroll/,mn=jt||qn.test(zn.overflowX),na=jt||qn.test(zn.overflowY),Ta=mn&&H.clientWidth>0&&H.scrollWidth>H.clientWidth,xr=na&&H.clientHeight>0&&H.scrollHeight>H.clientHeight,En=zn.direction==="rtl",Yt=xr&&(En?Y.offsetX<=H.offsetWidth-H.clientWidth:Y.offsetX>H.clientWidth),Te=Ta&&Y.offsetY>H.clientHeight;if(Yt||Te)return}if(!te(Y)){if(ce()==="intentional"){if(Y.detail!==0&&!Il(Y)&&!w.current)return;if(_.current){F.clear(),_.current=!1;return}}typeof x=="function"&&!x(Y)||E("__outsidePressBubbles")||(u.setOpen(!1,ve(se.outsidePress,Y)),N())}}}function be(Y){ce()!=="sloppy"||Y.pointerType==="touch"||!u.select("open")||!n||B(Y)||pe(Y)}function je(Y){if(ce()!=="sloppy"||!u.select("open")||!n||B(Y))return;let H=Y.touches[0];H&&(j.current={startTime:Date.now(),startX:H.clientX,startY:H.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},M.start(1e3,()=>{j.current&&(j.current.dismissOnTouchEnd=!1,j.current.dismissOnMouseDown=!1)}))}function ge(Y,H){let ie=ct(Y);if(!ie)return;let Be=ke(ie,Y.type,()=>{H(Y),Be()})}function $e(Y){$.current="touch",ge(Y,je)}function ue(Y){M.clear(),Y.type==="pointerdown"&&(Y.button===0&&(w.current=!0),$.current=Y.pointerType),!(Y.type==="mousedown"&&j.current&&!j.current.dismissOnMouseDown)&&ge(Y,H=>{H.type==="pointerdown"?be(H):pe(H)})}function Le(Y){if(Y.type==="pointercancel"&&(w.current=!1),!C.current)return;let H=S.current;if(le(),ce()==="intentional"){if(Y.type==="pointercancel"){H&&ee();return}if(!te(Y)){if(H){ee();return}typeof x=="function"&&!x(Y)||(F.clear(),_.current=!0,N())}}}function Oe(Y){if(ce()!=="sloppy"||!j.current||B(Y))return;let H=Y.touches[0];if(!H)return;let ie=Math.abs(H.clientX-j.current.startX),Be=Math.abs(H.clientY-j.current.startY),Ht=Math.sqrt(ie*ie+Be*Be);Ht>5&&(j.current.dismissOnTouchEnd=!0),Ht>10&&(pe(Y),M.clear(),j.current=null)}function Ae(Y){ge(Y,Oe)}function gt(Y){ce()!=="sloppy"||!j.current||B(Y)||(j.current.dismissOnTouchEnd&&pe(Y),M.clear(),j.current=null)}function re(Y){ge(Y,gt)}let fe=fa(a&&fa(ke(O,"keydown",P),ke(O,"compositionstart",Q),ke(O,"compositionend",W)),b&&fa(ke(O,"click",ue,!0),ke(O,"pointerdown",ue,!0),ke(O,"pointerup",Le,!0),ke(O,"pointercancel",Le,!0),ke(O,"mousedown",ue,!0),ke(O,"mouseup",Le,!0),ke(O,"touchstart",$e,{capture:!0,passive:!0}),ke(O,"touchmove",Ae,{capture:!0,passive:!0}),ke(O,"touchend",re,{capture:!0,passive:!0})));return()=>{fe(),T.clear(),F.clear(),le(),_.current=!1,N()}},[f,d,a,b,x,c,n,y,v,P,N,g,E,B,p,u,M]);let q=ja.useMemo(()=>({onKeyDown:P,onPointerDown:z,onClick:z}),[P,z]),G=ja.useMemo(()=>({onKeyDown:P,onPointerDown:V,onMouseDown:V,onClickCapture:D,onMouseDownCapture(T){D(),L(T)},onPointerDownCapture(T){D(),L(T)},onMouseUpCapture:D,onTouchEndCapture:D,onTouchMoveCapture:D}),[P,D,L,V]);return ja.useMemo(()=>n?{reference:q,floating:G,trigger:q}:{},[n,q,G])}var ha=k(A(),1);function U3(e,t,n){let{reference:a,floating:r}=e,o=Za(t),s=vh(t),i=xh(s),l=ma(t),u=o==="y",c=a.x+a.width/2-r.width/2,d=a.y+a.height/2-r.height/2,f=a[i]/2-r[i]/2,m;switch(l){case"top":m={x:c,y:a.y-r.height};break;case"bottom":m={x:c,y:a.y+a.height};break;case"right":m={x:a.x+a.width,y:d};break;case"left":m={x:a.x-r.width,y:d};break;default:m={x:a.x,y:a.y}}let p=Hr(t);return p&&(m[s]+=f*(p==="end"?1:-1)*(n&&u?-1:1)),m}async function G3(e,t){var n;t===void 0&&(t={});let{x:a,y:r,platform:o,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=ns(t,e),p=xv(m),x=i[f?d==="floating"?"reference":"floating":d],b=Js(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(x)))==null||n?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(i.floating)),boundary:u,rootBoundary:c,strategy:l})),g=d==="floating"?{x:a,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(i.floating)),v=await(o.isElement==null?void 0:o.isElement(y))&&await(o.getScale==null?void 0:o.getScale(y))||{x:1,y:1},C=Js(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:y,strategy:l}):g);return{top:(b.top-C.top+p.top)/v.y,bottom:(C.bottom-b.bottom+p.bottom)/v.y,left:(b.left-C.left+p.left)/v.x,right:(C.right-b.right+p.right)/v.x}}var Jee=50,W3=async(e,t,n)=>{let{placement:a="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,i=s.detectOverflow?s:{...s,detectOverflow:G3},l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=U3(u,a,l),f=a,m=0,p={};for(let h=0;h<o.length;h++){let x=o[h];if(!x)continue;let{name:b,fn:g}=x,{x:y,y:v,data:C,reset:S}=await g({x:c,y:d,initialPlacement:a,placement:f,strategy:r,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});c=y??c,d=v??d,p[b]={...p[b],...C},S&&m<Jee&&(m++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:c,y:d}=U3(u,f,l)),h=-1)}return{x:c,y:d,placement:f,strategy:r,middlewareData:p}};var X3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;let{placement:r,middlewareData:o,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...x}=ns(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};let b=ma(r),g=Za(i),y=ma(i)===i,v=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=f||(y||!h?[bh(i)]:h3(i)),S=p!=="none";!f&&S&&C.push(...b3(i,h,p,v));let _=[i,...C],w=await l.detectOverflow(t,x),R=[],$=((a=o.flip)==null?void 0:a.overflows)||[];if(c&&R.push(w[b]),d){let N=g3(r,s,v);R.push(w[N[0]],w[N[1]])}if($=[...$,{placement:r,overflows:R}],!R.every(N=>N<=0)){var j,M;let N=(((j=o.flip)==null?void 0:j.index)||0)+1,E=_[N];if(E&&(!(d==="alignment"?g!==Za(E):!1)||$.every(P=>Za(P.placement)===g?P.overflows[0]>0:!0)))return{data:{index:N,overflows:$},reset:{placement:E}};let B=(M=$.filter(z=>z.overflows[0]<=0).sort((z,P)=>z.overflows[1]-P.overflows[1])[0])==null?void 0:M.placement;if(!B)switch(m){case"bestFit":{var I;let z=(I=$.filter(P=>{if(S){let D=Za(P.placement);return D===g||D==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(D=>D>0).reduce((D,L)=>D+L,0)]).sort((P,D)=>P[1]-D[1])[0])==null?void 0:I[0];z&&(B=z);break}case"initialPlacement":B=i;break}if(r!==B)return{reset:{placement:B}}}return{}}}};var Y3=new Set(["left","top"]);async function ete(e,t){let{placement:n,platform:a,elements:r}=e,o=await(a.isRTL==null?void 0:a.isRTL(r.floating)),s=ma(n),i=Hr(n),l=Za(n)==="y",u=Y3.has(s)?-1:1,c=o&&l?-1:1,d=ns(t,e),{mainAxis:f,crossAxis:m,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof p=="number"&&(m=i==="end"?p*-1:p),l?{x:m*c,y:f*u}:{x:f*u,y:m*c}}var Z3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;let{x:r,y:o,placement:s,middlewareData:i}=t,l=await ete(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(a=i.arrow)!=null&&a.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:s}}}}},K3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:a,placement:r,platform:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:g=>{let{x:y,y:v}=g;return{x:y,y:v}}},...u}=ns(e,t),c={x:n,y:a},d=await o.detectOverflow(t,u),f=Za(r),m=yv(f),p=c[m],h=c[f],x=(g,y)=>bv(y+d[g==="y"?"top":"left"],y,y-d[g==="y"?"bottom":"right"]);s&&(p=x(m,p)),i&&(h=x(f,h));let b=l.fn({...t,[m]:p,[f]:h});return{...b,data:{x:b.x-n,y:b.y-a,enabled:{[m]:s,[f]:i}}}}}},Q3=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,a;let{x:r,y:o,placement:s,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:c=!0,crossAxis:d=!0}=ns(e,t),f={x:r,y:o},m=Za(s),p=yv(m),h=f[p],x=f[m],b=ns(u,t),g=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:(n=b.mainAxis)!=null?n:0,crossAxis:(a=b.crossAxis)!=null?a:0};if(c){let C=p==="y"?"height":"width",S=i.reference[p]-i.floating[C]+g.mainAxis,_=i.reference[p]+i.reference[C]-g.mainAxis;h<S?h=S:h>_&&(h=_)}if(d){var y,v;let C=p==="y"?"width":"height",S=Y3.has(ma(s)),_=i.reference[m]-i.floating[C]+(S&&((y=l.offset)==null?void 0:y[m])||0)+(S?0:g.crossAxis),w=i.reference[m]+i.reference[C]+(S?0:((v=l.offset)==null?void 0:v[m])||0)-(S?g.crossAxis:0);x<_?x=_:x>w&&(x=w)}return{[p]:h,[m]:x}}}},J3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:n,rects:a,platform:r,elements:o}=t,{apply:s=()=>{},...i}=ns(e,t),l=await r.detectOverflow(t,i),u=ma(n),c=Hr(n),d=Za(n)==="y",{width:f,height:m}=a.floating,p,h;u==="top"||u==="bottom"?(p=u,h=c===(await(r.isRTL==null?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(h=u,p=c==="end"?"top":"bottom");let x=m-l.top-l.bottom,b=f-l.left-l.right,g=Tl(m-l[p],x),y=Tl(f-l[h],b),v=t.middlewareData.shift,C=!v,S=g,_=y;v!=null&&v.enabled.x&&(_=b),v!=null&&v.enabled.y&&(S=x),C&&!c&&(d?_=f-2*go(l.left,l.right):S=m-2*go(l.top,l.bottom)),await s({...t,availableWidth:_,availableHeight:S});let w=await r.getDimensions(o.floating);return f!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function nV(e){let t=jn(e),n=parseFloat(t.width)||0,a=parseFloat(t.height)||0,r=He(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:a,i=El(n)!==o||El(a)!==s;return i&&(n=o,a=s),{width:n,height:a,$:i}}function nR(e){return Ie(e)?e:e.contextElement}function zf(e){let t=nR(e);if(!He(t))return ts(1);let n=t.getBoundingClientRect(),{width:a,height:r,$:o}=nV(t),s=(o?El(n.width):n.width)/a,i=(o?El(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var tte=ts(0);function aV(e){let t=qe(e);return!c0()||!t.visualViewport?tte:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nte(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===qe(e)}function Ic(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);let r=e.getBoundingClientRect(),o=nR(e),s=ts(1);t&&(a?Ie(a)&&(s=zf(a)):s=zf(e));let i=nte(o,n,a)?aV(o):ts(0),l=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,c=r.width/s.x,d=r.height/s.y;if(o&&a){let f=qe(o),m=Ie(a)?qe(a):a,p=f,h=d0(p);for(;h&&m!==p;){let x=zf(h),b=h.getBoundingClientRect(),g=jn(h),y=b.left+(h.clientLeft+parseFloat(g.paddingLeft))*x.x,v=b.top+(h.clientTop+parseFloat(g.paddingTop))*x.y;l*=x.x,u*=x.y,c*=x.x,d*=x.y,l+=y,u+=v,p=qe(h),h=d0(p)}}return Js({width:c,height:d,x:l,y:u})}function $v(e,t){let n=Og(e).scrollLeft;return t?t.left+n:Ic(Qo(e)).left+n}function rV(e,t){let n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-$v(e,n),r=n.top+t.scrollTop;return{x:a,y:r}}function ate(e){let{elements:t,rect:n,offsetParent:a,strategy:r}=e,o=r==="fixed",s=Qo(a),i=t?Ng(t.floating):!1;if(a===s||i&&o)return n;let l={scrollLeft:0,scrollTop:0},u=ts(1),c=ts(0),d=He(a);if((d||!o)&&((rn(a)!=="body"||sc(s))&&(l=Og(a)),d)){let m=Ic(a);u=zf(a),c.x=m.x+a.clientLeft,c.y=m.y+a.clientTop}let f=s&&!d&&!o?rV(s,l):ts(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function rte(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ote(e){let t=Og(e),n=e.ownerDocument.body,a=go(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=go(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),o=-t.scrollLeft+$v(e),s=-t.scrollTop;return jn(n).direction==="rtl"&&(o+=go(e.clientWidth,n.clientWidth)-a),{width:a,height:r,x:o,y:s}}var ste=25;function ite(e,t,n){n===void 0&&(n="viewport");let a=n==="layoutViewport",r=qe(e),o=Qo(e),s=r.visualViewport,i=o.clientWidth,l=o.clientHeight,u=0,c=0;if(s){let f=!c0()||t==="fixed";a?f||(u=-s.offsetLeft,c=-s.offsetTop):(i=s.width,l=s.height,f&&(u=s.offsetLeft,c=s.offsetTop))}if($v(o)<=0){let f=o.ownerDocument,m=f.body,p=getComputedStyle(m),h=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,x=Math.abs(o.clientWidth-m.clientWidth-h),b=getComputedStyle(o).scrollbarGutter==="stable both-edges"?x/2:x;b<=ste&&(i-=b)}return{width:i,height:l,x:u,y:c}}function lte(e,t){let n=Ic(e,!0,t==="fixed"),a=n.top+e.clientTop,r=n.left+e.clientLeft,o=zf(e),s=e.clientWidth*o.x,i=e.clientHeight*o.y,l=r*o.x,u=a*o.y;return{width:s,height:i,x:l,y:u}}function eV(e,t,n){let a;if(t==="viewport"||t==="layoutViewport")a=ite(e,n,t);else if(t==="document")a=ote(Qo(e));else if(Ie(t))a=lte(t,n);else{let r=aV(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Js(a)}function ute(e,t){let n=t.get(e);if(n)return n;let a=bl(e,[],!1).filter(i=>Ie(i)&&rn(i)!=="body"),r=null,o=jn(e).position==="fixed",s=o?pr(e):e;for(;Ie(s)&&!Dr(s);){let i=jn(s),l=u0(s),u=r?r.position:o?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&i.position==="static")?a=a.filter(d=>d!==s):r=i,s=pr(s)}return t.set(e,a),a}function cte(e){let{element:t,boundary:n,rootBoundary:a,strategy:r}=e,s=[...n==="clippingAncestors"?Ng(t)?[]:ute(t,this._c):[].concat(n),a],i=eV(t,s[0],r),l=i.top,u=i.right,c=i.bottom,d=i.left;for(let f=1;f<s.length;f++){let m=eV(t,s[f],r);l=go(m.top,l),u=Tl(m.right,u),c=Tl(m.bottom,c),d=go(m.left,d)}return{width:u-d,height:c-l,x:d,y:l}}function dte(e){let{width:t,height:n}=nV(e);return{width:t,height:n}}function fte(e,t,n){let a=He(t),r=Qo(t),o=n==="fixed",s=Ic(e,!0,o,t),i={scrollLeft:0,scrollTop:0},l=ts(0);if((a||!o)&&((rn(t)!=="body"||sc(r))&&(i=Og(t)),a)){let f=Ic(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!a&&r&&(l.x=$v(r));let u=r&&!a&&!o?rV(r,i):ts(0),c=s.left+i.scrollLeft-l.x-u.x,d=s.top+i.scrollTop-l.y-u.y;return{x:c,y:d,width:s.width,height:s.height}}function tR(e){return jn(e).position==="static"}function tV(e,t){if(!He(e)||jn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qo(e)===n&&(n=n.ownerDocument.body),n}function oV(e,t){let n=qe(e);if(Ng(e))return n;if(!He(e)){let r=pr(e);for(;r&&!Dr(r);){if(Ie(r)&&!tR(r))return r;r=pr(r)}return n}let a=tV(e,t);for(;a&&qO(a)&&tR(a);)a=tV(a,t);return a&&Dr(a)&&tR(a)&&!u0(a)?n:a||HO(e)||n}var mte=async function(e){let t=this.getOffsetParent||oV,n=this.getDimensions,a=await n(e.floating);return{reference:fte(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function pte(e){return jn(e).direction==="rtl"}var $h={convertOffsetParentRelativeRectToViewportRelativeRect:ate,getDocumentElement:Qo,getClippingRect:cte,getOffsetParent:oV,getElementRects:mte,getClientRects:rte,getDimensions:dte,getScale:zf,isElement:Ie,isRTL:pte};function sV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gte(e,t,n){let a=null,r,o=Qo(e);function s(){var c;clearTimeout(r),(c=a)==null||c.disconnect(),a=null}function i(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();let f=e.getBoundingClientRect(),{left:m,top:p,width:h,height:x}=f;if(c||t(),!h||!x)return;let b=yh(p),g=yh(o.clientWidth-(m+h)),y=yh(o.clientHeight-(p+x)),v=yh(m),S={rootMargin:-b+"px "+-g+"px "+-y+"px "+-v+"px",threshold:go(0,Tl(1,d))||1},_=!0;function w(R){let $=R[0].intersectionRatio;if(!sV(f,e.getBoundingClientRect()))return i();if($!==d){if(!_)return i();$?i(!1,$):r=setTimeout(()=>{i(!1,1e-7)},1e3)}_=!1}try{a=new IntersectionObserver(w,{...S,root:o.ownerDocument})}catch{a=new IntersectionObserver(w,S)}a.observe(e)}let l=qe(e),u=()=>i(n);return l.addEventListener("resize",u),i(!0),()=>{l.removeEventListener("resize",u),s()}}function Lh(e,t,n,a){a===void 0&&(a={});let{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=a,u=nR(e),c=r||o?[...u?bl(u):[],...t?bl(t):[]]:[];c.forEach(b=>{r&&b.addEventListener("scroll",n),o&&b.addEventListener("resize",n)});let d=u&&i?gte(u,n,o):null,f=-1,m=null;s&&(m=new ResizeObserver(b=>{let[g]=b;g&&g.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),n()}),u&&!l&&m.observe(u),t&&m.observe(t));let p,h=l?Ic(e):null;l&&x();function x(){let b=Ic(e);h&&!sV(h,b)&&n(),h=b,p=requestAnimationFrame(x)}return n(),()=>{var b;c.forEach(g=>{r&&g.removeEventListener("scroll",n),o&&g.removeEventListener("resize",n)}),d?.(),(b=m)==null||b.disconnect(),m=null,l&&cancelAnimationFrame(p)}}var iV=Z3;var lV=K3,uV=X3,cV=J3;var dV=Q3,Lv=(e,t,n)=>{let a=new Map,r=n??{},o={...$h,...r.platform,_c:a};return W3(e,t,{...r,platform:o})};var vn=k(A(),1),mV=k(A(),1),pV=k(wo(),1),bte=typeof document<"u",yte=function(){},Rv=bte?mV.useLayoutEffect:yte;function Iv(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,a,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!Iv(e[a],t[a]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,r[a]))return!1;for(a=n;a--!==0;){let o=r[a];if(!(o==="_owner"&&e.$$typeof)&&!Iv(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function gV(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fV(e,t){let n=gV(e);return Math.round(t*n)/n}function aR(e){let t=vn.useRef(e);return Rv(()=>{t.current=e}),t}function hV(e){e===void 0&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:r,elements:{reference:o,floating:s}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[c,d]=vn.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=vn.useState(a);Iv(f,a)||m(a);let[p,h]=vn.useState(null),[x,b]=vn.useState(null),g=vn.useCallback(P=>{P!==S.current&&(S.current=P,h(P))},[]),y=vn.useCallback(P=>{P!==_.current&&(_.current=P,b(P))},[]),v=o||p,C=s||x,S=vn.useRef(null),_=vn.useRef(null),w=vn.useRef(c),R=l!=null,$=aR(l),j=aR(r),M=aR(u),I=vn.useCallback(()=>{if(!S.current||!_.current)return;let P={placement:t,strategy:n,middleware:f};j.current&&(P.platform=j.current),Lv(S.current,_.current,P).then(D=>{let L={...D,isPositioned:M.current!==!1};N.current&&!Iv(w.current,L)&&(w.current=L,pV.flushSync(()=>{d(L)}))})},[f,t,n,j,M]);Rv(()=>{u===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[u]);let N=vn.useRef(!1);Rv(()=>(N.current=!0,()=>{N.current=!1}),[]),Rv(()=>{if(v&&(S.current=v),C&&(_.current=C),v&&C){if($.current)return $.current(v,C,I);I()}},[v,C,I,$,R]);let E=vn.useMemo(()=>({reference:S,floating:_,setReference:g,setFloating:y}),[g,y]),B=vn.useMemo(()=>({reference:v,floating:C}),[v,C]),z=vn.useMemo(()=>{let P={position:n,left:0,top:0};if(!B.floating)return P;let D=fV(B.floating,c.x),L=fV(B.floating,c.y);return i?{...P,transform:"translate("+D+"px, "+L+"px)",...gV(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:L}},[n,i,B.floating,c.x,c.y]);return vn.useMemo(()=>({...c,update:I,refs:E,elements:B,floatingStyles:z}),[c,I,E,B,z])}var rR=(e,t)=>{let n=iV(e);return{name:n.name,fn:n.fn,options:[e,t]}},oR=(e,t)=>{let n=lV(e);return{name:n.name,fn:n.fn,options:[e,t]}},sR=(e,t)=>({fn:dV(e).fn,options:[e,t]}),iR=(e,t)=>{let n=uV(e);return{name:n.name,fn:n.fn,options:[e,t]}},lR=(e,t)=>{let n=cV(e);return{name:n.name,fn:n.fn,options:[e,t]}};var jv=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(t,n,a=!0){this.fallbackStore=t,this.componentName=n,this.throwOnMissingTrigger=a}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(t){return this.storeListeners.add(t),()=>{this.storeListeners.delete(t)}}attachStore(t){return this.attachedStores.push(t),this.setActiveStore(t),()=>{let n=this.attachedStores.lastIndexOf(t);n!==-1&&this.attachedStores.splice(n,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(t){this.attachedStoreValue!==t&&(this.attachedStoreValue=t,this.storeListeners.forEach(n=>{n()}))}openByTrigger(t){let n=this.attachedStore;if(n===null)return;let a;if(t){for(let r=this.attachedStores.length-1;r>=0&&!a;r-=1)a=this.attachedStores[r].context.triggerElements.getById(t);a??=this.fallbackStore.context.triggerElements.getById(t)}if(t&&!a&&this.throwOnMissingTrigger)throw new Error(Ve(99,this.componentName,t,this.componentName));n.setOpen(!0,ve(se.imperativeAction,void 0,a))}closePopup(){let t=this.attachedStore;t!==null&&t.setOpen(!1,ve(se.imperativeAction))}};var mR=k(A(),1),TV=k(wo(),1);var LV=k(A(),1);var SV=k(A(),1),cR=k(Rh(),1),kV=k(_V(),1);var Dte=Gd(19),Nte=Dte?Bte:Fte;function Ev(e,t,n,a,r){return Nte(e,t,n,a,r)}function Ote(e,t,n,a,r){let o=SV.useCallback(()=>t(e.getSnapshot(),n,a,r),[e,t,n,a,r]);return(0,cR.useSyncExternalStore)(e.subscribe,o,o)}UF({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let a=e.syncHooks[n],r=a.selector(a.store.state,a.a1,a.a2,a.a3);Object.is(a.value,r)||(t=!0,a.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let r of e.syncHooks)n.add(r.store);let a=[];for(let r of n)a.push(r.subscribe(t));return()=>{for(let r of a)r()}}),(0,cR.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Bte(e,t,n,a,r){let o=HF();if(!o)return Ote(e,t,n,a,r);let s=o.syncIndex;o.syncIndex+=1;let i;return o.didInitialize?(i=o.syncHooks[s],(i.store!==e||i.selector!==t||!Object.is(i.a1,n)||!Object.is(i.a2,a)||!Object.is(i.a3,r))&&(i.store!==e&&(o.didChangeStore=!0),i.store=e,i.selector=t,i.a1=n,i.a2=a,i.a3=r,i.value=t(e.getSnapshot(),n,a,r))):(i={store:e,selector:t,a1:n,a2:a,a3:r,value:t(e.getSnapshot(),n,a,r)},o.syncHooks.push(i)),i.value}function Fte(e,t,n,a,r){return(0,kV.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,o=>t(o,n,a,r))}var Av=class{static create(t){return new this(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let n=this.updateTick;for(let a of this.listeners){if(n!==this.updateTick)return;a(t)}}update(t){for(let n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){let t={...this.state};this.setState(t)}use(t,n,a,r){return Ev(this,t,n,a,r)}};var jc=k(A(),1);var as=class extends Av{constructor(t,n={},a){super(t),this.context=n,this.selectors=a}useSyncedValue(t,n){jc.useDebugValue(t);let a=this;U(()=>{a.state[t]!==n&&a.set(t,n)},[a,t,n])}useSyncedValueWithCleanup(t,n){let a=this;U(()=>(a.state[t]!==n&&a.set(t,n),()=>{a.set(t,void 0)}),[a,t,n])}useSyncedValues(t){let n=this,a=Object.values(t);U(()=>{n.update(t)},[n,...a])}useControlledProp(t,n){jc.useDebugValue(t);let a=this,r=n!==void 0;U(()=>{r&&!Object.is(a.state[t],n)&&a.setState({...a.state,[t]:n})},[a,t,n,r])}select(t,n,a,r){let o=this.selectors[t];return o(this.state,n,a,r)}useState(t,n,a,r){return jc.useDebugValue(t),Ev(this,this.selectors[t],n,a,r)}useContextCallback(t,n){jc.useDebugValue(t);let a=X(n??De);this.context[t]=a}useStateSetter(t){let n=jc.useRef(void 0);return n.current===void 0&&(n.current=a=>{this.set(t,a)}),n.current}observe(t,n){let a;typeof t=="function"?a=t:a=this.selectors[t];let r=a(this.state);return n(r,r,this),this.subscribe(o=>{let s=a(o);if(!Object.is(r,s)){let i=r;r=s,n(s,i,this)}})}};var Pv=k(A(),1);function $V(){let[,e]=Pv.useState({});return Pv.useCallback(()=>{e({})},[])}var Vte={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Nl=class extends as{constructor(t){let{syncOnly:n,nested:a,onOpenChange:r,triggerElements:o,...s}=t;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:B3(),nested:a,triggerElements:o},Vte),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&JF(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);let a={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",a)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}};function RV(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:a,floatingId:r,nested:o,onOpenChange:s}=e,i=t.useState("open"),l=t.useState("activeTriggerElement"),u=t.useState(n?"popupElement":"positionerElement"),c=t.context.triggerElements,d=s,f=LV.useRef(null);a===void 0&&f.current===null&&(f.current=new Nl({open:i,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:c,onOpenChange:d,floatingId:r,syncOnly:!0,nested:o}));let m=a??f.current;return t.useSyncedValue("floatingId",r),U(()=>{let p={open:i,floatingId:r,referenceElement:l,floatingElement:u};Ie(l)&&(p.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(p.positionReference=l),m.update(p)},[i,r,l,u,m]),m.context.onOpenChange=d,m.context.nested=o,m}var dR=k(A(),1);function Qa(e,t=!1,n=!1,a=!1){let[r,o]=dR.useState(e&&t?"idle":void 0),[s,i]=dR.useState(e&&!a);return e&&!s&&(i(!0),o("starting")),!e&&s&&r!=="ending"&&!n&&o("ending"),!e&&!s&&r==="ending"&&o(void 0),U(()=>{if(!e&&s&&r!=="ending"&&n){let l=qr.request(()=>{o("ending")});return()=>{qr.cancel(l)}}},[e,s,r,n]),U(()=>{if(!e||t)return;let l=qr.request(()=>{o(void 0)});return()=>{qr.cancel(l)}},[t,e]),U(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&o("starting");let l=qr.request(()=>{o("idle")});return()=>{qr.cancel(l)}},[t,e,s,r]),{mounted:s,setMounted:i,transitionStatus:r}}var IV=k(A(),1);var fR=k(wo(),1);var Mv=null;function zte(e){if(!Mv){let t=[];Mv=t,queueMicrotask(()=>{Mv=null,fR.flushSync(()=>{for(let n of t)n()})})}Mv.push(e)}function Hf(e,t=!1,n=!1){let a=Ia();return X((r,o=null)=>{a.cancel();let s=ho(e);if(s==null)return;let i=s,l=()=>{if(!n){fR.flushSync(r);return}zte(()=>{o?.aborted||r()})};if(typeof i.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function u(){Promise.all(i.getAnimations().map(c=>c.finished)).then(()=>{o?.aborted||l()},()=>{if(o?.aborted)return;if(i.getAnimations().some(d=>d.pending||d.playState!=="finished")){u();return}l()})}if(t){let c=ph;if(!i.hasAttribute(c)){a.request(u);return}let d=new MutationObserver(()=>{i.hasAttribute(c)||(d.disconnect(),u())});d.observe(i,{attributes:!0,attributeFilter:[c]}),o?.addEventListener("abort",()=>d.disconnect(),{once:!0});return}a.request(u)})}function ga(e){let{enabled:t=!0,open:n,ref:a,batch:r=!1,onComplete:o}=e,s=X(o),i=Hf(a,n,r);IV.useEffect(()=>{if(!t)return;let l=new AbortController;return i(s,l.signal),()=>{l.abort()}},[t,n,s,i])}var Dv={tabIndex:-1,[dh]:""};function EV(e,t=!1){let n=Pl(),a=Ml()!=null,r=st(()=>e(n,a)).current;return RV({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:n,nested:a,onOpenChange:r.setOpen}),r}function AV({handle:e,store:t}){return U(()=>e.attachStore(t),[e,t]),null}function jV(e){let t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function qte(e,t){let n=mR.useRef(null);return X(a=>{let r=n.current;if(r!==null){if(r.element===a&&r.store===t&&r.id===e)return;n.current=null;let o=r.store;o.context.triggerElements.getById(r.id)===r.element&&(o.context.triggerElements.delete(r.id),jV(o))}a!==null&&e!==void 0&&(n.current={store:t,id:e,element:a},t.context.triggerElements.add(e,a),jV(t))})}function Hte(e,t,n,a=!1){let r=e.preventUnmountingOnClose;t?r=!1:a&&(r=!0);let o=n?.id??null,s=e.activeTriggerId,i=e.activeTriggerElement;return(o||t)&&(s=o,i=n??null),{open:t,preventUnmountingOnClose:r,activeTriggerId:s,activeTriggerElement:i}}function Ute(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function PV(e,t,n,a={}){let r=n.reason,o=r===se.triggerHover,s=t&&r===se.triggerFocus,i=!t&&(r===se.triggerPress||r===se.escapeKey),l=Ute(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;a.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let u=()=>{let c=Hte(e.state,t,n.trigger,l()),d={...a.extraState,...c};s?d.instantType="focus":i?d.instantType="dismiss":o&&(d.instantType=void 0),e.update(d)};o?TV.flushSync(u):u()}function MV(e,t,n,a){let r=n.useState("isMountedByTrigger",e),o=qte(e,n),s=X(l=>{let u=n.select("open"),c=n.select("activeTriggerId");if(c===e){let d={activeTriggerElement:l,...u?a:null};n.update(d);return}if(c==null&&u){let d={activeTriggerId:e??null,activeTriggerElement:l,...a};n.update(d)}}),i=X(l=>{o(l),l&&s(l)});return U(()=>(i(t.current),()=>i(null)),[i,t,n,e]),U(()=>{if(r){let l={activeTriggerElement:t.current,...a};n.update(l)}},[r,n,t,...Object.values(a)]),{registerTrigger:i,isMountedByThisTrigger:r}}function DV(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,a=mR.useRef(null),r=e.useState("open"),o=e.useState("triggerCount"),s=e.useState("activeTriggerId"),i=e.useState("activeTriggerElement");U(()=>{if(!r){a.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0);return}let l=e.context.triggerElements.size,u={};e.state.triggerCount!==l&&(u.triggerCount=l);let c=e.select("activeTriggerId"),d=null;if(c){let f=e.context.triggerElements.getById(c);if(f)a.current=c,f!==e.state.activeTriggerElement&&(u.activeTriggerElement=f);else{for(let[m,p]of e.context.triggerElements.entries())if(p===e.state.activeTriggerElement){u.activeTriggerId=m,u.activeTriggerElement=p,a.current=m;break}u.activeTriggerId===void 0&&(a.current===c?d=c:a.current=null)}}else a.current=null;if(!d&&!c&&l===1){let f=e.context.triggerElements.entries().next();if(!f.done){let[m,p]=f.value;u.activeTriggerId=m,u.activeTriggerElement=p,a.current=m}}(u.triggerCount!==void 0||u.activeTriggerId!==void 0||u.activeTriggerElement!==void 0)&&e.update(u),d&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===d&&!e.context.triggerElements.getById(d)){let f=ve(se.none);e.setOpen(!1,f),f.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,o,s,i,n])}function NV(e,t,n,a){let{mounted:r,setMounted:o,transitionStatus:s}=Qa(e,!1,!1,a),i=t.useState("preventUnmountingOnClose"),l=e?!1:i;t.useSyncedValues({mounted:r,transitionStatus:s,preventUnmountingOnClose:l});let u=X(()=>{o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return ga({enabled:r&&!e&&!l,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:s}}function OV(e,t){e.useSyncedValues(t),U(()=>()=>{e.update({activeTriggerProps:Qe,inactiveTriggerProps:Qe,popupProps:Qe})},[e])}var Tc=class{constructor(){this.idMap=new Map}add(t,n){this.idMap.set(t,n)}delete(t){this.idMap.delete(t)}hasElement(t){for(let n of this.idMap.values())if(n===t)return!0;return!1}hasMatchingElement(t){for(let n of this.idMap.values())if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function FV(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Nl({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Qe,inactiveTriggerProps:Qe,popupProps:Qe}}var Ih=e=>e.triggerIdProp??e.activeTriggerId,pR=e=>e.openProp??e.open,BV=e=>(e.popupElement?.id??e.floatingId)||void 0;function VV(e,t){return t!==void 0&&pR(e)&&Ih(e)===t}function Gte(e,t){return VV(e,t)?!0:t!==void 0&&pR(e)&&Ih(e)==null&&e.triggerCount===1}var zV={open:pR,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Ih,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:BV,isTriggerActive:(e,t)=>t!==void 0&&Ih(e)===t,isOpenedByTrigger:(e,t)=>VV(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Ih(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Gte(e,t)?BV(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};var gR=k(A(),1),qV=k(Rh(),1);function HV(e){let t=gR.useCallback(a=>e===void 0?De:e.subscribeStore(a),[e]),n=gR.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,qV.useSyncExternalStore)(t,n,()=>e?.serverStore)}function hR(e){let{open:t=!1,onOpenChange:n,elements:a={}}=e,r=Pl(),o=Ml()!=null,s=st(()=>new Nl({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:a.reference??null,floatingElement:a.floating??null,triggerElements:new Tc,floatingId:r,syncOnly:!1,nested:o})).current;return U(()=>{let i={open:t,floatingId:r};a.reference!==void 0&&(i.referenceElement=a.reference,i.domReferenceElement=Ie(a.reference)?a.reference:null),a.floating!==void 0&&(i.floatingElement=a.floating),s.update(i)},[t,r,a.reference,a.floating,s]),s.context.onOpenChange=n,s.context.nested=o,s}function UV(e){return Wte(e,e.rootContext)}function Wte(e,t){let{nodeId:n,externalTree:a}=e,r=t.useState("referenceElement"),o=t.useState("floatingElement"),s=t.useState("domReferenceElement"),i=t.useState("open"),l=t.useState("floatingId"),[u,c]=ha.useState(null),[d,f]=ha.useState(void 0),[m,p]=ha.useState(void 0),h=ha.useRef(null),x=Wr(a),b=ha.useMemo(()=>({reference:r,floating:o,domReference:s}),[r,o,s]),g=hV({...e,elements:{...b,...u&&{reference:u}}}),y=Ie(d)?d:null,v=m===void 0?t.state.floatingElement:m;t.useSyncedValue("referenceElement",d??null),t.useSyncedValue("domReferenceElement",d===void 0?s:y),t.useSyncedValue("floatingElement",v);let C=ha.useCallback(j=>{let M=Ie(j)?{getBoundingClientRect:()=>j.getBoundingClientRect(),getClientRects:()=>j.getClientRects(),contextElement:j}:j;c(M),g.refs.setReference(M)},[g.refs]),S=ha.useCallback(j=>{(Ie(j)||j===null)&&(h.current=j,f(j)),(Ie(g.refs.reference.current)||g.refs.reference.current===null||j!==null&&!Ie(j))&&g.refs.setReference(j)},[g.refs,f]),_=ha.useCallback(j=>{p(j),g.refs.setFloating(j)},[g.refs]),w=ha.useMemo(()=>({...g.refs,setReference:S,setFloating:_,setPositionReference:C,domReference:h}),[g.refs,S,_,C]),R=ha.useMemo(()=>({...g.elements,domReference:s}),[g.elements,s]),$=ha.useMemo(()=>({...g,dataRef:t.context.dataRef,open:i,onOpenChange:t.setOpen,events:t.context.events,floatingId:l,refs:w,elements:R,nodeId:n,rootStore:t}),[g,w,R,n,t,i,l]);return U(()=>{s&&(h.current=s)},[s]),U(()=>{t.context.dataRef.current.floatingContext=$;let j=x?.nodesRef.current.find(M=>M.id===n);j&&(j.context=$)}),ha.useMemo(()=>({...g,context:$,refs:w,elements:R,rootStore:t}),[g,w,R,$,t])}var rs=k(A(),1);var bR=it.os.mac&&it.engine.webkit;function yR(e,t={}){let{enabled:n=!0,delay:a}=t,r="rootStore"in e?e.rootStore:e,{events:o,dataRef:s}=r.context,i=rs.useRef(!1),l=rs.useRef(null),u=rs.useRef(!0),c=nt();rs.useEffect(()=>{let f=r.select("domReferenceElement");if(!n)return;let m=qe(f);function p(){let b=r.select("domReferenceElement");!r.select("open")&&He(b)&&b===Wt(Se(b))&&(i.current=!0,l.current=b)}function h(){u.current=!0}function x(){u.current=!1}return fa(ke(m,"blur",p),bR&&ke(m,"keydown",h,!0),bR&&ke(m,"pointerdown",x,!0))},[r,n]),rs.useEffect(()=>{if(!n)return;function f(m){if(m.reason===se.triggerPress||m.reason===se.escapeKey){let p=r.select("domReferenceElement");Ie(p)&&(l.current=p,i.current=!0)}}return o.on("openchange",f),()=>{o.off("openchange",f)}},[o,n,r]);let d=rs.useMemo(()=>{function f(){i.current=!1,l.current=null}return{onMouseLeave(){f()},onFocus(m){let p=m.currentTarget;if(i.current){if(l.current===p)return;f()}let h=ct(m.nativeEvent);if(Ie(h)){if(bR&&!m.relatedTarget){if(!u.current&&!wc(h))return}else if(!s3(h))return}let x=jl(m.relatedTarget,r.context.triggerElements),{nativeEvent:b,currentTarget:g}=m,y=typeof a=="function"?a():a;if(r.select("open")&&x||y===0||y===void 0){r.setOpen(!0,ve(se.triggerFocus,b,g));return}c.start(y,()=>{i.current||r.setOpen(!0,ve(se.triggerFocus,b,g))})},onBlur(m){f();let p=m.relatedTarget,h=m.nativeEvent,x=Ie(p)&&p.hasAttribute(ti("focus-guard"))&&p.getAttribute("data-type")==="outside";c.start(0,()=>{let b=r.select("domReferenceElement"),g=Wt(Se(b));!p&&g===b||de(s.current.floatingContext?.refs.floating.current,g)||de(b,g)||x||jl(p??g,r.context.triggerElements)||r.setOpen(!1,ve(se.triggerFocus,h))})}}},[s,a,r,c]);return rs.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var vR=k(A(),1);var xR=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new da,this.restTimeout=new da,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Nv=new WeakMap;function Uf(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Nv.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),Nv.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Ov(e,t){let{scopeElement:n,referenceElement:a,floatingElement:r}=t,o=Nv.get(n);o&&o!==e&&Uf(o),Uf(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=a,e.pointerEventsFloatingElement=r,Nv.set(n,e),n.style.pointerEvents="none",a.style.pointerEvents="auto",r.style.pointerEvents="auto"}function Gf(e){let t=e.context.dataRef.current,n=st(()=>t.hoverInteractionState??xR.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),Mf(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function CR(e,t={}){let{enabled:n=!0,closeDelay:a=0,nodeId:r}=t,o="rootStore"in e?e.rootStore:e,s=o.useState("open"),i=o.useState("floatingElement"),l=o.useState("domReferenceElement"),{dataRef:u}=o.context,c=Wr(),d=Ml(),f=Gf(o),m=nt(),p=X(()=>fv(u.current.openEvent?.type,f.interactedInside)),h=X(()=>i3(u.current.openEvent?.type)),x=X(()=>{Uf(f)});U(()=>{s||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,x())},[s,f,x]),vR.useEffect(()=>x,[x]),U(()=>{if(n&&s&&f.handleCloseOptions?.blockPointerEvents&&h()&&Ie(l)&&i){let b=l,g=i,y=Se(i),v=c?.nodesRef.current.find(w=>w.id===d)?.context?.elements.floating;v&&(v.style.pointerEvents="");let C=f.pointerEventsScopeElement!==g?f.pointerEventsScopeElement:null,S=v!==g?v:null,_=f.handleCloseOptions?.getScope?.()??C??S??b.closest("[data-rootownerid]")??y.body;return Ov(f,{scopeElement:_,referenceElement:b,floatingElement:g}),()=>{x()}}},[n,s,l,i,f,h,c,d,x]),vR.useEffect(()=>{if(!n)return;function b(){return!!(c&&d&&Gr(c.nodesRef.current,d).length>0)}function g(w){let R=po(a,"close",f.pointerType),$=()=>{o.setOpen(!1,ve(se.triggerHover,w)),c?.events.emit("floating.closed",w)};R?f.openChangeTimeout.start(R,$):(f.openChangeTimeout.clear(),$())}function y(w){let R=ct(w);if(!PL(R)){f.interactedInside=!1;return}f.interactedInside=R?.closest("[aria-haspopup]")!=null}function v(){f.openChangeTimeout.clear(),m.clear(),c?.events.off("floating.closed",S),x()}function C(w){if(b()&&c){c.events.on("floating.closed",S);return}if(jl(w.relatedTarget,o.context.triggerElements))return;let R=u.current.floatingContext?.nodeId??r,$=w.relatedTarget;if(!(c&&R&&Ie($)&&Gr(c.nodesRef.current,R,!1).some(M=>de(M.context?.elements.floating,$)))){if(f.handler){f.handler(w);return}x(),h()&&!p()&&g(w)}}function S(w){!c||!d||b()||m.start(0,()=>{c.events.off("floating.closed",S),o.setOpen(!1,ve(se.triggerHover,w)),c.events.emit("floating.closed",w)})}let _=i;return fa(_&&ke(_,"mouseenter",v),_&&ke(_,"mouseleave",C),_&&ke(_,"pointerdown",y,!0),()=>{c?.events.off("floating.closed",S)})},[n,i,o,u,a,r,h,p,x,f,c,d,m])}var Ol=k(A(),1),GV=k(wo(),1);var Xte={current:null};function wR(e,t={}){let{enabled:n=!0,delay:a=0,handleClose:r=null,mouseOnly:o=!1,restMs:s=0,move:i=!0,triggerElementRef:l=Xte,externalTree:u,isActiveTrigger:c=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:m,guardStaleOpen:p=!1}=t,h="rootStore"in e?e.rootStore:e,{dataRef:x,events:b}=h.context,g=Wr(u),y=Gf(h),v=Ol.useRef(!1),C=vt(r),S=vt(a),_=vt(s),w=vt(n),R=vt(m),$=vt(f),j=X(()=>fv(x.current.openEvent?.type,y.interactedInside)),M=X(()=>R.current?.()!==!1),I=X((B,z,P)=>{let D=h.context.triggerElements;if(D.hasElement(z))return!B||!de(B,z);if(!Ie(P))return!1;let L=P;return D.hasMatchingElement(V=>de(V,L))&&(!B||!de(B,L))}),N=X(()=>{if(!y.handler)return;Se(h.select("domReferenceElement")).removeEventListener("mousemove",y.handler),y.handler=void 0}),E=X(()=>{Uf(y)});return c&&(y.handleCloseOptions=r?.__options),Ol.useEffect(()=>N,[N]),Ol.useEffect(()=>{if(!n)return;function B(z){z.open?v.current=!1:(v.current=z.reason===se.triggerHover,N(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return b.on("openchange",B),()=>{b.off("openchange",B)}},[n,b,y,N]),Ol.useEffect(()=>{if(!n)return;function B(q,G=!0){let T=po(S.current,"close",y.pointerType);T?y.openChangeTimeout.start(T,()=>{h.setOpen(!1,ve(se.triggerHover,q)),g?.events.emit("floating.closed",q)}):G&&(y.openChangeTimeout.clear(),h.setOpen(!1,ve(se.triggerHover,q)),g?.events.emit("floating.closed",q))}let z=l.current??(c?h.select("domReferenceElement"):null);if(!Ie(z))return;function P(q){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,o&&!hr(y.pointerType))return;let G=ML(_.current),T=po(S.current,"open",y.pointerType),F=ct(q),O=q.currentTarget??null,Q=h.select("domReferenceElement"),W=O;if(Ie(F)&&!h.context.triggerElements.hasElement(F)){for(let ge of h.context.triggerElements.elements())if(de(ge,F)){W=ge;break}}Ie(O)&&Ie(Q)&&!h.context.triggerElements.hasElement(O)&&de(O,Q)&&(W=Q);let ee=W==null?!1:I(Q,W,F),le=h.select("open"),ce=$.current?.()??h.select("transitionStatus")==="ending",J=!le&&ce&&v.current,te=!ee&&Ie(W)&&Ie(Q)&&de(Q,W)&&J,pe=G>0&&!T,be=ee&&(le||J)||te,je=!le||ee;if(be){M()&&h.setOpen(!0,ve(se.triggerHover,q,W));return}pe||(T?y.openChangeTimeout.start(T,()=>{je&&M()&&h.setOpen(!0,ve(se.triggerHover,q,W))}):je&&M()&&h.setOpen(!0,ve(se.triggerHover,q,W)))}function D(q){if(j()){E();return}N();let G=h.select("domReferenceElement"),T=Se(G);y.restTimeout.clear(),y.restTimeoutPending=!1;let F=x.current.floatingContext??d?.();if(jl(q.relatedTarget,h.context.triggerElements))return;if(C.current&&F){h.select("open")||y.openChangeTimeout.clear();let Q=l.current;y.handler=C.current({...F,tree:g,x:q.clientX,y:q.clientY,onClose(){E(),N(),w.current&&!j()&&Q===h.select("domReferenceElement")&&B(q,!0)}}),T.addEventListener("mousemove",y.handler),y.handler(q);return}(y.pointerType==="touch"?!de(h.select("floatingElement"),q.relatedTarget):!0)&&B(q)}function L(q){de(z,q.relatedTarget)||(y.openChangeTimeout.clear(),y.restTimeout.clear(),y.restTimeoutPending=!1)}let V=p?ke(z,"mouseout",L):void 0;return i?fa(ke(z,"mousemove",P,{once:!0}),ke(z,"mouseenter",P),ke(z,"mouseleave",D),V):fa(ke(z,"mouseenter",P),ke(z,"mouseleave",D),V)},[N,E,x,S,h,n,C,y,c,I,j,o,i,_,l,g,w,d,$,M,p]),Ol.useMemo(()=>{if(!n)return;function B(z){y.pointerType=z.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(z){let{nativeEvent:P}=z,D=z.currentTarget,L=h.select("domReferenceElement"),V=h.select("open"),q=I(L,D,z.target);if(o&&!hr(y.pointerType))return;if(V&&q&&y.handleCloseOptions?.blockPointerEvents){let F=h.select("floatingElement");if(F){let O=y.handleCloseOptions?.getScope?.()??D.ownerDocument.body;Ov(y,{scopeElement:O,referenceElement:D,floatingElement:F})}}let G=ML(_.current);if(V&&!q||G===0||!q&&y.restTimeoutPending&&z.movementX**2+z.movementY**2<2)return;y.restTimeout.clear();function T(){if(y.restTimeoutPending=!1,j())return;let F=h.select("open");!y.blockMouseMove&&(!F||q)&&M()&&h.setOpen(!0,ve(se.triggerHover,P,D))}y.pointerType==="touch"?GV.flushSync(()=>{T()}):q&&V?T():(y.restTimeoutPending=!0,y.restTimeout.start(G,T))}}},[n,y,j,I,o,h,_,M])}var ea=k(A(),1);var Yte="Escape";function WV(e){return it.engine.webkit&&e.movementX===0&&e.movementY===0}function Fv(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Bv(e,t){return Fv(t,e===TL||e===iv,e===fh||e===mh)}function _R(e,t,n){return Fv(t,e===iv,n?e===fh:e===mh)||e==="Enter"||e===" "||e===""}function Zte(e,t,n){return Fv(t,n?e===fh:e===mh,e===iv)}function Kte(e,t,n,a){let r=n?e===mh:e===fh,o=e===TL;return t==="both"||t==="horizontal"&&a?e===Yte:Fv(t,r,o)}function SR(e,t){let{listRef:n,activeIndex:a,onNavigate:r=()=>{},enabled:o=!0,selectedIndex:s=null,allowEscape:i=!1,loopFocus:l=!1,nested:u=!1,rtl:c=!1,virtual:d=!1,focusItemOnOpen:f="auto",focusItemOnHover:m=!0,openOnArrowKeyDown:p=!0,disabledIndices:h=void 0,orientation:x="vertical",parentOrientation:b,id:g,resetOnPointerLeave:y=!0,externalTree:v,grid:C}=t,S=C!=null,_="rootStore"in e?e.rootStore:e,w=_.useState("open"),R=_.useState("floatingElement"),$=_.useState("domReferenceElement"),j=_.context.dataRef,M=_c(R),I=hh($),N=vt(M),E=Ml(),B=Wr(v),z=ea.useRef(f),P=ea.useRef(s??-1),D=ea.useRef(null),L=ea.useRef(!0),V=X(re=>{r(P.current===-1?null:P.current,re)}),q=ea.useRef(!!R),G=ea.useRef(w),T=ea.useRef(!1),F=ea.useRef(!1),O=ea.useRef(null),Q=vt(h),W=vt(w),ee=vt(s),le=vt(y),ce=Ia(),J=Ia(),te=X(()=>{function re(ie){d?B?.events.emit("virtualfocus",ie):O.current=Vf(ie,{sync:T.current,preventScroll:!0})}let fe=n.current[P.current],Y=F.current;fe&&re(fe),(T.current?ie=>ie():ie=>ce.request(ie))(()=>{let ie=n.current[P.current]||fe;if(!ie)return;fe||re(ie),ue&&(Y||!L.current)&&ie.scrollIntoView?.({block:"nearest",inline:"nearest"})})});U(()=>{j.current.orientation=x},[j,x]),U(()=>{o&&(w&&R?(P.current=s??-1,z.current&&s!=null&&(F.current=!0,V())):q.current&&(P.current=-1,V()))},[o,w,R,s,V]),U(()=>{if(o){if(!w){T.current=!1;return}if(R)if(a==null){if(T.current=!1,ee.current!=null)return;if(q.current&&(P.current=-1,te()),(!G.current||!q.current)&&z.current&&(D.current!=null||z.current===!0&&D.current==null)){let re=0,fe=()=>{n.current[0]==null?(re<2&&(re?H=>J.request(H):queueMicrotask)(fe),re+=1):(P.current=D.current==null||_R(D.current,x,c)||u?Sc(n):Ff(n),D.current=null,V())};fe()}}else Al(n.current,a)||(P.current=a,te(),F.current=!1)}},[o,w,R,a,ee,u,n,x,c,V,te,J]),U(()=>{if(!o||R||!B||d||!q.current)return;let re=B.nodesRef.current,fe=re.find(ie=>ie.id===E)?.context?.elements.floating,Y=Wt(Se($??fe??null)),H=re.some(ie=>ie.context&&de(ie.context.elements.floating,Y));fe&&!H&&L.current&&fe.focus({preventScroll:!0})},[o,R,$,B,E,d]),U(()=>{G.current=w,q.current=!!R}),U(()=>{w||(D.current=null,z.current=f)},[w,f]);let pe=a!=null,be=X(re=>{if(!W.current)return;let fe=n.current.indexOf(re.currentTarget);fe!==-1&&(P.current!==fe||a!==fe)&&(P.current=fe,V(re))}),je=X(()=>b??B?.nodesRef.current.find(re=>re.id===E)?.context?.dataRef?.current.orientation),ge=X(()=>Sc(n,Q.current)),$e=X(re=>{if(L.current=!1,T.current=!0,re.which===229||!W.current&&re.currentTarget===N.current)return;if(u&&Kte(re.key,x,c,S)){Bv(re.key,je())||Xa(re),_.setOpen(!1,ve(se.listNavigation,re.nativeEvent)),He($)&&(d?B?.events.emit("virtualfocus",$):$.focus());return}let fe=P.current,Y=Sc(n,h),H=Ff(n,h);if(I||(re.key==="Home"&&(Xa(re),P.current=Y,V(re)),re.key==="End"&&(Xa(re),P.current=H,V(re))),C!=null){let ie=C(re,P.current,n,x,l,c,h,Y,H);if(ie!=null&&(P.current=ie,V(re)),x==="both")return}if(Bv(re.key,x)){if(Xa(re),w&&!d&&Wt(re.currentTarget.ownerDocument)===re.currentTarget){P.current=_R(re.key,x,c)?Y:H,V(re);return}_R(re.key,x,c)?l?fe>=H?i&&fe!==n.current.length?P.current=-1:(T.current=!1,P.current=Y):P.current=Ur(n.current,{startingIndex:fe,disabledIndices:h}):P.current=Math.min(H,Ur(n.current,{startingIndex:fe,disabledIndices:h})):l?fe<=Y?i&&fe!==-1?P.current=n.current.length:(T.current=!1,P.current=H):P.current=Ur(n.current,{startingIndex:fe,decrement:!0,disabledIndices:h}):P.current=Math.max(Y,Ur(n.current,{startingIndex:fe,decrement:!0,disabledIndices:h})),Al(n.current,P.current)&&(P.current=-1),V(re)}}),ue=ea.useMemo(()=>({onFocus(fe){T.current=!0,be(fe)},onClick:({currentTarget:fe})=>fe.focus({preventScroll:!0}),onMouseMove(fe){WV(fe)||(T.current=!0,F.current=!1,m&&be(fe))},onPointerLeave(fe){if(!W.current||!L.current||fe.pointerType==="touch")return;T.current=!0;let Y=fe.relatedTarget;if(!(!m||n.current.includes(Y))&&le.current&&(O.current?.(),O.current=null,P.current=-1,V(fe),!d)){let H=N.current,ie=Wt(Se(H));H&&de(H,ie)&&H.focus({preventScroll:!0})}}}),[be,W,N,m,n,V,le,d]),Le=ea.useMemo(()=>d&&w&&pe&&{"aria-activedescendant":`${g}-${a}`},[d,w,pe,g,a]),Oe=ea.useMemo(()=>({...I?{}:Le,onKeyDown(re){if(re.key==="Tab"&&re.shiftKey&&w&&!d){let fe=ct(re.nativeEvent);if(fe&&!de(N.current,fe))return;Xa(re),_.setOpen(!1,ve(se.focusOut,re.nativeEvent)),He($)&&$.focus();return}$e(re)},onPointerMove(re){WV(re)||(L.current=!0)}}),[Le,$e,N,I,_,w,d,$]),Ae=ea.useMemo(()=>{function re(H){_.setOpen(!0,ve(se.listNavigation,H.nativeEvent,H.currentTarget))}function fe(H){f==="auto"&&Il(H.nativeEvent)&&(z.current=!d)}function Y(H){z.current=f,f==="auto"&&Df(H.nativeEvent)&&(z.current=!0)}return{onKeyDown(H){let ie=_.select("open");L.current=!1;let Be=H.key.startsWith("Arrow"),Ht=Zte(H.key,je(),c),fn=Bv(H.key,x),Nt=(u?Ht:fn)||H.key==="Enter"||H.key.trim()==="";if(d&&ie)return $e(H);if(!(!ie&&!p&&Be)){if(Nt){let jt=Bv(H.key,je());D.current=u&&jt?null:H.key}if(u){Ht&&(Xa(H),ie?(P.current=ge(),V(H)):re(H));return}fn&&(ee.current!=null&&(P.current=ee.current),Xa(H),!ie&&p?re(H):$e(H),ie&&V(H))}},onFocus(H){_.select("open")&&!d&&(P.current=-1,V(H))},onPointerDown:Y,onPointerEnter:Y,onMouseDown:fe,onClick:fe}},[$e,f,ge,u,V,_,p,x,je,c,ee,d]),gt=ea.useMemo(()=>({...Le,...Ae}),[Le,Ae]);return ea.useMemo(()=>o?{reference:gt,floating:Oe,item:ue,trigger:Ae}:{},[o,gt,Oe,Ae,ue])}var Ec=k(A(),1);function kR(e,t){let{listRef:n,elementsRef:a,activeIndex:r,onMatch:o,disabledIndices:s,onTyping:i,enabled:l=!0,resetMs:u=750,selectedIndex:c=null}=t,d="rootStore"in e?e.rootStore:e,f=d.useState("open"),m=nt(),p=Ec.useRef(""),h=Ec.useRef(c??r??-1),x=Ec.useRef(null),b=X(v=>{function C(N){return a?.current[N]}function S(N){let E=C(N);return E&&!kc(E)||E?.matches(":disabled")?!1:s==null||!ei(za,N,s)}function _(N,E,B=0){if(N.length===0)return-1;let z=(B%N.length+N.length)%N.length,P=E.toLowerCase();for(let D=0;D<N.length;D+=1){let L=(z+D)%N.length;if(!(!N[L]?.toLowerCase().startsWith(P)||!S(L)))return L}return-1}let w=n.current;if(p.current.length>0&&v.key===" "&&(Xa(v),i?.(!0)),p.current.length>0&&p.current[0]!==" "&&_(w,p.current)===-1&&v.key!==" "&&i?.(!1),w==null||v.key.length!==1||v.ctrlKey||v.metaKey||v.altKey)return;f&&v.key!==" "&&(Xa(v),i?.(!0));let R=p.current==="";R&&(h.current=c??r??-1),w.every((N,E)=>N&&S(E)?N[0]?.toLowerCase()!==N[1]?.toLowerCase():!0)&&p.current===v.key&&(p.current="",h.current=x.current),p.current+=v.key,m.start(u,()=>{p.current="",h.current=x.current,i?.(!1)});let M=((R?c??r??-1:h.current)??0)+1,I=_(w,p.current,M);I!==-1?(o?.(I),x.current=I):v.key!==" "&&(p.current="",i?.(!1))}),g=X(v=>{let C=v.relatedTarget,S=d.select("domReferenceElement"),_=d.select("floatingElement");de(S,C)||de(_,C)||(m.clear(),p.current="",h.current=x.current,i?.(!1))});U(()=>{!f&&c!==null||(m.clear(),x.current=null,p.current!==""&&(p.current=""))},[f,c,m]);let y=Ec.useMemo(()=>({onKeyDown:b,onBlur:g}),[b,g]);return Ec.useMemo(()=>l?{reference:y,floating:y}:{},[l,y])}var XV=.1,Qte=XV*XV,St=.5;function Vv(e,t,n,a,r,o){return a>=t!=o>=t&&e<=(r-n)*(t-a)/(o-a)+n}function zv(e,t,n,a,r,o,s,i,l,u){let c=!1;return Vv(e,t,n,a,r,o)&&(c=!c),Vv(e,t,r,o,s,i)&&(c=!c),Vv(e,t,s,i,l,u)&&(c=!c),Vv(e,t,l,u,n,a)&&(c=!c),c}function Jte(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function qv(e,t,n,a,r,o){let s=Math.min(n,r),i=Math.max(n,r),l=Math.min(a,o),u=Math.max(a,o);return e>=s&&e<=i&&t>=l&&t<=u}function $R(e={}){let{blockPointerEvents:t=!1}=e,n=new da,a=({x:r,y:o,placement:s,elements:i,onClose:l,nodeId:u,tree:c})=>{let d=s?.split("-")[0],f=!1,m=null,p=null,h=typeof performance<"u"?performance.now():0;function x(g,y){let v=performance.now(),C=v-h;if(m===null||p===null||C===0)return m=g,p=y,h=v,!1;let S=g-m,_=y-p,w=S*S+_*_,R=C*C*Qte;return m=g,p=y,h=v,w<R}function b(){n.clear(),l()}return function(y){n.clear();let v=i.domReference,C=i.floating;if(!v||!C||d==null||r==null||o==null)return;let{clientX:S,clientY:_}=y,w=ct(y),R=y.type==="mouseleave",$=de(C,w),j=de(v,w);if($&&(f=!0,!R))return;if(j&&(f=!1,!R)){f=!0;return}if(R&&Ie(y.relatedTarget)&&de(C,y.relatedTarget))return;function M(){return!!(c&&Gr(c.nodesRef.current,u).length>0)}function I(){M()||b()}if(M())return;let N=v.getBoundingClientRect(),E=C.getBoundingClientRect(),B=r>E.right-E.width/2,z=o>E.bottom-E.height/2,P=E.width>N.width,D=E.height>N.height,L=(P?N:E).left,V=(P?N:E).right,q=(D?N:E).top,G=(D?N:E).bottom;if(d==="top"&&o>=N.bottom-1||d==="bottom"&&o<=N.top+1||d==="left"&&r>=N.right-1||d==="right"&&r<=N.left+1){I();return}let T=!1;switch(d){case"top":T=qv(S,_,L,N.top+1,V,E.bottom-1);break;case"bottom":T=qv(S,_,L,E.top+1,V,N.bottom-1);break;case"left":T=qv(S,_,E.right-1,G,N.left+1,q);break;case"right":T=qv(S,_,N.right-1,G,E.left+1,q);break;default:}if(T)return;if(f&&!Jte(S,_,N)){I();return}if(!R&&x(S,_)){I();return}let F=!1;switch(d){case"top":{let O=P?St/2:St*4,Q=P||B?r+O:r-O,W=P?r-O:B?r+O:r-O,ee=o+St+1,le=B||P?E.bottom-St:E.top,ce=B?P?E.bottom-St:E.top:E.bottom-St;F=zv(S,_,Q,ee,W,ee,E.left,le,E.right,ce);break}case"bottom":{let O=P?St/2:St*4,Q=P||B?r+O:r-O,W=P?r-O:B?r+O:r-O,ee=o-St,le=B||P?E.top+St:E.bottom,ce=B?P?E.top+St:E.bottom:E.top+St;F=zv(S,_,Q,ee,W,ee,E.left,le,E.right,ce);break}case"left":{let O=D?St/2:St*4,Q=D||z?o+O:o-O,W=D?o-O:z?o+O:o-O,ee=r+St+1,le=z||D?E.right-St:E.left,ce=z?D?E.right-St:E.left:E.right-St;F=zv(S,_,le,E.top,ce,E.bottom,ee,Q,ee,W);break}case"right":{let O=D?St/2:St*4,Q=D||z?o+O:o-O,W=D?o-O:z?o+O:o-O,ee=r-St,le=z||D?E.left+St:E.right,ce=z?D?E.left+St:E.right:E.left+St;F=zv(S,_,ee,Q,ee,W,le,E.top,ce,E.bottom);break}default:}F?f||n.start(40,I):I()}};return a.__options={...e,blockPointerEvents:t},a}var YV=k(A(),1);var Hv=class extends as{setState(t){}update(t){}set(t,n){}notifyAll(){}};var ZV={...zV,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Uv=class extends as{constructor(t,n,a){let r=new Tc;super(QV(t,r,n,a),JV(r),ZV)}setOpen=(t,n)=>{PV(this,t,n,{extraState:{openChangeReason:n.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,ve(se.triggerPress,t))}};function KV(){let e=new Tc,t=new Hv(Object.freeze(QV(void 0,e)),Object.freeze(JV(e)),ZV);return Object.assign(t,{setOpen:De,cancelPendingOpen:De})}function QV(e,t,n,a=!1){return{...FV(t,n,a),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function JV(e){return{popupRef:YV.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var jh=k(Z(),1),ez=vL(function(t){let{disabled:n=!1,defaultOpen:a=!1,open:r,disableHoverablePopup:o=!1,trackCursorAxis:s="none",actionsRef:i,onOpenChange:l,onOpenChangeComplete:u,handle:c,triggerId:d,defaultTriggerId:f=null,children:m}=t,p=EV((j,M)=>new Uv({open:a,openProp:r,activeTriggerId:f,triggerIdProp:d},j,M));p.useControlledProp("openProp",r),p.useControlledProp("triggerIdProp",d),p.useContextCallback("onOpenChange",l),p.useContextCallback("onOpenChangeComplete",u);let h=p.useState("open"),x=!n&&h,b=p.useState("activeTriggerId"),g=p.useState("mounted"),y=p.useState("payload");p.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:o,disabled:n}),DV(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:v,transitionStatus:C}=NV(x,p),S=p.useState("isInstantPhase"),_=p.useState("instantType"),w=p.useState("lastOpenChangeReason"),R=Wf.useRef(null);U(()=>{h&&n&&p.setOpen(!1,ve(se.disabled))},[h,n,p]),U(()=>{C==="ending"&&w===se.none||C!=="ending"&&S?(_!=="delay"&&(R.current=_),p.set("instantType","delay")):R.current!==null&&(p.set("instantType",R.current),R.current=null)},[C,S,w,_,p]),U(()=>{x&&b==null&&p.set("payload",void 0)},[p,b,x]),Wf.useImperativeHandle(i,()=>({unmount:v,close:()=>p.setOpen(!1,ve(se.imperativeAction))}),[v,p]);let $=x||g||!n&&s!=="none";return(0,jh.jsxs)(CL.Provider,{value:p,children:[c&&(0,jh.jsx)(AV,{handle:c,store:p}),$&&(0,jh.jsx)(ene,{store:p,disabled:n,trackCursorAxis:s}),typeof m=="function"?m({payload:y}):m]})});function ene({store:e,disabled:t,trackCursorAxis:n}){let a=e.useState("floatingRootContext"),r=kh(a,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),o=eR(a,{enabled:!t&&n!=="none",axis:n==="none"?void 0:n}),s=Wf.useMemo(()=>la(o.reference,r.reference),[o.reference,r.reference]);return OV(e,{activeTriggerProps:s,inactiveTriggerProps:s,popupProps:r.floating??Qe}),null}var Wv=k(A(),1);function Cn(e){return Pl(e,"base-ui")}var Gv=k(A(),1),LR=Gv.createContext(void 0);function tz(){return Gv.useContext(LR)}var az="data-base-ui-tooltip-trigger";function nz(e){if("composedPath"in e){let n=e.composedPath();for(let a=0;a<n.length;a+=1){let r=n[a];if(Ie(r))return r}}let t=e.target;return Ie(t)?t:null}function tne(e){let t=e;for(;t;){let n=t.closest(`[${az}]`);if(n)return n;let a=t.getRootNode();t="host"in a&&Ie(a.host)?a.host:null}return null}var rz=GF(function(t,n){let{render:a,className:r,style:o,handle:s,payload:i,disabled:l,delay:u,closeOnClick:c=!0,closeDelay:d,id:f,...m}=t,p=zr(!0),x=HV(s)??p;if(!x)throw new Error(Ve(82));let b=Cn(f),g=x.useState("isTriggerActive",b),y=x.useState("isOpenedByTrigger",b),v=x.useState("floatingRootContext"),C=Wv.useRef(null),S=d??0,{registerTrigger:_,isMountedByThisTrigger:w}=MV(b,C,x,{payload:i,closeOnClick:c,closeDelay:S}),R=tz(),{activeIdRef:$,delayRef:j,isInstantPhase:M,hasProvider:I}=NL(v,{open:y}),N=Gf(v);x.useSyncedValue("isInstantPhase",M);let E=x.useState("disabled"),B=l??E,z=vt(B),P=x.useState("trackCursorAxis"),D=x.useState("disableHoverablePopup"),L=Wv.useRef(!1),V=nt(),q=Wv.useRef(void 0);function G(){return I&&$.current!=null?0:u??R??600}function T(te){let pe=C.current;if(!pe||!te)return!1;let be=tne(te);return be!==null&&be!==pe&&de(pe,be)}function F(te){let pe=T(te);return L.current=pe,pe&&(N.openChangeTimeout.clear(),N.restTimeout.clear(),N.restTimeoutPending=!1,V.clear()),pe}let O=wR(v,{enabled:!B,mouseOnly:!0,move:!1,handleClose:!D&&P!=="both"?$R():null,restMs:G,delay(){return d==null&&I?{close:po(j.current,"close")}:{close:S}},triggerElementRef:C,isActiveTrigger:g,isClosing:()=>x.select("transitionStatus")==="ending",shouldOpen(){return!L.current}}),Q=yR(v,{enabled:!B}).reference,W=te=>{let pe=L.current,be=nz(te),je=F(be),ge=C.current,$e=ge&&be&&de(ge,be);if(je&&x.select("open")&&x.select("lastOpenChangeReason")===se.triggerHover){x.setOpen(!1,ve(se.triggerHover,te));return}if(pe&&!je&&$e&&!z.current&&!x.select("open")&&ge&&hr(q.current)){let ue=()=>{!L.current&&!z.current&&!x.select("open")&&x.setOpen(!0,ve(se.triggerHover,te,ge))},Le=G();Le===0?(V.clear(),ue()):V.start(Le,ue)}},ee=x.useState("triggerProps",w);return oe("button",t,{state:{open:y},ref:[n,_,C],props:[O,Q,w||P!=="none"?ee:void 0,{onMouseOver(te){W(te.nativeEvent)},onFocus(te){T(nz(te.nativeEvent))&&te.preventBaseUIHandler()},onMouseLeave(){L.current=!1,V.clear(),q.current=void 0},onPointerEnter(te){q.current=te.pointerType},onPointerDown(te){q.current=te.pointerType,x.set("closeOnClick",c),c&&!x.select("open")&&x.cancelPendingOpen(te.nativeEvent)},onClick(te){c&&!x.select("open")&&x.cancelPendingOpen(te.nativeEvent)},id:b,[gh]:B?"":void 0,[az]:B?void 0:""},m],stateAttributesMapping:uv})});var uz=k(A(),1);var Xv=k(A(),1),RR=Xv.createContext(void 0);function oz(){let e=Xv.useContext(RR);if(e===void 0)throw new Error(Ve(70));return e}var Yv=k(A(),1),sz=k(wo(),1);var iz=k(Z(),1),lz=Yv.forwardRef(function(t,n){let{children:a,container:r,className:o,render:s,style:i,...l}=t,{node:u,subtree:c}=kv({container:r,ref:n,componentProps:t,elementProps:l});return!c&&!u?null:(0,iz.jsxs)(Yv.Fragment,{children:[c,u&&sz.createPortal(a,u)]})});var IR=k(Z(),1),cz=uz.forwardRef(function(t,n){let{keepMounted:a=!1,...r}=t;return zr().useState("mounted")||a?(0,IR.jsx)(RR.Provider,{value:a,children:(0,IR.jsx)(lz,{ref:n,...r})}):null});var nC=k(A(),1);var Zv=k(A(),1),jR=Zv.createContext(void 0);function Xf(){let e=Zv.useContext(jR);if(e===void 0)throw new Error(Ve(71));return e}var br=k(A(),1);var Kv=k(A(),1),nne=Kv.createContext(void 0);function Ja(){return Kv.useContext(nne)?.direction??"ltr"}var ane=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:a,placement:r,rects:o,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:c=0,offsetParent:d="real"}=ns(e,t)||{};if(u==null)return{};let f=xv(c),m={x:n,y:a},p=vh(r),h=xh(p),x=await s.getDimensions(u),b=p==="y",g=b?"top":"left",y=b?"bottom":"right",v=b?"clientHeight":"clientWidth",C=o.reference[h]+o.reference[p]-m[p]-o.floating[h],S=m[p]-o.reference[p],_=d==="real"?await s.getOffsetParent?.(u):i.floating,w=i.floating[v]||o.floating[h];(!w||!await s.isElement?.(_))&&(w=i.floating[v]||o.floating[h]);let R=C/2-S/2,$=w/2-x[h]/2-1,j=Math.min(f[g],$),M=Math.min(f[y],$),I=j,N=w-x[h]-M,E=w/2-x[h]/2+R,B=bv(I,E,N),z=!l.arrow&&Hr(r)!=null&&E!==B&&o.reference[h]/2-(E<I?j:M)-x[h]/2<0,P=z?E<I?E-I:E-N:0;return{[p]:m[p]+P,data:{[p]:B,centerOffset:E-B-P,...z&&{alignmentOffset:P}},reset:z}}}),dz=(e,t)=>{let{name:n,fn:a}=ane(e);return{name:n,fn:a,options:[e,t]}};var fz={name:"hide",async fn(e){let{width:t,height:n,x:a,y:r}=e.rects.reference,o=t===0&&n===0&&a===0&&r===0,s=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:s.top-n>=0||s.right-t>=0||s.bottom-n>=0||s.left-t>=0||o}}}};var Yf={sideX:"left",sideY:"top"};var Qv="--available-width",Jv="--available-height",mz="--anchor-width",pz="--anchor-height",gz="--transform-origin",hz="--positioner-width",bz="--positioner-height";var xz=Qv,vz=Jv;function _z(e,t,n){let a=e==="inline-start"||e==="inline-end";return{top:"top",right:a?n?"inline-start":"inline-end":"right",bottom:"bottom",left:a?n?"inline-end":"inline-start":"left"}[t]}function Cz(e,t,n){let{rects:a,placement:r}=e;return{side:_z(t,ma(r),n),align:Hr(r)||"center",anchor:{width:a.reference.width,height:a.reference.height},positioner:{width:a.floating.width,height:a.floating.height}}}function eC(e){return rne(e,UV)}function rne(e,t){let{anchor:n,positionMethod:a="absolute",side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,collisionBoundary:l,collisionPadding:u=5,sticky:c=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:m,keepMounted:p=!1,floatingRootContext:h,mounted:x,collisionAvoidance:b,shift:g,nodeId:y,adaptiveOrigin:v,lazyFlip:C=!1,externalTree:S}=e,[_,w]=br.useState(null);!x&&_!==null&&w(null);let R=b.side||"flip",$=b.align||"flip",j=b.fallbackAxisSide||"end",M=g?.crossAxis??!1,I=g?.rootBoundary,N=typeof n=="function"?n:void 0,E=X(N),B=N?E:n,z=vt(n),P=vt(x),L=Ja()==="rtl",V=_||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":L?"left":"right","inline-start":L?"right":"left"}[r],q=s==="center"?V:`${V}-${s}`,G=u;typeof G=="number"?G={top:G,right:G,bottom:G,left:G}:G&&(G={top:G.top||0,right:G.right||0,bottom:G.bottom||0,left:G.left||0});let T=1,F=r==="bottom"?T:0,O=r==="top"?T:0,Q=r==="right"?T:0,W=r==="left"?T:0,ee={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:G},le=br.useRef(null),ce=vt(o),J=vt(i),te=typeof o!="function"?o:0,pe=typeof i!="function"?i:0,be=[];m&&be.push(m),be.push(rR(Te=>{let Bt=Cz(Te,r,L),rt=typeof ce.current=="function"?ce.current(Bt):ce.current,Ut=typeof J.current=="function"?J.current(Bt):J.current;return{mainAxis:rt,crossAxis:Ut,alignmentAxis:Ut}},[te,pe,L,r]));let je=$==="none"&&R!=="shift",ge=!je&&(c||M||R==="shift"),$e=R==="none"?null:iR({...ee,padding:{top:G.top+T+F,right:G.right+T+W,bottom:G.bottom+T+O,left:G.left+T+Q},mainAxis:!M&&R==="flip",crossAxis:$==="flip"?"alignment":!1,fallbackAxisSideDirection:j}),ue=je?null:oR({...ee,rootBoundary:I,mainAxis:$!=="none",crossAxis:ge,limiter:c||M?void 0:sR(Te=>{if(!le.current)return{};let{width:Bt,height:rt}=le.current.getBoundingClientRect(),Ut=Za(ma(Te.placement)),Ea=Ut==="y"?Bt:rt,Aa=Ut==="y"?G.left+G.right:G.top+G.bottom;return{offset:Ea/2+Aa/2}})},[ee,c,M,I,G,$]);R==="shift"||$==="shift"||s==="center"?be.push(ue,$e):be.push($e,ue),be.push(lR({...ee,apply({elements:{floating:Te},availableWidth:Bt,availableHeight:rt,rects:Ut}){if(!P.current)return;let Ea=Te.style;Ea.setProperty(xz,`${Bt}px`),Ea.setProperty(vz,`${rt}px`);let Aa=qe(Te).devicePixelRatio||1,{x:Gc,y:ci,width:tu,height:vo}=Ut.reference,Je=(Math.round((Gc+tu)*Aa)-Math.round(Gc*Aa))/Aa,Ft=(Math.round((ci+vo)*Aa)-Math.round(ci*Aa))/Aa;Ea.setProperty(mz,`${Je}px`),Ea.setProperty(pz,`${Ft}px`)}}),dz(Te=>({element:le.current||Se(Te.elements.floating).createElement("div"),padding:le.current?d:0,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(Te){let{elements:{floating:Bt},middlewareData:rt,placement:Ut,platform:Ea,rects:Aa,y:Gc}=Te,ci=ma(Ut),tu=Hr(Ut),vo=Za(ci)==="y",Je=le.current,Ft=typeof o=="function"?o(Cz(Te,r,L)):o,cs;if(!Je&&tu&&Math.abs(vo?rt.shift?.x||0:rt.shift?.y||0)<=1)cs=tu==="start"===(vo&&Ea.isRTL?.(Bt)===!0)?"100%":"0%";else{let au=vo?rt.arrow?.x||0:rt.arrow?.y||0,Sm=vo?Je?.clientWidth||0:Je?.clientHeight||0;cs=`${au+Sm/2}px`}let nu=ci==="top"||ci==="left"?`calc(100% + ${Ft}px)`:`${-Ft}px`;return ge&&vo&&Math.abs(rt.shift?.y||0)>Ft&&(nu=`${Aa.reference.y+Aa.reference.height/2-Gc}px`),Bt.style.setProperty(gz,vo?`${cs} ${nu}`:`${nu} ${cs}`),{}}},fz,v),U(()=>{!x&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[x,h]);let Le=br.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:Oe,elements:Ae,x:gt,y:re,middlewareData:fe,update:Y,placement:H,context:ie,isPositioned:Be,floatingStyles:Ht}=t({rootContext:h,open:p?x:void 0,placement:q,middleware:be,strategy:a,whileElementsMounted:p?void 0:(...Te)=>Lh(...Te,Le),nodeId:y,externalTree:S}),{sideX:fn,sideY:Nt}=fe.adaptiveOrigin||Yf,jt=Be?a:"fixed",zn=br.useMemo(()=>{let Te;return Be?v?Te={position:jt,[fn]:gt,[Nt]:re}:Te={...Ht,position:jt}:Te={position:jt,top:0,left:0},Te[xz]="100vw",Te[vz]="100vh",Be||(Te.opacity=0),Te},[v,jt,fn,gt,Nt,re,Ht,Be]),qn=br.useRef(null);U(()=>{if(!x)return;let Te=z.current,Bt=typeof Te=="function"?Te():Te,Ut=(wz(Bt)?Bt.current:Bt)||null||null;Ut!==qn.current&&(Oe.setPositionReference(Ut),qn.current=Ut)},[x,Oe,B,z]),br.useEffect(()=>{if(!x)return;let Te=z.current;typeof Te!="function"&&wz(Te)&&Te.current!==qn.current&&(Oe.setPositionReference(Te.current),qn.current=Te.current)},[x,Oe,B,z]),br.useEffect(()=>{if(p&&x&&Ae.reference&&Ae.floating)return Lh(Ae.reference,Ae.floating,Y,Le)},[p,x,Ae,Y,Le]);let mn=ma(H),na=_z(r,mn,L),Ta=Hr(H)||"center",xr=!!fe.hide?.referenceHidden;U(()=>{C&&x&&Be&&mn!==V&&w(mn)},[C,x,Be,mn,V]);let En=br.useMemo(()=>({position:"absolute",top:fe.arrow?.y,left:fe.arrow?.x}),[fe.arrow]),Yt=fe.arrow?.centerOffset!==0;return br.useMemo(()=>({positionerStyles:zn,arrowStyles:En,arrowRef:le,arrowUncentered:Yt,side:na,align:Ta,physicalSide:mn,anchorHidden:xr,refs:Oe,context:ie,isPositioned:Be,update:Y}),[zn,En,le,Yt,na,Ta,mn,xr,Oe,ie,Be,Y])}function wz(e){return e!=null&&"current"in e}function Zf(e){return e==="starting"?A3:Qe}function tC(e,t,{styles:n,transitionStatus:a,props:r,refs:o,hidden:s,inert:i=!1}){let l={...n};return i&&(l.pointerEvents="none"),oe("div",e,{state:t,ref:o,props:[{role:"presentation",hidden:s,style:l},Zf(a),r],stateAttributesMapping:Qs})}var Sz=k(Z(),1),kz=nC.forwardRef(function(t,n){let{render:a,className:r,anchor:o,positionMethod:s="absolute",side:i="top",align:l="center",sideOffset:u=0,alignOffset:c=0,collisionBoundary:d="clipping-ancestors",collisionPadding:f=5,arrowPadding:m=5,sticky:p=!1,disableAnchorTracking:h=!1,collisionAvoidance:x=D3,style:b,...g}=t,y=zr(),v=oz(),C=y.useState("open"),S=y.useState("mounted"),_=y.useState("trackCursorAxis"),w=y.useState("disableHoverablePopup"),R=y.useState("floatingRootContext"),$=y.useState("instantType"),j=y.useState("transitionStatus"),M=y.useState("adaptiveOrigin"),I=eC({anchor:o,positionMethod:s,floatingRootContext:R,mounted:S,side:i,sideOffset:u,align:l,alignOffset:c,collisionBoundary:d,collisionPadding:f,sticky:p,arrowPadding:m,disableAnchorTracking:h,keepMounted:v,collisionAvoidance:x,adaptiveOrigin:M}),N=nC.useMemo(()=>({open:C,side:I.side,align:I.align,anchorHidden:I.anchorHidden,instant:_!=="none"?"tracking-cursor":$}),[C,I.side,I.align,I.anchorHidden,_,$]),E=tC(t,N,{styles:I.positionerStyles,transitionStatus:j,props:g,refs:[n,y.useStateSetter("positionerElement")],hidden:!S,inert:!C||_==="both"||w});return(0,Sz.jsx)(jR.Provider,{value:I,children:E})});var $z=k(A(),1);var Lz=$z.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,i=zr(),{side:l,align:u}=Xf(),c=i.useState("open"),d=i.useState("instantType"),f=i.useState("transitionStatus"),m=i.useState("popupProps"),p=i.useState("floatingRootContext"),h=i.useState("disabled"),x=i.useState("closeDelay");ga({open:c,ref:i.context.popupRef,onComplete(){c&&i.context.onOpenChangeComplete?.(!0)}}),CR(p,{enabled:!h,closeDelay:x});let b=i.useStateSetter("popupElement");return oe("div",t,{state:{open:c,side:l,align:u,instant:d,transitionStatus:f},ref:[n,i.context.popupRef,b],props:[Dv,m,Zf(f),s],stateAttributesMapping:cv})});var Rz=k(A(),1);var Iz=Rz.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,i=zr(),{arrowRef:l,side:u,align:c,arrowUncentered:d,arrowStyles:f}=Xf(),m=i.useState("open"),p=i.useState("instantType");return oe("div",t,{state:{open:m,side:u,align:c,uncentered:d,instant:p},ref:[n,l],props:[{style:f,"aria-hidden":!0},s],stateAttributesMapping:Qs})});var jz=k(A(),1);var TR=k(Z(),1),Tz=function(t){let{delay:n,closeDelay:a,timeout:r=400}=t,o=jz.useMemo(()=>({open:n,close:a}),[n,a]);return(0,TR.jsx)(LR.Provider,{value:n,children:(0,TR.jsx)(DL,{delay:o,timeoutMs:r,children:t.children})})};var zz=k(A(),1);var ta=k(A(),1),Bz=k(wo(),1);function Kf(e){return Gd(19)?e:e?"true":void 0}var Ez=k(A(),1);function aC(e){let[t,n]=Ez.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}var Jf=k(A(),1);function Qf(e){let t=jn(e),n=parseFloat(t.width)||0,a=parseFloat(t.height)||0,r=He(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:a;return(El(n)!==o||El(a)!==s)&&(n=o,a=s),{width:n,height:a}}var Th="--popup-width",Eh="--popup-height";function Mz(e){let{popupElement:t,positionerElement:n,content:a,mounted:r,onMeasureLayout:o,onMeasureLayoutComplete:s,side:i,direction:l}=e,u=Hf(t,!0),c=Ia(),d=Jf.useRef(null),f=Jf.useRef(!0),m=Jf.useRef(De),p=X(o),h=X(s),x=Jf.useMemo(()=>one(i,l),[i,l]);U(()=>{if(!r){m.current=De,f.current=!0,d.current=null;return}if(!t||!n)return;m.current=Pz(t,x),ER(t,"auto");let b=oC(t,"position","static"),g=oC(t,"transform","none"),y=oC(t,"scale","1"),v=Pz(n,{[Qv]:"max-content",[Jv]:"max-content"});function C(){b(),g(),v()}function S(){C(),y()}if(p?.(),f.current||d.current===null){rC(n,"max-content");let $=Qf(t);return d.current=$,rC(n,$),S(),h?.(null,$),f.current=!1,()=>{m.current(),m.current=De}}rC(n,"max-content");let _=d.current,w=Qf(t);d.current=w,ER(t,_),S(),h?.(_,w),rC(n,w);let R=new AbortController;return c.request(()=>{ER(t,w),u(()=>{t.style.setProperty(Th,"auto"),t.style.setProperty(Eh,"auto")},R.signal)}),()=>{R.abort(),c.cancel(),m.current(),m.current=De}},[a,t,n,u,c,r,p,h,x])}function one(e,t){let n=e==="top",a=e==="left"||e===(t==="rtl"?"inline-end":"inline-start");return!n&&!a?Qe:{position:"absolute",[n?"bottom":"top"]:"0",[a?"right":"left"]:"0"}}function oC(e,t,n){let a=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,a)}}function Pz(e,t){let n=[];for(let[a,r]of Object.entries(t))n.push(oC(e,a,r));return n.length?()=>{n.forEach(a=>a())}:De}function ER(e,t){let n=t==="auto"?"auto":`${t.width}px`,a=t==="auto"?"auto":`${t.height}px`;e.style.setProperty(Th,n),e.style.setProperty(Eh,a)}function rC(e,t){let n=t==="max-content"?"max-content":`${t.width}px`,a=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty(hz,n),e.style.setProperty(bz,a)}var Dz={name:"adaptiveOrigin",async fn(e){let{x:t,y:n,rects:{floating:a},elements:{floating:r},platform:o,strategy:s,placement:i}=e,l=qe(r),u=l.getComputedStyle(r);if(!(u.transitionDuration!=="0s"&&u.transitionDuration!==""))return{x:t,y:n,data:Yf};let d=await o.getOffsetParent?.(r),f={width:0,height:0};if(s==="fixed"&&l?.visualViewport)f={width:l.visualViewport.width,height:l.visualViewport.height};else if(d===l){let g=Se(r);f={width:g.documentElement.clientWidth,height:g.documentElement.clientHeight}}else await o.isElement?.(d)&&(f=await o.getDimensions(d));let m=ma(i),p=t,h=n;m==="left"&&(p=f.width-(t+a.width)),m==="top"&&(h=f.height-(n+a.height));let x=m==="left"?"right":Yf.sideX,b=m==="top"?"bottom":Yf.sideY;return{x:p,y:h,data:{sideX:x,sideY:b}}}};var Nz="data-activation-direction";var em=k(Z(),1),Fz={activationDirection:e=>e?{[Nz]:e}:null};function Vz(e){let{store:t,side:n,children:a}=e,r=Ja(),o=t.useState("activeTriggerElement"),s=t.useState("activeTriggerId"),i=t.useState("open"),l=t.useState("payload"),u=t.useState("mounted"),c=t.useState("popupElement"),d=t.useState("positionerElement"),f=aC(i?o:null),m=une(s,l),p=ta.useRef(null),[h,x]=ta.useState(null),[b,g]=ta.useState(null),y=ta.useRef(null),v=ta.useRef(null),C=Hf(y,!0),S=Ia(),_=ta.useRef(null),[w,R]=ta.useState(null),[$,j]=ta.useState(!1);U(()=>(t.set("adaptiveOrigin",Dz),()=>{t.set("adaptiveOrigin",void 0)}),[t]);let M=X(()=>{y.current?.style.setProperty("animation","none"),y.current?.style.setProperty("transition","none"),v.current?.style.setProperty("display","none")}),I=X(D=>{y.current?.style.removeProperty("animation"),y.current?.style.removeProperty("transition"),v.current?.style.removeProperty("display"),D&&R(D)}),N=X(()=>{_.current?.abort();let D=new AbortController;_.current=D,C(()=>{x(null),R(null),p.current=null},D.signal)}),E=ta.useRef(null);U(()=>{(!i||!u)&&(E.current=null)},[i,u]),U(()=>{if(o&&f&&o!==f&&E.current!==o&&p.current){x(p.current),j(!0);let D=lne(f,o);g(D),E.current=o}},[o,f]),U(()=>{h!=null&&(_.current?.abort(),j(!0),S.request(()=>{Bz.flushSync(()=>{j(!1)}),N()}))},[m,h,N,S]),U(()=>{let D=y.current;if(!D)return;let L=Se(D).createElement("div");for(let V of Array.from(D.childNodes))L.appendChild(V.cloneNode(!0));p.current=L});let B=h!=null,z;B?z=(0,em.jsxs)(ta.Fragment,{children:[(0,em.jsx)("div",{"data-previous":!0,inert:Kf(!0),ref:v,style:{...w?{[Th]:`${w.width}px`,[Eh]:`${w.height}px`}:null,position:"absolute"},"data-ending-style":$?void 0:""},"previous"),(0,em.jsx)("div",{"data-current":!0,ref:y,"data-starting-style":$?"":void 0,children:a},m)]}):z=(0,em.jsx)("div",{"data-current":!0,ref:y,children:a},m),U(()=>{let D=v.current;!D||!h||D.replaceChildren(...Array.from(h.childNodes))},[h]),Mz({popupElement:c,positionerElement:d,mounted:u,content:l,onMeasureLayout:M,onMeasureLayoutComplete:I,side:n,direction:r});let P={activationDirection:ine(b),transitioning:B};return{children:z,state:P}}function ine(e){if(e)return`${Oz(e.horizontal,5,"right","left")} ${Oz(e.vertical,5,"down","up")}`}function Oz(e,t,n,a){return e>t?n:e<-t?a:""}function lne(e,t){let n=e.getBoundingClientRect(),a=t.getBoundingClientRect(),r={x:n.left+n.width/2,y:n.top+n.height/2},o={x:a.left+a.width/2,y:a.top+a.height/2};return{horizontal:o.x-r.x,vertical:o.y-r.y}}function une(e,t){let[n,a]=ta.useState(0),r=ta.useRef(e),o=ta.useRef(t),s=ta.useRef(!1);return U(()=>{let i=r.current,l=o.current,u=e!==i,c=t!==l;u?(a(d=>d+1),s.current=!c):s.current&&c&&(a(d=>d+1),s.current=!1),r.current=e,o.current=t},[e,t]),`${e??"current"}-${n}`}var qz=zz.forwardRef(function(t,n){let{render:a,className:r,style:o,children:s,...i}=t,l=zr(),u=Xf(),c=l.useState("instantType"),{children:d,state:f}=Vz({store:l,side:u.side,children:s}),m={activationDirection:f.activationDirection,transitioning:f.transitioning,instant:c};return oe("div",t,{state:m,ref:n,props:[i,{children:d}],stateAttributesMapping:Fz})});var Ah=class extends jv{constructor(){super(KV(),"Tooltip")}open(t){this.openByTrigger(t)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Hz(){return new Ah}var ni=k(Z(),1);function Uz({delay:e=0,...t}){return(0,ni.jsx)(os.Provider,{"data-slot":"tooltip-provider",delay:e,...t})}function tm({...e}){return(0,ni.jsx)(os.Root,{"data-slot":"tooltip",...e})}function nm({...e}){return(0,ni.jsx)(os.Trigger,{"data-slot":"tooltip-trigger",...e})}function am({className:e,side:t="top",sideOffset:n=4,align:a="center",alignOffset:r=0,children:o,...s}){return(0,ni.jsx)(os.Portal,{children:(0,ni.jsx)(os.Positioner,{align:a,alignOffset:r,side:t,sideOffset:n,className:"isolate z-50",children:(0,ni.jsxs)(os.Popup,{"data-slot":"tooltip-content",className:ne("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s,children:[o,(0,ni.jsx)(os.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}var Ac=k(Z(),1),cne={running:{Icon:Ui,cls:"text-info animate-spin",hint:"Running"},queued:{Icon:Op,cls:"text-warning animate-pulse",hint:"Queued: waiting for a free worker slot"},done:{Icon:No,cls:"text-success animate-in zoom-in-50 duration-300",hint:"Done"},failed:{Icon:Oo,cls:"text-destructive animate-in zoom-in-50 duration-300",hint:"Failed: the worker or its model reported an error"},timeout:{Icon:Ap,cls:"text-warning animate-in zoom-in-50 duration-300",hint:"Timed out: the worker passed its time limit (30 minutes unless set otherwise) and was stopped; what it had done is kept"},stopped:{Icon:Tp,cls:"text-muted-foreground",hint:"Stopped: ended with pitroom stop"}},dne={Icon:Xi,cls:"text-destructive animate-in zoom-in-50 duration-300",hint:"Done, but its verify command failed: open it for the output"};function Gz({state:e,verifyFailed:t,className:n}){let a=e==="done"&&t,{Icon:r,cls:o,hint:s}=a?dne:cne[e];return(0,Ac.jsxs)(tm,{children:[(0,Ac.jsx)(nm,{render:(0,Ac.jsx)("span",{tabIndex:0,className:"inline-flex rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring"}),children:(0,Ac.jsx)(r,{className:ne("size-5 shrink-0",o,n),"aria-label":a?"done, verify failed":e})}),(0,Ac.jsx)(am,{className:"max-w-64",children:s})]})}var Wz="data:image/gif;base64,R0lGODdhgACAANUAAAAAACMVEWJvf2FwgGdxf2pyfnBzfrtzXHp1fIR3e415eZd6eJ18d6V9draBc3WEk8qEcNSGb92HbN6IbeCJbdqKcteMdc2QgMaTh8OUioWVpL+Xj7Sbm6mgpqSjraGksJymtZmouJqot6CrtczT2dHX3fX2+P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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Ewum8/otBrd+lbD67h8Hm+7Ry26fk+337dwfIKDZH53eYSJgoZuXY5QfziPk0ORgCsNmZmUUJqbTJEtng2cS6OMX6KepUqnoH+qmqxJriuWsZ+zQrUqtyy8ujrAKL6Yq8E8wwbFKsrILsrMKc7Pv8e2oday1TnR2cbb3DDesNq5KBnp6pTq6eakr4fvK+3uk/Xz8Y35KfUZ7O349frW7Bo6fPcCgjuXQhoKV/7WJfQ3zWBDghW3RbQHIwGGjx91bMzIkBjGh8c2//6L4REkBpERScLDVm4hPJU5WoKESRFluIE1C2ocydLlyxxEDZCTZxMFhac9Oxrlme4pBZmotOCaeVDhI4RCSy47qdRiVEdgsepLJdDA2S5pfYp1WPan27hc8C7d11TcOIsmg6r1Cw3wWMFyuRLuS5NpWMWLBwN1LDly5cCUE1tui5nv482MJ3u+bHkv29CgTWvlXNowXUWw9WTNgii2bTWzqdS+zbtM7im7ewv/7SS4cN7Em4B2RHe5FEtBnMOADkb6C+o+rE/HbkP7de5PvCenLn489PJrjQRYz769+/fw48ufT7++/fv48+vfz7+///8ABrjfAgQWaGCB7R2oIMSBCS5ooAINOsggewJIiCB7Fl74XoYTrsfhAhFKCCGGGbY3AIchShjfhyk62KKCI3pYInsnziijje6xSCKOHMYYAIo0AnmjhSsK+aORPb54oIlIGingk1BGKeWUVFZp5ZVYZqmlfzoOqeKOIippIJM4amDmmWieWSSPTVroo5E1EslemnSauaacXroIpoNv4hjnl+vVSeedgB7JpptiahjAn3oGKiiahDZqKJ6TOohAoh0uauSjkG7p6aeghirqqKSWWmoIADs=";var en=k(Z(),1),hne={claude:Wz,codex:Xz,gemini:Yz,opencode:Zz},bne={opencode:"OpenCode",codex:"Codex",claude:"Claude Code",gemini:"Gemini CLI",qwen:"Qwen Code",kilo:"Kilo Code"};function sC({backend:e,active:t,className:n}){let a=bne[e];if(!a)return null;let r=t?hne[e]:void 0;return r?(0,en.jsx)("img",{src:r,alt:a,title:a,draggable:!1,className:"size-8 shrink-0 [image-rendering:pixelated]"}):(0,en.jsxs)("svg",{viewBox:e==="opencode"?"0 0 512 512":"0 0 24 24",role:"img","aria-label":a,className:ne("size-5 shrink-0",e==="opencode"&&"ring-1 ring-foreground/20",n),children:[(0,en.jsx)("title",{children:a}),e==="opencode"&&(0,en.jsxs)(en.Fragment,{children:[(0,en.jsx)("rect",{width:"512",height:"512",rx:"96",className:"fill-[#131010]"}),(0,en.jsx)("path",{d:"M320 224V352H192V224H320Z",fill:"#5A5858"}),(0,en.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M384 416H128V96H384V416ZM320 160H192V352H320V160Z",fill:"white"})]}),e==="codex"&&(0,en.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",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"}),e==="gemini"&&(0,en.jsx)("path",{fill:"#4285F4",fillRule:"evenodd",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"}),e==="qwen"&&(0,en.jsxs)(en.Fragment,{children:[(0,en.jsx)("rect",{width:"24",height:"24",rx:"5",className:"fill-[#615CED]"}),(0,en.jsx)("text",{x:"12",y:"17",textAnchor:"middle",fontSize:"15",fontWeight:"700",fill:"white",fontFamily:"ui-sans-serif, system-ui, sans-serif",children:"Q"})]}),e==="kilo"&&(0,en.jsxs)(en.Fragment,{children:[(0,en.jsx)("rect",{width:"24",height:"24",rx:"5",className:"fill-[#1C1C1C] dark:fill-[#F8F675]"}),(0,en.jsx)("text",{x:"12",y:"17",textAnchor:"middle",fontSize:"15",fontWeight:"700",className:"fill-[#F8F675] dark:fill-[#1C1C1C]",fontFamily:"ui-sans-serif, system-ui, sans-serif",children:"K"})]}),e==="claude"&&(0,en.jsx)("path",{fill:"#D97757",fillRule:"evenodd",clipRule:"evenodd",d:"M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z"})]})}var Fl={};aa(Fl,{Content:()=>Sq,Corner:()=>Rq,Root:()=>lq,Scrollbar:()=>_q,Thumb:()=>$q,Viewport:()=>vq});var dt=k(A(),1);var iC=k(A(),1),AR=iC.createContext(void 0);function ss(){let e=iC.useContext(AR);if(e===void 0)throw new Error(Ve(53));return e}function bo(e,t,n){if(!e)return 0;let a=getComputedStyle(e),r=`${t}${n==="x"?"Inline":"Block"}`,o=parseFloat(a[`${r}Start`]);return n==="x"&&t==="margin"?o*2:o+parseFloat(a[`${r}End`])}var Kz=k(Z(),1),lC="base-ui-disable-scrollbar",ai={className:lC,getElement(e){return(0,Kz.jsx)("style",{nonce:e,href:lC,precedence:"base-ui:low",children:`.${lC}{scrollbar-width:none}.${lC}::-webkit-scrollbar{display:none}`})}};var Qz="data-has-overflow-x",Jz="data-has-overflow-y",eq="data-overflow-x-start",tq="data-overflow-x-end",nq="data-overflow-y-start",aq="data-overflow-y-end";var rm=e=>t=>t?{[e]:""}:null,Bl={hasOverflowX:rm(Qz),hasOverflowY:rm(Jz),overflowXStart:rm(eq),overflowXEnd:rm(tq),overflowYStart:rm(nq),overflowYEnd:rm(aq),cornerHidden:()=>null};var uC=k(A(),1),xne=uC.createContext(void 0),vne={disableStyleElements:!1};function om(){return uC.useContext(xne)??vne}var cC="--scroll-area-corner-height",dC="--scroll-area-corner-width";var oq="data-orientation";var iq=k(Z(),1),wne={x:0,y:0},sq={width:0,height:0},_ne={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},Sne={x:!0,y:!0,corner:!0},lq=dt.forwardRef(function(t,n){let{render:a,className:r,overflowEdgeThreshold:o,style:s,...i}=t,{xStart:l,xEnd:u,yStart:c,yEnd:d}=kne(o),f=Cn(),m=nt(),p=nt(),{nonce:h,disableStyleElements:x}=om(),[b,g]=dt.useState(!1),[y,v]=dt.useState(!1),[C,S]=dt.useState(!1),[_,w]=dt.useState(!1),[R,$]=dt.useState(!1),[j,M]=dt.useState(sq),[I,N]=dt.useState(sq),[E,B]=dt.useState(_ne),[z,P]=dt.useState(Sne),D=dt.useRef(null),L=dt.useRef(null),V=dt.useRef(null),q=dt.useRef(null),G=dt.useRef(null),T=dt.useRef(null),F=dt.useRef(null),O=dt.useRef(null),Q=dt.useRef(0),W=dt.useRef(0),ee=dt.useRef(0),le=dt.useRef(0),ce=dt.useRef("vertical"),J=dt.useRef(wne),te=dt.useRef(null);function pe(Y){let H=Y?S:v,ie=Y?m:p;H(!0),ie.start(500,()=>{H(!1)})}let be=X(Y=>{let H=Y.x-J.current.x,ie=Y.y-J.current.y;J.current=Y,ie!==0&&pe(!0),H!==0&&pe(!1)}),je=X(()=>{let Y=L.current;Y&&te.current===null&&(te.current=Y.style.scrollSnapType,Y.style.scrollSnapType="none")}),ge=X(Y=>{if(Y.button!==0||O.current!==null&&(ce.current==="vertical"?G.current:T.current)?.hasPointerCapture(O.current))return;O.current=Y.pointerId,Q.current=Y.clientY,W.current=Y.clientX,ce.current=Y.currentTarget.getAttribute(oq);let H=L.current;H&&(ee.current=H.scrollTop,le.current=H.scrollLeft,je()),(ce.current==="vertical"?G.current:T.current)?.setPointerCapture(Y.pointerId)}),$e=X(Y=>{if(Y.pointerId!==O.current)return;O.current=null,(ce.current==="vertical"?S:v)(!1),te.current!==null&&(L.current&&(L.current.style.scrollSnapType=te.current),te.current=null);let H=ce.current==="vertical"?G.current:T.current;H?.hasPointerCapture(Y.pointerId)&&H.releasePointerCapture(Y.pointerId)}),ue=X(Y=>{if(Y.pointerId!==O.current)return;if(Y.buttons%2===0){$e(Y);return}let H=L.current;if(!H)return;let ie=ce.current==="vertical",Be=ie?G.current:T.current,Ht=ie?V.current:q.current;if(!Be||!Ht)return;let fn=ie?"y":"x",Nt=bo(Ht,"padding",fn),jt=bo(Be,"margin",fn),zn=ie?Be.offsetHeight:Be.offsetWidth,mn=(ie?Ht.offsetHeight:Ht.offsetWidth)-zn-Nt-jt,na=ie?Y.clientY-Q.current:Y.clientX-W.current,Ta=mn<=0?0:na/mn,xr=ie?H.scrollHeight:H.scrollWidth,En=ie?H.clientHeight:H.clientWidth,Te=(ie?ee.current:le.current)+Ta*(xr-En);ie?H.scrollTop=Te:H.scrollLeft=Te,Y.preventDefault(),pe(ie)});function Le(Y){w(Y.pointerType==="touch")}function Oe(Y){if(Le(Y),Y.pointerType!=="touch"){let H=de(D.current,Y.target);g(H)}}let Ae=dt.useMemo(()=>({scrolling:y||C,hasOverflowX:!z.x,hasOverflowY:!z.y,overflowXStart:E.xStart,overflowXEnd:E.xEnd,overflowYStart:E.yStart,overflowYEnd:E.yEnd,cornerHidden:z.corner}),[y,C,z.x,z.y,z.corner,E]),gt={role:"presentation",onPointerEnter:Oe,onPointerMove:Oe,onPointerDown:Le,onPointerLeave(){g(!1)},style:{position:"relative",[cC]:`${j.height}px`,[dC]:`${j.width}px`}},re=oe("div",t,{state:Ae,ref:[n,D],props:[gt,i],stateAttributesMapping:Bl}),fe=dt.useMemo(()=>({handlePointerDown:ge,handlePointerMove:ue,handlePointerUp:$e,handleScroll:be,disableViewportSnap:je,cornerSize:j,setCornerSize:M,thumbSize:I,setThumbSize:N,hasMeasuredScrollbar:R,setHasMeasuredScrollbar:$,touchModality:_,cornerRef:F,scrollingX:y,scrollingY:C,hovering:b,setHovering:g,viewportRef:L,scrollbarYRef:V,scrollbarXRef:q,thumbYRef:G,thumbXRef:T,rootId:f,hiddenState:z,setHiddenState:P,overflowEdges:E,setOverflowEdges:B,viewportState:Ae,overflowEdgeThreshold:{xStart:l,xEnd:u,yStart:c,yEnd:d}}),[ge,ue,$e,be,je,j,I,R,_,y,C,b,f,z,E,Ae,l,u,c,d]);return(0,iq.jsxs)(AR.Provider,{value:fe,children:[!x&&ai.getElement(h),re]})});function kne(e){let t=typeof e=="number"?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,t?.xStart||0),xEnd:Math.max(0,t?.xEnd||0),yStart:Math.max(0,t?.yStart||0),yEnd:Math.max(0,t?.yEnd||0)}}var Pc=k(A(),1);function Xr(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var fC=k(A(),1),PR=fC.createContext(void 0);function uq(){let e=fC.useContext(PR);if(e===void 0)throw new Error(Ve(55));return e}var yr=1;function sm(e,t){return Math.max(0,e-t)}function ri(e,t){if(t<=0)return 0;let n=Xr(e,0,t),a=n,r=t-n,o=a<=yr,s=r<=yr;return o&&s?a<=r?0:t:o?0:s?t:n}var cq="--scroll-area-overflow-x-start",dq="--scroll-area-overflow-x-end",fq="--scroll-area-overflow-y-start",mq="--scroll-area-overflow-y-end";var mC="--scroll-area-thumb-height",pC="--scroll-area-thumb-width";var yq=k(Z(),1),xq=[cq,dq,fq,mq],hq=!1;function Lne(){hq||it.engine.webkit||(typeof CSS<"u"&&"registerProperty"in CSS&&xq.forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),hq=!0)}var vq=Pc.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,{viewportRef:i,scrollbarYRef:l,scrollbarXRef:u,thumbYRef:c,thumbXRef:d,cornerRef:f,cornerSize:m,setCornerSize:p,setThumbSize:h,rootId:x,setHiddenState:b,hiddenState:g,setHasMeasuredScrollbar:y,handleScroll:v,touchModality:C,setHovering:S,setOverflowEdges:_,overflowEdgeThreshold:w,viewportState:R}=ss(),$=Ja(),j=Pc.useRef(!0),M=Pc.useRef([NaN,NaN,NaN,NaN]),I=nt(),N=nt(),E=X(()=>{let L=i.current,V=l.current,q=u.current,G=c.current,T=d.current,F=f.current;if(!L)return;let O=L.scrollHeight,Q=L.scrollWidth,W=L.clientHeight,ee=L.clientWidth,le=L.scrollTop,ce=L.scrollLeft,J=M.current,te=Number.isNaN(J[0]);if(J[0]=W,J[1]=O,J[2]=ee,J[3]=Q,te&&y(!0),O===0||Q===0)return;let pe=Rne(L),be=pe.y,je=pe.x,ge=ee/Q,$e=W/O,ue=Math.max(0,Q-ee),Le=Math.max(0,O-W),Oe=0,Ae=0;je||(Oe=ri($==="rtl"?-ce:ce,ue),Ae=ue-Oe);let gt=be?0:ri(le,Le),re=be?0:Le-gt,fe=je?0:ee,Y=be?0:W,H=0,ie=0;!je&&!be&&(H=V?.offsetWidth||0,ie=q?.offsetHeight||0);let Be=m.width===0&&m.height===0,Ht=Be?H:0,fn=Be?ie:0,Nt=bo(q,"padding","x"),jt=bo(V,"padding","y"),zn=bo(T,"margin","x"),qn=bo(G,"margin","y"),mn=fe-Nt-zn,na=Y-jt-qn,Ta=q?Math.min(q.offsetWidth-Ht,mn):mn,xr=V?Math.min(V.offsetHeight-fn,na):na,En=Math.max(16,Ta*ge),Yt=Math.max(16,xr*$e);if(h(rt=>gC(rt,{width:En,height:Yt})),V&&G){let rt=V.offsetHeight-Yt-jt-qn,Ut=bq(G,mC,le,Le,O,Yt,rt);G.style.transform=`translate3d(0,${Ut}px,0)`}if(q&&T){let rt=q.offsetWidth-En-Nt-zn,Ut=$==="rtl"?-ce:ce,Ea=bq(T,pC,Ut,ue,Q,En,rt);T.style.transform=`translate3d(${$==="rtl"?-Ea:Ea}px,0,0)`}let Te=[Oe,Ae,gt,re];xq.forEach((rt,Ut)=>{L.style.setProperty(rt,`${Te[Ut]}px`)}),F&&p(rt=>gC(rt,{width:H,height:ie})),b(rt=>gC(rt,pe));let Bt={xStart:!je&&Oe>w.xStart,xEnd:!je&&Ae>w.xEnd,yStart:!be&>>w.yStart,yEnd:!be&&re>w.yEnd};_(rt=>gC(rt,Bt))});U(()=>{Lne()},[]),U(()=>{queueMicrotask(E)},[E,g,$,w.xStart,w.xEnd,w.yStart,w.yEnd]),U(()=>{i.current?.matches(":hover")&&S(!0)},[i,S]),U(()=>{let L=i.current;if(typeof ResizeObserver>"u"||!L)return;let V=!1,q=new ResizeObserver(()=>{if(!V){V=!0;let G=M.current;if(G[0]===L.clientHeight&&G[1]===L.scrollHeight&&G[2]===L.clientWidth&&G[3]===L.scrollWidth)return}E()});return q.observe(L),N.start(0,()=>{let G=L.getAnimations({subtree:!0});G.length!==0&&Promise.allSettled(G.map(T=>T.finished)).then(E).catch(()=>{})}),()=>{q.disconnect(),N.clear()}},[E,i,N]);function B(){j.current=!1}let z={role:"presentation",...x&&{"data-id":`${x}-viewport`},tabIndex:g.x&&g.y?-1:0,className:ai.className,style:{overflow:"scroll"},onScroll(){i.current&&(E(),(C||!j.current)&&v({x:i.current.scrollLeft,y:i.current.scrollTop}),I.start(100,()=>{j.current=!0}))},onWheel:B,onPointerMove:B,onPointerEnter:B,onKeyDown:B},P=oe("div",t,{ref:[n,i],state:R,props:[z,s],stateAttributesMapping:Bl}),D=Pc.useMemo(()=>({computeThumbPosition:E}),[E]);return(0,yq.jsx)(PR.Provider,{value:D,children:P})});function Rne(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function gC(e,t){for(let n in t)if(e[n]!==t[n])return t;return e}function bq(e,t,n,a,r,o,s){let i=Xr(n,0,a),l=n-i,u=Math.max(16,o*r/(r+Math.abs(l)));return e.style.setProperty(t,l?`${u}px`:""),(a?i/a*s:0)+(l>0?o-u:0)}var bC=k(A(),1);var hC=k(A(),1),MR=hC.createContext(void 0);function Cq(){let e=hC.useContext(MR);if(e===void 0)throw new Error(Ve(54));return e}var wq=k(Z(),1),_q=bC.forwardRef(function(t,n){let{render:a,className:r,orientation:o="vertical",keepMounted:s=!1,style:i,...l}=t,{hovering:u,scrollingX:c,scrollingY:d,hiddenState:f,scrollbarYRef:m,scrollbarXRef:p,viewportRef:h,thumbYRef:x,thumbXRef:b,handlePointerDown:g,handlePointerUp:y,handleScroll:v,disableViewportSnap:C,rootId:S,thumbSize:_,hasMeasuredScrollbar:w,viewportState:R}=ss(),$=o==="vertical",j={...R,hovering:u,scrolling:$?d:c,orientation:o},M=Ja(),I=!w&&!s,N=$?f.y:f.x,E=s||!N;bC.useEffect(()=>{if(!E)return;let P=h.current,D=$?m.current:p.current;if(!D)return;function L(V){if(!P||V.ctrlKey)return;let q=!$,G=q?"scrollLeft":"scrollTop",T=q?V.deltaX:V.deltaY;if(T===0)return;let F=q?P.scrollWidth-P.clientWidth:P.scrollHeight-P.clientHeight,O=q&&M==="rtl"?-F:0,Q=q&&M==="rtl"?0:F,W=P[G];W<=O&&T<0||W>=Q&&T>0||(V.preventDefault(),P[G]=Math.min(Q,Math.max(O,W+T)),v({x:P.scrollLeft,y:P.scrollTop}))}return ke(D,"wheel",L,{passive:!1})},[M,v,$,p,m,E,h]);let B={...S&&{"data-id":`${S}-scrollbar`},"aria-hidden":!0,onPointerDown(P){if(P.button!==0)return;let D=ct(P.nativeEvent),L=$?x.current:b.current;if(L&&de(L,D))return;let V=h.current;if(!V)return;let q=$?m.current:p.current;if(!L||!q)return;let G=$?"y":"x",T=bo(L,"margin",G),F=bo(q,"padding",G),O=$?L.offsetHeight:L.offsetWidth,Q=q.getBoundingClientRect(),W=$?P.clientY-Q.top-O/2-F+T/2:P.clientX-Q.left-O/2-F+T/2,ee=$?V.scrollHeight:V.scrollWidth,le=$?V.clientHeight:V.clientWidth,J=($?q.offsetHeight:q.offsetWidth)-O-F-T;if(J<=0)return;let te=W/J,pe=ee-le;C(),$?V.scrollTop=te*pe:M==="rtl"?V.scrollLeft=-(1-te)*pe:V.scrollLeft=te*pe,v({x:V.scrollLeft,y:V.scrollTop}),g(P)},onMouseDown(P){P.preventDefault()},onPointerUp:y,onPointerCancel:y,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:I?"hidden":void 0,...$?{top:0,bottom:`var(${cC})`,insetInlineEnd:0,[mC]:`${_.height}px`}:{insetInlineStart:0,insetInlineEnd:`var(${dC})`,bottom:0,[pC]:`${_.width}px`}}},z=oe("div",t,{ref:[n,$?m:p],state:j,props:[B,l],stateAttributesMapping:Bl});return E?(0,wq.jsx)(MR.Provider,{value:o,children:z}):null});var Ph=k(A(),1);var Sq=Ph.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,{computeThumbPosition:i}=uq(),{hasMeasuredScrollbar:l,viewportState:u}=ss(),c=Ph.useRef(null),d=Ph.useRef(l);return U(()=>{if(typeof ResizeObserver>"u")return;let m=!1,p=new ResizeObserver(()=>{!m&&(m=!0,!d.current)||i()});return c.current&&p.observe(c.current),()=>{p.disconnect()}},[i]),oe("div",t,{ref:[n,c],state:u,stateAttributesMapping:Bl,props:[{role:"presentation",style:{minWidth:"fit-content"}},s]})});var kq=k(A(),1);var $q=kq.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,{thumbYRef:i,thumbXRef:l,handlePointerDown:u,handlePointerMove:c,handlePointerUp:d,scrollingX:f,scrollingY:m,hasMeasuredScrollbar:p}=ss(),h=Cq(),x=h==="vertical";return oe("div",t,{ref:[n,x?i:l],state:{scrolling:x?m:f,orientation:h},props:[{onPointerDown:u,onPointerMove:c,onPointerUp:d,onPointerCancel:d,style:{visibility:p?void 0:"hidden",...x?{height:"var(--scroll-area-thumb-height)"}:{width:"var(--scroll-area-thumb-width)"}}},s]})});var Lq=k(A(),1);var Rq=Lq.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,{cornerRef:i,cornerSize:l,hiddenState:u}=ss(),c=oe("div",t,{ref:[n,i],props:[{"aria-hidden":!0,style:{position:"absolute",bottom:0,insetInlineEnd:0,width:l.width,height:l.height}},s]});return u.corner?null:c});var Vl=k(Z(),1);function Iq({className:e,children:t,...n}){let a=rv();return(0,Vl.jsxs)(Fl.Root,{"data-slot":"scroll-area",className:ne("relative",e),...n,children:[(0,Vl.jsx)(Fl.Viewport,{ref:a,"data-slot":"scroll-area-viewport",className:"scroll-fade size-full max-h-[inherit] rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:t}),(0,Vl.jsx)(Ine,{}),(0,Vl.jsx)(Fl.Corner,{})]})}function Ine({className:e,orientation:t="vertical",...n}){return(0,Vl.jsx)(Fl.Scrollbar,{"data-slot":"scroll-area-scrollbar","data-orientation":t,orientation:t,className:ne("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent",e),...n,children:(0,Vl.jsx)(Fl.Thumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}var et=k(Z(),1);function jne({run:e,active:t}){let[n,a]=(0,yC.useState)(Date.now());return(0,yC.useEffect)(()=>{if(!t)return;let r=setInterval(()=>a(Date.now()),1e3);return()=>clearInterval(r)},[t]),(0,et.jsx)("span",{className:ne("text-sm font-semibold tabular-nums",t&&"text-info"),children:t?Rs((n-Date.parse(e.startedAt))/1e3):e.time})}function jq({run:e,expanded:t,when:n}){let a=e.state==="running"||e.state==="queued";return(0,et.jsxs)("div",{className:ne("grid grid-cols-[auto_1fr_auto] items-start gap-3.5 p-4 text-left",t&&"pr-12"),children:[(0,et.jsxs)("div",{className:"mt-0.5 flex w-5 flex-col items-center justify-between gap-2.5 self-stretch",children:[(0,et.jsx)(Gz,{state:e.state,verifyFailed:e.verifyFailed}),(0,et.jsx)(sC,{backend:By(e.worker).backend,active:e.state==="running",className:"size-[18px] rounded-[5px] opacity-90"})]}),(0,et.jsxs)("div",{className:"min-w-0 space-y-1.5",children:[(0,et.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,et.jsx)(Xd,{worker:e.worker}),(0,et.jsx)("span",{className:"text-[13px] text-muted-foreground",children:e.kind}),e.verdict&&(0,et.jsx)(yM,{verdict:e.verdict}),e.audit&&(0,et.jsx)(Ak,{audit:e.audit}),e.changes?(0,et.jsxs)(Qi,{children:[e.changes," file",e.changes===1?"":"s"]}):null,e.applied&&(0,et.jsx)(Qi,{tone:"good",children:"applied"})]}),(0,et.jsx)(c1,{className:"!mt-0 break-words px-0 text-[15px] font-normal leading-snug tracking-normal",children:e.task}),(a||e.note)&&(0,et.jsx)(d1,{className:"line-clamp-2 break-words px-0 text-[13px]",children:a?(0,et.jsx)(g0,{duration:1.6,children:e.note||"working"}):e.note}),e.state==="running"&&(0,et.jsx)("div",{className:"mt-2 h-[3px] overflow-hidden rounded-full bg-info/15",children:(0,et.jsx)("div",{className:"h-full w-[38%] rounded-full bg-gradient-to-r from-transparent via-info to-transparent",style:{animation:"indeterminate 1.5s cubic-bezier(.22,1,.36,1) infinite"}})})]}),(0,et.jsxs)("div",{className:"flex flex-col items-end gap-0.5",children:[(0,et.jsx)(jne,{run:e,active:a}),(0,et.jsx)("span",{className:"text-xs text-muted-foreground",children:[e.steps?`${e.steps} step${e.steps===1?"":"s"}`:"",e.tokens?`${Is(e.tokens)} tokens`:""].filter(Boolean).join(" \xB7 ")}),e.saved?(0,et.jsxs)("span",{className:"text-xs text-success",children:["~",Tr(e.saved)]}):null,n&&(0,et.jsx)("span",{title:new Date(e.startedAt).toLocaleString(),className:"text-xs text-muted-foreground/80",children:Oy(e.startedAt)})]})]})}function zl({run:e,index:t,when:n,defaultOpen:a,onClose:r}){let o=e.state==="running"||e.state==="queued";return(0,et.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2 fill-mode-both",style:{animationDelay:`${Math.min(t,8)*45}ms`,animationDuration:"500ms"},children:(0,et.jsxs)(i1,{defaultOpen:a,onClose:r,children:[(0,et.jsx)(p0,{className:ne("rounded-xl border pb-0 shadow-none transition-colors duration-300 hover:border-foreground/25",e.state==="running"&&"border-info/30"),children:(0,et.jsx)(jq,{run:e,when:n})}),(0,et.jsxs)(u1,{className:"max-h-[88vh] w-full border pb-0 shadow-2xl",children:[(0,et.jsx)("div",{className:"shrink-0",children:(0,et.jsx)(jq,{run:e,expanded:!0,when:n})}),(0,et.jsx)(Iq,{className:"max-h-[calc(88vh-6.5rem)] border-t",children:(0,et.jsx)(l1,{className:"px-4 pb-5 pt-4 sm:pl-[3.4rem]",children:(0,et.jsx)(zF,{id:e.id,live:o})})})]})]})})}var cm={};aa(cm,{Indicator:()=>t4,List:()=>u4,Panel:()=>a4,Root:()=>Dq,Tab:()=>Bq});var cn=k(A(),1);var Mc=k(A(),1);function Dc({controlled:e,default:t,name:n,state:a="value"}){let{current:r}=Mc.useRef(e!==void 0),[o,s]=Mc.useState(t),i=r&&e!==void 0?e:o,l=Mc.useCallback(u=>{r||s(u)},[]);return[i,l]}var oi=k(A(),1);var xC=k(A(),1),DR=xC.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function Tq(){return xC.useContext(DR)}var Eq=k(Z(),1);function im(e){let{children:t,elementsRef:n,labelsRef:a,onMapChange:r}=e,o=X(r),[,s]=oi.useState(!1),i=st(Ene).current,l=st(Tne).current,u=oi.useRef(0),c=oi.useRef(!0),d=oi.useRef(null),f=oi.useRef(null),m=X(()=>{c.current||(c.current=!0,s(C=>!C))}),p=X((C,S)=>{l.set(C,S),m()}),h=X(C=>{l.delete(C),m()}),x=X(C=>{let S=new Map;return n.current.length=0,a&&(a.current.length=0),C.forEach(_=>{S.set(_.element,{..._.registration.metadata??{},index:_.index}),n.current[_.index]=_.element,a&&(a.current[_.index]=_.registration.label!==void 0?_.registration.label:_.registration.textRef?.current?.textContent??_.element.textContent)}),u.current=n.current.length,S});function b(C){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!="function"||C.length<2)return;let S=new MutationObserver(w=>{if(!Mne(w))return;let R=null;for(let $ of C)if($.isConnected){if(R&&Aq(R,$)>0){S.disconnect(),m();return}R=$}});f.current=S;let _=new Set;for(let w=1;w<C.length;w+=1){let R=Pne(C[w-1],C[w]);R&&_.add(R)}_.forEach(w=>S.observe(w,{childList:!0}))}let g=X(()=>{let[C,S]=Ane(l),_=x(C),w=d.current,R=!w||w.length!==C.length||C.some(($,j)=>{let M=w[j];return $.index!==M.index||$.element!==M.element||$.registration.index!==M.registration.index||$.registration.metadata!==M.registration.metadata});b(S),d.current=C,c.current=!1,R&&(i.forEach($=>$(_)),o(_))});U(()=>(!c.current&&d.current&&x(d.current),()=>{n.current=[],a&&(a.current=[])}),[n,a,x]),U(()=>{c.current&&g()}),U(()=>()=>{f.current?.disconnect(),c.current=!0},[]);let y=X(C=>(i.add(C),()=>{i.delete(C)})),v=oi.useMemo(()=>({register:p,unregister:h,subscribeMapChange:y,nextIndexRef:u}),[p,h,y,u]);return(0,Eq.jsx)(DR.Provider,{value:v,children:t})}function Tne(){return new Map}function Ene(){return new Set}function Ane(e){let t=new Set,n=[],a=[];e.forEach((o,s)=>{if(!s.isConnected)return;let i=o.index,l={index:i??-1,element:s,registration:o};i===null?a.push(l):i>=0&&(t.add(i),n.push(l))});let r=0;return a.sort((o,s)=>Aq(o.element,s.element)),a.forEach(o=>{for(;t.has(r);)r+=1;o.index=r,n.push(o),r+=1}),t.size>0&&n.sort((o,s)=>o.index-s.index),[n,a.map(o=>o.element)]}function Pne(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function Mne(e){for(let t of e)for(let n=0;n<t.removedNodes.length;n+=1)if(t.removedNodes[n].isConnected)return!0;return!1}function Aq(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var vC=k(A(),1),NR=vC.createContext(void 0);function ql(){let e=vC.useContext(NR);if(e===void 0)throw new Error(Ve(64));return e}var Pq="data-activation-direction";var is={tabActivationDirection:e=>({[Pq]:e})};var OR=k(Z(),1),Dq=cn.forwardRef(function(t,n){let{className:a,defaultValue:r=0,onValueChange:o,orientation:s="horizontal",render:i,value:l,style:u,...c}=t,d=t.defaultValue!==void 0,f=cn.useRef([]),[m,p]=cn.useState(()=>new Map),[h,x]=Dc({controlled:l,default:r,name:"Tabs",state:"value"}),b=l!==void 0,[g,y]=cn.useState(()=>new Map),v=cn.useRef(void 0),C=cn.useCallback(W=>BR(g,W),[g]),[S,_]=cn.useState(()=>({previousValue:h,tabActivationDirection:"none"})),{previousValue:w,tabActivationDirection:R}=S,$=R,j=!1;w!==h&&($=Mq(w,h,s,g),j=w!=null&&h!=null&&C(h)==null);let M=j?w:h,I=w!==M||R!==$;U(()=>{I&&_({previousValue:M,tabActivationDirection:$})},[M,I,$]);let N=X((W,ee)=>{let le=Mq(h,W,s,g);ee.activationDirection=le,o?.(W,ee),!ee.isCanceled&&x(W)}),E=X((W,ee)=>{o?.(W,ve(ee,void 0,void 0,{activationDirection:"none"}))}),B=X((W,ee)=>(p(le=>{let ce=new Map(le);return ce.set(W,ee),ce}),()=>{p(le=>{if(le.get(W)!==ee)return le;let ce=new Map(le);return ce.delete(W),ce})})),z=cn.useCallback(W=>m.get(W),[m]),P=cn.useCallback(W=>{for(let ee of g.values())if(W===ee.value)return ee.id},[g]),D=cn.useMemo(()=>({getTabElementBySelectedValue:C,getTabIdByPanelValue:P,getTabPanelIdByValue:z,onValueChange:N,orientation:s,registerMountedTabPanel:B,setTabMap:y,tabActivationDirection:$,value:h}),[C,P,z,N,s,B,y,$,h]),L=cn.useMemo(()=>{for(let W of g.values())if(W.value===h)return W},[g,h]),V=cn.useMemo(()=>{for(let W of g.values())if(!W.disabled)return W.value},[g]),q=cn.useRef(!d),G=cn.useRef(r),T=cn.useRef(d),F=cn.useRef(!1);U(()=>{if(b)return;function W(J,te){x(J),_({previousValue:J,tabActivationDirection:"none"}),E(J,te),q.current=!1}if(g.size===0){F.current&&h!==null&&!v.current?.isConnected&&W(null,se.missing);return}F.current=!0,v.current=g.keys().next().value;let ee=L?.disabled,le=L==null&&h!==null;if(!ee&&h===G.current&&(T.current=!1),T.current&&ee&&h===G.current)return;let ce=q.current;if(ee||le){let J=V??null;if(h===J){q.current=!1;return}let te=se.missing;ce?te=se.initial:ee&&(te=se.disabled),W(J,te);return}ce&&L!=null&&(E(h,se.initial),q.current=!1)},[V,b,E,L,x,g,h]);let Q=oe("div",t,{state:{orientation:s,tabActivationDirection:$},ref:n,props:c,stateAttributesMapping:is});return(0,OR.jsx)(NR.Provider,{value:D,children:(0,OR.jsx)(im,{elementsRef:f,children:Q})})});function BR(e,t){for(let[n,a]of e.entries())if(t===a.value)return n;return null}function Mq(e,t,n,a){if(e==null||t==null)return"none";let[r,o,s]=n==="horizontal"?["left","left","right"]:["top","up","down"],i=BR(a,e),l=BR(a,t);if(i==null||l==null)return i!==l&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?s:o:"none";let u=i.getBoundingClientRect()[r],c=l.getBoundingClientRect()[r];return c<u?o:c>u?s:"none"}var si=k(A(),1);var Mh="data-composite-item-active";var Nq=k(A(),1);var Nc=k(A(),1);function lm(e={}){let{guess:t,label:n,metadata:a,textRef:r,index:o}=e,{register:s,unregister:i,subscribeMapChange:l,nextIndexRef:u}=Tq(),c=Nc.useRef(-1),[d,f]=Nc.useState(o==null&&t?()=>{if(c.current===-1){let x=u.current;u.current+=1,c.current=x}return c.current}:-1),m=o??d,p=Nc.useRef(null),h=Nc.useCallback(x=>{let b=p.current;b&&i(b),p.current=x,x&&s(x,{metadata:a??null,index:o??null,label:n,textRef:r})},[o,s,i,a,n,r]);return U(()=>{if(o==null)return l(x=>{let b=p.current?x.get(p.current)?.index:null;b!=null&&f(b)})},[o,l]),{ref:h,index:m}}function Oq(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:a}=kf(),{ref:r,index:o}=lm(e),s=n===o,i=Nq.useRef(null),l=jr(r,i);return{compositeProps:{tabIndex:s?0:-1,onFocus(){a(o)},onMouseMove(){let c=i.current;if(!t||!c)return;let d=c.hasAttribute("disabled")||c.ariaDisabled==="true";!s&&!d&&c.focus()}},compositeRef:l,index:o}}var CC=k(A(),1),FR=CC.createContext(void 0);function wC(){let e=CC.useContext(FR);if(e===void 0)throw new Error(Ve(65));return e}var Bq=si.forwardRef(function(t,n){let{className:a,disabled:r=!1,render:o,value:s,id:i,nativeButton:l=!0,style:u,...c}=t,{value:d,getTabPanelIdByValue:f,onValueChange:m,orientation:p,tabActivationDirection:h}=ql(),{activateOnFocus:x,registerTabResizeObserverElement:b,tabsListElement:g}=wC(),{highlightedIndex:y,onHighlightedIndexChange:v}=kf(),C=Cn(i),S=si.useMemo(()=>({disabled:r,id:C,value:s}),[r,C,s]),{compositeProps:_,compositeRef:w,index:R}=Oq({metadata:S}),$=s===d,j=si.useRef(!1),M=si.useRef(null),I=X(F=>{M.current?.(),M.current=F?b(F):null});U(()=>{if(j.current){j.current=!1;return}if(!($&&R>-1&&y!==R))return;let F=g;if(F!=null){let O=Wt(Se(F));if(O&&de(F,O))return}r||v(R)},[$,R,y,v,r,g]);let{getButtonProps:N,buttonRef:E}=Os({disabled:r,native:l,focusableWhenDisabled:!0}),B=f(s),z=si.useRef(!1),P=si.useRef(!1);function D(F){m(s,ve(se.none,F.nativeEvent,void 0,{activationDirection:"none"}))}function L(F){$||r||D(F)}function V(F){$||r||x&&(!z.current||P.current)&&D(F)}function q(F){if($||r)return;z.current=!0,P.current=F.button===0;let O=Se(F.currentTarget);function Q(){z.current=!1,P.current=!1,O.removeEventListener("pointerup",Q),O.removeEventListener("pointercancel",Q)}O.addEventListener("pointerup",Q),O.addEventListener("pointercancel",Q)}return oe("button",t,{state:{disabled:r,active:$,orientation:p,tabActivationDirection:h},ref:[n,E,w,I],props:[_,{role:"tab","aria-controls":B,"aria-selected":$,id:C,onClick:L,onFocus:V,onPointerDown:q,[Mh]:$?"":void 0,onKeyDownCapture(){j.current=!0}},c,N],stateAttributesMapping:is})});var um=k(A(),1);var WOe=k(A(),1);var Fq=k(Rh(),1);function Nne(){return De}function One(){return!1}function Bne(){return!0}function Vq(){return(0,Fq.useSyncExternalStore)(Nne,One,Bne)}var zq=k(Z(),1);function qq(e){let{script:t}=e,{nonce:n}=om();return Vq()?(0,zq.jsx)("script",{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}function Hq(e,t){let n=(t??qe(e).getComputedStyle(e)).transform,a=0,r=0,o=1;if(n&&n!=="none"){let s=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(s){let i=s[1].split(", ").map(parseFloat);i.length===6?(a=i[4],r=i[5],o=Math.sqrt(i[0]*i[0]+i[1]*i[1])):i.length===16&&(a=i[12],r=i[13],o=i[0])}}return{x:a,y:r,scale:o}}var Uq="--active-tab-left",Gq="--active-tab-right",Wq="--active-tab-top",Xq="--active-tab-bottom",Yq="--active-tab-width",Zq="--active-tab-height";var _C=k(Z(),1),Kq,Vne={...is,activeTabPosition:()=>null,activeTabSize:()=>null},Qq=2,t4=um.forwardRef(function(t,n){let{className:a,render:r,renderBeforeHydration:o=!1,style:s,...i}=t,{getTabElementBySelectedValue:l,orientation:u,tabActivationDirection:c,value:d}=ql(),{tabsListElement:f,registerIndicatorUpdateListener:m}=wC(),p=$V();um.useEffect(()=>m(p),[m,p]);let h=0,x=0,b=0,g=0,y=0,v=0,C=!1;if(d!=null&&f!=null){let M=l(d);if(M!=null){C=!0;let{width:I,height:N}=Qf(M),{width:E,height:B}=Qf(f),z=M.getBoundingClientRect(),P=f.getBoundingClientRect(),D=E>0?P.width/E:1,L=B>0?P.height/B:1,V=zne(M,f);h=V.left,b=V.top;let q=(z.left-P.left)/D+f.scrollLeft-f.clientLeft,G=(z.top-P.top)/L+f.scrollTop-f.clientTop,T=qne(M);Math.abs(q-T.x-h)<=Qq&&Math.abs(G-T.y-b)<=Qq&&(h=q,b=G),y=I,v=N,x=f.scrollWidth-h-y,g=f.scrollHeight-b-v}}let S=C?{left:h,right:x,top:b,bottom:g}:null,_=C?{width:y,height:v}:null,w=C?{[Uq]:`${h}px`,[Gq]:`${x}px`,[Wq]:`${b}px`,[Xq]:`${g}px`,[Yq]:`${y}px`,[Zq]:`${v}px`}:void 0,R=C&&y>0&&v>0,j=oe("span",t,{state:{orientation:u,activeTabPosition:S,activeTabSize:_,tabActivationDirection:c},ref:n,props:[{role:"presentation",style:w,hidden:!R},i,{suppressHydrationWarning:!0}],stateAttributesMapping:Vne});return d==null?null:(0,_C.jsxs)(um.Fragment,{children:[j,o&&(Kq||(Kq=(0,_C.jsx)(qq,{script:""})))]})});function zne(e,t){let n=Jq(e),a=Jq(t),r=n.left-a.left-t.clientLeft,o=n.top-a.top-t.clientTop,s=pr(e);for(;He(s)&&s!==t&&!Dr(s);)r-=s.scrollLeft,o-=s.scrollTop,s=pr(s);return{left:r,top:o}}function Jq(e){let t=0,n=0,a=e;for(;a!=null;){t+=a.offsetLeft,n+=a.offsetTop;let r=a.offsetParent;r!=null&&(t+=r.clientLeft,n+=r.clientTop),a=r}return{left:t,top:n}}function qne(e){let t=qe(e).getComputedStyle(e),{x:n,y:a}=Hq(e,t),r=n,o=a,{translate:s}=t;if(s&&s!=="none"){let i=s.split(" ");r+=e4(i[0],e.offsetWidth),o+=e4(i[1],e.offsetHeight)}return{x:r,y:o}}function e4(e,t){if(!e)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith("%")?n/100*t:n:0}var SC=k(A(),1);var n4="data-index";var fBe=Nf.startingStyle,mBe=Nf.endingStyle;var Une={...is,...Ya},a4=SC.forwardRef(function(t,n){let{className:a,value:r,render:o,keepMounted:s=!1,style:i,...l}=t,{value:u,getTabIdByPanelValue:c,orientation:d,tabActivationDirection:f,registerMountedTabPanel:m}=ql(),p=Cn(),{ref:h,index:x}=lm(),b=r===u,{mounted:g,transitionStatus:y,setMounted:v}=Qa(b),C=!g,S=c(r),_={hidden:C,orientation:d,tabActivationDirection:f,transitionStatus:y},w=SC.useRef(null),R=oe("div",t,{state:_,ref:[n,h,w],props:[{"aria-labelledby":S,hidden:C,id:p,role:"tabpanel",tabIndex:b?0:-1,inert:Kf(!b),[n4]:x},l],stateAttributesMapping:Une});return ga({open:b,ref:w,onComplete(){b||v(!1)}}),U(()=>{if(!(p==null||C&&!s))return m(r,p)},[C,s,r,p,m]),s||g?R:null});var yo=k(A(),1);var i4=k(A(),1);var Oc=k(A(),1);function kC(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}var LC="ArrowUp",RC="ArrowDown",IC="ArrowLeft",jC="ArrowRight",TC="Home",EC="End";var AC=new Set([LC,RC,IC,jC,TC,EC]),Gne="Shift",o4=[Gne,"Control","Alt","Meta"];function Wne(e){return He(e)&&e.tagName==="INPUT"}function VR(e){return!!(Wne(e)&&e.selectionStart!=null||He(e)&&e.tagName==="TEXTAREA")}function zR(e,t,n,a){if(!e||!t||!t.scrollTo)return;let r=e.scrollLeft,o=e.scrollTop,s=e.clientWidth<e.scrollWidth,i=e.clientHeight<e.scrollHeight;if(s&&a!=="vertical"){let l=r4(e,t,"left"),u=$C(e),c=$C(t);n==="ltr"&&(l+t.offsetWidth+c.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?r=l+t.offsetWidth+c.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:l-c.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(r=l-c.scrollMarginLeft-u.scrollPaddingLeft)),n==="rtl"&&(l-c.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft?r=l-c.scrollMarginLeft-u.scrollPaddingLeft:l+t.offsetWidth+c.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(r=l+t.offsetWidth+c.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(i&&a!=="horizontal"){let l=r4(e,t,"top"),u=$C(e),c=$C(t);l-c.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?o=l-c.scrollMarginTop-u.scrollPaddingTop:l+t.offsetHeight+c.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(o=l+t.offsetHeight+c.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:r,top:o,behavior:"auto"})}function r4(e,t,n){let a=n==="left"?"offsetLeft":"offsetTop",r=0;for(;t.offsetParent&&(r+=t[a],t.offsetParent!==e);)t=t.offsetParent;return r}function $C(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function s4(e){let{loopFocus:t=!0,orientation:n="both",grid:a,onLoop:r,direction:o,highlightedIndex:s,onHighlightedIndexChange:i,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:c,disabledIndices:d,modifierKeys:f=za}=e,[m,p]=Oc.useState(0),h=a!=null,x=Oc.useRef(null),b=jr(x,l),g=Oc.useRef([]),y=Oc.useRef(!1),v=Oc.useRef(null),C=s??m,S=X((j,M=!1)=>{if(v.current=g.current[j]??null,(i??p)(j),M){let I=g.current[j];zR(x.current,I,o,n)}}),_=X(j=>{if(j.size===0)return;if(y.current){let E=g.current,B=E.indexOf(v.current);if(B===-1){let z=E[C];!z||ei(E,C,d)?S(Xne(E,d)):v.current=z}else B!==C&&S(B);return}y.current=!0;let M=Array.from(j.keys()),I=M.find(E=>E?.hasAttribute(Mh))??null,N=I?j.get(I)?.index??-1:-1;if(N!==-1)S(N);else if(ei(M,C,d)){let E=Ur(M,{disabledIndices:d});Al(M,E)||S(E)}zR(x.current,I,o,n)});U(()=>{if(d==null||s!=null||!y.current)return;let j=g.current;if(ei(j,C,d)){let M=Ur(j,{disabledIndices:d});Al(j,M)||S(M)}},[d,s,C,g,S]);let w=X((j,M,I)=>r?r(j,M,I,g):I),R=X(j=>{let M=j.key===TC||j.key===EC;if(!AC.has(j.key)||!u&&M||Yne(j,f)||!x.current)return;let N=o==="rtl",E=N?IC:jC,B=N?jC:IC,z=n==="vertical"?RC:E,P=n==="vertical"?LC:B,D=ct(j.nativeEvent);if(D!=null&&VR(D)&&!kC(D)){let F=D.selectionStart,O=D.selectionEnd,Q=D.value;if(F==null||j.shiftKey||F!==O||j.key!==P&&F<Q.length||j.key!==z&&F>0)return}let L=C,V=Sc(g,d),q=Ff(g,d);a!=null&&(L=a({disabledIndices:d,elementsRef:g,event:j,highlightedIndex:C,loopFocus:t,maxIndex:q,minIndex:V,onLoop:w,orientation:n,rtl:N}));let G=n!=="vertical"&&j.key===E||n!=="horizontal"&&j.key===RC,T=n!=="vertical"&&j.key===B||n!=="horizontal"&&j.key===LC;u&&(j.key===TC?L=V:j.key===EC&&(L=q)),L===C&&(G||T)&&(t&&L===q&&G?(L=V,r&&(L=r(j,C,L,g))):t&&L===V&&T?(L=q,r&&(L=r(j,C,L,g))):L=Ur(g.current,{startingIndex:L,decrement:T,disabledIndices:d})),L!==C&&!Al(g.current,L)&&(c&&j.stopPropagation(),(h||M||G||T)&&j.preventDefault(),S(L,!0),queueMicrotask(()=>{g.current[L]?.focus()}))});return{props:{ref:b,onFocus(j){let M=x.current,I=ct(j.nativeEvent);!M||I==null||!VR(I)||I.setSelectionRange(0,I.value.length)},onKeyDown:R},highlightedIndex:C,onHighlightedIndexChange:S,elementsRef:g,onMapChange:_,relayKeyboardEvent:R}}function Xne(e,t){let n=-1;for(let a=0;a<e.length;a+=1){let r=e[a];if(!(!r||ei(e,a,t))){if(r.hasAttribute(Mh))return a;n===-1&&(n=a)}}return Math.max(n,0)}function Yne(e,t){for(let n of o4)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}var qR=k(Z(),1);function l4(e){let{render:t,className:n,style:a,refs:r=za,props:o=za,state:s=Qe,stateAttributesMapping:i,highlightedIndex:l,onHighlightedIndexChange:u,orientation:c,grid:d,loopFocus:f,onLoop:m,enableHomeAndEndKeys:p,onMapChange:h,stopEventPropagation:x=!0,rootRef:b,disabledIndices:g,modifierKeys:y,highlightItemOnHover:v=!1,tag:C="div",...S}=e,_=Ja(),{props:w,highlightedIndex:R,onHighlightedIndexChange:$,elementsRef:j,onMapChange:M,relayKeyboardEvent:I}=s4({grid:d,loopFocus:f,onLoop:m,orientation:c,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:b,stopEventPropagation:x,enableHomeAndEndKeys:p,direction:_,disabledIndices:g,modifierKeys:y}),N=oe(C,e,{state:s,ref:r,props:[w,...o,S],stateAttributesMapping:i}),E=i4.useMemo(()=>({highlightedIndex:R,onHighlightedIndexChange:$,highlightItemOnHover:v,relayKeyboardEvent:I}),[R,$,v,I]);return(0,qR.jsx)(r1.Provider,{value:E,children:(0,qR.jsx)(im,{elementsRef:j,onMapChange:B=>{h?.(B),M(B)},children:N})})}var HR=k(Z(),1),u4=yo.forwardRef(function(t,n){let{activateOnFocus:a=!1,className:r,loopFocus:o=!0,render:s,style:i,...l}=t,{orientation:u,setTabMap:c,tabActivationDirection:d}=ql(),[f,m]=yo.useState(0),[p,h]=yo.useState(null),x=yo.useRef(new Set),b=yo.useRef(new Set),g=yo.useRef(null);U(()=>{if(typeof ResizeObserver>"u")return;let w=new ResizeObserver(()=>{x.current.forEach(R=>{R()})});return g.current=w,p&&w.observe(p),b.current.forEach(R=>{w.observe(R)}),()=>{w.disconnect(),g.current=null}},[p]);let y=X(w=>(x.current.add(w),()=>{x.current.delete(w)})),v=X(w=>(b.current.add(w),g.current?.observe(w),()=>{b.current.delete(w),g.current?.unobserve(w)})),C={orientation:u,tabActivationDirection:d},S={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},_=yo.useMemo(()=>({activateOnFocus:a,registerIndicatorUpdateListener:y,registerTabResizeObserverElement:v,tabsListElement:p}),[a,y,v,p]);return(0,HR.jsx)(FR.Provider,{value:_,children:(0,HR.jsx)(l4,{render:s,className:r,style:i,state:C,refs:[n,h],props:[S,l],stateAttributesMapping:is,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:o,orientation:u,onHighlightedIndexChange:m,onMapChange:c,disabledIndices:za})})});var DC=k(Z(),1);function PC({className:e,orientation:t="horizontal",...n}){return(0,DC.jsx)(cm.Root,{"data-slot":"tabs","data-orientation":t,className:ne("group/tabs flex gap-2 data-horizontal:flex-col",e),...n})}var Zne=Wd("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function MC({className:e,variant:t="default",...n}){return(0,DC.jsx)(cm.List,{"data-slot":"tabs-list","data-variant":t,className:ne(Zne({variant:t}),e),...n})}function dm({className:e,...t}){return(0,DC.jsx)(cm.Tab,{"data-slot":"tabs-trigger",className:ne("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}var er=k(A(),1);var I4=k(A(),1);var KC={};aa(KC,{Control:()=>k4,Description:()=>_4,Error:()=>C4,Item:()=>R4,Label:()=>v4,Root:()=>x4,Validity:()=>L4});var Vn=k(A(),1);var NC=k(A(),1);var c4="data-valid",d4="data-invalid";var Bc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Qne={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},f4={disabled:!1,...Qne},ba={valid(e){return e===null?null:e?{[c4]:""}:{[d4]:""}}};var Jne={invalid:void 0,name:void 0,validityData:{state:Bc,errors:[],error:"",value:"",initialValue:null},setValidityData:De,disabled:void 0,setTouched:De,setDirty:De,setFilled:De,setFocused:De,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:f4,registerFieldControl:De,validation:{getValidationProps:(e,t=Qe)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:De,getInputControl:()=>null,commit:async()=>{},change:De}},UR=NC.createContext(Jne);function wn(e=!0){let t=NC.useContext(UR);if(t.setValidityData===De&&!e)throw new Error(Ve(28));return t}var OC=k(A(),1),eae=OC.createContext(void 0);function m4(e=!1){let t=OC.useContext(eae);if(!t&&!e)throw new Error(Ve(86));return t}var BC=k(A(),1);var tae=BC.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:De,validationMode:"onSubmit",submitCountRef:{current:0}});function Yr(){return BC.useContext(tae)}var Hl=k(A(),1);var FC=k(A(),1);var GR=FC.createContext({controlId:void 0,registerControlId:De,resetControlId:De,labelId:void 0,setLabelId:De,messageIds:[],setMessageIds:De,getDescriptionProps:e=>e});function Fn(){return FC.useContext(GR)}var p4=k(Z(),1),VC=function(t){let n=Cn(),[a,r]=Hl.useState(n),[o,s]=Hl.useState(),[i,l]=Hl.useState([]),u=a===void 0?n:a,c=st(()=>new Map),{messageIds:d}=Fn(),f=X((x,b)=>{let g=c.current;b===void 0?g.delete(x):g.set(x,b),r(y=>{if(g.size===0)return y;let v;for(let C of g.values()){if(C===y)return y;v===void 0&&(v=C)}return v})}),m=X(()=>{c.current.size===0&&r(n)}),p=Hl.useCallback(x=>{let b=x["aria-describedby"]?x["aria-describedby"].split(" "):[];return b.push(...d,...i),{...x,"aria-describedby":Array.from(new Set(b)).join(" ")||void 0}},[d,i]),h=Hl.useMemo(()=>({controlId:u,registerControlId:f,resetControlId:m,labelId:o,setLabelId:s,messageIds:i,setMessageIds:l,getDescriptionProps:p}),[u,f,m,o,s,i,l,p]);return(0,p4.jsx)(GR.Provider,{value:h,children:t.children})};var WR=k(A(),1);function fm(e={}){let{id:t,enabled:n=!0}=e,{controlId:a,registerControlId:r,resetControlId:o}=Fn(),s=Cn(),i=st(()=>Symbol()),l=WR.useRef(!1),u=WR.useRef(!1),c=X(()=>{!l.current||r===De||(l.current=!1,r(i.current,void 0))});return U(()=>{if(!n||r===De){c();return}let d;if(t!==void 0)u.current=!0,d=t;else if(u.current)d=s;else{o();return}if(d===void 0){c();return}l.current=!0,r(i.current,d)},[t,n,r,o,s,i,c]),U(()=>c,[c]),(n?a:void 0)??t??s}function zC(e,t){let n=Cn(e);return U(()=>(t(n),()=>{t(a=>a===n?void 0:a)}),[n,t]),n}function qC(e={}){let{id:t,fallbackControlId:n,native:a=!1,setLabelId:r,focusControl:o}=e,{controlId:s,setLabelId:i}=Fn(),l=X(m=>{i(m),r?.(m)}),u=zC(t,l),c=s??n;function d(m){if(o){o(m,c);return}if(!c)return;let p=Se(m.currentTarget).getElementById(c);He(p)&&nae(p)}function f(m){ct(m.nativeEvent)?.closest("button,input,select,textarea")||(!m.defaultPrevented&&m.detail>1&&m.preventDefault(),!a&&d(m))}return a?{id:u,htmlFor:c,onMouseDown:f}:{id:u,onClick:f,onPointerDown(m){m.preventDefault()}}}function nae(e){e.focus({focusVisible:!0})}var ii=k(A(),1);function Fc(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var XR=Object.keys(Bc);function aae(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}function g4(e,t){let n=null;for(let a of e.keys())if(aae(a,t)){if(!a.validity.valid)return a;n??=a}return n}function h4(e){return{...Bc,valid:!e,customError:e}}function YR(e){return e&&e.validationMessage?[e.validationMessage]:[]}function b4(e){let{elementRef:t,formRef:n}=Yr(),{setValidityData:a,validate:r,validityData:o,validationDebounceTime:s,invalid:i,markedDirtyRef:l,state:u,shouldValidateOnChange:c,validationMode:d,registeredFieldIdRef:f}=e,{controlId:m,getDescriptionProps:p}=Fn(),h=nt(),x=ii.useRef(null),b=st(()=>new Map).current,g=ii.useRef(0),y=ii.useRef(null),v=ii.useCallback((R,$)=>(b.set(R,$),()=>{b.delete(R)}),[b]),C=X(()=>{let R=g4(b,t.current);return R&&b.get(R)?.controlRef.current||null}),S=X(async(R,$=!1)=>{g.current+=1;let j=g.current;function M(T,F=i){let O=f.current??m;if(O==null)return;let Q=n.current.fields.get(O);if(!Q)return;let W=Fc(T,F);n.current.fields.set(O,{...Q,validityData:W})}function I(T,F){let O=T.valid===!1?F:[];return{value:R,state:T,error:O[0]??"",errors:O,initialValue:o.initialValue}}function N(T,F){let O=T.validity.customError?T.validationMessage:"",Q=F.replace(/\r\n?/g,`
|
|
174
|
+
`)){if(h.startsWith("diff --git ")){d(),r={path:vJ(h),status:"M",lines:[],additions:0,deletions:0,omittedLines:0,binary:!1,incomplete:!1},a.push(r),c=0;continue}if(!r)continue;let x=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/.exec(h);x?(d(),o=Number(x[1]),s=Number(x[3]),i=Number(x[2]??1),l=Number(x[4]??1),u=!0,f({type:"hunk",content:h})):u&&h.startsWith("\")?f({type:"meta",content:h}):u&&(i>0||l>0)?h.startsWith("+")&&l>0?(r.additions++,l--,f({type:"added",newLine:s++,content:h.slice(1)})):h.startsWith("-")&&i>0?(r.deletions++,i--,f({type:"removed",oldLine:o++,content:h.slice(1)})):h.startsWith(" ")&&i>0&&l>0?(i--,l--,f({type:"context",oldLine:o++,newLine:s++,content:h.slice(1)})):r.incomplete=!0:u||(h.startsWith("+++ ")&&h!=="+++ /dev/null"?r.path=uh(h.slice(4).replace(/\t$/,"")):h.startsWith("--- ")&&h!=="--- /dev/null"?r.path=uh(h.slice(4).replace(/\t$/,"")):/^(GIT binary patch|Binary files .* differ)$/.test(h)?r.binary=!0:/^(new file mode|deleted file mode|old mode|new mode|rename from|rename to|similarity index) /.test(h)&&(h.startsWith("new file mode ")&&(r.status="A"),h.startsWith("deleted file mode ")&&(r.status="D"),h.startsWith("rename to ")&&(r.path=uh(h.slice(10),!1),r.status="R"),f({type:"meta",content:h})))}d(),n&&r&&(r.incomplete=!0);for(let h of a)(h.incomplete||h.binary)&&(h.additions=h.deletions=void 0);let m=new Map(a.map(h=>[h.path,h]));return[...t.map(h=>{let x=m.get(h.path);return m.delete(h.path),x?{...x,status:h.status}:{...h,lines:[],omittedLines:0,binary:!1,incomplete:n,unavailable:!0}}),...m.values()]}var _e=k(Z(),1);function ov({title:e,children:t}){return(0,_e.jsxs)("section",{className:"space-y-2",children:[(0,_e.jsx)("h4",{className:"text-[11px] font-semibold uppercase tracking-widest text-muted-foreground/80",children:e}),t]})}function CJ({title:e,children:t}){let[n,a]=(0,Vr.useState)(!1),r=(0,Vr.useId)(),o=$a();return(0,_e.jsxs)("section",{className:"space-y-2",children:[(0,_e.jsx)("h4",{children:(0,_e.jsxs)("button",{id:`${r}-trigger`,type:"button","aria-expanded":n,"aria-controls":`${r}-content`,onClick:()=>a(s=>!s),className:"flex min-h-7 w-full cursor-pointer items-center gap-2 rounded-md text-left text-[11px] font-semibold uppercase tracking-widest text-muted-foreground/80 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:[e,(0,_e.jsx)(_t.span,{"aria-hidden":"true",animate:{rotate:n?180:0},transition:o?{duration:0}:xl,className:"inline-flex shrink-0 text-muted-foreground/60",children:(0,_e.jsx)(ia,{className:"size-3.5"})})]})}),(0,_e.jsx)(vl,{id:`${r}-content`,role:"region","aria-labelledby":`${r}-trigger`,open:n,className:"space-y-2",children:t})]})}var bL=({children:e,mono:t})=>(0,_e.jsx)(DF,{className:ne("max-h-60 whitespace-pre-wrap break-words rounded-lg border bg-muted/40 p-3 text-[13px] leading-relaxed",t&&"font-mono text-xs"),children:e}),VF={worker:"Worker",model:"Model",mode:"Mode",started:"Started",time:"Duration",steps:"Steps",toolCalls:"Tool calls",tokens:"Tokens",returnedTokens:"Returned to agent",cost:"Worker cost",saved:"Saved",group:"Group",directory:"Directory"};function wJ(e,t,n=!1){return e==="started"?new Date(t).toLocaleString():e==="tokens"||e==="returnedTokens"?Is(Number(t)):e==="cost"?Number(t)?`${n?"~":""}$${Number(t).toFixed(3)}${n?" (estimated)":""}`:"free":e==="saved"?`~${Tr(Number(t))}`:String(t)}function yc({children:e,tone:t}){return(0,_e.jsx)("p",{className:ne("text-[13px]",t==="bad"?"text-destructive":t==="ok"?"text-muted-foreground":"text-warning"),children:e})}function _J({d:e,reload:t}){let[n,a]=(0,Vr.useState)(!1),[r,o]=(0,Vr.useState)(!1),[s,i]=(0,Vr.useState)(""),l=e.state==="running"||e.state==="queued";if(!l&&!e.card?.discardable)return null;let u=l?"Stop":"Discard",c=async()=>{o(!0),i("");try{await(l?$n.stop(e.id):$n.discard(e.id)),a(!1),t()}catch(d){i(d.message)}finally{o(!1)}};return(0,_e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[n?(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)("span",{className:"text-[13px] text-muted-foreground",children:l?"Stop this run?":"Throw away the isolated copy? The patch file stays."}),(0,_e.jsx)(on,{variant:"destructive",size:"sm",disabled:r,onClick:()=>void c(),children:r?`${u}\u2026`:`Yes, ${u.toLowerCase()}`}),(0,_e.jsx)(on,{variant:"ghost",size:"sm",disabled:r,onClick:()=>a(!1),children:"Cancel"})]}):(0,_e.jsx)(on,{variant:"outline",size:"sm",onClick:()=>a(!0),children:u}),s&&(0,_e.jsx)(yc,{tone:"bad",children:s})]})}function SJ({d:e,reload:t}){let[n,a]=(0,Vr.useState)(!1),[r,o]=(0,Vr.useState)(!1),s=e.state==="running"||e.state==="queued",i=(0,Vr.useMemo)(()=>e.fileDiffs??FF(e.patch??"",e.changes,/\n… \d+ more lines/.test(e.patch??"")),[e.fileDiffs,e.patch,e.changes]),l=(0,Vr.useMemo)(()=>BF(e.steps,i),[e.steps,i]);return(0,_e.jsxs)("div",{className:"space-y-5",children:[(0,_e.jsx)(_J,{d:e,reload:t}),!/^Review of /.test(e.task)&&(0,_e.jsx)(ov,{title:"Task",children:(0,_e.jsx)(bL,{children:e.task})}),(0,_e.jsx)(ov,{title:`What it did${e.steps.length?` \xB7 ${e.steps.length}`:""}`,children:e.steps.length?(0,_e.jsx)(MF,{items:l,status:s?"working":"complete",defaultOpen:!0,collapseOnComplete:!1,maxHeight:440,activeLabel:"Working\u2026"},e.id):(0,_e.jsx)("p",{className:"text-sm text-muted-foreground",children:s?"Waiting for its first step\u2026":"No activity was recorded for this run."})}),e.answer&&(0,_e.jsx)(ov,{title:"Result",children:(0,_e.jsx)(bL,{children:e.answer})}),e.changes.length>0&&(0,_e.jsxs)(CJ,{title:`Changes \xB7 ${e.changes.length} file${e.changes.length===1?"":"s"}`,children:[(0,_e.jsx)("div",{className:"space-y-0.5",children:i.map(u=>(0,_e.jsx)(nv,{diff:u},u.path))}),i.some(u=>u.omittedLines>0||u.incomplete)&&(0,_e.jsxs)("p",{className:"text-xs text-muted-foreground",children:[i.some(u=>u.incomplete)?"Saved patch":"Full patch",": ",(0,_e.jsxs)("code",{className:"font-mono",children:["pitroom show ",e.id," --patch"]})]})]}),(0,_e.jsxs)(ov,{title:"Details",children:[(0,_e.jsx)("dl",{className:"grid grid-cols-2 gap-x-6 gap-y-3 sm:grid-cols-3",children:Object.keys(VF).map(u=>{let c=e.info[u];return c==null||c===""||c===0&&u!=="cost"?null:(0,_e.jsxs)("div",{className:"min-w-0",children:[(0,_e.jsx)("dt",{className:"text-[11px] uppercase tracking-wide text-muted-foreground/80",children:VF[u]}),(0,_e.jsx)("dd",{className:"break-words text-[13px]",children:wJ(u,c,u==="cost"&&!!e.info.costEstimated)})]},u)})}),e.audit&&e.audit.state==="done"&&e.audit.verdict&&e.audit.verdict!=="agree"&&(0,_e.jsxs)(yc,{tone:"bad",children:[e.card?.kind==="audit"?"This audit disputes":"Audit by another worker:"," ",e.audit.disputed.length?e.audit.disputed.join(" \xB7 "):e.audit.verdict==="unclear"?"no verdict in the expected form":"see the audit run"]}),e.refs&&(0,_e.jsxs)(yc,{tone:e.refs.valid<e.refs.total?void 0:"ok",children:["References verified: ",e.refs.valid," of ",e.refs.total,e.refs.invalid.length?` \xB7 not found: ${e.refs.invalid.join(", ")}`:""]}),e.attempts.map((u,c)=>(0,_e.jsx)(yc,{children:u.skipped?`Skipped ${u.target}: ${u.error}`:`Fell back from ${u.target}: ${u.error}`},c)),e.warnings.map((u,c)=>(0,_e.jsx)(yc,{children:u},c)),e.verify&&(0,_e.jsxs)(yc,{tone:e.verify.ok?"ok":"bad",children:["Verify ",e.verify.ok?"passed":"failed",": ",e.verify.command]}),e.error&&(0,_e.jsx)(yc,{tone:"bad",children:e.error}),(0,_e.jsxs)("div",{className:"flex gap-1 pt-1",children:[(0,_e.jsxs)(on,{variant:"ghost",size:"sm",onClick:()=>{navigator.clipboard?.writeText(e.id),o(!0),setTimeout(()=>o(!1),1400)},children:[r?(0,_e.jsx)(Sa,{}):(0,_e.jsx)(oo,{}),r?"Copied":e.id]}),(0,_e.jsx)(on,{variant:"ghost",size:"sm",onClick:()=>a(u=>!u),children:n?"Hide full report":"Full report"})]}),n&&(0,_e.jsx)(bL,{mono:!0,children:e.report})]})]})}function zF({id:e,live:t}){let{data:n,error:a,reload:r}=Ll(()=>$n.run(e),t?3e3:6e5,[e,t]);return n?(0,_e.jsx)(SJ,{d:n,reload:()=>void r()}):a?(0,_e.jsx)("p",{className:"text-sm text-destructive",children:"Could not load this run."}):(0,_e.jsxs)("div",{className:"space-y-3",children:[(0,_e.jsx)(Zs,{className:"h-16"}),(0,_e.jsx)(Zs,{className:"h-24"})]})}var os={};aa(os,{Arrow:()=>Iz,Handle:()=>Ah,Popup:()=>Lz,Portal:()=>cz,Positioner:()=>kz,Provider:()=>Tz,Root:()=>ez,Trigger:()=>rz,Viewport:()=>qz,createHandle:()=>Hz});var Wf=k(A(),1);var qF=k(A(),1);var yL=[],xL;function HF(){return xL}function UF(e){yL.push(e)}function vL(e){let t=(n,a)=>{let r=st(kJ).current,o;try{xL=r;for(let s of yL)s.before(r);o=e(n,a);for(let s of yL)s.after(r);r.didInitialize=!0}finally{xL=void 0}return o};return t.displayName=e.displayName||e.name,t}function GF(e){return qF.forwardRef(vL(e))}function kJ(){return{didInitialize:!1}}var sv=k(A(),1),CL=sv.createContext(void 0);function zr(e){let t=sv.useContext(CL);if(t===void 0&&!e)throw new Error(Ve(72));return t}var Ra=k(A(),1);var WF=k(A(),1);function Mf(e){WF.useEffect(e,za)}var ch=0,da=class e{static create(){return new e}currentId=ch;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=ch,n()},t)}isStarted(){return this.currentId!==ch}clear=()=>{this.currentId!==ch&&(clearTimeout(this.currentId),this.currentId=ch)};disposeEffect=()=>this.clear};function nt(){let e=st(da.create).current;return Mf(e.disposeEffect),e}var it={};aa(it,{engine:()=>$L,env:()=>RL,mediaQuery:()=>IL,os:()=>SL,screenReader:()=>LL});var SL={};aa(SL,{android:()=>ZF,apple:()=>_L,ios:()=>wL,linux:()=>jJ,mac:()=>KF,windows:()=>IJ});function $J(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:LJ,platform:RJ,maxTouchPoints:XF}=$J(),xc=LJ.toLowerCase(),vc=RJ.toLowerCase();var wL=/^i(os$|p)/.test(vc)||vc==="macintel"&&XF>1,YF="android",ZF=vc===YF||xc.includes(YF),KF=!wL&&vc.startsWith("mac"),IJ=vc.startsWith("win"),jJ=!ZF&&/^(linux|chrome os)/.test(vc),_L=KF||wL;var $L={};aa($L,{blink:()=>EJ,gecko:()=>TJ,webkit:()=>kL});var kL=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),TJ=!kL&&xc.includes("firefox"),EJ=!kL&&xc.includes("chrom");var LL={};aa(LL,{voiceOver:()=>AJ});var AJ=_L;var RL={};aa(RL,{jsdom:()=>PJ});var PJ=/jsdom|happydom/.test(xc);var IL={};aa(IL,{iOS:()=>MJ});var MJ="@supports (-webkit-touch-callout: none)";function Xa(e){e.preventDefault(),e.stopPropagation()}function QF(e){return"nativeEvent"in e}function Il(e){return e.pointerType===""&&e.isTrusted?!0:it.os.android&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Df(e){return it.env.jsdom?!1:!it.os.android&&e.width===0&&e.height===0||it.os.android&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function hr(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function JF(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function Xt(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function de(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Ko(n)){let a=t;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function ct(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}var dh="data-base-ui-focusable";var jL="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",fh="ArrowLeft",mh="ArrowRight",TL="ArrowUp",iv="ArrowDown";var Nf={};aa(Nf,{endingStyle:()=>EL,startingStyle:()=>ph});var ph="data-starting-style",EL="data-ending-style";var DJ={[ph]:""},NJ={[EL]:""},Ya={transitionStatus(e){return e==="starting"?DJ:e==="ending"?NJ:null}};var e3="data-open",t3="data-closed";var n3="data-anchor-hidden";var Cc={};aa(Cc,{popupOpen:()=>lv,pressed:()=>AL});var lv="data-popup-open",AL="data-pressed";var BJ={[lv]:""},FJ={[lv]:"",[AL]:""},VJ={[e3]:""},zJ={[t3]:""},qJ={[n3]:""},uv={open(e){return e?BJ:null}},a3={open(e){return e?FJ:null}},Qs={open(e){return e?VJ:zJ},anchorHidden(e){return e?qJ:null}},cv={...Qs,...Ya};var IRe=Cc.popupOpen,gh="data-trigger-disabled";function jl(e,t){if(!Ie(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(gh);for(let[,a]of t.entries())if(de(a,n))return!a.hasAttribute(gh);return!1}function dv(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function o3(e){return e.matches("html,body")}function wc(e){return He(e)&&e.matches(jL)}function PL(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${jL}`)!=null}function hh(e){return e?e.getAttribute("role")==="combobox"&&wc(e):!1}function s3(e){if(!e||it.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function _c(e){return e?e.hasAttribute(dh)?e:e.querySelector(`[${dh}]`)||e:null}function HJ(e,t){return t!=null&&!hr(t)?0:typeof e=="function"?e():e}function po(e,t,n){let a=HJ(e,n);return typeof a=="number"?a:a?.[t]}function ML(e){return typeof e=="function"?e():e}function fv(e,t){return t||e==="click"||e==="mousedown"}function i3(e){return e?.includes("mouse")&&e!=="mousedown"}var se={};aa(se,{cancelOpen:()=>yee,chipRemovePress:()=>eee,clearPress:()=>JJ,closePress:()=>KJ,closeWatcher:()=>dee,decrementPress:()=>aee,disabled:()=>vee,drag:()=>gee,escapeKey:()=>cee,focusOut:()=>uee,imperativeAction:()=>_ee,incrementPress:()=>nee,initial:()=>wee,inputBlur:()=>see,inputChange:()=>ree,inputClear:()=>oee,inputPaste:()=>iee,inputPress:()=>lee,itemPress:()=>ZJ,keyboard:()=>mee,linkPress:()=>QJ,listNavigation:()=>fee,missing:()=>Cee,none:()=>UJ,outsidePress:()=>YJ,pointer:()=>pee,scrub:()=>bee,siblingOpen:()=>xee,swipe:()=>See,trackPress:()=>tee,triggerFocus:()=>XJ,triggerHover:()=>WJ,triggerPress:()=>GJ,wheel:()=>hee,windowResize:()=>kee});var UJ="none",GJ="trigger-press",WJ="trigger-hover",XJ="trigger-focus",YJ="outside-press",ZJ="item-press",KJ="close-press",QJ="link-press",JJ="clear-press",eee="chip-remove-press",tee="track-press",nee="increment-press",aee="decrement-press",ree="input-change",oee="input-clear",see="input-blur",iee="input-paste",lee="input-press",uee="focus-out",cee="escape-key",dee="close-watcher",fee="list-navigation",mee="keyboard",pee="pointer",gee="drag",hee="wheel",bee="scrub",yee="cancel-open",xee="sibling-open",vee="disabled",Cee="missing",wee="initial",_ee="imperative-action",See="swipe",kee="window-resize";function ve(e,t,n,a){let r=!1,o=!1,s=a??Qe;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){o=!0},get isCanceled(){return r},get isPropagationAllowed(){return o},trigger:n,...s}}var l3=k(Z(),1),u3=Ra.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new da,currentIdRef:{current:null},currentContextRef:{current:null}});function $ee(e,t){e.current=t.current}function DL(e){let{children:t,delay:n,timeoutMs:a=0}=e,r=Ra.useRef(n),o=Ra.useRef(n),s=Ra.useRef(null),i=Ra.useRef(null),l=nt();return U(()=>{if(o.current=n,!s.current){r.current=n;return}r.current={open:po(r.current,"open"),close:po(n,"close")}},[n,s,r,o]),(0,l3.jsx)(u3.Provider,{value:Ra.useMemo(()=>({hasProvider:!0,delayRef:r,initialDelayRef:o,currentIdRef:s,timeoutMs:a,currentContextRef:i,timeout:l}),[a,l]),children:t})}function NL(e,t={open:!1}){let{open:n}=t,a="rootStore"in e?e.rootStore:e,r=a.useState("floatingId"),o=Ra.useContext(u3),{currentIdRef:s,delayRef:i,timeoutMs:l,initialDelayRef:u,currentContextRef:c,hasProvider:d,timeout:f}=o,[m,p]=Ra.useState(!1),h=Ra.useRef(n);return U(()=>{h.current=n},[n]),U(()=>{function x(){c.current?.setIsInstantPhase(!1),s.current=null,c.current=null,i.current=u.current,f.clear()}if(s.current&&!n&&s.current===r){if(p(!1),l){let b=r;return f.start(l,()=>{a.select("open")||s.current&&s.current!==b||x()}),()=>{(h.current||s.current!==b)&&f.clear()}}x()}},[n,r,s,i,l,u,c,f,a]),U(()=>{if(!n)return;let x=c.current,b=s.current;f.clear(),c.current={onOpenChange:a.setOpen,setIsInstantPhase:p},s.current=r,i.current={open:0,close:po(u.current,"close")},b!==null&&b!==r?(p(!0),x?.setIsInstantPhase(!0),x?.onOpenChange(!1,ve(se.none))):(p(!1),x?.setIsInstantPhase(!1))},[n,r,a,s,i,u,c,f]),U(()=>()=>{if(s.current===r){if(c.current=null,!h.current)return;s.current=null,$ee(i,u),f.clear()}},[c,s,i,r,u,f]),Ra.useMemo(()=>({activeIdRef:s,hasProvider:d,delayRef:i,isInstantPhase:m}),[s,d,i,m])}var pa=k(A(),1);function ke(e,t,n,a){return e.addEventListener(t,n,a),()=>{e.removeEventListener(t,n,a)}}function fa(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function vt(e){let t=st(Lee,e).current;return t.next=e,U(t.effect),t}function Lee(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var mv=null,eIe=globalThis.requestAnimationFrame,OL=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let n=this.callbacks,a=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,a>0)for(let r=0;r<n.length;r+=1)n[r]?.(t)};request(t){let n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){let n=t-this.startId;n<0||n>=this.callbacks.length||this.callbacks[n]!==null&&(this.callbacks[n]=null,this.callbacksCount-=1)}},pv=new OL;var qr=class e{static create(){return new e}static request(t){return pv.request(t)}static cancel(t){return pv.cancel(t)}currentId=mv;request(t){this.cancel(),this.currentId=pv.request(()=>{this.currentId=mv,t()})}cancel=()=>{this.currentId!==mv&&(pv.cancel(this.currentId),this.currentId=mv)};disposeEffect=()=>this.cancel};function Ia(){let e=st(qr.create).current;return Mf(e.disposeEffect),e}var gv=k(A(),1);var c3={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Of={...c3,position:"fixed",top:0,left:0},d3={...c3,position:"absolute"};var f3=k(Z(),1),Bf=gv.forwardRef(function(t,n){let[a,r]=gv.useState();return U(()=>{it.screenReader.voiceOver&&it.engine.webkit&&r("button")},[]),(0,f3.jsx)("span",{...t,ref:n,style:Of,"aria-hidden":a?void 0:!0,...{tabIndex:0,role:a},"data-base-ui-focus-guard":""})});var Tl=Math.min,go=Math.max,El=Math.round,yh=Math.floor,ts=e=>({x:e,y:e}),Ree={left:"right",right:"left",bottom:"top",top:"bottom"};function bv(e,t,n){return go(e,Tl(t,n))}function ns(e,t){return typeof e=="function"?e(t):e}function ma(e){return e.split("-")[0]}function Hr(e){return e.split("-")[1]}function yv(e){return e==="x"?"y":"x"}function xh(e){return e==="y"?"height":"width"}function Za(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function vh(e){return yv(Za(e))}function g3(e,t,n){n===void 0&&(n=!1);let a=Hr(e),r=vh(e),o=xh(r),s=r==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=bh(s)),[s,bh(s)]}function h3(e){let t=bh(e);return[hv(e),t,hv(t)]}function hv(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var m3=["left","right"],p3=["right","left"],Iee=["top","bottom"],jee=["bottom","top"];function Tee(e,t,n){switch(e){case"top":case"bottom":return n?t?p3:m3:t?m3:p3;case"left":case"right":return t?Iee:jee;default:return[]}}function b3(e,t,n,a){let r=Hr(e),o=Tee(ma(e),n==="start",a);return r&&(o=o.map(s=>s+"-"+r),t&&(o=o.concat(o.map(hv)))),o}function bh(e){let t=ma(e);return Ree[t]+e.slice(t.length)}function Eee(e){var t,n,a,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(a=e.bottom)!=null?a:0,left:(r=e.left)!=null?r:0}}function xv(e){return typeof e!="number"?Eee(e):{top:e,right:e,bottom:e,left:e}}function Js(e){let{x:t,y:n,width:a,height:r}=e;return{width:a,height:r,top:n,left:t,right:t+a,bottom:n+r,x:t,y:n}}function Al(e,t){return t<0||t>=e.length}function Sc(e,t){return Ur(e.current,{disabledIndices:t})}function Ff(e,t){return Ur(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Ur(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:a,amount:r=1}={}){let o=t;do o+=n?-r:r;while(o>=0&&o<=e.length-1&&ei(e,o,a));return o}function ei(e,t,n){if(typeof n=="function"?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!kc(r)||r.matches(":disabled")?!0:!n&&(r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"):!1}function Aee(e){return e.visibility==="hidden"||e.visibility==="collapse"}function kc(e,t=e?jn(e):null){return!e||!e.isConnected||!t||Aee(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var Pee='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function Mee(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Ko(n)?n.host:null}function FL(e){for(let t of Array.from(e.children))if(rn(t)==="summary")return t;return null}function Dee(e,t){let n=FL(t);return!!n&&(e===n||de(n,e))}function y3(e){let t=e?rn(e):"";return e!=null&&e.matches(Pee)&&(t!=="summary"||e.parentElement!=null&&rn(e.parentElement)==="details"&&FL(e.parentElement)===e)&&(t!=="details"||FL(e)==null)&&(t!=="input"||e.type!=="hidden")}function x3(e){if(!y3(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=Mee(t)){let n=t!==e,a=rn(t)==="slot";if(t.hasAttribute("inert")||n&&rn(t)==="details"&&!t.open&&!Dee(e,t)||t.hasAttribute("hidden")||!a&&!Nee(t,n))return!1}return!0}function Nee(e,t){let n=jn(e);return t?n.display!=="none":kc(e,n)}function v3(e){let t=e.tabIndex;if(t<0){let n=rn(e);if(n==="details"||n==="audio"||n==="video"||He(e)&&e.isContentEditable)return 0}return t}function BL(e){if(rn(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function Oee(e,t){let n=BL(e);if(!n)return!0;let a=t.find(r=>{let o=BL(r);return o?.name===n.name&&o.form===n.form&&o.checked});return a?a===n:t.find(r=>{let o=BL(r);return o?.name===n.name&&o.form===n.form})===n}function C3(e){if(He(e)&&rn(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return He(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function w3(e,t){C3(e).forEach(n=>{y3(n)&&t.push(n),w3(n,t)})}function _3(e,t,n){C3(e).forEach(a=>{He(a)&&a.matches(t)&&n.push(a),_3(a,t,n)})}function vv(e){return x3(e)&&v3(e)>=0}function VL(e){let t=[];return w3(e,t),t.filter(x3)}function Ch(e){let t=VL(e);return t.filter(n=>v3(n)>=0&&Oee(n,t))}function S3(e,t){let n=Ch(e),a=n.length;if(a===0)return;let r=Xt(Se(e)),o=n.indexOf(r),s=o===-1?t===1?0:a-1:o+t;return n[s]}function Cv(e){return S3(Se(e).body,1)||e}function wv(e){return S3(Se(e).body,-1)||e}function $c(e,t){let n=t||e.currentTarget,a=e.relatedTarget;return!a||!de(n,a)}function k3(e){Ch(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function zL(e){let t=[];_3(e,"[data-tabindex]",t),t.forEach(n=>{let a=n.dataset.tabindex;delete n.dataset.tabindex,a?n.setAttribute("tabindex",a):n.removeAttribute("tabindex")})}function Gr(e,t,n=!0){return e.filter(r=>r.parentId===t).flatMap(r=>[...!n||r.context?.open?[r]:[],...Gr(e,r.id,n)])}function qL(e,t){let n=[],a=e.find(r=>r.id===t)?.parentId;for(;a;){let r=e.find(o=>o.id===a);a=r?.parentId,r&&(n=n.concat(r))}return n}function ti(e){return`data-base-ui-${e}`}var _v=0;function Vf(e,t={}){let{preventScroll:n=!1,sync:a=!1,shouldFocus:r}=t;cancelAnimationFrame(_v);function o(){r&&!r()||e?.focus({preventScroll:n})}if(a)return o(),De;let s=requestAnimationFrame(o);return _v=s,()=>{_v===s&&(cancelAnimationFrame(s),_v=0)}}var HL={inert:new WeakMap,"aria-hidden":new WeakMap},$3="data-base-ui-inert",GL={inert:new WeakSet,"aria-hidden":new WeakSet},wh=new WeakMap,UL=0;function Bee(e){return GL[e]}function j3(e){return e?Ko(e)?e.host:j3(e.parentNode):null}var L3=(e,t)=>t.map(n=>{if(e.contains(n))return n;let a=j3(n);return e.contains(a)?a:null}).filter(n=>n!=null),R3=e=>{let t=new Set;return e.forEach(n=>{let a=n;for(;a&&!t.has(a);)t.add(a),a=a.parentNode}),t},I3=(e,t,n)=>{let a=[],r=o=>{!o||n.has(o)||Array.from(o.children).forEach(s=>{rn(s)!=="script"&&(t.has(s)?r(s):a.push(s))})};return r(e),a};function Fee(e,t,n,a,{mark:r=!0}){let o=null;a?o="inert":n&&(o="aria-hidden");let s=null,i=null,l=L3(t,e),u=r?I3(t,R3(l),new Set(l)):[],c=[],d=[];if(o){let f=HL[o],m=Bee(o);i=m,s=f;let p=L3(t,Array.from(t.querySelectorAll("[aria-live]"))),h=l.concat(p);I3(t,R3(h),new Set(h)).forEach(b=>{let g=b.getAttribute(o),y=g!==null&&g!=="false",v=(f.get(b)||0)+1;f.set(b,v),c.push(b),v===1&&y&&m.add(b),y||b.setAttribute(o,o==="inert"?"":"true")})}return r&&u.forEach(f=>{let m=(wh.get(f)||0)+1;wh.set(f,m),d.push(f),m===1&&f.setAttribute($3,"")}),UL+=1,()=>{s&&c.forEach(f=>{let p=(s.get(f)||0)-1;s.set(f,p),p||(!i?.has(f)&&o&&f.removeAttribute(o),i?.delete(f))}),r&&d.forEach(f=>{let m=(wh.get(f)||0)-1;wh.set(f,m),m||f.removeAttribute($3)}),UL-=1,UL||(HL.inert=new WeakMap,HL["aria-hidden"]=new WeakMap,GL.inert=new WeakSet,GL["aria-hidden"]=new WeakSet,wh=new WeakMap)}}function WL(e,t={}){let{ariaHidden:n=!1,inert:a=!1,mark:r=!0}=t,o=Se(e[0]).body;return Fee(e,o,n,a,{mark:r})}var Bt=k(A(),1),XL=k(wo(),1);var Sv=k(A(),1);var T3=0;function Vee(e,t="mui"){let[n,a]=Sv.useState(e),r=e||n;return Sv.useEffect(()=>{n==null&&(T3+=1,a(`${t}-${T3}`))},[n,t]),r}var E3=Bg.useId;function Pl(e,t){if(E3!==void 0){let n=E3();return e??(t?`${t}-${n}`:n)}return Vee(e,t)}var A3={style:{transition:"none"}},P3="data-base-ui-click-trigger",zee="data-base-ui-swipe-ignore",qee="data-swipe-ignore",SIe=`[${zee}]`,kIe=`[${qee}]`,M3={fallbackAxisSide:"none"},D3={fallbackAxisSide:"end"},N3={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var Lc=k(Z(),1),O3=Bt.createContext(null),YL=()=>Bt.useContext(O3),Hee=ti("portal");function kv(e={}){let{ref:t,container:n,componentProps:a=Qe,elementProps:r}=e,o=Pl(),i=YL()?.portalNode,[l,u]=Bt.useState(null),[c,d]=Bt.useState(null),f=X(x=>{x!==null&&d(x)}),m=Bt.useRef(null);U(()=>{if(n===null){m.current&&(m.current=null,d(null),u(null));return}let x=(n&&(l0(n)?n:n.current))??i??document.body;if(x==null){m.current&&(m.current=null,d(null),u(null));return}m.current!==x&&(m.current=x,d(null),u(x))},[n,i]);let p=oe("div",a,{ref:[t,f],props:[{id:o,[Hee]:""},r]}),h=l&&p?XL.createPortal(p,l):null;return{node:c,nodeId:Bt.isValidElement(p)?p.props.id:void 0,subtree:h}}var ZL=Bt.forwardRef(function(t,n){let{render:a,className:r,style:o,children:s,container:i,portalOwnerRole:l,...u}=t,{node:c,nodeId:d,subtree:f}=kv({container:i,ref:n,componentProps:t,elementProps:u}),m=Bt.useRef(null),p=Bt.useRef(null),h=Bt.useRef(null),x=Bt.useRef(null),[b,g]=Bt.useState(null),y=Bt.useRef(!1),v=b?.modal,C=b?.open,S=!!b&&!b.modal&&b.open&&!!c;Bt.useEffect(()=>{if(!c||v)return;function w(R){c&&R.relatedTarget&&$c(R)&&(R.type==="focusin"?y.current&&(zL(c),y.current=!1):(k3(c),y.current=!0))}return fa(ke(c,"focusin",w,!0),ke(c,"focusout",w,!0))},[c,v]),U(()=>{!c||C!==!0||!y.current||(zL(c),y.current=!1)},[C,c]);let _=Bt.useMemo(()=>({beforeOutsideRef:m,afterOutsideRef:p,beforeInsideRef:h,afterInsideRef:x,portalNode:c,setFocusManagerState:g}),[c]);return(0,Lc.jsxs)(Bt.Fragment,{children:[f,(0,Lc.jsxs)(O3.Provider,{value:_,children:[S&&c&&(0,Lc.jsx)(Bf,{"data-type":"outside",ref:m,onFocus:w=>{if($c(w,c))h.current?.focus();else{let R=b?b.domReference:null;wv(R)?.focus()}}}),S&&c&&(0,Lc.jsx)("span",{role:l,"aria-owns":d,style:N3}),c&&XL.createPortal(s,c),S&&c&&(0,Lc.jsx)(Bf,{"data-type":"outside",ref:p,onFocus:w=>{if($c(w,c))x.current?.focus();else{let R=b?b.domReference:null;Cv(R)?.focus(),b?.closeOnFocusOut&&b?.onOpenChange(!1,ve(se.focusOut,w.nativeEvent))}}})]})]})});var Rc=k(A(),1);function B3(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(a=>a(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Uee=k(Z(),1),Gee=Rc.createContext(null),Wee=Rc.createContext(null),Ml=()=>Rc.useContext(Gee)?.id||null,Wr=e=>{let t=Rc.useContext(Wee);return e??t};function ho(e){return e==null?e:"current"in e?e.current:e}var _h=k(Z(),1);function Xee(e,t){let n=qe(ct(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}var F3=20,Dl=[];function KL(){Dl=Dl.filter(e=>e.deref()?.isConnected)}function V3(e){KL(),e&&rn(e)!=="body"&&(Dl.push(new WeakRef(e)),Dl.length>F3&&(Dl=Dl.slice(-F3)))}function z3(){return KL(),Dl[Dl.length-1]?.deref()}function Yee(e){return e?vv(e)?e:Ch(e)[0]||e:null}function q3(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let n=VL(e).filter(r=>{let o=r.getAttribute("data-tabindex")||"";return vv(r)||r.hasAttribute("data-tabindex")&&!o.startsWith("-")}),a=e.getAttribute("tabindex");n.length===0?a!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(a!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function QL(e){let{context:t,children:n,disabled:a=!1,initialFocus:r=!0,returnFocus:o=!0,restoreFocus:s=!1,modal:i=!0,closeOnFocusOut:l=!0,openInteractionType:u="",nextFocusableElement:c,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:m,getInsideElements:p}=e,h="rootStore"in t?t.rootStore:t,x=h.useState("open"),b=h.useState("domReferenceElement"),g=h.useState("floatingElement"),{events:y,dataRef:v}=h.context,C=X(()=>v.current.floatingContext?.nodeId),S=r===!1,_=hh(b)&&S,w=vt(r),R=vt(o),$=vt(u),j=vt(x),M=Wr(m),I=YL(),N=pa.useRef(!1),E=pa.useRef(!1),B=pa.useRef(!1),z=pa.useRef(null),P=pa.useRef(""),D=pa.useRef(""),L=pa.useRef(null),V=pa.useRef(null),q=jr(L,f,I?.beforeInsideRef),G=jr(V,I?.afterInsideRef),T=nt(),F=nt(),O=Ia(),Q=I!=null,W=_c(g),ee=X((J=W)=>J?Ch(J):[]),le=X(()=>p?.().filter(J=>J!=null)??[]);pa.useEffect(()=>{if(a||!i)return;function J(pe){pe.key==="Tab"&&de(W,Xt(Se(W)))&&ee().length===0&&!_&&Xa(pe)}let te=Se(W);return ke(te,"keydown",J)},[a,W,i,_,ee]),pa.useEffect(()=>{if(a||!x)return;let J=Se(W);function te(){B.current=!1}function pe(je){let ge=ct(je),$e=le(),ue=de(g,ge)||de(b,ge)||de(I?.portalNode,ge)||$e.some(Le=>Le===ge||de(Le,ge));B.current=!ue,D.current=je.pointerType||"keyboard",ge?.closest(`[${P3}]`)&&(E.current=!0,F.start(0,()=>{E.current=!1}))}function be(){D.current="keyboard"}return fa(ke(J,"pointerdown",pe,!0),ke(J,"pointerup",te,!0),ke(J,"pointercancel",te,!0),ke(J,"keydown",be,!0),te)},[a,g,b,W,x,I,F,le]),pa.useEffect(()=>{if(a||!l)return;let J=Se(W);function te(){E.current=!0,F.start(0,()=>{E.current=!1})}function pe($e){let ue=ct($e);vv(ue)&&(z.current=ue)}function be($e){let ue=$e.relatedTarget,Le=$e.currentTarget,Oe=ct($e);i&&ue==null&&Oe!=null&&de(g,Oe)&&V3(Oe),queueMicrotask(()=>{let Ae=C(),gt=h.context.triggerElements,re=le(),fe=ue?.hasAttribute(ti("focus-guard"))&&[L.current,V.current,I?.beforeInsideRef.current,I?.afterInsideRef.current,I?.beforeOutsideRef.current,I?.afterOutsideRef.current,ho(d),ho(c)].includes(ue),Y=!(de(b,ue)||de(g,ue)||de(ue,g)||de(I?.portalNode,ue)||re.some(H=>H===ue||de(H,ue))||gt.hasMatchingElement(H=>de(H,ue))||fe||M&&(Gr(M.nodesRef.current,Ae).find(H=>de(H.context?.elements.floating,ue)||de(H.context?.elements.domReference,ue))||qL(M.nodesRef.current,Ae).find(H=>[H.context?.elements.floating,_c(H.context?.elements.floating)].includes(ue)||H.context?.elements.domReference===ue)));if(Le===b&&W&&q3(W),s&&Le!==b&&!kc(Oe)&&Xt(J)===J.body){if(He(W)&&(W.focus(),s==="popup")){O.request(()=>{W.focus()});return}let H=ee(),ie=z.current,Be=(ie&&H.includes(ie)?ie:null)||H[H.length-1]||W;He(Be)&&Be.focus()}if(v.current.insideReactTree){v.current.insideReactTree=!1;return}(_||!i)&&ue&&Y&&!E.current&&(_||ue!==z3())&&(N.current=!0,h.setOpen(!1,ve(se.focusOut,$e)))})}function je(){B.current||(v.current.insideReactTree=!0,T.start(0,()=>{v.current.insideReactTree=!1}))}let ge=He(b)?b:null;if(!(!g&&!ge))return fa(ge&&ke(ge,"focusout",be),ge&&ke(ge,"pointerdown",te),g&&ke(g,"focusin",pe),g&&ke(g,"focusout",be),g&&I&&ke(g,"focusout",je,!0))},[a,b,g,W,i,M,I,h,l,s,ee,_,C,v,T,F,O,c,d,le]),pa.useEffect(()=>{if(a||!g||!x)return;let J=Array.from(I?.portalNode?.querySelectorAll(`[${ti("portal")}]`)||[]),pe=(M?qL(M.nodesRef.current,C()):[]).find(Le=>hh(Le.context?.elements.domReference||null))?.context?.elements.domReference,je=[...[g,...J,L.current,V.current,I?.beforeOutsideRef.current,I?.afterOutsideRef.current,...le()],pe,ho(d),ho(c),_?b:null].filter(Le=>Le!=null),ge=WL(je,{ariaHidden:i||_,mark:!1}),$e=[g,...J].filter(Le=>Le!=null),ue=WL($e);return()=>{ue(),ge()}},[x,a,b,g,i,I,_,M,C,c,d,le]),U(()=>{if(!x||a||!He(W))return;P.current="",D.current="";let J=Se(W),te=Xt(J);queueMicrotask(()=>{let pe=w.current,be=typeof pe=="function"?pe($.current||""):pe;if(be===void 0||be===!1||de(W,te))return;let ge=null,$e=()=>(ge==null&&(ge=ee(W)),ge[0]||W),ue;be===!0||be===null?ue=$e():ue=ho(be),ue=ue||$e();let Le=de(W,Xt(J));Vf(ue,{preventScroll:ue===W,shouldFocus(){if(!j.current)return!1;if(Le)return!0;let Oe=Xt(J);return!(Oe!==ue&&de(W,Oe))}})})},[a,x,W,ee,w,$,j]),U(()=>{if(a||!W)return;let J=Se(W),te=Xt(J),pe=$.current==null;V3(te);function be(ge){if(ge.open||(P.current=Xee(ge.nativeEvent,D.current)),ge.reason===se.triggerHover&&ge.nativeEvent.type==="mouseleave"&&(N.current=!0),ge.reason===se.outsidePress)if(ge.nested)N.current=!1;else if(Il(ge.nativeEvent)||Df(ge.nativeEvent))N.current=!1;else{let $e=!1;Se(W).createElement("div").focus({get preventScroll(){return $e=!0,!1}}),$e?N.current=!1:N.current=!0}}y.on("openchange",be);function je(ge){let $e=R.current,ue=typeof $e=="function"?$e(ge):$e;if(ue===void 0||ue===!1)return null;ue===null&&(ue=!0);let Le=b?.isConnected?b:null,Oe=te?.isConnected&&rn(te)!=="body"?te:null,Ae=pe?Oe||Le:Le||Oe;return Ae||(Ae=z3()||null),typeof ue=="boolean"?Ae:ho(ue)||Ae||null}return()=>{y.off("openchange",be);let ge=Xt(J),$e=le(),ue=de(g,ge)||$e.some(gt=>gt===ge||de(gt,ge))||M&&Gr(M.nodesRef.current,C(),!1).some(gt=>de(gt.context?.elements.floating,ge)),Le=R.current,Oe=P.current,Ae=je(Oe);queueMicrotask(()=>{let gt=Yee(Ae),re=typeof Le!="boolean";if(Le&&!N.current&&He(gt)&&(!(!re&>!==ge&&ge!==J.body)||ue)){let fe={preventScroll:!0};Oe==="keyboard"&&(fe.focusVisible=!0),gt.focus(fe)}N.current=!1})}},[a,g,W,R,$,y,M,b,C,le]),U(()=>{if(!it.engine.webkit||x||!g)return;let J=Xt(Se(g));!He(J)||!wc(J)||de(g,J)&&J.blur()},[x,g]),U(()=>{if(!(a||!I))return I.setFocusManagerState({modal:i,closeOnFocusOut:l,open:x,onOpenChange:h.setOpen,domReference:b}),()=>{I.setFocusManagerState(null)}},[a,I,i,x,h,l,b]),U(()=>{if(!(a||!W))return q3(W),()=>{queueMicrotask(KL)}},[a,W]);let ce=!a&&(i?!_:!0)&&(Q||i);return(0,_h.jsxs)(pa.Fragment,{children:[ce&&(0,_h.jsx)(Bf,{"data-type":"inside",ref:q,onFocus:J=>{if(i){let te=ee();Vf(te[te.length-1])}else I?.portalNode&&(N.current=!1,$c(J,I.portalNode)?Cv(b)?.focus():ho(d??I.beforeOutsideRef)?.focus())}}),n,ce&&(0,_h.jsx)(Bf,{"data-type":"inside",ref:G,onFocus:J=>{i?Vf(ee()[0]):I?.portalNode&&(l&&(N.current=!0),$c(J,I.portalNode)?wv(b)?.focus():ho(c??I.afterOutsideRef)?.focus())}})]})}var Sh=k(A(),1);function JL(e,t={}){let{enabled:n=!0,event:a="click",toggle:r=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:i=0,reason:l=se.triggerPress}=t,u="rootStore"in e?e.rootStore:e,c=u.context.dataRef,d=Sh.useRef(void 0),f=Ia(),m=nt(),p=Sh.useMemo(()=>{function h(b,g,y,v){let C=ve(l,g,y);b&&v==="touch"&&i>0?m.start(i,()=>{u.setOpen(!0,C)}):u.setOpen(b,C)}function x(b,g,y){let v=c.current.openEvent,C=u.select("domReferenceElement")!==g;return b&&C||!b||!r?!0:v&&s?!y(v.type):!1}return{onPointerDown(b){d.current=hr(b.pointerType,!0)&&Df(b.nativeEvent)?"virtual":b.pointerType},onMouseDown(b){let g=d.current,y=b.nativeEvent,v=u.select("open");if(b.button!==0||a==="click"||hr(g,!0)&&o)return;let C=x(v,b.currentTarget,w=>w==="click"||w==="mousedown"),S=ct(y);if(wc(S)){h(C,y,S,g);return}let _=b.currentTarget;f.request(()=>{h(C,y,_,g)})},onClick(b){if(a==="mousedown-only")return;let g=d.current;if(a==="mousedown"&&g){d.current=void 0;return}if(hr(g,!0)&&o)return;let y=u.select("open"),v=x(y,b.currentTarget,C=>C==="click"||C==="mousedown"||C==="keydown"||C==="keyup");h(v,b.nativeEvent,b.currentTarget,g)},onKeyDown(){d.current=void 0}}},[c,a,o,l,u,s,r,f,m,i]);return Sh.useMemo(()=>n?{reference:p}:Qe,[n,p])}var Ka=k(A(),1);function Zee(e,t){let n=null,a=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){let o=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},s=t.axis==="x"||t.axis==="both",i=t.axis==="y"||t.axis==="both",l=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",u=o.width,c=o.height,d=o.x,f=o.y;return n==null&&t.x&&s&&(n=o.x-t.x),a==null&&t.y&&i&&(a=o.y-t.y),d-=n||0,f-=a||0,u=0,c=0,!r||l?(u=t.axis==="y"?o.width:0,c=t.axis==="x"?o.height:0,d=s&&t.x!=null?t.x:d,f=i&&t.y!=null?t.y:f):r&&!l&&(c=t.axis==="x"?o.height:c,u=t.axis==="y"?o.width:u),r=!0,{width:u,height:c,x:d,y:f,top:f,right:d+u,bottom:f+c,left:d}}}}function H3(e){return e!=null&&e.clientX!=null}function eR(e,t={}){let{enabled:n=!0,axis:a="both"}=t,r="rootStore"in e?e.rootStore:e,o=r.useState("open"),s=r.useState("floatingElement"),i=r.useState("domReferenceElement"),l=r.context.dataRef,u=Ka.useRef(!1),c=Ka.useRef(null),[d,f]=Ka.useState(),[m,p]=Ka.useState([]),h=X(v=>{r.set("positionReference",v)}),x=X((v,C,S)=>{u.current||l.current.openEvent&&!H3(l.current.openEvent)||r.set("positionReference",Zee(S??i,{x:v,y:C,axis:a,dataRef:l,pointerType:d}))}),b=X(v=>{o?c.current||(x(v.clientX,v.clientY,v.currentTarget),p([])):x(v.clientX,v.clientY,v.currentTarget)}),g=hr(d)?s:o;Ka.useEffect(()=>{if(!n){h(i);return}if(!g)return;function v(){c.current?.(),c.current=null}let C=qe(s);function S(_){let w=ct(_);de(s,w)?v():x(_.clientX,_.clientY)}return!l.current.openEvent||H3(l.current.openEvent)?c.current=ke(C,"mousemove",S):h(i),v},[g,n,s,l,i,r,x,h,m]),Ka.useEffect(()=>()=>{r.set("positionReference",null)},[r]),Ka.useEffect(()=>{n&&!s&&(u.current=!1)},[n,s]),Ka.useEffect(()=>{!n&&o&&(u.current=!0)},[n,o]);let y=Ka.useMemo(()=>{function v(C){f(C.pointerType)}return{onPointerDown:v,onPointerEnter:v,onMouseMove:b,onMouseEnter:b}},[b]);return Ka.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}var ja=k(A(),1);function Kee(){return!1}function Qee(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function kh(e,t={}){let{enabled:n=!0,escapeKey:a=!0,outsidePress:r=!0,outsidePressEvent:o="sloppy",referencePress:s=Kee,bubbles:i,externalTree:l}=t,u="rootStore"in e?e.rootStore:e,c=u.useState("open"),d=u.useState("floatingElement"),{dataRef:f,events:m}=u.context,p=Wr(l),h=X(typeof r=="function"?r:()=>!1),x=typeof r=="function"?h:r,b=x!==!1,g=X(()=>o),{escapeKey:y,outsidePress:v}=Qee(i),C=ja.useRef(!1),S=ja.useRef(!1),_=ja.useRef(!1),w=ja.useRef(!1),R=ja.useRef(!1),$=ja.useRef(""),j=ja.useRef(null),M=nt(),I=nt(),N=X(()=>{I.clear(),f.current.insideReactTree=!1}),E=X(T=>{let F=f.current.floatingContext?.nodeId;return(p?Gr(p.nodesRef.current,F):[]).some(Q=>Q.context?.open&&!Q.context.dataRef.current[T])}),B=X(T=>dv(T,u.select("floatingElement"))||dv(T,u.select("domReferenceElement"))),z=X(T=>{s()&&u.setOpen(!1,ve(se.triggerPress,T.nativeEvent))}),P=X(T=>{if(!c||!n||!a||T.key!=="Escape"||R.current||!y&&E("__escapeKeyBubbles"))return;let F=QF(T)?T.nativeEvent:T,O=ve(se.escapeKey,F);u.setOpen(!1,O),O.isCanceled||T.preventDefault(),!y&&!O.isPropagationAllowed&&T.stopPropagation()}),D=X(()=>{f.current.insideReactTree=!0,I.start(0,N)}),L=X(T=>{if(!c||!n||T.button!==0)return;let F=ct(T.nativeEvent);de(u.select("floatingElement"),F)&&(C.current||(C.current=!0,S.current=!1))}),V=X(T=>{!c||!n||(T.defaultPrevented||T.nativeEvent.defaultPrevented)&&C.current&&(S.current=!0)});ja.useEffect(()=>{function T(F){F.open||(w.current=!1)}return m.on("openchange",T),()=>{m.off("openchange",T)}},[m]),ja.useEffect(()=>{if(!c||!n)return c||(w.current=!1),N;f.current.__escapeKeyBubbles=y,f.current.__outsidePressBubbles=v;let T=new da,F=new da,O=Se(d);function Q(){T.clear(),R.current=!0}function W(){T.start(it.engine.webkit?5:0,()=>{R.current=!1})}function ee(){_.current=!0,F.start(0,()=>{_.current=!1})}function le(){C.current=!1,S.current=!1}function ce(){let Y=$.current,H=Y==="pen"||!Y?"mouse":Y,ie=g(),Be=typeof ie=="function"?ie():ie;return typeof Be=="string"?Be:Be[H]}function J(Y){let H=ce();return H==="intentional"&&Y.type!=="click"||H==="sloppy"&&Y.type==="click"}function te(Y){let H=f.current.floatingContext?.nodeId,ie=p&&Gr(p.nodesRef.current,H).some(Be=>dv(Y,Be.context?.elements.floating));return B(Y)||ie}function pe(Y){if(J(Y)){Y.type!=="click"&&!B(Y)&&(F.clear(),_.current=!1),N();return}if(f.current.insideReactTree){N();return}let H=ct(Y),ie=`[${ti("inert")}]`,Be=Ie(H)?H.getRootNode():null,Ut=Array.from((Ko(Be)?Be:Se(u.select("floatingElement"))).querySelectorAll(ie)),fn=u.context.triggerElements;if(H&&(fn.hasElement(H)||fn.hasMatchingElement(jt=>de(jt,H))))return;let Ot=Ie(H)?H:null;for(;Ot&&!Dr(Ot);){let jt=pr(Ot);if(Dr(jt)||!Ie(jt))break;Ot=jt}if(!(Ut.length&&Ie(H)&&!o3(H)&&!de(H,u.select("floatingElement"))&&Ut.every(jt=>!de(Ot,jt)))){if(He(H)&&!("touches"in Y)){let jt=Dr(H),zn=jn(H),qn=/auto|scroll/,mn=jt||qn.test(zn.overflowX),na=jt||qn.test(zn.overflowY),Ta=mn&&H.clientWidth>0&&H.scrollWidth>H.clientWidth,xr=na&&H.clientHeight>0&&H.scrollHeight>H.clientHeight,En=zn.direction==="rtl",Zt=xr&&(En?Y.offsetX<=H.offsetWidth-H.clientWidth:Y.offsetX>H.clientWidth),Te=Ta&&Y.offsetY>H.clientHeight;if(Zt||Te)return}if(!te(Y)){if(ce()==="intentional"){if(Y.detail!==0&&!Il(Y)&&!w.current)return;if(_.current){F.clear(),_.current=!1;return}}typeof x=="function"&&!x(Y)||E("__outsidePressBubbles")||(u.setOpen(!1,ve(se.outsidePress,Y)),N())}}}function be(Y){ce()!=="sloppy"||Y.pointerType==="touch"||!u.select("open")||!n||B(Y)||pe(Y)}function je(Y){if(ce()!=="sloppy"||!u.select("open")||!n||B(Y))return;let H=Y.touches[0];H&&(j.current={startTime:Date.now(),startX:H.clientX,startY:H.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},M.start(1e3,()=>{j.current&&(j.current.dismissOnTouchEnd=!1,j.current.dismissOnMouseDown=!1)}))}function ge(Y,H){let ie=ct(Y);if(!ie)return;let Be=ke(ie,Y.type,()=>{H(Y),Be()})}function $e(Y){$.current="touch",ge(Y,je)}function ue(Y){M.clear(),Y.type==="pointerdown"&&(Y.button===0&&(w.current=!0),$.current=Y.pointerType),!(Y.type==="mousedown"&&j.current&&!j.current.dismissOnMouseDown)&&ge(Y,H=>{H.type==="pointerdown"?be(H):pe(H)})}function Le(Y){if(Y.type==="pointercancel"&&(w.current=!1),!C.current)return;let H=S.current;if(le(),ce()==="intentional"){if(Y.type==="pointercancel"){H&&ee();return}if(!te(Y)){if(H){ee();return}typeof x=="function"&&!x(Y)||(F.clear(),_.current=!0,N())}}}function Oe(Y){if(ce()!=="sloppy"||!j.current||B(Y))return;let H=Y.touches[0];if(!H)return;let ie=Math.abs(H.clientX-j.current.startX),Be=Math.abs(H.clientY-j.current.startY),Ut=Math.sqrt(ie*ie+Be*Be);Ut>5&&(j.current.dismissOnTouchEnd=!0),Ut>10&&(pe(Y),M.clear(),j.current=null)}function Ae(Y){ge(Y,Oe)}function gt(Y){ce()!=="sloppy"||!j.current||B(Y)||(j.current.dismissOnTouchEnd&&pe(Y),M.clear(),j.current=null)}function re(Y){ge(Y,gt)}let fe=fa(a&&fa(ke(O,"keydown",P),ke(O,"compositionstart",Q),ke(O,"compositionend",W)),b&&fa(ke(O,"click",ue,!0),ke(O,"pointerdown",ue,!0),ke(O,"pointerup",Le,!0),ke(O,"pointercancel",Le,!0),ke(O,"mousedown",ue,!0),ke(O,"mouseup",Le,!0),ke(O,"touchstart",$e,{capture:!0,passive:!0}),ke(O,"touchmove",Ae,{capture:!0,passive:!0}),ke(O,"touchend",re,{capture:!0,passive:!0})));return()=>{fe(),T.clear(),F.clear(),le(),_.current=!1,N()}},[f,d,a,b,x,c,n,y,v,P,N,g,E,B,p,u,M]);let q=ja.useMemo(()=>({onKeyDown:P,onPointerDown:z,onClick:z}),[P,z]),G=ja.useMemo(()=>({onKeyDown:P,onPointerDown:V,onMouseDown:V,onClickCapture:D,onMouseDownCapture(T){D(),L(T)},onPointerDownCapture(T){D(),L(T)},onMouseUpCapture:D,onTouchEndCapture:D,onTouchMoveCapture:D}),[P,D,L,V]);return ja.useMemo(()=>n?{reference:q,floating:G,trigger:q}:{},[n,q,G])}var ha=k(A(),1);function U3(e,t,n){let{reference:a,floating:r}=e,o=Za(t),s=vh(t),i=xh(s),l=ma(t),u=o==="y",c=a.x+a.width/2-r.width/2,d=a.y+a.height/2-r.height/2,f=a[i]/2-r[i]/2,m;switch(l){case"top":m={x:c,y:a.y-r.height};break;case"bottom":m={x:c,y:a.y+a.height};break;case"right":m={x:a.x+a.width,y:d};break;case"left":m={x:a.x-r.width,y:d};break;default:m={x:a.x,y:a.y}}let p=Hr(t);return p&&(m[s]+=f*(p==="end"?1:-1)*(n&&u?-1:1)),m}async function G3(e,t){var n;t===void 0&&(t={});let{x:a,y:r,platform:o,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=ns(t,e),p=xv(m),x=i[f?d==="floating"?"reference":"floating":d],b=Js(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(x)))==null||n?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(i.floating)),boundary:u,rootBoundary:c,strategy:l})),g=d==="floating"?{x:a,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(i.floating)),v=await(o.isElement==null?void 0:o.isElement(y))&&await(o.getScale==null?void 0:o.getScale(y))||{x:1,y:1},C=Js(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:y,strategy:l}):g);return{top:(b.top-C.top+p.top)/v.y,bottom:(C.bottom-b.bottom+p.bottom)/v.y,left:(b.left-C.left+p.left)/v.x,right:(C.right-b.right+p.right)/v.x}}var Jee=50,W3=async(e,t,n)=>{let{placement:a="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,i=s.detectOverflow?s:{...s,detectOverflow:G3},l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=U3(u,a,l),f=a,m=0,p={};for(let h=0;h<o.length;h++){let x=o[h];if(!x)continue;let{name:b,fn:g}=x,{x:y,y:v,data:C,reset:S}=await g({x:c,y:d,initialPlacement:a,placement:f,strategy:r,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});c=y??c,d=v??d,p[b]={...p[b],...C},S&&m<Jee&&(m++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:c,y:d}=U3(u,f,l)),h=-1)}return{x:c,y:d,placement:f,strategy:r,middlewareData:p}};var X3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;let{placement:r,middlewareData:o,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...x}=ns(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};let b=ma(r),g=Za(i),y=ma(i)===i,v=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=f||(y||!h?[bh(i)]:h3(i)),S=p!=="none";!f&&S&&C.push(...b3(i,h,p,v));let _=[i,...C],w=await l.detectOverflow(t,x),R=[],$=((a=o.flip)==null?void 0:a.overflows)||[];if(c&&R.push(w[b]),d){let N=g3(r,s,v);R.push(w[N[0]],w[N[1]])}if($=[...$,{placement:r,overflows:R}],!R.every(N=>N<=0)){var j,M;let N=(((j=o.flip)==null?void 0:j.index)||0)+1,E=_[N];if(E&&(!(d==="alignment"?g!==Za(E):!1)||$.every(P=>Za(P.placement)===g?P.overflows[0]>0:!0)))return{data:{index:N,overflows:$},reset:{placement:E}};let B=(M=$.filter(z=>z.overflows[0]<=0).sort((z,P)=>z.overflows[1]-P.overflows[1])[0])==null?void 0:M.placement;if(!B)switch(m){case"bestFit":{var I;let z=(I=$.filter(P=>{if(S){let D=Za(P.placement);return D===g||D==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(D=>D>0).reduce((D,L)=>D+L,0)]).sort((P,D)=>P[1]-D[1])[0])==null?void 0:I[0];z&&(B=z);break}case"initialPlacement":B=i;break}if(r!==B)return{reset:{placement:B}}}return{}}}};var Y3=new Set(["left","top"]);async function ete(e,t){let{placement:n,platform:a,elements:r}=e,o=await(a.isRTL==null?void 0:a.isRTL(r.floating)),s=ma(n),i=Hr(n),l=Za(n)==="y",u=Y3.has(s)?-1:1,c=o&&l?-1:1,d=ns(t,e),{mainAxis:f,crossAxis:m,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof p=="number"&&(m=i==="end"?p*-1:p),l?{x:m*c,y:f*u}:{x:f*u,y:m*c}}var Z3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;let{x:r,y:o,placement:s,middlewareData:i}=t,l=await ete(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(a=i.arrow)!=null&&a.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:s}}}}},K3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:a,placement:r,platform:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:g=>{let{x:y,y:v}=g;return{x:y,y:v}}},...u}=ns(e,t),c={x:n,y:a},d=await o.detectOverflow(t,u),f=Za(r),m=yv(f),p=c[m],h=c[f],x=(g,y)=>bv(y+d[g==="y"?"top":"left"],y,y-d[g==="y"?"bottom":"right"]);s&&(p=x(m,p)),i&&(h=x(f,h));let b=l.fn({...t,[m]:p,[f]:h});return{...b,data:{x:b.x-n,y:b.y-a,enabled:{[m]:s,[f]:i}}}}}},Q3=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,a;let{x:r,y:o,placement:s,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:c=!0,crossAxis:d=!0}=ns(e,t),f={x:r,y:o},m=Za(s),p=yv(m),h=f[p],x=f[m],b=ns(u,t),g=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:(n=b.mainAxis)!=null?n:0,crossAxis:(a=b.crossAxis)!=null?a:0};if(c){let C=p==="y"?"height":"width",S=i.reference[p]-i.floating[C]+g.mainAxis,_=i.reference[p]+i.reference[C]-g.mainAxis;h<S?h=S:h>_&&(h=_)}if(d){var y,v;let C=p==="y"?"width":"height",S=Y3.has(ma(s)),_=i.reference[m]-i.floating[C]+(S&&((y=l.offset)==null?void 0:y[m])||0)+(S?0:g.crossAxis),w=i.reference[m]+i.reference[C]+(S?0:((v=l.offset)==null?void 0:v[m])||0)-(S?g.crossAxis:0);x<_?x=_:x>w&&(x=w)}return{[p]:h,[m]:x}}}},J3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:n,rects:a,platform:r,elements:o}=t,{apply:s=()=>{},...i}=ns(e,t),l=await r.detectOverflow(t,i),u=ma(n),c=Hr(n),d=Za(n)==="y",{width:f,height:m}=a.floating,p,h;u==="top"||u==="bottom"?(p=u,h=c===(await(r.isRTL==null?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(h=u,p=c==="end"?"top":"bottom");let x=m-l.top-l.bottom,b=f-l.left-l.right,g=Tl(m-l[p],x),y=Tl(f-l[h],b),v=t.middlewareData.shift,C=!v,S=g,_=y;v!=null&&v.enabled.x&&(_=b),v!=null&&v.enabled.y&&(S=x),C&&!c&&(d?_=f-2*go(l.left,l.right):S=m-2*go(l.top,l.bottom)),await s({...t,availableWidth:_,availableHeight:S});let w=await r.getDimensions(o.floating);return f!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function nV(e){let t=jn(e),n=parseFloat(t.width)||0,a=parseFloat(t.height)||0,r=He(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:a,i=El(n)!==o||El(a)!==s;return i&&(n=o,a=s),{width:n,height:a,$:i}}function nR(e){return Ie(e)?e:e.contextElement}function zf(e){let t=nR(e);if(!He(t))return ts(1);let n=t.getBoundingClientRect(),{width:a,height:r,$:o}=nV(t),s=(o?El(n.width):n.width)/a,i=(o?El(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var tte=ts(0);function aV(e){let t=qe(e);return!c0()||!t.visualViewport?tte:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nte(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===qe(e)}function Ic(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);let r=e.getBoundingClientRect(),o=nR(e),s=ts(1);t&&(a?Ie(a)&&(s=zf(a)):s=zf(e));let i=nte(o,n,a)?aV(o):ts(0),l=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,c=r.width/s.x,d=r.height/s.y;if(o&&a){let f=qe(o),m=Ie(a)?qe(a):a,p=f,h=d0(p);for(;h&&m!==p;){let x=zf(h),b=h.getBoundingClientRect(),g=jn(h),y=b.left+(h.clientLeft+parseFloat(g.paddingLeft))*x.x,v=b.top+(h.clientTop+parseFloat(g.paddingTop))*x.y;l*=x.x,u*=x.y,c*=x.x,d*=x.y,l+=y,u+=v,p=qe(h),h=d0(p)}}return Js({width:c,height:d,x:l,y:u})}function $v(e,t){let n=Og(e).scrollLeft;return t?t.left+n:Ic(Qo(e)).left+n}function rV(e,t){let n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-$v(e,n),r=n.top+t.scrollTop;return{x:a,y:r}}function ate(e){let{elements:t,rect:n,offsetParent:a,strategy:r}=e,o=r==="fixed",s=Qo(a),i=t?Ng(t.floating):!1;if(a===s||i&&o)return n;let l={scrollLeft:0,scrollTop:0},u=ts(1),c=ts(0),d=He(a);if((d||!o)&&((rn(a)!=="body"||sc(s))&&(l=Og(a)),d)){let m=Ic(a);u=zf(a),c.x=m.x+a.clientLeft,c.y=m.y+a.clientTop}let f=s&&!d&&!o?rV(s,l):ts(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function rte(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ote(e){let t=Og(e),n=e.ownerDocument.body,a=go(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=go(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),o=-t.scrollLeft+$v(e),s=-t.scrollTop;return jn(n).direction==="rtl"&&(o+=go(e.clientWidth,n.clientWidth)-a),{width:a,height:r,x:o,y:s}}var ste=25;function ite(e,t,n){n===void 0&&(n="viewport");let a=n==="layoutViewport",r=qe(e),o=Qo(e),s=r.visualViewport,i=o.clientWidth,l=o.clientHeight,u=0,c=0;if(s){let f=!c0()||t==="fixed";a?f||(u=-s.offsetLeft,c=-s.offsetTop):(i=s.width,l=s.height,f&&(u=s.offsetLeft,c=s.offsetTop))}if($v(o)<=0){let f=o.ownerDocument,m=f.body,p=getComputedStyle(m),h=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,x=Math.abs(o.clientWidth-m.clientWidth-h),b=getComputedStyle(o).scrollbarGutter==="stable both-edges"?x/2:x;b<=ste&&(i-=b)}return{width:i,height:l,x:u,y:c}}function lte(e,t){let n=Ic(e,!0,t==="fixed"),a=n.top+e.clientTop,r=n.left+e.clientLeft,o=zf(e),s=e.clientWidth*o.x,i=e.clientHeight*o.y,l=r*o.x,u=a*o.y;return{width:s,height:i,x:l,y:u}}function eV(e,t,n){let a;if(t==="viewport"||t==="layoutViewport")a=ite(e,n,t);else if(t==="document")a=ote(Qo(e));else if(Ie(t))a=lte(t,n);else{let r=aV(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Js(a)}function ute(e,t){let n=t.get(e);if(n)return n;let a=bl(e,[],!1).filter(i=>Ie(i)&&rn(i)!=="body"),r=null,o=jn(e).position==="fixed",s=o?pr(e):e;for(;Ie(s)&&!Dr(s);){let i=jn(s),l=u0(s),u=r?r.position:o?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&i.position==="static")?a=a.filter(d=>d!==s):r=i,s=pr(s)}return t.set(e,a),a}function cte(e){let{element:t,boundary:n,rootBoundary:a,strategy:r}=e,s=[...n==="clippingAncestors"?Ng(t)?[]:ute(t,this._c):[].concat(n),a],i=eV(t,s[0],r),l=i.top,u=i.right,c=i.bottom,d=i.left;for(let f=1;f<s.length;f++){let m=eV(t,s[f],r);l=go(m.top,l),u=Tl(m.right,u),c=Tl(m.bottom,c),d=go(m.left,d)}return{width:u-d,height:c-l,x:d,y:l}}function dte(e){let{width:t,height:n}=nV(e);return{width:t,height:n}}function fte(e,t,n){let a=He(t),r=Qo(t),o=n==="fixed",s=Ic(e,!0,o,t),i={scrollLeft:0,scrollTop:0},l=ts(0);if((a||!o)&&((rn(t)!=="body"||sc(r))&&(i=Og(t)),a)){let f=Ic(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!a&&r&&(l.x=$v(r));let u=r&&!a&&!o?rV(r,i):ts(0),c=s.left+i.scrollLeft-l.x-u.x,d=s.top+i.scrollTop-l.y-u.y;return{x:c,y:d,width:s.width,height:s.height}}function tR(e){return jn(e).position==="static"}function tV(e,t){if(!He(e)||jn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qo(e)===n&&(n=n.ownerDocument.body),n}function oV(e,t){let n=qe(e);if(Ng(e))return n;if(!He(e)){let r=pr(e);for(;r&&!Dr(r);){if(Ie(r)&&!tR(r))return r;r=pr(r)}return n}let a=tV(e,t);for(;a&&qO(a)&&tR(a);)a=tV(a,t);return a&&Dr(a)&&tR(a)&&!u0(a)?n:a||HO(e)||n}var mte=async function(e){let t=this.getOffsetParent||oV,n=this.getDimensions,a=await n(e.floating);return{reference:fte(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function pte(e){return jn(e).direction==="rtl"}var $h={convertOffsetParentRelativeRectToViewportRelativeRect:ate,getDocumentElement:Qo,getClippingRect:cte,getOffsetParent:oV,getElementRects:mte,getClientRects:rte,getDimensions:dte,getScale:zf,isElement:Ie,isRTL:pte};function sV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gte(e,t,n){let a=null,r,o=Qo(e);function s(){var c;clearTimeout(r),(c=a)==null||c.disconnect(),a=null}function i(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();let f=e.getBoundingClientRect(),{left:m,top:p,width:h,height:x}=f;if(c||t(),!h||!x)return;let b=yh(p),g=yh(o.clientWidth-(m+h)),y=yh(o.clientHeight-(p+x)),v=yh(m),S={rootMargin:-b+"px "+-g+"px "+-y+"px "+-v+"px",threshold:go(0,Tl(1,d))||1},_=!0;function w(R){let $=R[0].intersectionRatio;if(!sV(f,e.getBoundingClientRect()))return i();if($!==d){if(!_)return i();$?i(!1,$):r=setTimeout(()=>{i(!1,1e-7)},1e3)}_=!1}try{a=new IntersectionObserver(w,{...S,root:o.ownerDocument})}catch{a=new IntersectionObserver(w,S)}a.observe(e)}let l=qe(e),u=()=>i(n);return l.addEventListener("resize",u),i(!0),()=>{l.removeEventListener("resize",u),s()}}function Lh(e,t,n,a){a===void 0&&(a={});let{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=a,u=nR(e),c=r||o?[...u?bl(u):[],...t?bl(t):[]]:[];c.forEach(b=>{r&&b.addEventListener("scroll",n),o&&b.addEventListener("resize",n)});let d=u&&i?gte(u,n,o):null,f=-1,m=null;s&&(m=new ResizeObserver(b=>{let[g]=b;g&&g.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),n()}),u&&!l&&m.observe(u),t&&m.observe(t));let p,h=l?Ic(e):null;l&&x();function x(){let b=Ic(e);h&&!sV(h,b)&&n(),h=b,p=requestAnimationFrame(x)}return n(),()=>{var b;c.forEach(g=>{r&&g.removeEventListener("scroll",n),o&&g.removeEventListener("resize",n)}),d?.(),(b=m)==null||b.disconnect(),m=null,l&&cancelAnimationFrame(p)}}var iV=Z3;var lV=K3,uV=X3,cV=J3;var dV=Q3,Lv=(e,t,n)=>{let a=new Map,r=n??{},o={...$h,...r.platform,_c:a};return W3(e,t,{...r,platform:o})};var vn=k(A(),1),mV=k(A(),1),pV=k(wo(),1),bte=typeof document<"u",yte=function(){},Rv=bte?mV.useLayoutEffect:yte;function Iv(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,a,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!Iv(e[a],t[a]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,r[a]))return!1;for(a=n;a--!==0;){let o=r[a];if(!(o==="_owner"&&e.$$typeof)&&!Iv(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function gV(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fV(e,t){let n=gV(e);return Math.round(t*n)/n}function aR(e){let t=vn.useRef(e);return Rv(()=>{t.current=e}),t}function hV(e){e===void 0&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:r,elements:{reference:o,floating:s}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[c,d]=vn.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=vn.useState(a);Iv(f,a)||m(a);let[p,h]=vn.useState(null),[x,b]=vn.useState(null),g=vn.useCallback(P=>{P!==S.current&&(S.current=P,h(P))},[]),y=vn.useCallback(P=>{P!==_.current&&(_.current=P,b(P))},[]),v=o||p,C=s||x,S=vn.useRef(null),_=vn.useRef(null),w=vn.useRef(c),R=l!=null,$=aR(l),j=aR(r),M=aR(u),I=vn.useCallback(()=>{if(!S.current||!_.current)return;let P={placement:t,strategy:n,middleware:f};j.current&&(P.platform=j.current),Lv(S.current,_.current,P).then(D=>{let L={...D,isPositioned:M.current!==!1};N.current&&!Iv(w.current,L)&&(w.current=L,pV.flushSync(()=>{d(L)}))})},[f,t,n,j,M]);Rv(()=>{u===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[u]);let N=vn.useRef(!1);Rv(()=>(N.current=!0,()=>{N.current=!1}),[]),Rv(()=>{if(v&&(S.current=v),C&&(_.current=C),v&&C){if($.current)return $.current(v,C,I);I()}},[v,C,I,$,R]);let E=vn.useMemo(()=>({reference:S,floating:_,setReference:g,setFloating:y}),[g,y]),B=vn.useMemo(()=>({reference:v,floating:C}),[v,C]),z=vn.useMemo(()=>{let P={position:n,left:0,top:0};if(!B.floating)return P;let D=fV(B.floating,c.x),L=fV(B.floating,c.y);return i?{...P,transform:"translate("+D+"px, "+L+"px)",...gV(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:L}},[n,i,B.floating,c.x,c.y]);return vn.useMemo(()=>({...c,update:I,refs:E,elements:B,floatingStyles:z}),[c,I,E,B,z])}var rR=(e,t)=>{let n=iV(e);return{name:n.name,fn:n.fn,options:[e,t]}},oR=(e,t)=>{let n=lV(e);return{name:n.name,fn:n.fn,options:[e,t]}},sR=(e,t)=>({fn:dV(e).fn,options:[e,t]}),iR=(e,t)=>{let n=uV(e);return{name:n.name,fn:n.fn,options:[e,t]}},lR=(e,t)=>{let n=cV(e);return{name:n.name,fn:n.fn,options:[e,t]}};var jv=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(t,n,a=!0){this.fallbackStore=t,this.componentName=n,this.throwOnMissingTrigger=a}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(t){return this.storeListeners.add(t),()=>{this.storeListeners.delete(t)}}attachStore(t){return this.attachedStores.push(t),this.setActiveStore(t),()=>{let n=this.attachedStores.lastIndexOf(t);n!==-1&&this.attachedStores.splice(n,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(t){this.attachedStoreValue!==t&&(this.attachedStoreValue=t,this.storeListeners.forEach(n=>{n()}))}openByTrigger(t){let n=this.attachedStore;if(n===null)return;let a;if(t){for(let r=this.attachedStores.length-1;r>=0&&!a;r-=1)a=this.attachedStores[r].context.triggerElements.getById(t);a??=this.fallbackStore.context.triggerElements.getById(t)}if(t&&!a&&this.throwOnMissingTrigger)throw new Error(Ve(99,this.componentName,t,this.componentName));n.setOpen(!0,ve(se.imperativeAction,void 0,a))}closePopup(){let t=this.attachedStore;t!==null&&t.setOpen(!1,ve(se.imperativeAction))}};var mR=k(A(),1),TV=k(wo(),1);var LV=k(A(),1);var SV=k(A(),1),cR=k(Rh(),1),kV=k(_V(),1);var Dte=Gd(19),Nte=Dte?Bte:Fte;function Ev(e,t,n,a,r){return Nte(e,t,n,a,r)}function Ote(e,t,n,a,r){let o=SV.useCallback(()=>t(e.getSnapshot(),n,a,r),[e,t,n,a,r]);return(0,cR.useSyncExternalStore)(e.subscribe,o,o)}UF({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let a=e.syncHooks[n],r=a.selector(a.store.state,a.a1,a.a2,a.a3);Object.is(a.value,r)||(t=!0,a.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let r of e.syncHooks)n.add(r.store);let a=[];for(let r of n)a.push(r.subscribe(t));return()=>{for(let r of a)r()}}),(0,cR.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Bte(e,t,n,a,r){let o=HF();if(!o)return Ote(e,t,n,a,r);let s=o.syncIndex;o.syncIndex+=1;let i;return o.didInitialize?(i=o.syncHooks[s],(i.store!==e||i.selector!==t||!Object.is(i.a1,n)||!Object.is(i.a2,a)||!Object.is(i.a3,r))&&(i.store!==e&&(o.didChangeStore=!0),i.store=e,i.selector=t,i.a1=n,i.a2=a,i.a3=r,i.value=t(e.getSnapshot(),n,a,r))):(i={store:e,selector:t,a1:n,a2:a,a3:r,value:t(e.getSnapshot(),n,a,r)},o.syncHooks.push(i)),i.value}function Fte(e,t,n,a,r){return(0,kV.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,o=>t(o,n,a,r))}var Av=class{static create(t){return new this(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let n=this.updateTick;for(let a of this.listeners){if(n!==this.updateTick)return;a(t)}}update(t){for(let n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){let t={...this.state};this.setState(t)}use(t,n,a,r){return Ev(this,t,n,a,r)}};var jc=k(A(),1);var as=class extends Av{constructor(t,n={},a){super(t),this.context=n,this.selectors=a}useSyncedValue(t,n){jc.useDebugValue(t);let a=this;U(()=>{a.state[t]!==n&&a.set(t,n)},[a,t,n])}useSyncedValueWithCleanup(t,n){let a=this;U(()=>(a.state[t]!==n&&a.set(t,n),()=>{a.set(t,void 0)}),[a,t,n])}useSyncedValues(t){let n=this,a=Object.values(t);U(()=>{n.update(t)},[n,...a])}useControlledProp(t,n){jc.useDebugValue(t);let a=this,r=n!==void 0;U(()=>{r&&!Object.is(a.state[t],n)&&a.setState({...a.state,[t]:n})},[a,t,n,r])}select(t,n,a,r){let o=this.selectors[t];return o(this.state,n,a,r)}useState(t,n,a,r){return jc.useDebugValue(t),Ev(this,this.selectors[t],n,a,r)}useContextCallback(t,n){jc.useDebugValue(t);let a=X(n??De);this.context[t]=a}useStateSetter(t){let n=jc.useRef(void 0);return n.current===void 0&&(n.current=a=>{this.set(t,a)}),n.current}observe(t,n){let a;typeof t=="function"?a=t:a=this.selectors[t];let r=a(this.state);return n(r,r,this),this.subscribe(o=>{let s=a(o);if(!Object.is(r,s)){let i=r;r=s,n(s,i,this)}})}};var Pv=k(A(),1);function $V(){let[,e]=Pv.useState({});return Pv.useCallback(()=>{e({})},[])}var Vte={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Nl=class extends as{constructor(t){let{syncOnly:n,nested:a,onOpenChange:r,triggerElements:o,...s}=t;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:B3(),nested:a,triggerElements:o},Vte),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&JF(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);let a={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",a)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}};function RV(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:a,floatingId:r,nested:o,onOpenChange:s}=e,i=t.useState("open"),l=t.useState("activeTriggerElement"),u=t.useState(n?"popupElement":"positionerElement"),c=t.context.triggerElements,d=s,f=LV.useRef(null);a===void 0&&f.current===null&&(f.current=new Nl({open:i,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:c,onOpenChange:d,floatingId:r,syncOnly:!0,nested:o}));let m=a??f.current;return t.useSyncedValue("floatingId",r),U(()=>{let p={open:i,floatingId:r,referenceElement:l,floatingElement:u};Ie(l)&&(p.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(p.positionReference=l),m.update(p)},[i,r,l,u,m]),m.context.onOpenChange=d,m.context.nested=o,m}var dR=k(A(),1);function Qa(e,t=!1,n=!1,a=!1){let[r,o]=dR.useState(e&&t?"idle":void 0),[s,i]=dR.useState(e&&!a);return e&&!s&&(i(!0),o("starting")),!e&&s&&r!=="ending"&&!n&&o("ending"),!e&&!s&&r==="ending"&&o(void 0),U(()=>{if(!e&&s&&r!=="ending"&&n){let l=qr.request(()=>{o("ending")});return()=>{qr.cancel(l)}}},[e,s,r,n]),U(()=>{if(!e||t)return;let l=qr.request(()=>{o(void 0)});return()=>{qr.cancel(l)}},[t,e]),U(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&o("starting");let l=qr.request(()=>{o("idle")});return()=>{qr.cancel(l)}},[t,e,s,r]),{mounted:s,setMounted:i,transitionStatus:r}}var IV=k(A(),1);var fR=k(wo(),1);var Mv=null;function zte(e){if(!Mv){let t=[];Mv=t,queueMicrotask(()=>{Mv=null,fR.flushSync(()=>{for(let n of t)n()})})}Mv.push(e)}function Hf(e,t=!1,n=!1){let a=Ia();return X((r,o=null)=>{a.cancel();let s=ho(e);if(s==null)return;let i=s,l=()=>{if(!n){fR.flushSync(r);return}zte(()=>{o?.aborted||r()})};if(typeof i.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function u(){Promise.all(i.getAnimations().map(c=>c.finished)).then(()=>{o?.aborted||l()},()=>{if(o?.aborted)return;if(i.getAnimations().some(d=>d.pending||d.playState!=="finished")){u();return}l()})}if(t){let c=ph;if(!i.hasAttribute(c)){a.request(u);return}let d=new MutationObserver(()=>{i.hasAttribute(c)||(d.disconnect(),u())});d.observe(i,{attributes:!0,attributeFilter:[c]}),o?.addEventListener("abort",()=>d.disconnect(),{once:!0});return}a.request(u)})}function ga(e){let{enabled:t=!0,open:n,ref:a,batch:r=!1,onComplete:o}=e,s=X(o),i=Hf(a,n,r);IV.useEffect(()=>{if(!t)return;let l=new AbortController;return i(s,l.signal),()=>{l.abort()}},[t,n,s,i])}var Dv={tabIndex:-1,[dh]:""};function EV(e,t=!1){let n=Pl(),a=Ml()!=null,r=st(()=>e(n,a)).current;return RV({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:n,nested:a,onOpenChange:r.setOpen}),r}function AV({handle:e,store:t}){return U(()=>e.attachStore(t),[e,t]),null}function jV(e){let t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function qte(e,t){let n=mR.useRef(null);return X(a=>{let r=n.current;if(r!==null){if(r.element===a&&r.store===t&&r.id===e)return;n.current=null;let o=r.store;o.context.triggerElements.getById(r.id)===r.element&&(o.context.triggerElements.delete(r.id),jV(o))}a!==null&&e!==void 0&&(n.current={store:t,id:e,element:a},t.context.triggerElements.add(e,a),jV(t))})}function Hte(e,t,n,a=!1){let r=e.preventUnmountingOnClose;t?r=!1:a&&(r=!0);let o=n?.id??null,s=e.activeTriggerId,i=e.activeTriggerElement;return(o||t)&&(s=o,i=n??null),{open:t,preventUnmountingOnClose:r,activeTriggerId:s,activeTriggerElement:i}}function Ute(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function PV(e,t,n,a={}){let r=n.reason,o=r===se.triggerHover,s=t&&r===se.triggerFocus,i=!t&&(r===se.triggerPress||r===se.escapeKey),l=Ute(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;a.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let u=()=>{let c=Hte(e.state,t,n.trigger,l()),d={...a.extraState,...c};s?d.instantType="focus":i?d.instantType="dismiss":o&&(d.instantType=void 0),e.update(d)};o?TV.flushSync(u):u()}function MV(e,t,n,a){let r=n.useState("isMountedByTrigger",e),o=qte(e,n),s=X(l=>{let u=n.select("open"),c=n.select("activeTriggerId");if(c===e){let d={activeTriggerElement:l,...u?a:null};n.update(d);return}if(c==null&&u){let d={activeTriggerId:e??null,activeTriggerElement:l,...a};n.update(d)}}),i=X(l=>{o(l),l&&s(l)});return U(()=>(i(t.current),()=>i(null)),[i,t,n,e]),U(()=>{if(r){let l={activeTriggerElement:t.current,...a};n.update(l)}},[r,n,t,...Object.values(a)]),{registerTrigger:i,isMountedByThisTrigger:r}}function DV(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,a=mR.useRef(null),r=e.useState("open"),o=e.useState("triggerCount"),s=e.useState("activeTriggerId"),i=e.useState("activeTriggerElement");U(()=>{if(!r){a.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0);return}let l=e.context.triggerElements.size,u={};e.state.triggerCount!==l&&(u.triggerCount=l);let c=e.select("activeTriggerId"),d=null;if(c){let f=e.context.triggerElements.getById(c);if(f)a.current=c,f!==e.state.activeTriggerElement&&(u.activeTriggerElement=f);else{for(let[m,p]of e.context.triggerElements.entries())if(p===e.state.activeTriggerElement){u.activeTriggerId=m,u.activeTriggerElement=p,a.current=m;break}u.activeTriggerId===void 0&&(a.current===c?d=c:a.current=null)}}else a.current=null;if(!d&&!c&&l===1){let f=e.context.triggerElements.entries().next();if(!f.done){let[m,p]=f.value;u.activeTriggerId=m,u.activeTriggerElement=p,a.current=m}}(u.triggerCount!==void 0||u.activeTriggerId!==void 0||u.activeTriggerElement!==void 0)&&e.update(u),d&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===d&&!e.context.triggerElements.getById(d)){let f=ve(se.none);e.setOpen(!1,f),f.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,o,s,i,n])}function NV(e,t,n,a){let{mounted:r,setMounted:o,transitionStatus:s}=Qa(e,!1,!1,a),i=t.useState("preventUnmountingOnClose"),l=e?!1:i;t.useSyncedValues({mounted:r,transitionStatus:s,preventUnmountingOnClose:l});let u=X(()=>{o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return ga({enabled:r&&!e&&!l,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:s}}function OV(e,t){e.useSyncedValues(t),U(()=>()=>{e.update({activeTriggerProps:Qe,inactiveTriggerProps:Qe,popupProps:Qe})},[e])}var Tc=class{constructor(){this.idMap=new Map}add(t,n){this.idMap.set(t,n)}delete(t){this.idMap.delete(t)}hasElement(t){for(let n of this.idMap.values())if(n===t)return!0;return!1}hasMatchingElement(t){for(let n of this.idMap.values())if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function FV(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Nl({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Qe,inactiveTriggerProps:Qe,popupProps:Qe}}var Ih=e=>e.triggerIdProp??e.activeTriggerId,pR=e=>e.openProp??e.open,BV=e=>(e.popupElement?.id??e.floatingId)||void 0;function VV(e,t){return t!==void 0&&pR(e)&&Ih(e)===t}function Gte(e,t){return VV(e,t)?!0:t!==void 0&&pR(e)&&Ih(e)==null&&e.triggerCount===1}var zV={open:pR,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Ih,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:BV,isTriggerActive:(e,t)=>t!==void 0&&Ih(e)===t,isOpenedByTrigger:(e,t)=>VV(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Ih(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Gte(e,t)?BV(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};var gR=k(A(),1),qV=k(Rh(),1);function HV(e){let t=gR.useCallback(a=>e===void 0?De:e.subscribeStore(a),[e]),n=gR.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,qV.useSyncExternalStore)(t,n,()=>e?.serverStore)}function hR(e){let{open:t=!1,onOpenChange:n,elements:a={}}=e,r=Pl(),o=Ml()!=null,s=st(()=>new Nl({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:a.reference??null,floatingElement:a.floating??null,triggerElements:new Tc,floatingId:r,syncOnly:!1,nested:o})).current;return U(()=>{let i={open:t,floatingId:r};a.reference!==void 0&&(i.referenceElement=a.reference,i.domReferenceElement=Ie(a.reference)?a.reference:null),a.floating!==void 0&&(i.floatingElement=a.floating),s.update(i)},[t,r,a.reference,a.floating,s]),s.context.onOpenChange=n,s.context.nested=o,s}function UV(e){return Wte(e,e.rootContext)}function Wte(e,t){let{nodeId:n,externalTree:a}=e,r=t.useState("referenceElement"),o=t.useState("floatingElement"),s=t.useState("domReferenceElement"),i=t.useState("open"),l=t.useState("floatingId"),[u,c]=ha.useState(null),[d,f]=ha.useState(void 0),[m,p]=ha.useState(void 0),h=ha.useRef(null),x=Wr(a),b=ha.useMemo(()=>({reference:r,floating:o,domReference:s}),[r,o,s]),g=hV({...e,elements:{...b,...u&&{reference:u}}}),y=Ie(d)?d:null,v=m===void 0?t.state.floatingElement:m;t.useSyncedValue("referenceElement",d??null),t.useSyncedValue("domReferenceElement",d===void 0?s:y),t.useSyncedValue("floatingElement",v);let C=ha.useCallback(j=>{let M=Ie(j)?{getBoundingClientRect:()=>j.getBoundingClientRect(),getClientRects:()=>j.getClientRects(),contextElement:j}:j;c(M),g.refs.setReference(M)},[g.refs]),S=ha.useCallback(j=>{(Ie(j)||j===null)&&(h.current=j,f(j)),(Ie(g.refs.reference.current)||g.refs.reference.current===null||j!==null&&!Ie(j))&&g.refs.setReference(j)},[g.refs,f]),_=ha.useCallback(j=>{p(j),g.refs.setFloating(j)},[g.refs]),w=ha.useMemo(()=>({...g.refs,setReference:S,setFloating:_,setPositionReference:C,domReference:h}),[g.refs,S,_,C]),R=ha.useMemo(()=>({...g.elements,domReference:s}),[g.elements,s]),$=ha.useMemo(()=>({...g,dataRef:t.context.dataRef,open:i,onOpenChange:t.setOpen,events:t.context.events,floatingId:l,refs:w,elements:R,nodeId:n,rootStore:t}),[g,w,R,n,t,i,l]);return U(()=>{s&&(h.current=s)},[s]),U(()=>{t.context.dataRef.current.floatingContext=$;let j=x?.nodesRef.current.find(M=>M.id===n);j&&(j.context=$)}),ha.useMemo(()=>({...g,context:$,refs:w,elements:R,rootStore:t}),[g,w,R,$,t])}var rs=k(A(),1);var bR=it.os.mac&&it.engine.webkit;function yR(e,t={}){let{enabled:n=!0,delay:a}=t,r="rootStore"in e?e.rootStore:e,{events:o,dataRef:s}=r.context,i=rs.useRef(!1),l=rs.useRef(null),u=rs.useRef(!0),c=nt();rs.useEffect(()=>{let f=r.select("domReferenceElement");if(!n)return;let m=qe(f);function p(){let b=r.select("domReferenceElement");!r.select("open")&&He(b)&&b===Xt(Se(b))&&(i.current=!0,l.current=b)}function h(){u.current=!0}function x(){u.current=!1}return fa(ke(m,"blur",p),bR&&ke(m,"keydown",h,!0),bR&&ke(m,"pointerdown",x,!0))},[r,n]),rs.useEffect(()=>{if(!n)return;function f(m){if(m.reason===se.triggerPress||m.reason===se.escapeKey){let p=r.select("domReferenceElement");Ie(p)&&(l.current=p,i.current=!0)}}return o.on("openchange",f),()=>{o.off("openchange",f)}},[o,n,r]);let d=rs.useMemo(()=>{function f(){i.current=!1,l.current=null}return{onMouseLeave(){f()},onFocus(m){let p=m.currentTarget;if(i.current){if(l.current===p)return;f()}let h=ct(m.nativeEvent);if(Ie(h)){if(bR&&!m.relatedTarget){if(!u.current&&!wc(h))return}else if(!s3(h))return}let x=jl(m.relatedTarget,r.context.triggerElements),{nativeEvent:b,currentTarget:g}=m,y=typeof a=="function"?a():a;if(r.select("open")&&x||y===0||y===void 0){r.setOpen(!0,ve(se.triggerFocus,b,g));return}c.start(y,()=>{i.current||r.setOpen(!0,ve(se.triggerFocus,b,g))})},onBlur(m){f();let p=m.relatedTarget,h=m.nativeEvent,x=Ie(p)&&p.hasAttribute(ti("focus-guard"))&&p.getAttribute("data-type")==="outside";c.start(0,()=>{let b=r.select("domReferenceElement"),g=Xt(Se(b));!p&&g===b||de(s.current.floatingContext?.refs.floating.current,g)||de(b,g)||x||jl(p??g,r.context.triggerElements)||r.setOpen(!1,ve(se.triggerFocus,h))})}}},[s,a,r,c]);return rs.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var vR=k(A(),1);var xR=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new da,this.restTimeout=new da,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Nv=new WeakMap;function Uf(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Nv.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),Nv.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Ov(e,t){let{scopeElement:n,referenceElement:a,floatingElement:r}=t,o=Nv.get(n);o&&o!==e&&Uf(o),Uf(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=a,e.pointerEventsFloatingElement=r,Nv.set(n,e),n.style.pointerEvents="none",a.style.pointerEvents="auto",r.style.pointerEvents="auto"}function Gf(e){let t=e.context.dataRef.current,n=st(()=>t.hoverInteractionState??xR.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),Mf(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function CR(e,t={}){let{enabled:n=!0,closeDelay:a=0,nodeId:r}=t,o="rootStore"in e?e.rootStore:e,s=o.useState("open"),i=o.useState("floatingElement"),l=o.useState("domReferenceElement"),{dataRef:u}=o.context,c=Wr(),d=Ml(),f=Gf(o),m=nt(),p=X(()=>fv(u.current.openEvent?.type,f.interactedInside)),h=X(()=>i3(u.current.openEvent?.type)),x=X(()=>{Uf(f)});U(()=>{s||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,x())},[s,f,x]),vR.useEffect(()=>x,[x]),U(()=>{if(n&&s&&f.handleCloseOptions?.blockPointerEvents&&h()&&Ie(l)&&i){let b=l,g=i,y=Se(i),v=c?.nodesRef.current.find(w=>w.id===d)?.context?.elements.floating;v&&(v.style.pointerEvents="");let C=f.pointerEventsScopeElement!==g?f.pointerEventsScopeElement:null,S=v!==g?v:null,_=f.handleCloseOptions?.getScope?.()??C??S??b.closest("[data-rootownerid]")??y.body;return Ov(f,{scopeElement:_,referenceElement:b,floatingElement:g}),()=>{x()}}},[n,s,l,i,f,h,c,d,x]),vR.useEffect(()=>{if(!n)return;function b(){return!!(c&&d&&Gr(c.nodesRef.current,d).length>0)}function g(w){let R=po(a,"close",f.pointerType),$=()=>{o.setOpen(!1,ve(se.triggerHover,w)),c?.events.emit("floating.closed",w)};R?f.openChangeTimeout.start(R,$):(f.openChangeTimeout.clear(),$())}function y(w){let R=ct(w);if(!PL(R)){f.interactedInside=!1;return}f.interactedInside=R?.closest("[aria-haspopup]")!=null}function v(){f.openChangeTimeout.clear(),m.clear(),c?.events.off("floating.closed",S),x()}function C(w){if(b()&&c){c.events.on("floating.closed",S);return}if(jl(w.relatedTarget,o.context.triggerElements))return;let R=u.current.floatingContext?.nodeId??r,$=w.relatedTarget;if(!(c&&R&&Ie($)&&Gr(c.nodesRef.current,R,!1).some(M=>de(M.context?.elements.floating,$)))){if(f.handler){f.handler(w);return}x(),h()&&!p()&&g(w)}}function S(w){!c||!d||b()||m.start(0,()=>{c.events.off("floating.closed",S),o.setOpen(!1,ve(se.triggerHover,w)),c.events.emit("floating.closed",w)})}let _=i;return fa(_&&ke(_,"mouseenter",v),_&&ke(_,"mouseleave",C),_&&ke(_,"pointerdown",y,!0),()=>{c?.events.off("floating.closed",S)})},[n,i,o,u,a,r,h,p,x,f,c,d,m])}var Ol=k(A(),1),GV=k(wo(),1);var Xte={current:null};function wR(e,t={}){let{enabled:n=!0,delay:a=0,handleClose:r=null,mouseOnly:o=!1,restMs:s=0,move:i=!0,triggerElementRef:l=Xte,externalTree:u,isActiveTrigger:c=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:m,guardStaleOpen:p=!1}=t,h="rootStore"in e?e.rootStore:e,{dataRef:x,events:b}=h.context,g=Wr(u),y=Gf(h),v=Ol.useRef(!1),C=vt(r),S=vt(a),_=vt(s),w=vt(n),R=vt(m),$=vt(f),j=X(()=>fv(x.current.openEvent?.type,y.interactedInside)),M=X(()=>R.current?.()!==!1),I=X((B,z,P)=>{let D=h.context.triggerElements;if(D.hasElement(z))return!B||!de(B,z);if(!Ie(P))return!1;let L=P;return D.hasMatchingElement(V=>de(V,L))&&(!B||!de(B,L))}),N=X(()=>{if(!y.handler)return;Se(h.select("domReferenceElement")).removeEventListener("mousemove",y.handler),y.handler=void 0}),E=X(()=>{Uf(y)});return c&&(y.handleCloseOptions=r?.__options),Ol.useEffect(()=>N,[N]),Ol.useEffect(()=>{if(!n)return;function B(z){z.open?v.current=!1:(v.current=z.reason===se.triggerHover,N(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return b.on("openchange",B),()=>{b.off("openchange",B)}},[n,b,y,N]),Ol.useEffect(()=>{if(!n)return;function B(q,G=!0){let T=po(S.current,"close",y.pointerType);T?y.openChangeTimeout.start(T,()=>{h.setOpen(!1,ve(se.triggerHover,q)),g?.events.emit("floating.closed",q)}):G&&(y.openChangeTimeout.clear(),h.setOpen(!1,ve(se.triggerHover,q)),g?.events.emit("floating.closed",q))}let z=l.current??(c?h.select("domReferenceElement"):null);if(!Ie(z))return;function P(q){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,o&&!hr(y.pointerType))return;let G=ML(_.current),T=po(S.current,"open",y.pointerType),F=ct(q),O=q.currentTarget??null,Q=h.select("domReferenceElement"),W=O;if(Ie(F)&&!h.context.triggerElements.hasElement(F)){for(let ge of h.context.triggerElements.elements())if(de(ge,F)){W=ge;break}}Ie(O)&&Ie(Q)&&!h.context.triggerElements.hasElement(O)&&de(O,Q)&&(W=Q);let ee=W==null?!1:I(Q,W,F),le=h.select("open"),ce=$.current?.()??h.select("transitionStatus")==="ending",J=!le&&ce&&v.current,te=!ee&&Ie(W)&&Ie(Q)&&de(Q,W)&&J,pe=G>0&&!T,be=ee&&(le||J)||te,je=!le||ee;if(be){M()&&h.setOpen(!0,ve(se.triggerHover,q,W));return}pe||(T?y.openChangeTimeout.start(T,()=>{je&&M()&&h.setOpen(!0,ve(se.triggerHover,q,W))}):je&&M()&&h.setOpen(!0,ve(se.triggerHover,q,W)))}function D(q){if(j()){E();return}N();let G=h.select("domReferenceElement"),T=Se(G);y.restTimeout.clear(),y.restTimeoutPending=!1;let F=x.current.floatingContext??d?.();if(jl(q.relatedTarget,h.context.triggerElements))return;if(C.current&&F){h.select("open")||y.openChangeTimeout.clear();let Q=l.current;y.handler=C.current({...F,tree:g,x:q.clientX,y:q.clientY,onClose(){E(),N(),w.current&&!j()&&Q===h.select("domReferenceElement")&&B(q,!0)}}),T.addEventListener("mousemove",y.handler),y.handler(q);return}(y.pointerType==="touch"?!de(h.select("floatingElement"),q.relatedTarget):!0)&&B(q)}function L(q){de(z,q.relatedTarget)||(y.openChangeTimeout.clear(),y.restTimeout.clear(),y.restTimeoutPending=!1)}let V=p?ke(z,"mouseout",L):void 0;return i?fa(ke(z,"mousemove",P,{once:!0}),ke(z,"mouseenter",P),ke(z,"mouseleave",D),V):fa(ke(z,"mouseenter",P),ke(z,"mouseleave",D),V)},[N,E,x,S,h,n,C,y,c,I,j,o,i,_,l,g,w,d,$,M,p]),Ol.useMemo(()=>{if(!n)return;function B(z){y.pointerType=z.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(z){let{nativeEvent:P}=z,D=z.currentTarget,L=h.select("domReferenceElement"),V=h.select("open"),q=I(L,D,z.target);if(o&&!hr(y.pointerType))return;if(V&&q&&y.handleCloseOptions?.blockPointerEvents){let F=h.select("floatingElement");if(F){let O=y.handleCloseOptions?.getScope?.()??D.ownerDocument.body;Ov(y,{scopeElement:O,referenceElement:D,floatingElement:F})}}let G=ML(_.current);if(V&&!q||G===0||!q&&y.restTimeoutPending&&z.movementX**2+z.movementY**2<2)return;y.restTimeout.clear();function T(){if(y.restTimeoutPending=!1,j())return;let F=h.select("open");!y.blockMouseMove&&(!F||q)&&M()&&h.setOpen(!0,ve(se.triggerHover,P,D))}y.pointerType==="touch"?GV.flushSync(()=>{T()}):q&&V?T():(y.restTimeoutPending=!0,y.restTimeout.start(G,T))}}},[n,y,j,I,o,h,_,M])}var ea=k(A(),1);var Yte="Escape";function WV(e){return it.engine.webkit&&e.movementX===0&&e.movementY===0}function Fv(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Bv(e,t){return Fv(t,e===TL||e===iv,e===fh||e===mh)}function _R(e,t,n){return Fv(t,e===iv,n?e===fh:e===mh)||e==="Enter"||e===" "||e===""}function Zte(e,t,n){return Fv(t,n?e===fh:e===mh,e===iv)}function Kte(e,t,n,a){let r=n?e===mh:e===fh,o=e===TL;return t==="both"||t==="horizontal"&&a?e===Yte:Fv(t,r,o)}function SR(e,t){let{listRef:n,activeIndex:a,onNavigate:r=()=>{},enabled:o=!0,selectedIndex:s=null,allowEscape:i=!1,loopFocus:l=!1,nested:u=!1,rtl:c=!1,virtual:d=!1,focusItemOnOpen:f="auto",focusItemOnHover:m=!0,openOnArrowKeyDown:p=!0,disabledIndices:h=void 0,orientation:x="vertical",parentOrientation:b,id:g,resetOnPointerLeave:y=!0,externalTree:v,grid:C}=t,S=C!=null,_="rootStore"in e?e.rootStore:e,w=_.useState("open"),R=_.useState("floatingElement"),$=_.useState("domReferenceElement"),j=_.context.dataRef,M=_c(R),I=hh($),N=vt(M),E=Ml(),B=Wr(v),z=ea.useRef(f),P=ea.useRef(s??-1),D=ea.useRef(null),L=ea.useRef(!0),V=X(re=>{r(P.current===-1?null:P.current,re)}),q=ea.useRef(!!R),G=ea.useRef(w),T=ea.useRef(!1),F=ea.useRef(!1),O=ea.useRef(null),Q=vt(h),W=vt(w),ee=vt(s),le=vt(y),ce=Ia(),J=Ia(),te=X(()=>{function re(ie){d?B?.events.emit("virtualfocus",ie):O.current=Vf(ie,{sync:T.current,preventScroll:!0})}let fe=n.current[P.current],Y=F.current;fe&&re(fe),(T.current?ie=>ie():ie=>ce.request(ie))(()=>{let ie=n.current[P.current]||fe;if(!ie)return;fe||re(ie),ue&&(Y||!L.current)&&ie.scrollIntoView?.({block:"nearest",inline:"nearest"})})});U(()=>{j.current.orientation=x},[j,x]),U(()=>{o&&(w&&R?(P.current=s??-1,z.current&&s!=null&&(F.current=!0,V())):q.current&&(P.current=-1,V()))},[o,w,R,s,V]),U(()=>{if(o){if(!w){T.current=!1;return}if(R)if(a==null){if(T.current=!1,ee.current!=null)return;if(q.current&&(P.current=-1,te()),(!G.current||!q.current)&&z.current&&(D.current!=null||z.current===!0&&D.current==null)){let re=0,fe=()=>{n.current[0]==null?(re<2&&(re?H=>J.request(H):queueMicrotask)(fe),re+=1):(P.current=D.current==null||_R(D.current,x,c)||u?Sc(n):Ff(n),D.current=null,V())};fe()}}else Al(n.current,a)||(P.current=a,te(),F.current=!1)}},[o,w,R,a,ee,u,n,x,c,V,te,J]),U(()=>{if(!o||R||!B||d||!q.current)return;let re=B.nodesRef.current,fe=re.find(ie=>ie.id===E)?.context?.elements.floating,Y=Xt(Se($??fe??null)),H=re.some(ie=>ie.context&&de(ie.context.elements.floating,Y));fe&&!H&&L.current&&fe.focus({preventScroll:!0})},[o,R,$,B,E,d]),U(()=>{G.current=w,q.current=!!R}),U(()=>{w||(D.current=null,z.current=f)},[w,f]);let pe=a!=null,be=X(re=>{if(!W.current)return;let fe=n.current.indexOf(re.currentTarget);fe!==-1&&(P.current!==fe||a!==fe)&&(P.current=fe,V(re))}),je=X(()=>b??B?.nodesRef.current.find(re=>re.id===E)?.context?.dataRef?.current.orientation),ge=X(()=>Sc(n,Q.current)),$e=X(re=>{if(L.current=!1,T.current=!0,re.which===229||!W.current&&re.currentTarget===N.current)return;if(u&&Kte(re.key,x,c,S)){Bv(re.key,je())||Xa(re),_.setOpen(!1,ve(se.listNavigation,re.nativeEvent)),He($)&&(d?B?.events.emit("virtualfocus",$):$.focus());return}let fe=P.current,Y=Sc(n,h),H=Ff(n,h);if(I||(re.key==="Home"&&(Xa(re),P.current=Y,V(re)),re.key==="End"&&(Xa(re),P.current=H,V(re))),C!=null){let ie=C(re,P.current,n,x,l,c,h,Y,H);if(ie!=null&&(P.current=ie,V(re)),x==="both")return}if(Bv(re.key,x)){if(Xa(re),w&&!d&&Xt(re.currentTarget.ownerDocument)===re.currentTarget){P.current=_R(re.key,x,c)?Y:H,V(re);return}_R(re.key,x,c)?l?fe>=H?i&&fe!==n.current.length?P.current=-1:(T.current=!1,P.current=Y):P.current=Ur(n.current,{startingIndex:fe,disabledIndices:h}):P.current=Math.min(H,Ur(n.current,{startingIndex:fe,disabledIndices:h})):l?fe<=Y?i&&fe!==-1?P.current=n.current.length:(T.current=!1,P.current=H):P.current=Ur(n.current,{startingIndex:fe,decrement:!0,disabledIndices:h}):P.current=Math.max(Y,Ur(n.current,{startingIndex:fe,decrement:!0,disabledIndices:h})),Al(n.current,P.current)&&(P.current=-1),V(re)}}),ue=ea.useMemo(()=>({onFocus(fe){T.current=!0,be(fe)},onClick:({currentTarget:fe})=>fe.focus({preventScroll:!0}),onMouseMove(fe){WV(fe)||(T.current=!0,F.current=!1,m&&be(fe))},onPointerLeave(fe){if(!W.current||!L.current||fe.pointerType==="touch")return;T.current=!0;let Y=fe.relatedTarget;if(!(!m||n.current.includes(Y))&&le.current&&(O.current?.(),O.current=null,P.current=-1,V(fe),!d)){let H=N.current,ie=Xt(Se(H));H&&de(H,ie)&&H.focus({preventScroll:!0})}}}),[be,W,N,m,n,V,le,d]),Le=ea.useMemo(()=>d&&w&&pe&&{"aria-activedescendant":`${g}-${a}`},[d,w,pe,g,a]),Oe=ea.useMemo(()=>({...I?{}:Le,onKeyDown(re){if(re.key==="Tab"&&re.shiftKey&&w&&!d){let fe=ct(re.nativeEvent);if(fe&&!de(N.current,fe))return;Xa(re),_.setOpen(!1,ve(se.focusOut,re.nativeEvent)),He($)&&$.focus();return}$e(re)},onPointerMove(re){WV(re)||(L.current=!0)}}),[Le,$e,N,I,_,w,d,$]),Ae=ea.useMemo(()=>{function re(H){_.setOpen(!0,ve(se.listNavigation,H.nativeEvent,H.currentTarget))}function fe(H){f==="auto"&&Il(H.nativeEvent)&&(z.current=!d)}function Y(H){z.current=f,f==="auto"&&Df(H.nativeEvent)&&(z.current=!0)}return{onKeyDown(H){let ie=_.select("open");L.current=!1;let Be=H.key.startsWith("Arrow"),Ut=Zte(H.key,je(),c),fn=Bv(H.key,x),Ot=(u?Ut:fn)||H.key==="Enter"||H.key.trim()==="";if(d&&ie)return $e(H);if(!(!ie&&!p&&Be)){if(Ot){let jt=Bv(H.key,je());D.current=u&&jt?null:H.key}if(u){Ut&&(Xa(H),ie?(P.current=ge(),V(H)):re(H));return}fn&&(ee.current!=null&&(P.current=ee.current),Xa(H),!ie&&p?re(H):$e(H),ie&&V(H))}},onFocus(H){_.select("open")&&!d&&(P.current=-1,V(H))},onPointerDown:Y,onPointerEnter:Y,onMouseDown:fe,onClick:fe}},[$e,f,ge,u,V,_,p,x,je,c,ee,d]),gt=ea.useMemo(()=>({...Le,...Ae}),[Le,Ae]);return ea.useMemo(()=>o?{reference:gt,floating:Oe,item:ue,trigger:Ae}:{},[o,gt,Oe,Ae,ue])}var Ec=k(A(),1);function kR(e,t){let{listRef:n,elementsRef:a,activeIndex:r,onMatch:o,disabledIndices:s,onTyping:i,enabled:l=!0,resetMs:u=750,selectedIndex:c=null}=t,d="rootStore"in e?e.rootStore:e,f=d.useState("open"),m=nt(),p=Ec.useRef(""),h=Ec.useRef(c??r??-1),x=Ec.useRef(null),b=X(v=>{function C(N){return a?.current[N]}function S(N){let E=C(N);return E&&!kc(E)||E?.matches(":disabled")?!1:s==null||!ei(za,N,s)}function _(N,E,B=0){if(N.length===0)return-1;let z=(B%N.length+N.length)%N.length,P=E.toLowerCase();for(let D=0;D<N.length;D+=1){let L=(z+D)%N.length;if(!(!N[L]?.toLowerCase().startsWith(P)||!S(L)))return L}return-1}let w=n.current;if(p.current.length>0&&v.key===" "&&(Xa(v),i?.(!0)),p.current.length>0&&p.current[0]!==" "&&_(w,p.current)===-1&&v.key!==" "&&i?.(!1),w==null||v.key.length!==1||v.ctrlKey||v.metaKey||v.altKey)return;f&&v.key!==" "&&(Xa(v),i?.(!0));let R=p.current==="";R&&(h.current=c??r??-1),w.every((N,E)=>N&&S(E)?N[0]?.toLowerCase()!==N[1]?.toLowerCase():!0)&&p.current===v.key&&(p.current="",h.current=x.current),p.current+=v.key,m.start(u,()=>{p.current="",h.current=x.current,i?.(!1)});let M=((R?c??r??-1:h.current)??0)+1,I=_(w,p.current,M);I!==-1?(o?.(I),x.current=I):v.key!==" "&&(p.current="",i?.(!1))}),g=X(v=>{let C=v.relatedTarget,S=d.select("domReferenceElement"),_=d.select("floatingElement");de(S,C)||de(_,C)||(m.clear(),p.current="",h.current=x.current,i?.(!1))});U(()=>{!f&&c!==null||(m.clear(),x.current=null,p.current!==""&&(p.current=""))},[f,c,m]);let y=Ec.useMemo(()=>({onKeyDown:b,onBlur:g}),[b,g]);return Ec.useMemo(()=>l?{reference:y,floating:y}:{},[l,y])}var XV=.1,Qte=XV*XV,St=.5;function Vv(e,t,n,a,r,o){return a>=t!=o>=t&&e<=(r-n)*(t-a)/(o-a)+n}function zv(e,t,n,a,r,o,s,i,l,u){let c=!1;return Vv(e,t,n,a,r,o)&&(c=!c),Vv(e,t,r,o,s,i)&&(c=!c),Vv(e,t,s,i,l,u)&&(c=!c),Vv(e,t,l,u,n,a)&&(c=!c),c}function Jte(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function qv(e,t,n,a,r,o){let s=Math.min(n,r),i=Math.max(n,r),l=Math.min(a,o),u=Math.max(a,o);return e>=s&&e<=i&&t>=l&&t<=u}function $R(e={}){let{blockPointerEvents:t=!1}=e,n=new da,a=({x:r,y:o,placement:s,elements:i,onClose:l,nodeId:u,tree:c})=>{let d=s?.split("-")[0],f=!1,m=null,p=null,h=typeof performance<"u"?performance.now():0;function x(g,y){let v=performance.now(),C=v-h;if(m===null||p===null||C===0)return m=g,p=y,h=v,!1;let S=g-m,_=y-p,w=S*S+_*_,R=C*C*Qte;return m=g,p=y,h=v,w<R}function b(){n.clear(),l()}return function(y){n.clear();let v=i.domReference,C=i.floating;if(!v||!C||d==null||r==null||o==null)return;let{clientX:S,clientY:_}=y,w=ct(y),R=y.type==="mouseleave",$=de(C,w),j=de(v,w);if($&&(f=!0,!R))return;if(j&&(f=!1,!R)){f=!0;return}if(R&&Ie(y.relatedTarget)&&de(C,y.relatedTarget))return;function M(){return!!(c&&Gr(c.nodesRef.current,u).length>0)}function I(){M()||b()}if(M())return;let N=v.getBoundingClientRect(),E=C.getBoundingClientRect(),B=r>E.right-E.width/2,z=o>E.bottom-E.height/2,P=E.width>N.width,D=E.height>N.height,L=(P?N:E).left,V=(P?N:E).right,q=(D?N:E).top,G=(D?N:E).bottom;if(d==="top"&&o>=N.bottom-1||d==="bottom"&&o<=N.top+1||d==="left"&&r>=N.right-1||d==="right"&&r<=N.left+1){I();return}let T=!1;switch(d){case"top":T=qv(S,_,L,N.top+1,V,E.bottom-1);break;case"bottom":T=qv(S,_,L,E.top+1,V,N.bottom-1);break;case"left":T=qv(S,_,E.right-1,G,N.left+1,q);break;case"right":T=qv(S,_,N.right-1,G,E.left+1,q);break;default:}if(T)return;if(f&&!Jte(S,_,N)){I();return}if(!R&&x(S,_)){I();return}let F=!1;switch(d){case"top":{let O=P?St/2:St*4,Q=P||B?r+O:r-O,W=P?r-O:B?r+O:r-O,ee=o+St+1,le=B||P?E.bottom-St:E.top,ce=B?P?E.bottom-St:E.top:E.bottom-St;F=zv(S,_,Q,ee,W,ee,E.left,le,E.right,ce);break}case"bottom":{let O=P?St/2:St*4,Q=P||B?r+O:r-O,W=P?r-O:B?r+O:r-O,ee=o-St,le=B||P?E.top+St:E.bottom,ce=B?P?E.top+St:E.bottom:E.top+St;F=zv(S,_,Q,ee,W,ee,E.left,le,E.right,ce);break}case"left":{let O=D?St/2:St*4,Q=D||z?o+O:o-O,W=D?o-O:z?o+O:o-O,ee=r+St+1,le=z||D?E.right-St:E.left,ce=z?D?E.right-St:E.left:E.right-St;F=zv(S,_,le,E.top,ce,E.bottom,ee,Q,ee,W);break}case"right":{let O=D?St/2:St*4,Q=D||z?o+O:o-O,W=D?o-O:z?o+O:o-O,ee=r-St,le=z||D?E.left+St:E.right,ce=z?D?E.left+St:E.right:E.left+St;F=zv(S,_,ee,Q,ee,W,le,E.top,ce,E.bottom);break}default:}F?f||n.start(40,I):I()}};return a.__options={...e,blockPointerEvents:t},a}var YV=k(A(),1);var Hv=class extends as{setState(t){}update(t){}set(t,n){}notifyAll(){}};var ZV={...zV,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Uv=class extends as{constructor(t,n,a){let r=new Tc;super(QV(t,r,n,a),JV(r),ZV)}setOpen=(t,n)=>{PV(this,t,n,{extraState:{openChangeReason:n.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,ve(se.triggerPress,t))}};function KV(){let e=new Tc,t=new Hv(Object.freeze(QV(void 0,e)),Object.freeze(JV(e)),ZV);return Object.assign(t,{setOpen:De,cancelPendingOpen:De})}function QV(e,t,n,a=!1){return{...FV(t,n,a),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function JV(e){return{popupRef:YV.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var jh=k(Z(),1),ez=vL(function(t){let{disabled:n=!1,defaultOpen:a=!1,open:r,disableHoverablePopup:o=!1,trackCursorAxis:s="none",actionsRef:i,onOpenChange:l,onOpenChangeComplete:u,handle:c,triggerId:d,defaultTriggerId:f=null,children:m}=t,p=EV((j,M)=>new Uv({open:a,openProp:r,activeTriggerId:f,triggerIdProp:d},j,M));p.useControlledProp("openProp",r),p.useControlledProp("triggerIdProp",d),p.useContextCallback("onOpenChange",l),p.useContextCallback("onOpenChangeComplete",u);let h=p.useState("open"),x=!n&&h,b=p.useState("activeTriggerId"),g=p.useState("mounted"),y=p.useState("payload");p.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:o,disabled:n}),DV(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:v,transitionStatus:C}=NV(x,p),S=p.useState("isInstantPhase"),_=p.useState("instantType"),w=p.useState("lastOpenChangeReason"),R=Wf.useRef(null);U(()=>{h&&n&&p.setOpen(!1,ve(se.disabled))},[h,n,p]),U(()=>{C==="ending"&&w===se.none||C!=="ending"&&S?(_!=="delay"&&(R.current=_),p.set("instantType","delay")):R.current!==null&&(p.set("instantType",R.current),R.current=null)},[C,S,w,_,p]),U(()=>{x&&b==null&&p.set("payload",void 0)},[p,b,x]),Wf.useImperativeHandle(i,()=>({unmount:v,close:()=>p.setOpen(!1,ve(se.imperativeAction))}),[v,p]);let $=x||g||!n&&s!=="none";return(0,jh.jsxs)(CL.Provider,{value:p,children:[c&&(0,jh.jsx)(AV,{handle:c,store:p}),$&&(0,jh.jsx)(ene,{store:p,disabled:n,trackCursorAxis:s}),typeof m=="function"?m({payload:y}):m]})});function ene({store:e,disabled:t,trackCursorAxis:n}){let a=e.useState("floatingRootContext"),r=kh(a,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),o=eR(a,{enabled:!t&&n!=="none",axis:n==="none"?void 0:n}),s=Wf.useMemo(()=>la(o.reference,r.reference),[o.reference,r.reference]);return OV(e,{activeTriggerProps:s,inactiveTriggerProps:s,popupProps:r.floating??Qe}),null}var Wv=k(A(),1);function Cn(e){return Pl(e,"base-ui")}var Gv=k(A(),1),LR=Gv.createContext(void 0);function tz(){return Gv.useContext(LR)}var az="data-base-ui-tooltip-trigger";function nz(e){if("composedPath"in e){let n=e.composedPath();for(let a=0;a<n.length;a+=1){let r=n[a];if(Ie(r))return r}}let t=e.target;return Ie(t)?t:null}function tne(e){let t=e;for(;t;){let n=t.closest(`[${az}]`);if(n)return n;let a=t.getRootNode();t="host"in a&&Ie(a.host)?a.host:null}return null}var rz=GF(function(t,n){let{render:a,className:r,style:o,handle:s,payload:i,disabled:l,delay:u,closeOnClick:c=!0,closeDelay:d,id:f,...m}=t,p=zr(!0),x=HV(s)??p;if(!x)throw new Error(Ve(82));let b=Cn(f),g=x.useState("isTriggerActive",b),y=x.useState("isOpenedByTrigger",b),v=x.useState("floatingRootContext"),C=Wv.useRef(null),S=d??0,{registerTrigger:_,isMountedByThisTrigger:w}=MV(b,C,x,{payload:i,closeOnClick:c,closeDelay:S}),R=tz(),{activeIdRef:$,delayRef:j,isInstantPhase:M,hasProvider:I}=NL(v,{open:y}),N=Gf(v);x.useSyncedValue("isInstantPhase",M);let E=x.useState("disabled"),B=l??E,z=vt(B),P=x.useState("trackCursorAxis"),D=x.useState("disableHoverablePopup"),L=Wv.useRef(!1),V=nt(),q=Wv.useRef(void 0);function G(){return I&&$.current!=null?0:u??R??600}function T(te){let pe=C.current;if(!pe||!te)return!1;let be=tne(te);return be!==null&&be!==pe&&de(pe,be)}function F(te){let pe=T(te);return L.current=pe,pe&&(N.openChangeTimeout.clear(),N.restTimeout.clear(),N.restTimeoutPending=!1,V.clear()),pe}let O=wR(v,{enabled:!B,mouseOnly:!0,move:!1,handleClose:!D&&P!=="both"?$R():null,restMs:G,delay(){return d==null&&I?{close:po(j.current,"close")}:{close:S}},triggerElementRef:C,isActiveTrigger:g,isClosing:()=>x.select("transitionStatus")==="ending",shouldOpen(){return!L.current}}),Q=yR(v,{enabled:!B}).reference,W=te=>{let pe=L.current,be=nz(te),je=F(be),ge=C.current,$e=ge&&be&&de(ge,be);if(je&&x.select("open")&&x.select("lastOpenChangeReason")===se.triggerHover){x.setOpen(!1,ve(se.triggerHover,te));return}if(pe&&!je&&$e&&!z.current&&!x.select("open")&&ge&&hr(q.current)){let ue=()=>{!L.current&&!z.current&&!x.select("open")&&x.setOpen(!0,ve(se.triggerHover,te,ge))},Le=G();Le===0?(V.clear(),ue()):V.start(Le,ue)}},ee=x.useState("triggerProps",w);return oe("button",t,{state:{open:y},ref:[n,_,C],props:[O,Q,w||P!=="none"?ee:void 0,{onMouseOver(te){W(te.nativeEvent)},onFocus(te){T(nz(te.nativeEvent))&&te.preventBaseUIHandler()},onMouseLeave(){L.current=!1,V.clear(),q.current=void 0},onPointerEnter(te){q.current=te.pointerType},onPointerDown(te){q.current=te.pointerType,x.set("closeOnClick",c),c&&!x.select("open")&&x.cancelPendingOpen(te.nativeEvent)},onClick(te){c&&!x.select("open")&&x.cancelPendingOpen(te.nativeEvent)},id:b,[gh]:B?"":void 0,[az]:B?void 0:""},m],stateAttributesMapping:uv})});var uz=k(A(),1);var Xv=k(A(),1),RR=Xv.createContext(void 0);function oz(){let e=Xv.useContext(RR);if(e===void 0)throw new Error(Ve(70));return e}var Yv=k(A(),1),sz=k(wo(),1);var iz=k(Z(),1),lz=Yv.forwardRef(function(t,n){let{children:a,container:r,className:o,render:s,style:i,...l}=t,{node:u,subtree:c}=kv({container:r,ref:n,componentProps:t,elementProps:l});return!c&&!u?null:(0,iz.jsxs)(Yv.Fragment,{children:[c,u&&sz.createPortal(a,u)]})});var IR=k(Z(),1),cz=uz.forwardRef(function(t,n){let{keepMounted:a=!1,...r}=t;return zr().useState("mounted")||a?(0,IR.jsx)(RR.Provider,{value:a,children:(0,IR.jsx)(lz,{ref:n,...r})}):null});var nC=k(A(),1);var Zv=k(A(),1),jR=Zv.createContext(void 0);function Xf(){let e=Zv.useContext(jR);if(e===void 0)throw new Error(Ve(71));return e}var br=k(A(),1);var Kv=k(A(),1),nne=Kv.createContext(void 0);function Ja(){return Kv.useContext(nne)?.direction??"ltr"}var ane=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:a,placement:r,rects:o,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:c=0,offsetParent:d="real"}=ns(e,t)||{};if(u==null)return{};let f=xv(c),m={x:n,y:a},p=vh(r),h=xh(p),x=await s.getDimensions(u),b=p==="y",g=b?"top":"left",y=b?"bottom":"right",v=b?"clientHeight":"clientWidth",C=o.reference[h]+o.reference[p]-m[p]-o.floating[h],S=m[p]-o.reference[p],_=d==="real"?await s.getOffsetParent?.(u):i.floating,w=i.floating[v]||o.floating[h];(!w||!await s.isElement?.(_))&&(w=i.floating[v]||o.floating[h]);let R=C/2-S/2,$=w/2-x[h]/2-1,j=Math.min(f[g],$),M=Math.min(f[y],$),I=j,N=w-x[h]-M,E=w/2-x[h]/2+R,B=bv(I,E,N),z=!l.arrow&&Hr(r)!=null&&E!==B&&o.reference[h]/2-(E<I?j:M)-x[h]/2<0,P=z?E<I?E-I:E-N:0;return{[p]:m[p]+P,data:{[p]:B,centerOffset:E-B-P,...z&&{alignmentOffset:P}},reset:z}}}),dz=(e,t)=>{let{name:n,fn:a}=ane(e);return{name:n,fn:a,options:[e,t]}};var fz={name:"hide",async fn(e){let{width:t,height:n,x:a,y:r}=e.rects.reference,o=t===0&&n===0&&a===0&&r===0,s=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:s.top-n>=0||s.right-t>=0||s.bottom-n>=0||s.left-t>=0||o}}}};var Yf={sideX:"left",sideY:"top"};var Qv="--available-width",Jv="--available-height",mz="--anchor-width",pz="--anchor-height",gz="--transform-origin",hz="--positioner-width",bz="--positioner-height";var xz=Qv,vz=Jv;function _z(e,t,n){let a=e==="inline-start"||e==="inline-end";return{top:"top",right:a?n?"inline-start":"inline-end":"right",bottom:"bottom",left:a?n?"inline-end":"inline-start":"left"}[t]}function Cz(e,t,n){let{rects:a,placement:r}=e;return{side:_z(t,ma(r),n),align:Hr(r)||"center",anchor:{width:a.reference.width,height:a.reference.height},positioner:{width:a.floating.width,height:a.floating.height}}}function eC(e){return rne(e,UV)}function rne(e,t){let{anchor:n,positionMethod:a="absolute",side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,collisionBoundary:l,collisionPadding:u=5,sticky:c=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:m,keepMounted:p=!1,floatingRootContext:h,mounted:x,collisionAvoidance:b,shift:g,nodeId:y,adaptiveOrigin:v,lazyFlip:C=!1,externalTree:S}=e,[_,w]=br.useState(null);!x&&_!==null&&w(null);let R=b.side||"flip",$=b.align||"flip",j=b.fallbackAxisSide||"end",M=g?.crossAxis??!1,I=g?.rootBoundary,N=typeof n=="function"?n:void 0,E=X(N),B=N?E:n,z=vt(n),P=vt(x),L=Ja()==="rtl",V=_||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":L?"left":"right","inline-start":L?"right":"left"}[r],q=s==="center"?V:`${V}-${s}`,G=u;typeof G=="number"?G={top:G,right:G,bottom:G,left:G}:G&&(G={top:G.top||0,right:G.right||0,bottom:G.bottom||0,left:G.left||0});let T=1,F=r==="bottom"?T:0,O=r==="top"?T:0,Q=r==="right"?T:0,W=r==="left"?T:0,ee={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:G},le=br.useRef(null),ce=vt(o),J=vt(i),te=typeof o!="function"?o:0,pe=typeof i!="function"?i:0,be=[];m&&be.push(m),be.push(rR(Te=>{let Ft=Cz(Te,r,L),rt=typeof ce.current=="function"?ce.current(Ft):ce.current,Gt=typeof J.current=="function"?J.current(Ft):J.current;return{mainAxis:rt,crossAxis:Gt,alignmentAxis:Gt}},[te,pe,L,r]));let je=$==="none"&&R!=="shift",ge=!je&&(c||M||R==="shift"),$e=R==="none"?null:iR({...ee,padding:{top:G.top+T+F,right:G.right+T+W,bottom:G.bottom+T+O,left:G.left+T+Q},mainAxis:!M&&R==="flip",crossAxis:$==="flip"?"alignment":!1,fallbackAxisSideDirection:j}),ue=je?null:oR({...ee,rootBoundary:I,mainAxis:$!=="none",crossAxis:ge,limiter:c||M?void 0:sR(Te=>{if(!le.current)return{};let{width:Ft,height:rt}=le.current.getBoundingClientRect(),Gt=Za(ma(Te.placement)),Ea=Gt==="y"?Ft:rt,Aa=Gt==="y"?G.left+G.right:G.top+G.bottom;return{offset:Ea/2+Aa/2}})},[ee,c,M,I,G,$]);R==="shift"||$==="shift"||s==="center"?be.push(ue,$e):be.push($e,ue),be.push(lR({...ee,apply({elements:{floating:Te},availableWidth:Ft,availableHeight:rt,rects:Gt}){if(!P.current)return;let Ea=Te.style;Ea.setProperty(xz,`${Ft}px`),Ea.setProperty(vz,`${rt}px`);let Aa=qe(Te).devicePixelRatio||1,{x:Gc,y:ci,width:tu,height:vo}=Gt.reference,Je=(Math.round((Gc+tu)*Aa)-Math.round(Gc*Aa))/Aa,Vt=(Math.round((ci+vo)*Aa)-Math.round(ci*Aa))/Aa;Ea.setProperty(mz,`${Je}px`),Ea.setProperty(pz,`${Vt}px`)}}),dz(Te=>({element:le.current||Se(Te.elements.floating).createElement("div"),padding:le.current?d:0,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(Te){let{elements:{floating:Ft},middlewareData:rt,placement:Gt,platform:Ea,rects:Aa,y:Gc}=Te,ci=ma(Gt),tu=Hr(Gt),vo=Za(ci)==="y",Je=le.current,Vt=typeof o=="function"?o(Cz(Te,r,L)):o,cs;if(!Je&&tu&&Math.abs(vo?rt.shift?.x||0:rt.shift?.y||0)<=1)cs=tu==="start"===(vo&&Ea.isRTL?.(Ft)===!0)?"100%":"0%";else{let au=vo?rt.arrow?.x||0:rt.arrow?.y||0,Sm=vo?Je?.clientWidth||0:Je?.clientHeight||0;cs=`${au+Sm/2}px`}let nu=ci==="top"||ci==="left"?`calc(100% + ${Vt}px)`:`${-Vt}px`;return ge&&vo&&Math.abs(rt.shift?.y||0)>Vt&&(nu=`${Aa.reference.y+Aa.reference.height/2-Gc}px`),Ft.style.setProperty(gz,vo?`${cs} ${nu}`:`${nu} ${cs}`),{}}},fz,v),U(()=>{!x&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[x,h]);let Le=br.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:Oe,elements:Ae,x:gt,y:re,middlewareData:fe,update:Y,placement:H,context:ie,isPositioned:Be,floatingStyles:Ut}=t({rootContext:h,open:p?x:void 0,placement:q,middleware:be,strategy:a,whileElementsMounted:p?void 0:(...Te)=>Lh(...Te,Le),nodeId:y,externalTree:S}),{sideX:fn,sideY:Ot}=fe.adaptiveOrigin||Yf,jt=Be?a:"fixed",zn=br.useMemo(()=>{let Te;return Be?v?Te={position:jt,[fn]:gt,[Ot]:re}:Te={...Ut,position:jt}:Te={position:jt,top:0,left:0},Te[xz]="100vw",Te[vz]="100vh",Be||(Te.opacity=0),Te},[v,jt,fn,gt,Ot,re,Ut,Be]),qn=br.useRef(null);U(()=>{if(!x)return;let Te=z.current,Ft=typeof Te=="function"?Te():Te,Gt=(wz(Ft)?Ft.current:Ft)||null||null;Gt!==qn.current&&(Oe.setPositionReference(Gt),qn.current=Gt)},[x,Oe,B,z]),br.useEffect(()=>{if(!x)return;let Te=z.current;typeof Te!="function"&&wz(Te)&&Te.current!==qn.current&&(Oe.setPositionReference(Te.current),qn.current=Te.current)},[x,Oe,B,z]),br.useEffect(()=>{if(p&&x&&Ae.reference&&Ae.floating)return Lh(Ae.reference,Ae.floating,Y,Le)},[p,x,Ae,Y,Le]);let mn=ma(H),na=_z(r,mn,L),Ta=Hr(H)||"center",xr=!!fe.hide?.referenceHidden;U(()=>{C&&x&&Be&&mn!==V&&w(mn)},[C,x,Be,mn,V]);let En=br.useMemo(()=>({position:"absolute",top:fe.arrow?.y,left:fe.arrow?.x}),[fe.arrow]),Zt=fe.arrow?.centerOffset!==0;return br.useMemo(()=>({positionerStyles:zn,arrowStyles:En,arrowRef:le,arrowUncentered:Zt,side:na,align:Ta,physicalSide:mn,anchorHidden:xr,refs:Oe,context:ie,isPositioned:Be,update:Y}),[zn,En,le,Zt,na,Ta,mn,xr,Oe,ie,Be,Y])}function wz(e){return e!=null&&"current"in e}function Zf(e){return e==="starting"?A3:Qe}function tC(e,t,{styles:n,transitionStatus:a,props:r,refs:o,hidden:s,inert:i=!1}){let l={...n};return i&&(l.pointerEvents="none"),oe("div",e,{state:t,ref:o,props:[{role:"presentation",hidden:s,style:l},Zf(a),r],stateAttributesMapping:Qs})}var Sz=k(Z(),1),kz=nC.forwardRef(function(t,n){let{render:a,className:r,anchor:o,positionMethod:s="absolute",side:i="top",align:l="center",sideOffset:u=0,alignOffset:c=0,collisionBoundary:d="clipping-ancestors",collisionPadding:f=5,arrowPadding:m=5,sticky:p=!1,disableAnchorTracking:h=!1,collisionAvoidance:x=D3,style:b,...g}=t,y=zr(),v=oz(),C=y.useState("open"),S=y.useState("mounted"),_=y.useState("trackCursorAxis"),w=y.useState("disableHoverablePopup"),R=y.useState("floatingRootContext"),$=y.useState("instantType"),j=y.useState("transitionStatus"),M=y.useState("adaptiveOrigin"),I=eC({anchor:o,positionMethod:s,floatingRootContext:R,mounted:S,side:i,sideOffset:u,align:l,alignOffset:c,collisionBoundary:d,collisionPadding:f,sticky:p,arrowPadding:m,disableAnchorTracking:h,keepMounted:v,collisionAvoidance:x,adaptiveOrigin:M}),N=nC.useMemo(()=>({open:C,side:I.side,align:I.align,anchorHidden:I.anchorHidden,instant:_!=="none"?"tracking-cursor":$}),[C,I.side,I.align,I.anchorHidden,_,$]),E=tC(t,N,{styles:I.positionerStyles,transitionStatus:j,props:g,refs:[n,y.useStateSetter("positionerElement")],hidden:!S,inert:!C||_==="both"||w});return(0,Sz.jsx)(jR.Provider,{value:I,children:E})});var $z=k(A(),1);var Lz=$z.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,i=zr(),{side:l,align:u}=Xf(),c=i.useState("open"),d=i.useState("instantType"),f=i.useState("transitionStatus"),m=i.useState("popupProps"),p=i.useState("floatingRootContext"),h=i.useState("disabled"),x=i.useState("closeDelay");ga({open:c,ref:i.context.popupRef,onComplete(){c&&i.context.onOpenChangeComplete?.(!0)}}),CR(p,{enabled:!h,closeDelay:x});let b=i.useStateSetter("popupElement");return oe("div",t,{state:{open:c,side:l,align:u,instant:d,transitionStatus:f},ref:[n,i.context.popupRef,b],props:[Dv,m,Zf(f),s],stateAttributesMapping:cv})});var Rz=k(A(),1);var Iz=Rz.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,i=zr(),{arrowRef:l,side:u,align:c,arrowUncentered:d,arrowStyles:f}=Xf(),m=i.useState("open"),p=i.useState("instantType");return oe("div",t,{state:{open:m,side:u,align:c,uncentered:d,instant:p},ref:[n,l],props:[{style:f,"aria-hidden":!0},s],stateAttributesMapping:Qs})});var jz=k(A(),1);var TR=k(Z(),1),Tz=function(t){let{delay:n,closeDelay:a,timeout:r=400}=t,o=jz.useMemo(()=>({open:n,close:a}),[n,a]);return(0,TR.jsx)(LR.Provider,{value:n,children:(0,TR.jsx)(DL,{delay:o,timeoutMs:r,children:t.children})})};var zz=k(A(),1);var ta=k(A(),1),Bz=k(wo(),1);function Kf(e){return Gd(19)?e:e?"true":void 0}var Ez=k(A(),1);function aC(e){let[t,n]=Ez.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}var Jf=k(A(),1);function Qf(e){let t=jn(e),n=parseFloat(t.width)||0,a=parseFloat(t.height)||0,r=He(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:a;return(El(n)!==o||El(a)!==s)&&(n=o,a=s),{width:n,height:a}}var Th="--popup-width",Eh="--popup-height";function Mz(e){let{popupElement:t,positionerElement:n,content:a,mounted:r,onMeasureLayout:o,onMeasureLayoutComplete:s,side:i,direction:l}=e,u=Hf(t,!0),c=Ia(),d=Jf.useRef(null),f=Jf.useRef(!0),m=Jf.useRef(De),p=X(o),h=X(s),x=Jf.useMemo(()=>one(i,l),[i,l]);U(()=>{if(!r){m.current=De,f.current=!0,d.current=null;return}if(!t||!n)return;m.current=Pz(t,x),ER(t,"auto");let b=oC(t,"position","static"),g=oC(t,"transform","none"),y=oC(t,"scale","1"),v=Pz(n,{[Qv]:"max-content",[Jv]:"max-content"});function C(){b(),g(),v()}function S(){C(),y()}if(p?.(),f.current||d.current===null){rC(n,"max-content");let $=Qf(t);return d.current=$,rC(n,$),S(),h?.(null,$),f.current=!1,()=>{m.current(),m.current=De}}rC(n,"max-content");let _=d.current,w=Qf(t);d.current=w,ER(t,_),S(),h?.(_,w),rC(n,w);let R=new AbortController;return c.request(()=>{ER(t,w),u(()=>{t.style.setProperty(Th,"auto"),t.style.setProperty(Eh,"auto")},R.signal)}),()=>{R.abort(),c.cancel(),m.current(),m.current=De}},[a,t,n,u,c,r,p,h,x])}function one(e,t){let n=e==="top",a=e==="left"||e===(t==="rtl"?"inline-end":"inline-start");return!n&&!a?Qe:{position:"absolute",[n?"bottom":"top"]:"0",[a?"right":"left"]:"0"}}function oC(e,t,n){let a=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,a)}}function Pz(e,t){let n=[];for(let[a,r]of Object.entries(t))n.push(oC(e,a,r));return n.length?()=>{n.forEach(a=>a())}:De}function ER(e,t){let n=t==="auto"?"auto":`${t.width}px`,a=t==="auto"?"auto":`${t.height}px`;e.style.setProperty(Th,n),e.style.setProperty(Eh,a)}function rC(e,t){let n=t==="max-content"?"max-content":`${t.width}px`,a=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty(hz,n),e.style.setProperty(bz,a)}var Dz={name:"adaptiveOrigin",async fn(e){let{x:t,y:n,rects:{floating:a},elements:{floating:r},platform:o,strategy:s,placement:i}=e,l=qe(r),u=l.getComputedStyle(r);if(!(u.transitionDuration!=="0s"&&u.transitionDuration!==""))return{x:t,y:n,data:Yf};let d=await o.getOffsetParent?.(r),f={width:0,height:0};if(s==="fixed"&&l?.visualViewport)f={width:l.visualViewport.width,height:l.visualViewport.height};else if(d===l){let g=Se(r);f={width:g.documentElement.clientWidth,height:g.documentElement.clientHeight}}else await o.isElement?.(d)&&(f=await o.getDimensions(d));let m=ma(i),p=t,h=n;m==="left"&&(p=f.width-(t+a.width)),m==="top"&&(h=f.height-(n+a.height));let x=m==="left"?"right":Yf.sideX,b=m==="top"?"bottom":Yf.sideY;return{x:p,y:h,data:{sideX:x,sideY:b}}}};var Nz="data-activation-direction";var em=k(Z(),1),Fz={activationDirection:e=>e?{[Nz]:e}:null};function Vz(e){let{store:t,side:n,children:a}=e,r=Ja(),o=t.useState("activeTriggerElement"),s=t.useState("activeTriggerId"),i=t.useState("open"),l=t.useState("payload"),u=t.useState("mounted"),c=t.useState("popupElement"),d=t.useState("positionerElement"),f=aC(i?o:null),m=une(s,l),p=ta.useRef(null),[h,x]=ta.useState(null),[b,g]=ta.useState(null),y=ta.useRef(null),v=ta.useRef(null),C=Hf(y,!0),S=Ia(),_=ta.useRef(null),[w,R]=ta.useState(null),[$,j]=ta.useState(!1);U(()=>(t.set("adaptiveOrigin",Dz),()=>{t.set("adaptiveOrigin",void 0)}),[t]);let M=X(()=>{y.current?.style.setProperty("animation","none"),y.current?.style.setProperty("transition","none"),v.current?.style.setProperty("display","none")}),I=X(D=>{y.current?.style.removeProperty("animation"),y.current?.style.removeProperty("transition"),v.current?.style.removeProperty("display"),D&&R(D)}),N=X(()=>{_.current?.abort();let D=new AbortController;_.current=D,C(()=>{x(null),R(null),p.current=null},D.signal)}),E=ta.useRef(null);U(()=>{(!i||!u)&&(E.current=null)},[i,u]),U(()=>{if(o&&f&&o!==f&&E.current!==o&&p.current){x(p.current),j(!0);let D=lne(f,o);g(D),E.current=o}},[o,f]),U(()=>{h!=null&&(_.current?.abort(),j(!0),S.request(()=>{Bz.flushSync(()=>{j(!1)}),N()}))},[m,h,N,S]),U(()=>{let D=y.current;if(!D)return;let L=Se(D).createElement("div");for(let V of Array.from(D.childNodes))L.appendChild(V.cloneNode(!0));p.current=L});let B=h!=null,z;B?z=(0,em.jsxs)(ta.Fragment,{children:[(0,em.jsx)("div",{"data-previous":!0,inert:Kf(!0),ref:v,style:{...w?{[Th]:`${w.width}px`,[Eh]:`${w.height}px`}:null,position:"absolute"},"data-ending-style":$?void 0:""},"previous"),(0,em.jsx)("div",{"data-current":!0,ref:y,"data-starting-style":$?"":void 0,children:a},m)]}):z=(0,em.jsx)("div",{"data-current":!0,ref:y,children:a},m),U(()=>{let D=v.current;!D||!h||D.replaceChildren(...Array.from(h.childNodes))},[h]),Mz({popupElement:c,positionerElement:d,mounted:u,content:l,onMeasureLayout:M,onMeasureLayoutComplete:I,side:n,direction:r});let P={activationDirection:ine(b),transitioning:B};return{children:z,state:P}}function ine(e){if(e)return`${Oz(e.horizontal,5,"right","left")} ${Oz(e.vertical,5,"down","up")}`}function Oz(e,t,n,a){return e>t?n:e<-t?a:""}function lne(e,t){let n=e.getBoundingClientRect(),a=t.getBoundingClientRect(),r={x:n.left+n.width/2,y:n.top+n.height/2},o={x:a.left+a.width/2,y:a.top+a.height/2};return{horizontal:o.x-r.x,vertical:o.y-r.y}}function une(e,t){let[n,a]=ta.useState(0),r=ta.useRef(e),o=ta.useRef(t),s=ta.useRef(!1);return U(()=>{let i=r.current,l=o.current,u=e!==i,c=t!==l;u?(a(d=>d+1),s.current=!c):s.current&&c&&(a(d=>d+1),s.current=!1),r.current=e,o.current=t},[e,t]),`${e??"current"}-${n}`}var qz=zz.forwardRef(function(t,n){let{render:a,className:r,style:o,children:s,...i}=t,l=zr(),u=Xf(),c=l.useState("instantType"),{children:d,state:f}=Vz({store:l,side:u.side,children:s}),m={activationDirection:f.activationDirection,transitioning:f.transitioning,instant:c};return oe("div",t,{state:m,ref:n,props:[i,{children:d}],stateAttributesMapping:Fz})});var Ah=class extends jv{constructor(){super(KV(),"Tooltip")}open(t){this.openByTrigger(t)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Hz(){return new Ah}var ni=k(Z(),1);function Uz({delay:e=0,...t}){return(0,ni.jsx)(os.Provider,{"data-slot":"tooltip-provider",delay:e,...t})}function tm({...e}){return(0,ni.jsx)(os.Root,{"data-slot":"tooltip",...e})}function nm({...e}){return(0,ni.jsx)(os.Trigger,{"data-slot":"tooltip-trigger",...e})}function am({className:e,side:t="top",sideOffset:n=4,align:a="center",alignOffset:r=0,children:o,...s}){return(0,ni.jsx)(os.Portal,{children:(0,ni.jsx)(os.Positioner,{align:a,alignOffset:r,side:t,sideOffset:n,className:"isolate z-50",children:(0,ni.jsxs)(os.Popup,{"data-slot":"tooltip-content",className:ne("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s,children:[o,(0,ni.jsx)(os.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}var Ac=k(Z(),1),cne={running:{Icon:Ui,cls:"text-info animate-spin",hint:"Running"},queued:{Icon:Op,cls:"text-warning animate-pulse",hint:"Queued: waiting for a free worker slot"},done:{Icon:No,cls:"text-success animate-in zoom-in-50 duration-300",hint:"Done"},failed:{Icon:Oo,cls:"text-destructive animate-in zoom-in-50 duration-300",hint:"Failed: the worker or its model reported an error"},timeout:{Icon:Ap,cls:"text-warning animate-in zoom-in-50 duration-300",hint:"Timed out: the worker passed its time limit (30 minutes unless set otherwise) and was stopped; what it had done is kept"},stopped:{Icon:Tp,cls:"text-muted-foreground",hint:"Stopped: ended with pitroom stop"}},dne={Icon:Xi,cls:"text-destructive animate-in zoom-in-50 duration-300",hint:"Done, but its verify command failed: open it for the output"};function Gz({state:e,verifyFailed:t,className:n}){let a=e==="done"&&t,{Icon:r,cls:o,hint:s}=a?dne:cne[e];return(0,Ac.jsxs)(tm,{children:[(0,Ac.jsx)(nm,{render:(0,Ac.jsx)("span",{tabIndex:0,className:"inline-flex rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring"}),children:(0,Ac.jsx)(r,{className:ne("size-5 shrink-0",o,n),"aria-label":a?"done, verify failed":e})}),(0,Ac.jsx)(am,{className:"max-w-64",children:s})]})}var Wz="data:image/gif;base64,R0lGODdhgACAANUAAAAAACMVEWJvf2FwgGdxf2pyfnBzfrtzXHp1fIR3e415eZd6eJ18d6V9draBc3WEk8qEcNSGb92HbN6IbeCJbdqKcteMdc2QgMaTh8OUioWVpL+Xj7Sbm6mgpqSjraGksJymtZmouJqot6CrtczT2dHX3fX2+P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBwAoACwAAAAAgACAAAAG/0CUcEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvter/gsHhMLpvP6LR6zW673/C4fE6v2+/4vH7P7/v/gIGCg4SFhoeIiYqLjI2Oj5CRkpOUlZaXmJmam5ydnmcToaKjpKWmp6ipqqpzq66vsLGmrbK1trehtLi7vKi6vcDAv8HEt8PFyLDHycypy83QpM/R1NPU0NbXzNnayNzdxN/gwnLj2uLmu+jpxuXs2O7v2/Hy3vT14ff45CgTaf5E9tnrl6uMqICuAChcCIAaw4WvhJQaI01iwocNo2HMuIrgRDCzPKra6BBjRGdeTolMRVKjSX5aerWENhOmFWA1meXshSXYTv9kP9XdFEh01JWiSAtWSVo0C9N9W57W4yKVXcqq9lR+UYnVFkKjICt2rVUErJYBaNMOGJUArYK3cOPKnUu3rt27ePGqRYtggoK9aakARhvq7+DDiBMrXsy48WLBhxc4nky5smXGkENo3syZc1oNnUNrfpBWtOjPpjuTRpu6M+rWo9Vmhq35NezVA2jXRguaNm7dIWy3xj1gNm3hqX/rRm5a+XHeuokbh81ctHPq0H2XXp79tuwprLkP6O09/PPx0befJz/8u5TL8OPLjw95vv37+N1HMY8dvXb+wOmmgX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mlfzoOqeKOIippIJM4amDmmWieWSSPTVroo5E1EslemnSauaacXroIpoNv4hjnl+vVSeedgB7JpptiahjAn3oGKiiahDZqKJ6TOohAoh0uauSjkG7p6aeghirqqKSWWmoIADs=";var Dt=k(Z(),1),hne={claude:Wz,codex:Xz,gemini:Yz,opencode:Zz},bne={opencode:"OpenCode",codex:"Codex",claude:"Claude Code",gemini:"Gemini CLI",qwen:"Qwen Code",kilo:"Kilo Code",antigravity:"Antigravity CLI"};function sC({backend:e,active:t,className:n}){let a=bne[e];if(!a)return null;let r=t?hne[e]:void 0;return r?(0,Dt.jsx)("img",{src:r,alt:a,title:a,draggable:!1,className:"size-8 shrink-0 [image-rendering:pixelated]"}):(0,Dt.jsxs)("svg",{viewBox:e==="opencode"?"0 0 512 512":"0 0 24 24",role:"img","aria-label":a,className:ne("size-5 shrink-0",e==="opencode"&&"ring-1 ring-foreground/20",n),children:[(0,Dt.jsx)("title",{children:a}),e==="opencode"&&(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)("rect",{width:"512",height:"512",rx:"96",className:"fill-[#131010]"}),(0,Dt.jsx)("path",{d:"M320 224V352H192V224H320Z",fill:"#5A5858"}),(0,Dt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M384 416H128V96H384V416ZM320 160H192V352H320V160Z",fill:"white"})]}),e==="codex"&&(0,Dt.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",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"}),e==="gemini"&&(0,Dt.jsx)("path",{fill:"#4285F4",fillRule:"evenodd",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"}),e==="qwen"&&(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)("rect",{width:"24",height:"24",rx:"5",className:"fill-[#615CED]"}),(0,Dt.jsx)("text",{x:"12",y:"17",textAnchor:"middle",fontSize:"15",fontWeight:"700",fill:"white",fontFamily:"ui-sans-serif, system-ui, sans-serif",children:"Q"})]}),e==="kilo"&&(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)("rect",{width:"24",height:"24",rx:"5",className:"fill-[#1C1C1C] dark:fill-[#F8F675]"}),(0,Dt.jsx)("text",{x:"12",y:"17",textAnchor:"middle",fontSize:"15",fontWeight:"700",className:"fill-[#F8F675] dark:fill-[#1C1C1C]",fontFamily:"ui-sans-serif, system-ui, sans-serif",children:"K"})]}),e==="antigravity"&&(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)("rect",{width:"24",height:"24",rx:"5",className:"fill-[#1A73E8]"}),(0,Dt.jsx)("text",{x:"12",y:"17",textAnchor:"middle",fontSize:"15",fontWeight:"700",fill:"white",fontFamily:"ui-sans-serif, system-ui, sans-serif",children:"A"})]}),e==="claude"&&(0,Dt.jsx)("path",{fill:"#D97757",fillRule:"evenodd",clipRule:"evenodd",d:"M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z"})]})}var Fl={};aa(Fl,{Content:()=>Sq,Corner:()=>Rq,Root:()=>lq,Scrollbar:()=>_q,Thumb:()=>$q,Viewport:()=>vq});var dt=k(A(),1);var iC=k(A(),1),AR=iC.createContext(void 0);function ss(){let e=iC.useContext(AR);if(e===void 0)throw new Error(Ve(53));return e}function bo(e,t,n){if(!e)return 0;let a=getComputedStyle(e),r=`${t}${n==="x"?"Inline":"Block"}`,o=parseFloat(a[`${r}Start`]);return n==="x"&&t==="margin"?o*2:o+parseFloat(a[`${r}End`])}var Kz=k(Z(),1),lC="base-ui-disable-scrollbar",ai={className:lC,getElement(e){return(0,Kz.jsx)("style",{nonce:e,href:lC,precedence:"base-ui:low",children:`.${lC}{scrollbar-width:none}.${lC}::-webkit-scrollbar{display:none}`})}};var Qz="data-has-overflow-x",Jz="data-has-overflow-y",eq="data-overflow-x-start",tq="data-overflow-x-end",nq="data-overflow-y-start",aq="data-overflow-y-end";var rm=e=>t=>t?{[e]:""}:null,Bl={hasOverflowX:rm(Qz),hasOverflowY:rm(Jz),overflowXStart:rm(eq),overflowXEnd:rm(tq),overflowYStart:rm(nq),overflowYEnd:rm(aq),cornerHidden:()=>null};var uC=k(A(),1),xne=uC.createContext(void 0),vne={disableStyleElements:!1};function om(){return uC.useContext(xne)??vne}var cC="--scroll-area-corner-height",dC="--scroll-area-corner-width";var oq="data-orientation";var iq=k(Z(),1),wne={x:0,y:0},sq={width:0,height:0},_ne={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},Sne={x:!0,y:!0,corner:!0},lq=dt.forwardRef(function(t,n){let{render:a,className:r,overflowEdgeThreshold:o,style:s,...i}=t,{xStart:l,xEnd:u,yStart:c,yEnd:d}=kne(o),f=Cn(),m=nt(),p=nt(),{nonce:h,disableStyleElements:x}=om(),[b,g]=dt.useState(!1),[y,v]=dt.useState(!1),[C,S]=dt.useState(!1),[_,w]=dt.useState(!1),[R,$]=dt.useState(!1),[j,M]=dt.useState(sq),[I,N]=dt.useState(sq),[E,B]=dt.useState(_ne),[z,P]=dt.useState(Sne),D=dt.useRef(null),L=dt.useRef(null),V=dt.useRef(null),q=dt.useRef(null),G=dt.useRef(null),T=dt.useRef(null),F=dt.useRef(null),O=dt.useRef(null),Q=dt.useRef(0),W=dt.useRef(0),ee=dt.useRef(0),le=dt.useRef(0),ce=dt.useRef("vertical"),J=dt.useRef(wne),te=dt.useRef(null);function pe(Y){let H=Y?S:v,ie=Y?m:p;H(!0),ie.start(500,()=>{H(!1)})}let be=X(Y=>{let H=Y.x-J.current.x,ie=Y.y-J.current.y;J.current=Y,ie!==0&&pe(!0),H!==0&&pe(!1)}),je=X(()=>{let Y=L.current;Y&&te.current===null&&(te.current=Y.style.scrollSnapType,Y.style.scrollSnapType="none")}),ge=X(Y=>{if(Y.button!==0||O.current!==null&&(ce.current==="vertical"?G.current:T.current)?.hasPointerCapture(O.current))return;O.current=Y.pointerId,Q.current=Y.clientY,W.current=Y.clientX,ce.current=Y.currentTarget.getAttribute(oq);let H=L.current;H&&(ee.current=H.scrollTop,le.current=H.scrollLeft,je()),(ce.current==="vertical"?G.current:T.current)?.setPointerCapture(Y.pointerId)}),$e=X(Y=>{if(Y.pointerId!==O.current)return;O.current=null,(ce.current==="vertical"?S:v)(!1),te.current!==null&&(L.current&&(L.current.style.scrollSnapType=te.current),te.current=null);let H=ce.current==="vertical"?G.current:T.current;H?.hasPointerCapture(Y.pointerId)&&H.releasePointerCapture(Y.pointerId)}),ue=X(Y=>{if(Y.pointerId!==O.current)return;if(Y.buttons%2===0){$e(Y);return}let H=L.current;if(!H)return;let ie=ce.current==="vertical",Be=ie?G.current:T.current,Ut=ie?V.current:q.current;if(!Be||!Ut)return;let fn=ie?"y":"x",Ot=bo(Ut,"padding",fn),jt=bo(Be,"margin",fn),zn=ie?Be.offsetHeight:Be.offsetWidth,mn=(ie?Ut.offsetHeight:Ut.offsetWidth)-zn-Ot-jt,na=ie?Y.clientY-Q.current:Y.clientX-W.current,Ta=mn<=0?0:na/mn,xr=ie?H.scrollHeight:H.scrollWidth,En=ie?H.clientHeight:H.clientWidth,Te=(ie?ee.current:le.current)+Ta*(xr-En);ie?H.scrollTop=Te:H.scrollLeft=Te,Y.preventDefault(),pe(ie)});function Le(Y){w(Y.pointerType==="touch")}function Oe(Y){if(Le(Y),Y.pointerType!=="touch"){let H=de(D.current,Y.target);g(H)}}let Ae=dt.useMemo(()=>({scrolling:y||C,hasOverflowX:!z.x,hasOverflowY:!z.y,overflowXStart:E.xStart,overflowXEnd:E.xEnd,overflowYStart:E.yStart,overflowYEnd:E.yEnd,cornerHidden:z.corner}),[y,C,z.x,z.y,z.corner,E]),gt={role:"presentation",onPointerEnter:Oe,onPointerMove:Oe,onPointerDown:Le,onPointerLeave(){g(!1)},style:{position:"relative",[cC]:`${j.height}px`,[dC]:`${j.width}px`}},re=oe("div",t,{state:Ae,ref:[n,D],props:[gt,i],stateAttributesMapping:Bl}),fe=dt.useMemo(()=>({handlePointerDown:ge,handlePointerMove:ue,handlePointerUp:$e,handleScroll:be,disableViewportSnap:je,cornerSize:j,setCornerSize:M,thumbSize:I,setThumbSize:N,hasMeasuredScrollbar:R,setHasMeasuredScrollbar:$,touchModality:_,cornerRef:F,scrollingX:y,scrollingY:C,hovering:b,setHovering:g,viewportRef:L,scrollbarYRef:V,scrollbarXRef:q,thumbYRef:G,thumbXRef:T,rootId:f,hiddenState:z,setHiddenState:P,overflowEdges:E,setOverflowEdges:B,viewportState:Ae,overflowEdgeThreshold:{xStart:l,xEnd:u,yStart:c,yEnd:d}}),[ge,ue,$e,be,je,j,I,R,_,y,C,b,f,z,E,Ae,l,u,c,d]);return(0,iq.jsxs)(AR.Provider,{value:fe,children:[!x&&ai.getElement(h),re]})});function kne(e){let t=typeof e=="number"?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,t?.xStart||0),xEnd:Math.max(0,t?.xEnd||0),yStart:Math.max(0,t?.yStart||0),yEnd:Math.max(0,t?.yEnd||0)}}var Pc=k(A(),1);function Xr(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var fC=k(A(),1),PR=fC.createContext(void 0);function uq(){let e=fC.useContext(PR);if(e===void 0)throw new Error(Ve(55));return e}var yr=1;function sm(e,t){return Math.max(0,e-t)}function ri(e,t){if(t<=0)return 0;let n=Xr(e,0,t),a=n,r=t-n,o=a<=yr,s=r<=yr;return o&&s?a<=r?0:t:o?0:s?t:n}var cq="--scroll-area-overflow-x-start",dq="--scroll-area-overflow-x-end",fq="--scroll-area-overflow-y-start",mq="--scroll-area-overflow-y-end";var mC="--scroll-area-thumb-height",pC="--scroll-area-thumb-width";var yq=k(Z(),1),xq=[cq,dq,fq,mq],hq=!1;function Lne(){hq||it.engine.webkit||(typeof CSS<"u"&&"registerProperty"in CSS&&xq.forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),hq=!0)}var vq=Pc.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,{viewportRef:i,scrollbarYRef:l,scrollbarXRef:u,thumbYRef:c,thumbXRef:d,cornerRef:f,cornerSize:m,setCornerSize:p,setThumbSize:h,rootId:x,setHiddenState:b,hiddenState:g,setHasMeasuredScrollbar:y,handleScroll:v,touchModality:C,setHovering:S,setOverflowEdges:_,overflowEdgeThreshold:w,viewportState:R}=ss(),$=Ja(),j=Pc.useRef(!0),M=Pc.useRef([NaN,NaN,NaN,NaN]),I=nt(),N=nt(),E=X(()=>{let L=i.current,V=l.current,q=u.current,G=c.current,T=d.current,F=f.current;if(!L)return;let O=L.scrollHeight,Q=L.scrollWidth,W=L.clientHeight,ee=L.clientWidth,le=L.scrollTop,ce=L.scrollLeft,J=M.current,te=Number.isNaN(J[0]);if(J[0]=W,J[1]=O,J[2]=ee,J[3]=Q,te&&y(!0),O===0||Q===0)return;let pe=Rne(L),be=pe.y,je=pe.x,ge=ee/Q,$e=W/O,ue=Math.max(0,Q-ee),Le=Math.max(0,O-W),Oe=0,Ae=0;je||(Oe=ri($==="rtl"?-ce:ce,ue),Ae=ue-Oe);let gt=be?0:ri(le,Le),re=be?0:Le-gt,fe=je?0:ee,Y=be?0:W,H=0,ie=0;!je&&!be&&(H=V?.offsetWidth||0,ie=q?.offsetHeight||0);let Be=m.width===0&&m.height===0,Ut=Be?H:0,fn=Be?ie:0,Ot=bo(q,"padding","x"),jt=bo(V,"padding","y"),zn=bo(T,"margin","x"),qn=bo(G,"margin","y"),mn=fe-Ot-zn,na=Y-jt-qn,Ta=q?Math.min(q.offsetWidth-Ut,mn):mn,xr=V?Math.min(V.offsetHeight-fn,na):na,En=Math.max(16,Ta*ge),Zt=Math.max(16,xr*$e);if(h(rt=>gC(rt,{width:En,height:Zt})),V&&G){let rt=V.offsetHeight-Zt-jt-qn,Gt=bq(G,mC,le,Le,O,Zt,rt);G.style.transform=`translate3d(0,${Gt}px,0)`}if(q&&T){let rt=q.offsetWidth-En-Ot-zn,Gt=$==="rtl"?-ce:ce,Ea=bq(T,pC,Gt,ue,Q,En,rt);T.style.transform=`translate3d(${$==="rtl"?-Ea:Ea}px,0,0)`}let Te=[Oe,Ae,gt,re];xq.forEach((rt,Gt)=>{L.style.setProperty(rt,`${Te[Gt]}px`)}),F&&p(rt=>gC(rt,{width:H,height:ie})),b(rt=>gC(rt,pe));let Ft={xStart:!je&&Oe>w.xStart,xEnd:!je&&Ae>w.xEnd,yStart:!be&>>w.yStart,yEnd:!be&&re>w.yEnd};_(rt=>gC(rt,Ft))});U(()=>{Lne()},[]),U(()=>{queueMicrotask(E)},[E,g,$,w.xStart,w.xEnd,w.yStart,w.yEnd]),U(()=>{i.current?.matches(":hover")&&S(!0)},[i,S]),U(()=>{let L=i.current;if(typeof ResizeObserver>"u"||!L)return;let V=!1,q=new ResizeObserver(()=>{if(!V){V=!0;let G=M.current;if(G[0]===L.clientHeight&&G[1]===L.scrollHeight&&G[2]===L.clientWidth&&G[3]===L.scrollWidth)return}E()});return q.observe(L),N.start(0,()=>{let G=L.getAnimations({subtree:!0});G.length!==0&&Promise.allSettled(G.map(T=>T.finished)).then(E).catch(()=>{})}),()=>{q.disconnect(),N.clear()}},[E,i,N]);function B(){j.current=!1}let z={role:"presentation",...x&&{"data-id":`${x}-viewport`},tabIndex:g.x&&g.y?-1:0,className:ai.className,style:{overflow:"scroll"},onScroll(){i.current&&(E(),(C||!j.current)&&v({x:i.current.scrollLeft,y:i.current.scrollTop}),I.start(100,()=>{j.current=!0}))},onWheel:B,onPointerMove:B,onPointerEnter:B,onKeyDown:B},P=oe("div",t,{ref:[n,i],state:R,props:[z,s],stateAttributesMapping:Bl}),D=Pc.useMemo(()=>({computeThumbPosition:E}),[E]);return(0,yq.jsx)(PR.Provider,{value:D,children:P})});function Rne(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function gC(e,t){for(let n in t)if(e[n]!==t[n])return t;return e}function bq(e,t,n,a,r,o,s){let i=Xr(n,0,a),l=n-i,u=Math.max(16,o*r/(r+Math.abs(l)));return e.style.setProperty(t,l?`${u}px`:""),(a?i/a*s:0)+(l>0?o-u:0)}var bC=k(A(),1);var hC=k(A(),1),MR=hC.createContext(void 0);function Cq(){let e=hC.useContext(MR);if(e===void 0)throw new Error(Ve(54));return e}var wq=k(Z(),1),_q=bC.forwardRef(function(t,n){let{render:a,className:r,orientation:o="vertical",keepMounted:s=!1,style:i,...l}=t,{hovering:u,scrollingX:c,scrollingY:d,hiddenState:f,scrollbarYRef:m,scrollbarXRef:p,viewportRef:h,thumbYRef:x,thumbXRef:b,handlePointerDown:g,handlePointerUp:y,handleScroll:v,disableViewportSnap:C,rootId:S,thumbSize:_,hasMeasuredScrollbar:w,viewportState:R}=ss(),$=o==="vertical",j={...R,hovering:u,scrolling:$?d:c,orientation:o},M=Ja(),I=!w&&!s,N=$?f.y:f.x,E=s||!N;bC.useEffect(()=>{if(!E)return;let P=h.current,D=$?m.current:p.current;if(!D)return;function L(V){if(!P||V.ctrlKey)return;let q=!$,G=q?"scrollLeft":"scrollTop",T=q?V.deltaX:V.deltaY;if(T===0)return;let F=q?P.scrollWidth-P.clientWidth:P.scrollHeight-P.clientHeight,O=q&&M==="rtl"?-F:0,Q=q&&M==="rtl"?0:F,W=P[G];W<=O&&T<0||W>=Q&&T>0||(V.preventDefault(),P[G]=Math.min(Q,Math.max(O,W+T)),v({x:P.scrollLeft,y:P.scrollTop}))}return ke(D,"wheel",L,{passive:!1})},[M,v,$,p,m,E,h]);let B={...S&&{"data-id":`${S}-scrollbar`},"aria-hidden":!0,onPointerDown(P){if(P.button!==0)return;let D=ct(P.nativeEvent),L=$?x.current:b.current;if(L&&de(L,D))return;let V=h.current;if(!V)return;let q=$?m.current:p.current;if(!L||!q)return;let G=$?"y":"x",T=bo(L,"margin",G),F=bo(q,"padding",G),O=$?L.offsetHeight:L.offsetWidth,Q=q.getBoundingClientRect(),W=$?P.clientY-Q.top-O/2-F+T/2:P.clientX-Q.left-O/2-F+T/2,ee=$?V.scrollHeight:V.scrollWidth,le=$?V.clientHeight:V.clientWidth,J=($?q.offsetHeight:q.offsetWidth)-O-F-T;if(J<=0)return;let te=W/J,pe=ee-le;C(),$?V.scrollTop=te*pe:M==="rtl"?V.scrollLeft=-(1-te)*pe:V.scrollLeft=te*pe,v({x:V.scrollLeft,y:V.scrollTop}),g(P)},onMouseDown(P){P.preventDefault()},onPointerUp:y,onPointerCancel:y,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:I?"hidden":void 0,...$?{top:0,bottom:`var(${cC})`,insetInlineEnd:0,[mC]:`${_.height}px`}:{insetInlineStart:0,insetInlineEnd:`var(${dC})`,bottom:0,[pC]:`${_.width}px`}}},z=oe("div",t,{ref:[n,$?m:p],state:j,props:[B,l],stateAttributesMapping:Bl});return E?(0,wq.jsx)(MR.Provider,{value:o,children:z}):null});var Ph=k(A(),1);var Sq=Ph.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,{computeThumbPosition:i}=uq(),{hasMeasuredScrollbar:l,viewportState:u}=ss(),c=Ph.useRef(null),d=Ph.useRef(l);return U(()=>{if(typeof ResizeObserver>"u")return;let m=!1,p=new ResizeObserver(()=>{!m&&(m=!0,!d.current)||i()});return c.current&&p.observe(c.current),()=>{p.disconnect()}},[i]),oe("div",t,{ref:[n,c],state:u,stateAttributesMapping:Bl,props:[{role:"presentation",style:{minWidth:"fit-content"}},s]})});var kq=k(A(),1);var $q=kq.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,{thumbYRef:i,thumbXRef:l,handlePointerDown:u,handlePointerMove:c,handlePointerUp:d,scrollingX:f,scrollingY:m,hasMeasuredScrollbar:p}=ss(),h=Cq(),x=h==="vertical";return oe("div",t,{ref:[n,x?i:l],state:{scrolling:x?m:f,orientation:h},props:[{onPointerDown:u,onPointerMove:c,onPointerUp:d,onPointerCancel:d,style:{visibility:p?void 0:"hidden",...x?{height:"var(--scroll-area-thumb-height)"}:{width:"var(--scroll-area-thumb-width)"}}},s]})});var Lq=k(A(),1);var Rq=Lq.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,{cornerRef:i,cornerSize:l,hiddenState:u}=ss(),c=oe("div",t,{ref:[n,i],props:[{"aria-hidden":!0,style:{position:"absolute",bottom:0,insetInlineEnd:0,width:l.width,height:l.height}},s]});return u.corner?null:c});var Vl=k(Z(),1);function Iq({className:e,children:t,...n}){let a=rv();return(0,Vl.jsxs)(Fl.Root,{"data-slot":"scroll-area",className:ne("relative",e),...n,children:[(0,Vl.jsx)(Fl.Viewport,{ref:a,"data-slot":"scroll-area-viewport",className:"scroll-fade size-full max-h-[inherit] rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:t}),(0,Vl.jsx)(Ine,{}),(0,Vl.jsx)(Fl.Corner,{})]})}function Ine({className:e,orientation:t="vertical",...n}){return(0,Vl.jsx)(Fl.Scrollbar,{"data-slot":"scroll-area-scrollbar","data-orientation":t,orientation:t,className:ne("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent",e),...n,children:(0,Vl.jsx)(Fl.Thumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}var et=k(Z(),1);function jne({run:e,active:t}){let[n,a]=(0,yC.useState)(Date.now());return(0,yC.useEffect)(()=>{if(!t)return;let r=setInterval(()=>a(Date.now()),1e3);return()=>clearInterval(r)},[t]),(0,et.jsx)("span",{className:ne("text-sm font-semibold tabular-nums",t&&"text-info"),children:t?Rs((n-Date.parse(e.startedAt))/1e3):e.time})}function jq({run:e,expanded:t,when:n}){let a=e.state==="running"||e.state==="queued";return(0,et.jsxs)("div",{className:ne("grid grid-cols-[auto_1fr_auto] items-start gap-3.5 p-4 text-left",t&&"pr-12"),children:[(0,et.jsxs)("div",{className:"mt-0.5 flex w-5 flex-col items-center justify-between gap-2.5 self-stretch",children:[(0,et.jsx)(Gz,{state:e.state,verifyFailed:e.verifyFailed}),(0,et.jsx)(sC,{backend:By(e.worker).backend,active:e.state==="running",className:"size-[18px] rounded-[5px] opacity-90"})]}),(0,et.jsxs)("div",{className:"min-w-0 space-y-1.5",children:[(0,et.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,et.jsx)(Xd,{worker:e.worker}),(0,et.jsx)("span",{className:"text-[13px] text-muted-foreground",children:e.kind}),e.verdict&&(0,et.jsx)(yM,{verdict:e.verdict}),e.audit&&(0,et.jsx)(Ak,{audit:e.audit}),e.changes?(0,et.jsxs)(Qi,{children:[e.changes," file",e.changes===1?"":"s"]}):null,e.applied&&(0,et.jsx)(Qi,{tone:"good",children:"applied"})]}),(0,et.jsx)(c1,{className:"!mt-0 break-words px-0 text-[15px] font-normal leading-snug tracking-normal",children:e.task}),(a||e.note)&&(0,et.jsx)(d1,{className:"line-clamp-2 break-words px-0 text-[13px]",children:a?(0,et.jsx)(g0,{duration:1.6,children:e.note||"working"}):e.note}),e.state==="running"&&(0,et.jsx)("div",{className:"mt-2 h-[3px] overflow-hidden rounded-full bg-info/15",children:(0,et.jsx)("div",{className:"h-full w-[38%] rounded-full bg-gradient-to-r from-transparent via-info to-transparent",style:{animation:"indeterminate 1.5s cubic-bezier(.22,1,.36,1) infinite"}})})]}),(0,et.jsxs)("div",{className:"flex flex-col items-end gap-0.5",children:[(0,et.jsx)(jne,{run:e,active:a}),(0,et.jsx)("span",{className:"text-xs text-muted-foreground",children:[e.steps?`${e.steps} step${e.steps===1?"":"s"}`:"",e.tokens?`${Is(e.tokens)} tokens`:""].filter(Boolean).join(" \xB7 ")}),e.saved?(0,et.jsxs)("span",{className:"text-xs text-success",children:["~",Tr(e.saved)]}):null,n&&(0,et.jsx)("span",{title:new Date(e.startedAt).toLocaleString(),className:"text-xs text-muted-foreground/80",children:Oy(e.startedAt)})]})]})}function zl({run:e,index:t,when:n,defaultOpen:a,onClose:r}){let o=e.state==="running"||e.state==="queued";return(0,et.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2 fill-mode-both",style:{animationDelay:`${Math.min(t,8)*45}ms`,animationDuration:"500ms"},children:(0,et.jsxs)(i1,{defaultOpen:a,onClose:r,children:[(0,et.jsx)(p0,{className:ne("rounded-xl border pb-0 shadow-none transition-colors duration-300 hover:border-foreground/25",e.state==="running"&&"border-info/30"),children:(0,et.jsx)(jq,{run:e,when:n})}),(0,et.jsxs)(u1,{className:"max-h-[88vh] w-full border pb-0 shadow-2xl",children:[(0,et.jsx)("div",{className:"shrink-0",children:(0,et.jsx)(jq,{run:e,expanded:!0,when:n})}),(0,et.jsx)(Iq,{className:"max-h-[calc(88vh-6.5rem)] border-t",children:(0,et.jsx)(l1,{className:"px-4 pb-5 pt-4 sm:pl-[3.4rem]",children:(0,et.jsx)(zF,{id:e.id,live:o})})})]})]})})}var cm={};aa(cm,{Indicator:()=>t4,List:()=>u4,Panel:()=>a4,Root:()=>Dq,Tab:()=>Bq});var cn=k(A(),1);var Mc=k(A(),1);function Dc({controlled:e,default:t,name:n,state:a="value"}){let{current:r}=Mc.useRef(e!==void 0),[o,s]=Mc.useState(t),i=r&&e!==void 0?e:o,l=Mc.useCallback(u=>{r||s(u)},[]);return[i,l]}var oi=k(A(),1);var xC=k(A(),1),DR=xC.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function Tq(){return xC.useContext(DR)}var Eq=k(Z(),1);function im(e){let{children:t,elementsRef:n,labelsRef:a,onMapChange:r}=e,o=X(r),[,s]=oi.useState(!1),i=st(Ene).current,l=st(Tne).current,u=oi.useRef(0),c=oi.useRef(!0),d=oi.useRef(null),f=oi.useRef(null),m=X(()=>{c.current||(c.current=!0,s(C=>!C))}),p=X((C,S)=>{l.set(C,S),m()}),h=X(C=>{l.delete(C),m()}),x=X(C=>{let S=new Map;return n.current.length=0,a&&(a.current.length=0),C.forEach(_=>{S.set(_.element,{..._.registration.metadata??{},index:_.index}),n.current[_.index]=_.element,a&&(a.current[_.index]=_.registration.label!==void 0?_.registration.label:_.registration.textRef?.current?.textContent??_.element.textContent)}),u.current=n.current.length,S});function b(C){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!="function"||C.length<2)return;let S=new MutationObserver(w=>{if(!Mne(w))return;let R=null;for(let $ of C)if($.isConnected){if(R&&Aq(R,$)>0){S.disconnect(),m();return}R=$}});f.current=S;let _=new Set;for(let w=1;w<C.length;w+=1){let R=Pne(C[w-1],C[w]);R&&_.add(R)}_.forEach(w=>S.observe(w,{childList:!0}))}let g=X(()=>{let[C,S]=Ane(l),_=x(C),w=d.current,R=!w||w.length!==C.length||C.some(($,j)=>{let M=w[j];return $.index!==M.index||$.element!==M.element||$.registration.index!==M.registration.index||$.registration.metadata!==M.registration.metadata});b(S),d.current=C,c.current=!1,R&&(i.forEach($=>$(_)),o(_))});U(()=>(!c.current&&d.current&&x(d.current),()=>{n.current=[],a&&(a.current=[])}),[n,a,x]),U(()=>{c.current&&g()}),U(()=>()=>{f.current?.disconnect(),c.current=!0},[]);let y=X(C=>(i.add(C),()=>{i.delete(C)})),v=oi.useMemo(()=>({register:p,unregister:h,subscribeMapChange:y,nextIndexRef:u}),[p,h,y,u]);return(0,Eq.jsx)(DR.Provider,{value:v,children:t})}function Tne(){return new Map}function Ene(){return new Set}function Ane(e){let t=new Set,n=[],a=[];e.forEach((o,s)=>{if(!s.isConnected)return;let i=o.index,l={index:i??-1,element:s,registration:o};i===null?a.push(l):i>=0&&(t.add(i),n.push(l))});let r=0;return a.sort((o,s)=>Aq(o.element,s.element)),a.forEach(o=>{for(;t.has(r);)r+=1;o.index=r,n.push(o),r+=1}),t.size>0&&n.sort((o,s)=>o.index-s.index),[n,a.map(o=>o.element)]}function Pne(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function Mne(e){for(let t of e)for(let n=0;n<t.removedNodes.length;n+=1)if(t.removedNodes[n].isConnected)return!0;return!1}function Aq(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var vC=k(A(),1),NR=vC.createContext(void 0);function ql(){let e=vC.useContext(NR);if(e===void 0)throw new Error(Ve(64));return e}var Pq="data-activation-direction";var is={tabActivationDirection:e=>({[Pq]:e})};var OR=k(Z(),1),Dq=cn.forwardRef(function(t,n){let{className:a,defaultValue:r=0,onValueChange:o,orientation:s="horizontal",render:i,value:l,style:u,...c}=t,d=t.defaultValue!==void 0,f=cn.useRef([]),[m,p]=cn.useState(()=>new Map),[h,x]=Dc({controlled:l,default:r,name:"Tabs",state:"value"}),b=l!==void 0,[g,y]=cn.useState(()=>new Map),v=cn.useRef(void 0),C=cn.useCallback(W=>BR(g,W),[g]),[S,_]=cn.useState(()=>({previousValue:h,tabActivationDirection:"none"})),{previousValue:w,tabActivationDirection:R}=S,$=R,j=!1;w!==h&&($=Mq(w,h,s,g),j=w!=null&&h!=null&&C(h)==null);let M=j?w:h,I=w!==M||R!==$;U(()=>{I&&_({previousValue:M,tabActivationDirection:$})},[M,I,$]);let N=X((W,ee)=>{let le=Mq(h,W,s,g);ee.activationDirection=le,o?.(W,ee),!ee.isCanceled&&x(W)}),E=X((W,ee)=>{o?.(W,ve(ee,void 0,void 0,{activationDirection:"none"}))}),B=X((W,ee)=>(p(le=>{let ce=new Map(le);return ce.set(W,ee),ce}),()=>{p(le=>{if(le.get(W)!==ee)return le;let ce=new Map(le);return ce.delete(W),ce})})),z=cn.useCallback(W=>m.get(W),[m]),P=cn.useCallback(W=>{for(let ee of g.values())if(W===ee.value)return ee.id},[g]),D=cn.useMemo(()=>({getTabElementBySelectedValue:C,getTabIdByPanelValue:P,getTabPanelIdByValue:z,onValueChange:N,orientation:s,registerMountedTabPanel:B,setTabMap:y,tabActivationDirection:$,value:h}),[C,P,z,N,s,B,y,$,h]),L=cn.useMemo(()=>{for(let W of g.values())if(W.value===h)return W},[g,h]),V=cn.useMemo(()=>{for(let W of g.values())if(!W.disabled)return W.value},[g]),q=cn.useRef(!d),G=cn.useRef(r),T=cn.useRef(d),F=cn.useRef(!1);U(()=>{if(b)return;function W(J,te){x(J),_({previousValue:J,tabActivationDirection:"none"}),E(J,te),q.current=!1}if(g.size===0){F.current&&h!==null&&!v.current?.isConnected&&W(null,se.missing);return}F.current=!0,v.current=g.keys().next().value;let ee=L?.disabled,le=L==null&&h!==null;if(!ee&&h===G.current&&(T.current=!1),T.current&&ee&&h===G.current)return;let ce=q.current;if(ee||le){let J=V??null;if(h===J){q.current=!1;return}let te=se.missing;ce?te=se.initial:ee&&(te=se.disabled),W(J,te);return}ce&&L!=null&&(E(h,se.initial),q.current=!1)},[V,b,E,L,x,g,h]);let Q=oe("div",t,{state:{orientation:s,tabActivationDirection:$},ref:n,props:c,stateAttributesMapping:is});return(0,OR.jsx)(NR.Provider,{value:D,children:(0,OR.jsx)(im,{elementsRef:f,children:Q})})});function BR(e,t){for(let[n,a]of e.entries())if(t===a.value)return n;return null}function Mq(e,t,n,a){if(e==null||t==null)return"none";let[r,o,s]=n==="horizontal"?["left","left","right"]:["top","up","down"],i=BR(a,e),l=BR(a,t);if(i==null||l==null)return i!==l&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?s:o:"none";let u=i.getBoundingClientRect()[r],c=l.getBoundingClientRect()[r];return c<u?o:c>u?s:"none"}var si=k(A(),1);var Mh="data-composite-item-active";var Nq=k(A(),1);var Nc=k(A(),1);function lm(e={}){let{guess:t,label:n,metadata:a,textRef:r,index:o}=e,{register:s,unregister:i,subscribeMapChange:l,nextIndexRef:u}=Tq(),c=Nc.useRef(-1),[d,f]=Nc.useState(o==null&&t?()=>{if(c.current===-1){let x=u.current;u.current+=1,c.current=x}return c.current}:-1),m=o??d,p=Nc.useRef(null),h=Nc.useCallback(x=>{let b=p.current;b&&i(b),p.current=x,x&&s(x,{metadata:a??null,index:o??null,label:n,textRef:r})},[o,s,i,a,n,r]);return U(()=>{if(o==null)return l(x=>{let b=p.current?x.get(p.current)?.index:null;b!=null&&f(b)})},[o,l]),{ref:h,index:m}}function Oq(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:a}=kf(),{ref:r,index:o}=lm(e),s=n===o,i=Nq.useRef(null),l=jr(r,i);return{compositeProps:{tabIndex:s?0:-1,onFocus(){a(o)},onMouseMove(){let c=i.current;if(!t||!c)return;let d=c.hasAttribute("disabled")||c.ariaDisabled==="true";!s&&!d&&c.focus()}},compositeRef:l,index:o}}var CC=k(A(),1),FR=CC.createContext(void 0);function wC(){let e=CC.useContext(FR);if(e===void 0)throw new Error(Ve(65));return e}var Bq=si.forwardRef(function(t,n){let{className:a,disabled:r=!1,render:o,value:s,id:i,nativeButton:l=!0,style:u,...c}=t,{value:d,getTabPanelIdByValue:f,onValueChange:m,orientation:p,tabActivationDirection:h}=ql(),{activateOnFocus:x,registerTabResizeObserverElement:b,tabsListElement:g}=wC(),{highlightedIndex:y,onHighlightedIndexChange:v}=kf(),C=Cn(i),S=si.useMemo(()=>({disabled:r,id:C,value:s}),[r,C,s]),{compositeProps:_,compositeRef:w,index:R}=Oq({metadata:S}),$=s===d,j=si.useRef(!1),M=si.useRef(null),I=X(F=>{M.current?.(),M.current=F?b(F):null});U(()=>{if(j.current){j.current=!1;return}if(!($&&R>-1&&y!==R))return;let F=g;if(F!=null){let O=Xt(Se(F));if(O&&de(F,O))return}r||v(R)},[$,R,y,v,r,g]);let{getButtonProps:N,buttonRef:E}=Os({disabled:r,native:l,focusableWhenDisabled:!0}),B=f(s),z=si.useRef(!1),P=si.useRef(!1);function D(F){m(s,ve(se.none,F.nativeEvent,void 0,{activationDirection:"none"}))}function L(F){$||r||D(F)}function V(F){$||r||x&&(!z.current||P.current)&&D(F)}function q(F){if($||r)return;z.current=!0,P.current=F.button===0;let O=Se(F.currentTarget);function Q(){z.current=!1,P.current=!1,O.removeEventListener("pointerup",Q),O.removeEventListener("pointercancel",Q)}O.addEventListener("pointerup",Q),O.addEventListener("pointercancel",Q)}return oe("button",t,{state:{disabled:r,active:$,orientation:p,tabActivationDirection:h},ref:[n,E,w,I],props:[_,{role:"tab","aria-controls":B,"aria-selected":$,id:C,onClick:L,onFocus:V,onPointerDown:q,[Mh]:$?"":void 0,onKeyDownCapture(){j.current=!0}},c,N],stateAttributesMapping:is})});var um=k(A(),1);var WOe=k(A(),1);var Fq=k(Rh(),1);function Nne(){return De}function One(){return!1}function Bne(){return!0}function Vq(){return(0,Fq.useSyncExternalStore)(Nne,One,Bne)}var zq=k(Z(),1);function qq(e){let{script:t}=e,{nonce:n}=om();return Vq()?(0,zq.jsx)("script",{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}function Hq(e,t){let n=(t??qe(e).getComputedStyle(e)).transform,a=0,r=0,o=1;if(n&&n!=="none"){let s=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(s){let i=s[1].split(", ").map(parseFloat);i.length===6?(a=i[4],r=i[5],o=Math.sqrt(i[0]*i[0]+i[1]*i[1])):i.length===16&&(a=i[12],r=i[13],o=i[0])}}return{x:a,y:r,scale:o}}var Uq="--active-tab-left",Gq="--active-tab-right",Wq="--active-tab-top",Xq="--active-tab-bottom",Yq="--active-tab-width",Zq="--active-tab-height";var _C=k(Z(),1),Kq,Vne={...is,activeTabPosition:()=>null,activeTabSize:()=>null},Qq=2,t4=um.forwardRef(function(t,n){let{className:a,render:r,renderBeforeHydration:o=!1,style:s,...i}=t,{getTabElementBySelectedValue:l,orientation:u,tabActivationDirection:c,value:d}=ql(),{tabsListElement:f,registerIndicatorUpdateListener:m}=wC(),p=$V();um.useEffect(()=>m(p),[m,p]);let h=0,x=0,b=0,g=0,y=0,v=0,C=!1;if(d!=null&&f!=null){let M=l(d);if(M!=null){C=!0;let{width:I,height:N}=Qf(M),{width:E,height:B}=Qf(f),z=M.getBoundingClientRect(),P=f.getBoundingClientRect(),D=E>0?P.width/E:1,L=B>0?P.height/B:1,V=zne(M,f);h=V.left,b=V.top;let q=(z.left-P.left)/D+f.scrollLeft-f.clientLeft,G=(z.top-P.top)/L+f.scrollTop-f.clientTop,T=qne(M);Math.abs(q-T.x-h)<=Qq&&Math.abs(G-T.y-b)<=Qq&&(h=q,b=G),y=I,v=N,x=f.scrollWidth-h-y,g=f.scrollHeight-b-v}}let S=C?{left:h,right:x,top:b,bottom:g}:null,_=C?{width:y,height:v}:null,w=C?{[Uq]:`${h}px`,[Gq]:`${x}px`,[Wq]:`${b}px`,[Xq]:`${g}px`,[Yq]:`${y}px`,[Zq]:`${v}px`}:void 0,R=C&&y>0&&v>0,j=oe("span",t,{state:{orientation:u,activeTabPosition:S,activeTabSize:_,tabActivationDirection:c},ref:n,props:[{role:"presentation",style:w,hidden:!R},i,{suppressHydrationWarning:!0}],stateAttributesMapping:Vne});return d==null?null:(0,_C.jsxs)(um.Fragment,{children:[j,o&&(Kq||(Kq=(0,_C.jsx)(qq,{script:""})))]})});function zne(e,t){let n=Jq(e),a=Jq(t),r=n.left-a.left-t.clientLeft,o=n.top-a.top-t.clientTop,s=pr(e);for(;He(s)&&s!==t&&!Dr(s);)r-=s.scrollLeft,o-=s.scrollTop,s=pr(s);return{left:r,top:o}}function Jq(e){let t=0,n=0,a=e;for(;a!=null;){t+=a.offsetLeft,n+=a.offsetTop;let r=a.offsetParent;r!=null&&(t+=r.clientLeft,n+=r.clientTop),a=r}return{left:t,top:n}}function qne(e){let t=qe(e).getComputedStyle(e),{x:n,y:a}=Hq(e,t),r=n,o=a,{translate:s}=t;if(s&&s!=="none"){let i=s.split(" ");r+=e4(i[0],e.offsetWidth),o+=e4(i[1],e.offsetHeight)}return{x:r,y:o}}function e4(e,t){if(!e)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith("%")?n/100*t:n:0}var SC=k(A(),1);var n4="data-index";var fBe=Nf.startingStyle,mBe=Nf.endingStyle;var Une={...is,...Ya},a4=SC.forwardRef(function(t,n){let{className:a,value:r,render:o,keepMounted:s=!1,style:i,...l}=t,{value:u,getTabIdByPanelValue:c,orientation:d,tabActivationDirection:f,registerMountedTabPanel:m}=ql(),p=Cn(),{ref:h,index:x}=lm(),b=r===u,{mounted:g,transitionStatus:y,setMounted:v}=Qa(b),C=!g,S=c(r),_={hidden:C,orientation:d,tabActivationDirection:f,transitionStatus:y},w=SC.useRef(null),R=oe("div",t,{state:_,ref:[n,h,w],props:[{"aria-labelledby":S,hidden:C,id:p,role:"tabpanel",tabIndex:b?0:-1,inert:Kf(!b),[n4]:x},l],stateAttributesMapping:Une});return ga({open:b,ref:w,onComplete(){b||v(!1)}}),U(()=>{if(!(p==null||C&&!s))return m(r,p)},[C,s,r,p,m]),s||g?R:null});var yo=k(A(),1);var i4=k(A(),1);var Oc=k(A(),1);function kC(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}var LC="ArrowUp",RC="ArrowDown",IC="ArrowLeft",jC="ArrowRight",TC="Home",EC="End";var AC=new Set([LC,RC,IC,jC,TC,EC]),Gne="Shift",o4=[Gne,"Control","Alt","Meta"];function Wne(e){return He(e)&&e.tagName==="INPUT"}function VR(e){return!!(Wne(e)&&e.selectionStart!=null||He(e)&&e.tagName==="TEXTAREA")}function zR(e,t,n,a){if(!e||!t||!t.scrollTo)return;let r=e.scrollLeft,o=e.scrollTop,s=e.clientWidth<e.scrollWidth,i=e.clientHeight<e.scrollHeight;if(s&&a!=="vertical"){let l=r4(e,t,"left"),u=$C(e),c=$C(t);n==="ltr"&&(l+t.offsetWidth+c.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?r=l+t.offsetWidth+c.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:l-c.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(r=l-c.scrollMarginLeft-u.scrollPaddingLeft)),n==="rtl"&&(l-c.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft?r=l-c.scrollMarginLeft-u.scrollPaddingLeft:l+t.offsetWidth+c.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(r=l+t.offsetWidth+c.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(i&&a!=="horizontal"){let l=r4(e,t,"top"),u=$C(e),c=$C(t);l-c.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?o=l-c.scrollMarginTop-u.scrollPaddingTop:l+t.offsetHeight+c.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(o=l+t.offsetHeight+c.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:r,top:o,behavior:"auto"})}function r4(e,t,n){let a=n==="left"?"offsetLeft":"offsetTop",r=0;for(;t.offsetParent&&(r+=t[a],t.offsetParent!==e);)t=t.offsetParent;return r}function $C(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function s4(e){let{loopFocus:t=!0,orientation:n="both",grid:a,onLoop:r,direction:o,highlightedIndex:s,onHighlightedIndexChange:i,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:c,disabledIndices:d,modifierKeys:f=za}=e,[m,p]=Oc.useState(0),h=a!=null,x=Oc.useRef(null),b=jr(x,l),g=Oc.useRef([]),y=Oc.useRef(!1),v=Oc.useRef(null),C=s??m,S=X((j,M=!1)=>{if(v.current=g.current[j]??null,(i??p)(j),M){let I=g.current[j];zR(x.current,I,o,n)}}),_=X(j=>{if(j.size===0)return;if(y.current){let E=g.current,B=E.indexOf(v.current);if(B===-1){let z=E[C];!z||ei(E,C,d)?S(Xne(E,d)):v.current=z}else B!==C&&S(B);return}y.current=!0;let M=Array.from(j.keys()),I=M.find(E=>E?.hasAttribute(Mh))??null,N=I?j.get(I)?.index??-1:-1;if(N!==-1)S(N);else if(ei(M,C,d)){let E=Ur(M,{disabledIndices:d});Al(M,E)||S(E)}zR(x.current,I,o,n)});U(()=>{if(d==null||s!=null||!y.current)return;let j=g.current;if(ei(j,C,d)){let M=Ur(j,{disabledIndices:d});Al(j,M)||S(M)}},[d,s,C,g,S]);let w=X((j,M,I)=>r?r(j,M,I,g):I),R=X(j=>{let M=j.key===TC||j.key===EC;if(!AC.has(j.key)||!u&&M||Yne(j,f)||!x.current)return;let N=o==="rtl",E=N?IC:jC,B=N?jC:IC,z=n==="vertical"?RC:E,P=n==="vertical"?LC:B,D=ct(j.nativeEvent);if(D!=null&&VR(D)&&!kC(D)){let F=D.selectionStart,O=D.selectionEnd,Q=D.value;if(F==null||j.shiftKey||F!==O||j.key!==P&&F<Q.length||j.key!==z&&F>0)return}let L=C,V=Sc(g,d),q=Ff(g,d);a!=null&&(L=a({disabledIndices:d,elementsRef:g,event:j,highlightedIndex:C,loopFocus:t,maxIndex:q,minIndex:V,onLoop:w,orientation:n,rtl:N}));let G=n!=="vertical"&&j.key===E||n!=="horizontal"&&j.key===RC,T=n!=="vertical"&&j.key===B||n!=="horizontal"&&j.key===LC;u&&(j.key===TC?L=V:j.key===EC&&(L=q)),L===C&&(G||T)&&(t&&L===q&&G?(L=V,r&&(L=r(j,C,L,g))):t&&L===V&&T?(L=q,r&&(L=r(j,C,L,g))):L=Ur(g.current,{startingIndex:L,decrement:T,disabledIndices:d})),L!==C&&!Al(g.current,L)&&(c&&j.stopPropagation(),(h||M||G||T)&&j.preventDefault(),S(L,!0),queueMicrotask(()=>{g.current[L]?.focus()}))});return{props:{ref:b,onFocus(j){let M=x.current,I=ct(j.nativeEvent);!M||I==null||!VR(I)||I.setSelectionRange(0,I.value.length)},onKeyDown:R},highlightedIndex:C,onHighlightedIndexChange:S,elementsRef:g,onMapChange:_,relayKeyboardEvent:R}}function Xne(e,t){let n=-1;for(let a=0;a<e.length;a+=1){let r=e[a];if(!(!r||ei(e,a,t))){if(r.hasAttribute(Mh))return a;n===-1&&(n=a)}}return Math.max(n,0)}function Yne(e,t){for(let n of o4)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}var qR=k(Z(),1);function l4(e){let{render:t,className:n,style:a,refs:r=za,props:o=za,state:s=Qe,stateAttributesMapping:i,highlightedIndex:l,onHighlightedIndexChange:u,orientation:c,grid:d,loopFocus:f,onLoop:m,enableHomeAndEndKeys:p,onMapChange:h,stopEventPropagation:x=!0,rootRef:b,disabledIndices:g,modifierKeys:y,highlightItemOnHover:v=!1,tag:C="div",...S}=e,_=Ja(),{props:w,highlightedIndex:R,onHighlightedIndexChange:$,elementsRef:j,onMapChange:M,relayKeyboardEvent:I}=s4({grid:d,loopFocus:f,onLoop:m,orientation:c,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:b,stopEventPropagation:x,enableHomeAndEndKeys:p,direction:_,disabledIndices:g,modifierKeys:y}),N=oe(C,e,{state:s,ref:r,props:[w,...o,S],stateAttributesMapping:i}),E=i4.useMemo(()=>({highlightedIndex:R,onHighlightedIndexChange:$,highlightItemOnHover:v,relayKeyboardEvent:I}),[R,$,v,I]);return(0,qR.jsx)(r1.Provider,{value:E,children:(0,qR.jsx)(im,{elementsRef:j,onMapChange:B=>{h?.(B),M(B)},children:N})})}var HR=k(Z(),1),u4=yo.forwardRef(function(t,n){let{activateOnFocus:a=!1,className:r,loopFocus:o=!0,render:s,style:i,...l}=t,{orientation:u,setTabMap:c,tabActivationDirection:d}=ql(),[f,m]=yo.useState(0),[p,h]=yo.useState(null),x=yo.useRef(new Set),b=yo.useRef(new Set),g=yo.useRef(null);U(()=>{if(typeof ResizeObserver>"u")return;let w=new ResizeObserver(()=>{x.current.forEach(R=>{R()})});return g.current=w,p&&w.observe(p),b.current.forEach(R=>{w.observe(R)}),()=>{w.disconnect(),g.current=null}},[p]);let y=X(w=>(x.current.add(w),()=>{x.current.delete(w)})),v=X(w=>(b.current.add(w),g.current?.observe(w),()=>{b.current.delete(w),g.current?.unobserve(w)})),C={orientation:u,tabActivationDirection:d},S={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},_=yo.useMemo(()=>({activateOnFocus:a,registerIndicatorUpdateListener:y,registerTabResizeObserverElement:v,tabsListElement:p}),[a,y,v,p]);return(0,HR.jsx)(FR.Provider,{value:_,children:(0,HR.jsx)(l4,{render:s,className:r,style:i,state:C,refs:[n,h],props:[S,l],stateAttributesMapping:is,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:o,orientation:u,onHighlightedIndexChange:m,onMapChange:c,disabledIndices:za})})});var DC=k(Z(),1);function PC({className:e,orientation:t="horizontal",...n}){return(0,DC.jsx)(cm.Root,{"data-slot":"tabs","data-orientation":t,className:ne("group/tabs flex gap-2 data-horizontal:flex-col",e),...n})}var Zne=Wd("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function MC({className:e,variant:t="default",...n}){return(0,DC.jsx)(cm.List,{"data-slot":"tabs-list","data-variant":t,className:ne(Zne({variant:t}),e),...n})}function dm({className:e,...t}){return(0,DC.jsx)(cm.Tab,{"data-slot":"tabs-trigger",className:ne("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}var er=k(A(),1);var I4=k(A(),1);var KC={};aa(KC,{Control:()=>k4,Description:()=>_4,Error:()=>C4,Item:()=>R4,Label:()=>v4,Root:()=>x4,Validity:()=>L4});var Vn=k(A(),1);var NC=k(A(),1);var c4="data-valid",d4="data-invalid";var Bc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Qne={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},f4={disabled:!1,...Qne},ba={valid(e){return e===null?null:e?{[c4]:""}:{[d4]:""}}};var Jne={invalid:void 0,name:void 0,validityData:{state:Bc,errors:[],error:"",value:"",initialValue:null},setValidityData:De,disabled:void 0,setTouched:De,setDirty:De,setFilled:De,setFocused:De,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:f4,registerFieldControl:De,validation:{getValidationProps:(e,t=Qe)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:De,getInputControl:()=>null,commit:async()=>{},change:De}},UR=NC.createContext(Jne);function wn(e=!0){let t=NC.useContext(UR);if(t.setValidityData===De&&!e)throw new Error(Ve(28));return t}var OC=k(A(),1),eae=OC.createContext(void 0);function m4(e=!1){let t=OC.useContext(eae);if(!t&&!e)throw new Error(Ve(86));return t}var BC=k(A(),1);var tae=BC.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:De,validationMode:"onSubmit",submitCountRef:{current:0}});function Yr(){return BC.useContext(tae)}var Hl=k(A(),1);var FC=k(A(),1);var GR=FC.createContext({controlId:void 0,registerControlId:De,resetControlId:De,labelId:void 0,setLabelId:De,messageIds:[],setMessageIds:De,getDescriptionProps:e=>e});function Fn(){return FC.useContext(GR)}var p4=k(Z(),1),VC=function(t){let n=Cn(),[a,r]=Hl.useState(n),[o,s]=Hl.useState(),[i,l]=Hl.useState([]),u=a===void 0?n:a,c=st(()=>new Map),{messageIds:d}=Fn(),f=X((x,b)=>{let g=c.current;b===void 0?g.delete(x):g.set(x,b),r(y=>{if(g.size===0)return y;let v;for(let C of g.values()){if(C===y)return y;v===void 0&&(v=C)}return v})}),m=X(()=>{c.current.size===0&&r(n)}),p=Hl.useCallback(x=>{let b=x["aria-describedby"]?x["aria-describedby"].split(" "):[];return b.push(...d,...i),{...x,"aria-describedby":Array.from(new Set(b)).join(" ")||void 0}},[d,i]),h=Hl.useMemo(()=>({controlId:u,registerControlId:f,resetControlId:m,labelId:o,setLabelId:s,messageIds:i,setMessageIds:l,getDescriptionProps:p}),[u,f,m,o,s,i,l,p]);return(0,p4.jsx)(GR.Provider,{value:h,children:t.children})};var WR=k(A(),1);function fm(e={}){let{id:t,enabled:n=!0}=e,{controlId:a,registerControlId:r,resetControlId:o}=Fn(),s=Cn(),i=st(()=>Symbol()),l=WR.useRef(!1),u=WR.useRef(!1),c=X(()=>{!l.current||r===De||(l.current=!1,r(i.current,void 0))});return U(()=>{if(!n||r===De){c();return}let d;if(t!==void 0)u.current=!0,d=t;else if(u.current)d=s;else{o();return}if(d===void 0){c();return}l.current=!0,r(i.current,d)},[t,n,r,o,s,i,c]),U(()=>c,[c]),(n?a:void 0)??t??s}function zC(e,t){let n=Cn(e);return U(()=>(t(n),()=>{t(a=>a===n?void 0:a)}),[n,t]),n}function qC(e={}){let{id:t,fallbackControlId:n,native:a=!1,setLabelId:r,focusControl:o}=e,{controlId:s,setLabelId:i}=Fn(),l=X(m=>{i(m),r?.(m)}),u=zC(t,l),c=s??n;function d(m){if(o){o(m,c);return}if(!c)return;let p=Se(m.currentTarget).getElementById(c);He(p)&&nae(p)}function f(m){ct(m.nativeEvent)?.closest("button,input,select,textarea")||(!m.defaultPrevented&&m.detail>1&&m.preventDefault(),!a&&d(m))}return a?{id:u,htmlFor:c,onMouseDown:f}:{id:u,onClick:f,onPointerDown(m){m.preventDefault()}}}function nae(e){e.focus({focusVisible:!0})}var ii=k(A(),1);function Fc(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var XR=Object.keys(Bc);function aae(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}function g4(e,t){let n=null;for(let a of e.keys())if(aae(a,t)){if(!a.validity.valid)return a;n??=a}return n}function h4(e){return{...Bc,valid:!e,customError:e}}function YR(e){return e&&e.validationMessage?[e.validationMessage]:[]}function b4(e){let{elementRef:t,formRef:n}=Yr(),{setValidityData:a,validate:r,validityData:o,validationDebounceTime:s,invalid:i,markedDirtyRef:l,state:u,shouldValidateOnChange:c,validationMode:d,registeredFieldIdRef:f}=e,{controlId:m,getDescriptionProps:p}=Fn(),h=nt(),x=ii.useRef(null),b=st(()=>new Map).current,g=ii.useRef(0),y=ii.useRef(null),v=ii.useCallback((R,$)=>(b.set(R,$),()=>{b.delete(R)}),[b]),C=X(()=>{let R=g4(b,t.current);return R&&b.get(R)?.controlRef.current||null}),S=X(async(R,$=!1)=>{g.current+=1;let j=g.current;function M(T,F=i){let O=f.current??m;if(O==null)return;let Q=n.current.fields.get(O);if(!Q)return;let W=Fc(T,F);n.current.fields.set(O,{...Q,validityData:W})}function I(T,F){let O=T.valid===!1?F:[];return{value:R,state:T,error:O[0]??"",errors:O,initialValue:o.initialValue}}function N(T,F){let O=T.validity.customError?T.validationMessage:"",Q=F.replace(/\r\n?/g,`
|
|
175
175
|
`);T.setCustomValidity(Q),y.current=[T,Q,O]}function E(){let T=y.current;y.current=null,T&&(!T[0].willValidate||T[0].validationMessage===T[1])&&T[0].setCustomValidity(T[2])}function B(T,F,O){let Q=I(T,F);M(Q,O),a(Q)}function z(T){let F=XR.reduce((Q,W)=>(Q[W]=T.validity[W],Q),{}),O=!1;for(let Q of XR)if(Q!=="valid"){if(Q==="valueMissing"&&F[Q])O=!0;else if(F[Q])return F}return O&&!l.current&&(F.valid=!0,F.valueMissing=!1),F}function P(){return b.size>0?g4(b,t.current):x.current}let D=P();function L(){return D=P(),D?.willValidate?z(D):h4(!1)}if($){if(u.valid!==!1||!D)return;if(!D.validity.valueMissing){E();let T=P(),F=T?.validity.customError?YR(T):[];B(h4(F.length>0),F,!1);return}for(let T of XR)if(T!=="valid"&&T!=="valueMissing"&&T!=="customError"&&D.validity[T])return}h.clear(),E();let V=L(),q=YR(D),G=c();if(q.length===0||G){let T=Array.from(n.current.fields.values()).reduce((Q,W)=>(W.name&&(Q[W.name]=W.getValue()),Q),{}),F=r(R,T),O;if(typeof F=="object"&&F!==null&&"then"in F){if(V.valid===!1?B(V,q):(d==="onSubmit"||!o.state.customError)&&(V.valid=null,B(V,q)),O=await F,j!==g.current)return;V=L()}else O=F;q=O?[].concat(O).filter(Boolean):[],q.length>0?(V.valid=!1,V.customError=!0,D?.willValidate&&N(D,q.join(`
|
|
176
|
-
`))):q=YR(D)}B(V,q)}),_=X((R,$=!1)=>{if(h.clear(),g.current+=1,$)return;let j=c();j&&R!==""&&s?h.start(s,()=>{S(R)}):S(R,!j)}),w=ii.useCallback((R,$={})=>la(p($),u.valid===!1&&!u.disabled&&!R?{"aria-invalid":!0}:Qe),[p,u.disabled,u.valid]);return ii.useMemo(()=>({getValidationProps:w,inputRef:x,registeredInputs:b,registerInput:v,getInputControl:C,commit:S,change:_}),[w,b,v,C,S,_])}var HC=k(A(),1);function y4(e){let{change:t,commit:n,invalid:a,markedDirtyRef:r,name:o,setRegisteredFieldName:s,registeredFieldIdRef:i,setValidityData:l,validityData:u}=e,{formRef:c}=Yr(),d=HC.useRef(null),f=HC.useRef(null),m=HC.useRef(!1),p=X(()=>{let C=f.current;if(C)return C.getValue?C.getValue():C.value});function h(C){return C.value===void 0?p():C.value}let x=X(()=>{let C=f.current;if(r.current=!0,!C){n(u.value);return}n(h(C))});function b(){let C=f.current;!C||!C.id||c.current.fields.set(C.id,{getValue:p,name:o??C.name,controlRef:C.controlRef,validityData:Fc(u,a),validate:x})}function g(C=f.current?.id){C&&c.current.fields.delete(C)}function y(C){if(m.current)return;m.current=!0;let S=h(C);l(_=>_.initialValue===S?_:{..._,initialValue:S})}U(()=>{let C=f.current;!C||!C.id||(s(o?void 0:C.name),c.current.fields.set(C.id,{getValue:p,name:o??C.name,controlRef:C.controlRef,validityData:Fc(u,a),validate:x}))},[c,p,a,o,s,x,u]),U(()=>{let C=c.current.fields;return()=>{let S=f.current?.id;S&&C.delete(S)}},[c]);let v=X((C,S)=>{if(!S){d.current===C&&(d.current=null,t(void 0,!0),g(),f.current=null,s(void 0),i.current=void 0);return}let _=f.current?.id,w=d.current;w&&w!==C&&t(void 0,!0),d.current=C,f.current=S,o||s(S.name),i.current=S.id,_&&_!==S.id&&g(_),y(S),b()});return[x,v]}var UC=k(Z(),1),rae=Vn.forwardRef(function(t,n){let{errors:a,validationMode:r,submitCountRef:o}=Yr(),{render:s,className:i,validate:l,validationDebounceTime:u=0,validationMode:c=r,name:d,disabled:f=!1,invalid:m,dirty:p,touched:h,actionsRef:x,style:b,...g}=t,y=m4(!0)?.disabled,v=X(l||(()=>null)),C=y||f,[S,_]=Vn.useState(!1),[w,R]=Vn.useState(!1),[$,j]=Vn.useState(!1),[M,I]=Vn.useState(!1),N=p??w,E=h??S,B=Vn.useRef(N),z=Vn.useRef(void 0),[P,D]=Vn.useState(),L=d??P;U(()=>{p!==void 0&&(B.current=p)},[p]);let V=X(je=>{p===void 0&&(je&&(B.current=!0),R(je))}),q=X(je=>{h===void 0&&_(je)}),G=X(()=>c==="onChange"||c==="onSubmit"&&o.current>0),T=L&&Object.hasOwn(a,L)?a[L]:null,F=!!(Array.isArray(T)?T.length:T),O=m===!0||F,[Q,W]=Vn.useState({state:Bc,error:"",errors:[],value:null,initialValue:null}),ee=!O&&(C?null:Q.state.valid),le=Vn.useMemo(()=>({disabled:C,touched:E,dirty:N,valid:ee,filled:$,focused:M}),[C,E,N,ee,$,M]),ce=b4({setValidityData:W,validate:v,validityData:Q,validationDebounceTime:u,invalid:O,markedDirtyRef:B,state:le,shouldValidateOnChange:G,validationMode:c,registeredFieldIdRef:z}),[J,te]=y4({change:ce.change,commit:ce.commit,invalid:O,markedDirtyRef:B,name:d,setRegisteredFieldName:D,registeredFieldIdRef:z,setValidityData:W,validityData:Q});Vn.useImperativeHandle(x,()=>({validate:J}),[J]);let pe=Vn.useMemo(()=>({invalid:O,name:L,validityData:Q,setValidityData:W,disabled:C,setTouched:q,setDirty:V,setFilled:j,setFocused:I,validationMode:c,shouldValidateOnChange:G,state:le,registerFieldControl:te,validation:ce}),[O,L,Q,C,q,V,j,I,c,G,le,te,ce]),be=oe("div",t,{ref:n,state:le,props:g,stateAttributesMapping:ba});return(0,UC.jsx)(UR.Provider,{value:pe,children:be})}),x4=Vn.forwardRef(function(t,n){return(0,UC.jsx)(VC,{children:(0,UC.jsx)(rae,{...t,ref:n})})});var Dh=k(A(),1);var GC=k(A(),1),ZR=GC.createContext({disabled:!1});function WC(){return GC.useContext(ZR)}var v4=Dh.forwardRef(function(t,n){let{render:a,className:r,style:o,id:s,nativeLabel:i=!0,...l}=t,u=wn(!1),c=WC(),{labelId:d}=Fn(),f={...u.state,disabled:u.disabled||c.disabled},m=Dh.useRef(null),p=qC({id:d??s,native:i});return oe("label",t,{ref:[n,m],state:f,props:[p,l],stateAttributesMapping:ba})});var Vc=k(A(),1);var KR=k(Z(),1),oae={...ba,...Ya},C4=Vc.forwardRef(function(t,n){let{render:a,id:r,className:o,match:s,style:i,...l}=t,u=Cn(r),{validityData:c,state:d,name:f}=wn(!1),{setMessageIds:m}=Fn(),{errors:p}=Yr(),h=f&&Object.hasOwn(p,f)?p[f]:null,x=!!(Array.isArray(h)?h.length:h),b=typeof s=="string",g=!1;s===!0?g=!0:d.disabled?g=!1:b?g=!!c.state[s]:g=x||c.state.valid===!1;let{mounted:y,transitionStatus:v,setMounted:C}=Qa(g);U(()=>{if(!(!g||!u))return m(B=>B.concat(u)),()=>{m(B=>B.filter(z=>z!==u))}},[g,u,m]);let S=Vc.useRef(null),[_,w]=Vc.useState(null),[R,$]=Vc.useState(null),j=c.error;!b&&x?j=h:c.errors.length>1&&(j=c.errors);let M=j;Array.isArray(j)&&(M=j.length>1?(0,KR.jsx)("ul",{children:j.map(B=>(0,KR.jsx)("li",{children:B},B))}):j[0]);let I=Array.isArray(j)?JSON.stringify(j):j;g&&I!==R&&($(I),w(M)),ga({open:g,ref:S,onComplete(){g||C(!1)}});let N={...d,transitionStatus:v},E=oe("div",t,{ref:[n,S],state:N,props:[{id:u,children:g?M:_},l],stateAttributesMapping:oae,enabled:y});return y?E:null});var w4=k(A(),1);var _4=w4.forwardRef(function(t,n){let{render:a,id:r,className:o,style:s,...i}=t,l=Cn(r),u=wn(!1),c=WC(),{setMessageIds:d}=Fn(),f={...u.state,disabled:u.disabled||c.disabled};return U(()=>{if(l)return d(p=>p.concat(l)),()=>{d(p=>p.filter(h=>h!==l))}},[l,d]),oe("p",t,{ref:n,state:f,props:[{id:l},i],stateAttributesMapping:ba})});var YC=k(A(),1);function XC(e,t,n,a,r=!0,o){let{registerFieldControl:s}=wn(),i=st(()=>Symbol());U(()=>{let l=i.current;if(!r){s(l,void 0);return}s(l,{controlRef:e,getValue:a,id:t,name:o,value:n})},[e,r,a,t,o,s,i,n]),U(()=>{let l=i.current;return()=>{s(l,void 0)}},[s,i])}var S4=k(A(),1);function mm(e,t){let n=S4.useRef(e),a=X(t);U(()=>{n.current!==e&&a(n.current),n.current=e},[e,a])}var k4=YC.forwardRef(function(t,n){let{render:a,className:r,id:o,name:s,value:i,disabled:l=!1,onValueChange:u,defaultValue:c,autoFocus:d=!1,style:f,...m}=t,{state:p,name:h,disabled:x,setTouched:b,setDirty:g,validityData:y,setFocused:v,setFilled:C,validationMode:S,validation:_}=wn(),{clearErrors:w,elementRef:R,submitCountRef:$}=Yr(),j=x||l,M=h??s,I={...p,disabled:j},{labelId:N}=Fn(),E=fm({id:o}),[B]=Dc({controlled:i,default:c,name:"FieldControl",state:"value"}),z=i!==void 0,P=z?B:void 0,D=P==null?void 0:String(P),L=X(()=>_.inputRef.current?.value);XC(_.inputRef,E,D,L,!j,s),U(()=>{let T=D??_.inputRef.current?.value;T!==void 0&&C(T!=="")},[D,_.inputRef,C]),mm(D,()=>{D!==void 0&&(w(M),g(D!==(y.initialValue??"")),_.change(D))});let V=YC.useRef(null),q=nt();return U(()=>{d&&V.current===Wt(Se(V.current))&&v(!0)},[d,v]),oe("input",t,{ref:[n,V],state:I,props:[{id:E,disabled:j,name:M,ref:_.inputRef,"aria-labelledby":N,autoFocus:d,...z?{value:P}:{defaultValue:c},onChange(T){let F=T.currentTarget.value,O=ve(se.none,T.nativeEvent);u?.(F,O),!z&&(g(F!==(y.initialValue??"")),C(F!==""),!T.nativeEvent.defaultPrevented&&!O.isCanceled&&(w(M),_.change(F)))},onFocus(){v(!0)},onBlur(T){if(b(!0),v(!1),S==="onBlur"){let F=T.currentTarget.value;_.commit(F),z&&queueMicrotask(()=>{let O=_.inputRef.current?.value;O!==void 0&&O!==F&&O!==(y.initialValue??"")&&_.commit(O)})}},onKeyDown(T){if(T.currentTarget.tagName==="INPUT"&&T.key==="Enter"){b(!0);let F=T.currentTarget.value,O=T.currentTarget.form;if(O&&O===R.current&&!T.defaultPrevented){let Q=T.currentTarget,W=$.current;q.start(0,()=>{$.current===W&&_.commit(Q.value)})}else _.commit(F)}}},m,T=>_.getValidationProps(j,T)],stateAttributesMapping:ba})});var Nh=k(A(),1);var $4=k(Z(),1),L4=function(t){let{children:n}=t,{validityData:a,invalid:r}=wn(!1),o=Nh.useMemo(()=>Fc(a,r),[a,r]),s=o.state.valid===!1,{transitionStatus:i}=Qa(s),l=Nh.useMemo(()=>({...o,validity:o.state,transitionStatus:i}),[o,i]);return(0,$4.jsx)(Nh.Fragment,{children:n(l)})};var ZC=k(A(),1);var QR=k(Z(),1),R4=ZC.forwardRef(function(t,n){let{render:a,className:r,style:o,disabled:s=!1,...i}=t,{state:l,disabled:u}=wn(!1),c=u||s,d={...l,disabled:c},f=ZC.useMemo(()=>({disabled:c}),[c]),m=oe("div",t,{ref:n,state:d,props:i,stateAttributesMapping:ba});return(0,QR.jsx)(VC,{children:(0,QR.jsx)(ZR.Provider,{value:f,children:m})})});var j4=k(Z(),1),JR=I4.forwardRef(function(t,n){return(0,j4.jsx)(KC.Control,{ref:n,...t})});var T4=k(Z(),1);function QC({className:e,type:t,...n}){return(0,T4.jsx)(JR,{type:t,"data-slot":"input",className:ne("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...n})}var ya={};aa(ya,{Arrow:()=>AH,Backdrop:()=>lH,Group:()=>qH,GroupLabel:()=>UH,Icon:()=>aH,Item:()=>RH,ItemIndicator:()=>jH,ItemText:()=>TH,Label:()=>Z4,List:()=>$H,Popup:()=>SH,Portal:()=>sH,Positioner:()=>xH,Root:()=>G4,ScrollDownArrow:()=>NH,ScrollUpArrow:()=>FH,Separator:()=>XH,Trigger:()=>J4,Value:()=>tH});var Xt=k(A(),1);var E4=k(A(),1);function A4(e){let t=E4.useRef(!0);t.current&&(t.current=!1,e())}var Ul=k(A(),1),eI=Ul.createContext(void 0),tI=Ul.createContext(void 0),nI=Ul.createContext(void 0);function Dt(){let e=Ul.useContext(eI);if(e===void 0)throw new Error(Ve(60));return e}function Gl(){let e=Ul.useContext(tI);if(e===void 0)throw new Error(Ve(101));return e}function JC(){let e=Ul.useContext(nI);if(e===void 0)throw new Error(Ve(61));return e}function P4(e,t,n=Object.is){let{length:a}=e;if(a!==t.length)return!1;for(let r=0;r<a;r+=1)if(!n(e[r],t[r]))return!1;return!0}var rI=(e,t)=>Object.is(e,t);function li(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function M4(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!P4(e,t,(a,r)=>li(a,r,n)):e!==t}function aI(e,t,n){return e?e.some(a=>a===void 0?!1:li(t,a,n)):!1}function Oh(e,t,n){return e?e.findIndex(a=>a===void 0?!1:li(a,t,n)):-1}function sae(e,t){if(t!==rI)return a=>aI(e,a,t);let n=new Set(e);return n.delete(void 0),a=>n.has(a)&&(a!==0||e.some(r=>Object.is(a,r)))}function oI(e,t,n,a){let r=a&&Array.isArray(t)?e.findIndex(sae(t,n)):Oh(e,t,n);return r===-1?null:r}function D4(e,t,n,a,r,o){return aI(a,t,r)?o!=null&&e>o&&aI(a,n[o],r)?o:e:e===o?oI(n,a,r,!0):o}function N4(e,t,n){return e.filter(a=>!li(t,a,n))}var O4=k(A(),1);function ew(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}var B4=k(Z(),1);function iae(e){return typeof e=="object"&&e!=null&&Array.isArray(e.items)}function F4(e){return iae(e?.[0])}function lae(e){return F4(e)?e.flatMap(t=>t.items):e}function V4(e){if(!Array.isArray(e))return e!=null&&"null"in e;let t=e;if(F4(t)){for(let n of t)for(let a of n.items)if(a&&a.value==null&&a.label!=null)return!0;return!1}for(let n of t)if(n&&n.value==null&&n.label!=null)return!0;return!1}function sI(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return ew(e)}function Wl(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?ew(e.value):ew(e)}function iI(e,t,n){function a(){return sI(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??a();if(Array.isArray(t)){let o=lae(t);if(e==null||typeof e!="object"){let s=o.find(i=>i.value===e);return s&&s.label!=null?s.label:a()}if("value"in e){let s=o.find(i=>i&&i.value===e.value);if(s&&s.label!=null)return s.label}}return a()}function z4(e,t,n){return e.reduce((a,r,o)=>(o>0&&a.push(", "),a.push((0,B4.jsx)(O4.Fragment,{children:iI(r,t,n)},o)),a),[])}var q4={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:n,itemToStringValue:a}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Wl(t,a)!==""},hasNullItemLabel:(e,t)=>t?V4(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,a=e.value;return e.multiple?Array.isArray(a)&&a.some(r=>li(t,r,n)):li(t,a,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};var Fh=k(A(),1);var Bh=k(A(),1);function H4(e){let t=Bh.useRef(""),n=Bh.useCallback(r=>{r.defaultPrevented||(t.current=r.pointerType,e(r,r.pointerType))},[e]);return{onClick:Bh.useCallback(r=>{if(r.detail===0){e(r,"keyboard");return}"pointerType"in r?e(r,r.pointerType):e(r,t.current),t.current=""},[e]),onPointerDown:n}}function uae(e,t){let n=X((o,s)=>{(typeof e=="function"?e():e)||t(s||(it.os.ios?"touch":""))}),{onClick:a,onPointerDown:r}=H4(n);return Fh.useMemo(()=>({onClick:a,onPointerDown:r}),[a,r])}function U4(e){let[t,n]=Fh.useState(null),a=uae(e,n);return mm(e,r=>{r&&!e&&n(null)}),Fh.useMemo(()=>({openMethod:t,triggerProps:a}),[t,a])}var zc=k(Z(),1);function G4(e){let{id:t,value:n,defaultValue:a=null,onValueChange:r,open:o,defaultOpen:s=!1,onOpenChange:i,name:l,form:u,autoComplete:c,disabled:d=!1,readOnly:f=!1,required:m=!1,modal:p=!0,actionsRef:h,inputRef:x,onOpenChangeComplete:b,items:g,multiple:y=!1,itemToStringLabel:v,itemToStringValue:C,isItemEqualToValue:S=rI,highlightItemOnHover:_=!0,children:w}=e,{clearErrors:R}=Yr(),{setDirty:$,setTouched:j,setFocused:M,validityData:I,setFilled:N,name:E,disabled:B,validation:z,validationMode:P}=wn(),D=fm({id:t}),L=B||d,V=E??l,[q,G]=Dc({controlled:n,default:y?a??za:a,name:"Select",state:"value"}),[T,F]=Dc({controlled:o,default:s,name:"Select",state:"open"}),O=Xt.useRef([]),Q=Xt.useRef([]),W=Xt.useRef(null),ee=Xt.useRef(null),le=Xt.useRef(0),ce=Xt.useRef(null),J=Xt.useRef([]),te=Xt.useRef(!1),pe=Xt.useRef(null),be=Xt.useRef(null),je=Xt.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ge=Xt.useRef(!1),$e=Xt.useRef(q),{mounted:ue,setMounted:Le,transitionStatus:Oe}=Qa(T),{openMethod:Ae,triggerProps:gt}=U4(T),re=st(()=>new as({id:D,labelId:void 0,modal:p,multiple:y,itemToStringLabel:v,itemToStringValue:C,isItemEqualToValue:S,value:q,open:T,mounted:ue,transitionStatus:Oe,items:g,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:Qe,triggerProps:Qe,triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:De,setOpen:De,handleScrollArrowVisibility:De,onOpenChangeComplete:De,listRef:O,popupRef:W,scrollHandlerRef:ee,scrollArrowsMountedCountRef:le,valueRef:ce,valuesRef:J,labelsRef:Q,typingRef:te,selectionRef:je,firstItemTextRef:pe,selectedItemTextRef:be,alignItemWithTriggerActiveRef:ge,initialValueRef:$e},q4)).current,fe=re.useState("activeIndex"),Y=re.useState("selectedIndex"),H=re.useState("triggerElement"),ie=re.useState("positionerElement"),Be=aC(Ae),Ht=Ae??Be,fn=Xt.useMemo(()=>y?"":Wl(q,C),[y,q,C]),Nt=Xt.useMemo(()=>y&&Array.isArray(q)?q.map(Je=>Wl(Je,C)):Wl(q,C),[y,q,C]),jt=vt(H),zn=X(()=>Nt);XC(jt,D,q,zn,!L,l);let qn=y?Array.isArray(q)&&q.length>0:q!=null&&fn!=="";U(()=>{N(qn)},[qn,N]),U(function(){let Ft=oI(J.current,q,S,y);Ft===null&&(be.current=null),!T&&re.set("selectedIndex",Ft)},[y,T,q,S,re]),mm(q,()=>{R(V),$(M4(q,I.initialValue,S)),z.change(q)});let mn=X((Je,Ft)=>{i?.(Je,Ft),!Ft.isCanceled&&(F(Je),!Je&&(Ft.reason===se.focusOut||Ft.reason===se.outsidePress)&&(j(!0),M(!1),P==="onBlur"&&z.commit(q)))}),na=X(()=>{Le(!1),re.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),b?.(!1)});ga({enabled:!h,open:T,ref:W,onComplete(){T||na()}}),Xt.useImperativeHandle(h,()=>({unmount:na}),[na]);let Ta=X((Je,Ft)=>{r?.(Je,Ft),!Ft.isCanceled&&G(Je)}),xr=X(Je=>{let Ft=sm(Je.scrollHeight,Je.clientHeight),cs=ri(Je.scrollTop,Ft),nu=cs>0,au=cs<Ft;re.set("scrollUpArrowVisible",nu),re.set("scrollDownArrowVisible",au)}),En=hR({open:T,onOpenChange:mn,elements:{reference:H,floating:ie}}),Yt=JL(En,{enabled:!L,event:"mousedown"}),Te=kh(En),Bt=SR(En,{enabled:!L,listRef:O,activeIndex:fe,selectedIndex:Y,disabledIndices:za,onNavigate(Je){Je===null&&!T||re.set("activeIndex",Je)},focusItemOnHover:_}),rt=kR(En,{enabled:!L&&(T||!f&&!y),listRef:Q,activeIndex:fe,selectedIndex:Y,disabledIndices:Je=>kC(O.current[Je]),onMatch(Je){T?re.set("activeIndex",Je):Ta(J.current[Je],ve(se.none))},onTyping(Je){te.current=Je}}),Ut=Xt.useMemo(()=>la(rt.reference,Bt.reference,Te.reference,Yt.reference,gt),[Yt.reference,rt.reference,Bt.reference,Te.reference,gt]),Ea=Xt.useMemo(()=>la(Dv,rt.floating,Bt.floating,Te.floating),[rt.floating,Bt.floating,Te.floating]),Aa=Bt.item??Qe;re.useContextCallback("setValue",Ta),re.useContextCallback("setOpen",mn),re.useContextCallback("handleScrollArrowVisibility",xr),re.useContextCallback("onOpenChangeComplete",b),A4(()=>{re.update({popupProps:Ea,triggerProps:Ut})}),re.useSyncedValues({id:D,modal:p,multiple:y,value:q,open:T,mounted:ue,transitionStatus:Oe,popupProps:Ea,triggerProps:Ut,items:g,itemToStringLabel:v,itemToStringValue:C,isItemEqualToValue:S,openMethod:Ht});let Gc=Xt.useMemo(()=>({disabled:L,readOnly:f,required:m,multiple:y,highlightItemOnHover:_,itemProps:Aa}),[L,f,m,y,_,Aa]),ci=jr(x,z.inputRef),tu=y?void 0:V,vo=Xt.useMemo(()=>!y||!Array.isArray(q)||!V?null:q.map(Je=>{let Ft=Wl(Je,C);return(0,zc.jsx)("input",{type:"hidden",form:u,name:V,value:Ft,disabled:L},Ft)}),[y,q,u,V,C,L]);return(0,zc.jsxs)(eI.Provider,{value:re,children:[(0,zc.jsx)(tI.Provider,{value:Gc,children:(0,zc.jsx)(nI.Provider,{value:En,children:w})}),(0,zc.jsx)("input",{...z.getValidationProps(L,{onFocus(){re.state.triggerElement?.focus({focusVisible:!0})},onChange(Je){if(Je.nativeEvent.defaultPrevented||L||f)return;let Ft=Je.currentTarget.value,cs=ve(se.none,Je.nativeEvent);function nu(){if(y)return;let au=Ft.toLowerCase(),Sm=J.current.findIndex(xw=>Wl(xw,C).toLowerCase()===au||sI(xw,v).toLowerCase()===au);Sm===-1&&(Sm=J.current.findIndex((xw,$5)=>{let wI=Q.current[$5];return wI!=null&&wI.toLowerCase()===au}));let CI=J.current[Sm];CI!=null&&Ta(CI,cs)}re.set("forceMount",!0),queueMicrotask(nu)}}),id:D&&tu==null?`${D}-hidden-input`:void 0,form:u,name:tu,autoComplete:c,value:fn,disabled:L,required:m&&!(y&&qn),readOnly:f,ref:ci,style:V?d3:Of,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),vo]})}var Y4=k(A(),1);function W4(e){return e==null?void 0:`${e}-label`}function X4(e,t){return e??t}var Z4=Y4.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,i=s;delete i.id;let l=wn(),u=Dt(),c=u.useState("triggerElement"),d=u.useState("id"),f=W4(d),m=qC({id:f,fallbackControlId:c?.id??d,setLabelId(p){let h=typeof p=="function"?p(u.state.labelId):p;u.set("labelId",h)}});return oe("div",t,{ref:n,state:l.state,props:[m,s],stateAttributesMapping:ba})});var pm=k(A(),1);var tw=5;function K4(e,t){let n=cae(t);return e.clientX>=n.left-tw&&e.clientX<=n.right+tw&&e.clientY>=n.top-tw&&e.clientY<=n.bottom+tw}function cae(e){let t=e.getBoundingClientRect(),n=qe(e);if(it.env.jsdom)return t;let a=n.getComputedStyle(e,"::before"),r=n.getComputedStyle(e,"::after");if(!(a.content!=="none"||r.content!=="none"))return t;let s=parseFloat(a.width)||0,i=parseFloat(a.height)||0,l=parseFloat(r.width)||0,u=parseFloat(r.height)||0,c=Math.max(t.width,s,l),d=Math.max(t.height,i,u),f=c-t.width,m=d-t.height;return{left:t.left-f/2,right:t.right+f/2,top:t.top-m/2,bottom:t.bottom+m/2}}var GVe=Cc.popupOpen,WVe=Cc.pressed;var Q4="data-popup-side";var fae=400,mae={...a3,...ba,popupSide:e=>e?{[Q4]:e}:null,value:()=>null},J4=pm.forwardRef(function(t,n){let{render:a,className:r,id:o,disabled:s=!1,nativeButton:i=!0,style:l,...u}=t,{setTouched:c,setFocused:d,validationMode:f,validation:m,state:p,disabled:h}=wn(),{labelId:x}=Fn(),b=Dt(),{readOnly:g,required:y,disabled:v}=Gl(),C=h||v||s,S=b.useState("open"),_=b.useState("mounted"),w=b.useState("value"),R=b.useState("triggerProps"),$=b.useState("positionerElement"),j=b.useState("listElement"),M=b.useState("popupSide"),I=b.useState("id"),N=b.useState("labelId"),E=b.useState("hasSelectedValue"),B=_&&$?M:null,z=o??I,P=X4(x,N);fm({id:o});let D=vt($),L=pm.useRef(null),{getButtonProps:V,buttonRef:q}=Os({disabled:C,native:i}),G=b.useStateSetter("triggerElement"),T=nt(),F=nt(),O=nt();pm.useEffect(()=>{if(S)return O.start(fae,()=>{b.context.selectionRef.current.allowUnselectedMouseUp=!0,b.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{O.clear()};b.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},F.clear()},[S,b,F,O]);let Q=la(R,{id:z,role:"combobox","aria-expanded":S,"aria-haspopup":"listbox","aria-controls":S?j?.id??_c($)?.id:void 0,"aria-labelledby":P,"aria-readonly":g||void 0,"aria-required":y||void 0,tabIndex:C?-1:0,onFocus(le){d(!0),S&&b.context.alignItemWithTriggerActiveRef.current&&b.context.setOpen(!1,ve(se.none,le.nativeEvent)),T.start(0,()=>{b.set("forceMount",!0)})},onBlur(le){de($,le.relatedTarget)||(c(!0),d(!1),f==="onBlur"&&m.commit(w))},onMouseDown(le){if(S)return;let ce=Se(le.currentTarget);function J(te){if(!L.current)return;let pe=te.target;de(L.current,pe)||de(D.current,pe)||K4(te,L.current)||b.context.setOpen(!1,ve(se.cancelOpen,te))}F.start(0,()=>{ce.addEventListener("mouseup",J,{once:!0})})}},u,V),W=m.getValidationProps(C,Q);W.role="combobox";let ee={...p,open:S,disabled:C,value:w,readOnly:g,popupSide:B,placeholder:!E};return oe("button",t,{ref:[n,L,q,G],state:ee,stateAttributesMapping:mae,props:W})});var eH=k(A(),1);var pae={value:()=>null},tH=eH.forwardRef(function(t,n){let{className:a,render:r,children:o,placeholder:s,style:i,...l}=t,u=Dt(),c=u.useState("value"),d=u.useState("items"),f=u.useState("itemToStringLabel"),m=u.useState("hasSelectedValue"),p=!m&&s!=null&&o==null,h=u.useState("hasNullItemLabel",p),x={value:c,placeholder:!m},b=null;return typeof o=="function"?b=o(c):o!=null?b=o:p&&!h?b=s:Array.isArray(c)?b=z4(c,d,f):b=iI(c,d,f),oe("span",t,{state:x,ref:[n,u.context.valueRef],props:[{children:b},l],stateAttributesMapping:pae})});var nH=k(A(),1);var aH=nH.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,u={open:Dt().useState("open")};return oe("span",t,{state:u,ref:n,props:[{"aria-hidden":!0,children:"\u25BC"},s],stateAttributesMapping:uv})});var rH=k(A(),1);var oH=k(Z(),1),sH=rH.forwardRef(function(t,n){let a=Dt(),r=a.useState("mounted"),o=a.useState("forceMount");return r||o?(0,oH.jsx)(ZL,{ref:n,...t}):null});var iH=k(A(),1);var gae={...Qs,...Ya},lH=iH.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,i=Dt(),l=i.useState("open"),u=i.useState("mounted"),c=i.useState("transitionStatus");return oe("div",t,{state:{open:l,transitionStatus:c},ref:n,props:[{role:"presentation",hidden:!u,style:{userSelect:"none",WebkitUserSelect:"none"}},s],stateAttributesMapping:gae})});var Zr=k(A(),1);var nw=k(A(),1),lI=nw.createContext(void 0);function Xl(){let e=nw.useContext(lI);if(!e)throw new Error(Ve(59));return e}var uH=k(A(),1),cH=k(Z(),1),dH=uH.forwardRef(function(t,n){let{cutout:a,...r}=t,o;if(a){let s=a.getBoundingClientRect();o=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${s.left}px ${s.top}px,${s.left}px ${s.bottom}px,${s.right}px ${s.bottom}px,${s.right}px ${s.top}px,${s.left}px ${s.top}px)`}return(0,cH.jsx)("div",{ref:n,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:o}})});function gm(e,t){e&&Object.assign(e.style,t)}var aw={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var bH=k(A(),1);var fH={},mH={},pH="";function rw(e,t){return sc(e)?e:t}function gH(e,t,n){return/hidden|clip/.test(e.getComputedStyle(rw(t,n)).overflowY)}function hae(e){if(typeof document>"u")return!1;let t=Se(e);return qe(t).innerWidth-t.documentElement.clientWidth>0}function bae(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let n=Se(e),a=n.documentElement,r=n.body,o=rw(a,r),s=o.style.overflowY,i=a.style.scrollbarGutter;a.style.scrollbarGutter="stable",o.style.overflowY="scroll";let l=o.offsetWidth;o.style.overflowY="hidden";let u=o.offsetWidth;return o.style.overflowY=s,a.style.scrollbarGutter=i,l===u}function yae(e){let t=Se(e),n=t.documentElement,a=t.body,r=rw(n,a),o={overflowY:r.style.overflowY,overflowX:r.style.overflowX};return Object.assign(r.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(r.style,o)}}function xae(e){let t=Se(e),n=t.documentElement,a=t.body,r=qe(n),o=0,s=0,i=!1,l=qr.create();if(it.engine.webkit&&(r.visualViewport?.scale??1)!==1)return()=>{};function u(){let m=r.getComputedStyle(n),p=r.getComputedStyle(a),b=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";o=n.scrollTop,s=n.scrollLeft,fH={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},pH=n.style.scrollBehavior,mH={position:a.style.position,height:a.style.height,width:a.style.width,boxSizing:a.style.boxSizing,overflowY:a.style.overflowY,overflowX:a.style.overflowX,scrollBehavior:a.style.scrollBehavior};let g=n.scrollHeight>n.clientHeight,y=n.scrollWidth>n.clientWidth,v=m.overflowY==="scroll"||p.overflowY==="scroll",C=m.overflowX==="scroll"||p.overflowX==="scroll",S=Math.max(0,r.innerWidth-a.clientWidth),_=Math.max(0,r.innerHeight-a.clientHeight),w=parseFloat(p.marginTop)+parseFloat(p.marginBottom),R=parseFloat(p.marginLeft)+parseFloat(p.marginRight),$=rw(n,a);if(i=bae(e),i){n.style.scrollbarGutter=b,$.style.overflowY="hidden",$.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:b,overflowY:"hidden",overflowX:"hidden"}),(g||v)&&(n.style.overflowY="scroll"),(y||C)&&(n.style.overflowX="scroll"),Object.assign(a.style,{position:"relative",height:w||_?`calc(100dvh - ${w+_}px)`:"100dvh",width:R||S?`calc(100vw - ${R+S}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),a.scrollTop=o,a.scrollLeft=s,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function c(){Object.assign(n.style,fH),Object.assign(a.style,mH),i||(n.scrollTop=o,n.scrollLeft=s,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=pH)}function d(){c(),l.request(u)}u();let f=ke(r,"resize",d);return()=>{l.cancel(),c(),typeof r.removeEventListener=="function"&&f()}}var uI=class{lockCount=0;restore=null;timeoutLock=da.create();timeoutUnlock=da.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;let n=Se(t),a=n.documentElement,r=n.body,o=qe(a);if(gH(o,a,r)){let i=new o.MutationObserver(()=>{gH(o,a,r)||(i.disconnect(),this.restore=null,this.lock(t))}),l={attributes:!0};i.observe(a,l),i.observe(r,l),this.restore=()=>i.disconnect();return}let s=it.os.ios||!hae(t);this.restore=s?yae(t):xae(t)}},vae=new uI;function hH(e=!0,t=null){U(()=>{if(e)return vae.acquire(t)},[e,t])}var Cae=20;function yH(e,t,n,a){let[r,o]=bH.useState(!1);U(()=>{if(!e||!t||n==null){o(!1);return}let s=Se(n).documentElement.clientWidth,i=n.offsetWidth;o(s>0&&i>0&&i>=s-Cae)},[e,t,n]),hH(e&&(!t||r),a)}var Vh=k(Z(),1),wae={position:"fixed"},xH=Zr.forwardRef(function(t,n){let{anchor:a,className:r,render:o,positionMethod:s,side:i,align:l,sideOffset:u,alignOffset:c,collisionBoundary:d="clipping-ancestors",collisionPadding:f,arrowPadding:m,sticky:p,disableAnchorTracking:h,alignItemWithTrigger:x=!0,collisionAvoidance:b=M3,style:g,...y}=t,v=Dt(),C=JC(),S=v.useState("open"),_=v.useState("mounted"),w=v.useState("modal"),R=v.useState("value"),$=v.useState("openMethod"),j=v.useState("positionerElement"),M=v.useState("triggerElement"),I=v.useState("isItemEqualToValue"),N=v.useState("transitionStatus"),E=Zr.useRef(null),B=Zr.useRef(null),[z,P]=Zr.useState(x),D=_&&z&&$!=="touch";!_&&z!==x&&P(x),Zr.useImperativeHandle(v.context.alignItemWithTriggerActiveRef,()=>D),yH((D||w)&&S,$==="touch",j,M);let L=eC({anchor:a,floatingRootContext:C,positionMethod:s,mounted:_,side:i,sideOffset:u,align:l,alignOffset:c,arrowPadding:m,collisionBoundary:d,collisionPadding:f,sticky:p,disableAnchorTracking:h??D,collisionAvoidance:b,keepMounted:!0}),V=D?"none":L.side,q=D?wae:L.positionerStyles,G={open:S,side:V,align:L.align,anchorHidden:L.anchorHidden};U(()=>{v.set("popupSide",L.side)},[v,L.side]);let T=v.useStateSetter("positionerElement"),F=tC(t,G,{styles:q,transitionStatus:N,props:y,refs:[n,T],hidden:!_,inert:!S}),O=Zr.useRef(0),Q=X(ee=>{if(v.context.valuesRef.current.length===0)return;let le=O.current;O.current=ee.size;let ce=ve(se.none);if(le!==0&&!v.state.multiple&&R!==null&&Oh(v.context.valuesRef.current,R,I)===-1){let te=v.context.initialValueRef.current,be=te!=null&&Oh(v.context.valuesRef.current,te,I)!==-1?te:null;v.context.setValue(be,ce),be===null&&(v.set("selectedIndex",null),v.context.selectedItemTextRef.current=null)}if(le!==0&&v.state.multiple&&Array.isArray(R)){let J=R.filter(te=>Oh(v.context.valuesRef.current,te,I)!==-1);J.length!==R.length&&(v.context.setValue(J,ce),J.length===0&&(v.set("selectedIndex",null),v.context.selectedItemTextRef.current=null))}if(S&&D){v.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let J={height:""};gm(j,J),gm(v.context.popupRef.current,J)}}),W=Zr.useMemo(()=>({...L,side:V,alignItemWithTriggerActive:D,setControlledAlignItemWithTrigger:P,scrollUpArrowRef:E,scrollDownArrowRef:B}),[L,V,D,P]);return(0,Vh.jsx)(im,{elementsRef:v.context.listRef,labelsRef:v.context.labelsRef,onMapChange:Q,children:(0,Vh.jsxs)(lI.Provider,{value:W,children:[_&&w&&(0,Vh.jsx)(dH,{inert:Kf(!S),cutout:M}),F]})})});var Kr=k(A(),1);var ow=k(A(),1),_ae=ow.createContext(void 0);function vH(e){let t=ow.useContext(_ae);if(t===void 0&&!e)throw new Error(Ve(69));return t}var cI="--transform-origin";var lw=k(Z(),1),kae={...Qs,...Ya},SH=Kr.forwardRef(function(t,n){let{render:a,className:r,style:o,finalFocus:s,...i}=t,l=Dt(),{multiple:u,readOnly:c,highlightItemOnHover:d}=Gl(),f=JC(),{side:m,align:p,alignItemWithTriggerActive:h,isPositioned:x,setControlledAlignItemWithTrigger:b}=Xl(),g=vH(!0)!=null,y=Ja(),{nonce:v,disableStyleElements:C}=om(),S=l.useState("id"),_=l.useState("open"),w=l.useState("openMethod"),R=l.useState("mounted"),$=l.useState("popupProps"),j=l.useState("transitionStatus"),M=l.useState("triggerElement"),I=l.useState("positionerElement"),N=l.useState("listElement"),E=Kr.useRef(!1),B=Kr.useRef(!1),z=Kr.useRef({}),P=Ia(),D=X(G=>{if(!I||!l.context.popupRef.current||!B.current)return;let T=I.style.top==="0px",F=I.style.bottom==="0px";if(E.current||!h||!T&&!F){l.context.handleScrollArrowVisibility(G);return}let O=wH(I),Q=zh(I.getBoundingClientRect().height,"y",O),W=Se(I),ee=qe(I),le=ee.getComputedStyle(I),ce=parseFloat(le.marginTop),J=parseFloat(le.marginBottom),te=CH(ee.getComputedStyle(l.context.popupRef.current)),pe=Math.min(W.documentElement.clientHeight-ce-J,te),be=G.scrollTop,je=sw(G),ge=null,$e=Ae=>{I.style.height=`${Ae}px`},ue=T?je-be:be,Le=Math.min(Q+ue,pe);if(ue<=yr){let Ae=Xr(ue,0,pe-Q);Ae>0&&$e(Q+Ae),G.scrollTop=T?je:0,pe-(Q+Ae)<=yr&&(E.current=!0),l.context.handleScrollArrowVisibility(G);return}if(pe-Le>yr)ge=T?1/0:0;else if(F&&be<je){let Ae=Q+ue-pe;ge=be-(ue-Ae)}let Oe=Math.ceil(Le);if(Oe!==0&&$e(Oe),ge!=null){let Ae=Xr(ge,0,sw(G));Math.abs(G.scrollTop-Ae)>yr&&(G.scrollTop=Ae)}Oe>=pe-yr&&(E.current=!0),l.context.handleScrollArrowVisibility(G)});Kr.useImperativeHandle(l.context.scrollHandlerRef,()=>D,[D]),ga({open:_,ref:l.context.popupRef,onComplete(){_&&l.context.onOpenChangeComplete(!0)}});let L={open:_,transitionStatus:j,side:m,align:p};U(()=>{!I||!l.context.popupRef.current||Object.keys(z.current).length||(z.current={top:I.style.top||"0",left:I.style.left||"0",right:I.style.right,height:I.style.height,bottom:I.style.bottom,minHeight:I.style.minHeight,maxHeight:I.style.maxHeight,marginTop:I.style.marginTop,marginBottom:I.style.marginBottom})},[l,I]),U(()=>{_||h||(B.current=!1,E.current=!1,gm(I,z.current))},[_,h,I]),U(()=>{let G=l.context.popupRef.current;if(!_||!M||!I||!G||h&&!x||l.state.transitionStatus==="ending")return;if(B.current=!0,G.style.removeProperty(cI),!h){P.request(()=>l.context.handleScrollArrowVisibility(N||G));return}let T=$ae(G);try{let F=l.context.selectedItemTextRef.current;F?.isConnected||(F=!l.select("hasSelectedValue")&&l.context.firstItemTextRef.current?.isConnected?l.context.firstItemTextRef.current:null);let O=l.context.valueRef.current,Q=qe(I),W=Q.getComputedStyle(I),ee=Q.getComputedStyle(G),le=Se(M),ce=wH(M),J=iw(M.getBoundingClientRect(),ce),te=iw(I.getBoundingClientRect(),ce),pe=J.height,be=N||G,je=be.scrollHeight,ge=parseFloat(ee.borderBottomWidth),$e=parseFloat(W.marginTop)||10,ue=parseFloat(W.marginBottom)||10,Le=parseFloat(W.minHeight)||100,Oe=CH(ee),Ae=5,gt=5,re=20,fe=le.documentElement.clientHeight-$e-ue,Y=le.documentElement.clientWidth,H=fe-J.bottom+pe,ie,Be=y==="rtl"?J.right-te.width:J.left,Ht=0;if(F&&O){let Yt=iw(O.getBoundingClientRect(),ce);ie=iw(F.getBoundingClientRect(),ce),Be=te.left+(y==="rtl"?Yt.right-ie.right:Yt.left-ie.left);let Te=Yt.top-J.top+Yt.height/2;Ht=ie.top-te.top+ie.height/2-Te}let fn=H+Ht+ue+ge,Nt=Math.min(fe,fn),jt=fe-$e-ue,zn=fn-Nt,qn=Y-gt;I.style.left=`${Xr(Be,Ae,qn-te.width)}px`,I.style.height=`${Nt}px`,I.style.maxHeight="none",I.style.marginTop=`${$e}px`,I.style.marginBottom=`${ue}px`,G.style.height="100%";let mn=sw(be),na=zn>=mn-yr;na&&(Nt=Math.min(fe,te.height)-(zn-mn));let Ta=J.top<re||J.bottom>fe-re||Math.ceil(Nt)+yr<Math.min(je,Le),xr=(Q.visualViewport?.scale??1)!==1&&it.engine.webkit;if(Ta||xr){gm(I,z.current),b(!1);return}let En=Math.max(Le,Nt);if(na){let Yt=Math.max(0,fe-fn);I.style.top=te.height>=jt?"0":`${Yt}px`,I.style.height=`${Nt}px`,be.scrollTop=sw(be)}else I.style.bottom="0",be.scrollTop=zn;if(ie){let Yt=te.top,Te=te.height,Bt=ie.top+ie.height/2,rt=Xr(Te>0?(Bt-Yt)/Te*100:50,0,100);G.style.setProperty(cI,`50% ${rt}%`)}(En===fe||Nt>=Oe)&&(E.current=!0),l.context.handleScrollArrowVisibility(be),d&&l.state.selectedIndex===null&&l.state.activeIndex===null&&l.context.listRef.current[0]!=null&&l.set("activeIndex",0)}finally{T()}},[l,_,I,M,h,b,P,N,d,y,x]),Kr.useEffect(()=>{if(!h||!I||!_)return;let G=qe(I);function T(F){l.context.setOpen(!1,ve(se.windowResize,F))}return ke(G,"resize",T)},[l,h,I,_]);let V={...N?{role:"presentation"}:{role:"listbox","aria-multiselectable":u||void 0,"aria-readonly":c||void 0,id:`${S}-list`},onKeyDown(G){g&&AC.has(G.key)&&G.stopPropagation()},onScroll(G){N||D(G.currentTarget)},...h&&{style:N?{height:"100%"}:aw},className:!N&&h?ai.className:void 0},q=oe("div",t,{ref:[n,l.context.popupRef],state:L,stateAttributesMapping:kae,props:[$,V,Zf(j),i]});return(0,lw.jsxs)(Kr.Fragment,{children:[!C&&ai.getElement(v),(0,lw.jsx)(QL,{context:f,modal:!1,disabled:!R,openInteractionType:w,returnFocus:s,restoreFocus:!0,children:q})]})});function CH(e){let t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function sw(e){return sm(e.scrollHeight,e.clientHeight)}function wH(e){return $h.getScale(e)}function zh(e,t,n){return e/n[t]}function iw(e,t){return Js({x:zh(e.x,"x",t),y:zh(e.y,"y",t),width:zh(e.width,"x",t),height:zh(e.height,"y",t)})}var _H=[["transform","none"],["scale","1"],["translate","0 0"]];function $ae(e){let{style:t}=e,n={};for(let[a,r]of _H)n[a]=t.getPropertyValue(a),t.setProperty(a,r,"important");return()=>{for(let[a]of _H){let r=n[a];r?t.setProperty(a,r):t.removeProperty(a)}}}var kH=k(A(),1);var $H=kH.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,i=Dt(),{multiple:l,readOnly:u}=Gl(),{alignItemWithTriggerActive:c}=Xl(),d=i.useState("hasScrollArrows"),f=i.useState("openMethod"),p={id:`${i.useState("id")}-list`,role:"listbox","aria-multiselectable":l||void 0,"aria-readonly":u||void 0,onScroll(x){i.context.scrollHandlerRef.current?.(x.currentTarget)},...c&&{style:aw},className:d&&f!=="touch"?ai.className:void 0},h=i.useStateSetter("listElement");return oe("div",t,{ref:[n,h],props:[p,s]})});var xo=k(A(),1);var uw=k(A(),1),dI=uw.createContext(void 0);function qh(){let e=uw.useContext(dI);if(!e)throw new Error(Ve(57));return e}var LH=k(Z(),1),RH=xo.memo(xo.forwardRef(function(t,n){let{render:a,className:r,style:o,value:s=null,label:i,disabled:l=!1,nativeButton:u=!1,...c}=t,d=xo.useRef(null),f=lm({guess:!0,label:i,textRef:d}),m=Dt(),{itemProps:p,multiple:h,disabled:x,readOnly:b}=Gl(),g=x||l,y=m.useState("isActive",f.index),v=m.useState("open"),C=m.useState("isSelected",s),S=m.useState("isSelectedByFocus",f.index),_=m.useState("isItemEqualToValue"),w=f.index,R=xo.useRef(null);U(()=>{let L=m.context.valuesRef.current;return L[w]=s,()=>{delete L[w]}},[w,s,m]),U(()=>{let L=m.state.value,V=m.state.selectedIndex,q=V,G;h&&Array.isArray(L)?(q=D4(w,s,m.context.valuesRef.current,L,_,V),G=q===w,w===V&&!G&&(m.context.selectedItemTextRef.current=null)):(G=L!==void 0&&li(s,L,_),G&&(q=w)),m.set("selectedIndex",q),G&&d.current&&(m.context.selectedItemTextRef.current=d.current)},[w,h,_,m,s]);let $=xo.useRef("mouse"),j=xo.useRef(!1),{getButtonProps:M,buttonRef:I}=Os({disabled:g,focusableWhenDisabled:!0,native:u,composite:!0}),N={disabled:g,selected:C,highlighted:y};function E(L){if(x||b)return;let V=m.state.value;if(h){let q=Array.isArray(V)?V:[],G=C?N4(q,s,_):[...q,s];m.context.setValue(G,ve(se.itemPress,L))}else m.context.setValue(s,ve(se.itemPress,L)),m.context.setOpen(!1,ve(se.itemPress,L))}function B(){m.context.selectionRef.current.dragY=0}let z={role:"option","aria-selected":C,tabIndex:v&&y?0:-1,onKeyDown(L){m.set("activeIndex",w),L.key===" "&&m.context.typingRef.current&&L.preventDefault()},onClick(L){let V=$.current!=="touch",q=L.nativeEvent.pointerType,G=V&&Il(L.nativeEvent)&&(q!==void 0||y),T=V&&!G&&!j.current;j.current=!1,!(g||T)&&E(L.nativeEvent)},onPointerEnter(L){$.current=L.pointerType},onPointerMove(L){if(L.pointerType==="mouse"&&L.buttons===1){let V=m.context.selectionRef.current;V.dragY+=L.movementY,V.dragY**2>=64&&(V.allowUnselectedMouseUp=!0)}},onPointerDown(L){$.current=L.pointerType,j.current=!0,B()},onMouseUp(){if(B(),g||$.current==="touch"||j.current)return;let L=!m.context.selectionRef.current.allowSelectedMouseUp&&C,V=!m.context.selectionRef.current.allowUnselectedMouseUp&&!C;L||V||(j.current=!0,R.current?.click(),j.current=!1)}},P=oe("div",t,{ref:[I,n,f.ref,R],state:N,props:[p,z,c,M]}),D=xo.useMemo(()=>({selected:C,index:w,textRef:d,selectedByFocus:S}),[C,w,d,S]);return(0,LH.jsx)(dI.Provider,{value:D,children:P})}));var qc=k(A(),1);var IH=k(Z(),1),jH=qc.forwardRef(function(t,n){let{selected:a}=qh();return t.keepMounted||a?(0,IH.jsx)(Lae,{...t,ref:n}):null}),Lae=qc.memo(qc.forwardRef((e,t)=>{let{render:n,className:a,style:r,keepMounted:o,...s}=e,{selected:i}=qh(),l=qc.useRef(null),{transitionStatus:u,setMounted:c}=Qa(i),f=oe("span",e,{ref:[t,l],state:{selected:i,transitionStatus:u},props:[{"aria-hidden":!0,children:"\u2714\uFE0F"},s],stateAttributesMapping:Ya});return ga({batch:!0,enabled:!i,open:i,ref:l,onComplete(){i||c(!1)}}),f}));var hm=k(A(),1);var TH=hm.memo(hm.forwardRef(function(t,n){let{index:a,textRef:r,selectedByFocus:o}=qh(),s=Dt(),{render:i,className:l,style:u,...c}=t,d=hm.useCallback(m=>{m&&(a===0&&(s.context.firstItemTextRef.current=m),o&&(s.context.selectedItemTextRef.current=m))},[s,a,o]);return oe("div",t,{ref:[d,n,r],props:c})}));var EH=k(A(),1);var AH=EH.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,i=Dt(),{side:l,align:u,arrowRef:c,arrowStyles:d,arrowUncentered:f,alignItemWithTriggerActive:m}=Xl(),h={open:i.useState("open"),side:l,align:u,uncentered:f},x=oe("div",t,{state:h,ref:[c,n],props:[{style:d,"aria-hidden":!0},s],stateAttributesMapping:cv});return m?null:x});var MH=k(A(),1);var PH=k(A(),1);var cw=PH.forwardRef(function(t,n){let{render:a,className:r,style:o,direction:s,keepMounted:i,...l}=t,u=s==="up",c=Dt(),{side:d,scrollDownArrowRef:f,scrollUpArrowRef:m}=Xl(),p=u?"scrollUpArrowVisible":"scrollDownArrowVisible",h=c.useState(p),x=c.useState("openMethod"),b=h&&x!=="touch",g=nt(),y=u?m:f,{mounted:v,transitionStatus:C,setMounted:S}=Qa(b);U(()=>(c.context.scrollArrowsMountedCountRef.current+=1,c.set("hasScrollArrows",!0),()=>{c.context.scrollArrowsMountedCountRef.current=Math.max(0,c.context.scrollArrowsMountedCountRef.current-1),c.context.scrollArrowsMountedCountRef.current===0&&c.set("hasScrollArrows",!1)}),[c]),ga({open:b,ref:y,onComplete(){b||S(!1)}});let R=oe("div",t,{ref:[n,y],state:{direction:s,visible:b,side:d,transitionStatus:C},props:[{"aria-hidden":!0,children:u?"\u25B2":"\u25BC",style:{position:"absolute"},onMouseMove(j){if(j.movementX===0&&j.movementY===0||g.isStarted())return;c.set("activeIndex",null);function M(){let I=c.state.listElement??c.context.popupRef.current;if(!I)return;c.set("activeIndex",null),c.context.handleScrollArrowVisibility(I);let N=sm(I.scrollHeight,I.clientHeight),E=ri(I.scrollTop,N),B=E===(u?0:N),z=c.context.listRef.current;if(E!==I.scrollTop&&(I.scrollTop=E),B){g.clear();return}if(z.length>0){let P=y.current?.offsetHeight||0;I.scrollTop=Rae(z,u,E,I.clientHeight,P,N)}g.start(40,M)}g.start(40,M)},onMouseLeave(){g.clear()}},l],stateAttributesMapping:Ya});return v||i?R:null});function Rae(e,t,n,a,r,o){if(t){let c=0,d=n+r-yr;for(let p=0;p<e.length;p+=1){let h=e[p];if(h&&h.offsetTop>=d){c=p;break}}let f=Math.max(0,c-1),m=e[f];return f<c&&m?ri(m.offsetTop-r,o):0}let s=e.length-1,i=n+a-r+yr;for(let c=0;c<e.length;c+=1){let d=e[c];if(d&&d.offsetTop+d.offsetHeight>i){s=Math.max(0,c-1);break}}let l=Math.min(e.length-1,s+1),u=e[l];return l>s&&u?ri(u.offsetTop+u.offsetHeight-a+r,o):o}var DH=k(Z(),1),NH=MH.forwardRef(function(t,n){return(0,DH.jsx)(cw,{...t,ref:n,direction:"down"})});var OH=k(A(),1);var BH=k(Z(),1),FH=OH.forwardRef(function(t,n){return(0,BH.jsx)(cw,{...t,ref:n,direction:"up"})});var bm=k(A(),1);var dw=k(A(),1),fI=dw.createContext(void 0);function VH(){let e=dw.useContext(fI);if(e===void 0)throw new Error(Ve(56));return e}var zH=k(Z(),1),qH=bm.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,[i,l]=bm.useState(),u=bm.useMemo(()=>({labelId:i,setLabelId:l}),[i,l]),c=oe("div",t,{ref:n,props:[{role:"group","aria-labelledby":i},s]});return(0,zH.jsx)(fI.Provider,{value:u,children:c})});var HH=k(A(),1);var UH=HH.forwardRef(function(t,n){let{render:a,className:r,style:o,id:s,...i}=t,{setLabelId:l}=VH(),u=Cn(s);return U(()=>(l(u),()=>{l(d=>d===u?void 0:d)}),[u,l]),oe("div",t,{ref:n,props:[{id:u,"aria-hidden":!0},i]})});var GH=k(A(),1);var WH=GH.forwardRef(function(t,n){let{className:a,render:r,orientation:o="horizontal",style:s,...i}=t;return oe("div",t,{state:{orientation:o},ref:n,props:[{role:"presentation"},i]})});var XH=WH;var dn=k(Z(),1),ym=ya.Root;function xm({className:e,...t}){return(0,dn.jsx)(ya.Value,{"data-slot":"select-value",className:ne("flex flex-1 text-left",e),...t})}function vm({className:e,size:t="default",children:n,...a}){return(0,dn.jsxs)(ya.Trigger,{"data-slot":"select-trigger","data-size":t,className:ne("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a,children:[n,(0,dn.jsx)(ya.Icon,{render:(0,dn.jsx)(ia,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function Cm({className:e,children:t,side:n="bottom",sideOffset:a=4,align:r="center",alignOffset:o=0,alignItemWithTrigger:s=!0,...i}){return(0,dn.jsx)(ya.Portal,{children:(0,dn.jsx)(ya.Positioner,{side:n,sideOffset:a,align:r,alignOffset:o,alignItemWithTrigger:s,className:"isolate z-50",children:(0,dn.jsxs)(ya.Popup,{"data-slot":"select-content","data-align-trigger":s,className:ne("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:[(0,dn.jsx)(Iae,{}),(0,dn.jsx)(ya.List,{children:t}),(0,dn.jsx)(jae,{})]})})})}function Yl({className:e,children:t,...n}){return(0,dn.jsxs)(ya.Item,{"data-slot":"select-item",className:ne("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[(0,dn.jsx)(ya.ItemText,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:t}),(0,dn.jsx)(ya.ItemIndicator,{render:(0,dn.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,dn.jsx)(Sa,{className:"pointer-events-none"})})]})}function Iae({className:e,...t}){return(0,dn.jsx)(ya.ScrollUpArrow,{"data-slot":"select-scroll-up-button",className:ne("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,dn.jsx)(jp,{})})}function jae({className:e,...t}){return(0,dn.jsx)(ya.ScrollDownArrow,{"data-slot":"select-scroll-down-button",className:ne("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,dn.jsx)(ia,{})})}var pt=k(Z(),1),YH={all:"Any state",done:"Done",problem:"Needs attention"},ZH={0:"All time",1:"Last 24 hours",7:"Last 7 days",30:"Last 30 days"},Tae=e=>(e.split("/").pop()??e).replace(/-(contributor-)?free$/,"").replace(/-\d+\.\d+$/,""),Eae=e=>({id:e.id,state:e.state,kind:e.kind,worker:e.model?`${e.backend} (${Tae(e.model)})`:e.backend,task:e.task,group:e.group,startedAt:e.startedAt,time:e.seconds!=null?Rs(e.seconds):"",steps:e.steps??0,tokens:e.tokens,saved:e.saved,verdict:e.verdict,audit:e.audit,changes:e.files||void 0,applied:e.applied||void 0,verifyFailed:e.verifyFailed,note:""});function KH(){let[e,t]=(0,er.useState)(""),[n,a]=(0,er.useState)(""),[r,o]=(0,er.useState)("all"),[s,i]=(0,er.useState)("all"),[l,u]=(0,er.useState)("0"),[c,d]=(0,er.useState)([]),[f,m]=(0,er.useState)(),[p,h]=(0,er.useState)(!1),[x,b]=(0,er.useState)();(0,er.useEffect)(()=>{$n.stats(0).then(b).catch(()=>{})},[]),(0,er.useEffect)(()=>{let C=setTimeout(()=>a(e),250);return()=>clearTimeout(C)},[e]);let g={q:n,state:r==="all"?void 0:r,model:s==="all"?void 0:s,days:Number(l)||void 0};(0,er.useEffect)(()=>{let C=!0;return h(!0),$n.history({...g,limit:30}).then(S=>{C&&(d(S.rows),m(S.total),h(!1))}).catch(()=>C&&h(!1)),()=>{C=!1}},[n,r,s,l]);let y=async()=>{let C=await $n.history({...g,limit:30,before:c.at(-1)?.id});d(S=>[...S,...C.rows])},v=[...new Set((x?.byWorker??[]).map(C=>C.model).filter(Boolean))];return(0,pt.jsxs)("div",{className:"space-y-4",children:[(0,pt.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,pt.jsxs)("div",{className:"relative min-w-56 flex-1",children:[(0,pt.jsx)(so,{className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),(0,pt.jsx)(QC,{value:e,onChange:C=>t(C.target.value),placeholder:"Search tasks, answers and steps",className:"pl-8"})]}),(0,pt.jsxs)(ym,{value:r,onValueChange:C=>o(C??"all"),items:YH,children:[(0,pt.jsx)(vm,{className:"w-40",children:(0,pt.jsx)(xm,{})}),(0,pt.jsx)(Cm,{children:Object.entries(YH).map(([C,S])=>(0,pt.jsx)(Yl,{value:C,children:S},C))})]}),(0,pt.jsxs)(ym,{value:s,onValueChange:C=>i(C??"all"),items:{all:"Any model",...Object.fromEntries(v.map(C=>[C,C.split("/").pop()]))},children:[(0,pt.jsx)(vm,{className:"w-44",children:(0,pt.jsx)(xm,{})}),(0,pt.jsxs)(Cm,{children:[(0,pt.jsx)(Yl,{value:"all",children:"Any model"}),v.map(C=>(0,pt.jsx)(Yl,{value:C,children:C.split("/").pop()},C))]})]}),(0,pt.jsxs)(ym,{value:l,onValueChange:C=>u(C??"0"),items:ZH,children:[(0,pt.jsx)(vm,{className:"w-40",children:(0,pt.jsx)(xm,{})}),(0,pt.jsx)(Cm,{children:Object.entries(ZH).map(([C,S])=>(0,pt.jsx)(Yl,{value:C,children:S},C))})]})]}),(0,pt.jsxs)("div",{className:"space-y-2.5",children:[p&&!c.length&&[0,1,2,3].map(C=>(0,pt.jsx)(Zs,{className:"h-24 rounded-xl"},C)),c.map((C,S)=>(0,pt.jsx)(zl,{run:Eae(C),index:S,when:!0},C.id)),!p&&!c.length&&(0,pt.jsx)("div",{className:"py-16 text-center text-muted-foreground",children:"No runs match."})]}),(0,pt.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,pt.jsx)("span",{children:f!=null?`${c.length} of ${f} runs`:""}),f!=null&&c.length<f&&(0,pt.jsx)(on,{variant:"outline",onClick:()=>void y(),children:"Load more"})]})]})}var ls=k(A(),1);var Zl=k(A(),1);var fw=e=>e.state==="running"||e.state==="queued",mI=e=>e.state==="failed"||e.state==="timeout"||e.state==="stopped"||!!e.verifyFailed;function QH(e){let t=new Map;for(let r of e)r.group&&t.set(r.group,(t.get(r.group)??0)+1);let n=[],a=new Map;for(let r of e){if(!r.group||(t.get(r.group)??0)<2){n.push({kind:"run",run:r});continue}let o=a.get(r.group);o||(o={kind:"group",name:r.group,runs:[]},a.set(r.group,o),n.push(o)),o.runs.push(r)}return n}function JH(e){let t=e.filter(fw).length,n=e.filter(o=>!fw(o)&&mI(o)).length,a=e.filter(o=>o.state==="done"&&!o.verifyFailed).length,r=new Map;for(let o of e)r.set(o.worker,(r.get(o.worker)??0)+1);return{workers:[...r].sort((o,s)=>s[1]-o[1]),total:e.length,running:t,problem:n,done:a,saved:e.reduce((o,s)=>o+(s.saved??0),0),tokens:e.reduce((o,s)=>o+(s.tokens??0),0),startedAt:e.reduce((o,s)=>Date.parse(s.startedAt)<Date.parse(o)?s.startedAt:o,e[0]?.startedAt??"")}}var Re=k(Z(),1);function Aae({name:e,running:t,discardable:n,problem:a}){let[r,o]=(0,Zl.useState)(),[s,i]=(0,Zl.useState)(!1),[l,u]=(0,Zl.useState)(),[c,d]=(0,Zl.useState)(),[f,m]=(0,Zl.useState)(),[p,h]=(0,Zl.useState)(!1);if(!t&&!n&&!a)return null;let x=async y=>{i(!0),u(void 0);try{u({text:await(y==="stop"?$n.stopGroup(e):$n.discardGroup(e))}),o(void 0)}catch(v){u({text:v.message,bad:!0})}finally{i(!1)}},b=async()=>{try{let y=await $n.retryGroup(e);d(y.commands),m(y.shell)}catch(y){u({text:y.message,bad:!0})}},g=r==="stop"?`Stop the ${t} run${t===1?"":"s"} still at work?`:`Throw away ${n} isolated cop${n===1?"y":"ies"}? The patch files stay.`;return(0,Re.jsxs)("div",{className:"space-y-2",children:[(0,Re.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:r?(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)("span",{className:"text-[13px] text-muted-foreground",children:g}),(0,Re.jsx)(on,{variant:"destructive",size:"sm",disabled:s,onClick:()=>void x(r),children:s?"\u2026":r==="stop"?"Yes, stop all":"Yes, discard all"}),(0,Re.jsx)(on,{variant:"ghost",size:"sm",disabled:s,onClick:()=>o(void 0),children:"Cancel"})]}):(0,Re.jsxs)(Re.Fragment,{children:[t>0&&(0,Re.jsxs)(on,{variant:"outline",size:"sm",onClick:()=>o("stop"),children:["Stop all (",t,")"]}),n>0&&(0,Re.jsxs)(on,{variant:"outline",size:"sm",onClick:()=>o("discard"),children:["Discard all (",n,")"]}),a>0&&(0,Re.jsxs)(on,{variant:"outline",size:"sm",onClick:()=>void b(),children:["Retry command (",a,")"]})]})}),l&&(0,Re.jsx)("p",{className:l.bad?"text-[13px] text-destructive":"text-[13px] text-muted-foreground",children:l.text}),c&&(c.length?(0,Re.jsxs)("div",{className:"space-y-1.5",children:[(0,Re.jsxs)("p",{className:"text-[13px] text-muted-foreground",children:[f==="powershell"?"Run in PowerShell":"Run in a terminal"," (or ask your agent) to start the failed runs again in this crew:"]}),(0,Re.jsx)("pre",{className:"overflow-x-auto rounded-md bg-muted p-2.5 font-mono text-xs",children:c.join(`
|
|
176
|
+
`))):q=YR(D)}B(V,q)}),_=X((R,$=!1)=>{if(h.clear(),g.current+=1,$)return;let j=c();j&&R!==""&&s?h.start(s,()=>{S(R)}):S(R,!j)}),w=ii.useCallback((R,$={})=>la(p($),u.valid===!1&&!u.disabled&&!R?{"aria-invalid":!0}:Qe),[p,u.disabled,u.valid]);return ii.useMemo(()=>({getValidationProps:w,inputRef:x,registeredInputs:b,registerInput:v,getInputControl:C,commit:S,change:_}),[w,b,v,C,S,_])}var HC=k(A(),1);function y4(e){let{change:t,commit:n,invalid:a,markedDirtyRef:r,name:o,setRegisteredFieldName:s,registeredFieldIdRef:i,setValidityData:l,validityData:u}=e,{formRef:c}=Yr(),d=HC.useRef(null),f=HC.useRef(null),m=HC.useRef(!1),p=X(()=>{let C=f.current;if(C)return C.getValue?C.getValue():C.value});function h(C){return C.value===void 0?p():C.value}let x=X(()=>{let C=f.current;if(r.current=!0,!C){n(u.value);return}n(h(C))});function b(){let C=f.current;!C||!C.id||c.current.fields.set(C.id,{getValue:p,name:o??C.name,controlRef:C.controlRef,validityData:Fc(u,a),validate:x})}function g(C=f.current?.id){C&&c.current.fields.delete(C)}function y(C){if(m.current)return;m.current=!0;let S=h(C);l(_=>_.initialValue===S?_:{..._,initialValue:S})}U(()=>{let C=f.current;!C||!C.id||(s(o?void 0:C.name),c.current.fields.set(C.id,{getValue:p,name:o??C.name,controlRef:C.controlRef,validityData:Fc(u,a),validate:x}))},[c,p,a,o,s,x,u]),U(()=>{let C=c.current.fields;return()=>{let S=f.current?.id;S&&C.delete(S)}},[c]);let v=X((C,S)=>{if(!S){d.current===C&&(d.current=null,t(void 0,!0),g(),f.current=null,s(void 0),i.current=void 0);return}let _=f.current?.id,w=d.current;w&&w!==C&&t(void 0,!0),d.current=C,f.current=S,o||s(S.name),i.current=S.id,_&&_!==S.id&&g(_),y(S),b()});return[x,v]}var UC=k(Z(),1),rae=Vn.forwardRef(function(t,n){let{errors:a,validationMode:r,submitCountRef:o}=Yr(),{render:s,className:i,validate:l,validationDebounceTime:u=0,validationMode:c=r,name:d,disabled:f=!1,invalid:m,dirty:p,touched:h,actionsRef:x,style:b,...g}=t,y=m4(!0)?.disabled,v=X(l||(()=>null)),C=y||f,[S,_]=Vn.useState(!1),[w,R]=Vn.useState(!1),[$,j]=Vn.useState(!1),[M,I]=Vn.useState(!1),N=p??w,E=h??S,B=Vn.useRef(N),z=Vn.useRef(void 0),[P,D]=Vn.useState(),L=d??P;U(()=>{p!==void 0&&(B.current=p)},[p]);let V=X(je=>{p===void 0&&(je&&(B.current=!0),R(je))}),q=X(je=>{h===void 0&&_(je)}),G=X(()=>c==="onChange"||c==="onSubmit"&&o.current>0),T=L&&Object.hasOwn(a,L)?a[L]:null,F=!!(Array.isArray(T)?T.length:T),O=m===!0||F,[Q,W]=Vn.useState({state:Bc,error:"",errors:[],value:null,initialValue:null}),ee=!O&&(C?null:Q.state.valid),le=Vn.useMemo(()=>({disabled:C,touched:E,dirty:N,valid:ee,filled:$,focused:M}),[C,E,N,ee,$,M]),ce=b4({setValidityData:W,validate:v,validityData:Q,validationDebounceTime:u,invalid:O,markedDirtyRef:B,state:le,shouldValidateOnChange:G,validationMode:c,registeredFieldIdRef:z}),[J,te]=y4({change:ce.change,commit:ce.commit,invalid:O,markedDirtyRef:B,name:d,setRegisteredFieldName:D,registeredFieldIdRef:z,setValidityData:W,validityData:Q});Vn.useImperativeHandle(x,()=>({validate:J}),[J]);let pe=Vn.useMemo(()=>({invalid:O,name:L,validityData:Q,setValidityData:W,disabled:C,setTouched:q,setDirty:V,setFilled:j,setFocused:I,validationMode:c,shouldValidateOnChange:G,state:le,registerFieldControl:te,validation:ce}),[O,L,Q,C,q,V,j,I,c,G,le,te,ce]),be=oe("div",t,{ref:n,state:le,props:g,stateAttributesMapping:ba});return(0,UC.jsx)(UR.Provider,{value:pe,children:be})}),x4=Vn.forwardRef(function(t,n){return(0,UC.jsx)(VC,{children:(0,UC.jsx)(rae,{...t,ref:n})})});var Dh=k(A(),1);var GC=k(A(),1),ZR=GC.createContext({disabled:!1});function WC(){return GC.useContext(ZR)}var v4=Dh.forwardRef(function(t,n){let{render:a,className:r,style:o,id:s,nativeLabel:i=!0,...l}=t,u=wn(!1),c=WC(),{labelId:d}=Fn(),f={...u.state,disabled:u.disabled||c.disabled},m=Dh.useRef(null),p=qC({id:d??s,native:i});return oe("label",t,{ref:[n,m],state:f,props:[p,l],stateAttributesMapping:ba})});var Vc=k(A(),1);var KR=k(Z(),1),oae={...ba,...Ya},C4=Vc.forwardRef(function(t,n){let{render:a,id:r,className:o,match:s,style:i,...l}=t,u=Cn(r),{validityData:c,state:d,name:f}=wn(!1),{setMessageIds:m}=Fn(),{errors:p}=Yr(),h=f&&Object.hasOwn(p,f)?p[f]:null,x=!!(Array.isArray(h)?h.length:h),b=typeof s=="string",g=!1;s===!0?g=!0:d.disabled?g=!1:b?g=!!c.state[s]:g=x||c.state.valid===!1;let{mounted:y,transitionStatus:v,setMounted:C}=Qa(g);U(()=>{if(!(!g||!u))return m(B=>B.concat(u)),()=>{m(B=>B.filter(z=>z!==u))}},[g,u,m]);let S=Vc.useRef(null),[_,w]=Vc.useState(null),[R,$]=Vc.useState(null),j=c.error;!b&&x?j=h:c.errors.length>1&&(j=c.errors);let M=j;Array.isArray(j)&&(M=j.length>1?(0,KR.jsx)("ul",{children:j.map(B=>(0,KR.jsx)("li",{children:B},B))}):j[0]);let I=Array.isArray(j)?JSON.stringify(j):j;g&&I!==R&&($(I),w(M)),ga({open:g,ref:S,onComplete(){g||C(!1)}});let N={...d,transitionStatus:v},E=oe("div",t,{ref:[n,S],state:N,props:[{id:u,children:g?M:_},l],stateAttributesMapping:oae,enabled:y});return y?E:null});var w4=k(A(),1);var _4=w4.forwardRef(function(t,n){let{render:a,id:r,className:o,style:s,...i}=t,l=Cn(r),u=wn(!1),c=WC(),{setMessageIds:d}=Fn(),f={...u.state,disabled:u.disabled||c.disabled};return U(()=>{if(l)return d(p=>p.concat(l)),()=>{d(p=>p.filter(h=>h!==l))}},[l,d]),oe("p",t,{ref:n,state:f,props:[{id:l},i],stateAttributesMapping:ba})});var YC=k(A(),1);function XC(e,t,n,a,r=!0,o){let{registerFieldControl:s}=wn(),i=st(()=>Symbol());U(()=>{let l=i.current;if(!r){s(l,void 0);return}s(l,{controlRef:e,getValue:a,id:t,name:o,value:n})},[e,r,a,t,o,s,i,n]),U(()=>{let l=i.current;return()=>{s(l,void 0)}},[s,i])}var S4=k(A(),1);function mm(e,t){let n=S4.useRef(e),a=X(t);U(()=>{n.current!==e&&a(n.current),n.current=e},[e,a])}var k4=YC.forwardRef(function(t,n){let{render:a,className:r,id:o,name:s,value:i,disabled:l=!1,onValueChange:u,defaultValue:c,autoFocus:d=!1,style:f,...m}=t,{state:p,name:h,disabled:x,setTouched:b,setDirty:g,validityData:y,setFocused:v,setFilled:C,validationMode:S,validation:_}=wn(),{clearErrors:w,elementRef:R,submitCountRef:$}=Yr(),j=x||l,M=h??s,I={...p,disabled:j},{labelId:N}=Fn(),E=fm({id:o}),[B]=Dc({controlled:i,default:c,name:"FieldControl",state:"value"}),z=i!==void 0,P=z?B:void 0,D=P==null?void 0:String(P),L=X(()=>_.inputRef.current?.value);XC(_.inputRef,E,D,L,!j,s),U(()=>{let T=D??_.inputRef.current?.value;T!==void 0&&C(T!=="")},[D,_.inputRef,C]),mm(D,()=>{D!==void 0&&(w(M),g(D!==(y.initialValue??"")),_.change(D))});let V=YC.useRef(null),q=nt();return U(()=>{d&&V.current===Xt(Se(V.current))&&v(!0)},[d,v]),oe("input",t,{ref:[n,V],state:I,props:[{id:E,disabled:j,name:M,ref:_.inputRef,"aria-labelledby":N,autoFocus:d,...z?{value:P}:{defaultValue:c},onChange(T){let F=T.currentTarget.value,O=ve(se.none,T.nativeEvent);u?.(F,O),!z&&(g(F!==(y.initialValue??"")),C(F!==""),!T.nativeEvent.defaultPrevented&&!O.isCanceled&&(w(M),_.change(F)))},onFocus(){v(!0)},onBlur(T){if(b(!0),v(!1),S==="onBlur"){let F=T.currentTarget.value;_.commit(F),z&&queueMicrotask(()=>{let O=_.inputRef.current?.value;O!==void 0&&O!==F&&O!==(y.initialValue??"")&&_.commit(O)})}},onKeyDown(T){if(T.currentTarget.tagName==="INPUT"&&T.key==="Enter"){b(!0);let F=T.currentTarget.value,O=T.currentTarget.form;if(O&&O===R.current&&!T.defaultPrevented){let Q=T.currentTarget,W=$.current;q.start(0,()=>{$.current===W&&_.commit(Q.value)})}else _.commit(F)}}},m,T=>_.getValidationProps(j,T)],stateAttributesMapping:ba})});var Nh=k(A(),1);var $4=k(Z(),1),L4=function(t){let{children:n}=t,{validityData:a,invalid:r}=wn(!1),o=Nh.useMemo(()=>Fc(a,r),[a,r]),s=o.state.valid===!1,{transitionStatus:i}=Qa(s),l=Nh.useMemo(()=>({...o,validity:o.state,transitionStatus:i}),[o,i]);return(0,$4.jsx)(Nh.Fragment,{children:n(l)})};var ZC=k(A(),1);var QR=k(Z(),1),R4=ZC.forwardRef(function(t,n){let{render:a,className:r,style:o,disabled:s=!1,...i}=t,{state:l,disabled:u}=wn(!1),c=u||s,d={...l,disabled:c},f=ZC.useMemo(()=>({disabled:c}),[c]),m=oe("div",t,{ref:n,state:d,props:i,stateAttributesMapping:ba});return(0,QR.jsx)(VC,{children:(0,QR.jsx)(ZR.Provider,{value:f,children:m})})});var j4=k(Z(),1),JR=I4.forwardRef(function(t,n){return(0,j4.jsx)(KC.Control,{ref:n,...t})});var T4=k(Z(),1);function QC({className:e,type:t,...n}){return(0,T4.jsx)(JR,{type:t,"data-slot":"input",className:ne("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...n})}var ya={};aa(ya,{Arrow:()=>AH,Backdrop:()=>lH,Group:()=>qH,GroupLabel:()=>UH,Icon:()=>aH,Item:()=>RH,ItemIndicator:()=>jH,ItemText:()=>TH,Label:()=>Z4,List:()=>$H,Popup:()=>SH,Portal:()=>sH,Positioner:()=>xH,Root:()=>G4,ScrollDownArrow:()=>NH,ScrollUpArrow:()=>FH,Separator:()=>XH,Trigger:()=>J4,Value:()=>tH});var Yt=k(A(),1);var E4=k(A(),1);function A4(e){let t=E4.useRef(!0);t.current&&(t.current=!1,e())}var Ul=k(A(),1),eI=Ul.createContext(void 0),tI=Ul.createContext(void 0),nI=Ul.createContext(void 0);function Nt(){let e=Ul.useContext(eI);if(e===void 0)throw new Error(Ve(60));return e}function Gl(){let e=Ul.useContext(tI);if(e===void 0)throw new Error(Ve(101));return e}function JC(){let e=Ul.useContext(nI);if(e===void 0)throw new Error(Ve(61));return e}function P4(e,t,n=Object.is){let{length:a}=e;if(a!==t.length)return!1;for(let r=0;r<a;r+=1)if(!n(e[r],t[r]))return!1;return!0}var rI=(e,t)=>Object.is(e,t);function li(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function M4(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!P4(e,t,(a,r)=>li(a,r,n)):e!==t}function aI(e,t,n){return e?e.some(a=>a===void 0?!1:li(t,a,n)):!1}function Oh(e,t,n){return e?e.findIndex(a=>a===void 0?!1:li(a,t,n)):-1}function sae(e,t){if(t!==rI)return a=>aI(e,a,t);let n=new Set(e);return n.delete(void 0),a=>n.has(a)&&(a!==0||e.some(r=>Object.is(a,r)))}function oI(e,t,n,a){let r=a&&Array.isArray(t)?e.findIndex(sae(t,n)):Oh(e,t,n);return r===-1?null:r}function D4(e,t,n,a,r,o){return aI(a,t,r)?o!=null&&e>o&&aI(a,n[o],r)?o:e:e===o?oI(n,a,r,!0):o}function N4(e,t,n){return e.filter(a=>!li(t,a,n))}var O4=k(A(),1);function ew(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}var B4=k(Z(),1);function iae(e){return typeof e=="object"&&e!=null&&Array.isArray(e.items)}function F4(e){return iae(e?.[0])}function lae(e){return F4(e)?e.flatMap(t=>t.items):e}function V4(e){if(!Array.isArray(e))return e!=null&&"null"in e;let t=e;if(F4(t)){for(let n of t)for(let a of n.items)if(a&&a.value==null&&a.label!=null)return!0;return!1}for(let n of t)if(n&&n.value==null&&n.label!=null)return!0;return!1}function sI(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return ew(e)}function Wl(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?ew(e.value):ew(e)}function iI(e,t,n){function a(){return sI(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??a();if(Array.isArray(t)){let o=lae(t);if(e==null||typeof e!="object"){let s=o.find(i=>i.value===e);return s&&s.label!=null?s.label:a()}if("value"in e){let s=o.find(i=>i&&i.value===e.value);if(s&&s.label!=null)return s.label}}return a()}function z4(e,t,n){return e.reduce((a,r,o)=>(o>0&&a.push(", "),a.push((0,B4.jsx)(O4.Fragment,{children:iI(r,t,n)},o)),a),[])}var q4={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:n,itemToStringValue:a}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Wl(t,a)!==""},hasNullItemLabel:(e,t)=>t?V4(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,a=e.value;return e.multiple?Array.isArray(a)&&a.some(r=>li(t,r,n)):li(t,a,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};var Fh=k(A(),1);var Bh=k(A(),1);function H4(e){let t=Bh.useRef(""),n=Bh.useCallback(r=>{r.defaultPrevented||(t.current=r.pointerType,e(r,r.pointerType))},[e]);return{onClick:Bh.useCallback(r=>{if(r.detail===0){e(r,"keyboard");return}"pointerType"in r?e(r,r.pointerType):e(r,t.current),t.current=""},[e]),onPointerDown:n}}function uae(e,t){let n=X((o,s)=>{(typeof e=="function"?e():e)||t(s||(it.os.ios?"touch":""))}),{onClick:a,onPointerDown:r}=H4(n);return Fh.useMemo(()=>({onClick:a,onPointerDown:r}),[a,r])}function U4(e){let[t,n]=Fh.useState(null),a=uae(e,n);return mm(e,r=>{r&&!e&&n(null)}),Fh.useMemo(()=>({openMethod:t,triggerProps:a}),[t,a])}var zc=k(Z(),1);function G4(e){let{id:t,value:n,defaultValue:a=null,onValueChange:r,open:o,defaultOpen:s=!1,onOpenChange:i,name:l,form:u,autoComplete:c,disabled:d=!1,readOnly:f=!1,required:m=!1,modal:p=!0,actionsRef:h,inputRef:x,onOpenChangeComplete:b,items:g,multiple:y=!1,itemToStringLabel:v,itemToStringValue:C,isItemEqualToValue:S=rI,highlightItemOnHover:_=!0,children:w}=e,{clearErrors:R}=Yr(),{setDirty:$,setTouched:j,setFocused:M,validityData:I,setFilled:N,name:E,disabled:B,validation:z,validationMode:P}=wn(),D=fm({id:t}),L=B||d,V=E??l,[q,G]=Dc({controlled:n,default:y?a??za:a,name:"Select",state:"value"}),[T,F]=Dc({controlled:o,default:s,name:"Select",state:"open"}),O=Yt.useRef([]),Q=Yt.useRef([]),W=Yt.useRef(null),ee=Yt.useRef(null),le=Yt.useRef(0),ce=Yt.useRef(null),J=Yt.useRef([]),te=Yt.useRef(!1),pe=Yt.useRef(null),be=Yt.useRef(null),je=Yt.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ge=Yt.useRef(!1),$e=Yt.useRef(q),{mounted:ue,setMounted:Le,transitionStatus:Oe}=Qa(T),{openMethod:Ae,triggerProps:gt}=U4(T),re=st(()=>new as({id:D,labelId:void 0,modal:p,multiple:y,itemToStringLabel:v,itemToStringValue:C,isItemEqualToValue:S,value:q,open:T,mounted:ue,transitionStatus:Oe,items:g,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:Qe,triggerProps:Qe,triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:De,setOpen:De,handleScrollArrowVisibility:De,onOpenChangeComplete:De,listRef:O,popupRef:W,scrollHandlerRef:ee,scrollArrowsMountedCountRef:le,valueRef:ce,valuesRef:J,labelsRef:Q,typingRef:te,selectionRef:je,firstItemTextRef:pe,selectedItemTextRef:be,alignItemWithTriggerActiveRef:ge,initialValueRef:$e},q4)).current,fe=re.useState("activeIndex"),Y=re.useState("selectedIndex"),H=re.useState("triggerElement"),ie=re.useState("positionerElement"),Be=aC(Ae),Ut=Ae??Be,fn=Yt.useMemo(()=>y?"":Wl(q,C),[y,q,C]),Ot=Yt.useMemo(()=>y&&Array.isArray(q)?q.map(Je=>Wl(Je,C)):Wl(q,C),[y,q,C]),jt=vt(H),zn=X(()=>Ot);XC(jt,D,q,zn,!L,l);let qn=y?Array.isArray(q)&&q.length>0:q!=null&&fn!=="";U(()=>{N(qn)},[qn,N]),U(function(){let Vt=oI(J.current,q,S,y);Vt===null&&(be.current=null),!T&&re.set("selectedIndex",Vt)},[y,T,q,S,re]),mm(q,()=>{R(V),$(M4(q,I.initialValue,S)),z.change(q)});let mn=X((Je,Vt)=>{i?.(Je,Vt),!Vt.isCanceled&&(F(Je),!Je&&(Vt.reason===se.focusOut||Vt.reason===se.outsidePress)&&(j(!0),M(!1),P==="onBlur"&&z.commit(q)))}),na=X(()=>{Le(!1),re.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),b?.(!1)});ga({enabled:!h,open:T,ref:W,onComplete(){T||na()}}),Yt.useImperativeHandle(h,()=>({unmount:na}),[na]);let Ta=X((Je,Vt)=>{r?.(Je,Vt),!Vt.isCanceled&&G(Je)}),xr=X(Je=>{let Vt=sm(Je.scrollHeight,Je.clientHeight),cs=ri(Je.scrollTop,Vt),nu=cs>0,au=cs<Vt;re.set("scrollUpArrowVisible",nu),re.set("scrollDownArrowVisible",au)}),En=hR({open:T,onOpenChange:mn,elements:{reference:H,floating:ie}}),Zt=JL(En,{enabled:!L,event:"mousedown"}),Te=kh(En),Ft=SR(En,{enabled:!L,listRef:O,activeIndex:fe,selectedIndex:Y,disabledIndices:za,onNavigate(Je){Je===null&&!T||re.set("activeIndex",Je)},focusItemOnHover:_}),rt=kR(En,{enabled:!L&&(T||!f&&!y),listRef:Q,activeIndex:fe,selectedIndex:Y,disabledIndices:Je=>kC(O.current[Je]),onMatch(Je){T?re.set("activeIndex",Je):Ta(J.current[Je],ve(se.none))},onTyping(Je){te.current=Je}}),Gt=Yt.useMemo(()=>la(rt.reference,Ft.reference,Te.reference,Zt.reference,gt),[Zt.reference,rt.reference,Ft.reference,Te.reference,gt]),Ea=Yt.useMemo(()=>la(Dv,rt.floating,Ft.floating,Te.floating),[rt.floating,Ft.floating,Te.floating]),Aa=Ft.item??Qe;re.useContextCallback("setValue",Ta),re.useContextCallback("setOpen",mn),re.useContextCallback("handleScrollArrowVisibility",xr),re.useContextCallback("onOpenChangeComplete",b),A4(()=>{re.update({popupProps:Ea,triggerProps:Gt})}),re.useSyncedValues({id:D,modal:p,multiple:y,value:q,open:T,mounted:ue,transitionStatus:Oe,popupProps:Ea,triggerProps:Gt,items:g,itemToStringLabel:v,itemToStringValue:C,isItemEqualToValue:S,openMethod:Ut});let Gc=Yt.useMemo(()=>({disabled:L,readOnly:f,required:m,multiple:y,highlightItemOnHover:_,itemProps:Aa}),[L,f,m,y,_,Aa]),ci=jr(x,z.inputRef),tu=y?void 0:V,vo=Yt.useMemo(()=>!y||!Array.isArray(q)||!V?null:q.map(Je=>{let Vt=Wl(Je,C);return(0,zc.jsx)("input",{type:"hidden",form:u,name:V,value:Vt,disabled:L},Vt)}),[y,q,u,V,C,L]);return(0,zc.jsxs)(eI.Provider,{value:re,children:[(0,zc.jsx)(tI.Provider,{value:Gc,children:(0,zc.jsx)(nI.Provider,{value:En,children:w})}),(0,zc.jsx)("input",{...z.getValidationProps(L,{onFocus(){re.state.triggerElement?.focus({focusVisible:!0})},onChange(Je){if(Je.nativeEvent.defaultPrevented||L||f)return;let Vt=Je.currentTarget.value,cs=ve(se.none,Je.nativeEvent);function nu(){if(y)return;let au=Vt.toLowerCase(),Sm=J.current.findIndex(xw=>Wl(xw,C).toLowerCase()===au||sI(xw,v).toLowerCase()===au);Sm===-1&&(Sm=J.current.findIndex((xw,$5)=>{let wI=Q.current[$5];return wI!=null&&wI.toLowerCase()===au}));let CI=J.current[Sm];CI!=null&&Ta(CI,cs)}re.set("forceMount",!0),queueMicrotask(nu)}}),id:D&&tu==null?`${D}-hidden-input`:void 0,form:u,name:tu,autoComplete:c,value:fn,disabled:L,required:m&&!(y&&qn),readOnly:f,ref:ci,style:V?d3:Of,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),vo]})}var Y4=k(A(),1);function W4(e){return e==null?void 0:`${e}-label`}function X4(e,t){return e??t}var Z4=Y4.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,i=s;delete i.id;let l=wn(),u=Nt(),c=u.useState("triggerElement"),d=u.useState("id"),f=W4(d),m=qC({id:f,fallbackControlId:c?.id??d,setLabelId(p){let h=typeof p=="function"?p(u.state.labelId):p;u.set("labelId",h)}});return oe("div",t,{ref:n,state:l.state,props:[m,s],stateAttributesMapping:ba})});var pm=k(A(),1);var tw=5;function K4(e,t){let n=cae(t);return e.clientX>=n.left-tw&&e.clientX<=n.right+tw&&e.clientY>=n.top-tw&&e.clientY<=n.bottom+tw}function cae(e){let t=e.getBoundingClientRect(),n=qe(e);if(it.env.jsdom)return t;let a=n.getComputedStyle(e,"::before"),r=n.getComputedStyle(e,"::after");if(!(a.content!=="none"||r.content!=="none"))return t;let s=parseFloat(a.width)||0,i=parseFloat(a.height)||0,l=parseFloat(r.width)||0,u=parseFloat(r.height)||0,c=Math.max(t.width,s,l),d=Math.max(t.height,i,u),f=c-t.width,m=d-t.height;return{left:t.left-f/2,right:t.right+f/2,top:t.top-m/2,bottom:t.bottom+m/2}}var GVe=Cc.popupOpen,WVe=Cc.pressed;var Q4="data-popup-side";var fae=400,mae={...a3,...ba,popupSide:e=>e?{[Q4]:e}:null,value:()=>null},J4=pm.forwardRef(function(t,n){let{render:a,className:r,id:o,disabled:s=!1,nativeButton:i=!0,style:l,...u}=t,{setTouched:c,setFocused:d,validationMode:f,validation:m,state:p,disabled:h}=wn(),{labelId:x}=Fn(),b=Nt(),{readOnly:g,required:y,disabled:v}=Gl(),C=h||v||s,S=b.useState("open"),_=b.useState("mounted"),w=b.useState("value"),R=b.useState("triggerProps"),$=b.useState("positionerElement"),j=b.useState("listElement"),M=b.useState("popupSide"),I=b.useState("id"),N=b.useState("labelId"),E=b.useState("hasSelectedValue"),B=_&&$?M:null,z=o??I,P=X4(x,N);fm({id:o});let D=vt($),L=pm.useRef(null),{getButtonProps:V,buttonRef:q}=Os({disabled:C,native:i}),G=b.useStateSetter("triggerElement"),T=nt(),F=nt(),O=nt();pm.useEffect(()=>{if(S)return O.start(fae,()=>{b.context.selectionRef.current.allowUnselectedMouseUp=!0,b.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{O.clear()};b.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},F.clear()},[S,b,F,O]);let Q=la(R,{id:z,role:"combobox","aria-expanded":S,"aria-haspopup":"listbox","aria-controls":S?j?.id??_c($)?.id:void 0,"aria-labelledby":P,"aria-readonly":g||void 0,"aria-required":y||void 0,tabIndex:C?-1:0,onFocus(le){d(!0),S&&b.context.alignItemWithTriggerActiveRef.current&&b.context.setOpen(!1,ve(se.none,le.nativeEvent)),T.start(0,()=>{b.set("forceMount",!0)})},onBlur(le){de($,le.relatedTarget)||(c(!0),d(!1),f==="onBlur"&&m.commit(w))},onMouseDown(le){if(S)return;let ce=Se(le.currentTarget);function J(te){if(!L.current)return;let pe=te.target;de(L.current,pe)||de(D.current,pe)||K4(te,L.current)||b.context.setOpen(!1,ve(se.cancelOpen,te))}F.start(0,()=>{ce.addEventListener("mouseup",J,{once:!0})})}},u,V),W=m.getValidationProps(C,Q);W.role="combobox";let ee={...p,open:S,disabled:C,value:w,readOnly:g,popupSide:B,placeholder:!E};return oe("button",t,{ref:[n,L,q,G],state:ee,stateAttributesMapping:mae,props:W})});var eH=k(A(),1);var pae={value:()=>null},tH=eH.forwardRef(function(t,n){let{className:a,render:r,children:o,placeholder:s,style:i,...l}=t,u=Nt(),c=u.useState("value"),d=u.useState("items"),f=u.useState("itemToStringLabel"),m=u.useState("hasSelectedValue"),p=!m&&s!=null&&o==null,h=u.useState("hasNullItemLabel",p),x={value:c,placeholder:!m},b=null;return typeof o=="function"?b=o(c):o!=null?b=o:p&&!h?b=s:Array.isArray(c)?b=z4(c,d,f):b=iI(c,d,f),oe("span",t,{state:x,ref:[n,u.context.valueRef],props:[{children:b},l],stateAttributesMapping:pae})});var nH=k(A(),1);var aH=nH.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,u={open:Nt().useState("open")};return oe("span",t,{state:u,ref:n,props:[{"aria-hidden":!0,children:"\u25BC"},s],stateAttributesMapping:uv})});var rH=k(A(),1);var oH=k(Z(),1),sH=rH.forwardRef(function(t,n){let a=Nt(),r=a.useState("mounted"),o=a.useState("forceMount");return r||o?(0,oH.jsx)(ZL,{ref:n,...t}):null});var iH=k(A(),1);var gae={...Qs,...Ya},lH=iH.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,i=Nt(),l=i.useState("open"),u=i.useState("mounted"),c=i.useState("transitionStatus");return oe("div",t,{state:{open:l,transitionStatus:c},ref:n,props:[{role:"presentation",hidden:!u,style:{userSelect:"none",WebkitUserSelect:"none"}},s],stateAttributesMapping:gae})});var Zr=k(A(),1);var nw=k(A(),1),lI=nw.createContext(void 0);function Xl(){let e=nw.useContext(lI);if(!e)throw new Error(Ve(59));return e}var uH=k(A(),1),cH=k(Z(),1),dH=uH.forwardRef(function(t,n){let{cutout:a,...r}=t,o;if(a){let s=a.getBoundingClientRect();o=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${s.left}px ${s.top}px,${s.left}px ${s.bottom}px,${s.right}px ${s.bottom}px,${s.right}px ${s.top}px,${s.left}px ${s.top}px)`}return(0,cH.jsx)("div",{ref:n,role:"presentation","data-base-ui-inert":"",...r,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:o}})});function gm(e,t){e&&Object.assign(e.style,t)}var aw={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var bH=k(A(),1);var fH={},mH={},pH="";function rw(e,t){return sc(e)?e:t}function gH(e,t,n){return/hidden|clip/.test(e.getComputedStyle(rw(t,n)).overflowY)}function hae(e){if(typeof document>"u")return!1;let t=Se(e);return qe(t).innerWidth-t.documentElement.clientWidth>0}function bae(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let n=Se(e),a=n.documentElement,r=n.body,o=rw(a,r),s=o.style.overflowY,i=a.style.scrollbarGutter;a.style.scrollbarGutter="stable",o.style.overflowY="scroll";let l=o.offsetWidth;o.style.overflowY="hidden";let u=o.offsetWidth;return o.style.overflowY=s,a.style.scrollbarGutter=i,l===u}function yae(e){let t=Se(e),n=t.documentElement,a=t.body,r=rw(n,a),o={overflowY:r.style.overflowY,overflowX:r.style.overflowX};return Object.assign(r.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(r.style,o)}}function xae(e){let t=Se(e),n=t.documentElement,a=t.body,r=qe(n),o=0,s=0,i=!1,l=qr.create();if(it.engine.webkit&&(r.visualViewport?.scale??1)!==1)return()=>{};function u(){let m=r.getComputedStyle(n),p=r.getComputedStyle(a),b=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";o=n.scrollTop,s=n.scrollLeft,fH={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},pH=n.style.scrollBehavior,mH={position:a.style.position,height:a.style.height,width:a.style.width,boxSizing:a.style.boxSizing,overflowY:a.style.overflowY,overflowX:a.style.overflowX,scrollBehavior:a.style.scrollBehavior};let g=n.scrollHeight>n.clientHeight,y=n.scrollWidth>n.clientWidth,v=m.overflowY==="scroll"||p.overflowY==="scroll",C=m.overflowX==="scroll"||p.overflowX==="scroll",S=Math.max(0,r.innerWidth-a.clientWidth),_=Math.max(0,r.innerHeight-a.clientHeight),w=parseFloat(p.marginTop)+parseFloat(p.marginBottom),R=parseFloat(p.marginLeft)+parseFloat(p.marginRight),$=rw(n,a);if(i=bae(e),i){n.style.scrollbarGutter=b,$.style.overflowY="hidden",$.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:b,overflowY:"hidden",overflowX:"hidden"}),(g||v)&&(n.style.overflowY="scroll"),(y||C)&&(n.style.overflowX="scroll"),Object.assign(a.style,{position:"relative",height:w||_?`calc(100dvh - ${w+_}px)`:"100dvh",width:R||S?`calc(100vw - ${R+S}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),a.scrollTop=o,a.scrollLeft=s,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function c(){Object.assign(n.style,fH),Object.assign(a.style,mH),i||(n.scrollTop=o,n.scrollLeft=s,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=pH)}function d(){c(),l.request(u)}u();let f=ke(r,"resize",d);return()=>{l.cancel(),c(),typeof r.removeEventListener=="function"&&f()}}var uI=class{lockCount=0;restore=null;timeoutLock=da.create();timeoutUnlock=da.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;let n=Se(t),a=n.documentElement,r=n.body,o=qe(a);if(gH(o,a,r)){let i=new o.MutationObserver(()=>{gH(o,a,r)||(i.disconnect(),this.restore=null,this.lock(t))}),l={attributes:!0};i.observe(a,l),i.observe(r,l),this.restore=()=>i.disconnect();return}let s=it.os.ios||!hae(t);this.restore=s?yae(t):xae(t)}},vae=new uI;function hH(e=!0,t=null){U(()=>{if(e)return vae.acquire(t)},[e,t])}var Cae=20;function yH(e,t,n,a){let[r,o]=bH.useState(!1);U(()=>{if(!e||!t||n==null){o(!1);return}let s=Se(n).documentElement.clientWidth,i=n.offsetWidth;o(s>0&&i>0&&i>=s-Cae)},[e,t,n]),hH(e&&(!t||r),a)}var Vh=k(Z(),1),wae={position:"fixed"},xH=Zr.forwardRef(function(t,n){let{anchor:a,className:r,render:o,positionMethod:s,side:i,align:l,sideOffset:u,alignOffset:c,collisionBoundary:d="clipping-ancestors",collisionPadding:f,arrowPadding:m,sticky:p,disableAnchorTracking:h,alignItemWithTrigger:x=!0,collisionAvoidance:b=M3,style:g,...y}=t,v=Nt(),C=JC(),S=v.useState("open"),_=v.useState("mounted"),w=v.useState("modal"),R=v.useState("value"),$=v.useState("openMethod"),j=v.useState("positionerElement"),M=v.useState("triggerElement"),I=v.useState("isItemEqualToValue"),N=v.useState("transitionStatus"),E=Zr.useRef(null),B=Zr.useRef(null),[z,P]=Zr.useState(x),D=_&&z&&$!=="touch";!_&&z!==x&&P(x),Zr.useImperativeHandle(v.context.alignItemWithTriggerActiveRef,()=>D),yH((D||w)&&S,$==="touch",j,M);let L=eC({anchor:a,floatingRootContext:C,positionMethod:s,mounted:_,side:i,sideOffset:u,align:l,alignOffset:c,arrowPadding:m,collisionBoundary:d,collisionPadding:f,sticky:p,disableAnchorTracking:h??D,collisionAvoidance:b,keepMounted:!0}),V=D?"none":L.side,q=D?wae:L.positionerStyles,G={open:S,side:V,align:L.align,anchorHidden:L.anchorHidden};U(()=>{v.set("popupSide",L.side)},[v,L.side]);let T=v.useStateSetter("positionerElement"),F=tC(t,G,{styles:q,transitionStatus:N,props:y,refs:[n,T],hidden:!_,inert:!S}),O=Zr.useRef(0),Q=X(ee=>{if(v.context.valuesRef.current.length===0)return;let le=O.current;O.current=ee.size;let ce=ve(se.none);if(le!==0&&!v.state.multiple&&R!==null&&Oh(v.context.valuesRef.current,R,I)===-1){let te=v.context.initialValueRef.current,be=te!=null&&Oh(v.context.valuesRef.current,te,I)!==-1?te:null;v.context.setValue(be,ce),be===null&&(v.set("selectedIndex",null),v.context.selectedItemTextRef.current=null)}if(le!==0&&v.state.multiple&&Array.isArray(R)){let J=R.filter(te=>Oh(v.context.valuesRef.current,te,I)!==-1);J.length!==R.length&&(v.context.setValue(J,ce),J.length===0&&(v.set("selectedIndex",null),v.context.selectedItemTextRef.current=null))}if(S&&D){v.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let J={height:""};gm(j,J),gm(v.context.popupRef.current,J)}}),W=Zr.useMemo(()=>({...L,side:V,alignItemWithTriggerActive:D,setControlledAlignItemWithTrigger:P,scrollUpArrowRef:E,scrollDownArrowRef:B}),[L,V,D,P]);return(0,Vh.jsx)(im,{elementsRef:v.context.listRef,labelsRef:v.context.labelsRef,onMapChange:Q,children:(0,Vh.jsxs)(lI.Provider,{value:W,children:[_&&w&&(0,Vh.jsx)(dH,{inert:Kf(!S),cutout:M}),F]})})});var Kr=k(A(),1);var ow=k(A(),1),_ae=ow.createContext(void 0);function vH(e){let t=ow.useContext(_ae);if(t===void 0&&!e)throw new Error(Ve(69));return t}var cI="--transform-origin";var lw=k(Z(),1),kae={...Qs,...Ya},SH=Kr.forwardRef(function(t,n){let{render:a,className:r,style:o,finalFocus:s,...i}=t,l=Nt(),{multiple:u,readOnly:c,highlightItemOnHover:d}=Gl(),f=JC(),{side:m,align:p,alignItemWithTriggerActive:h,isPositioned:x,setControlledAlignItemWithTrigger:b}=Xl(),g=vH(!0)!=null,y=Ja(),{nonce:v,disableStyleElements:C}=om(),S=l.useState("id"),_=l.useState("open"),w=l.useState("openMethod"),R=l.useState("mounted"),$=l.useState("popupProps"),j=l.useState("transitionStatus"),M=l.useState("triggerElement"),I=l.useState("positionerElement"),N=l.useState("listElement"),E=Kr.useRef(!1),B=Kr.useRef(!1),z=Kr.useRef({}),P=Ia(),D=X(G=>{if(!I||!l.context.popupRef.current||!B.current)return;let T=I.style.top==="0px",F=I.style.bottom==="0px";if(E.current||!h||!T&&!F){l.context.handleScrollArrowVisibility(G);return}let O=wH(I),Q=zh(I.getBoundingClientRect().height,"y",O),W=Se(I),ee=qe(I),le=ee.getComputedStyle(I),ce=parseFloat(le.marginTop),J=parseFloat(le.marginBottom),te=CH(ee.getComputedStyle(l.context.popupRef.current)),pe=Math.min(W.documentElement.clientHeight-ce-J,te),be=G.scrollTop,je=sw(G),ge=null,$e=Ae=>{I.style.height=`${Ae}px`},ue=T?je-be:be,Le=Math.min(Q+ue,pe);if(ue<=yr){let Ae=Xr(ue,0,pe-Q);Ae>0&&$e(Q+Ae),G.scrollTop=T?je:0,pe-(Q+Ae)<=yr&&(E.current=!0),l.context.handleScrollArrowVisibility(G);return}if(pe-Le>yr)ge=T?1/0:0;else if(F&&be<je){let Ae=Q+ue-pe;ge=be-(ue-Ae)}let Oe=Math.ceil(Le);if(Oe!==0&&$e(Oe),ge!=null){let Ae=Xr(ge,0,sw(G));Math.abs(G.scrollTop-Ae)>yr&&(G.scrollTop=Ae)}Oe>=pe-yr&&(E.current=!0),l.context.handleScrollArrowVisibility(G)});Kr.useImperativeHandle(l.context.scrollHandlerRef,()=>D,[D]),ga({open:_,ref:l.context.popupRef,onComplete(){_&&l.context.onOpenChangeComplete(!0)}});let L={open:_,transitionStatus:j,side:m,align:p};U(()=>{!I||!l.context.popupRef.current||Object.keys(z.current).length||(z.current={top:I.style.top||"0",left:I.style.left||"0",right:I.style.right,height:I.style.height,bottom:I.style.bottom,minHeight:I.style.minHeight,maxHeight:I.style.maxHeight,marginTop:I.style.marginTop,marginBottom:I.style.marginBottom})},[l,I]),U(()=>{_||h||(B.current=!1,E.current=!1,gm(I,z.current))},[_,h,I]),U(()=>{let G=l.context.popupRef.current;if(!_||!M||!I||!G||h&&!x||l.state.transitionStatus==="ending")return;if(B.current=!0,G.style.removeProperty(cI),!h){P.request(()=>l.context.handleScrollArrowVisibility(N||G));return}let T=$ae(G);try{let F=l.context.selectedItemTextRef.current;F?.isConnected||(F=!l.select("hasSelectedValue")&&l.context.firstItemTextRef.current?.isConnected?l.context.firstItemTextRef.current:null);let O=l.context.valueRef.current,Q=qe(I),W=Q.getComputedStyle(I),ee=Q.getComputedStyle(G),le=Se(M),ce=wH(M),J=iw(M.getBoundingClientRect(),ce),te=iw(I.getBoundingClientRect(),ce),pe=J.height,be=N||G,je=be.scrollHeight,ge=parseFloat(ee.borderBottomWidth),$e=parseFloat(W.marginTop)||10,ue=parseFloat(W.marginBottom)||10,Le=parseFloat(W.minHeight)||100,Oe=CH(ee),Ae=5,gt=5,re=20,fe=le.documentElement.clientHeight-$e-ue,Y=le.documentElement.clientWidth,H=fe-J.bottom+pe,ie,Be=y==="rtl"?J.right-te.width:J.left,Ut=0;if(F&&O){let Zt=iw(O.getBoundingClientRect(),ce);ie=iw(F.getBoundingClientRect(),ce),Be=te.left+(y==="rtl"?Zt.right-ie.right:Zt.left-ie.left);let Te=Zt.top-J.top+Zt.height/2;Ut=ie.top-te.top+ie.height/2-Te}let fn=H+Ut+ue+ge,Ot=Math.min(fe,fn),jt=fe-$e-ue,zn=fn-Ot,qn=Y-gt;I.style.left=`${Xr(Be,Ae,qn-te.width)}px`,I.style.height=`${Ot}px`,I.style.maxHeight="none",I.style.marginTop=`${$e}px`,I.style.marginBottom=`${ue}px`,G.style.height="100%";let mn=sw(be),na=zn>=mn-yr;na&&(Ot=Math.min(fe,te.height)-(zn-mn));let Ta=J.top<re||J.bottom>fe-re||Math.ceil(Ot)+yr<Math.min(je,Le),xr=(Q.visualViewport?.scale??1)!==1&&it.engine.webkit;if(Ta||xr){gm(I,z.current),b(!1);return}let En=Math.max(Le,Ot);if(na){let Zt=Math.max(0,fe-fn);I.style.top=te.height>=jt?"0":`${Zt}px`,I.style.height=`${Ot}px`,be.scrollTop=sw(be)}else I.style.bottom="0",be.scrollTop=zn;if(ie){let Zt=te.top,Te=te.height,Ft=ie.top+ie.height/2,rt=Xr(Te>0?(Ft-Zt)/Te*100:50,0,100);G.style.setProperty(cI,`50% ${rt}%`)}(En===fe||Ot>=Oe)&&(E.current=!0),l.context.handleScrollArrowVisibility(be),d&&l.state.selectedIndex===null&&l.state.activeIndex===null&&l.context.listRef.current[0]!=null&&l.set("activeIndex",0)}finally{T()}},[l,_,I,M,h,b,P,N,d,y,x]),Kr.useEffect(()=>{if(!h||!I||!_)return;let G=qe(I);function T(F){l.context.setOpen(!1,ve(se.windowResize,F))}return ke(G,"resize",T)},[l,h,I,_]);let V={...N?{role:"presentation"}:{role:"listbox","aria-multiselectable":u||void 0,"aria-readonly":c||void 0,id:`${S}-list`},onKeyDown(G){g&&AC.has(G.key)&&G.stopPropagation()},onScroll(G){N||D(G.currentTarget)},...h&&{style:N?{height:"100%"}:aw},className:!N&&h?ai.className:void 0},q=oe("div",t,{ref:[n,l.context.popupRef],state:L,stateAttributesMapping:kae,props:[$,V,Zf(j),i]});return(0,lw.jsxs)(Kr.Fragment,{children:[!C&&ai.getElement(v),(0,lw.jsx)(QL,{context:f,modal:!1,disabled:!R,openInteractionType:w,returnFocus:s,restoreFocus:!0,children:q})]})});function CH(e){let t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function sw(e){return sm(e.scrollHeight,e.clientHeight)}function wH(e){return $h.getScale(e)}function zh(e,t,n){return e/n[t]}function iw(e,t){return Js({x:zh(e.x,"x",t),y:zh(e.y,"y",t),width:zh(e.width,"x",t),height:zh(e.height,"y",t)})}var _H=[["transform","none"],["scale","1"],["translate","0 0"]];function $ae(e){let{style:t}=e,n={};for(let[a,r]of _H)n[a]=t.getPropertyValue(a),t.setProperty(a,r,"important");return()=>{for(let[a]of _H){let r=n[a];r?t.setProperty(a,r):t.removeProperty(a)}}}var kH=k(A(),1);var $H=kH.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,i=Nt(),{multiple:l,readOnly:u}=Gl(),{alignItemWithTriggerActive:c}=Xl(),d=i.useState("hasScrollArrows"),f=i.useState("openMethod"),p={id:`${i.useState("id")}-list`,role:"listbox","aria-multiselectable":l||void 0,"aria-readonly":u||void 0,onScroll(x){i.context.scrollHandlerRef.current?.(x.currentTarget)},...c&&{style:aw},className:d&&f!=="touch"?ai.className:void 0},h=i.useStateSetter("listElement");return oe("div",t,{ref:[n,h],props:[p,s]})});var xo=k(A(),1);var uw=k(A(),1),dI=uw.createContext(void 0);function qh(){let e=uw.useContext(dI);if(!e)throw new Error(Ve(57));return e}var LH=k(Z(),1),RH=xo.memo(xo.forwardRef(function(t,n){let{render:a,className:r,style:o,value:s=null,label:i,disabled:l=!1,nativeButton:u=!1,...c}=t,d=xo.useRef(null),f=lm({guess:!0,label:i,textRef:d}),m=Nt(),{itemProps:p,multiple:h,disabled:x,readOnly:b}=Gl(),g=x||l,y=m.useState("isActive",f.index),v=m.useState("open"),C=m.useState("isSelected",s),S=m.useState("isSelectedByFocus",f.index),_=m.useState("isItemEqualToValue"),w=f.index,R=xo.useRef(null);U(()=>{let L=m.context.valuesRef.current;return L[w]=s,()=>{delete L[w]}},[w,s,m]),U(()=>{let L=m.state.value,V=m.state.selectedIndex,q=V,G;h&&Array.isArray(L)?(q=D4(w,s,m.context.valuesRef.current,L,_,V),G=q===w,w===V&&!G&&(m.context.selectedItemTextRef.current=null)):(G=L!==void 0&&li(s,L,_),G&&(q=w)),m.set("selectedIndex",q),G&&d.current&&(m.context.selectedItemTextRef.current=d.current)},[w,h,_,m,s]);let $=xo.useRef("mouse"),j=xo.useRef(!1),{getButtonProps:M,buttonRef:I}=Os({disabled:g,focusableWhenDisabled:!0,native:u,composite:!0}),N={disabled:g,selected:C,highlighted:y};function E(L){if(x||b)return;let V=m.state.value;if(h){let q=Array.isArray(V)?V:[],G=C?N4(q,s,_):[...q,s];m.context.setValue(G,ve(se.itemPress,L))}else m.context.setValue(s,ve(se.itemPress,L)),m.context.setOpen(!1,ve(se.itemPress,L))}function B(){m.context.selectionRef.current.dragY=0}let z={role:"option","aria-selected":C,tabIndex:v&&y?0:-1,onKeyDown(L){m.set("activeIndex",w),L.key===" "&&m.context.typingRef.current&&L.preventDefault()},onClick(L){let V=$.current!=="touch",q=L.nativeEvent.pointerType,G=V&&Il(L.nativeEvent)&&(q!==void 0||y),T=V&&!G&&!j.current;j.current=!1,!(g||T)&&E(L.nativeEvent)},onPointerEnter(L){$.current=L.pointerType},onPointerMove(L){if(L.pointerType==="mouse"&&L.buttons===1){let V=m.context.selectionRef.current;V.dragY+=L.movementY,V.dragY**2>=64&&(V.allowUnselectedMouseUp=!0)}},onPointerDown(L){$.current=L.pointerType,j.current=!0,B()},onMouseUp(){if(B(),g||$.current==="touch"||j.current)return;let L=!m.context.selectionRef.current.allowSelectedMouseUp&&C,V=!m.context.selectionRef.current.allowUnselectedMouseUp&&!C;L||V||(j.current=!0,R.current?.click(),j.current=!1)}},P=oe("div",t,{ref:[I,n,f.ref,R],state:N,props:[p,z,c,M]}),D=xo.useMemo(()=>({selected:C,index:w,textRef:d,selectedByFocus:S}),[C,w,d,S]);return(0,LH.jsx)(dI.Provider,{value:D,children:P})}));var qc=k(A(),1);var IH=k(Z(),1),jH=qc.forwardRef(function(t,n){let{selected:a}=qh();return t.keepMounted||a?(0,IH.jsx)(Lae,{...t,ref:n}):null}),Lae=qc.memo(qc.forwardRef((e,t)=>{let{render:n,className:a,style:r,keepMounted:o,...s}=e,{selected:i}=qh(),l=qc.useRef(null),{transitionStatus:u,setMounted:c}=Qa(i),f=oe("span",e,{ref:[t,l],state:{selected:i,transitionStatus:u},props:[{"aria-hidden":!0,children:"\u2714\uFE0F"},s],stateAttributesMapping:Ya});return ga({batch:!0,enabled:!i,open:i,ref:l,onComplete(){i||c(!1)}}),f}));var hm=k(A(),1);var TH=hm.memo(hm.forwardRef(function(t,n){let{index:a,textRef:r,selectedByFocus:o}=qh(),s=Nt(),{render:i,className:l,style:u,...c}=t,d=hm.useCallback(m=>{m&&(a===0&&(s.context.firstItemTextRef.current=m),o&&(s.context.selectedItemTextRef.current=m))},[s,a,o]);return oe("div",t,{ref:[d,n,r],props:c})}));var EH=k(A(),1);var AH=EH.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,i=Nt(),{side:l,align:u,arrowRef:c,arrowStyles:d,arrowUncentered:f,alignItemWithTriggerActive:m}=Xl(),h={open:i.useState("open"),side:l,align:u,uncentered:f},x=oe("div",t,{state:h,ref:[c,n],props:[{style:d,"aria-hidden":!0},s],stateAttributesMapping:cv});return m?null:x});var MH=k(A(),1);var PH=k(A(),1);var cw=PH.forwardRef(function(t,n){let{render:a,className:r,style:o,direction:s,keepMounted:i,...l}=t,u=s==="up",c=Nt(),{side:d,scrollDownArrowRef:f,scrollUpArrowRef:m}=Xl(),p=u?"scrollUpArrowVisible":"scrollDownArrowVisible",h=c.useState(p),x=c.useState("openMethod"),b=h&&x!=="touch",g=nt(),y=u?m:f,{mounted:v,transitionStatus:C,setMounted:S}=Qa(b);U(()=>(c.context.scrollArrowsMountedCountRef.current+=1,c.set("hasScrollArrows",!0),()=>{c.context.scrollArrowsMountedCountRef.current=Math.max(0,c.context.scrollArrowsMountedCountRef.current-1),c.context.scrollArrowsMountedCountRef.current===0&&c.set("hasScrollArrows",!1)}),[c]),ga({open:b,ref:y,onComplete(){b||S(!1)}});let R=oe("div",t,{ref:[n,y],state:{direction:s,visible:b,side:d,transitionStatus:C},props:[{"aria-hidden":!0,children:u?"\u25B2":"\u25BC",style:{position:"absolute"},onMouseMove(j){if(j.movementX===0&&j.movementY===0||g.isStarted())return;c.set("activeIndex",null);function M(){let I=c.state.listElement??c.context.popupRef.current;if(!I)return;c.set("activeIndex",null),c.context.handleScrollArrowVisibility(I);let N=sm(I.scrollHeight,I.clientHeight),E=ri(I.scrollTop,N),B=E===(u?0:N),z=c.context.listRef.current;if(E!==I.scrollTop&&(I.scrollTop=E),B){g.clear();return}if(z.length>0){let P=y.current?.offsetHeight||0;I.scrollTop=Rae(z,u,E,I.clientHeight,P,N)}g.start(40,M)}g.start(40,M)},onMouseLeave(){g.clear()}},l],stateAttributesMapping:Ya});return v||i?R:null});function Rae(e,t,n,a,r,o){if(t){let c=0,d=n+r-yr;for(let p=0;p<e.length;p+=1){let h=e[p];if(h&&h.offsetTop>=d){c=p;break}}let f=Math.max(0,c-1),m=e[f];return f<c&&m?ri(m.offsetTop-r,o):0}let s=e.length-1,i=n+a-r+yr;for(let c=0;c<e.length;c+=1){let d=e[c];if(d&&d.offsetTop+d.offsetHeight>i){s=Math.max(0,c-1);break}}let l=Math.min(e.length-1,s+1),u=e[l];return l>s&&u?ri(u.offsetTop+u.offsetHeight-a+r,o):o}var DH=k(Z(),1),NH=MH.forwardRef(function(t,n){return(0,DH.jsx)(cw,{...t,ref:n,direction:"down"})});var OH=k(A(),1);var BH=k(Z(),1),FH=OH.forwardRef(function(t,n){return(0,BH.jsx)(cw,{...t,ref:n,direction:"up"})});var bm=k(A(),1);var dw=k(A(),1),fI=dw.createContext(void 0);function VH(){let e=dw.useContext(fI);if(e===void 0)throw new Error(Ve(56));return e}var zH=k(Z(),1),qH=bm.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,[i,l]=bm.useState(),u=bm.useMemo(()=>({labelId:i,setLabelId:l}),[i,l]),c=oe("div",t,{ref:n,props:[{role:"group","aria-labelledby":i},s]});return(0,zH.jsx)(fI.Provider,{value:u,children:c})});var HH=k(A(),1);var UH=HH.forwardRef(function(t,n){let{render:a,className:r,style:o,id:s,...i}=t,{setLabelId:l}=VH(),u=Cn(s);return U(()=>(l(u),()=>{l(d=>d===u?void 0:d)}),[u,l]),oe("div",t,{ref:n,props:[{id:u,"aria-hidden":!0},i]})});var GH=k(A(),1);var WH=GH.forwardRef(function(t,n){let{className:a,render:r,orientation:o="horizontal",style:s,...i}=t;return oe("div",t,{state:{orientation:o},ref:n,props:[{role:"presentation"},i]})});var XH=WH;var dn=k(Z(),1),ym=ya.Root;function xm({className:e,...t}){return(0,dn.jsx)(ya.Value,{"data-slot":"select-value",className:ne("flex flex-1 text-left",e),...t})}function vm({className:e,size:t="default",children:n,...a}){return(0,dn.jsxs)(ya.Trigger,{"data-slot":"select-trigger","data-size":t,className:ne("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a,children:[n,(0,dn.jsx)(ya.Icon,{render:(0,dn.jsx)(ia,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function Cm({className:e,children:t,side:n="bottom",sideOffset:a=4,align:r="center",alignOffset:o=0,alignItemWithTrigger:s=!0,...i}){return(0,dn.jsx)(ya.Portal,{children:(0,dn.jsx)(ya.Positioner,{side:n,sideOffset:a,align:r,alignOffset:o,alignItemWithTrigger:s,className:"isolate z-50",children:(0,dn.jsxs)(ya.Popup,{"data-slot":"select-content","data-align-trigger":s,className:ne("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:[(0,dn.jsx)(Iae,{}),(0,dn.jsx)(ya.List,{children:t}),(0,dn.jsx)(jae,{})]})})})}function Yl({className:e,children:t,...n}){return(0,dn.jsxs)(ya.Item,{"data-slot":"select-item",className:ne("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[(0,dn.jsx)(ya.ItemText,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:t}),(0,dn.jsx)(ya.ItemIndicator,{render:(0,dn.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,dn.jsx)(Sa,{className:"pointer-events-none"})})]})}function Iae({className:e,...t}){return(0,dn.jsx)(ya.ScrollUpArrow,{"data-slot":"select-scroll-up-button",className:ne("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,dn.jsx)(jp,{})})}function jae({className:e,...t}){return(0,dn.jsx)(ya.ScrollDownArrow,{"data-slot":"select-scroll-down-button",className:ne("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,dn.jsx)(ia,{})})}var pt=k(Z(),1),YH={all:"Any state",done:"Done",problem:"Needs attention"},ZH={0:"All time",1:"Last 24 hours",7:"Last 7 days",30:"Last 30 days"},Tae=e=>(e.split("/").pop()??e).replace(/-(contributor-)?free$/,"").replace(/-\d+\.\d+$/,""),Eae=e=>({id:e.id,state:e.state,kind:e.kind,worker:e.model?`${e.backend} (${Tae(e.model)})`:e.backend,task:e.task,group:e.group,startedAt:e.startedAt,time:e.seconds!=null?Rs(e.seconds):"",steps:e.steps??0,tokens:e.tokens,saved:e.saved,verdict:e.verdict,audit:e.audit,changes:e.files||void 0,applied:e.applied||void 0,verifyFailed:e.verifyFailed,note:""});function KH(){let[e,t]=(0,er.useState)(""),[n,a]=(0,er.useState)(""),[r,o]=(0,er.useState)("all"),[s,i]=(0,er.useState)("all"),[l,u]=(0,er.useState)("0"),[c,d]=(0,er.useState)([]),[f,m]=(0,er.useState)(),[p,h]=(0,er.useState)(!1),[x,b]=(0,er.useState)();(0,er.useEffect)(()=>{$n.stats(0).then(b).catch(()=>{})},[]),(0,er.useEffect)(()=>{let C=setTimeout(()=>a(e),250);return()=>clearTimeout(C)},[e]);let g={q:n,state:r==="all"?void 0:r,model:s==="all"?void 0:s,days:Number(l)||void 0};(0,er.useEffect)(()=>{let C=!0;return h(!0),$n.history({...g,limit:30}).then(S=>{C&&(d(S.rows),m(S.total),h(!1))}).catch(()=>C&&h(!1)),()=>{C=!1}},[n,r,s,l]);let y=async()=>{let C=await $n.history({...g,limit:30,before:c.at(-1)?.id});d(S=>[...S,...C.rows])},v=[...new Set((x?.byWorker??[]).map(C=>C.model).filter(Boolean))];return(0,pt.jsxs)("div",{className:"space-y-4",children:[(0,pt.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,pt.jsxs)("div",{className:"relative min-w-56 flex-1",children:[(0,pt.jsx)(so,{className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),(0,pt.jsx)(QC,{value:e,onChange:C=>t(C.target.value),placeholder:"Search tasks, answers and steps",className:"pl-8"})]}),(0,pt.jsxs)(ym,{value:r,onValueChange:C=>o(C??"all"),items:YH,children:[(0,pt.jsx)(vm,{className:"w-40",children:(0,pt.jsx)(xm,{})}),(0,pt.jsx)(Cm,{children:Object.entries(YH).map(([C,S])=>(0,pt.jsx)(Yl,{value:C,children:S},C))})]}),(0,pt.jsxs)(ym,{value:s,onValueChange:C=>i(C??"all"),items:{all:"Any model",...Object.fromEntries(v.map(C=>[C,C.split("/").pop()]))},children:[(0,pt.jsx)(vm,{className:"w-44",children:(0,pt.jsx)(xm,{})}),(0,pt.jsxs)(Cm,{children:[(0,pt.jsx)(Yl,{value:"all",children:"Any model"}),v.map(C=>(0,pt.jsx)(Yl,{value:C,children:C.split("/").pop()},C))]})]}),(0,pt.jsxs)(ym,{value:l,onValueChange:C=>u(C??"0"),items:ZH,children:[(0,pt.jsx)(vm,{className:"w-40",children:(0,pt.jsx)(xm,{})}),(0,pt.jsx)(Cm,{children:Object.entries(ZH).map(([C,S])=>(0,pt.jsx)(Yl,{value:C,children:S},C))})]})]}),(0,pt.jsxs)("div",{className:"space-y-2.5",children:[p&&!c.length&&[0,1,2,3].map(C=>(0,pt.jsx)(Zs,{className:"h-24 rounded-xl"},C)),c.map((C,S)=>(0,pt.jsx)(zl,{run:Eae(C),index:S,when:!0},C.id)),!p&&!c.length&&(0,pt.jsx)("div",{className:"py-16 text-center text-muted-foreground",children:"No runs match."})]}),(0,pt.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,pt.jsx)("span",{children:f!=null?`${c.length} of ${f} runs`:""}),f!=null&&c.length<f&&(0,pt.jsx)(on,{variant:"outline",onClick:()=>void y(),children:"Load more"})]})]})}var ls=k(A(),1);var Zl=k(A(),1);var fw=e=>e.state==="running"||e.state==="queued",mI=e=>e.state==="failed"||e.state==="timeout"||e.state==="stopped"||!!e.verifyFailed;function QH(e){let t=new Map;for(let r of e)r.group&&t.set(r.group,(t.get(r.group)??0)+1);let n=[],a=new Map;for(let r of e){if(!r.group||(t.get(r.group)??0)<2){n.push({kind:"run",run:r});continue}let o=a.get(r.group);o||(o={kind:"group",name:r.group,runs:[]},a.set(r.group,o),n.push(o)),o.runs.push(r)}return n}function JH(e){let t=e.filter(fw).length,n=e.filter(o=>!fw(o)&&mI(o)).length,a=e.filter(o=>o.state==="done"&&!o.verifyFailed).length,r=new Map;for(let o of e)r.set(o.worker,(r.get(o.worker)??0)+1);return{workers:[...r].sort((o,s)=>s[1]-o[1]),total:e.length,running:t,problem:n,done:a,saved:e.reduce((o,s)=>o+(s.saved??0),0),tokens:e.reduce((o,s)=>o+(s.tokens??0),0),startedAt:e.reduce((o,s)=>Date.parse(s.startedAt)<Date.parse(o)?s.startedAt:o,e[0]?.startedAt??"")}}var Re=k(Z(),1);function Aae({name:e,running:t,discardable:n,problem:a}){let[r,o]=(0,Zl.useState)(),[s,i]=(0,Zl.useState)(!1),[l,u]=(0,Zl.useState)(),[c,d]=(0,Zl.useState)(),[f,m]=(0,Zl.useState)(),[p,h]=(0,Zl.useState)(!1);if(!t&&!n&&!a)return null;let x=async y=>{i(!0),u(void 0);try{u({text:await(y==="stop"?$n.stopGroup(e):$n.discardGroup(e))}),o(void 0)}catch(v){u({text:v.message,bad:!0})}finally{i(!1)}},b=async()=>{try{let y=await $n.retryGroup(e);d(y.commands),m(y.shell)}catch(y){u({text:y.message,bad:!0})}},g=r==="stop"?`Stop the ${t} run${t===1?"":"s"} still at work?`:`Throw away ${n} isolated cop${n===1?"y":"ies"}? The patch files stay.`;return(0,Re.jsxs)("div",{className:"space-y-2",children:[(0,Re.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:r?(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)("span",{className:"text-[13px] text-muted-foreground",children:g}),(0,Re.jsx)(on,{variant:"destructive",size:"sm",disabled:s,onClick:()=>void x(r),children:s?"\u2026":r==="stop"?"Yes, stop all":"Yes, discard all"}),(0,Re.jsx)(on,{variant:"ghost",size:"sm",disabled:s,onClick:()=>o(void 0),children:"Cancel"})]}):(0,Re.jsxs)(Re.Fragment,{children:[t>0&&(0,Re.jsxs)(on,{variant:"outline",size:"sm",onClick:()=>o("stop"),children:["Stop all (",t,")"]}),n>0&&(0,Re.jsxs)(on,{variant:"outline",size:"sm",onClick:()=>o("discard"),children:["Discard all (",n,")"]}),a>0&&(0,Re.jsxs)(on,{variant:"outline",size:"sm",onClick:()=>void b(),children:["Retry command (",a,")"]})]})}),l&&(0,Re.jsx)("p",{className:l.bad?"text-[13px] text-destructive":"text-[13px] text-muted-foreground",children:l.text}),c&&(c.length?(0,Re.jsxs)("div",{className:"space-y-1.5",children:[(0,Re.jsxs)("p",{className:"text-[13px] text-muted-foreground",children:[f==="powershell"?"Run in PowerShell":"Run in a terminal"," (or ask your agent) to start the failed runs again in this crew:"]}),(0,Re.jsx)("pre",{className:"overflow-x-auto rounded-md bg-muted p-2.5 font-mono text-xs",children:c.join(`
|
|
177
177
|
`)}),(0,Re.jsxs)(on,{variant:"ghost",size:"sm",onClick:()=>{navigator.clipboard?.writeText(c.join(`
|
|
178
178
|
`)),h(!0),setTimeout(()=>h(!1),1400)},children:[p?(0,Re.jsx)(Sa,{}):(0,Re.jsx)(oo,{}),p?"Copied":"Copy"]})]}):(0,Re.jsx)("p",{className:"text-[13px] text-muted-foreground",children:"Nothing to retry: the runs that need attention are audits, reviews or follow-ups of another run."}))]})}function e5({name:e,runs:t,index:n}){let a=JH(t),[r,o]=(0,Zl.useState)(void 0),s=r??a.running>0,i=a.total-a.running;return(0,Re.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2 fill-mode-both",style:{animationDelay:`${Math.min(n,8)*45}ms`,animationDuration:"500ms"},children:(0,Re.jsxs)("div",{className:ne("rounded-xl border transition-colors duration-300",a.running>0&&"border-info/30"),children:[(0,Re.jsxs)("button",{type:"button","aria-expanded":s,onClick:()=>o(!s),className:"grid w-full grid-cols-[1fr_auto] items-start gap-3.5 p-4 text-left",children:[(0,Re.jsxs)("div",{className:"min-w-0 space-y-2",children:[(0,Re.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,Re.jsx)("span",{className:"text-[15px] font-medium leading-snug",children:e}),(0,Re.jsxs)(Qi,{children:[a.total," runs"]}),a.running>0&&(0,Re.jsxs)(Qi,{children:[a.running," running"]}),a.done>0&&(0,Re.jsxs)(Qi,{tone:"good",children:[a.done," done"]}),a.problem>0&&(0,Re.jsxs)("span",{className:"rounded-md border border-destructive/30 bg-destructive/10 px-1.5 py-0.5 text-xs text-destructive",children:[a.problem," need attention"]})]}),(0,Re.jsx)("div",{className:"flex flex-wrap items-center gap-1.5",children:a.workers.map(([l,u])=>(0,Re.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Re.jsx)(Xd,{worker:l}),u>1&&(0,Re.jsxs)("span",{className:"text-xs text-muted-foreground",children:["\xD7",u]})]},l))}),(0,Re.jsxs)("div",{className:"flex h-[3px] overflow-hidden rounded-full bg-muted",role:"progressbar","aria-valuemin":0,"aria-valuemax":a.total,"aria-valuenow":i,children:[(0,Re.jsx)("div",{className:"h-full bg-success transition-[width] duration-500",style:{width:`${a.done/a.total*100}%`}}),(0,Re.jsx)("div",{className:"h-full bg-destructive/70 transition-[width] duration-500",style:{width:`${(i-a.done)/a.total*100}%`}})]})]}),(0,Re.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Re.jsxs)("div",{className:"flex flex-col items-end gap-0.5 text-xs text-muted-foreground",children:[(0,Re.jsxs)("span",{children:[i,"/",a.total," finished"]}),a.tokens?(0,Re.jsxs)("span",{children:[Is(a.tokens)," tokens"]}):null,a.saved?(0,Re.jsxs)("span",{className:"text-success",children:["~",Tr(a.saved)]}):null,(0,Re.jsx)("span",{title:new Date(a.startedAt).toLocaleString(),children:Oy(a.startedAt)})]}),(0,Re.jsx)(ia,{className:ne("mt-0.5 size-4 text-muted-foreground transition-transform",s&&"rotate-180")})]})]}),s&&(0,Re.jsxs)("div",{className:"space-y-2.5 border-t p-3",children:[(0,Re.jsx)(Aae,{name:e,running:a.running,discardable:t.filter(l=>l.discardable).length,problem:a.problem}),t.map((l,u)=>(0,Re.jsx)(zl,{run:l,index:u},l.id))]})]})})}var Hc=k(Z(),1);function mw({children:e}){return(0,Hc.jsxs)(tm,{children:[(0,Hc.jsx)(nm,{render:(0,Hc.jsx)("span",{tabIndex:0,"aria-label":"What is this?",className:"inline-flex cursor-help items-center text-muted-foreground/70 outline-none hover:text-foreground focus-visible:text-foreground"}),children:(0,Hc.jsx)(Fp,{className:"size-3.5"})}),(0,Hc.jsx)(am,{className:"max-w-64 text-balance",children:e})]})}var gw=k(Z(),1);function pw({price:e}){return(0,gw.jsxs)(gw.Fragment,{children:["An estimate, not money back. It is what your main model (",e??"Claude Sonnet"," list prices) would have charged to read the tokens the workers read, minus what the workers cost and the cost of reading their reports."]})}var hw=k(Z(),1);function bw({value:e,onChange:t,options:n}){return(0,hw.jsx)(PC,{value:e,onValueChange:a=>t(a),children:(0,hw.jsx)(MC,{children:n.map(a=>(0,hw.jsx)(dm,{value:a.value,children:a.label},a.value))})})}var t5=k(Z(),1);function wm({className:e,size:t="default",...n}){return(0,t5.jsx)("div",{"data-slot":"card","data-size":t,className:ne("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...n})}var at=k(Z(),1);function pI(e,t=450){let[n,a]=(0,ls.useState)(e),[r,o]=(0,ls.useState)(e);if(r!==e){o(e);let s=performance.now(),i=n,l=u=>{let c=Math.min(1,(u-s)/t);a(i+(e-i)*(1-(1-c)**3)),c<1&&requestAnimationFrame(l)};requestAnimationFrame(l)}return n}function gI({label:e,value:t,tone:n,pulse:a,hint:r}){return(0,at.jsxs)(wm,{className:ne("relative gap-1 overflow-hidden px-5 py-4 animate-in fade-in slide-in-from-bottom-1 duration-500 fill-mode-both",a&&"border-info/30"),children:[(0,at.jsxs)("p",{className:"flex items-center gap-1.5 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[e,r&&(0,at.jsx)(mw,{children:r})]}),(0,at.jsxs)("p",{className:ne("flex items-center gap-2.5 text-3xl font-semibold tabular-nums tracking-tight",n),children:[a!==void 0&&(0,at.jsx)("span",{className:ne("size-2.5 rounded-full",a?"animate-ping-slow bg-info":"bg-muted-foreground/40")}),t]})]})}var Pae=(e,t)=>!t||`${e.task} ${e.worker} ${e.kind} ${e.note}`.toLowerCase().includes(t);function n5({focus:e}){let[t,n]=(0,ls.useState)(40),[a,r]=(0,ls.useState)("all"),[o,s]=(0,ls.useState)(""),[i,l]=(0,ls.useState)(""),{data:u}=Ll(()=>$n.state(t,o||void 0),2e3,[t,o]),c=pI(u?.running??0),d=pI(u?.saved??0),f=pI(u?.runs.filter(h=>h.state==="done").length??0),m=(0,ls.useMemo)(()=>(u?.runs??[]).filter(h=>Pae(h,i.trim().toLowerCase())&&(a==="all"||(a==="running"?fw(h):mI(h)))),[u,i,a]),p=(0,ls.useMemo)(()=>o?m.map(h=>({kind:"run",run:h})):QH(m),[m,o]);return(0,at.jsxs)("div",{className:"space-y-5",children:[(0,at.jsxs)("div",{className:"grid gap-3 sm:grid-cols-3",children:[(0,at.jsx)(gI,{label:"Running now",value:String(Math.round(c)),pulse:(u?.running??0)>0,tone:u?.running?"text-info":void 0}),(0,at.jsx)(gI,{label:"Finished",value:String(Math.round(f))}),(0,at.jsx)(gI,{label:"Est. saved this week",value:Tr(d),tone:"text-success",hint:(0,at.jsx)(pw,{price:u?.price})})]}),(0,at.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,at.jsxs)("div",{className:"relative min-w-48 flex-1",children:[(0,at.jsx)(so,{className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),(0,at.jsx)(QC,{value:i,onChange:h=>l(h.target.value),placeholder:"Filter these runs",className:"pl-8"})]}),(0,at.jsx)(bw,{value:a,onChange:r,options:[{value:"all",label:"All"},{value:"running",label:"Running"},{value:"problem",label:"Needs attention"}]}),u&&u.groups.length>0&&(0,at.jsxs)(ym,{value:o||"all",onValueChange:h=>s(h==="all"?"":h??""),items:{all:"All groups",...Object.fromEntries(u.groups.map(h=>[h,h]))},children:[(0,at.jsx)(vm,{className:"w-40",children:(0,at.jsx)(xm,{})}),(0,at.jsxs)(Cm,{children:[(0,at.jsx)(Yl,{value:"all",children:"All groups"}),u.groups.map(h=>(0,at.jsx)(Yl,{value:h,children:h},h))]})]})]}),(0,at.jsxs)("div",{className:"space-y-2.5",children:[!u&&[0,1,2].map(h=>(0,at.jsx)(Zs,{className:"h-24 rounded-xl"},h)),u&&m.length===0&&(0,at.jsxs)("div",{className:"flex flex-col items-center gap-2 py-16 text-center text-muted-foreground animate-in fade-in duration-500",children:[(0,at.jsx)("span",{className:"text-5xl animate-wave",children:"\u{1F3C1}"}),(0,at.jsx)("p",{children:u.runs.length?"Nothing matches this filter.":"All quiet. Workers appear here the moment they start."}),!u.runs.length&&(0,at.jsx)("code",{className:"rounded-lg border bg-card px-3 py-1.5 text-sm text-foreground",children:'pitroom run "your task"'})]}),p.map((h,x)=>h.kind==="group"?(0,at.jsx)(e5,{name:h.name,runs:h.runs,index:x},`g:${h.name}`):(0,at.jsx)(zl,{run:h.run,index:x},h.run.id)),u&&u.runs.length>=t&&(0,at.jsx)("div",{className:"flex justify-center pt-1",children:(0,at.jsx)(on,{variant:"outline",onClick:()=>n(h=>h+40),children:"Show older runs"})})]})]})}var _m={};aa(_m,{Indicator:()=>f5,Label:()=>h5,Root:()=>l5,Track:()=>c5,Value:()=>p5});var ui=k(A(),1);function hI(e){return Array.isArray(e)?e.map(t=>hI(t)).join(","):e==null?"":String(e)}var a5=new Map;function Mae(e,t){let n=JSON.stringify({locale:hI(e),options:t}),a=a5.get(n);if(a)return a;let r=new Intl.NumberFormat(e,t);return a5.set(n,r),r}function bI(e,t,n){return e==null?"":Mae(t,n).format(e)}function r5(e,t,n){return(e-t)*100/(n-t)}var yw=k(A(),1),yI=yw.createContext(void 0);function Kl(){let e=yw.useContext(yI);if(e===void 0)throw new Error(Ve(51));return e}var o5="data-complete",s5="data-indeterminate",i5="data-progressing";var us={status(e){return e==="progressing"?{[i5]:""}:e==="complete"?{[o5]:""}:e==="indeterminate"?{[s5]:""}:null}};var Hh=k(Z(),1),l5=ui.forwardRef(function(t,n){let{format:a,getAriaValueText:r,locale:o,max:s=100,min:i=0,value:l,render:u,className:c,children:d,style:f,...m}=t,[p,h]=ui.useState(),x="indeterminate",b=null,g=null,y="",v="indeterminate progress";if(l!=null&&Number.isFinite(l)){let R=r5(l,i,s);b=Xr(Number.isNaN(R)?0:R,0,100),g=Xr(l,i,s),x=g===s?"complete":"progressing",y=a?bI(g,o,a):bI(b/100,o,{style:"percent"}),v=y}let C=ui.useMemo(()=>({status:x}),[x]),S={"aria-labelledby":p,"aria-valuemax":s,"aria-valuemin":i,"aria-valuenow":g??void 0,"aria-valuetext":r?r(y,l):v,role:"progressbar",children:(0,Hh.jsxs)(ui.Fragment,{children:[d,(0,Hh.jsx)("span",{role:"presentation",style:Of,children:"x"})]})},_=ui.useMemo(()=>({formattedValue:y,percentageValue:b,setLabelId:h,state:C,value:l}),[y,b,h,C,l]),w=oe("div",t,{state:C,ref:n,props:[S,m],stateAttributesMapping:us});return(0,Hh.jsx)(yI.Provider,{value:_,children:w})});var u5=k(A(),1);var c5=u5.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,{state:i}=Kl();return oe("div",t,{state:i,ref:n,props:s,stateAttributesMapping:us})});var d5=k(A(),1);var f5=d5.forwardRef(function(t,n){let{render:a,className:r,style:o,...s}=t,{percentageValue:i,state:l}=Kl(),u=i==null?{}:{insetInlineStart:0,height:"inherit",width:`${i}%`};return oe("div",t,{state:l,ref:n,props:[{style:u},s],stateAttributesMapping:us})});var m5=k(A(),1);var p5=m5.forwardRef(function(t,n){let{className:a,render:r,children:o,style:s,...i}=t,{value:l,formattedValue:u,state:c}=Kl(),d=c.status==="indeterminate";return oe("span",t,{state:c,ref:n,props:[{"aria-hidden":!0,children:typeof o=="function"?o(d?"indeterminate":u,l):d?null:u},i],stateAttributesMapping:us})});var g5=k(A(),1);var h5=g5.forwardRef(function(t,n){let{render:a,className:r,style:o,id:s,...i}=t,{setLabelId:l,state:u}=Kl(),c=zC(s,l);return oe("span",t,{state:u,ref:n,props:[{id:c,role:"presentation"},i],stateAttributesMapping:us})});var Uc=k(Z(),1);function b5({className:e,children:t,value:n,...a}){return(0,Uc.jsxs)(_m.Root,{value:n,"data-slot":"progress",className:ne("flex flex-wrap gap-3",e),...a,children:[t,(0,Uc.jsx)(Nae,{children:(0,Uc.jsx)(Oae,{})})]})}function Nae({className:e,...t}){return(0,Uc.jsx)(_m.Track,{className:ne("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",e),"data-slot":"progress-track",...t})}function Oae({className:e,...t}){return(0,Uc.jsx)(_m.Indicator,{"data-slot":"progress-indicator",className:ne("h-full bg-primary transition-all",e),...t})}var Ql=k(Z(),1);function y5({className:e,...t}){return(0,Ql.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,Ql.jsx)("table",{"data-slot":"table",className:ne("w-full caption-bottom text-sm",e),...t})})}function x5({className:e,...t}){return(0,Ql.jsx)("thead",{"data-slot":"table-header",className:ne("[&_tr]:border-b",e),...t})}function v5({className:e,...t}){return(0,Ql.jsx)("tbody",{"data-slot":"table-body",className:ne("[&_tr:last-child]:border-0",e),...t})}function xI({className:e,...t}){return(0,Ql.jsx)("tr",{"data-slot":"table-row",className:ne("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function Jl({className:e,...t}){return(0,Ql.jsx)("th",{"data-slot":"table-head",className:ne("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...t})}function eu({className:e,...t}){return(0,Ql.jsx)("td",{"data-slot":"table-cell",className:ne("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...t})}var C5=k(A(),1),we=k(Z(),1);function Uh({label:e,value:t,sub:n,tone:a,hint:r}){return(0,we.jsxs)(wm,{className:"gap-1 px-5 py-4 animate-in fade-in slide-in-from-bottom-1 duration-500 fill-mode-both",children:[(0,we.jsxs)("p",{className:"flex items-center gap-1.5 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[e,r&&(0,we.jsx)(mw,{children:r})]}),(0,we.jsx)("p",{className:`text-3xl lg:text-2xl font-semibold tabular-nums tracking-tight ${a??""}`,children:t}),n&&(0,we.jsx)("p",{className:"text-xs text-muted-foreground",children:n})]})}function w5(){let[e,t]=(0,C5.useState)("30"),{data:n}=Ll(()=>$n.stats(Number(e)),15e3,[e]),a=n?.totals,r=Math.max(1,...(n?.byDay??[]).map(o=>o.runs));return(0,we.jsxs)("div",{className:"space-y-5",children:[(0,we.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,we.jsx)("h2",{className:"text-lg font-semibold tracking-tight",children:"Statistics"}),(0,we.jsx)(bw,{value:e,onChange:t,options:[{value:"7",label:"7 days"},{value:"30",label:"30 days"},{value:"90",label:"90 days"},{value:"0",label:"All"}]})]}),a?(0,we.jsxs)("div",{className:"grid gap-3 sm:grid-cols-3 lg:grid-cols-5",children:[(0,we.jsx)(Uh,{label:"Runs",value:String(a.runs),sub:`${a.failed} not ok${a.limited?` \xB7 ${a.limited} rate-limited${n?.rateLimits==="excluded"?", left out":""}`:""}`}),(0,we.jsx)(Uh,{label:"Success",value:a.runs?`${Math.round(100*a.ok/a.runs)}%`:"-",tone:"text-success"}),(0,we.jsx)(Uh,{label:"Worker time",value:Rs(a.seconds)}),(0,we.jsx)(Uh,{label:"Tokens",value:Is(a.tokens)}),(0,we.jsx)(Uh,{label:"Est. saved",value:Tr(a.saved),tone:"text-success",hint:(0,we.jsx)(pw,{price:n?.price})})]}):(0,we.jsx)("div",{className:"grid gap-3 sm:grid-cols-3 lg:grid-cols-5",children:[0,1,2,3,4].map(o=>(0,we.jsx)(Zs,{className:"h-24 rounded-xl"},o))}),n&&n.byDay.length>0&&(0,we.jsxs)(wm,{className:"gap-3 px-5 py-4 animate-in fade-in duration-700",children:[(0,we.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,we.jsx)("h3",{className:"text-sm font-medium",children:"Runs per day"}),(0,we.jsxs)("span",{className:"text-xs text-muted-foreground",children:[n.byDay[0]?.day," \u2192 ",n.byDay.at(-1)?.day]})]}),(0,we.jsx)("div",{className:"flex h-36 items-end gap-1.5",children:n.byDay.map((o,s)=>(0,we.jsxs)(tm,{children:[(0,we.jsx)(nm,{render:(0,we.jsx)("div",{className:"group flex h-full max-w-14 flex-1 flex-col justify-end"}),children:(0,we.jsxs)("div",{className:"flex w-full flex-col justify-end overflow-hidden rounded-t-md transition-opacity group-hover:opacity-80 origin-bottom animate-in slide-in-from-bottom-4 fill-mode-both",style:{height:`${o.runs/r*100}%`,animationDelay:`${s*18}ms`},children:[(0,we.jsx)("div",{className:"bg-destructive/70",style:{height:`${o.runs?(o.runs-o.ok)/o.runs*100:0}%`}}),(0,we.jsx)("div",{className:"flex-1 bg-success/80"})]})}),(0,we.jsxs)(am,{children:[o.day,": ",o.runs," runs, ",o.ok," ok",o.limited?`, ${o.limited} rate-limited`:"",", ~",Tr(o.saved)," saved"]})]},o.day))})]}),n&&(0,we.jsx)(wm,{className:"overflow-hidden py-0 animate-in fade-in duration-700",children:(0,we.jsxs)(y5,{children:[(0,we.jsx)(x5,{children:(0,we.jsxs)(xI,{className:"hover:bg-transparent",children:[(0,we.jsx)(Jl,{children:"Worker"}),(0,we.jsx)(Jl,{className:"text-right",children:"Runs"}),(0,we.jsx)(Jl,{className:"w-44",children:"Success"}),(0,we.jsx)(Jl,{className:"hidden text-right sm:table-cell",children:"Avg time"}),(0,we.jsx)(Jl,{className:"hidden text-right md:table-cell",children:"Avg tokens"}),(0,we.jsx)(Jl,{className:"hidden text-right md:table-cell",children:"Audited"}),(0,we.jsx)(Jl,{className:"text-right",children:"Saved"})]})}),(0,we.jsx)(v5,{children:n.byWorker.map(o=>{let s=o.runs?Math.round(100*o.ok/o.runs):void 0;return(0,we.jsxs)(xI,{children:[(0,we.jsx)(eu,{children:(0,we.jsxs)("div",{className:"flex items-center gap-2",children:[(0,we.jsx)(sC,{backend:o.backend,className:"size-[18px] rounded-[5px]"}),(0,we.jsx)(Xd,{backend:o.backend,model:o.model})]})}),(0,we.jsxs)(eu,{className:"text-right tabular-nums",title:o.limited?`${o.limited} failed on a rate limit or quota${n.rateLimits==="excluded"?" (not counted here)":""}`:void 0,children:[o.runs,o.limited&&n.rateLimits==="excluded"?(0,we.jsxs)("span",{className:"text-muted-foreground",children:[" +",o.limited]}):null]}),(0,we.jsx)(eu,{children:s===void 0?(0,we.jsx)("span",{className:"text-muted-foreground",children:"-"}):(0,we.jsxs)("div",{className:"flex items-center gap-2",children:[(0,we.jsx)(b5,{value:s,className:"flex-1"}),(0,we.jsxs)("span",{className:"w-9 text-right text-xs tabular-nums text-muted-foreground",children:[s,"%"]})]})}),(0,we.jsx)(eu,{className:"hidden text-right tabular-nums sm:table-cell",children:o.avgSeconds!=null?Rs(o.avgSeconds):"-"}),(0,we.jsx)(eu,{className:"hidden text-right tabular-nums text-muted-foreground md:table-cell",children:o.avgTokens?Is(o.avgTokens):"-"}),(0,we.jsx)(eu,{className:"hidden text-right tabular-nums text-muted-foreground md:table-cell",title:o.audited?`${o.agreed} of ${o.audited} audited answers were confirmed by another worker`:void 0,children:o.audited?`${o.agreed}/${o.audited}`:"-"}),(0,we.jsx)(eu,{className:"text-right tabular-nums text-success",children:o.saved?Tr(o.saved):"-"})]},`${o.backend}:${o.model}`)})})]})})]})}var Ge=k(Z(),1),Bae=/^\d{8}-\d{6}-[0-9a-f]{4}$/;function Fae(){return(0,Ge.jsx)("div",{className:"grid size-9 place-items-center rounded-xl bg-gradient-to-br from-brand to-orange-300 shadow-lg shadow-brand/25",children:(0,Ge.jsx)("svg",{viewBox:"0 0 24 24",className:"size-5 fill-white",children:(0,Ge.jsx)("path",{d:"M4 4h4v4H4zm8 0h4v4h-4zM8 8h4v4H8zm8 0h4v4h-4zM4 12h4v4H4zm8 0h4v4h-4zm-4 4h4v4H8zm8 0h4v4h-4z"})})})}function Vae(){let[e,t]=(0,Qr.useState)(document.documentElement.classList.contains("dark"));return(0,Ge.jsx)(on,{variant:"ghost",size:"icon","aria-label":"Toggle theme",onClick:()=>{let n=!e;document.documentElement.classList.toggle("dark",n);try{localStorage.setItem("pitroom-theme",n?"dark":"light")}catch{}t(n)},children:e?(0,Ge.jsx)(zp,{}):(0,Ge.jsx)(Vp,{})})}function zae(){let[e,t]=(0,Qr.useState)(!1),[n,a]=(0,Qr.useState)(!1);(0,Qr.useEffect)(()=>{let o=()=>{t(window.scrollY>8),a(window.scrollY+window.innerHeight<document.documentElement.scrollHeight-8)};o(),window.addEventListener("scroll",o,{passive:!0}),window.addEventListener("resize",o);let s=new ResizeObserver(o);return s.observe(document.body),()=>{window.removeEventListener("scroll",o),window.removeEventListener("resize",o),s.disconnect()}},[]);let r="pointer-events-none fixed inset-x-0 z-30 transition-opacity duration-300";return(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)("div",{"aria-hidden":!0,className:ne(r,"top-0 h-14 bg-gradient-to-b from-background via-background/60 to-transparent",e?"opacity-100":"opacity-0")}),(0,Ge.jsx)("div",{"aria-hidden":!0,className:ne(r,"bottom-0 h-20 bg-gradient-to-t from-background via-background/60 to-transparent",n?"opacity-100":"opacity-0")})]})}function _5(){let[e,t]=(0,Qr.useState)(()=>location.hash.slice(1)),[n,a]=(0,Qr.useState)(()=>{let c=location.hash.slice(1);return c==="history"||c==="stats"?c:"live"}),[r,o]=(0,Qr.useState)(null),s=Bae.test(e)?e:void 0,{data:i,error:l}=Ll(()=>$n.state(1),4e3,[]);(0,Qr.useEffect)(()=>{document.title=`${i?.running?`(${i.running}) `:""}Pitroom`},[i?.running]),(0,Qr.useEffect)(()=>{let c=()=>t(location.hash.slice(1));return window.addEventListener("hashchange",c),()=>window.removeEventListener("hashchange",c)},[]),(0,Qr.useEffect)(()=>{if(!s){o(null);return}let c=!1;return $n.run(s).then(d=>{c||(d.card?o(d.card):(history.replaceState(null,"",location.pathname+location.search),t(""),o(null)))}).catch(()=>{c||(history.replaceState(null,"",location.pathname+location.search),t(""),o(null))}),()=>{c=!0}},[s]);let u=()=>{history.replaceState(null,"",location.pathname+location.search),t(""),o(null)};return(0,Ge.jsx)(Uz,{delay:150,children:(0,Ge.jsxs)("div",{className:"relative min-h-screen",children:[(0,Ge.jsx)("div",{className:"pointer-events-none fixed inset-0 -z-10 bg-[radial-gradient(60rem_30rem_at_85%_-10%,color-mix(in_oklab,var(--brand)_14%,transparent),transparent_60%),radial-gradient(50rem_28rem_at_-10%_0%,color-mix(in_oklab,var(--info)_12%,transparent),transparent_60%)]"}),(0,Ge.jsxs)("main",{className:"mx-auto max-w-4xl px-4 pb-16 pt-8",children:[(0,Ge.jsxs)("header",{className:"mb-6 flex items-center gap-3 animate-in fade-in slide-in-from-top-2 duration-700",children:[(0,Ge.jsx)(Fae,{}),(0,Ge.jsxs)("div",{className:"leading-tight",children:[(0,Ge.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:"Pitroom"}),(0,Ge.jsx)("p",{className:"text-[13px] text-muted-foreground",children:"Your agent's pit crew, live"})]}),(0,Ge.jsx)("div",{className:"flex-1"}),(0,Ge.jsxs)("span",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[(0,Ge.jsx)("span",{className:ne("size-1.5 rounded-full",l?"bg-destructive":"bg-success animate-pulse")}),l?"offline":"live"]}),(0,Ge.jsx)(Vae,{})]}),(0,Ge.jsx)(PC,{value:n,onValueChange:c=>a(c),children:(0,Ge.jsxs)(MC,{className:"mb-5",children:[(0,Ge.jsx)(dm,{value:"live",children:"Live"}),(0,Ge.jsx)(dm,{value:"history",children:"History"}),(0,Ge.jsx)(dm,{value:"stats",children:"Stats"})]})}),r&&(0,Ge.jsx)("div",{className:"mb-5",children:(0,Ge.jsx)(zl,{run:r,index:0,defaultOpen:!0,onClose:u})}),(0,Ge.jsxs)("div",{className:"animate-in fade-in slide-in-from-bottom-1 duration-300",children:[n==="live"&&(0,Ge.jsx)(n5,{focus:s}),n==="history"&&(0,Ge.jsx)(KH,{}),n==="stats"&&(0,Ge.jsx)(w5,{})]},n),(0,Ge.jsxs)("footer",{className:"mt-10 text-center text-xs text-muted-foreground/70",children:["Read-only \xB7 this machine only \xB7 stops itself when left idle (",(0,Ge.jsx)("code",{className:"font-mono",children:"pitroom dash --stop"})," ends it now)"]})]}),(0,Ge.jsx)(zae,{})]})})}var vI=k(Z(),1);(0,k5.createRoot)(document.getElementById("root")).render((0,vI.jsx)(S5.StrictMode,{children:(0,vI.jsx)(_5,{})}));
|